#12003/3/12 7:51:25
onClipEvent (load) {
mouse = this._xmouse;
mouseDrag = this._xmouse;
dragging = false;
movieWidth = this._width;
movieCenter = 0;
noOfFrames = this._totalFrames;
currentFrame = this._currentFrame;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
frameToGoto = currentFrame-Math.round(((mouseDrag-mouse)/10));
if (hitTest(_root._xmouse, _root._ymouse, false)) {
mouseDrag = this._xmouse;
if (dragging) {
if (frameToGoto>=1 && frameToGoto<=noOfFrames) {
this.gotoAndStop(frameToGoto);
}
if (frameToGoto<1) {
frameToGoto += noOfFrames;
this.gotoAndStop(frameToGoto);
}
if (frameToGoto>noOfFrames) {
frameToGoto -= noOfFrames;
this.gotoAndStop(frameToGoto);
}
}
}
}
onClipEvent (mouseDown) {
mouse = this._xmouse;
if (hitTest(_root._xmouse, _root._ymouse, false)) {
dragging = true;
}
}
onClipEvent (mouseUp) {
dragging = false;
currentFrame = this._currentFrame;
}
onClipEvent (keyDown) {
if (Key.isDown(109)) {
this._xscale--;
this._yscale--;
}
if (Key.isDown(107)) {
this._xscale++;
this._yscale++;
}
// updateAfterEvent();
}