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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -