| Package | feathers.events |
| Class | public class DragDropEvent |
| Inheritance | DragDropEvent Event Object |
DragDropManager.
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | bubbles : Boolean [read-only] Indicates if event will bubble. | Event | |
![]() | currentTarget : EventDispatcher [read-only] The object the event is currently bubbling at. | Event | |
![]() | data : Object [read-only] Arbitrary data that is attached to the event. | Event | |
| dragData : DragData [read-only]
The DragData associated with the current drag. | DragDropEvent | ||
| isDropped : Boolean
Determines if there has been a drop. | DragDropEvent | ||
| localX : Number
The x location, in pixels, of the current action, in the local
coordinate system of the IDropTarget. | DragDropEvent | ||
| localY : Number
The y location, in pixels, of the current action, in the local
coordinate system of the IDropTarget. | DragDropEvent | ||
![]() | target : EventDispatcher [read-only] The object that dispatched the event. | Event | |
![]() | type : String [read-only] A string that identifies the event. | Event | |
| Method | Defined By | ||
|---|---|---|---|
DragDropEvent(type:String, dragData:DragData, isDropped:Boolean, localX:Number, localY:Number)
Constructor. | DragDropEvent | ||
![]() | stopImmediatePropagation():void Prevents any other listeners from receiving the event. | Event | |
![]() | stopPropagation():void Prevents listeners at the next bubble stage from receiving the event. | Event | |
![]() | toString():String Returns a description of the event, containing type and bubble information. | Event | |
| Constant | Defined By | ||
|---|---|---|---|
![]() | ADDED : String = added [static] Event type for a display object that is added to a parent. | Event | |
![]() | ADDED_TO_STAGE : String = addedToStage [static] Event type for a display object that is added to the stage | Event | |
![]() | CANCEL : String = cancel [static] An event type to be utilized in custom events. | Event | |
![]() | CHANGE : String = change [static] An event type to be utilized in custom events. | Event | |
![]() | CLOSE : String = close [static] An event type to be utilized in custom events. | Event | |
![]() | COMPLETE : String = complete [static] Event type that may be used whenever something finishes. | Event | |
![]() | CONTEXT3D_CREATE : String = context3DCreate [static] Event type for a (re)created stage3D rendering context. | Event | |
| DRAG_COMPLETE : String = dragComplete [static]
Dispatched by the IDragSource when a drag completes. | DragDropEvent | ||
| DRAG_DROP : String = dragDrop [static]
Dispatched by a IDropTarget when a drop occurs. | DragDropEvent | ||
| DRAG_ENTER : String = dragEnter [static]
Dispatched by a IDropTarget when a drag enters its
bounds. | DragDropEvent | ||
| DRAG_EXIT : String = dragExit [static]
Dispatched by a IDropTarget when a drag exits its
bounds. | DragDropEvent | ||
| DRAG_MOVE : String = dragMove [static]
Dispatched by a IDropTarget when a drag moves to a new
location within its bounds. | DragDropEvent | ||
| DRAG_START : String = dragStart [static]
Dispatched by the IDragSource when a drag starts. | DragDropEvent | ||
![]() | ENTER_FRAME : String = enterFrame [static] Event type for a display object that is entering a new frame. | Event | |
![]() | FLATTEN : String = flatten [static] Event type for a display object that is being flattened. | Event | |
![]() | OPEN : String = open [static] An event type to be utilized in custom events. | Event | |
![]() | REMOVED : String = removed [static] Event type for a display object that is removed from its parent. | Event | |
![]() | REMOVED_FROM_STAGE : String = removedFromStage [static] Event type for a display object that is removed from the stage. | Event | |
![]() | REMOVE_FROM_JUGGLER : String = removeFromJuggler [static] Event type for an animated object that requests to be removed from the juggler. | Event | |
![]() | RESIZE : String = resize [static] Event type for a resized Flash Player. | Event | |
![]() | ROOT_CREATED : String = rootCreated [static] Event type that indicates that the root DisplayObject has been created. | Event | |
![]() | SCROLL : String = scroll [static] An event type to be utilized in custom events. | Event | |
![]() | SELECT : String = select [static] An event type to be utilized in custom events. | Event | |
![]() | TEXTURES_RESTORED : String = texturesRestored [static] Event type that is dispatched by the AssetManager after a context loss. | Event | |
![]() | TRIGGERED : String = triggered [static] Event type for a triggered button. | Event | |
| dragData | property |
dragData:DragData [read-only]
The DragData associated with the current drag.
public function get dragData():DragData| isDropped | property |
public var isDropped:BooleanDetermines if there has been a drop.
| localX | property |
public var localX:Number
The x location, in pixels, of the current action, in the local
coordinate system of the IDropTarget.
See also
| localY | property |
public var localY:Number
The y location, in pixels, of the current action, in the local
coordinate system of the IDropTarget.
See also
| DragDropEvent | () | Constructor |
public function DragDropEvent(type:String, dragData:DragData, isDropped:Boolean, localX:Number, localY:Number)Constructor.
Parameterstype:String | |
dragData:DragData | |
isDropped:Boolean | |
localX:Number (default = NaN) | |
localY:Number (default = NaN) |
| DRAG_COMPLETE | Constant |
public static const DRAG_COMPLETE:String = dragComplete
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
| DRAG_DROP | Constant |
public static const DRAG_DROP:String = dragDrop
Dispatched by a IDropTarget when a drop occurs.
See also
| DRAG_ENTER | Constant |
public static const DRAG_ENTER:String = dragEnter
Dispatched by a IDropTarget when a drag enters its
bounds.
See also
| DRAG_EXIT | Constant |
public static const DRAG_EXIT:String = dragExit
Dispatched by a IDropTarget when a drag exits its
bounds.
See also
| DRAG_MOVE | Constant |
public static const DRAG_MOVE:String = dragMove
Dispatched by a IDropTarget when a drag moves to a new
location within its bounds.
See also
| DRAG_START | Constant |
public static const DRAG_START:String = dragStart
Dispatched by the IDragSource when a drag starts.
See also