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

Show inherited public instance fieldsHide inherited public instance fields

Inherited from Sprite

var buttonMode:Bool
var dropTarget:DisplayObject
var graphics:Graphics
var hitArea:Sprite
var soundTransform:SoundTransform
var useHandCursor:Bool
function startDrag(?lockCenter:Bool, ?bounds:Rectangle):Void
function startTouchDrag(touchPointID:Int, ?lockCenter:Bool, ?bounds:Rectangle):Void
function stopDrag():Void
function stopTouchDrag(touchPointID:Int):Void

Inherited from DisplayObjectContainer

var mouseChildren:Bool
var numChildren:Int
var tabChildren:Bool
var textSnapshot:TextSnapshot
function addChild(child:DisplayObject):DisplayObject
function addChildAt(child:DisplayObject, index:Int):DisplayObject
function areInaccessibleObjectsUnderPoint(point:Point):Bool
function contains(child:DisplayObject):Bool
function getChildAt(index:Int):DisplayObject
function getChildByName(name:String):DisplayObject
function getChildIndex(child:DisplayObject):Int
function getObjectsUnderPoint(point:Point):Array<DisplayObject>
function removeChild(child:DisplayObject):DisplayObject
function removeChildAt(index:Int):DisplayObject
function setChildIndex(child:DisplayObject, index:Int):Void
function swapChildren(child1:DisplayObject, child2:DisplayObject):Void
function swapChildrenAt(index1:Int, index2:Int):Void

Inherited from InteractiveObject

var accessibilityImplementation:AccessibilityImplementation
var contextMenu:ContextMenu
var doubleClickEnabled:Bool
var focusRect:Dynamic
var mouseEnabled:Bool
var tabEnabled:Bool
var tabIndex:Int

Inherited from DisplayObject

var accessibilityProperties:AccessibilityProperties
var alpha:Float
var blendMode:BlendMode
var blendShader:Shader
var cacheAsBitmap:Bool
var filters:Array<BitmapFilter>
var height:Float
var loaderInfo:LoaderInfo
var mask:DisplayObject
var mouseX:Float
var mouseY:Float
var name:String
var opaqueBackground:Null<UInt>
var parent:DisplayObjectContainer
var root:DisplayObject
var rotation:Float
var rotationX:Float
var rotationY:Float
var rotationZ:Float
var scale9Grid:Rectangle
var scaleX:Float
var scaleY:Float
var scaleZ:Float
var scrollRect:Rectangle
var stage:Stage
var transform:Transform
var visible:Bool
var width:Float
var x:Float
var y:Float
var z:Float
function getBounds(targetCoordinateSpace:DisplayObject):Rectangle
function getRect(targetCoordinateSpace:DisplayObject):Rectangle
function globalToLocal(point:Point):Point
function globalToLocal3D(point:Point):Vector3D
function hitTestObject(obj:DisplayObject):Bool
function hitTestPoint(x:Float, y:Float, ?shapeFlag:Bool):Bool
function local3DToGlobal(point3d:Vector3D):Point
function localToGlobal(point:Point):Point

Inherited from EventDispatcher

function addEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool, ?priority:Int, ?useWeakReference:Bool):Void
function dispatchEvent(event:Event):Bool
function hasEventListener(type:String):Bool
function removeEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool):Void
function toString():String
function willTrigger(type:String):Bool

function new(): Void

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.

@see #setClipMasked()

returns

whether the component clip should be masked.

function setChildIndex(child:DisplayObject, index:Int): Void

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.

@see #isClipMasked()

m

whether the component clip should be masked.

function toString(): String