I have a for loop in action script which I m trying to use to dynamically create variable.
Example
for( i = 0 ; i < 3 ; i++) { var MyVar+i = i; }
after this for loop runs, i would like to have 3 variables named MyVar1, MyVar2, MyVar3. I know the code above will give you a syntax error, but that is just to illustrate what I am trying to do. Any takers?
The primary reason i m doing this is because I m having scope problems noted here in this other unanswered Action Script question: How to pass variables into inline functions in Action Script 2
Thanks!