I have 4 arrays named array1 to array4, is there any way to reference them dynamically?
What I mean is if I have for example
var currentValue:int = 3;
and I want to be able to access a specific array depending on that value, is there an easy way to do that in AS3?
In as2 you could do something along the lines of
(“array” + currentValue);
but that doesnt work in AS3
Any suggestions?
Thanks