Hello :)
in AS3 you must use the DisplayObjectContainer methods to manipulate the
childs in a DisplayObject (MovieClip, Sprite, etc...)
http://livedocs.macromedia.com/flex/2/langref/flash/display/DisplayObjectContainer.html
You can read in the documentation the method
getChildByName<http://livedocs.macromedia.com/flex/2/langref/flash/display/DisplayObjectContainer.html#getChildByName%28%29>
(name:String <http://livedocs.macromedia.com/flex/2/langref/String.html>):
DisplayObject<http://livedocs.macromedia.com/flex/2/langref/flash/display/DisplayObject.html>
You can now get the reference of your display with this method.
EKA+ :)
2007/1/9, Bart Albrecht <[EMAIL PROTECTED]>:
Hi,
I'm migrating some stuff from AS2 to AS3
In AS2 I can do this:
function doSomething(btnName:String)
{
_root[btnName]visible = false;
}
doSomething("exit_btn");
In AS3
I want to do the same:
public function doSomething(btnName:String)
{
//XXX here I don't know what I should do
}
I hope someone can help me
Bart
_______________________________________________
[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
_______________________________________________
[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