Combined Code
movieClip 4 {
}
movieClip 8 {
}
movieClip 12 {
}
// unknown tag 88 length 118
button 20 {
on (release) {
startMovie();
}
}
movieClip 21 {
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 = false;
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();
}
}
movieClip 23 {
}
frame 3 {
if (_global.musicMC == undefined) {
_global.musicMC = _root.createEmptyMovieClip('musiccontainer', _root.getNextHighestDepth());
}
if (_global.musicSound == undefined) {
_global.musicSound = new Sound('musiccontainer');
_global.musicSound.attachSound('musicloop');
_global.musicSound.start(0, 999999);
}
play();
}
movieClip 37 {
}
button 39 {
on (release) {
_global.musicSound.setVolume(100 - _global.musicSound.getVolume());
}
}
movieClip 202 {
}
movieClip 225 {
}
button 227 {
on (release) {
gotoAndPlay(363);
}
}
frame 362 {
gotoAndPlay(283);
}
button 313 {
on (release) {
gotoAndPlay(435);
}
}
button 314 {
on (release) {
gotoAndPlay(283);
}
}
frame 434 {
gotoAndPlay(363);
}
button 390 {
on (release) {
gotoAndPlay(547);
}
}
button 391 {
on (release) {
gotoAndPlay(363);
}
}
frame 546 {
gotoAndPlay(435);
}
button 587 {
on (release) {
gotoAndPlay(557);
}
}
movieClip 590 {
}
button 597 {
on (release) {
gotoAndPlay(621);
}
}
button 598 {
on (release) {
gotoAndPlay(435);
}
}
frame 620 {
gotoAndPlay(557);
}
button 683 {
on (release) {
gotoAndPlay(693);
}
}
button 684 {
on (release) {
gotoAndPlay(557);
}
}
frame 692 {
gotoAndPlay(621);
}
button 1012 {
on (release) {
gotoAndPlay(928);
}
}
button 1013 {
on (release) {
gotoAndPlay(621);
}
}
frame 927 {
stop();
}
button 1027 {
on (release) {
gotoAndPlay(938);
}
}
movieClip 1030 {
}
button 1036 {
on (release) {
gotoAndPlay(1098);
}
}
button 1037 {
on (release) {
gotoAndPlay(693);
}
}
frame 1097 {
gotoAndPlay(938);
}
button 1199 {
on (release) {
gotoAndPlay(1142);
}
}
button 1200 {
on (release) {
gotoAndPlay(938);
}
}
frame 1141 {
gotoAndPlay(1098);
}
button 1490 {
on (release) {
if (_global.musicSound) {
_global.musicSound.stop();
_global.musicSound.setVolume(100);
_global.musicSound = undefined;
}
gotoAndPlay(1384);
}
}
button 1491 {
on (release) {
gotoAndPlay(1098);
}
}
frame 1383 {
stop();
}
movieClip 1514 {
}
movieClip 1517 {
}
frame 1411 {
stopAllSounds();
stop();
}
button 1525 {
on (release) {
gotoAndPlay(1);
}
}