Combined Code
movieClip 4 {
}
movieClip 7 {
}
movieClip 12 {
}
// unknown tag 88 length 118
button 21 {
on (release) {
startMovie();
}
}
movieClip 22 {
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 26 {
}
movieClip 28 {
}
movieClip 33 {
}
button 35 {
on (release) {
_global.musicSound.setVolume(100 - _global.musicSound.getVolume());
}
}
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 42 {
}
movieClip 97 {
}
movieClip 102 {
}
movieClip 122 {
}
movieClip 175 {
}
movieClip 188 {
}
movieClip 191 {
}
button 202 {
on (release) {
gotoAndPlay(610);
}
}
frame 609 {
gotoAndPlay(466);
}
movieClip 354 {
}
movieClip 357 {
}
button 360 {
on (release) {
gotoAndPlay(466);
}
}
button 361 {
on (release) {
gotoAndPlay(621);
}
}
frame 620 {
gotoAndPlay(610);
}
movieClip 378 {
}
button 612 {
on (release) {
gotoAndPlay(780);
}
}
button 613 {
on (release) {
gotoAndPlay(610);
}
}
frame 779 {
stop();
}
movieClip 624 {
}
movieClip 676 {
}
movieClip 713 {
}
frame 1084 {
stop();
if (_global.musicSound) {
_global.musicSound.stop();
_global.musicSound.setVolume(100);
_global.musicSound = undefined;
}
stopAllSounds();
}
button 725 {
on (release) {
gotoAndPlay(1);
}
}