Question : Flash AS2 loop through array using bracket notation

The following code shows the value as undefined:

for (m in workBox.pictureBox) {
    trace("gInitialImageSize[m][1]: " + gInitialImageSize[m][1]);
}

When I look at the array, all the values are good as follows:
gInitialImageSize: 90,112,90,112,90,112

my syntax is not correct when looping. What should it be?

Answer : Flash AS2 loop through array using bracket notation

Can you share gInitialImageSize array, how you are assigning values to it
And "workBox.pictureBox" relation with gInitialImageSize ?
Random Solutions  
 
programming4us programming4us