/ Published in: ActionScript 3
Find and Trace Yo Children
Expand |
Embed | Plain Text
//returns a DisplayObject trace(getChildAt(0)); //states how many children it has trace(numChildren); //If you use this before and after the removeChild you should have a difference of 1. But if //you wanted to trace each child individually you would have to trace in a for loop: for (var i:int = 0; i < numChildren; i++) { trace(getChildAt(i)); }
You need to login to post a comment.
