Toyfruit
10-02-2009, 05:29 PM
Hi All
I have a variable in flash:
var myVariableName:Number = 0;
I then have a multidimensional array which has this variable name in it, but as a string
var myArray:Array = new Array(new Array("mySomething Else", "myVariableName"));
What I need to do is be able to reference the string item in the array, but then cast it so that when I add a number to it the ACTUAL variable with the same name will be altered - anyone know how I can do this?
For reasons I won't go into I can't pass it straight into the variable, it has to go through the multidimensional array item.
Help??
I have a variable in flash:
var myVariableName:Number = 0;
I then have a multidimensional array which has this variable name in it, but as a string
var myArray:Array = new Array(new Array("mySomething Else", "myVariableName"));
What I need to do is be able to reference the string item in the array, but then cast it so that when I add a number to it the ACTUAL variable with the same name will be altered - anyone know how I can do this?
For reasons I won't go into I can't pass it straight into the variable, it has to go through the multidimensional array item.
Help??