API Docs for: 1.2.1
Show:

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

()

Methods

addChild

(
  • DisplayObject
)

Adds a child to the container.

Parameters:

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:

removeChild

(
  • DisplayObject
)

Removes a child from the container.

Parameters:

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.

position

Point

The coordinate of the object relative to the local coordinates of the parent.

rotation

Number

The rotation of the object in radians.

scale

Point

The scale factor of the object.

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.