Skip to content

Instantly share code, notes, and snippets.

@cccaldas
Created June 8, 2012 19:33
Show Gist options
  • Save cccaldas/2897733 to your computer and use it in GitHub Desktop.
Save cccaldas/2897733 to your computer and use it in GitHub Desktop.
import flash.events.MouseEvent;
var clicks:Number = 0;
btn_one.addEventListener(MouseEvent.CLICK, btn_one_click);
function btn_one_click(e:MouseEvent):void {
clicks += 1;
output();
}
function output():void {
trace(clicks);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment