Packagefeathers.dragDrop
Interfacepublic interface IDropTarget
Implementors DataGrid, List, TabBar

Product Version : Feathers 1.0.0

A display object that can accept data dropped by the drag and drop manager.

See also

feathers.dragDrop.DragDropManager


Public Methods
 MethodDefined By
  
dispatchEvent(event:Event):void
IDropTarget
  
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
IDropTarget
Events
 Event Summary Defined By
  Dispatched when an accepted drag is dropped on the target.IDropTarget
  Dispatched when the touch enters the drop target's bounds.IDropTarget
  Dispatched when the touch exits the drop target's bounds or when the drag is cancelled while the touch is within the drop target's bounds.IDropTarget
  Dispatched when the touch moves within the drop target's bounds.IDropTarget
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
dragDrop Event
Event Object Type: feathers.events.DragDropEvent
DragDropEvent.type property = feathers.events.DragDropEvent.DRAG_DROP

Dispatched when an accepted drag is dropped on the target. Will not be dispatched if the drop target hasn't accepted 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.
isDroppedtrue
localXThe x location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
localYThe y location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
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 a IDropTarget when a drop occurs.
dragEnter Event  
Event Object Type: feathers.events.DragDropEvent
DragDropEvent.type property = feathers.events.DragDropEvent.DRAG_ENTER

Dispatched when the touch enters the drop target's bounds. Call acceptDrag() on the drag and drop manager to allow the drag to the be dropped on the target.

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
localXThe x location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
localYThe y location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
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 a IDropTarget when a drag enters its bounds.
dragExit Event  
Event Object Type: feathers.events.DragDropEvent
DragDropEvent.type property = feathers.events.DragDropEvent.DRAG_EXIT

Dispatched when the touch exits the drop target's bounds or when the drag is cancelled while the touch is within the drop target's bounds. Will not be dispatched if the drop target hasn't accepted 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
localXThe x location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
localYThe y location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
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 a IDropTarget when a drag exits its bounds.
dragMove Event  
Event Object Type: feathers.events.DragDropEvent
DragDropEvent.type property = feathers.events.DragDropEvent.DRAG_MOVE

Dispatched when the touch moves within the drop target's bounds.

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
localXThe x location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
localYThe y location, in pixels, of the current action, in the local coordinate system of the IDropTarget.
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 a IDropTarget when a drag moves to a new location within its bounds.