spark.layouts.supportClasses

# DropLocation - AS3 Flex

Package | spark.layouts.supportClasses
Class | public class DropLocation
Inheritance | DropLocation Object
Subclasses | MosaicDropLocation

Language Version: | ActionScript 3.0

Product Version: | Flex 4

Runtime Versions: | Flash Player 10, AIR 1.5

The DropLocation class contains information describing the drop location for the dragged data in a drag-and-drop operation.

The `DropLocation` is created by the `LayoutBase` class when the `List` calls the layout's `calculateDropLocation()` method in response to a `dragOver`.

The DropLocation class is used by the layout for operations such as calculating the drop indicator bounds and drag-scroll deltas.

Related API Elements

spark.layouts.supportClasses.LayoutBase.calculateDropLocation()
spark.layouts.supportClasses.LayoutBase.calculateDropIndicatorBounds()

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | dragEvent : DragEvent = null The DragEvent associated with this location. | DropLocation
|  | dropIndex : int = -1 The drop index corresponding to the event. | DropLocation
|  | dropPoint : Point = null The event point in local coordinates of the layout's target. | DropLocation

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | DropLocation() Constructor. | DropLocation
|  | 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 Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Property Detail

### dragEvent

property

`public var dragEvent:DragEvent = null`

Language Version: | ActionScript 3.0

Product Version: | Flex 4

Runtime Versions: | Flash Player 10, AIR 1.5

The `DragEvent` associated with this location.

### dropIndex

property

`public var dropIndex:int = -1`

Language Version: | ActionScript 3.0

Product Version: | Flex 4

Runtime Versions: | Flash Player 10, AIR 1.5

The drop index corresponding to the event.

### dropPoint

property

`public var dropPoint:Point = null`

Language Version: | ActionScript 3.0

Product Version: | Flex 4

Runtime Versions: | Flash Player 10, AIR 1.5

The event point in local coordinates of the layout's target.

Constructor Detail

### DropLocation

()
Constructor

`public function DropLocation()`

Language Version: | ActionScript 3.0

Product Version: | Flex 4

Runtime Versions: | Flash Player 10, AIR 1.5

Constructor.

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