DisplayObjectContainer Class
A DisplayObjectContainer represents a collection of display objects. It is the base class of all display objects that act as a container for other objects.
Constructor
DisplayObjectContainer
()
Item Index
Methods
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
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.