Boon Chew wrote:
With the eval being gone in AS3, does anyone know how to get to the reference
of a movieclip (via the target name string) without using eval? I know we can
instantiate the class via the _global namespace but not positive about mc's.
Use getChildByName( name):
http://livedocs.macromedia.com/labs/1/flex/langref/flash/display/DisplayObjectContainer.html#getChildByName()
Also, you should be using getClassByName( name ) to create a class based
on it's name:
http://livedocs.macromedia.com/labs/1/flex/langref/flash/util/package.html#getClassByName()
-d
_______________________________________________
[email protected]
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