Posted By

visualadvance on 04/08/09


Tagged

actionscript remove 3 as3 children numChildren removeChildAt


Versions (?)

Who likes this?

11 people have marked this snippet as a favorite

damarev
pflangan
adrianparr
solo1artist
loric
sultano
swfgeek
tspitzr
zeman
dug
philokezzar


AS3: Remove Children


 / Published in: ActionScript 3
 

This is handy for removing all children from a movieclip

  1. private function removeChildren (container:MovieClip):void
  2. {
  3. while (container.numChildren)
  4. {
  5. container.removeChildAt (0);
  6. }
  7. }
  8.  
  9. //removeChildren (myHolder);

Report this snippet  

You need to login to post a comment.