|
Hi Joan,
I put a sample that can be accessed at http://indesg.com/flexBugs/ListExample.swf
+++++++++++++++++++++++++++++++++++++++
The code is below:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="initApp();" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ import mx.controls.Text; import mx.events.DragEvent; private function initApp():void { srclist.dataProvider = ['Reading', 'Television', 'Movies']; } private function popSelectItems(event:Event):void { var theSelectItems:Array = new Array(srclist.selectedItems); si.text = theSelectItems.toString(); } private function
doDragDrop(event:DragEvent):void
{ trace ("Drag Dropped"); } ]]> </mx:Script> <mx:XMLList id="treeData"> <node label="Mail Box"> <node label="Inbox"> <node label="Marketing"/> <node label="Product Management"/> <node label="Personal"/> </node> <node label="Outbox"> <node label="Professional"/> <node label="Personal"/> </node> <node label="Spam"/> <node label="Sent"/> </node> </mx:XMLList> <mx:HBox> <mx:VBox> <mx:Label text="Available Activities"/> <mx:List id="srclist" width="200" height="200" allowMultipleSelection="true" dragEnabled="true" change="popSelectItems(event)"/> </mx:VBox> <mx:VBox> <mx:Label text="Multi-select happens in IE, not in Mozilla, Opera ..." /> <mx:TextArea id="si" width="200" height="200" /> </mx:VBox> </mx:HBox> <mx:HBox> <mx:VBox backgroundColor="#ffffff"> <mx:Label text="Drag items from top - works !" /> <mx:List width="200" height="200" dropEnabled="true" /> </mx:VBox> <mx:VBox width="200" height="200"> <mx:Label text="Tree does not recognize dragDrop ! :-(" /> <mx:Tree id="myTree" width="100%" height="100%" dropEnabled="true" dragDrop="doDragDrop(event)" dragEnabled="true" labelField="@label" showRoot="false" dataProvider="{treeData}"/> </mx:VBox> </mx:HBox> </mx:Application> +++++++++++++++++++++++++++++++++++++++
Thanks
Sree
__._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- Re: [flexcoders] Multi-select not happening! - bug? Sreejith Unnikrishnan
- RE: [flexcoders] Multi-select not happening! - ... Joan Lafferty

