Click and DoubleClick Problem
I'm currently trying to set up event handlers for both click and double click events, but only the function relating to the click event is ever called. Both event listeners are simply attached to the stage in exactly the same way e.g.
stage.addEventListener(MouseEvent.DOUBLE_CLICK, CancelSelection);
stage.addEventListener(MouseEvent.CLICK, MoveObject);
Yet the use of the trace command in each function reveals that the double click function, CancelSelection, is never called.
The code in cancel selection is simply:
private function CancelSelection(evt:MouseEvent):void
{
trace("Deselecting...");
}
And ideas what's going wrong here?
