I am working on the flex tree drag and drop functionality and i have couple of questions on it.
I have given a array collection as the data provider .Each branch(folder) and leaf(item) has a unique id.
the tree structure is some thing like this.
folder1.
folder2.
item1.
item2.
item3.
folder3.
item4.
item5.
item6.
folder4.
item7.
item8.
folder5.
item9.
item10.
folder6.
folder7.
folder8.
I need to to allow the user to drag and drop an item within the folder but not outside a folder. But he can drag and drop a folder anywhere.
So the user cant drag and drop an item folder1 or folder4 or folder6 level.
I found couple examples on google...but nothing worked in my favor.