Product Version : | Feathers 1.0.0 |
A display object that can accept data dropped by the drag and drop
manager.
public function dispatchEvent(event:Event):void
Parameters
public function dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Parameters
| type:String |
|
| bubbles:Boolean (default = false )
|
|
| data:Object (default = null )
|
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:
Property | Value |
---|
bubbles | false |
currentTarget | The 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 . |
data | Same as the dragData property. |
dragData | The feathers.dragDrop.DragData
instance associated with this drag. |
isDropped | true |
localX | The x location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
localY | The y location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
target | The 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.
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:
Property | Value |
---|
bubbles | false |
currentTarget | The 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 . |
data | Same as the dragData property. |
dragData | The feathers.dragDrop.DragData
instance associated with this drag. |
isDropped | false |
localX | The x location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
localY | The y location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
target | The 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.
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:
Property | Value |
---|
bubbles | false |
currentTarget | The 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 . |
data | Same as the dragData property. |
dragData | The feathers.dragDrop.DragData
instance associated with this drag. |
isDropped | false |
localX | The x location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
localY | The y location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
target | The 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.
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:
Property | Value |
---|
bubbles | false |
currentTarget | The 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 . |
data | Same as the dragData property. |
dragData | The feathers.dragDrop.DragData
instance associated with this drag. |
isDropped | false |
localX | The x location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
localY | The y location, in pixels, of the
current action, in the local coordinate system of the IDropTarget . |
target | The 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.
Sat Jun 18 2022, 02:58 PM -07:00