0 Replies Latest reply on Oct 28, 2011 3:48 PM by milledj

    Does anyone have an example to share of using a variable in a proc call?


      I would like to use a value from a table to call a procedure in ActionScript. Can anyone share an example with me? TIA,



      (For example

        var proc_name_from_table:String;

         var command_proc:String;


        command_proc="mx.core.FlexGlobals.TopLevelApplication." + proc_name_from_table;




      Or something like that (just to give you an idea where I am heading).

      It is for a site map application that gets values from a table and I don't want to write a huge if statement with specific, hard-coded calls.)