onFrame(1){ oldx=_xmouse; } onFrame(2){ newx=oldx-_xmouse //(смотря в какую сторону хочешь) if (newx>200) <следующий кадр> this.gotoAndPlay(2); }