Pretty basic stuff here, but for each is quite handy for looping through an array that may hold more than one type of content
for each (var o:Object in gridArray) { // do something }
That’ll pull out each object in gridArray for you to manipulate as o.
Tech Reference: AS3
Leave a Reply