actionscript 3 - How do I access all of the children of a DisplayObject programatically? -
how access of children of displayobject using code? (i'm looking movieclip.children
)
i'm using in 2 cases:
1) loop through , reposition of children of enclosing movieclip.
or
2) loop through , delete of children of movieclip
also, flash cs5 project.
this loop touch every child inside movieclip foo. i'm not sure you're going them, can run whatever methods need inside loop.
for (var i:uint=0; i<foo.numchildren;i++){ foo.getchildat(i).whatevermethodyouneed(); }
Comments
Post a Comment