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
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.