AS3 Pitfalls – MouseEvent.DOUBLE_CLICK

PROBLEM:

MouseEvent.DOUBLE_CLICK doesn’t work!

SOLUTION:

Set the object’s doubleClickEnabled flag to true

1
2
myBtn.doubleClickEnabled = true;
myBtn.addEventListener(MouseEvent.DOUBLE_CLICK, double_click);

Other search terms:
DOUBLE_CLICK not working
DOUBLE_CLICK not responding
DOUBLE_CLICK broken
DOUBLE_CLICK bug
DOUBLE_CLICK buggy
DOUBLE_CLICK problem

3 thoughts on “AS3 Pitfalls – MouseEvent.DOUBLE_CLICK

Leave a Reply

Your email address will not be published. Required fields are marked *