Posted By

liakwee on 01/31/10


Tagged

as3 children


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

adrianparr
davidino1978


Clear Children


 / Published in: ActionScript 3
 

  1. function clearChildren(target:MovieClip):void {
  2. var num:int = target.numChildren;
  3.  
  4. for (var i:int = 0; i < num; i++)
  5. target.removeChildAt(0);
  6. }

Report this snippet  

You need to login to post a comment.