Frame 1
function iH1(obj, item) {
getURL ("http://armorgames.com", "_blank");
}
function iH2(obj, item) {
getURL ("http://newgrounds.com/", "_blank");
}
function iH3(obj, item) {
getURL ("http://planetbob.net/flash", "_blank");
}
function iH4(obj, item) {
getURL ("http://planetbob.net/pb", "_blank");
}
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
a_cmi = new ContextMenuItem("Play More Games!", iH1);
b_cmi = new ContextMenuItem("Newgrounds", iH2);
c_cmi = new ContextMenuItem("Denvish Designs", iH3);
d_cmi = new ContextMenuItem("Planet Bob - Music", iH4);
c_cmi.separatorBefore = true;
root_cm.customItems.push(a_cmi, c_cmi, d_cmi, b_cmi);
_root.menu = root_cm;
_root.s = new Sound();
_root.s.attachSound("atb");
_root.vol = 75;
_root.s.setVolume(_root.vol);
Frame 10
stop();
Frame 11
function gameOver() {
_root.gameended = 1;
_root.paused = 1;
_root.sfx.gotoAndPlay(8);
_root.sfx.gotoAndPlay(4);
i = 9000;
while (i < 9101) {
_root["en01" + i].removeMovieClip();
i++;
}
_root.gun.gotoAndPlay(70);
_root.gun.swapDepths(999993);
_root.gotoAndStop(12);
}
function gameWon() {
_root.gameended = 1;
_root.paused = 1;
_root.shop.removeMovieClip();
i = 9000;
while (i < 9101) {
_root["en01" + i].removeMovieClip();
i++;
}
_root.gotoAndStop(13);
}
function initlevel() {
paused = 0;
shopping = 0;
endinglevel = 0;
startinglevel = 0;
shop._visible = 0;
level++;
_root.lvtxt = "LEVEL: " + level;
clearing = 0;
if (enspeed < 6) {
enspeed = enspeed + 0.5;
}
if (enint > 1000) {
enint = enint - 125;
} else if ((enint > 24) && (enint < 1001)) {
enint = enint - 70;
}
if (enint < 24) {
enint = 25;
}
if (endef < 4) {
endef = endef + 0.2;
}
if (enstr < 100) {
enstr = enstr + 10;
}
if (int(entype) < 5) {
entype = entype + 0.5;
}
if (leveltime < 45000) {
leveltime = leveltime + 3000;
}
if (leveltime < 1000) {
cloudtime = cloudtime - 200;
}
if (repairstatus < 100) {
repairstatus = repairstatus + 3.9;
} else {
repairstatus = 100;
gameWon();
}
clearInterval(ping);
clearInterval(pong);
clearInterval(pung);
clearInterval(fong);
enintup = 0;
eifract = enint / 100;
ping = setInterval(function () {
if (!_root.paused) {
enintup++;
}
if (enintup > 99) {
makeEnemy();
enintup = 0;
}
}, eifract);
clintup = 0;
clfract = cloudTime / 100;
pung = setInterval(function () {
if (!_root.paused) {
clintup++;
}
if (clintup > 99) {
makeCloud();
clintup = 0;
}
}, clfract);
lvintup = 0;
lvfract = leveltime / 500;
pong = setInterval(function () {
if (!_root.paused) {
lvintup++;
stats.atkbar._xscale = (500 - lvintup) / 5;
}
if (lvintup > 499) {
endinglevel = 1;
clearInterval(ping);
clearInterval(pong);
}
}, lvfract);
}
function makeCloud() {
cc++;
if (cc > 60050) {
cc = 60000;
}
duplicateMovieClip ("cloud", "cloud" + cc, cc);
with (_root["cloud" + cc]) {
G = random(2);
if (G == 0) {
_x = -100;
_y = random(SH * 1.5);
} else if (G == 1) {
_x = random(SW * 1.5);
_y = SH + 100;
}
_width = random(180) + 40;
_height = _width * 2;
_alpha = random(50) + 10;
_rotation = (_root.crot - 5) + random(10);
}
_root["cloud" + cc].spd = (random(30) + 1) / 10;
_root["cloud" + cc].onEnterFrame = function () {
with (this) {
wut = (Math.PI/180) * _rotation;
if (_rotation > 180) {
_y = _y + (spd * Math.cos(wut));
_x = _x - (spd * Math.sin(wut));
} else {
_y = _y - (spd * Math.cos(wut));
_x = _x + (spd * Math.sin(wut));
}
if ((_x > (SW + 100)) || (_y < -100)) {
this.removeMovieClip();
}
}
};
}
function makeEnemy() {
ec++;
if (ec > 9100) {
ec = 9000;
}
duplicateMovieClip ("en01", "en01" + ec, ec);
with (_root["en01" + ec]) {
G = random(4);
if (G == 0) {
_x = -10;
_y = random(SH);
} else if (G == 1) {
_x = SW + 10;
_y = random(SH);
} else if (G == 2) {
_x = random(SW);
_y = -10;
} else if (G == 3) {
_x = random(SW);
_y = SH + 10;
}
Xdi = _parent.gun._x - _x;
Ydi = _parent.gun._y - _y;
radAngle = Math.atan2(Ydi, Xdi);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
gotoAndStop(random(int(_root.entype)) + 1);
}
_root["en01" + ec].def = _root.endef * _root["en01" + ec]._currentframe;
_root["en01" + ec].spd = random(_root.enspeed) + 1;
_root["en01" + ec].str = _root.enstr;
_root["en01" + ec].onEnterFrame = function () {
if (!_root.paused) {
with (this) {
wut = (Math.PI/180) * _rotation;
if (_currentframe < 6) {
if (_rotation > 180) {
_y = _y + (spd * Math.cos(wut));
_x = _x - (spd * Math.sin(wut));
} else {
_y = _y - (spd * Math.cos(wut));
_x = _x + (spd * Math.sin(wut));
}
if (this.dot.hitTest(_parent.gun.dot) && (_currentframe < 6)) {
_root.sfx.gotoAndPlay(4);
if ((_root.stats.ls._currentframe < 2) || (_root.stats.ls.sbar._width <= 0)) {
_root.energy = _root.energy - ((_currentframe * str) / 10);
if ((_root.energy <= 0) && (!_root.gameended)) {
_root.stats.ls.lbar._width = 0;
_root.gameOver();
} else {
_root.stats.ls.lbar._width = _root.energy;
}
} else {
_root.shieldpow = _root.shieldpow - ((_currentframe * str) / 5);
if (_root.shieldpow <= 0) {
_root.shieldpow = 0;
_root.stats.ls.sbar._width = 0;
} else {
_root.stats.ls.sbar._width = _root.shieldpow * _root.spc;
}
}
if (!_root.gameended) {
gotoAndPlay(30);
_parent.gun.gotoAndPlay(60);
}
}
}
}
}
};
}
function fireAuto() {
if (!_root.paused) {
_root.sfx.gotoAndPlay(3);
abc = abc + 2;
if (abc > 30050) {
abc = 30000;
}
duplicateMovieClip ("abullet", "ab" + abc, abc);
with (_root["ab" + abc]) {
bltspd = 18;
_x = gun._x;
_y = gun._y;
_rotation = _root.gun.autofire._rotation;
}
duplicateMovieClip ("abullet", "abd" + abc, abc + 1);
with (_root["abd" + abc]) {
bltspd = 18;
_x = gun._x;
_y = gun._y;
_rotation = _root.gun.autofire._rotation + 180;
}
}
_root["ab" + abc].onEnterFrame = (_root["abd" + abc].onEnterFrame = function () {
if (!_root.paused) {
with (this) {
fart = (Math.PI/180) * _rotation;
if (_rotation > 180) {
_y = _y + (bltspd * Math.cos(fart));
_x = _x - (bltspd * Math.sin(fart));
} else {
_y = _y - (bltspd * Math.cos(fart));
_x = _x + (bltspd * Math.sin(fart));
}
if ((((_x > _root.SW) || (_x < 0)) || (_y < 0)) || (_y > _root.SH)) {
this.removeMovieClip();
}
i = 9000;
while (i < 9101) {
if (this.hitTest(_root["en01" + i]) && (_root["en01" + i]._currentframe < 10)) {
this.removeMovieClip();
_root.sfx.gotoAndPlay(random(13) + 11);
_root["en01" + i].def = _root["en01" + i].def - 10;
_root["en01" + i].gore.gotoAndPlay(2);
if (_root["en01" + i].def <= 0) {
_root.sfx.gotoAndPlay(10);
_root.gold = _root.gold + int(((_root["en01" + i]._currentframe * 10) + (_root["en01" + i].str / 5)) + (_root["en01" + i].spd * 3));
_root["en01" + i].gotoAndPlay(10);
}
}
i++;
}
}
}
});
}
function pauser() {
if (_root.paused) {
paused = 0;
i = 9000;
while (i < 9101) {
_root["en01" + i].e.play();
i++;
}
if (blast._currentframe > 1) {
blast.play();
}
} else {
paused = 1;
i = 9000;
while (i < 9101) {
_root["en01" + i].e.stop();
i++;
}
blast.stop();
}
}
SW = Stage.width;
SH = 400;
energy = 380;
repairstatus = 0;
leveltime = 10000;
cloudTime = 5000;
gold = 0;
bc = 10000;
ec = 9000;
cc = 60000;
crot = random(60) + 15;
abc = 30000;
enspeed = 0.2;
enint = 2000;
endef = 0;
enstr = 10;
entype = 0.1;
endinglevel = 0;
shopping = 0;
startinglevel = 0;
paused = 0;
gpower = 1;
shieldpow = 0;
shieldmaxpow = 0;
autopow = 0;
blasts = 0;
level = 0;
gameended = 0;
clearInterval(pang);
itemcost = new Array(3000, 500, 2000, 200, 500, 500);
itemdescr = new Array("UPGRADE GUN", "BUY AUTOFIRE BELT", "BUY SHIELD", "REPAIR SHIELD (+50)", "CHARGE BLASTER", "1-NG-L0R REPAIR STATUS:");
itempower = new Array(1, 0, 0);
bltclr = new Array(13041921, 16737792, 16777215);
onEnterFrame = function () {
if ((!_root.paused) && (!_root.gameended)) {
with (gun) {
if (_root._currentframe > 10) {
this.Xd = _root._xmouse - _x;
this.Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
}
with (blast) {
if (_currentframe > 1) {
i = 9000;
while (i < 9101) {
if (dot.hitTest(_root["en01" + i]) && (_root["en01" + i]._currentframe < 10)) {
_root["en01" + i].def = _root["en01" + i].def - 10;
_root["en01" + i].gore.gotoAndPlay(2);
if (_root["en01" + i].def <= 0) {
_root.gold = _root.gold + (_root["en01" + i]._currentframe * 10);
_root["en01" + i].gotoAndPlay(10);
}
}
i++;
}
}
}
if (endinglevel) {
_root.clearing++;
ecount = 0;
i = 9000;
while (i < 9101) {
if (!(_root["en01" + i]._x === undefined)) {
ecount++;
}
i++;
}
if ((_root.clearing == 1) && (ecount < 3)) {
clr = setInterval(function () {
i = 9000;
while (i < 9101) {
_root["en01" + i].removeMovieClip();
i++;
}
clearInterval(clr);
}, 5000);
}
if ((ecount < 1) && (!shopping)) {
shop._visible = 1;
paused = 1;
shopping = 1;
}
}
}
if ((shopping && (shop._alpha < 100)) && (!startinglevel)) {
shop._alpha = shop._alpha + 5;
}
if (startinglevel) {
if (shop._alpha > 0) {
shop._alpha = shop._alpha - 5;
} else {
initlevel();
}
}
};
onMouseDown = function () {
if (!_root.paused) {
_root.sfx.gotoAndPlay(2);
bc++;
if (bc > 10010) {
bc = 10000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
with (_root["b" + bc]) {
bltspd = 20;
_x = gun._x;
_y = gun._y;
_rotation = _root.gun._rotation;
new Color(_root["b" + bc]).setRGB(_root.bltclr[_root.gpower - 1]);
if (_root.gpower > 2) {
gotoAndStop(2);
}
}
}
_root["b" + bc].onEnterFrame = function () {
if (!_root.paused) {
with (this) {
fart = (Math.PI/180) * _rotation;
if (_rotation > 180) {
_y = _y + (bltspd * Math.cos(fart));
_x = _x - (bltspd * Math.sin(fart));
} else {
_y = _y - (bltspd * Math.cos(fart));
_x = _x + (bltspd * Math.sin(fart));
}
if ((((_x > _root.SW) || (_x < 0)) || (_y < 0)) || (_y > _root.SH)) {
this.removeMovieClip();
}
i = 9000;
while (i < 9101) {
if (this.hitTest(_root["en01" + i]) && (_root["en01" + i]._currentframe < 10)) {
if (_root.gpower < 3) {
this.removeMovieClip();
}
_root.sfx.gotoAndPlay(random(13) + 11);
_root["en01" + i].def = _root["en01" + i].def - _root.gpower;
_root["en01" + i].gore.gotoAndPlay(2);
if (_root["en01" + i].def <= 0) {
_root.sfx.gotoAndPlay(10);
_root["en01" + i].gotoAndPlay(10);
_root.gold = _root.gold + int(((_root["en01" + i]._currentframe * 10) + (_root["en01" + i].str / 5)) + (_root["en01" + i].spd * 3));
}
}
i++;
}
}
}
};
};
kl = new Object();
kl.onKeyDown = function () {
if (Key.getCode() == 80) {
pauser();
}
if (!_root.paused) {
if ((Key.getCode() == 32) && (blasts > 0)) {
blasts = 0;
blast.gotoAndPlay(2);
sfx.gotoAndPlay(5);
}
}
};
Key.addListener(kl);
Mouse.hide();
startDrag ("xhairs", true);
xhairs.swapDepths(999999);
initlevel();
Instance of Symbol 214 MovieClip in Frame 11
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
if (_alpha > 100) {
_alpha = 100;
}
}
Instance of Symbol 251 MovieClip "stats" in Frame 11
onClipEvent (load) {
this.swapDepths(750000);
}
Instance of Symbol 291 MovieClip "shop" in Frame 11
onClipEvent (load) {
this.swapDepths(99997);
_alpha = 0;
this._visible = 0;
gob._visible = 0;
reset._visible = 0;
i = 0;
while (i < 6) {
this["sta" + i]._visible = 0;
this["stb" + i]._visible = 0;
this["stc" + i]._visible = 0;
this["ib" + i]._visible = 0;
i++;
}
}
onClipEvent (enterFrame) {
if (!_root.gameended) {
if ((this._visible = 1)) {
i = 0;
while (i < 5) {
if ((_root.gold < _root.itemcost[i]) || (_root.itemcost[i] == "UNAVAILABLE")) {
this["ib" + i].gotoAndStop(2);
} else {
this["ib" + i].gotoAndStop(1);
}
i++;
}
}
if (this._alpha > 80) {
gob._visible = 1;
reset._visible = 1;
stb4.text = "PRESS 'SPACE' TO RELEASE BLAST";
i = 0;
while (i < 6) {
this["sta" + i]._visible = 1;
this["stb" + i]._visible = 1;
this["stc" + i]._visible = 1;
this["ib" + i]._visible = 1;
this["sta" + i].text = _root.itemdescr[i];
this["stc" + i].text = "COST: " + _root.itemcost[i];
i++;
}
stb5.text = _root.repairstatus + "% OF TRACTION/FIRING REPAIRED";
stc5.text = (100 - _root.repairstatus) + "% OF TRACTION/FIRING INOPERATIVE";
if ((_root.blasts > 0) || (_root.gold < _root.itemcost[4])) {
ib4.gotoAndStop(2);
stc4.text = "ONLY ONE AVAILABLE PER LEVEL";
} else {
ib4.gotoAndStop(1);
}
if (_root.shieldpow >= _root.shieldmaxpow) {
ib3.gotoAndStop(2);
} else {
ib3.gotoAndStop(1);
}
i = 0;
while (i < 3) {
this["stb" + i].text = "CURRENT POWER: " + _root.itempower[i];
i++;
}
}
if ((this._alpha > 50) && (this._alpha < 75)) {
i = 0;
while (i < 6) {
this["sta" + i]._visible = 0;
this["stb" + i]._visible = 0;
this["stc" + i]._visible = 0;
this["ib" + i]._visible = 0;
i++;
}
gob._visible = 0;
reset._visible = 0;
}
}
}
Frame 12
stop();
Instance of Symbol 296 MovieClip "fader" in Frame 12
onClipEvent (load) {
this.swapDepths(999992);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
}
Frame 13
stop();
Instance of Symbol 305 MovieClip "fader" in Frame 13
onClipEvent (load) {
this.swapDepths(769999);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if ((_alpha > 95) && (_alpha < 100)) {
_alpha = 100;
gotoAndPlay (2);
}
}
Instance of Symbol 6 MovieClip in Symbol 8 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
Stage.scaleMode = "showAll";
i = 1000;
while (i < 1050) {
_root.createEmptyMovieClip("s" + i, i);
_root["s" + i].lineStyle(1, 16777215, 100);
_root["s" + i].moveTo(0, 0);
_root["s" + i].lineTo(0.2, 0);
_root["s" + i]._x = random(Stage.width);
_root["s" + i]._y = random(Stage.height);
_root["s" + i]._width = (_root["s" + i]._height = random(5) + 3);
_root["s" + i]._alpha = random(100);
_root["s" + i].alphachange = random(2) + 1;
_root["s" + i].onEnterFrame = function () {
with (this) {
if (_root.fa) {
_alpha = _alpha - 5;
if (_alpha < 0) {
this.removeMovieClip();
}
} else {
if (alphachange == 1) {
_alpha = _alpha - random(10);
if (_alpha < 5) {
alphachange = 2;
}
}
if (alphachange == 2) {
_alpha = _alpha + random(10);
if (_alpha > 80) {
alphachange = 1;
}
}
}
}
};
i++;
}
with (_parent._parent) {
stop();
xy = _height / _width;
if (_width > Stage.width) {
_width = Stage.width;
_height = _width * xy;
}
if (_height > Stage.height) {
_height = Stage.height;
_width = _height / xy;
}
wp = Stage.width * (Stage.width / _width);
yp = (Stage.height / Stage.width) * wp;
beginFill(0, 100);
moveTo((-wp) / 2, (-yp) / 2);
lineTo(wp / 2, (-yp) / 2);
lineTo(wp / 2, yp / 2);
lineTo((-wp) / 2, yp / 2);
endFill();
_y = Stage.height / 2;
_x = Stage.width / 2;
_width = Stage.width;
_height = Stage.height;
back._alpha = 0;
glow._alpha = 0;
swapDepths(999);
}
_xscale = 0;
}
onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
percent = int((bytes_loaded / bytes) * 100);
_xscale = percent;
if (bytes_loaded == bytes) {
_parent._parent.gotoAndStop(2);
}
}
Symbol 47 MovieClip Frame 125
stop();
Instance of Symbol 4 MovieClip "back" in Symbol 50 MovieClip Frame 1
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 2
on (press) {
i = 1000;
while (i < 1050) {
_root["s" + i].removeMovieClip();
i++;
}
_root.gotoAndStop(10);
_parent.removeMovieClip();
}
Symbol 122 MovieClip Frame 1
stop();
_root.stop();
Symbol 122 MovieClip Frame 49
_root.gotoAndStop(11);
Symbol 122 MovieClip Frame 50
stop();
Instance of Symbol 103 MovieClip "autofire" in Symbol 122 MovieClip Frame 50
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (this._visible && (!_root.paused)) {
_rotation = (_rotation + 1);
}
}
Instance of Symbol 106 MovieClip "shield" in Symbol 122 MovieClip Frame 50
onClipEvent (load) {
this._visible = 0;
}
Symbol 122 MovieClip Frame 66
gotoAndStop (50);
Symbol 122 MovieClip Frame 79
stop();
Symbol 126 Button
on (press) {
gun.gotoAndPlay(2);
_root.gobutton._visible = 0;
text._visible = 0;
stopAllSounds();
_root.sfx.gotoAndPlay(30);
_root.sfx.gotoAndPlay(6);
}
Symbol 135 Button
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
gotoAndStop (1);
Symbol 153 MovieClip Frame 3
gotoAndStop (1);
Symbol 153 MovieClip Frame 4
gotoAndStop (1);
Symbol 153 MovieClip Frame 5
gotoAndStop (1);
Symbol 153 MovieClip Frame 6
gotoAndStop (1);
Symbol 153 MovieClip Frame 7
gotoAndStop (1);
Symbol 153 MovieClip Frame 8
gotoAndStop (1);
Symbol 153 MovieClip Frame 10
gotoAndStop (1);
Symbol 153 MovieClip Frame 11
gotoAndStop (1);
Symbol 153 MovieClip Frame 12
gotoAndStop (1);
Symbol 153 MovieClip Frame 13
gotoAndStop (1);
Symbol 153 MovieClip Frame 14
gotoAndStop (1);
Symbol 153 MovieClip Frame 15
gotoAndStop (1);
Symbol 153 MovieClip Frame 16
gotoAndStop (1);
Symbol 153 MovieClip Frame 17
gotoAndStop (1);
Symbol 153 MovieClip Frame 18
gotoAndStop (1);
Symbol 153 MovieClip Frame 19
gotoAndStop (1);
Symbol 153 MovieClip Frame 20
gotoAndStop (1);
Symbol 153 MovieClip Frame 21
gotoAndStop (1);
Symbol 153 MovieClip Frame 22
gotoAndStop (1);
Symbol 153 MovieClip Frame 23
gotoAndStop (1);
Symbol 153 MovieClip Frame 24
gotoAndStop (1);
Symbol 153 MovieClip Frame 25
gotoAndStop (1);
Symbol 153 MovieClip Frame 27
gotoAndStop (1);
Symbol 153 MovieClip Frame 28
gotoAndStop (1);
Symbol 153 MovieClip Frame 29
gotoAndStop (1);
Symbol 153 MovieClip Frame 30
gotoAndStop (1);
Symbol 153 MovieClip Frame 31
gotoAndStop (1);
Symbol 153 MovieClip Frame 32
gotoAndStop (1);
Symbol 153 MovieClip Frame 33
gotoAndStop (1);
Symbol 153 MovieClip Frame 34
gotoAndStop (1);
Symbol 153 MovieClip Frame 35
gotoAndStop (1);
Symbol 153 MovieClip Frame 36
gotoAndStop (1);
Symbol 153 MovieClip Frame 37
gotoAndStop (1);
Symbol 153 MovieClip Frame 38
gotoAndStop (1);
Symbol 153 MovieClip Frame 39
gotoAndStop (1);
Symbol 160 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 5
gotoAndStop (1);
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 23
this.removeMovieClip();
Symbol 211 MovieClip Frame 40
this.removeMovieClip();
Symbol 217 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
_root.vol = _root.vol + 1;
if (_root.vol > 99) {
_root.vol = 100;
_root.s.setVolume(_root.vol);
gotoAndStop (1);
}
_root.s.setVolume(_root.vol);
Symbol 224 MovieClip Frame 3
gotoAndPlay (2);
Symbol 224 MovieClip Frame 4
_root.vol = _root.vol - 1;
if (_root.vol < 1) {
_root.vol = 0;
_root.s.setVolume(_root.vol);
gotoAndStop (1);
}
_root.s.setVolume(_root.vol);
Symbol 224 MovieClip Frame 5
gotoAndPlay (4);
Symbol 229 Button
on (press) {
volcontrol.gotoAndPlay(2);
}
on (rollOut, release, dragOut, releaseOutside) {
volcontrol.gotoAndStop(1);
}
Symbol 233 Button
on (press) {
volcontrol.gotoAndPlay(4);
}
on (rollOut, release, dragOut, releaseOutside) {
volcontrol.gotoAndStop(1);
}
Symbol 238 Button
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 250 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gob" in Symbol 291 MovieClip Frame 1
on (press) {
_root.sfx.gotoAndPlay(6);
_root.startinglevel = 1;
this._visible = 0;
}
Instance of Symbol 258 MovieClip "ib4" in Symbol 291 MovieClip Frame 1
on (press) {
if (_currentframe < 2) {
_root.blasts = 1;
_root.gold = _root.gold - int(_root.itemcost[4]);
_root.sfx.gotoAndPlay(7);
}
}
Instance of Symbol 260 MovieClip "ib1" in Symbol 291 MovieClip Frame 1
on (press) {
if ((_currentframe < 2) && (_root.autopow < 50)) {
if (_root.autopow < 1) {
_root.gun.autofire._visible = 1;
_root.itemdescr[1] = "UPGRADE AUTOFIRE";
_root.autopow = _root.autopow + 2;
_root.itempower[1] = _root.autopow;
_root.gold = _root.gold - int(_root.itemcost[1]);
_root.itemcost[1] = 330;
} else {
_root.autopow++;
_root.itempower[1] = _root.autopow;
_root.gold = _root.gold - int(_root.itemcost[1]);
if (_root.autopow > 49) {
_root.itemdescr[1] = "AUTOFIRE UPGRADED TO MAXIMUM POWER";
_root.itemcost[1] = "UNAVAILABLE";
}
}
_root.sfx.gotoAndPlay(7);
if (_root.autopow > 0) {
clearInterval(_root.pang);
autointup = 0;
autofract = (2000 - (_root.autopow * 37)) / 20;
_root.pang = setInterval(function () {
if (!_root.paused) {
autointup++;
}
if (autointup > 19) {
_root.fireAuto();
autointup = 0;
}
}, autofract);
}
}
}
Instance of Symbol 262 MovieClip "ib0" in Symbol 291 MovieClip Frame 1
on (press) {
if ((_currentframe < 2) && (_root.gpower < 3)) {
_root.gpower++;
_root.itempower[0] = _root.gpower;
_root.gold = _root.gold - int(_root.itemcost[0]);
if (_root.gpower > 1) {
_root.itemcost[0] = 5000;
}
if (_root.gpower > 2) {
_root.itemdescr[0] = "GUN UPGRADED TO MAXIMUM POWER";
_root.itemcost[0] = "UNAVAILABLE";
}
_root.sfx.gotoAndPlay(7);
}
}
Instance of Symbol 264 MovieClip "ib3" in Symbol 291 MovieClip Frame 1
on (press) {
if ((_currentframe < 2) && (_root.shieldpow < _root.shieldmaxpow)) {
_root.shieldpow = _root.shieldpow + 50;
_root.stats.ls.sbar._width = _root.shieldpow * _root.spc;
_root.gold = _root.gold - int(_root.itemcost[3]);
if (_root.stats.ls.sbar._width > 380) {
_root.stats.ls.sbar._width = 380;
}
_root.sfx.gotoAndPlay(7);
}
}
Instance of Symbol 266 MovieClip "ib2" in Symbol 291 MovieClip Frame 1
on (press) {
if ((_currentframe < 2) && (_root.shieldmaxpow < 2000)) {
if (_root.shieldmaxpow < 1) {
_root.stats.ls.gotoAndStop(2);
_root.stats.ls.lbar._width = _root.energy;
_root.gun.shield._visible = 1;
_root.itemdescr[2] = "UPGRADE SHIELD (+10)";
_root.gold = _root.gold - int(_root.itemcost[1]);
_root.itemcost[2] = 300;
_root.shieldmaxpow = _root.shieldmaxpow + 30;
_root.shieldpow = _root.shieldpow + 30;
_root.itempower[2] = _root.shieldmaxpow;
} else {
_root.shieldmaxpow = _root.shieldmaxpow + 10;
_root.shieldpow = _root.shieldpow + 10;
_root.itempower[2] = _root.shieldmaxpow;
_root.gold = _root.gold - int(_root.itemcost[2]);
if (_root.shieldmaxpow > 1999) {
_root.itemdescr[2] = "SHIELD UPGRADED TO MAXIMUM DEFENCE";
_root.itemcost[2] = "UNAVAILABLE";
}
}
_root.sfx.gotoAndPlay(7);
_root.spc = 380 / _root.shieldmaxpow;
_root.stats.ls.sbar._width = _root.shieldpow * _root.spc;
if (_root.stats.ls.sbar._width > 380) {
_root.stats.ls.sbar._width = 380;
}
}
}
Instance of Symbol 271 MovieClip "reset" in Symbol 291 MovieClip Frame 1
on (press) {
_root.sfx.gotoAndPlay(6);
_root.stats.removeMovieClip();
_root.gun.gotoAndStop(1);
_root.gotoAndPlay(9);
_root.shop.removeMovieClip();
}
Instance of Symbol 295 MovieClip in Symbol 296 MovieClip Frame 1
on (press) {
_root.sfx.gotoAndPlay(6);
_root.gun.removeMovieClip();
_root.stats.removeMovieClip();
_root.shop.removeMovieClip();
_root.gotoAndPlay(9);
_root.fader.removeMovieClip();
}
Symbol 305 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip in Symbol 305 MovieClip Frame 2
on (press) {
_root.gun.removeMovieClip();
_root.stats.removeMovieClip();
_root.shop.removeMovieClip();
_root.gotoAndPlay(9);
_root.fader.removeMovieClip();
}
Symbol 305 MovieClip Frame 27
function makespark(rd) {
this.createEmptyMovieClip("spark", -7000);
with (spark) {
lineStyle(0, 16777215, 0);
beginFill(16777215);
moveTo(0, -rd);
curveTo(rd * 1.5, 0, 0, rd);
curveTo((-rd) * 1.5, 0, 0, -rd);
endFill();
_visible = 0;
}
}
function FW(numsparks) {
f = f + (numsparks + 10);
FX = random(380) - 190;
FY = random(150) - 250;
z = f;
while (z < (f + numsparks)) {
duplicateMovieClip ("spark", "spark" + z, z);
with (this["spark" + z]) {
_x = FX;
_y = FY;
}
this["spark" + z].vx = (random(400) - 200) / 35;
this["spark" + z].vy = (random(200) - 150) / 35;
this["spark" + z].onEnterFrame = function () {
new Color(this).setRGB(C1[random(C1.length)]);
this._x = this._x + (this.vx * 0.6);
this._y = this._y + (this.vy * 1);
this._alpha = this._alpha - 1;
down = random(gravity) / 100;
this.vy = this.vy + down;
if ((this._y > 25) || (this._alpha < 0)) {
this.removeMovieClip();
}
};
z++;
}
}
clearInterval(fong);
gravity = 30;
f = 800000 /* 0x0C3500 */;
C1 = new Array("0xFF0000", "0xFFFFFF", "0xFFFF00", "0xFF9900", "0xFFCC33", "0xFFFFFF");
makespark(2);
fong = setInterval(function () {
FW(random(100) + 30);
}, 2000);
Instance of Symbol 295 MovieClip in Symbol 305 MovieClip Frame 27
on (press) {
_root.sfx.gotoAndPlay(6);
_root.gun.removeMovieClip();
_root.stats.removeMovieClip();
_root.shop.removeMovieClip();
_root.gotoAndPlay(9);
clearInterval(fong);
_root.fader.removeMovieClip();
}
Symbol 305 MovieClip Frame 76
stop();
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 76
onClipEvent (load) {
this.swapDepths(999999);
}