Menu:

Sponsor

Discover Master of Alchemy, our first iPad/iPhone and iPod touch game!

Follow Me

 

Forum's topics

Latest Files

Archives

Top Rated

Categories

Photo Gallery


Alessandro Crugnola on December 1, 2004 in flash

Drag and Drop Tree component, yet another!

Yes, this is another drag and drop tree component :)
It was a log I wanted to extends the built-in Flash mx 2004 Tree component in order to allow drag and drop operations.. but time was always my enemy.
I was lucky that i need one for work.. i look around and i founded some cool other similar components, but i wanted to be able to do it by myself ;)
It just extends the base Tree component and you can set some drag and drop rules, just costants..
for example, i set these costants to be used:

TreeDnd.DEFAULT
TreeDnd.DENYALL
TreeDnd.DENYDRAGFOLDER
TreeDnd.DENYDRAGITEM
TreeDnd.DENYDROPFOLDER

they can be used in combinations:

myDnd.dragRules = TreeDnd.DENYDRAGFOLDER | TreeDnd.DENYDROPITEM

in this way you cannot drag a folder, only leaf nodes, and you cannt drop the dragged item into a leaf node, only into a folder or before/after another leaf node...







Link: http://www.sephiroth.it/file_detail.php?id=133

 

Bookmark and Share

 

 



Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Type the characters you see in the picture above.





 

TrackBacks

TrackBack URL for this entry: http://www.sephiroth.it/cgi-bin/mt/mt-tb.cgi/101