# Clicking The Button Continuously

**URL:** <https://forum.kirupa.com/t/clicking-the-button-continuously/322756>\
**Category:** Uncategorized\
**Created:** [June 2, 2011, 2:48am UTC](https://forum.kirupa.com/t/clicking-the-button-continuously/322756 "2011-06-02T02:48:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeponkz](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Post date:** [June 2, 2011, 2:48am UTC](https://forum.kirupa.com/t/clicking-the-button-continuously/322756/1 "2011-06-02T02:48:38Z")

</div>

correct me if im wrong…

if i click the button continuously, there will be also continuous trace of “click” base on how many times i clicked the button…

now the question is, how could i make it only one trace of “click” event if i clicked the button many times?

```auto

button.addEventListener(MouseEvent.CLICK, onClick)

function onClick(e:MouseEvent):void
{
     trace("click");
}

```
