I have the next code
var uv:URLVariables = new URLVariables();
//lot of them in an array
var variable:String = "mode";
var value:String = "easy";
uv.<variable_value> = <value_value>;
It’s like using the value of variable as the variable name. How can I achieve this?
Edit: The next code represents what I need as result
uv.mode = 'easy';
uv.category = 256;
..
..
Where the variables mode and category are values of other variables.
Using php would be something like this:
$next = 10;
$var = 'next';
echo ${$var}; //10
Thanks.
I’m not quite sure what you want ( because of the question formulation )
but i’m using URLVariables like this: