eval sort of works, but not as well as JavaScript, mainly because Flash Player doesn't have the actual string-to-bytecode interpreter in it.
----- Original Message ----- From: "Dimitrios Bendilas" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <[email protected]> Sent: Saturday, December 31, 2005 12:51 PM Subject: Re: [Flashcoders] execute a string as actionscript in MX 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 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

