class org.aswing.AWSprite extends Sprite
Dispatched when the mouse released or released out side.
If you need a event like AS2 onRelease
you can
use Event.CLICK
@eventType org.aswing.event.ReleaseEvent.RELEASE
Instance Fields
function bringToBottom(child:DisplayObject): Void
Brings a child to bottom. This method will keep background child on bottom, if you bring a other object to bottom, this method will only bring it at bottom of other objects (mean at bottom of others but on top of the background child).
child | the child to be bringed to bottom. |
function bringToTop(child:DisplayObject): Void
Brings a child to top. This method will keep foreground child on top, if you bring a other object to top, this method will only bring it on top of other objects (mean on top of others but bellow the foreground child).
child | the child to be bringed to top. |
function containsChild(child:DisplayObject): Bool
Returns whether child is directly child of this sprite, true only if getChildIndex(child) >= 0.
returns | true only if getChildIndex(child) >= 0. |
function getHighestIndexUnderForeground(): Int
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
The child is added to the front (top) of all other children except foreground decorator child(It is topest)
in this DisplayObjectContainer instance.
(To avoid this restrict and add a child to a specific index position, use the addChildAt()
method.)
(Note: Generally if you don't want to break the component asset depth management, use
getHighestIndexUnderForeground() and getLowestIndexAboveBackground() to get the
right depth you can use. You can also refer to getChildIndex() to
insert child after or before an existing child)
@see #getLowestIndexAboveBackground() @see #getHighestIndexUnderForeground() @see #http://livedocs.macromedia.com/flex/2/langref/flash/display/DisplayObjectContainer.html#getChildIndex()
dis | The DisplayObject instance to add as a child of this DisplayObjectContainer instance. |
function getLowestIndexAboveBackground(): Int
Returns the current bottom index for none background child.
returns | the current bottom index for child that is not a background child. |
function isClipMasked(): Bool
Returns whether the component clip should be masked by its bounds. By default it is true.
AsWing A3 use scrollRect
property to do the clip mask.
returns | whether the component clip should be masked. |
function setClipMasked(m:Bool): Void
Sets whether the component clip should be masked by its bounds. By default it is true.
AsWing A3 use scrollRect
property to do the clip mask.
m | whether the component clip should be masked. |