Stage Class
The root object of the display tree.
Constructor
Stage ()
Methods
addChild ( child ) Object
Adds a child to the container.
Parameters:
-
child
ObjectThe child to add
Returns:
Object:
The child that was added
addChildAt ( child index ) Object
Adds a child to the container at a specified index.
Parameters:
-
child
ObjectThe child to add
-
index
NumberThe index to place the child in
Returns:
Object:
The child that was added
removeChild ( child ) Object
Removes a child from the container.
Parameters:
-
child
ObjectThe child to remove
Returns:
Object:
The child that was removed
removeChildAt ( index ) Object
Removes a child from the specified index position.
Parameters:
-
index
NumberThe index to get the child from
Returns:
Object:
The child that was removed
Properties
children Array
[read-only] The array of children of the sprite.