Stage Class
A Stage represents the root of the display tree. Everything connected to the stage is rendered
Constructor
Stage
(
-
backgroundColor
Parameters:
-
backgroundColor
Numberthe background color of the stage
Item Index
Methods
addChildAt
(
-
DisplayObject
-
index
Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown
Parameters:
-
DisplayObject
DisplayObject -
index
Number
removeChild
(
-
DisplayObject
Removes a child from the container.
Parameters:
-
DisplayObject
DisplayObject
setBackgroundColor
(
-
backgroundColor
Parameters:
-
backgroundColor
Number
updateTransform
()
Properties
alpha
Number
The opacity of the object.
children
Array
[read-only] The of children of this container.
parent
DisplayObjectContainer
[read-only] The display object container that contains this display object.
rotation
Number
The rotation of the object in radians.
stage
Stage
[read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.
visible
Boolean
The visibility of the object.