Remove All Children Of DisplayObject


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public static function removeAllChildren($do:DisplayObjectContainer):void {
  2. while ($do.numChildren)
  3. {
  4. $do.removeChildAt(0);
  5. }
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.