Packagefeathers.events
Classpublic class DragDropEvent
InheritanceDragDropEvent Inheritance starling.events.Event

Product Version : Feathers 1.0.0

Events used by the DragDropManager.

See also

feathers.dragDrop.DragDropManager


Public Properties
 PropertyDefined By
  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
Public Methods
 MethodDefined By
  
DragDropEvent(type:String, dragData:DragData, isDropped:Boolean, localX:Number, localY:Number)
Constructor.
DragDropEvent
Public Constants
 ConstantDefined By
  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
Property Detail
dragDataproperty
dragData:DragData  [read-only]

The DragData associated with the current drag.


Implementation
    public function get dragData():DragData
isDroppedproperty 
public var isDropped:Boolean

Determines if there has been a drop.

localXproperty 
public var localX:Number

The x location, in pixels, of the current action, in the local coordinate system of the IDropTarget.

See also

localYproperty 
public var localY:Number

The y location, in pixels, of the current action, in the local coordinate system of the IDropTarget.

See also

Constructor Detail
DragDropEvent()Constructor
public function DragDropEvent(type:String, dragData:DragData, isDropped:Boolean, localX:Number, localY:Number)

Constructor.

Parameters
type:String
 
dragData:DragData
 
isDropped:Boolean
 
localX:Number (default = NaN)
 
localY:Number (default = NaN)
Constant Detail
DRAG_COMPLETEConstant
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_DROPConstant 
public static const DRAG_DROP:String = "dragDrop"

Dispatched by a IDropTarget when a drop occurs.

See also

DRAG_ENTERConstant 
public static const DRAG_ENTER:String = "dragEnter"

Dispatched by a IDropTarget when a drag enters its bounds.

See also

DRAG_EXITConstant 
public static const DRAG_EXIT:String = "dragExit"

Dispatched by a IDropTarget when a drag exits its bounds.

See also

DRAG_MOVEConstant 
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_STARTConstant 
public static const DRAG_START:String = "dragStart"

Dispatched by the IDragSource when a drag starts.

See also