Combined Code
movieClip 121 {
}
instance of movieClip 121 {
onClipEvent (load) {
this.gotoAndStop(this._currentframe);
}
onClipEvent (mouseDown) {
flag = true;
}
onClipEvent (mouseUp) {
flag = false;
}
onClipEvent (mouseMove) {
if (flag) {
xmouse = _root._xmouse;
if (xmouse - lastXMouse > 0) {
if (this._currentframe + 1 > this._totalframes) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(this._currentframe + 1);
}
} else {
if (this._currentframe - 1 < 1) {
this.gotoAndStop(59);
} else {
this.gotoAndStop(this._currentframe - 1);
}
}
lastXMouse = xmouse;
}
}
}