Set this to true if you want this display object to be cached as a bitmap. This basically takes a snap shot of the display object as it is at that moment. It can provide a performance benefit for complex static displayObjects. To remove simply set this property to "false"
IMPORTANT GOTCHA - make sure that all your textures are preloaded BEFORE setting this property to true as it will take a snapshot of what is currently there. If the textures have not loaded then they will not appear.
The instance name of the object.
recursively updates transform of all objects from the root to this one internal function for toLocal()
Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown
The child to add
The index to place the child in
The child that was added.
Recalculates the bounds of the container.
calculates worldTransform * vertices for a non texture with a trim. store it in vertexTrimmedData This is used to ensure that the true width and height of a trimmed texture is respected
calculates worldTransform * vertices, store it in vertexData
Tests if a point is inside this sprite
the point to test
the result of the test
Calls each of the listeners registered for a given event.
The event name.
Arguments that are passed to registered listeners
true
if the event had listeners, else false
.
Return an array listing the events for which the emitter has registered listeners.
Retrieves the bounds of the displayObject as a rectangle object.
setting to true will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost
Optional rectangle to store the result of the bounds calculation
the rectangular bounding area
Returns the child at the specified index
The index to get the child at
The child at the given index, if any.
Returns the display object in the container
instance name
The child with the specified name.
Returns the index position of a child DisplayObject instance
The DisplayObject instance to identify
The index position of the child display object to identify
Returns the global position of the displayObject. Does not depend on object scale, rotation and pivot.
the point to write the global value to. If null a new point will be returned
setting to true will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost
The updated point
Return the listeners registered for a given event.
The event name.
Check if there listeners for a given event.
If exists
argument is not true
lists listeners.
The event name.
Only check if there are listeners.
Removes a child from the specified index position.
The index to get the child from
The child that was removed.
Removes all children from this container that are within the begin and end indexes.
List of removed children
Changes the position of an existing child in the display object container
The child DisplayObject instance for which you want to change the index number
The resulting index number for the child display object
This function doesn"t apply anymore.
Convenience function to set the position, scale, skew and pivot at once.
The DisplayObject instance
Swaps the position of 2 Display Objects within this container.
First display object to swap
Second display object to swap
Calculates the global position of the display object
The world origin to calculate from
A point object representing the position of this object
Calculates the global position of the display object
The world origin to calculate from
A point object representing the position of this object
Calculates the local position of the display object relative to another point
The world origin to calculate from
A point object representing the position of this object
Updates the transform on all children of this container for rendering
Component for creation small text labels with View repositioning functionality