Stage Class

The root object of the display tree.

Constructor

Stage ()

Item Index

Methods Properties

Methods

addChild ( child ) Object

Adds a child to the container.

Parameters:

  • child Object

    The 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 Object

    The child to add

  • index Number

    The index to place the child in

Returns:

Object:
The child that was added

removeChild ( child ) Object

Removes a child from the container.

Parameters:

  • child Object

    The child to remove

Returns:

Object:
The child that was removed

removeChildAt ( index ) Object

Removes a child from the specified index position.

Parameters:

  • index Number

    The 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.