I need to handle Drag 'n Drop in a Tree component by hand,
because datas come from an images list.
Therefore, I need to know on which node in the tree the user
drop the image. In the official documentation, I didn't find a way
to get the node where mouse is over. I found a solution with
getNodeDIsplayedAt() in the previous versions of Flex, but it
disapperead in Flex 2 !!
I think there is a common pattern to do such a thing but I
can't find it :(. Does anybody here know about it ?
It sounds like a bug for people there. I came to the same
conclusions. I don't understand why there is no clean way to handle
the drop on a tree.
I made my own solution, but it is just a hack :
- get the list index with calculateDropIndex(), inherited
from listbase : you just get the index as if it is a list, not a
- then write a algorithm to parse your datas and find the
drop node by looking at isItemOpen() for each branch ...
It works for me, but it took me so much time for such a basic