Will getChildByName work with a nested target name (e.g. "_level0.mc1.mc2.mc3")?

- boon

"Darron J. Schall" <[EMAIL PROTECTED]> wrote: 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


                
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
                
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
_______________________________________________
[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

Reply via email to