Posted By

vdubplate on 06/29/11


Versions (?)

Trace Children

 / Published in: ActionScript 3

Find and Trace Yo Children

  1. //returns a DisplayObject
  2. trace(getChildAt(0));
  4. //states how many children it has
  5. trace(numChildren);
  7. //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:
  8. for (var i:int = 0; i < numChildren; i++) { trace(getChildAt(i)); }

Report this snippet  

You need to login to post a comment.