btn1.addEventListener(MouseEvent.CLICK,funbtn1); function funbtn1(e:MouseEvent):void { qwerty.addFrameScript(10, stop); }