Re: [Flashcoders] flash / ajax

2007-03-14 Thread fla coder

hello, see haXe : haxe.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Midi

2006-01-29 Thread fla coder
Hi Roy

There was a huge dicussion on the list not so long ago. Try doing a search
for "Who wants MIDI in the Flash Player?" in the archives. Parts of the
discussion were posted here: http://codext.xtyler.com/code/2
The discussion drew some interest from the Adobe listeners.. Sadly, there
hasn't been much news on this since, as far as I know, so it would be great
to hear what you can find out.

Best

Fla

On 29/01/06, Roy Pardi <[EMAIL PROTECTED]> wrote:
>
> Anyone know of a cross-platform solution for receiving and sending midi
> events from within Flash? I've seen a few projects out there but they
> mostly seem beta/proof of concept or PC only.
>
> I'm looking at options for converting a music education program done in
> Director using the Sequence Xtra to Flash and/or Flash front end/C or Java
> backend.
>
> Thanks!
>
> --Roy
> --
> -
> Studio Blog: http://www.roypardi.com/studio/
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] input text scrolls when pressing right arrow key

2006-01-06 Thread fla coder
matt not mike. sorry! time to go home...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Fwd: [Flashcoders] input text scrolls when pressing right arrow key

2006-01-06 Thread fla coder
oops, seems like i'm getting mixed up between lists.
here is mike chotin's suggestion ala flexcoders:

  Matt Chotin<[EMAIL PROTECTED]> to flexcoders
 Hide options   17:38 (28 minutes ago)   From: *Matt Chotin <
[EMAIL PROTECTED]>* Mailed-By: *returns.groups.yahoo.com* Reply-To: *
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: *06-Jan-2006 17:38*
Subject: *RE: [flexcoders] input text scrolls when pressing right arrow key*
Reply | Reply to all | Forward | Print | Add sender to Contacts list | Delete
this message | Report phishing | Show original

Try setting the maxhscroll.



Matt


-- Forwarded message --
From: fla coder <[EMAIL PROTECTED]>
Date: 06-Jan-2006 18:01
Subject: Re: [Flashcoders] input text scrolls when pressing right arrow key
To: Flashcoders mailing list 


many thanks to everyone!
josh, i need to have autosize set.
but.. somehow i get the feeling mr chotin has the solution right there. will
try it as soon as i get home.
much obliged!

 On 06/01/06, Josh Gormley <[EMAIL PROTECTED]> wrote:
>
> Are you specifying a width for this text field?  I can't duplicate
> this on my machine (Mac G5), but I'm guessing it's because you're not
> setting a width and you also have autosize set to left.  Changing
> either of those parameters should do the trick.
>
> Josh
>
>
> On Jan 6, 2006, at 5:19 AM, fla coder wrote:
>
> > hi
> >
> > please try the following:
> >
> > create a TextField with properties similar to:
> >
> > txf.type = "input";
> > txf.autoSize = "left";
> > txf.multiline = false;
> > txf.wordWrap = false;
> > txf.text = "test";
> >
> > run the movie and click inside the field.
> > press the right cursor key until you reach the last character in
> > the field.
> > (the last 't' of 'text').
> > now, if you press the right cursor key again, the word scrolls to
> > the left.
> >
> > my question is, is there any way to stop this behaviour?
> > open to nasty, but processor friendly tricks if that is the only
> > way...
> >
> > many thanks
> > fla
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] input text scrolls when pressing right arrow key

2006-01-06 Thread fla coder
many thanks to everyone!
josh, i need to have autosize set.
but.. somehow i get the feeling mr chotin has the solution right there. will
try it as soon as i get home.
much obliged!

On 06/01/06, Josh Gormley <[EMAIL PROTECTED]> wrote:
>
> Are you specifying a width for this text field?  I can't duplicate
> this on my machine (Mac G5), but I'm guessing it's because you're not
> setting a width and you also have autosize set to left.  Changing
> either of those parameters should do the trick.
>
> Josh
>
>
> On Jan 6, 2006, at 5:19 AM, fla coder wrote:
>
> > hi
> >
> > please try the following:
> >
> > create a TextField with properties similar to:
> >
> > txf.type = "input";
> > txf.autoSize = "left";
> > txf.multiline = false;
> > txf.wordWrap = false;
> > txf.text = "test";
> >
> > run the movie and click inside the field.
> > press the right cursor key until you reach the last character in
> > the field.
> > (the last 't' of 'text').
> > now, if you press the right cursor key again, the word scrolls to
> > the left.
> >
> > my question is, is there any way to stop this behaviour?
> > open to nasty, but processor friendly tricks if that is the only
> > way...
> >
> > many thanks
> > fla
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] input text scrolls when pressing right arrow key

2006-01-06 Thread fla coder
thanks derek!
just the sort of nastiness i was hoping for.
i didn't go down the prototype line of attack as i have built up distrust in
getTextExtent
the text would potentially get styled and other elements within the same
component as the textField depend highly on the correct text width being
returned, or textField width being set in this case.
but there does not seem to be a way around using getTextExtent, so i'll play
around and let you know what happens.
muach appreciated!
f

On 06/01/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
>
> The combination of input and autoSize is what's killing you.  Do you
> really need the textfield to resize with the text entry?
>
> If not, you're better off setting the width and height explicitly.
>
> However, if you don't know the size before you enter text, then here is an
> alternative:
>
> TextField.prototype.resizeToMatchText = function()
> {
>this.autoSize = 'none';
>this._width =
> this.getTextFormat().getTextExtent(this.text).textFieldWidth + 4;
>this._height =
> this.getTextFormat().getTextExtent(this.text).textFieldHeight;
>this.hscroll = 0;
> }
>
> createTextField('txf',1,0,0,0,0);
> txf.type = "input";
> txf.autoSize = "left";
> txf.multiline = false;
> txf.wordWrap = false;
> txf.border = true;
> txf.text = "test";
>
> txf.resizeToMatchText();
>
>
> If you need the textfield to resize with text entry add this:
> txf.onChanged = txf.resizeToMatchText;
> and then call txf.onChanged() after you set the text property.  Setting
> the text property through AS won't trigger the onChanged event so you'll
> have to do that manually anytime you change the text property.
>
> You'll need to call resizeToMatchText() after a TextFormat change as well.
>
> Nasty?  Perhaps.
> Processor-friendly?  Yes.
> Effective?  Yes.
>
>
> Derek Vadneau
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of fla coder
> Sent: Friday, January 06, 2006 6:19 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] input text scrolls when pressing right arrow key
>
>
> hi
>
> please try the following:
>
> create a TextField with properties similar to:
>
> txf.type = "input";
> txf.autoSize = "left";
> txf.multiline = false;
> txf.wordWrap = false;
> txf.text = "test";
>
> run the movie and click inside the field.
> press the right cursor key until you reach the last character in the
> field.
> (the last 't' of 'text').
> now, if you press the right cursor key again, the word scrolls to the
> left.
>
> my question is, is there any way to stop this behaviour?
> open to nasty, but processor friendly tricks if that is the only way...
>
> many thanks
> fla
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] input text scrolls when pressing right arrow key

2006-01-06 Thread fla coder
hi

please try the following:

create a TextField with properties similar to:

txf.type = "input";
txf.autoSize = "left";
txf.multiline = false;
txf.wordWrap = false;
txf.text = "test";

run the movie and click inside the field.
press the right cursor key until you reach the last character in the field.
(the last 't' of 'text').
now, if you press the right cursor key again, the word scrolls to the left.

my question is, is there any way to stop this behaviour?
open to nasty, but processor friendly tricks if that is the only way...

many thanks
fla
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Who wants MIDI in the Flash Player?

2005-12-14 Thread fla coder
xnice!

On 14/12/05, Martin Wood <[EMAIL PROTECTED]> wrote:
>
> I urge you to get someone to have a good read through the discussion.
> There was a lot of good input and i think improving the audio
> capabilities of flash would be a huge step forward for what i consider
> to be the most neglected aspect of flash.
>
> Or, if all else fails then persuade adobe to buy these guys
>
> http://www.fmod.org/
>
> :)
>
> >> Thanks. In the recent rush I haven't been able to read "Who wants
> >> MIDI?" much less abstract it.
> >>
> >> Were you able to get a sense from the whole list of (a) which specific
> >> MIDI (or MIDI-like) features & implementations are most desired; and
> >> (b) how much they'd be willing to pay for this in player size?
> >>
> >> Do you know what size of MIDI engine would work best for you, for
> >> which MIDI abilities, for instance?
> >>
> --
> Martin Wood
>
> http://relivethefuture.com/choronzon
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] getting XY of caret or selection in textField

2005-12-08 Thread fla coder
Hi there

I'm taking a long shot.
Is there any way (without calculations and workarounds involving textExtent,
etc) to obtain the X,Y position of the caret (the actual caret character) in
a textField?
Hoping there is something nasty and (un)documented...

Thanks

Fla
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Array Madness - test yourself

2005-11-21 Thread fla coder
ooh, always beware of class prop array being initialized in declaration.
if i remember correctly, with something like this:

class bla{
private var arr:Array = ["bli","bla"];
function bla(){
}
}

arr would be treated as static prop of class.
not a pleasant memory..

On 21/11/05, Robert Edgar <[EMAIL PROTECTED]> wrote:
> Of cos array.length isnt really read only :-)
>
> I would suggest you post the whole function that you are using to do this as
> the lines of code people have suggested are correct and do work so the
> problem is not those lines of codes but something else and its difficult to
> figure this out in isolation.
>
> Rob
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Robert Edgar
> Sent: Sunday, November 20, 2005 10:12 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Array Madness - test yourself
>
>
> Well...
>
> >>does not work:
> >>
> >>array.slice(0)
> Cos its splice not slice
>
> >>array.length = 0;
> Cos length is read only
>
> >>array = [];
> Cos your only changing what the call parameter references not the underlying
> object
>
> So like I said before use splice(0)
>
> Rob
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Judah
> Frangipane
> Sent: Sunday, November 20, 2005 10:01 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Array Madness - test yourself
>
>
> i spoke too soon. the alternative methods listed here do not work inside
> my classes. they did work in tests on frame 1.
>
> i ran into this situation inside a class.
>
> does not work:
> 
> array.slice(0)
> array.length = 0;
> array = [];
>
> works:
> 
> //any loop
> array.pop()
> //any loop end
>
> i dont know what it is but they are not getting removed unless i
> specifially use array.pop(). offhand, could it be related to the fact
> that i'm referencing a static array? flash ide throws errors if i do
> anything but use static arrays in this class.
>
> judah
>
>
> Mark Winterhalder wrote:
>
> >On 11/21/05, Robert Edgar <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Why wouldn't you use splice(0)?
> >>
> >>
> >
> >because i wouldn't have thought of that :)
> >seriously, splice obviously is the best solution.
> >
> >Judah:
> >no, i don't remember ever needing to do that, and frankly, can't think
> >of such a situation right now. i figured you'd know one since you asked
> >:)
> >
> >mark
> >
> >--
> >http://snafoo.org/
> >jabber: [EMAIL PROTECTED]
> >___
> >Flashcoders mailing list
> >Flashcoders@chattyfig.figleaf.com
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
> >
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flex 2 for games?

2005-11-20 Thread fla coder
that said, maybe it's worth looking at www.haxe.org, so as not to tie
in with only one AS flavour.

On 20/11/05, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
> I think the major advantage to as3 is the fact that the virtual machine
> running it is quite a bit faster.
> The other part is the fact that your code will be more robust, more oop,
> more clean in a way.
>
> The disadvantage is obviously the fact that the whole as3/player 8.5 is
> still in alpha. Plus as3 has a bit of a steep learning curve, and just
> fiddling about is a bit harder (this is a good thing in the long run
> actually).
>
> I think it's a good thing to try and port your games to as3, in a way that
> it will give you a good feeling of as3 and prepare you for things to come.
>
> On 11/20/05, Hans Wichman <[EMAIL PROTECTED]> wrote:
> >
> > Hi folks,
> > im not sure if this is the right place to ask, but...
> > I've been working on a game for a while in AS 1 and well basically, I took
> > the opposite approach of what I have to do in my work: act before I think
> > ;).
> > So since it was both a learning experience for me in Flash (first real
> > game
> > project), game programming, etc im kinda hitting the boundaries.
> > The core is pretty much OO but there are some timeline and other
> > architecural issues going on that will become bigger hurdles if I continue
> > it.
> >
> > So having been to Spark Europe, one of my biggest questions is, would this
> > be a project for Flash 8/AS2 or more of a Flex2/AS3 kind of thing?
> > What would be the better way to approach this?
> >
> > The idea is that I'm gonna rethink this game, create functional designs,
> > technical designs, do lots of research and make this my nr 1 pet project
> > ;).
> > (The source for the current game will be released soon as well by the way
> > for those of u that would like to take a look at it).
> > All in all I'm probably gonna invest a lot of time in this, and it would
> > be
> > nice if I could bet on the right horse ;).
> >
> > If anyone would like to share their opinion with me concerning the better
> > way to tackle this: Flash8/as2 or Flex2/as3, it would be very nice.
> >
> > If you are interested in the source fla, and/or the new site/forums that
> > will be built around the redesigned new version, let me know off list,
> > I'll
> > notify you when the time comes ;).
> > The redesigned version will probably include lots of research to how and
> > whether I can include existing libraries, instead of doing everything from
> > scratch, and functionality wise the current version has implemented about
> > 5% of my ideas, so there is still a long way to go.
> >
> > The game can be found here:
> > 1. goto www.screatoris.net 
> > 2. click games
> > 3. click bounce
> >
> > Note: this is not a request for your opinion about the game itself,
> > although you are of course entitled to have one ;). The game is nowhere
> > near finished, most of the graphics are stubs and the usability is still
> > below standards. That said, I hope u all can offer me a wealth of wisdom
> > :).
> >
> > greetz
> > Hans
> >
> > ps if there is another list u know that would be better suited to my
> > questions please let me know, last time i checked the gamedev list was
> > down
> > and ive lost the link...
> >
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Default TextField properties for label inside TextArea ?

2005-10-26 Thread fla coder
Hi
Does anyone know what the default TextField properties are for the
label inside the TextArea component? ie: the font and size...
Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [F8] Going slightly mad - please could someone try this?

2005-10-07 Thread fla coder
i'm getting the same behaviour
anyone at flashshrink.com?

On 06/10/05, nwebb <[EMAIL PROTECTED]> wrote:
> Hi. I'm pretty sure I've identified a problem with the
> TextField.StyleSheetclass.
> I'd be reallty grateful if someone could try this quick test, and tell me if
> it throws an error for them as well.
>
> I've uploaded a small zip file to a YouSendIt.com location (I'll put it on
> my own site when I get home and update this post).
> For now you can find it here:
> http://s41.yousendit.com/d.aspx?id=1TMJTARVEGCLF0UQRQXTL5LEPK
> The zip contains 2 small files - a fla with a single item in the library,
> and a very simple class.
> The library item is set to export, and it has a comment in the first frame
> of its timline.
>
> Could someone try the following:
> 1) Publish the movie using current settings (Flash 8) and see if it throws
> any errors.
> I'm getting "There is no method with the name 'super'." and would expect you
> to get the same.
>
> 2) Edit the library item and remove the comment (yes, the comment) - publish
> again and see if it's error free.
>
> If you don't get any errors *with* the comment, try replacing it with a
> simple command like stop()
>
> Cheers,
> Neil
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders