Mega Code Archive

 
Categories / Flex / Components
 

Drag-and-drop lets you move items from one List control to another

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp();">     <mx:Script>          import mx.collections.ArrayCollection;     private function initApp():void {         srclist.dataProvider =new ArrayCollection(['A', 'B', 'C']);         destlist.dataProvider = new ArrayCollection([]);     }        </mx:Script>     <mx:HBox>         <mx:VBox>             <mx:Label text="Available Activities"/>             <mx:List id="srclist" allowMultipleSelection="true" dragEnabled="true" dragMoveEnabled="true"/>         </mx:VBox>     <mx:VBox>         <mx:Label text="Activities I Like"/>         <mx:List id="destlist" dropEnabled="true"/>     </mx:VBox>     </mx:HBox> </mx:Application>