Packagespark.layouts.supportClasses
Classpublic class DropLocation
InheritanceDropLocation Inheritance Object

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.

See also

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


Public Properties
 PropertyDefined By
  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
 MethodDefined By
  
Constructor.
DropLocation
Property Detail
dragEventproperty
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.

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

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