stop(); var theName:String; function playFunc(myEvent:MouseEvent):void { theName = name_txt.text; gotoAndStop(2); } start_btn.addEventListener(MouseEvent.CLICK, playFunc); var myTimes = new Array(); var times:int = 0; var lowSoFar:Number = 100;