Hi
this is just a simple question about the creation of multidimensional arrays in Flash
Is a loop the only solution to create such arrays in flash?
Let’s say I want to create a 2 dimensional array with 10 raws in it, something like
myArray[0]['foo'] = 'AAAAA';
myArray[1]['foo'] = 'BBBBBB';
...
then I have to do:
var k;
for(k=0;k<10;k++){
myArray[k] = new Array();
}
But what happens if I need 20 rows in the future, instead of 10? Does that mean I’ll have to update the loop count each time I want to add a new element?
Is there any simpler way to deal with multidimensional arrays in flash? I guess not but I just wanted to be sure
thanks