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');
_root.cam = 1;
_root.turntable.tt1._visible = true;
_root.turntable.tt2._visible = false;
_root.turntable.tt3._visible = false;
_root.turntable.tt4._visible = false;
_root.turntable.tt5._visible = false;
_root.turntable.tt6._visible = false;
}
}
}
frame 2 {
totalf = turntable.tt1._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.tt1.gotoAndStop(frame2);
turntable.tt2.gotoAndStop(frame2);
turntable.tt3.gotoAndStop(frame2);
turntable.tt4.gotoAndStop(frame2);
turntable.tt5.gotoAndStop(frame2);
turntable.tt6.gotoAndStop(frame2);
};
}
movieClip 155 {
}
movieClip 300 {
}
movieClip 445 {
}
movieClip 590 {
}
movieClip 735 {
}
movieClip 880 {
}
movieClip 881 {
}
button 886 {
on (release) {
_root.autoplay = 1;
}
}
// unknown tag 88 length 66
button 894 {
on (release) {
if (_root.cam == 1) {
turntable.tt1._visible = true;
turntable.tt2._visible = false;
turntable.tt3._visible = false;
turntable.tt4._visible = false;
turntable.tt5._visible = false;
turntable.tt6._visible = false;
}
if (_root.cam == 2) {
turntable.tt1._visible = false;
turntable.tt2._visible = false;
turntable.tt3._visible = false;
turntable.tt4._visible = true;
turntable.tt5._visible = false;
turntable.tt6._visible = false;
}
}
}
button 899 {
on (release) {
if (_root.cam == 1) {
turntable.tt1._visible = false;
turntable.tt2._visible = true;
turntable.tt3._visible = false;
turntable.tt4._visible = false;
turntable.tt5._visible = false;
turntable.tt6._visible = false;
}
if (_root.cam == 2) {
turntable.tt1._visible = false;
turntable.tt2._visible = false;
turntable.tt3._visible = false;
turntable.tt4._visible = false;
turntable.tt5._visible = true;
turntable.tt6._visible = false;
}
}
}
button 904 {
on (release) {
if (_root.cam == 1) {
turntable.tt1._visible = false;
turntable.tt2._visible = false;
turntable.tt3._visible = true;
turntable.tt4._visible = false;
turntable.tt5._visible = false;
turntable.tt6._visible = false;
}
if (_root.cam == 2) {
turntable.tt1._visible = false;
turntable.tt2._visible = false;
turntable.tt3._visible = false;
turntable.tt4._visible = false;
turntable.tt5._visible = false;
turntable.tt6._visible = true;
}
}
}
button 911 {
on (release) {
_root.cam = 2;
if (_root.turntable.tt1._visible == true) {
_root.turntable.tt4._visible = true;
_root.turntable.tt1._visible = false;
}
if (_root.turntable.tt2._visible == true) {
_root.turntable.tt5._visible = true;
_root.turntable.tt2._visible = false;
}
if (_root.turntable.tt3._visible == true) {
_root.turntable.tt6._visible = true;
_root.turntable.tt3._visible = false;
}
_root.camToggleBut.gotoAndStop(2);
}
}
button 913 {
on (release) {
_root.cam = 1;
if (_root.turntable.tt4._visible == true) {
_root.turntable.tt1._visible = true;
_root.turntable.tt4._visible = false;
}
if (_root.turntable.tt5._visible == true) {
_root.turntable.tt2._visible = true;
_root.turntable.tt5._visible = false;
}
if (_root.turntable.tt6._visible == true) {
_root.turntable.tt3._visible = true;
_root.turntable.tt6._visible = false;
}
_root.camToggleBut.gotoAndStop(1);
}
}
movieClip 914 {
frame 1 {
stop();
}
}
instance camToggleBut of movieClip 914 {
onClipEvent (load) {
_root.cam = 1;
stop();
}
}
movieClip 917 {
}