Re: [Flashcoders] my component not instancing properly on timeline

2009-02-13 Thread Gregory N
Michael, It seems your problem is similar to one I had with my components. The matter is that, unlike their behavior in AS2, in AS3 (CS3) components setters of [Inspectable] parameters are called lo-o-ong AFTER constructor As described here http://www.bit-101.com/blog/?p=1181 So, even if I set

Re: [Flashcoders] Advanced Rollover Physics/Math...

2009-02-13 Thread Romuald Quantin
Element awareness remind me of what I read in the Keith Peter's book Advanced AS3 Animation. I would go to use a Vector2D class he has recreated from other programming language (there's also a Vector3D class built-in in flash). He's talking about the Craig Reynolds' demo (which are element

[Flashcoders] FLV strangeness

2009-02-13 Thread Glen Pike
Hi, I am trying to debug a problem with streaming an FLV using ffmpeg + ffserver and have run into something bizarre... Running from the IDE, I am playing an FLV from the server with the URL: http://192.168.0.55:8090/test2.flv The server is not running - I can try to load the

Re: [Flashcoders] FLV strangeness

2009-02-13 Thread Glen Pike
Hmmm, Restarting the IDE seemed to sort this out - g, crappy IDE. Glen Glen Pike wrote: Hi, I am trying to debug a problem with streaming an FLV using ffmpeg + ffserver and have run into something bizarre... Running from the IDE, I am playing an FLV from the server with

[Flashcoders] try with webcam

2009-02-13 Thread Fernando Nunes
http://www.f-nunes.com -- Fernando Nunes Cel.: +55 51 8100.6045 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] try with webcam

2009-02-13 Thread Ibrahim Y
funny... On Fri, Feb 13, 2009 at 1:49 PM, Fernando Nunes fernando.nu...@gmail.comwrote: http://www.f-nunes.com -- Fernando Nunes Cel.: +55 51 8100.6045 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] FLV test streams

2009-02-13 Thread Glen Pike
Hi, Does anyone know of any test URL's which serve up FLV streams over HTTP. I am trying to track down a bug and want to eliminate problems with my streaming setup... Thanks Glen ___ Flashcoders mailing list

Re: [Flashcoders] FLV test streams

2009-02-13 Thread Glen Pike
Hi, Found a random stream now thanks. Glen Glen Pike wrote: Hi, Does anyone know of any test URL's which serve up FLV streams over HTTP. I am trying to track down a bug and want to eliminate problems with my streaming setup... Thanks Glen

[Flashcoders] play sound via linkage

2009-02-13 Thread Mendelsohn, Michael
Hi list... Silly AS3 question: how do you play a sound with a linkage identifier? public function playSound(linkageID:String):void{ // these don't work var snd:Sound = new Sound(linkageID); var snd:* = new Class(linkageID); snd.play(); } Thanks! - MM

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Kenneth Kawamoto
var snd:LinkedSound = new LinkedSound(); snd.play(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Mendelsohn, Michael wrote: Hi list... Silly AS3 question: how do you play a sound with a linkage identifier? public function playSound(linkageID:String):void{ // these don't work

RE: [Flashcoders] play sound via linkage

2009-02-13 Thread Mendelsohn, Michael
Thanks for responding Ken, but I'm passing a String (linkage id). My question is really how to create a new instance of the sound when I only have the linkage identifier as a string? I can't seem to cast it to a Class. - MM -Original Message- From:

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Kenneth Kawamoto
There are no Linkage IDs in AS3. Class names you are talking about? :) May be you can do something like: private function playSound(className:String):void { var ClassRef:Class = getDefinitionByName(className) as Class; var snd:Object = new ClassRef(); snd.play(); } Kenneth Kawamoto

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Zeh Fernando
Exactly. Or, if you know the name and you don't need it to be a dynamic reference, just do... var snd:MySoundName = new MySoundName(); snd.play(); Where MySoundName is the name given to it in the library. Zeh On Fri, Feb 13, 2009 at 12:35 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote:

[Flashcoders] Strange XML parsing thing

2009-02-13 Thread Eric E. Dolecki
Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more simple. var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Kenneth Kawamoto
trace(myXML.children().(localName() == Outcome)); -- Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Muzak
There is a default namespace, namely: http://www.xignite.com/services/ The following should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest(http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; ));

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread bernice guerrero
Stop the messeges On Feb 13, 2009 8:24 AM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: var snd:LinkedSound = new LinkedSound(); snd.play(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Mendelsohn, Michael wrote: Hi list... Silly AS3 question: how do you play a sound with a l...

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Eric E. Dolecki
I ended up with this 1. function onLoadXML( e:Event ):void 2. { 3. var ns:Namespace = new Namespace(http://www.xignite.com/services/; ); 4. var myXML:XML = new XML( e.target.data ); 5. 6. trace( Name + myXML.ns::Name ); 7. trace( Last + myXML.ns::Quote.ns::Last );

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Kenneth Kawamoto
You can extract it like this as well: var ns:Namespace = myXML.namespace(); -- Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: I ended up with this 1. function onLoadXML( e:Event ):void 2. { 3. var ns:Namespace = new

RE: [Flashcoders] Advanced Rollover Physics/Math...

2009-02-13 Thread dave matthews
hi, Using percentages of the parent container height and width triggered by any box the cursor is over will let you adjust the various scales after it's built. Say there are elements A,B,C,D,E F. in the first row and G,H,I,J,K,L in the second and M,N,O,P,Q,R, in the third row... When

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Joel Stransky
pass the string to getDefinitionByName() var myClass:Object = getDefinitionByName(linkageID); var snd:myClass = new myClass(); snd.play(); On Fri, Feb 13, 2009 at 5:11 PM, bernice guerrero bernic...@gmail.comwrote: Stop the messeges On Feb 13, 2009 8:24 AM, Kenneth Kawamoto

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Eric E. Dolecki
Thanks for all of this!! So this should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); myLoader.dataFormat = XML; //var ns:Namespace = new

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Kenneth Kawamoto
You can reduce one more line :) default xml namespace = myXML.namespace(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Thanks for all of this!! So this should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML );

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Eric E. Dolecki
rockin' On Fri, Feb 13, 2009 at 6:53 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: You can reduce one more line :) default xml namespace = myXML.namespace(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Thanks for all of this!! So this should work:

Re: [Flashcoders] Strange XML parsing thing

2009-02-13 Thread Muzak
Only if you're sure that there will be a namespace defined, if not myXML.namespace() will return null (and probably throw an error). Might not be a big deal in this case, but just mentioning it for archive purposes :) regards, Muzak - Original Message - From: Kenneth Kawamoto