After I drag and drop a label(or other UIComponent) in a container, i want to double click the label to show me an alert. well it doesn't work.
i've tried in the dragCompleteHandler to put event.dragIntiator.addEventListener or event.currentTargetaddEventListner but it doesn't work. Also i enabled the DoubleClickEnabler and still nothing?
Any ideas because i tried to google it and nothing came out with this problem.
thanks
To capture a double-click event on a UIComponent
(or more generally, an InteractiveObject
), set both its mouseEnabled
and doubleClickEnabled
properties to true
and add a MouseEvent.DOUBLE_CLICK
event listener.
iaObject.doubleClickEnabled = true;
iaObject.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler);
The mouseEnabled
property should be set to true
by default, but it could have been flipped by the dragging code. You might want to check it in your debugger to be sure.