Sorry - I am way new to 3.0 - this is code I am trying to convert to help me 
learn.... 

why would this not work:

var pArray = new Array(........);

pArray[0].gotoAndStop(2);


or is there a better way to do it in 3....

Thanks

________________________________________
From: flashcoders-boun...@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 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", "btn_1",
etc.  Messy, but works in some instances and is a case of GTD, no?

I may be wrong of course ;)
>  I am more concerned with people who insist on dynamic instance names
> instead of arrays.
> _______________________________________________
> 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

Reply via email to