Combined Code
// unknown tag 88 length 68
movieClip 14 {
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 26 {
}
movieClip 30 {
}
movieClip 31 {
}
movieClip 34 {
}
movieClip 38 {
}
movieClip 41 {
}
movieClip 42 {
}
movieClip 44 {
}
movieClip 45 {
}
movieClip 46 {
}
movieClip 47 {
}
movieClip 49 {
}
button 50 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 53 {
}
button 59 {
on (release) {
startMovie();
}
}
movieClip 61 {
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 65 {
}
instance of movieClip 65 {
onClipEvent (load) {
this.swapDepths(100000001);
}
}
frame 24 {
bgSound = new Sound(this);
bgSound.attachSound('anger');
}
movieClip 72 {
}
movieClip 75 {
}
movieClip 88 {
}
movieClip 90 {
}
movieClip 93 {
}
movieClip 95 {
}
movieClip 101 {
}
frame 545 {
bgSound.start(0, 99);
}
frame 592 {
stop();
lasers = false;
groundfire = false;
i = 50;
}
movieClip 118 {
}
movieClip 121 {
}
instance sun of movieClip 121 {
onClipEvent (load) {
maxspeed = 10;
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) && _y > 120 && yspeed < maxspeed) {
yspeed += 2;
}
if (yspeed > -10 && _y < 260) {
--yspeed;
} else {
++yspeed;
}
if (Key.isDown(39) && xspeed < maxspeed && _x < 500) {
++xspeed;
} else {
if (Key.isDown(37) && xspeed > -maxspeed && _x > 100) {
--xspeed;
}
}
xspeed *= 0.92;
_x = _x + xspeed;
_y = _y - yspeed;
_root.background.gotoAndStop(Math.round(this._y - 80));
_root.eyebeams._x = _x + 6;
_root.eyebeams._y = _y - 15;
}
}
movieClip 123 {
}
movieClip 130 {
frame 5 {
_root.groundfire = true;
}
frame 6 {
_parent.nextFrame();
}
}
movieClip 135 {
}
movieClip 139 {
frame 4 {
_root.groundfire = false;
_parent.gotoAndStop(1);
}
}
movieClip 140 {
instance of movieClip 123 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndStop(2);
}
}
}
instance of movieClip 130 {
onClipEvent (enterFrame) {
if (_root.lasers == true) {
this.play();
} else {
_parent.gotoAndStop(4);
}
}
}
instance of movieClip 135 {
onClipEvent (load) {
_root.groundfire = true;
}
onClipEvent (enterFrame) {
if (_root.lasers == false) {
_parent.nextFrame();
}
}
}
instance of movieClip 139 {
onClipEvent (load) {
_root.groundfire = true;
}
}
}
instance eyebeams of movieClip 140 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.lasers = true;
} else {
_root.lasers = false;
}
}
}
movieClip 143 {
}
movieClip 145 {
frame 17 {
prevFrame();
}
}
instance of movieClip 145 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.play();
}
}
}
movieClip 148 {
frame 17 {
prevFrame();
}
}
instance of movieClip 148 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this.play();
}
}
}
movieClip 151 {
frame 17 {
prevFrame();
}
}
instance of movieClip 151 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this.play();
}
}
}
movieClip 153 {
frame 17 {
prevFrame();
}
}
instance of movieClip 153 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.play();
}
}
}
movieClip 160 {
}
instance manleft of movieClip 160 {
onClipEvent (load) {
if (_name == 'manleft') {
_x = 1000;
} else {
_x = _root.spawnx - 5;
_y = _root.spawny;
}
}
onClipEvent (enterFrame) {
if (_name != 'manleft') {
_x = _x - 2;
_y = _y + 1;
}
if (this._y > 500) {
this.removeMovieClip();
}
}
}
instance manright of movieClip 160 {
onClipEvent (load) {
if (_name == 'manright') {
_x = 1000;
} else {
_x = _root.spawnx + 5;
_y = _root.spawny;
}
}
onClipEvent (enterFrame) {
if (_name != 'manright') {
_x = _x + 2;
_y = _y + 1;
}
if (this._y > 500) {
this.removeMovieClip();
}
}
}
movieClip 162 {
}
movieClip 167 {
}
instance fire of movieClip 167 {
onClipEvent (enterFrame) {
if (_root.groundfire == true) {
_x = 15 + _root.sun._x + (this._y - _root.sun._y) / 1.732050807568877;
} else {
_x = -1000;
}
}
}
movieClip 179 {
frame 10 {
stop();
}
}
movieClip 180 {
frame 2 {
_root.spawnx = _x;
_root.spawny = _y + 10;
duplicateMovieClip(_root.manleft, 'manleft' + _root.i, _root.i);
++_root.i;
duplicateMovieClip(_root.manright, 'manright' + _root.i, _root.i);
++_root.i;
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
instance of movieClip 180 {
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire.hit)) {
this.gotoAndStop(2);
}
_x = _x - 3;
if (this._x < -50) {
this.gotoAndStop(1);
_x = 650;
}
}
}
// unknown tag 88 length 107
movieClip 185 {
frame 11 {
stop();
}
}
movieClip 186 {
frame 330 {
stop();
}
}
movieClip 187 {
}
instance of movieClip 187 {
onClipEvent (load) {
this.swapDepths(100000);
}
}