Packagefeathers.dragDrop
Interfacepublic interface IDragSource

Product Version : Feathers 1.0.0

An object that can initiate drag actions with the drag and drop manager.

See also

feathers.dragDrop.DragDropManager


Public Methods
 MethodDefined By
  
dispatchEvent(event:Event):void
IDragSource
  
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
IDragSource
Events
 Event Summary Defined By
  Dispatched when the drop has been completed or when the drag has been cancelled.IDragSource
  Dispatched when the drag and drop manager begins the drag.IDragSource
Method Detail
dispatchEvent()method
public function dispatchEvent(event:Event):void

Parameters

event:Event

dispatchEventWith()method 
public function dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void

Parameters

type:String
 
bubbles:Boolean (default = false)
 
data:Object (default = null)

Event Detail
dragComplete Event
Event Object Type: feathers.events.DragDropEvent
DragDropEvent.type property = feathers.events.DragDropEvent.DRAG_COMPLETE

Dispatched when the drop has been completed or when the drag has been cancelled.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
dataSame as the dragData property.
dragDataThe feathers.dragDrop.DragData instance associated with this drag.
isDroppedtrue, if the dragged object was dropped; false, if it was not.
localXNaN
localYNaN
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.

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.
dragStart Event  
Event Object Type: feathers.events.DragDropEvent
DragDropEvent.type property = feathers.events.DragDropEvent.DRAG_START

Dispatched when the drag and drop manager begins the drag.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
dataSame as the dragData property.
dragDataThe feathers.dragDrop.DragData instance associated with this drag.
isDroppedfalse
localXNaN
localYNaN
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.

Dispatched by the IDragSource when a drag starts.