for each – handy for arrays.

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:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑