Combined Code
frame 1 {
stop();
number = 0;
musicmain = new Sound();
musicmain.attachSound('musicmain');
musicmain.start(0, 99);
}
movieClip 5 {
}
movieClip 8 {
}
movieClip 19 {
}
movieClip 22 {
}
movieClip 24 {
}
movieClip 28 {
}
movieClip 29 {
}
movieClip 32 {
}
movieClip 36 {
}
movieClip 39 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 43 {
}
movieClip 44 {
}
button 47 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 49 {
frame 40 {
stop();
}
}
movieClip 74 {
}
button 75 {
on (release) {
startMovie();
}
}
movieClip 76 {
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();
}
}
movieClip 78 {
}
button 79 {
on (release) {
stopAllSounds();
musicmain.start(0, 99);
}
}
movieClip 81 {
}
button 82 {
on (release) {
stopAllSounds();
}
}
frame 2 {
stop();
}
button 86 {
on (release) {
number += 2;
gotoAndStop(3);
}
}
button 87 {
on (release) {
number -= 1;
gotoAndStop(3);
}
}
button 88 {
on (release) {
number += 1;
gotoAndStop(3);
}
}
// unknown tag 88 length 74
button 94 {
on (release) {
number = number;
gotoAndStop(3);
}
}
button 96 {
on (release) {
number -= 3;
gotoAndStop(4);
}
}
button 97 {
on (release) {
number = number;
gotoAndStop(4);
}
}
button 98 {
on (release) {
number += 2;
gotoAndStop(4);
}
}
button 103 {
on (release) {
number += 1;
gotoAndStop(4);
}
}
button 105 {
on (release) {
number += 2;
gotoAndStop(5);
}
}
button 106 {
on (release) {
number += 1;
gotoAndStop(5);
}
}
button 107 {
on (release) {
number -= 1;
gotoAndStop(5);
}
}
button 112 {
on (release) {
number = number;
gotoAndStop(5);
}
}
button 114 {
on (release) {
number += 1;
gotoAndStop(6);
}
}
button 115 {
on (release) {
number += 2;
gotoAndStop(6);
}
}
button 116 {
on (release) {
number -= 1;
gotoAndStop(6);
}
}
button 121 {
on (release) {
number = number;
gotoAndStop(6);
}
}
button 123 {
on (release) {
number += 2;
gotoAndStop(7);
}
}
button 124 {
on (release) {
number += 1;
gotoAndStop(7);
}
}
button 125 {
on (release) {
number -= 1;
gotoAndStop(7);
}
}
button 130 {
on (release) {
number = number;
gotoAndStop(7);
}
}
button 132 {
on (release) {
number -= 1;
gotoAndStop(8);
}
}
button 133 {
on (release) {
number = number;
gotoAndStop(8);
}
}
button 134 {
on (release) {
number += 2;
gotoAndStop(8);
}
}
button 139 {
on (release) {
number += 1;
gotoAndStop(8);
}
}
button 141 {
on (release) {
number += 2;
gotoAndStop(9);
}
}
button 142 {
on (release) {
number -= 1;
gotoAndStop(9);
}
}
button 143 {
on (release) {
number = number;
gotoAndStop(9);
}
}
button 148 {
on (release) {
number += 1;
gotoAndStop(9);
}
}
button 150 {
on (release) {
number = number;
}
on (release) {
if (number > 8) {
gotoAndStop(10);
} else {
if (number < 9 && number > 4) {
gotoAndStop(13);
} else {
if (number < 5 && number > -3) {
gotoAndStop(12);
} else {
gotoAndStop(11);
}
}
}
}
}
button 151 {
on (release) {
number += 2;
}
on (release) {
if (number > 8) {
gotoAndStop(10);
} else {
if (number < 9 && number > 4) {
gotoAndStop(13);
} else {
if (number < 5 && number > -3) {
gotoAndStop(12);
} else {
gotoAndStop(11);
}
}
}
}
}
button 152 {
on (release) {
number += 1;
}
on (release) {
if (number > 8) {
gotoAndStop(10);
} else {
if (number < 9 && number > 4) {
gotoAndStop(13);
} else {
if (number < 5 && number > -3) {
gotoAndStop(12);
} else {
gotoAndStop(11);
}
}
}
}
}
button 156 {
on (release) {
number -= 1;
}
on (release) {
if (number > 8) {
gotoAndStop(10);
} else {
if (number < 9 && number > 4) {
gotoAndStop(13);
} else {
if (number < 5 && number > -3) {
gotoAndStop(12);
} else {
gotoAndStop(11);
}
}
}
}
}
movieClip 161 {
}
movieClip 165 {
}
movieClip 169 {
}
movieClip 173 {
}