Flex Drag and Drop Component:
The Flex 4 Drag and Drop is a process for selecting an item from a list or component and move on mouse pointer and drop when release mouse pointer. Item are put from one position to another position or one list to another list.
For example :-
<?xml version="1.0"?>
<!-- dragdrop\SimpleTreeSelf.mxml -->
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script><![CDATA[
private function initApp():void {treeList.dataProvider = DP;
}
]]>
</mx:Script> <mx:XML id="DP"><node label="Name">
<node label="Deepak"/>
<node label="Ravi kant"/>
<node label="Brijesh"/>
<node label="Avanish"/>
</node>
</mx:XML> <mx:Tree id="treeList"showRoot="
false"labelField="
@label"dragEnabled="
true"dropEnabled="
true"allowMultipleSelection="
true"creationComplete="initApp();"
/></mx:Application>
Output:

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.