It may be a bug in the drag and drop code.  Can you send a test case?

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sönke 
Rohde
Sent: Wednesday, February 22, 2006 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree DragAndDrop no data for leaf

Hi,
I have got a problem getting the data of a dragged leaf from a tree.
The DragEvent.DRAG_DROP is handled by the following function:

private function doDrop(e:DragEvent):void{
        var data:Object = e.dragSource.dataForFormat("treeItems");
        trace("data " + data.toString());
}

The leaf which is dragged has this XML <node label="Test" data="foo" /> and
nothing for the data is traced. When I drag a branch like:
<node label="common">
        <node label="Test" data="bar"/>
</node>
All is traced correctly.


Why do I get no data for the leaf? Is the XML malformated?

Thanks,
Sönke



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to