| Package | feathers.dragDrop |
| Class | public class DragDropManager |
| Inheritance | DragDropManager Object |
| Product Version : | Feathers 1.0.0 |
See also
| Property | Defined By | ||
|---|---|---|---|
| dragData : DragData [static] [read-only]
The data associated with the current drag. | DragDropManager | ||
| dragSource : IDragSource [static] [read-only]
The IDragSource that started the current drag. | DragDropManager | ||
| isDragging : Boolean [static] [read-only]
Determines if the drag and drop manager is currently handling a drag. | DragDropManager | ||
| touchPointID : int [static] [read-only]
The ID of the touch that initiated the current drag. | DragDropManager | ||
| Method | Defined By | ||
|---|---|---|---|
acceptDrag(target:IDropTarget):void [static]
Tells the drag and drop manager if the target will accept the current
drop. | DragDropManager | ||
cancelDrag():void [static]
Immediately cancels the current drag. | DragDropManager | ||
startDrag(source:IDragSource, touch:Touch, data:DragData, dragAvatar:DisplayObject = null, dragAvatarOffsetX:Number = 0, dragAvatarOffsetY:Number = 0):void [static]
Starts a new drag. | DragDropManager | ||
| dragData | property |
dragData:DragData [read-only]
The data associated with the current drag. Returns null
if there is not a current drag.
public static function get dragData():DragData| dragSource | property |
dragSource:IDragSource [read-only]
The IDragSource that started the current drag.
public static function get dragSource():IDragSource| isDragging | property |
isDragging:Boolean [read-only] Determines if the drag and drop manager is currently handling a drag. Only one drag may be active at a time.
public static function get isDragging():Boolean| touchPointID | property |
touchPointID:int [read-only]
The ID of the touch that initiated the current drag. Returns -1
if there is not an active drag action. In multi-touch applications,
knowing the touch ID is useful if additional actions need to happen
using the same touch.
public static function get touchPointID():int| acceptDrag | () | method |
public static function acceptDrag(target:IDropTarget):void
Tells the drag and drop manager if the target will accept the current
drop. Meant to be called in a listener for the target's
DragDropEvent.DRAG_ENTER event.
Parameters
target:IDropTarget |
| cancelDrag | () | method |
public static function cancelDrag():voidImmediately cancels the current drag.
| startDrag | () | method |
public static function startDrag(source:IDragSource, touch:Touch, data:DragData, dragAvatar:DisplayObject = null, dragAvatarOffsetX:Number = 0, dragAvatarOffsetY:Number = 0):voidStarts a new drag. If another drag is currently active, it is immediately cancelled. Includes an optional "avatar", a visual representation of the data that is being dragged.
Parameters
source:IDragSource | |
touch:Touch | |
data:DragData | |
dragAvatar:DisplayObject (default = null) | |
dragAvatarOffsetX:Number (default = 0) | |
dragAvatarOffsetY:Number (default = 0) |