The instance name of the object.
Graphics curves resolution settings. If adaptive
flag is set to true
,
the resolution is calculated based on the curve"s length to ensure better visual quality.
Adaptive draw works with bezierCurveTo
and quadraticCurveTo
.
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.
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
Retrieves the local bounds of the displayObject as a rectangle object
the rectangular bounding area
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
When cacheAsBitmap is set to true the graphics object will be rendered as if it was a sprite. This is useful if your graphics element does not change often, as it will speed up the rendering of the object in exchange for taking up texture memory. It is also useful if you need the graphics object to be anti-aliased, because it will be rendered using canvas. This is not recommended if you are constantly redrawing the graphics element.
false