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

c# - Getting "Internal .Net Framework Data Provider error 30" error when column has NULL value -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

SAP Web Service from .NET via WCF -