Drag and Drop Within a List
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" creationComplete="creationHandler();">
<mx:Script>
import mx.collections.ArrayCollection;
private function creationHandler():void
{
var collection:ArrayCollection = new ArrayCollection( ['A', 'B', 'C'] );
contactList.dataProvider = collection;
}
</mx:Script>
<mx:Panel title="Contact List:" width="200" height="200">
<mx:List id="contactList" width="100%" height="100%"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
/>
</mx:Panel>
</mx:Application>
Related examples in the same category