The double click event introduced in AS3 (MouseEvent.DOUBLE_CLICK) will be working only if the button property "doubleClickEnabled" is set to true explicitly. If this property is not set the double click event will not be triggered.
customButton.doubleClickEnabled = true;
customButton.addEventListener(MouseEvent.DOUBLE_CLICK,onThumbClick,false ,0,true);
function onThumbClick(event:MouseEvent) {
trace(event.currentTarget);
}
thank you! nice one!
ReplyDeleteis there a triple click?
ReplyDeleteThere is no in-built functions for triple click. You might need to write a custom class and functions for triple click.
ReplyDeleteThanks
Harish
wow, I was about to pull out my hair in frustration because the double click wasn't working!
ReplyDeleteThank you for posting this!
you are welcome..
ReplyDeleteCan the single click event still be used at the same time?
ReplyDeleteI am Suhas
ReplyDeletereally helpful,
Thanks Hari.....!
thanks, you've just saved my day :)
ReplyDelete