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 May 19, 2006 in actionscript , flash

DragController updated

DragController.pngThanks to the hard work of Nicolas Zeh the component I did some time ago (draggable controller) has now lot of changes!


  • a new name: DragController

  • drag and drop multiple items at once if multipleSelection is set to true for a component
  • added the following methods to the DragEvent Object:
  • evt.checkType

  • evt.addItem

  • evt.removeItem

  • evt.addAndRemoveItem


  • the methods were renamed to fit Macromedias naming conventions for methods

  • i lowered the addReference restriction that both components have to be UIComponents. Now only the source has to be an UIComponent and the target suffices to be a MovieClip.

  • added a veto method for the "drag_start" event. So user can decide on this Event if he would like to allow dragging of this specific item.

  • added an onDropData method besides the Event handlers. So you can assign this method directly to a defined target component.

  • added flags similar to DragAndDropTree component. These are:
  • DENYDRAGFOLDER (only tree component)
  • DENYDRAGITEM (only tree component, as i makes no sense for other components)
  • DENYDROPINTOITEM (only tree component)
  • DENYDROPINTOFOLDER (only tree component)
  • DENYDROPINTO (only tree component)
  • DENYDROPINBETWEEN this option disallows setting a specific target index position and will add the item at the end of the List, DataGrid, Tree

  • removed some bugs concerning Focus on Component and selectedItems. But i am not sure if there aren't some left due to Flash's strange Focus mechanisms. (sure, I still haven't understood the focus mechnism of MM components)


There's also a very comprehensive help of the component (just look in the F1 flash help panel)

- See the example
- Download here

 

Bookmark and Share

 

 

1 comments
thank u for the uselful information , and especially for the drag controller_test. i have tried you tips it works keep up your good work i will be a regular reader of ur blog


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/2