Packageflash.desktop
Classpublic class NativeDragOptions
InheritanceNativeDragOptions Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 1.0

The NativeDragOptions class defines constants for the names of drag-and-drop actions allowed in a drag-and-drop operation.

Drag actions are part of a feedback mechanism to allow the initiating and target objects to cooperate in the drag-and-drop exchange. The actions are only a hint to the operating system. It is up to the drag initiator and target objects involved in the transaction to implement the proper behavior.

An initiating object should only allow the actions that it supports. For example, an initiating object should allow the move action only if that object's internal logic removes the source data when a target accepts a drop with a move action.

A new NativeDragOptions object has all properties initialized to true (all actions allowed).

See also

flash.desktop.NativeDragManager
flash.events.NativeDragEvent


Public Properties
 PropertyDefined by
  allowCopy : Boolean = true
A drop target is allowed to copy the dragged data.
NativeDragOptions
  allowLink : Boolean = true
A drop target is allowed to create a link to the dragged data.
NativeDragOptions
  allowMove : Boolean = true
A drop target is allowed to move the dragged data.
NativeDragOptions
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
  
Constructs a string containing the current settings of this NativeDragOptions object.
NativeDragOptions
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
allowCopyproperty
public var allowCopy:Boolean = true

Language version: ActionScript 3.0
Runtime version: AIR 1.0

A drop target is allowed to copy the dragged data.

allowLinkproperty 
public var allowLink:Boolean = true

Language version: ActionScript 3.0
Runtime version: AIR 1.0

A drop target is allowed to create a link to the dragged data.

allowMoveproperty 
public var allowMove:Boolean = true

Language version: ActionScript 3.0
Runtime version: AIR 1.0

A drop target is allowed to move the dragged data.

Method detail
toString()method
public function toString():String

Language version: ActionScript 3.0
Runtime version: AIR 1.0

Constructs a string containing the current settings of this NativeDragOptions object.

Returns
String — String The current settings of this object in a string.