Frame 1
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 136 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
_root.cats = framesLoaded + " %";
if (framesLoaded >= 100) {
_root.gotoAndStop(2);
this.onEnterFrame = null;
}
}
Frame 3
stop();
Instance of Symbol 154 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 4
stop();
Frame 5
function killSwitch() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
_root[_local2].removeMovieClip();
}
}
}
function checkLife() {
if (level >= 50) {
gameOn = false;
stopAllSounds();
_root.attachMovie("iwin", "game" + k, k++);
onEnterFrame = function () {
switchColors();
};
}
if (currentBases.length == 0) {
gameOn = false;
retroColor();
stopAllSounds();
trace("DEAD");
_root.attachMovie("gameover", "game" + k, k++);
onEnterFrame = null;
}
}
function retroColor() {
levelThis.numbers._alpha = 0;
tap = 16776960 /* 0xFFFF00 */;
var _local2 = new Color(bg.masti);
_local2.setRGB(tap);
tap = 255;
i = 0;
while (i < currentBases.length) {
_local2 = new Color(_root["base" + currentBases[i]]);
_local2.setRGB(tap);
i++;
}
tap = 0;
_local2 = new Color(bg.slider);
_local2.setRGB(tap);
}
function spawnThree() {
stCounter++;
if (stCounter == stGoal) {
spawnLine(random(550), 0, 0);
spawnLine(random(550), 0, 0);
spawnLine(random(550), 0, 0);
stCounter = 0;
}
}
function triggerSun() {
ae = attachMovie("whiteFlash", "we" + k, k++);
ae._x = 275;
ae._y = 200;
levelThis.numbers._alpha = 8;
fullEffect = true;
var _local2 = new Color(bg.slider);
_local2.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
i = 0;
while (i < currentBases.length) {
_local2 = new Color(_root["base" + currentBases[i]]);
_local2.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
i++;
}
_local2 = new Color(bg.masti);
_local2.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
}
function levelChanges() {
level++;
lCounter = 0;
if (fullEffect) {
switchColors();
if (levUp0._currentframe == 1) {
levUp0.play();
} else if (levUp1._currentframe == 1) {
levUp1.play();
} else if (levUp2._currentframe == 1) {
levUp2.play();
} else if (levUp3._currentframe == 1) {
levUp3.play();
} else if (levUp4._currentframe == 1) {
levUp4.play();
} else if (levUp5._currentframe == 1) {
levUp5.play();
}
}
i = 0;
while (i < 3) {
currentGoal = currentGoal + myLevels[level - 1][i];
i++;
}
i = 0;
while (i < myLevels[level - 1][0]) {
spawnLine(random(550), 0, 0);
i++;
}
i = 0;
while (i < myLevels[level - 1][1]) {
spawnAce(random(550), 0, 0);
i++;
}
i = 0;
while (i < myLevels[level - 1][2]) {
spawnPump(random(550), 0, 0);
i++;
}
}
function levelChange() {
lCounter++;
if (lCounter > 30) {
_root.levelDisp = random(80) + 20;
} else if (level < 10) {
levelDisp = "0" + level;
} else {
levelDisp = String(level);
}
}
function levelReq() {
if (misslesDowned >= currentGoal) {
levelChanges();
}
}
function secondFrame() {
sCount++;
if (sCount == 2) {
turret1.gotoAndPlay(2);
}
}
function dispLevel() {
if (level < 10) {
levelDisp = "0" + level;
} else {
levelDisp = String(level);
}
}
function switchColors() {
tap = Math.round(Math.random() * 16777215);
var _local2 = new Color(bg.masti);
_local2.setRGB(tap);
tap = Math.round(Math.random() * 16777215);
i = 0;
while (i < currentBases.length) {
_local2 = new Color(_root["base" + currentBases[i]].thad);
_local2.setRGB(tap);
i++;
}
tap = Math.round(Math.random() * 16777215);
_local2 = new Color(bg.slider);
_local2.setRGB(tap);
}
function addCombo() {
combo++;
comboTimer = 0;
}
function combos() {
if (combo >= 1) {
comboMode = true;
}
if (((combo >= 5) && (comboRush == false)) && (fullEffect)) {
comboMeter.gotoAndPlay("gameIn");
comboRush = true;
}
if (comboMode) {
if (combo < 10) {
comboDisp = "0" + combo;
} else {
comboDisp = String(combo);
}
comboTimer++;
if (comboTimer == comboTimeOut) {
comboMode = false;
comboRush = false;
if (combo >= 5) {
comboMeter.gotoAndPlay("gameOut");
}
combo = 0;
comboTimer = 0;
}
}
if (combo > topCombo) {
topCombo = combo;
if (topCombo < 10) {
topComboDisp = "00" + topCombo;
} else if (topCombo < 100) {
topComboDisp = "0" + topCombo;
} else {
topComboDisp = String(topCombo);
}
}
}
function chooseName() {
curChoice = 0;
currentLines.sort(Array.NUMERIC);
i = 0;
while (i < currentLines.length) {
if (currentLines[i] == curChoice) {
curChoice++;
}
i++;
}
currentLines.push(curChoice);
return("line" + curChoice);
}
function chooseBulletName() {
curChoice = 0;
currentBullets.sort(Array.NUMERIC);
i = 0;
while (i < currentBullets.length) {
if (currentBullets[i] == curChoice) {
curChoice++;
}
i++;
}
currentBullets.push(curChoice);
return("bullet" + curChoice);
}
function explodeName() {
curChoice = 0;
currentExplodes.sort(Array.NUMERIC);
i = 0;
while (i < currentExplodes.length) {
if (currentExplodes[i] == curChoice) {
curChoice++;
}
i++;
}
currentExplodes.push(curChoice);
return("exp" + curChoice);
}
function chooseTurret(rea) {
if ((rea == 0) || ((turretFocus != 0) && (Key.isDown(49)))) {
i = 0;
while (i < currentTurrets.length) {
trace(_root["turret" + currentTurrets[i]]);
if (_root["turret" + currentTurrets[i]]._name == "turret0") {
turretFocus = 0;
arrowThing.gotoAndStop(2);
turret0.gotoAndPlay(2);
turret1.gotoAndStop(1);
turret2.gotoAndStop(1);
break;
}
i++;
}
} else if ((rea == 1) || ((turretFocus != 1) && (Key.isDown(50)))) {
i = 0;
while (i < currentTurrets.length) {
if (_root["turret" + currentTurrets[i]]._name == "turret1") {
turretFocus = 1;
arrowThing.gotoAndStop(3);
turret1.gotoAndPlay(2);
turret2.gotoAndStop(1);
turret0.gotoAndStop(1);
break;
}
i++;
}
} else if ((rea == 2) || ((turretFocus != 2) && (Key.isDown(51)))) {
i = 0;
while (i < currentTurrets.length) {
if (_root["turret" + currentTurrets[i]]._name == "turret2") {
turretFocus = 2;
arrowThing.gotoAndStop(4);
turret1.gotoAndStop(1);
turret0.gotoAndStop(1);
turret2.gotoAndPlay(2);
break;
}
i++;
}
}
}
function spawnLine(x, y, rotation) {
shel = createEmptyMovieClip(chooseName(), k++);
tach = shel.attachMovie("header", "cursor", k++);
shel.createEmptyMovieClip("mainLine", k++);
shel.oldX = 0;
shel.oldY = 0;
if (fullEffect) {
shel.speed = random(3) + 1;
} else {
shel.speed = 1;
}
shel.partCount = 0;
shel._x = x;
shel.lineColor = 16777215 /* 0xFFFFFF */;
shel.blipCounter = 0;
shel.splitterCounterGoal = random(100) + 100;
shel._y = y;
shel.alive = true;
tTemp = random(4);
if (tTemp == 0) {
shel.splitter = false;
} else {
shel.splitter = true;
}
shel.splitterCounter = 0;
shel.myName = shel._name.substr(4, 200);
switch (random(2)) {
case 0 :
if (currentBases.length == 0) {
tempChoice = currentTurrets[random(currentTurrets.length)];
shel._rotation = rot(_root["turret" + tempChoice]._x, _root["turret" + tempChoice]._y, shel._x, shel._y);
shel.targetType = "turret";
shel.myTarget = "turret" + tempChoice;
break;
}
tempChoice = currentBases[random(currentBases.length)];
shel._rotation = rot(_root["base" + tempChoice]._x, _root["base" + tempChoice]._y, shel._x, shel._y);
shel.targetType = "base";
shel.myTarget = "base" + tempChoice;
break;
case 1 :
if (currentTurrets.length == 0) {
tempChoice = currentBases[random(currentBases.length)];
shel._rotation = rot(_root["base" + tempChoice]._x, _root["base" + tempChoice]._y, shel._x, shel._y);
shel.targetType = "base";
shel.myTarget = "base" + tempChoice;
} else {
tempChoice = currentTurrets[random(currentTurrets.length)];
shel._rotation = rot(_root["turret" + tempChoice]._x, _root["turret" + tempChoice]._y, shel._x, shel._y);
shel.targetType = "turret";
shel.myTarget = "turret" + tempChoice;
}
}
shel.moveTo(shel.cursor._x, shel.cursor._y);
}
function spawnAce(myX, myY, myRot) {
wea = createEmptyMovieClip(chooseName(), k++);
wea.myType = "ace";
wea._x = -20;
wea.createEmptyMovieClip("mainLine", k++);
wea.alive = true;
wea._y = random(200) + 20;
wea.spawnCounter = 0;
wea.spawnSomething = random(20) + 50;
wea.blipr = 8;
wea.lineColor = Math.round(Math.random() * 16777215);
wea.mySpeed = 3 + random(5);
wea.myName = wea._name.substr(4, 200);
cdd = wea.attachMovie("ace", "cursor", k++);
}
function spawnPump(myX, myY, myRot) {
wea = createEmptyMovieClip(chooseName(), k++);
wea.myType = "pump";
wea._x = 0;
wea.createEmptyMovieClip("mainLine", k++);
wea.alive = true;
wea._y = 0;
wea.spawnCounter = 0;
wea.spawnSomething = random(40) + 10;
wea.blipr = 8;
wea.lineColor = 3407616 /* 0x33FF00 */;
wea.mySpeed = 3 + random(5);
wea.nextX = random(Stage.width);
wea.nextY = random(200);
wea.myName = wea._name.substr(4, 200);
cdd = wea.attachMovie("pump", "cursor", k++);
}
function modify(mc) {
if (mc.alive) {
if (mc.myType == "ace") {
mc.cursor._x = mc.cursor._x + mc.mySpeed;
mc.spawnCounter++;
if (mc.spawnCounter == mc.spawnSomething) {
mc.spawnCounter = 0;
var _local4 = {};
_local4.x = mc.cursor._x;
_local4.y = mc.cursor._y;
mc.localToGlobal(_local4);
ers = 0;
while (ers < 3) {
spawnLine(_local4.x, _local4.y, 0);
ers++;
}
}
if (mc.cursor._x > 600) {
mc.alive = false;
}
} else if ((mc.myType = "pump")) {
easing("x", mc.cursor, mc.nextX, 0.3);
easing("y", mc.cursor, mc.nextY, 0.3);
mc.spawnCounter++;
if (mc.spawnCounter == mc.spawnSomething) {
mc.spawnCounter = 0;
var _local4 = {};
_local4.x = mc.cursor._x;
_local4.y = mc.cursor._y;
mc.localToGlobal(_local4);
mc.nextX = random(Stage.width);
mc.nextY = random(100) + 10;
ers = 0;
while (ers < 3) {
spawnLine(_local4.x, _local4.y, 0);
ers++;
}
}
}
mc.blipCounter++;
if (fullEffect) {
tap = mc.attachMovie("trailerLine", "af" + mc.partCount, k++);
mc.partCount++;
tap._x = (mc.cursor._x + 5) - random(10);
tap._y = (mc.cursor._y + 5) - random(10);
tap._alpha = random(50) + 50;
tap.gotoAndPlay(random(15) + 1);
tap._rotation = 210 - random(60);
tap._xscale = random(50) + 50;
tap._yscale = random(50) + 50;
}
mc.cursor._y = mc.cursor._y + mc.speed;
mc.mainLine.lineStyle(0, mc.lineColor, 100);
mc.mainLine.lineTo(mc.cursor._x, mc.cursor._y);
if (mc.splitter) {
mc.splitterCounter++;
if (mc.splitterCounterGoal == mc.splitterCounter) {
mc.splitterCounter = 0;
var _local4 = {};
_local4.x = mc.cursor._x;
_local4.y = mc.cursor._y;
mc.localToGlobal(_local4);
i = 0;
while (i < random(5)) {
spawnLine(_local4.x, _local4.y, 0);
i++;
}
}
}
if ((mc.myType != "ace") && (mc.blipCounter == 2)) {
if (fullEffect) {
blip = mc.attachMovie("blockFader", "bF" + k, k++);
blip._x = mc.cursor._x;
blip._y = mc.cursor._y;
blip._xscale = random(50) + 50;
}
mc.blipCounter = 0;
}
} else {
mc.mainLine._alpha = mc.mainLine._alpha - 10;
if (mc.mainLine._alpha <= 0) {
purge(mc);
trace("removed!");
mc.removeMovieClip();
}
}
ger = 0;
while (ger < currentExplodes.length) {
if (mc.alive && (mc.cursor.hitTest(_root["exp" + currentExplodes[ger]]))) {
mc.alive = false;
if (fullEffect) {
mba = createEmptyMovieClip("slfe" + k, k++);
var _local4 = {};
_local4.x = mc.cursor._x;
_local4.y = mc.cursor._y;
mc.localToGlobal(_local4);
mba._x = _local4.x;
mba._y = _local4.y;
mba.counter = 0;
mba.goal = 10;
}
if (fullEffect) {
swe = _root.attachMovie("comboMeter", "cm" + k, k++);
swe._x = mba._x;
swe._y = mba._y;
swe.smea = combo + 1;
}
if (mc.myType == "ace") {
mc.cursor.play();
}
_root.addCombo();
if (fullEffect) {
we = 0;
while (we < 5) {
loadMiniExplosion(_local4.x, _local4.y, mc.myType);
we++;
}
}
mba.onEnterFrame = function () {
this.counter++;
if (this.counter == this.goal) {
this.removeMovieClip();
} else {
srg = attachMovie("fadeOut", explodeName(), k++);
if (fullEffect) {
srg._x = (this._x + random(20)) - 10;
srg._y = (this._y + random(20)) - 10;
srg._xscale = random(100) + 50;
srg._yscale = random(100) + 50;
} else {
srg._x = (this._x + random(20)) - 10;
srg._y = (this._y + random(20)) - 10;
srg._xscale = random(100) + 50;
srg._yscale = srg._xscale;
srg.blah.gotoAndStop(2);
}
srg.myName = srg._name;
}
};
}
ger++;
}
if (_root[mc.myTarget].alive && (mc.cursor.hitTest(_root[mc.myTarget].hitA))) {
_root[mc.myTarget].gotoAndStop(2);
mc.alive = false;
if (mc.targetType == "base") {
gr = 0;
while (gr < currentBases.length) {
if (("base" + currentBases[gr]) == mc.myTarget) {
currentBases.splice(gr, 1);
}
gr++;
}
} else if (mc.targetType == "turret") {
_root[mc.myTarget]._visible = false;
_root[mc.myTarget].alive = false;
gr = 0;
while (gr < currentTurrets.length) {
if (("turret" + currentTurrets[gr]) == mc.myTarget) {
currentTurrets.splice(gr, 1);
if ((currentTurrets.length >= 1) && (gr == turretFocus)) {
chooseTurret(currentTurrets[0]);
}
}
gr++;
}
}
var _local4 = {};
_local4.x = mc.cursor._x;
_local4.y = mc.cursor._y;
mc.localToGlobal(_local4);
triggerDots(_local4.x, _local4.y);
if (fullEffect) {
i = 0;
while (i < 20) {
loadExplosion(_local4.x, _local4.y);
i++;
}
}
mc.alive = false;
}
ty = 0;
while (ty < 19) {
if (mc.cursor.hitTest(_root.ground["hit" + ty])) {
mc.alive = false;
}
ty++;
}
}
function modifyBullets(mc) {
if (mc.alive) {
if (fullEffect) {
tap = mc.attachMovie("trailerLine", "af" + mc.partCount, k++);
mc.partCount++;
tap._x = (mc.cursor._x + 5) - random(10);
tap._y = (mc.cursor._y + 5) - random(10);
tap._alpha = random(50) + 50;
tap.gotoAndPlay(random(15) + 1);
tap._rotation = 210 - random(60);
tap._xscale = random(50) + 50;
tap._yscale = random(50) + 50;
}
mc.life++;
mc.cursor._y = mc.cursor._y + mc.speed;
mc.mainLine.lineStyle(3, 16763904, 100);
mc.mainLine.lineTo(mc.cursor._x, mc.cursor._y);
if (mc.life > 60) {
mc.alive = false;
}
if (mc.hitTest(_root[mc.myName].hitA)) {
mc.alive = false;
tba = createEmptyMovieClip("slfe" + k, k++);
tba._x = _root[mc.myName]._x;
tba._y = _root[mc.myName]._y;
tba.counter = 0;
tba.goal = 5;
tba.onEnterFrame = function () {
this.counter++;
if (this.counter == this.goal) {
this.removeMovieClip();
} else {
srg = attachMovie("fadeOut", explodeName(), k++);
if (fullEffect) {
srg._x = (this._x + random(20)) - 10;
srg._y = (this._y + random(20)) - 10;
srg._xscale = random(100) + 50;
srg._yscale = random(100) + 50;
} else {
srg._x = (this._x + random(20)) - 10;
srg._y = (this._y + random(20)) - 10;
srg._xscale = random(100) + 50;
srg._yscale = srg._xscale;
srg.blah.gotoAndStop(2);
}
srg.myName = srg._name;
}
};
}
} else {
mc._alpha = mc._alpha - 10;
if (mc._alpha <= 0) {
gr = 0;
while (gr < currentBullets.length) {
if (("bullet" + currentBullets[gr]) == ("bullet" + mc.myName)) {
currentBullets.splice(gr, 1);
}
gr++;
}
_root[mc.myName].removeMovieClip();
mc.removeMovieClip();
}
}
}
function moveLines() {
i = 0;
while (i < currentLines.length) {
modify(_root["line" + currentLines[i]]);
i++;
}
}
function moveBullets() {
i = 0;
while (i < currentBullets.length) {
modifyBullets(_root["bullet" + currentBullets[i]]);
i++;
}
}
function purge(mc, num) {
i = 0;
while (i < currentLines.length) {
if (currentLines[i] == mc.myName) {
misslesDowned++;
currentLines.splice(i, 1);
}
i++;
}
}
function removeMe(mov) {
gr = 0;
while (gr < currentExplodes.length) {
if (("exp" + currentExplodes[gr]) == mov.myName) {
currentExplodes.splice(gr, 1);
}
gr++;
}
}
function loadExplosion(posX, posY) {
shel = attachMovie("explosion", "exp" + k, k++);
shel._x = posX;
shel._y = posY;
shel.gravity = 0.5;
shel.xMov = random(12) - 6;
shel.yMov = random(36) * -1;
shel.gotoAndStop(random(2) + 1);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel.counter = 0;
shel.counterGoal = random(100) + 100;
shel.onEnterFrame = function () {
this.counter++;
if ((this.counter >= this.counterGoal) || (_root.frameRateCheck())) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
this._x = this._x + this.xMov;
this._y = this._y + this.yMov;
this.yMov = this.yMov + this.gravity;
this._rotation = this._rotation + this.xMov;
if (this._y < 0) {
this.yMov = this.yMov * -1;
this._y = 0;
}
if (this._y > 400) {
this._y = 400;
this.yMov = this.yMov * -1;
this.yMov = this.yMov * 0.6;
}
if (this._x < 0) {
this._x = 0;
this.xMov = this.xMov * -1;
}
if (this._x > 550) {
this._x = 550;
this.xMov = this.xMov * -1;
}
};
}
function loadMiniExplosion(posX, posY, typer) {
shel = attachMovie("explosion2", "exp" + k, k++);
if (typer == "ace") {
tap = Math.round(Math.random() * 16777215);
var _local3 = new Color(shel);
_local3.setRGB(tap);
}
shel._x = posX;
shel._y = posY;
shel.gravity = (random(3) + 3) * 0.1;
shel.xMov = random(12) - 6;
shel.yMov = random(12) * -1;
shel.gotoAndStop(random(2) + 1);
shel._xscale = random(25) + 25;
shel._yscale = shel._xscale;
shel.counter = 0;
shel.counterGoal = random(50) + 50;
shel.onEnterFrame = function () {
this.counter++;
if ((this.counter >= this.counterGoal) || (_root.frameRateCheck())) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
this._x = this._x + this.xMov;
this._y = this._y + this.yMov;
this.yMov = this.yMov + this.gravity;
this._rotation = this._rotation + this.xMov;
if (this._y < 0) {
this.yMov = this.yMov * -1;
this._y = 0;
}
if (this._y > 400) {
this._y = 400;
this.yMov = this.yMov * -1;
this.yMov = this.yMov * 0.6;
}
if (this._x < 0) {
this._x = 0;
this.xMov = this.xMov * -1;
}
if (this._x > 550) {
this._x = 550;
this.xMov = this.xMov * -1;
}
};
}
function triggerDots(myX, myY) {
if (fullEffect) {
shel = createEmptyMovieClip("fks" + k, k++);
shel.counter = 0;
shel.goal = 5;
shel._x = myX;
shel._y = myY;
shel.onEnterFrame = function () {
this.counter++;
loadExplosion(this._x, this._y);
if (this.counter == this.goal) {
this.removeMovieClip();
} else {
basc = _root.attachMovie("explosionCenter", "exp" + k, k++);
basc._x = (this._x + random(50)) - 25;
basc._y = (this._y + random(50)) - 25;
basc._xscale = random(200) + 100;
basc._yscale = basc._xscale;
basc.inside.gotoAndStop(random(3) + 1);
}
};
}
}
function triggerFire(num) {
if (currentTurrets.length == 0) {
} else {
shel = createEmptyMovieClip(chooseBulletName(), k++);
tach = shel.attachMovie("header", "cursor", k++);
shel.createEmptyMovieClip("mainLine", k++);
shel.oldX = 0;
shel.oldY = 0;
shel.speed = 9;
shel.partCount = 0;
shel.life = 0;
shel._x = _root["turret" + num]._x;
shel._y = _root["turret" + num]._y;
shel._rotation = shel._rotation + rot(_root._xmouse, _root._ymouse, shel._x, shel._y);
shel.alive = true;
shel.myName = shel._name.substr(6, 200);
_root.turret1._x;
_root.turret1._y;
tach = _root.attachMovie("header2", shel.myName, k++);
tach.myTitle = shel.myName;
tach._x = _xmouse;
tach._y = _ymouse;
if (!fullEffect) {
tach._visible = false;
}
tach.onEnterFrame = function () {
this.val1 = 20 + random(80);
};
}
}
function easing(pro, mov1, mov2, drift) {
switch (pro) {
case "x" :
mov1._x = mov1._x - (drift * ((mov1._x - mov2) / 2));
break;
case "y" :
mov1._y = mov1._y - (drift * ((mov1._y - mov2) / 2));
break;
case "xscale" :
mov1._xscale = mov1._xscale - (drift * ((mov1._xscale - mov2) / 2));
break;
case "yscale" :
mov1._yscale = mov1._yscale - (drift * ((mov1._yscale - mov2) / 2));
break;
case "width" :
mov1._width = mov1._width - (drift * ((mov1._width - mov2) / 2));
break;
case "height" :
mov1._height = mov1._height - (drift * ((mov1._height - mov2) / 2));
break;
case "alpha" :
mov1._alpha = mov1._alpha - (drift * ((mov1._alpha - mov2) / 2));
break;
case "rotation" :
mov1._rotation = mov1._rotation - (drift * ((mov1._rotation - mov2) / 2));
}
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(-(90 - degrees));
}
}
function advCollision(mc1, mc2) {
var _local1 = mc1.getBounds(mc1);
var _local2 = mc2.getBounds(mc1);
return((((_local1.xMin <= _local2.xMax) && (_local1.xMax >= _local2.xMin)) && (_local1.yMin <= _local2.yMax)) && (_local1.yMax >= _local2.yMin));
}
function pX(outer, inner) {
var _local1 = {};
_local1.x = inner._x;
_local1.y = inner._y;
outer.localToGlobal(_local1);
return(_local1.x);
}
function pY(outer, inner) {
var _local1 = {};
_local1.y = inner._y;
outer.localToGlobal(_local1);
return(_local1.y);
}
function frameRateCheck() {
if (globalFramerate < 20) {
trace("low");
return(true);
}
return(false);
}
stop();
var currentLines = new Array();
var currentBases = new Array(0, 1, 2, 3, 4, 5, 6, 7);
var currentTurrets = new Array(0, 1, 2);
var currentBullets = new Array();
var currentExplodes = new Array();
var turretFocus = 1;
var k = 0;
var combo = 0;
var comboDisp = "0";
var comboMode = false;
var comboTimer = 0;
var comboTimeOut = 50;
var comboRush = false;
var topCombo = 0;
var topComboDisp;
var level = 0;
var levelDisp;
var sCount = 0;
var frameRate = 50;
_quality = "AUTOHIGH";
var counter = 0;
var myLevels = new Array();
myLevels.push([1, 0, 0]);
myLevels.push([1, 0, 0]);
myLevels.push([2, 0, 0]);
myLevels.push([2, 0, 0]);
myLevels.push([2, 0, 0]);
myLevels.push([3, 0, 0]);
myLevels.push([3, 0, 0]);
myLevels.push([3, 0, 0]);
myLevels.push([4, 0, 0]);
myLevels.push([4, 0, 0]);
myLevels.push([4, 0, 0]);
myLevels.push([5, 0, 0]);
myLevels.push([5, 0, 0]);
myLevels.push([5, 0, 0]);
myLevels.push([5, 0, 0]);
myLevels.push([6, 0, 0]);
myLevels.push([6, 0, 0]);
myLevels.push([6, 0, 0]);
myLevels.push([7, 1, 0]);
myLevels.push([7, 1, 0]);
myLevels.push([7, 2, 0]);
myLevels.push([8, 1, 0]);
myLevels.push([8, 1, 0]);
myLevels.push([8, 2, 0]);
myLevels.push([12, 2, 0]);
myLevels.push([15, 2, 0]);
myLevels.push([12, 2, 0]);
myLevels.push([12, 2, 0]);
myLevels.push([9, 1, 0]);
myLevels.push([9, 1, 0]);
myLevels.push([0, 7, 0]);
myLevels.push([15, 2, 0]);
myLevels.push([15, 2, 0]);
myLevels.push([15, 2, 0]);
myLevels.push([15, 2, 0]);
myLevels.push([0, 7, 0]);
myLevels.push([5, 1, 1]);
myLevels.push([0, 1, 3]);
myLevels.push([0, 0, 3]);
myLevels.push([0, 1, 5]);
myLevels.push([0, 2, 3]);
myLevels.push([3, 0, 2]);
myLevels.push([3, 1, 2]);
myLevels.push([9, 1, 0]);
myLevels.push([9, 0, 2]);
myLevels.push([9, 1, 0]);
myLevels.push([12, 0, 2]);
myLevels.push([12, 1, 0]);
myLevels.push([12, 0, 2]);
myLevels.push([12, 0, 2]);
trace(myLevels.length);
var fullEffect = false;
var currentGoal = 0;
var misslesDowned = 0;
var gameOn = true;
trace(currentGoal);
i = 0;
while (i < 3) {
_root["turret" + currentTurrets[i]].alive = true;
i++;
}
i = 0;
while (i < 8) {
_root["base" + currentBases[i]].alive = true;
i++;
}
onEnterFrame = function () {
if (gameOn) {
moveLines();
moveBullets();
chooseTurret();
combos();
dispLevel();
secondFrame();
levelReq();
levelChange();
if (fullEffect) {
spawnThree();
}
checkLife();
}
};
stCounter = 0;
stGoal = 300;
retroColor();
onMouseDown = function () {
if (gameOn) {
triggerFire(turretFocus);
}
};
Array.prototype.remove = function (obj) {
var _local2 = indexOf(obj);
if (_local2 == -1) {
return(false);
}
this.splice(_local2, 1);
return(true);
};
Symbol 2 MovieClip Frame 1
this._visible = false;
Symbol 10 MovieClip [header] Frame 1
this._visible = false;
Symbol 13 MovieClip [blockFader] Frame 15
this.removeMovieClip();
Symbol 15 MovieClip [trailerLine] Frame 1
speed = 10 - random(20);
onEnterFrame = function () {
this._rotation = this._rotation + speed;
};
Symbol 15 MovieClip [trailerLine] Frame 40
this.removeMovieClip();
Symbol 21 MovieClip [explosion2] Frame 1
stop();
Symbol 24 MovieClip [explosion] Frame 1
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 29 MovieClip [explosionCenter] Frame 11
this.removeMovieClip();
Symbol 32 MovieClip Frame 1
stop();
Symbol 33 MovieClip [fadeOut] Frame 20
_root.removeMe(this);
this.removeMovieClip();
Symbol 38 MovieClip [comboMeter] Frame 33
this.removeMovieClip();
Symbol 41 MovieClip [ace] Frame 1
stop();
Symbol 41 MovieClip [ace] Frame 10
stop();
Symbol 46 MovieClip [whiteFlash] Frame 4
this.removeMovieClip();
Symbol 59 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
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/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.finalName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.topCombo;
__rankz_send__("MTg4OGolZSVhJW4lcw==", "SU5JV1ZDWWw=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/argentburst/", "_blank");
this.hsS._x = 4034345 /* 0x3D8F29 */;
}
Symbol 67 Button
on (release) {
play();
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 87 MovieClip [iwin] Frame 235
_root.finalName = "Brutus";
var myLevel = 1;
seconds = _root.topCombo;
if (seconds > 150) {
myLevel = 8;
code = 15026443 /* 0xE5490B */;
} else if ((seconds < 150) && (seconds >= 125)) {
myLevel = 7;
code = 12526443 /* 0xBF236B */;
} else if ((seconds < 125) && (seconds >= 100)) {
myLevel = 6;
code = 10026443 /* 0x98FDCB */;
} else if ((seconds < 100) && (seconds >= 75)) {
myLevel = 5;
code = 7526443 /* 0x72D82B */;
} else if ((seconds < 75) && (seconds >= 50)) {
myLevel = 4;
code = 5026443 /* 0x4CB28B */;
} else if ((seconds < 50) && (seconds >= 25)) {
myLevel = 3;
code = 2526443 /* 0x268CEB */;
} else if ((seconds < 25) && (seconds >= 10)) {
myLevel = 2;
code = 1026443 /* 0x0FA98B */;
} else {
myLevel = 1;
code = 11555;
}
thatLevel.gotoAndStop(myLevel);
var dispCode1 = (("<a href=\"http://www.armorgames.com/\"><img src=\"http://games.armorgames.com/argentburst/" + code) + ".gif\" width=\"100\" height=\"100\" border=\"0\" /></a>");
var dispCode2 = (("[url=http://www.armorgames.com][img]http://games.armorgames.com/argentburst/" + code) + ".gif[/img][/url]");
Symbol 87 MovieClip [iwin] Frame 280
stop();
Symbol 87 MovieClip [iwin] Frame 346
_root.gotoAndPlay("menu");
_root.killSwitch();
Symbol 95 MovieClip [gameover] Frame 235
_root.finalName = "Brutus";
var myLevel = 1;
seconds = _root.topCombo;
if (seconds > 150) {
myLevel = 8;
code = 15026443 /* 0xE5490B */;
} else if ((seconds < 150) && (seconds >= 125)) {
myLevel = 7;
code = 12526443 /* 0xBF236B */;
} else if ((seconds < 125) && (seconds >= 100)) {
myLevel = 6;
code = 10026443 /* 0x98FDCB */;
} else if ((seconds < 100) && (seconds >= 75)) {
myLevel = 5;
code = 7526443 /* 0x72D82B */;
} else if ((seconds < 75) && (seconds >= 50)) {
myLevel = 4;
code = 5026443 /* 0x4CB28B */;
} else if ((seconds < 50) && (seconds >= 25)) {
myLevel = 3;
code = 2526443 /* 0x268CEB */;
} else if ((seconds < 25) && (seconds >= 10)) {
myLevel = 2;
code = 1026443 /* 0x0FA98B */;
} else {
myLevel = 1;
code = 11555;
}
thatLevel.gotoAndStop(myLevel);
var dispCode1 = (("<a href=\"http://www.armorgames.com/\"><img src=\"http://games.armorgames.com/argentburst/" + code) + ".gif\" width=\"100\" height=\"100\" border=\"0\" /></a>");
var dispCode2 = (("[url=http://www.armorgames.com][img]http://games.armorgames.com/argentburst/" + code) + ".gif[/img][/url]");
Symbol 95 MovieClip [gameover] Frame 262
stop();
Symbol 95 MovieClip [gameover] Frame 303
_root.gotoAndPlay("menu");
_root.killSwitch();
Symbol 100 MovieClip [levelUpDisp] Frame 1
stop();
Symbol 122 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.comboTimer + 1);
};
Symbol 126 MovieClip [comboSlide] Frame 1
stop();
Symbol 126 MovieClip [comboSlide] Frame 10
stop();
Symbol 130 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 136 MovieClip Frame 101
stop();
Symbol 228 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 144 Button
on (release) {
play();
}
Symbol 154 MovieClip Frame 126
_root.nextFrame();
Symbol 161 Button
on (release) {
gotoAndPlay (31);
}
Symbol 164 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 167 Button
on (release) {
getURL ("http://www.armorblog.com/", "_blank");
}
Symbol 171 Button
on (release) {
getURL ("http://rankz.armorbot.com/argentburst/", "_blank");
}
Symbol 174 MovieClip Frame 30
stop();
Symbol 174 MovieClip Frame 60
stopAllSounds();
_root.play();
Symbol 190 MovieClip Frame 1
this._visible = false;
Symbol 191 MovieClip Frame 1
onEnterFrame = function () {
this._visible = false;
};
Symbol 194 MovieClip Frame 15
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1041
_root.triggerSun();
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 10
stop();
Symbol 227 MovieClip Frame 41
stop();