class org.aswing.event.ReleaseEvent extends MouseEvent

Event for display object release and release outside.

Generally, if you need the target, you may need the pressTarget indeed. The pressTarget property is the target of which object was pressed and then released. The target property is the object which was released, but maybe it is not pressed, i mean, its child was press, not itself. So, use getPressTarget() to get the right target.

@author paling

Class Fields

static var RELEASE:String

The ReleaseEvent.RELEASE constant defines the value of the type property of the event object for a release event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getPressTarget()The object that

is the target which is pressed and then released</td></tr>

currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType release

static var RELEASE_OUT_SIDE:String

The ReleaseEvent.RELEASEOUTSIDE constant defines the value of the type property of the event object for a releaseOutSide event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getPressTarget()The object that

is the target which is pressed and then released out side</td></tr>

isReleasedOutSide()true if this is released out side
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType releaseOutSide

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from MouseEvent

var altKey:Bool
var buttonDown:Bool
var ctrlKey:Bool
var delta:Int
var isRelatedObjectInaccessible:Bool
var localX:Float
var localY:Float
var relatedObject:InteractiveObject
var shiftKey:Bool
var stageX:Float
var stageY:Float
function updateAfterEvent():Void

Inherited from Event

var bubbles:Bool
var cancelable:Bool
var currentTarget:Dynamic
var eventPhase:EventPhase
var target:Dynamic
var type:String
function clone():Event
function formatToString(className:String, ?p1:Dynamic, ?p2:Dynamic, ?p3:Dynamic, ?p4:Dynamic, ?p5:Dynamic):String
function isDefaultPrevented():Bool
function preventDefault():Void
function stopImmediatePropagation():Void
function stopPropagation():Void
function toString():String

function new(type:String, pressTarget:DisplayObject, releasedOutSide:Bool, e:MouseEvent): Void

function clone(): Event

function getPressTarget(): DisplayObject

Returns the target for of the press phase.

returns

the press target

function isReleasedOutSide(): Bool

Returns whether or not this release is acted out side of the pressed display object.

returns

true if out side or false not.