Hi there, try this:

function sayHi():Void {
trace("Hi!");
}

str = "sayHi";
this[str]();

Also have a look at the Function.apply method in Flash help

Regards,
Dimitrios


----- Original Message ----- From: "BOYD SPEER" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Saturday, December 31, 2005 7:04 PM
Subject: [Flashcoders] execute a string as actionscript in MX


Sorry for such a basic question but is there a way to build a string and then "do" it as an actionscript command in Flash MX?
Thanks!
Also where could I find examples of code that creates multi-level dropdown menus??

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to