# MouseEvent CLICK and DOUBLE\_CLICK on same object

**URL:** <https://forum.kirupa.com/t/mouseevent-click-and-double-click-on-same-object/248443>\
**Category:** flash\
**Created:** [January 8, 2008, 9:15am UTC](https://forum.kirupa.com/t/mouseevent-click-and-double-click-on-same-object/248443 "2008-01-08T09:15:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlogan](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jlogan](https://forum.kirupa.com/u/jlogan)\
**Post date:** [January 8, 2008, 9:15am UTC](https://forum.kirupa.com/t/mouseevent-click-and-double-click-on-same-object/248443/1 "2008-01-08T09:15:38Z")

</div>

Do you folks have any suggestions on how to listen on a SINGLE CLICK as well as DOUBLE CLICK for an object?

Meaning, one behaviour if the object is single clicked and another behaviour if it is double clicked.

Simply adding two event listeners (CLICK and DOUBLE\_CLICK) leads to CLICK handler getting called always.

I understand one could start a timer upon the CLICK and if another CLICK doesn’t arrive within ‘x’ milliseconds generate a SINGLE\_CLICK event, else generate a DOUBLE\_CLICK event. It seems like a hack and dependant on CPU load.

Is there a standard better way of doing this?

Thanks in advance,  
-jlogan
