In this tutorial you will get to know about two way drag and drop in Flex. Examples will illustrate the concept.
In this tutorial you will get to know about two way drag and drop in Flex. Examples will illustrate the concept.
Flex Two Way Drag and Drop :-
In this tutorial you can see two way drag and drop for list based controls. In this example we can set dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" for both lists as you can see in this example.
Two-way Drag and Drop in Flex Example :-
<?xml version="1.0"?>
<!-- dragdrop\SimpleListToListMove.mxml -->
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp();"> <mx:Script><![CDATA[
nameList.dataProvider =
new ArrayCollection(['RK', 'BK', 'MK', 'AK', 'SK', 'JK']);petNameList.dataProvider =
new ArrayCollection([]);}
]]>
dragMoveEnabled="
true" dropEnabled="true" backgroundColor="yellow"/></mx:Application>
Output:-
