Packageorg.apache.flex.core
Interfacepublic interface IDragInitiator
Implementors MXMLDragInitiator

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The IDragInitiator interface is the basic interface for the object that wants to know if a drop was accepted in a drag/drop operation. There are two methods instead of the usual one because in some scenarios the drag initiator needs to prepare the data before it gets dropped. For example, in a tree control, dragging from one node to another, the tree should un-parent the node before it is moved to the new parent node, so the tree would un-parent the node in acceptingDrop.



Public Methods
 MethodDefined By
  
acceptedDrop(dropTarget:Object, type:String):void
This method is called to notify the dragInitiator that you have accepted the drop.
IDragInitiator
  
acceptingDrop(dropTarget:Object, type:String):void
This method is called to notify the dragInitiator that you want to accept a drop.
IDragInitiator
Method Detail
acceptedDrop()method
public function acceptedDrop(dropTarget:Object, type:String):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

This method is called to notify the dragInitiator that you have accepted the drop.

Parameters

dropTarget:Object — The type of drop accepted. Allowed values are in org.apache.flex.core.DropType.
 
type:String

acceptingDrop()method 
public function acceptingDrop(dropTarget:Object, type:String):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

This method is called to notify the dragInitiator that you want to accept a drop.

Parameters

dropTarget:Object — The type of drop accepted. Allowed values are in org.apache.flex.core.DropType.
 
type:String