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

Reply via email to