Because the dataProviders are presumably dissimilar, with the tree being
hierarchical and the list being linear, you will not be able to depend
on the built-in functionality, but will need to override the drag
handler functions, and update the dataProviders yourself.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of graysonpierce
Sent: Monday, November 10, 2008 2:14 PM
To: [email protected]
Subject: [flexcoders] drag and drop from Tree to List

 

I have a tree and a list that I'd like to use drag and drop on to do the
following:

1. Do reordering in the list (ie move the items around)
2. Drag items from the tree to the list in order to copy items

The problem I'm experiencing is that when I turn on dropEnabled="true"
on the list the reordering of the list works fine however it stops
allowing the tree to drop items on the list even if I explicitly set a
drag enter function list this

public function onDragEnter( event:DragEvent ) : void {
DragManager.acceptDragDrop(List(event.currentTarget));
}

 

Reply via email to