Mega Code Archive

 
Categories / Flex / Components
 

Drag And Drop List Sample

<?xml version="1.0" encoding="utf-8"?> <mx:Application layout="absolute"    xmlns:mx="http://www.adobe.com/2006/mxml"    width="450" height="350"    creationComplete="initApp();"   backgroundColor="#FFFFFF">   <mx:Script>          private function initApp():void{       words.dataProvider = ['A', 'B', 'C', 'D', 'E', 'F'];               english.dataProvider = [];       spanish.dataProvider = [];     }      </mx:Script>   <mx:HBox x="0" y="0" width="450" height="350">     <mx:List id="words" allowMultipleSelection="true" dragEnabled="true" y="25" x="7"/>     <mx:List id="english" dropEnabled="true" y="25" x="223"/>     <mx:List id="spanish" dropEnabled="true" y="177" x="223"/>   </mx:HBox> </mx:Application>