Yep, dataForFormat(“treeItems”)
I think is what you want. As for only having one item in the destination List,
you could simply clear the list before adding in the treeItems in the dragDrop
handler.
Matt
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed
Sent: Wednesday, May 25, 2005 8:45
AM
To: [email protected]
Subject: [flexcoders] Drag and
Drop from tree to List
Hi,
I'm dragging and dropping from a tree to a list.
All the functionality works fine, but I'm trying
to call another
method when the item is dropped with the name of
the file from the
tree as the argument to that method.
Example: Tree has two objects in a folder node
called files:
File1.txt and File2.txt
When I drag from the tree and drop into the List
container (List1) I
want to call a method which has the File1.txt or
File2.txt as the
argument. Can I use the dataForFormat?
Also if I want to restrict this list to only
having 1 file in it how
can I have it to only have the last item that I
dropped into it,
thus removing the previous item, if there was one
there.
I tried to put a change event handler on the list,
but when you drop
an Item into the list this event is not called,
which I find
extremely wierd being that the list has in fact
'changed'. Explain
that one!
Regards,
Iain
Yahoo! Groups Links
|
- RE: [flexcoders] Drag and Drop from tree to List Matt Chotin
-