[flexcoders] Tree DragAndDrop no data for leaf

2006-02-22 Thread Sönke Rohde
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

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-22 Thread Matt Chotin
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 &q

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-22 Thread Jason Hawryluk
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-De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part

Re: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde
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.  

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk
.comObjet : Re: [flexcoders] Tree DragAndDrop no data for leaf 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 &

Re: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde
e? > > -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 > >

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk
>    > 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: flexcod

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk
.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

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde
 : RE: [flexcoders] Tree DragAndDrop no data for leaf I really see no prob with this i traced   isArray l 1 doDragDrop Seems to work, what exactly are you expecting ? as a result other then the above jason   -Message d'

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk
oders@yahoogroups.comObjet : RE: [flexcoders] Tree DragAndDrop no data for leaf Exactly! Seems like a bug doesn't it?   Cheers, Sönke Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Jason HawrylukGesendet: Donnerstag, 23. Februar 2006

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk
ot; + a[0].toString());    }*/    }   Anyway hope this helps, cheers   Jason     -Message d'origine-De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Jason HawrylukEnvoyé : jeudi 23 février 2006 14:02À : flexcoders@yahoogroups.comObjet : RE:

Re: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde
: flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Tree DragAndDrop no data for leaf I have to assume that if this works   var data:Object = event.dragSource.dataForFormat("treeItems");trace("doDragDrop " + data[0].parent());   the xml or ret