Combined Code
movieClip 3 {
}
movieClip 8 {
}
button 14 {
on (release) {
startMovie();
}
}
movieClip 16 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v4;
if (v4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop('loaded');
}
return undefined;
}
}
dt = getTimer() - time;
time += dt;
frameAccum += dt;
var v3 = 0;
for (;;) {
if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break;
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
frameAccum -= FRAME_TIME;
v3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return undefined;
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof clip[childName] == 'movieclip') {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.33333333333334;
var AUTO_PLAY = true;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
}
frame 2 {
stop();
}
}
button 21 {
on (release) {
gotoAndPlay(103);
}
}
button 22 {
on (release) {
gotoAndPlay(52);
}
}
frame 51 {
gotoAndPlay(2);
}
frame 102 {
gotoAndPlay(154);
}
frame 153 {
gotoAndPlay(204);
}
button 26 {
on (release) {
gotoAndPlay(254);
}
}
frame 203 {
gotoAndPlay(154);
}
button 28 {
on (release) {
gotoAndPlay(305);
}
}
frame 253 {
gotoAndPlay(204);
}
frame 304 {
gotoAndPlay(2);
}
frame 355 {
gotoAndPlay(2);
}