Posted By

damarev on 04/13/09


Versions (?)

iterate through all children in a display object container

 / Published in: ActionScript 3

  1. for(var i=0; i<displayObjectContainer.numChildren-1; i++)
  2. {
  3. var mc:MovieClip = displayObjectContainer.getChildAt(i);
  4. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Jonno on August 19, 2010

That will skip the last child. It should be:

for(var i=0; i

You need to login to post a comment.