flash.desktop

# NativeDragOptions - AS3

Package | flash.desktop
Class | public class NativeDragOptions
Inheritance | NativeDragOptions 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).

Related API Elements

flash.desktop.NativeDragManager
flash.events.NativeDragEvent

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined 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
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Constructs a string containing the current settings of this NativeDragOptions object. | NativeDragOptions
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Property Detail

### 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.

### 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.

### 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

### 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00