Menu:

Sponsor

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

Forum's topics

Latest Files

Categories

DragController

Flash Version: Flash 8
Total downloads: 4160
Category: Component
File last revision: 23, May 2006 01:05:52
License: LGPL

This is an updated version of DraggableController. It has been modified by Nicolas Zeh and includes these 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 - check a component's type
evt.addItem - add the source_item to the target_component at target_index (returns true on success otherwise false)
evt.removeItem - remove the source_item from the source_component (returns true on success otherwise false)
evt.addAndRemoveItem - for doing both of the prior operations
* the methods were renamed to fit Macromedias naming conventions for methods, i.e. starting lower case with no underscores:
AddReference -> addReference
RemoveReference -> removeReference
Veto -> veto
Skip -> skip

* 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)

 Comments Feed

Do you like this file? Please make a little donation

Flash content

 

Comments (21)

idalgo on 27th September 2008

No help? no examples.
Too poor

ali on 11th June 2008

may I get the source class file ?
I am using Flashdevelop and I need at least the intrinsic class.

Thanks

Ali

yugandhar.web on 5th November 2007

good

d.morosini on 26th October 2007

Salve.
Vorrei un informazione:
Sto cercando di utilizzare il DragController e avrei la necessità di sapere quale nodo sto cliccando (id,label) in modo da poter utilizzare le informazioni per altre procedure.
Purtroppo non riesco a trovare il modo, ho notato anche che esiste solo un double_click e non un click .
Sicuramente sto sbagliando qualcosa e non so dove sbattere il naso:) mi può aiutare per favore?
grazie
Daniele

cs_79 on 30th September 2007

Me parece muy interesante tu pagina. Muchas grácias por el aporte que das.

Atentamente

César Saldaña B.

jjsurlenet on 16th September 2007

Where is the doc and how to install it ?

florian.voelkl on 14th June 2007

Great tool,

but where can I download the sources (fla + as) of the DragController and maybe also of the example/preview.

I would really make it easier for me to be able to look at the code, to understand how to use it.

Thanks,
Flo

gustavo on 23rd May 2007

You have to activate the Help for this controller from the Extension Manager

pjhh on 22nd October 2006

It looks awesome, just what I'm looking for

hako on 22nd September 2006

Hi,

What a GREAT tool!!!

A small bug:
The dragging icon bar shortly appears at the left top.

Add this toDragController.as in function _CreateDraggingIcon after
_icon._alpha = 60; (line 657?)
_icon._x = this._parent._xmouse;
_icon._y = this._parent._ymouse;

Greeting from Germany
Harald

Add your comment