Class: Stage

Stage()

new Stage()

The root object of the display tree. Superclass of Scene_Base
Properties:
Name Type Description
children Array [super][read-only] The array of children of the window.
parent Object [super][read-only] The object that contains the window.

Extends

  • PIXI.Container

Methods

addChild(child) → {Object}

[super] Adds a child to the container.
Parameters:
Name Type Description
child Object The child to add
Returns:
The child that was added
Type
Object

addChildAt(child, index) → {Object}

[super] Adds a child to the container at a specified index.
Parameters:
Name Type Description
child Object The child to add
index Number The index to place the child in
Returns:
The child that was added
Type
Object

initialize()

removeChild(child) → {Object}

[super] Removes a child to the container.
Parameters:
Name Type Description
child Object The child to remove
Returns:
The child that was removed
Type
Object

removeChildAt(index) → {Object}

[super] Removes a child from the specified index position.
Parameters:
Name Type Description
index Number The index to get the child from
Returns:
The child that was removed
Type
Object