you can reuse the same function.
the currentTarget is what is calling the event, and that is the movieclip you called the addEventListener for.Code:function mouseUpHandler(evt:MouseEvent):void { gotoAndPlay(2); evt.currentTarget.removeEventListener(MouseEvent.MOUSE_UP,mouseUpHandler); }




Reply With Quote