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.
Class Fields
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:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
getPressTarget() | The object that
|
currentTarget | The 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 . |
target | The 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:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
getPressTarget() | The object that
|
isReleasedOutSide() | true if this is released out side |
currentTarget | The 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 . |
target | The 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 fields | Hide inherited public instance fields
|
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. |