MyButton.addEventListener(MouseEvent.CLICK, funClick); //MyButton-название кнопки function funClick(Event:MouseEvent):void { trace("HELLO"); gotoAndStop("part1"); }