IDraggable

The IDraggable interface must be used if you are implementing your own drag and drop object for external items that can be dropped onto the tree. Generally, you will not need to use or reference this class when taking advantage of the default drag and drop behavior for the AdvancedTree. For examples of this behavior, see Dragging and Dropping.

IDraggable classes must extend DisplayObject, and the interfaces enforces some of the properties found on DisplayObject to ensure this. In addition, the interface requires that three additional methods are implemented, as defined below.

 

adjustDragPosition()

Access

public

Availability

Flash Player 9.

Description

Allows an IDraggable instance to alter the default positioning of the draggable item in the global coordinate space.

Arguments

adjustDragPosition(point:Point)

Returns

Nothing

getDragData()

Access

public

Availability

Flash Player 9.

Description

Returns whatever data should be associated with the dragged item.

Arguments

None

Returns

Object

getDragProxy()

Access

public

Availability

Flash Player 9.

Description

Returns a bitmap representation of the object that is to be dragged.

Arguments

None

Returns

Bitmap