Home > Blog > AS3 Pitfalls – MouseEvent.DOUBLE_CLICK

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

Ryan Henson Creighton is a Toronto-based game developer, and founder of Untold Entertainment Inc., specializing in online games for kids, teens, tweens and preschoolers.
Ryan Henson Creighton
Ryan Henson Creighton
View all posts by Ryan Henson Creighton

Popularity: 6% [?]

Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading ... Loading ...
                      

                                 
 

3 Responses to “AS3 Pitfalls – MouseEvent.DOUBLE_CLICK”

  1. TheBigCheese says:

    Thanks!

  2. Many thanks! ( Livedocs should mention this in the first place)

  3. How to use the double click in the stage class?

Leave a Reply