Menu

DisplayObjectContainer

Winston Tamblyn

crv.display.DisplayObjectContainer

package crv.display
extends crv.display.InteractiveObject
inherits InteractiveObjectDisplayObjectEventDispatcherClass
This class provides methods for adding, removing, and indexing DisplayObjects from the display list.
Properties
numChildren number [read-only] Returns the number of children currently contained in the object.
Methods
addChild(child:DisplayObject):DisplayObject

Adds the child to the container.

addChildAt(child:DisplayObject, index:number):DisplayObject

Adds the child to the container at the specified index.

contains(child:DisplayObject):boolean

Returns a boolean value that tells whether or not the child was found in the container.

getChildAt(index:number):DisplayObject

Returns the child found at the specified index.

getChildByName(name:string):DisplayObject

Returns a contained object with the specified name.

getChildIndex(child:DisplayObject):DisplayObject

Returns the index of the child within the container object.

removeChild(child:DisplayObject):DisplayObject

Removes the child from it's container.

removeChildAt(index:number):DisplayObject

Removes the child found at the specified index.


Related

Wiki: Class Reference

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.