Test Snippet
this.addEventListener(MouseEvent.CLICK, onClick); function onClick(e:MouseEvent):void { //code here... }