2 Replies Latest reply on Jan 26, 2008 2:21 AM by arfa

    Dynamic LoadVars expression

    arfa
      HI All,

      I am writing actionscript to get variables from a database using php. I have used the LoadVars object and can set a variable using the following line of code which works

      _root.show1=myLoadVar.display1

      In this case myLoadVar is an instance of the Loadvars class and display1 is one of a series of variables sent from php.

      I need to make the right hand side of the expression dynamic eg(display1, display2, display3 etc)

      I have tried using eval but it does not work.

      Thanks for any help.