package{ import flash.display.Sprite; import flash.events.MouseEvent; public class Main extends Sprite{ public function Main(){ addEventListener(MouseEvent.CLICK, onClick); } function onClick(event:MouseEvent):void { trace(" Handle click."); } } }
Related Scripts with Example Source Code in same category :