Guest User

Untitled

a guest
Feb 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. while (numChildren > 0) {
  3.     var child:Object=getChildAt(0);
  4.     if (child is Duck) {
  5.         child.destroy();
  6.     } else if (child is Dog) {
  7.         child.destroy();
  8.     } else {
  9.     removeChildAt(0);
  10.     }
  11.     child=null;
  12. }
Add Comment
Please, Sign In to add comment