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
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
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
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.
.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 &
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
>
>
>
> 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
.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
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'
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
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:
:
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
12 matches
Mail list logo