# Stop multiple clicking

**URL:** <https://forum.kirupa.com/t/stop-multiple-clicking/311455>\
**Category:** flash\
**Created:** [July 7, 2010, 1:45am UTC](https://forum.kirupa.com/t/stop-multiple-clicking/311455 "2010-07-07T01:45:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![holborner](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@holborner](https://forum.kirupa.com/u/holborner)\
**Post date:** [July 7, 2010, 1:45am UTC](https://forum.kirupa.com/t/stop-multiple-clicking/311455/1 "2010-07-07T01:45:08Z")

</div>

Hi all,  
I’m writing a function to some buttons that has a TweenLite function to it. I only want it to tween once when it’s clicked.

So to stop people clicking them multiple times, I’ve put a MouseEvent.CLICK, and a MouseEvent.DOUBLE\_Click EventListeners to the buttons. “scrollLeft” and “scrollRight” will do its usual thing and “doNothing” is just an empty function.

```auto

arrowLeft.addEventListener(MouseEvent.CLICK,scrollLeft);
arrowRight.addEventListener(MouseEvent.CLICK,scrollRight);
arrowLeft.addEventListener(MouseEvent.DOUBLE_CLICK,doNothing);
arrowRight.addEventListener(MouseEvent.DOUBLE_CLICK,doNothing);

```

But the scrolling still works if I click super quick. Can someone tell me what’s the best way to stop this? I’m pondering putting doing a setInterval on the scrolling functions to disable the button for 1second or so.
