hi jason,
this was not the problem. look at my example i responsed to
Matt.
Cheers
Sönke
the return from your dataForFormat call is an array or a collection.so try trace("data " + data[0].toString());where the [0] is the first item in the collection or array.Jason-----Message d'origine-----Hi,
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Sönke Rohde
Envoyé : mercredi 22 février 2006 19:02
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Tree DragAndDrop no data for leaf
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="" /> and
nothing for the data is traced. When I drag a branch like:
<node label="common">
<node label="Test" data=""/>
</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
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.