Packagefeathers.dragDrop
Interfacepublic interface IDropTarget

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

See also

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.

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.

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.

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.