Mouse Click Event AS3
myButton.addEventListener(MouseEvent.CLICK, myFunction, false, 0, true);
public function myFunction(e:MouseEvent):void {
trace("do Something");
}
myButton.addEventListener(MouseEvent.CLICK, myFunction, false, 0, true);
public function myFunction(e:MouseEvent):void {
trace("do Something");
}