PDA

View Full Version : Start Drag Programatically



xjpmauricio
9 Mar 2011, 3:49 AM
Hi, is there a way i can start dragging a object programatically? without having to click on it?

Thanks!!!

9 Mar 2011, 3:56 AM
are you talking about the animation and all of that?

Drag is essentially *hooked* to the mouse events. So I would say, unless you have an event engine to synthesize mouse events, it's not that simple.

xjpmauricio
9 Mar 2011, 4:08 AM
If i use:


o.dd.startDrag(e);

...i notice that at least the icon changes to the drag icon but, the object still remains on place.