[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

Mouse Double click over an image or object 4 a specific event. How?

Hi, How could I identify a mouse double click over an image or object as a specific event ?. For example:

  single click over an image or object ---> in order to do a
                                            thing.

  double click over an image or object ---> in order to do
                                            another thing.

  Thanks.
0
Deladier
Asked:
Deladier
1 Solution
 
froderikCommented:
For 5 points I suggest looking at the MouseEvent class to see whether you can find out if a MouseEvent is double or not.

If you already know how to handle event it should not be so hard to find out.

(In case you increase the points it would be interesting to know which event model you use, 1.0 or 1.1.)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now