Frame 1
function itemHandler0(obj, item) {
myMenu.customItems[0].enabled = true;
}
function itemHandler1(obj, item) {
myMenu.customItems[0].enabled = true;
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("El-Presidente: Coder", itemHandler0));
myMenu.customItems.push(new ContextMenuItem("Reality-Monkey: Artist", itemHandler1));
myMenu.customItems[1].separatorBefore = true;
_root.menu = myMenu;
_root.onetime = false;
_root.totalscore = 0;
_root.ngl.onRelease = function () {
getURL ("http://www.newgrounds.com");
};
Frame 2
stop();
_root.onEnterFrame = function () {
_root.guyname = _root.nametext.text;
};
_root.playbutton.onRelease = function () {
_root.gotoAndStop(3);
};
_root.instructions.onRelease = function () {
_root.gotoAndStop(5);
};
_root.moregames.onRelease = function () {
getURL ("http://www.armorgames.com");
};
Frame 3
stop();
_root.goalnum = 10 * _root.level;
_root.onEnterFrame = function () {
if (_root.onetime == false) {
_root.level = 1;
_root.onetime = true;
}
_root.goalnum = 10 * _root.level;
_root.goal.text = _root.goalnum;
};
_root.continuebutton.onRelease = function () {
_root.gotoAndStop(4);
};
Frame 4
stop();
var a = (random(h) + 5);
var b = 0;
var c = 0;
var d = (random(10) + 1);
var e = 0;
var f = 0;
var g = 0;
var h = 9;
var i = 0;
var j = 13;
var k = 0;
var l = false;
var m = false;
_root.score = 0;
_root.speedfull = 8;
_root.pausegame = false;
_root.onscreen = true;
_root.once = false;
_quality = "LOW";
_root.onEnterFrame = function () {
if (_root.once == false) {
if (_root.score >= _root.goalnum) {
_root.level = _root.level + 1;
_root.once = true;
}
}
if (_root.pausegame == false) {
_root.scorecount.text = _root.score;
b = b + 1;
e = e + 1;
if (b == a) {
a = random(h) + 2;
b = 0;
c = c + 1;
if (c > 30) {
c = 0;
}
_root.barrel.duplicateMovieClip("barrel" + c, c);
_root["barrel" + c].number = c;
}
if (e == d) {
d = random(j) + 3;
e = 0;
f = f + 1;
if (f > 30) {
f = 0;
}
_root.zombie.duplicateMovieClip("zombie" + f, f + 100);
}
if (_root.ship.shot == true) {
g = g + 1;
i = i + 1;
if (g > 250) {
g = 0;
}
if (g == 250) {
h = h + 1;
if (h > 14) {
h = 14;
}
}
if (i > 200) {
i = 0;
}
if (i == 200) {
j = j - 1;
if (j < 8) {
j = 8;
}
}
}
}
if (l == false) {
l = true;
if (Key.isDown(80)) {
if (_root.pausegame == true) {
_root.pausegame = false;
} else if (_root.pausegame == false) {
_root.pausegame = true;
}
}
} else {
k = k + 1;
if (k == 4) {
k = 0;
l = false;
}
}
_root.ship.swapDepths(_root.getNextHighestDepth());
_root.scorecount.swapDepths(_root.getNextHighestDepth());
_root.pausegameblack.swapDepths(_root.getNextHighestDepth());
_root.menubutton.swapDepths(_root.getNextHighestDepth());
_root.pausebutton.swapDepths(_root.getNextHighestDepth());
_root.creditsbutton.swapDepths(_root.getNextHighestDepth());
_root.moregamebutton.swapDepths(_root.getNextHighestDepth());
_root.pausereminder.swapDepths(_root.getNextHighestDepth());
};
_root.menubutton.onRelease = function () {
_root.onscreen = false;
_root.gotoAndStop(2);
};
_root.creditsbutton.onRelease = function () {
_root.onscreen = false;
_root.gotoAndStop(6);
};
_root.moregamesbutton.onRelease = function () {
getURL ("http://www.armorgames.com", _blank);
};
_root.levelbutton.onRelease = function () {
_root.onscreen = false;
_root.gotoAndStop(3);
};
_root.submitbutton.onRelease = function () {
_root.onscreen = false;
_root.gotoAndStop(7);
};
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (load) {
ynum = this._y;
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
this._y = this._y + _root.speedfull;
if (this._y > (ynum + 360)) {
this._y = ynum;
}
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 47 MovieClip "ship" in Frame 4
onClipEvent (load) {
a = 0;
xspeed = 0;
yspeed = 0;
speed = 0.3;
shot = false;
decrease = 0.8;
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
this._x = this._x + xspeed;
this._y = this._y - yspeed;
if (Key.isDown(39)) {
xspeed = xspeed + speed;
} else if (Key.isDown(37)) {
xspeed = xspeed - speed;
} else {
xspeed = xspeed * decrease;
}
if (Key.isDown(38)) {
yspeed = yspeed + speed;
} else if (Key.isDown(40)) {
yspeed = yspeed - speed;
} else {
yspeed = yspeed * decrease;
}
if (Key.isDown(32)) {
if (shot == false) {
shot = true;
a = a + 1;
if (a > 30) {
a = 0;
}
_root.bomb.duplicateMovieClip("bomb2", a + 500);
}
}
if (shot == true) {
yspeed = yspeed + 0.7;
xspeed = 0;
decrease = 1;
}
if (shot == false) {
if (this._x > 180) {
this._x = 180;
xspeed = 0;
}
if (this._x < 20) {
this._x = 20;
xspeed = 0;
}
if (this._y > 370) {
this._y = 370;
yspeed = 0;
}
if (this._y < 250) {
this._y = 250;
yspeed = 0;
}
if (xspeed > 4) {
xspeed = 4;
}
if (xspeed < -4) {
xspeed = -4;
}
if (yspeed > 4) {
yspeed = 4;
}
if (yspeed < -4) {
yspeed = -4;
}
}
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 49 MovieClip "barrel" in Frame 4
onClipEvent (load) {
a = 0;
b = 0;
this._x = random(150) + 25;
this._y = -40;
yspeed = _root.speedfull;
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (this._name == "barrel") {
this._x = 10000;
this._y = 10000;
}
this._y = this._y + yspeed;
a = 0;
while (a < 30) {
if (this.hitTest(_root["explosion" + a])) {
_root.explosion.duplicateMovieClip("explosion" + number, number + 200);
_root["explosion" + number]._x = this._x;
_root["explosion" + number]._y = this._y;
_root["explosion" + number].number = this.number;
this.removeMovieClip();
}
if (this.hitTest(_root["debris" + a])) {
if (_root["debris" + a].count > 117) {
_root.explosion.duplicateMovieClip("explosion" + number, number + 200);
_root["explosion" + number]._x = this._x;
_root["explosion" + number]._y = this._y;
_root["explosion" + number].number = this.number;
this.removeMovieClip();
}
}
a++;
}
if ((((this._y > 500) || (this._y < -200)) || (this._x > 220)) || (this._x < -20)) {
this.removeMovieClip();
}
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 53 MovieClip "zombie" in Frame 4
onClipEvent (load) {
a = 0;
death = true;
destroy = false;
this._x = random(150) + 25;
this._y = -20;
yspeed = _root.speedfull;
this.gotoAndStop(random(3) + 1);
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
this._y = this._y + yspeed;
a = 0;
while (a < 31) {
if (this.hitTest(_root["explosion" + a])) {
if (death == true) {
death = false;
_root.totalscore = _root.totalscore + 1;
_root.score = _root.score + 1;
destroy = true;
}
}
a++;
}
if ((((this._y > 500) || (this._y < -200)) || (this._x > 220)) || (this._x < -20)) {
this.removeMovieClip();
}
if (this._alpha < 0) {
this.removeMovieClip();
}
if (destroy == true) {
this._alpha = this._alpha - 5;
}
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 56 MovieClip "bomb" in Frame 4
onClipEvent (load) {
a = 0;
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (this._name == "bomb") {
this._x = 10000;
this._y = 10000;
} else {
this._yscale = this._yscale - (0.015 * _yscale);
this._xscale = this._xscale - (0.015 * _xscale);
}
if (this._xscale < 35) {
a = a + 1;
if (a > 30) {
a = 0;
}
_root.explosion.duplicateMovieClip("explosion2", a + 400);
_root.explosion2._x = this._x;
_root.explosion2._y = this._y;
this.removeMovieClip();
}
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 64 MovieClip "explosion" in Frame 4
onClipEvent (load) {
a = 0;
yspeed = _root.speedfull;
if (this._name == "explosion") {
this._x = 10000;
this._y = 10000;
}
this._rotation = random(360);
frame = 1;
debris = true;
num = 1;
}
onClipEvent (enterFrame) {
frame = frame + num;
if (_root.pausegame == false) {
num = 1;
this.gotoAndStop(frame);
this._y = this._y + yspeed;
if (debris == true) {
debris = false;
_root.debris.duplicateMovieClip("debris" + number, number + 300);
_root["debris" + number]._x = this._x;
_root["debris" + number]._y = this._y;
}
if (this._y > 500) {
this.removeMovieClip();
}
} else {
num = 0;
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 68 MovieClip "debris" in Frame 4
onClipEvent (load) {
xspeed = random(2) - 1;
yspeed = random(5);
up = true;
count = 0;
this.gotoAndStop(random(3) + 1);
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (this._name == "debris") {
this._x = 10000;
this._y = 10000;
xspeed = 0;
yspeed = 0;
} else {
this._x = this._x + xspeed;
this._y = this._y - yspeed;
count = count + 1;
if (up == true) {
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
} else if (up == false) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
if (count < 50) {
up = true;
} else {
up = false;
}
}
if (count > 120) {
this.removeMovieClip();
}
if (this._y < -50) {
this.removeMovieClip();
}
if (this._y > 450) {
this.removeMovieClip();
}
if (this._x < -50) {
this.removeMovieClip();
}
if (this._x > 250) {
this.removeMovieClip();
}
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 70 MovieClip "pausegameblack" in Frame 4
onClipEvent (load) {
this._x = 10000;
this._y = 10000;
}
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this._x = 100;
this._y = 200;
} else {
this._x = 10000;
this._y = 10000;
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 72 MovieClip "menubutton" in Frame 4
onClipEvent (load) {
this._x = 10000;
this._y = 10000;
}
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this._x = 100;
this._y = 99.5;
} else {
this._x = 10000;
this._y = 10000;
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 74 MovieClip "pausebutton" in Frame 4
onClipEvent (load) {
this._x = 10000;
this._y = 10000;
}
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this._x = 100;
this._y = 50.5;
} else {
this._x = 10000;
this._y = 10000;
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 76 MovieClip "creditsbutton" in Frame 4
onClipEvent (load) {
this._x = 10000;
this._y = 10000;
}
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this._x = 100;
this._y = 129.5;
} else {
this._x = 10000;
this._y = 10000;
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 78 MovieClip "moregamebutton" in Frame 4
onClipEvent (load) {
this._x = 10000;
this._y = 10000;
}
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this._x = 100;
this._y = 159.5;
} else {
this._x = 10000;
this._y = 10000;
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 81 MovieClip in Frame 4
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
if (_root.onscreen == false) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 84 MovieClip "levelbutton" in Frame 4
onClipEvent (load) {
levela = _root.level;
levelb = _root.level + 1;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
levela = _root.level;
if (levela == levelb) {
this.gotoAndStop(2);
}
}
Instance of Symbol 88 MovieClip "pausereminder" in Frame 4
onClipEvent (load) {
alphup = true;
a = 0;
this._alpha = 50;
b = 0;
}
onClipEvent (enterFrame) {
a = a + 1;
b = b + 1;
if (a > 29) {
a = 0;
}
if (a > 15) {
alphup = false;
} else {
alphup = true;
}
if (alphup == true) {
this._alpha = this._alpha + 2;
} else {
this._alpha = this._alpha - 2;
}
if (b > 149) {
this.removeMovieClip();
}
}
Frame 5
stop();
_root.back.onRelease = function () {
gotoAndStop (8);
};
Frame 6
stop();
_root.back2.onRelease = function () {
_root.gotoAndStop(2);
};
_root.ngb.onRelease = function () {
getURL ("http://www.newgrounds.com", _blank);
};
_root.agb.onRelease = function () {
getURL ("http://www.armorgames.com", _blank);
};
_root.presgames.onRelease = function () {
getURL ("http://www.presgames.com", _blank);
};
Frame 7
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
stop();
_root.scoreend = (_root.totalscore * _root.level) * 100;
_root.levelsubmit.text = _root.scoreend;
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.guyname;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.scoreend;
__rankz_send__("MTgyM2olZSVhJW4lcw==", "ZmZWeWlZbVQ=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_root.viewhigh.onRelease = function () {
getURL ("http://rankz.armorbot.com/ZombieBomber/", _blank);
};
_root.back3.onRelease = function () {
gotoAndStop (2);
};
_root.moreg.onRelease = function () {
getURL ("http://www.armorgames.com", _blank);
};
Frame 8
stop();
_root.back4.onRelease = function () {
gotoAndStop (2);
};
Frame 9
stop();
_root.intro.onRelease = function () {
if (_root.intro.a < 80) {
getURL ("http://www.newgrounds.com", _blank);
} else {
getURL ("http://www.armorgames.com", _blank);
}
};
Instance of Symbol 176 MovieClip "intro" in Frame 9
onClipEvent (load) {
a = 1;
}
onClipEvent (enterFrame) {
a = a + 1;
if (a == 160) {
_root.gotoAndStop(2);
}
}
Symbol 12 Button
on (release) {
_root.gotoAndStop(9);
}
Symbol 14 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._yscale = PercentLoaded * (_root.loadpic.height / 100);
} else {
gotoAndStop ("loaded");
}
Symbol 14 MovieClip Frame 2
gotoAndPlay (1);
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 53 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 25
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();