Re: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Henrik Andersson
Lehr, Theodore wrote: The error I am getting is Access of undefined property _root. did you try simply dropping the underscore? The api isn't THAT much different. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Merrill, Jason
Well, using root is just bad practice anyway - there's no need for it in anything you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for

Re: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Henrik Andersson
Merrill, Jason wrote: Well, using root is just bad practice anyway - there's no need for it in anything you do. That is an elitist view on the matter. I say, think, then code. If you mean the main timeline, use root. I am more concerned with people who insist on dynamic instance names

RE: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Merrill, Jason
Andersson Sent: Monday, February 22, 2010 11:06 AM To: Flash Coders List Subject: Re: [Flashcoders] 2.0 = 3.0 Merrill, Jason wrote: Well, using root is just bad practice anyway - there's no need for it in anything you do. That is an elitist view on the matter. I say, think, then code. If you

Re: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Glen Pike
Surely using dynamic instance names can be faster than using array lookup in some instances? For example, I have a number of movieclip classes, I don't want to extend their functionality by subclassing, so instead of adding an id property, I derive the id from the instance name - btn_0,

RE: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Lehr, Theodore
...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike [g...@engineeredarts.co.uk] Sent: Monday, February 22, 2010 11:15 AM To: Flash Coders List Subject: Re: [Flashcoders] 2.0 = 3.0 Surely using dynamic instance names can be faster than using array lookup

Re: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Henrik Andersson
Merrill, Jason wrote: No - I mean just broadcasting events instead of coupling code across timelines. Even if you're not using design patterns or even coding outside the IDE, you don't need to use root. For events you still need an object to dispatch them on. And it really is just used as

RE: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Merrill, Jason
...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson Sent: Monday, February 22, 2010 11:49 AM To: Flash Coders List Subject: Re: [Flashcoders] 2.0 = 3.0 Merrill, Jason wrote: No - I mean just broadcasting events instead of coupling code across timelines. Even

Re: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread tom rhodes
Lehr, try this... var pArray:Array = new Array(); var mc:MovieClip = pArray[0] as MovieClip; mc.gotoAndStop(2); or... var pArray:Array = new Array(); MovieClip(pArray[0]).gotoAndStop(2); which is closer to your original AS2. On 22 February 2010 17:48, Henrik Andersson

RE: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Merrill, Jason
Well, you use event listeners to call the right event. I meant to type,you use event listeners to call the right method. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional

RE: [Flashcoders] 2.0 = 3.0

2010-02-22 Thread Merrill, Jason
, February 22, 2010 11:22 AM To: Flash Coders List Subject: Re: [Flashcoders] 2.0 = 3.0 Merrill, Jason wrote: There are much better ways of doing things. You mean like using design patterns? Like the Mediator pattern? The main timeline is an excellent choice for that one. I see no reason