DragDropEvent
public class
feathers.events.DragDropEvent
Description
Events used by the DragDropManager.
See also:
feathers.dragDrop.DragDropManager
API overview
Constructor
DragDropEvent
(
type: String
,
dragData: DragData
,
isDropped: Boolean
,
localX: Number
=
,
localY: Number
=
)
Constructor.
Attributes
Public attributes
| dragData: DragData |
read-only
The |
| isDropped: Boolean |
Determines if there has been a drop |
| localX: Number |
The x location, in pixels, of the current action, in the local
coordinate system of the |
| localY: Number |
The y location, in pixels, of the current action, in the local
coordinate system of the |
Constants
Constants
| DRAG_COMPLETE: String |
static
Dispatched by the |
| DRAG_DROP: String |
static
Dispatched by a |
| DRAG_ENTER: String |
static
Dispatched by a |
| DRAG_EXIT: String |
static
Dispatched by a |
| DRAG_MOVE: String |
static
Dispatched by a |
| DRAG_START: String |
static
Dispatched by the |
Constructor
Attributes
currentTarget: EventDispatcher
Inherited from Event
read-only
The object the event is currently bubbling at.
localX: Number
The x location, in pixels, of the current action, in the local
coordinate system of the IDropTarget.
See also:
feathers.dragDrop.IDropTarget
localY: Number
The y location, in pixels, of the current action, in the local
coordinate system of the IDropTarget.
See also:
feathers.dragDrop.IDropTarget
Constants
CANCEL: String
static
An event type to be utilized in custom events. Not used by Starling right now.
CHANGE: String
static
An event type to be utilized in custom events. Not used by Starling right now.
DRAG_COMPLETE: String
static
Dispatched by the IDragSource when a drag completes.
This is always dispatched, even when there wasn't a successful drop.
See the isDropped property to determine if the drop
was successful.
See also:
feathers.dragDrop.IDragSource
DRAG_DROP: String
static
Dispatched by a IDropTarget when a drop occurs.
See also:
feathers.dragDrop.IDropTarget
DRAG_ENTER: String
static
Dispatched by a IDropTarget when a drag enters its
bounds.
See also:
feathers.dragDrop.IDropTarget
DRAG_EXIT: String
static
Dispatched by a IDropTarget when a drag exits its
bounds.
See also:
feathers.dragDrop.IDropTarget
DRAG_MOVE: String
static
Dispatched by a IDropTarget when a drag moves to a new
location within its bounds.
See also:
feathers.dragDrop.IDropTarget
DRAG_START: String
static
Dispatched by the IDragSource when a drag starts.
See also:
feathers.dragDrop.IDragSource
REMOVE_FROM_JUGGLER: String
static
Event type for an animated object that requests to be removed from the juggler.
SCROLL: String
static
An event type to be utilized in custom events. Not used by Starling right now.
SELECT: String
static
An event type to be utilized in custom events. Not used by Starling right now.
Functions
clone
(): Event
Inherited from Event
Clones the event object with the same arguments and returns the duplicate.
Returns
| Event | The duplicate event object that was cloned. |
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
stopImmediatePropagation
(): Void
Inherited from Event
Prevents any other listeners from receiving the event.