Friday, March 27, 2009

What is a drag manager

Question :What is a drag manager?
Answer :The DragManager class manages drag and drop operations, which let you move data from one place
to another in a Flex application. For example, you can select an object, such as an item in a List
control or a Flex control, such as an Image control, and then drag it over another component to add it
to that component.
All methods and properties of the DragManager are static, so you do not need to create an instance of
All Flex components support drag and drop operations. Flex provides additional support for drag and
drop to the List, Tree, and DataGrid controls.
When the user selects an item with the mouse, the selected component is called the drag initiator. The
image displayed during the drag operation is called the drag proxy.
When the user moves the drag proxy over another component, the dragEnter event is sent to that
component. If the component accepts the drag, it becomes the drop target and receives dragOver,
dragExit, and dragDrop events.
When the drag is complete, a dragComplete event is sent to the drag initiator.

No comments: