DisplayObjectUtil

Kind of class:public class
Package:org.casalib.util
Inherits from:none
Version:05/25/09
Author:Aaron Clinger
Classpath:org.casalib.util.DisplayObjectUtil
File last modified:Monday, 25 May 2009, 19:05:24
Provides utility functions for DisplayObjects/DisplayObjectContainers.

Summary


Class methods
  • removeChildren (parent:DisplayObject, destroyChildren:Boolean = false, recursive:Boolean = false) : void
    • Removes and optionally destroys children of a DisplayObjectContainer or the states of a SimpleButton.

Class methods

removeChildren

public static function removeChildren (
parent:DisplayObject, destroyChildren:Boolean = false, recursive:Boolean = false) : void

Removes and optionally destroys children of a DisplayObjectContainer or the states of a SimpleButton.
Parameters:
parent :
The DisplayObjectContainer from which to remove children or a SimpleButton from which to remove its states.
destroyChildren:
If a child implements IDestroyable call its destroy method true, or don't destroy false; defaults to false.
recursive :
Call this method with the same arguments on all of the children's children (all the way down the display list) true, or leave the children's children false; defaults to false.