jambe_right : onClipEvent (enterFrame) { if (!isStop) { if ((this._rotation >= -28 && direction == -1) || (this._rotation <= 0 && direction == 1)) { this._rotation += 2 * direction; } else { direction = -direction; } } } onClipEvent (load) { var direction = 1; var isStop = false; this._rotation = -28; } jambe_left : onClipEvent (enterFrame) { if (!isStop) { if ((this._rotation >= -28 && direction == -1) || (this._rotation <= 0 && direction == 1)) { this._rotation += 2 * direction; } else { direction = -direction; } } } onClipEvent (load) { var direction = -1; var isStop = false; } stop_btn : onClipEvent (mouseDown) { _root.jambe_left.isStop = true; _root.jambe_right.isStop = true; } play_btn : onClipEvent (mouseDown) { _root.jambe_left.isStop = false; _root.jambe_right.isStop = false; }