stop(); btn.addEventListener(MouseEvent.CLICK, fnk); var A:String; function fnk(e:MouseEvent):void { A = textpole.text; gotoAndStop(2); }