Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
spark.layouts.supportClasses 
DropLocation 
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



Public Properties
 PropertyDefined By
 Inheritedconstructor : 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
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
Constructor.
DropLocation
 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
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
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.