Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.desktop 
NativeDragOptions 
Packageflash.desktop
Classpublic class NativeDragOptions
InheritanceNativeDragOptions Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: 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



Public Properties
 PropertyDefined By
  AIR-only allowCopy : Boolean = true
A drop target is allowed to copy the dragged data.
NativeDragOptions
  AIR-only allowLink : Boolean = true
A drop target is allowed to create a link to the dragged data.
NativeDragOptions
  AIR-only 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
AIR-only 

allowCopy

property
public var allowCopy:Boolean = true

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0

A drop target is allowed to copy the dragged data.

AIR-only 

allowLink

property 
public var allowLink:Boolean = true

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0

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

AIR-only 

allowMove

property 
public var allowMove:Boolean = true

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0

A drop target is allowed to move the dragged data.

Method Detail

AIR-only toString

()method
public function toString():String

Language Version: ActionScript 3.0
Runtime Versions: 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.