We use the three property dragEnabled, dropEnabled and dragMoveEnabled for performing drag and drop operation.
We use the three property dragEnabled, dropEnabled and dragMoveEnabled for performing drag and drop operation.We use the three property dragEnabled, dropEnabled and dragMoveEnabled for performing drag and drop operation. In this example you can see how we can drag and drop the item in the same component.
|
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"minWidth=" 955" minHeight="600"><![CDATA[ import mx.collections.ArrayCollection;studentData.dataProvider = new ArrayCollection([{aName: 'Bikrant', DOB:'01/01/1986',City: 'Delhi', State:'NewDelhi'},{aName: 'Brijesh', DOB:'15/07/1984',City: 'Noida', State:'Uttar Pradesh'},{aName: 'Gaurav', DOB:'27/06/1989',City: 'Mumbai', State:'Maharashtra'}]); } ]]> </fx:Script>chromeColor=" #555555"color=" #CCCCCC" width="425" height="254">horizontalAlign=" center"> <s:Label text="Student Information"color=" #000000"fontFamily=" Verdana"/> </mx:ApplicationControlBar>allowMultipleSelection=" true"dragEnabled=" true"dropEnabled=" true"dragMoveEnabled=" true"color=" #000000"x=" 10" y="33"creationComplete="gridinitialize()" > <mx:columns>&l</s:Application> |

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.