Clicking The Button Continuously

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?



button.addEventListener(MouseEvent.CLICK, onClick)

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