6 Replies Latest reply on Jun 4, 2009 6:51 AM by SteveDepp

    How to execute function which body is stored in string variable?

    TodLoch Level 1

      Hi!

       

      Let's say we have a body of function stored into string variable, like this:

       

      ......

      ......

      var body:String = " public function display_message(kom:String):void { mx.controls.Alert.show(kom); } ";

      .....

      here I would like to do something with variable "body" to execute code being kept in this variable, is it possible ?

      ......

      ......

       

       

      Bars regards.