Combined Code
frame 1 {
stop();
}
// unknown tag 88 length 208
movieClip 9 {
frame 1 {
stop();
}
}
instance lBar of movieClip 9 {
onClipEvent (load) {
_root.cLoad = 0;
_root.loadedBytes = 0;
this._xscale = 1;
}
onClipEvent (enterFrame) {
this._xscale = (_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100;
_root.cLoad = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_root.loadedBytes = _root.getBytesLoaded();
if (_root.cLoad == 100) {
_root.gotoAndStop('tt');
}
}
}
frame 2 {
totalf = turntable._totalframes;
framestep = 0;
frame = 1;
frame1 = frame;
framebase = frame;
frame_add = 1;
cursordummy._visible = false;
auto_rot_wait = 0;
auto_rot_speed = 5;
speed_factor = (totalf / 360) * 0.7;
this.onMouseDown = function () {
startx = _xmouse;
dragging = 1;
cursordummy._visible = true;
Mouse.hide();
};
this.onMouseUp = function () {
dragging = 0;
framebase = frame1;
cursordummy._visible = false;
Mouse.show();
};
this.onMouseMove = function () {
cursordummy._x = _xmouse;
cursordummy._y = _ymouse;
};
this.onEnterFrame = function () {
if (_root.autoplay != 1) {
if (dragging == 1) {
frame1 = framebase - (_xmouse - startx) * speed_factor;
}
} else {
if (auto_rot_wait < totalf) {
auto_rot_wait += auto_rot_speed;
frame1 += auto_rot_speed;
while (frame1 > totalf) {
frame1 -= totalf;
frame -= totalf;
}
framebase = frame1;
} else {
auto_rot_wait = 0;
_root.autoplay = 0;
}
}
framestep = (frame1 - frame) * 0.1;
frame += framestep * 0.5;
frame2 = Math.round(frame);
while (frame2 > totalf) {
frame2 -= totalf;
}
while (frame2 < 1) {
frame2 += totalf;
}
turntable.gotoAndStop(frame2);
};
}
movieClip 190 {
}
button 195 {
on (release) {
_root.autoplay = 1;
}
}