Frame 1
stop();
Stage.showMenu = false;
Instance of Symbol 444 MovieClip in Frame 1
on (press) {
getURL ("http://www.rustygames.com", "_blank");
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 510 MovieClip in Frame 3
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Instance of Symbol 514 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("menu");
}
Frame 970
function lose() {
gotoAndStop ("lose");
}
cash = 0;
stop();
_root.pauser = false;
stopAllSounds();
var son = new Sound(this);
son.attachSound("menuloop");
son.start(0, 10000);
Instance of Symbol 759 MovieClip in Frame 970
on (release) {
_root.gotoAndStop("missions");
}
Instance of Symbol 759 MovieClip in Frame 970
on (release) {
_root.pauser = true;
}
Instance of Symbol 761 MovieClip in Frame 970
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 759 MovieClip in Frame 970
on (release) {
_root.help._visible = true;
}
Instance of Symbol 759 MovieClip in Frame 970
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Instance of Symbol 759 MovieClip in Frame 970
on (release) {
getURL ("http://www.rustygames.com/FD2gallery.php", "_blank");
}
Instance of Symbol 759 MovieClip in Frame 970
on (release) {
_root.gotoAndStop("free");
}
Instance of Symbol 777 MovieClip in Frame 970
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 807 MovieClip "help" in Frame 970
onClipEvent (load) {
this._visible = false;
}
Frame 971
function saveops() {
savefile.data.qual = _root.qual;
savefile.data.sfxvol = _root.sfxvol;
savefile.data.bgmvol = _root.bgmvol;
}
for (d in _root) {
_root[d].swapDepths(_root.getNextHighestDepth());
_root[d].removeMovieClip();
}
onEnterFrame = null;
_root.saveops();
play();
Frame 972
function win() {
_root["level" + _root.mission] = true;
savefile.data["level" + _root.mission] = true;
savefile.data.cash = _root.tcash;
savefile.data.username = _root.username;
savefile.flush();
gotoAndStop ("win");
}
function lose() {
gotoAndStop ("lose");
}
stopAllSounds();
stop();
var savefile = SharedObject.getLocal("FinalDefense2");
if (savefile.data.username == undefined) {
_root.username = "Your Name";
} else {
_root.username = savefile.data.username;
}
if (savefile.data.bgmvol != undefined) {
_root.bgmvol = savefile.data.bgmvol;
} else {
_root.bgmvol = 70;
}
if (savefile.data.sfxvol != undefined) {
_root.sfxvol = savefile.data.sfxvol;
} else {
_root.sfxvol = 70;
}
if (savefile.data.qual != undefined) {
_root.qual = savefile.data.qual;
} else {
_root.qual = "AUTO";
}
if (savefile.data.autohp != undefined) {
_root.autohp = savefile.data.autohp;
} else {
_root.autohp = 0;
}
if (savefile.data.autocash != undefined) {
_root.autocash = savefile.data.autocash;
} else {
_root.autocash = 1;
}
var tcash = 0;
if (savefile.data.cash != undefined) {
_root.tcash = savefile.data.cash;
}
if (cash != undefined) {
_root.tcash = _root.tcash + _root.cash;
savefile.data.cash = _root.tcash;
}
var cash = 0;
i = 1;
while (i < 11) {
_root["level" + i] = savefile.data["level" + i];
if (savefile.data["level" + i] == undefined) {
_root["level" + i] = false;
}
i++;
}
var objective = "Select a mission...";
var mission = 0;
var missioncash = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
Frame 973
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var autohp = 0;
var autocash = 1;
var cash = 0;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(3);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(2);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > (((120 - (_root.level * 3)) > 60) ? (120 - (_root.level * 5)) : 60)) {
_root["spawn" + random(((_root.level < 20) ? (_root.level) : 20))](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 973
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 973
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1028 MovieClip in Frame 973
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 974
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var setenemies = ["s", 0, 9, 12, 20];
var missionobj = 0;
var pauser2 = true;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(5);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(2);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.missionobj >= 7) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > 120) {
_root["spawn" + _root.setenemies[random(((_root.level < 5) ? (_root.level) : 5))]](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 974
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 974
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 974
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 975
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var setenemies = [0, 1, 2, 3, 6, 16, 17, 18];
var missionobj2 = 0;
var pauser2 = true;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(4);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(4);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(4);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.missionobj2 >= 3) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > 120) {
_root["spawn" + _root.setenemies[(((random(2) + _root.level) < 7) ? (_root.level) : 7)]](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 975
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 975
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 975
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 976
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var setenemies = [4, 5, 19, 7, 8, 13, 14, 20];
var missionobj3a = 0;
var missionobj3b = 0;
var missionobj3c = 0;
var missionobj3d = 0;
var pauser2 = true;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(2);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(4);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(4);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if ((((_root.missionobj3a >= 5) && (_root.missionobj3b >= 3)) && (_root.missionobj3c >= 3)) && (_root.missionobj3d >= 1)) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > 120) {
_root["spawn" + _root.setenemies[random(((_root.level < 8) ? (_root.level) : 8))]](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 976
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 976
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 976
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 977
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(3);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(2);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.level >= 26) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > (((120 - (_root.level * 3)) > 60) ? (120 - (_root.level * 5)) : 60)) {
_root["spawn" + random(((_root.level < 20) ? (_root.level) : 20))](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 977
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 977
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 977
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 978
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var missionobj5 = 0;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(5);
_root.base.t2.gotoAndStop(5);
_root.base.t3.gotoAndStop(5);
_root.base.t4.gotoAndStop(5);
_root.base.t5.gotoAndStop(5);
_root.base.t6.gotoAndStop(5);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.missionobj5 >= 85) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > 40) {
_root.spawn0(0, 0);
_root.spawn0(0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 978
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 978
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 978
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 979
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var mission6sp = 0;
var missionobj6 = 0;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(2);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(5);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.mission6sp >= 50) {
if (_root.missionobj6 >= 25) {
_root.win();
} else {
_root.lose();
}
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > 120) {
_root["spawn" + (16 + random(3))](0, 0);
_root.timer2 = 0;
_root.mission6sp++;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 979
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 979
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 979
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 980
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(3);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(2);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.level >= 16) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > (((120 - (_root.level * 3)) > 60) ? (120 - (_root.level * 5)) : 60)) {
_root["spawn" + random((((_root.level * 2) < 20) ? (_root.level * 2) : 20))](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 980
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 980
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 980
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 981
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var missionobj = 0;
var missionobj8 = 0;
var pauser2 = true;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(5);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(2);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if ((_root.missionobj >= 7) && (_root.missionobj8 >= 10)) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > (120 - (((_root.level * 5) < 60) ? (_root.level * 5) : 60))) {
_root["spawn" + random(_root.level)](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 981
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 981
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 981
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 982
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var missionobj9 = 0;
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(3);
_root.base.t2.gotoAndStop(3);
_root.base.t3.gotoAndStop(3);
_root.base.t4.gotoAndStop(3);
_root.base.t5.gotoAndStop(3);
_root.base.t6.gotoAndStop(3);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.missionobj9 >= 1) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > (((120 - (_root.level * 3)) > 60) ? (120 - (_root.level * 5)) : 60)) {
_root["spawn" + random((((_root.level + 10) < 20) ? (_root.level + 10) : 20))](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 982
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 982
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 982
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 983
stopAllSounds();
stop();
function levelup() {
_root.pauser2 = true;
_root.level++;
_root.maxtime = _root.maxtime + 150;
_root.timer = 0;
_root.upgrades.swapDepths(_root.getNextHighestDepth());
}
function shoot(xa, ya, ang, team, flak, pow) {
nb = _root.attachMovie("bul", "bul" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {speed:7, _x:xa, _y:ya, team:team, dam:pow, ang:ang, _rotation:(ang * 180) / Math.PI});
nb.gotoAndStop(flak);
nb.onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
this._x = this._x + (Math.cos(this.ang) * this.speed);
this._y = this._y + (Math.sin(this.ang) * this.speed);
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this.team == "bad") {
if (_root.base.hitTest(this._x, this._y, 1)) {
if (_root.sheildon) {
if (_root.sheildtype == 2) {
this.team = "good";
this.speed = -this.speed;
this._xscale = -this._xscale;
this.dam = this.dam / 10;
} else {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
} else {
_root.hp = _root.hp - this.dam;
if (this.boom) {
_root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
};
delete nb;
}
function glow(mc, cg) {
var _local2 = new flash.filters.GlowFilter(_root.sheildColor[_root.sheildtype], 70, 20, 20, 2, 3);
_root[mc].filters = [_local2];
_root.sheildon = true;
}
function unglow(mc) {
_root[mc].filters = [];
_root.sheildon = false;
}
var mines = 0;
var sheildon = false;
var powerinc = 1;
var mineact = false;
var radaract = false;
var nukeact = false;
var powerdec = 1;
var power = 100;
var maxhp = 200;
var hp = 200;
var t1cost = 300;
var t2cost = 600;
var t3cost = 900;
var b1p = 5000;
var b2p = 500;
var b3p = 800;
var b4p = 300;
var b5p = 1000;
var b6p = 900;
var b7p = 600;
var timer = 0;
var timer2 = 0;
var level = 1;
var pauser2 = false;
var maxtime = 800;
var sheildtype = 0;
_root.base.t1.gotoAndStop(3);
_root.base.t2.gotoAndStop(2);
_root.base.t3.gotoAndStop(2);
_root.base.t4.gotoAndStop(2);
_root.base.t5.gotoAndStop(2);
_root.base.t6.gotoAndStop(2);
var sheildColor = [0, 7829503, 16751001];
var fpsarr = [30, 30, 30];
onEnterFrame = function () {
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.cash >= 25000) {
_root.win();
}
if (_root.hp <= 0) {
_root.lose();
}
fps = (1 / (getTimer() - dt)) * 1000;
dt = getTimer();
fpsarr.push(fps);
avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3);
fpsarr.splice(0, 1);
if ((!_root.pauser2) && (!_root.pauser)) {
if (_root.timer2 > (((120 - (_root.level * 3)) > 60) ? (120 - (_root.level * 5)) : 60)) {
_root["spawn" + random(((_root.level < 20) ? (_root.level) : 20))](0, 0);
_root.timer2 = 0;
}
_root.timer2++;
if (Key.isDown(32)) {
if (_root.power > 0) {
_root.glow("base", 3 + (_root.power / 5));
_root.power = _root.power - (_root.powerdec * 0.2);
} else {
_root.unglow("base");
}
} else {
_root.unglow("base");
if (_root.power < 100) {
_root.power = _root.power + 0.1;
}
}
_root.timer++;
if (_root.timer > _root.maxtime) {
_root.levelup();
}
}
};
function spawns(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr0", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn0(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr" + random(3), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn1(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank" + random(2), "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn2(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank2", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn3(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn4(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank4", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn5(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank5", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn6(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank6", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn7(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank7", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn8(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank8", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn9(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank9", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn10(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank10", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn11(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank11", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn12(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank12", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn13(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank13", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn14(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank14", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn15(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank15", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn16(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank16", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn17(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank17", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn18(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank18", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn19(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("soldierrr3", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function spawn20(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("tank20", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
function mine() {
m = _root.attachMovie("mine", "mine" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
if (!_root[d].plane) {
_root[d].gotoAndStop(3);
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
}
}
};
delete m;
}
function nuke() {
m = _root.attachMovie("nuke", "nuke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
this.stopDrag();
this.active = true;
this.play();
};
m.onEnterFrame = function () {
if (this.active) {
for (d in _root) {
if (d.slice(0, 1) == "e") {
if (this.hitTest(_root[d])) {
_root[d].gotoAndStop(3);
}
}
}
}
};
delete m;
}
function strike() {
m = _root.attachMovie("strike", "striketarget", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, active:false});
m.startDrag();
m.onMouseUp = function () {
if (this._currentframe == 1) {
this.stopDrag();
this.play();
_root.sstrike(0, 0);
}
};
delete m;
}
function sstrike(xa, ya) {
if ((xa == 0) && (ya == 0)) {
switch (random(4)) {
case 0 :
xa = Stage.width + 50;
ya = random(Stage.height);
break;
case 1 :
xa = -50;
ya = random(Stage.height);
break;
case 2 :
xa = random(Stage.width);
ya = -50;
break;
case 3 :
xa = random(Stage.width);
ya = Stage.height + 50;
}
}
_root.attachMovie("striker", "e" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xa, _y:ya});
}
Instance of Symbol 955 MovieClip "base" in Frame 983
onClipEvent (enterFrame) {
for (d in _root) {
if ((d.slice(0, 1) == "e") && (_root[d]._currentframe == 1)) {
if (!_root[d].plane) {
for (e in this) {
if (this[e].hitTest(_root[d])) {
_root[d].gotoAndStop(3);
_root.hp = _root.hp - 20;
}
}
}
}
}
}
Instance of Symbol 1025 MovieClip "upgrades" in Frame 983
onClipEvent (enterFrame) {
if (!_root.pauser) {
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
}
if (!this.hitTest(_root._xmouse, _root._ymouse, 1)) {
this.info.text = "";
}
if (!_root.pauser2) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Instance of Symbol 1066 MovieClip in Frame 983
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pauser = true;
}
if (_root.qual == "AUTO") {
if (_root.avefps < 20) {
_quality = "MEDIUM";
if (_root.avefps < 15) {
_quality = "LOW";
}
} else {
_quality = "HIGH";
}
} else {
_quality = _root.qual;
}
for (d in _root) {
if (this.hitTest(_root[d])) {
if (_root[d].getDepth() > this.getDepth()) {
_root[d].swapDepths(this);
}
}
}
if (!_root.pauser) {
this._alpha = this._alpha - 10;
} else {
this._alpha = this._alpha + 10;
}
if (this._alpha < 0) {
this._alpha = 0;
this._visible = false;
} else {
this._visible = true;
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
Frame 984
stopAllSounds();
trace(hp);
for (d in _root) {
_root[d].swapDepths(_root.getNextHighestDepth());
_root[d].removeMovieClip();
}
onEnterFrame = null;
play();
Frame 985
stop();
Instance of Symbol 1117 MovieClip in Frame 985
on (press) {
_root.gotoAndStop("menu");
}
Frame 986
stopAllSounds();
for (d in _root) {
_root[d].swapDepths(_root.getNextHighestDepth());
_root[d].removeMovieClip();
}
onEnterFrame = null;
play();
Frame 987
stop();
Instance of Symbol 1131 MovieClip in Frame 987
on (press) {
_root.gotoAndStop("missions");
}
Symbol 38 MovieClip Frame 5
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 43 MovieClip Frame 4
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 47 MovieClip Frame 4
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 48 MovieClip Frame 5
_root.shoot(this._parent._x, this._parent._y, this._parent.ang, "bad", 1, 1);
this._parent.gotoAndStop(1);
Symbol 59 MovieClip [tank20] Frame 1
#initclip 48
Object.registerClass("tank20", tank20);
#endinitclip
stop();
Symbol 59 MovieClip [tank20] Frame 2
stop();
Symbol 59 MovieClip [tank20] Frame 3
stop();
Symbol 111 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 111 MovieClip Frame 9
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 112 MovieClip [tbomb] Frame 1
#initclip 23
Object.registerClass("tbomb", tbomb);
#endinitclip
stop();
Symbol 112 MovieClip [tbomb] Frame 2
stop();
Symbol 115 MovieClip [strike] Frame 1
stop();
Symbol 115 MovieClip [strike] Frame 60
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
Symbol 120 MovieClip [striker] Frame 1
#initclip 24
Object.registerClass("striker", striker);
#endinitclip
stop();
Symbol 120 MovieClip [striker] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "good", 11, 15);
this.gotoAndStop(1);
Symbol 120 MovieClip [striker] Frame 3
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
stop();
Symbol 128 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 128 MovieClip Frame 10
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 129 MovieClip [tank18] Frame 1
#initclip 25
Object.registerClass("tank18", tank18);
#endinitclip
stop();
Symbol 129 MovieClip [tank18] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 12, 30);
this.gotoAndStop(1);
Symbol 129 MovieClip [tank18] Frame 3
stop();
Symbol 135 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 135 MovieClip Frame 10
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 136 MovieClip [tank17] Frame 1
#initclip 26
Object.registerClass("tank17", tank17);
#endinitclip
stop();
Symbol 136 MovieClip [tank17] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 11, 15);
this.gotoAndStop(1);
Symbol 136 MovieClip [tank17] Frame 3
stop();
Symbol 143 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 143 MovieClip Frame 9
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 144 MovieClip [tank16] Frame 1
#initclip 27
Object.registerClass("tank16", tank16);
#endinitclip
stop();
Symbol 144 MovieClip [tank16] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 10, 15);
this.gotoAndStop(1);
Symbol 144 MovieClip [tank16] Frame 3
stop();
Symbol 158 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 158 MovieClip Frame 10
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 159 MovieClip [tank15] Frame 1
#initclip 28
Object.registerClass("tank15", tank15);
#endinitclip
stop();
Symbol 159 MovieClip [tank15] Frame 3
stop();
Symbol 175 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 175 MovieClip Frame 10
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 176 MovieClip [tank14] Frame 1
#initclip 29
Object.registerClass("tank14", tank14);
#endinitclip
stop();
Symbol 176 MovieClip [tank14] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang - (Math.PI/2), "bad", 1, 2);
gotoAndStop (1);
Symbol 176 MovieClip [tank14] Frame 3
stop();
Symbol 239 MovieClip [nuke] Frame 1
stop();
Symbol 239 MovieClip [nuke] Frame 69
stop();
_root.missionobj9++;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
Symbol 249 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 249 MovieClip Frame 8
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 250 MovieClip [tank13] Frame 1
#initclip 30
Object.registerClass("tank13", tank13);
#endinitclip
stop();
Symbol 250 MovieClip [tank13] Frame 2
stop();
_root.missionobj3b++;
Symbol 251 MovieClip [soldierrr3] Frame 1
#initclip 31
Object.registerClass("soldierrr3", soldier2);
#endinitclip
stop();
Symbol 251 MovieClip [soldierrr3] Frame 2
if (!this.bombed) {
_root.missionobj3a++;
_root.attachMovie("tbomb", "tbomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
this.bombed = true;
}
Symbol 251 MovieClip [soldierrr3] Frame 3
if (!this.bombed) {
_root.missionobj3a++;
_root.attachMovie("tbomb", "tbomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
this.bombed = true;
}
Symbol 251 MovieClip [soldierrr3] Frame 4
if (!this.bombed) {
_root.missionobj3a++;
_root.attachMovie("tbomb", "tbomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
this.bombed = true;
}
Symbol 251 MovieClip [soldierrr3] Frame 5
stop();
Symbol 257 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 257 MovieClip Frame 2
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 257 MovieClip Frame 3
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 257 MovieClip Frame 14
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 258 MovieClip [tank11] Frame 1
#initclip 32
Object.registerClass("tank11", tank10);
#endinitclip
stop();
Symbol 258 MovieClip [tank11] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 11, 70);
this.gotoAndStop(1);
Symbol 258 MovieClip [tank11] Frame 3
stop();
Symbol 261 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 261 MovieClip Frame 2
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 261 MovieClip Frame 4
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 261 MovieClip Frame 14
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 262 MovieClip [tank10] Frame 1
#initclip 33
Object.registerClass("tank10", tank10);
#endinitclip
stop();
Symbol 262 MovieClip [tank10] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 10, 60);
this.gotoAndStop(1);
Symbol 262 MovieClip [tank10] Frame 3
stop();
Symbol 265 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 265 MovieClip Frame 11
_root.spawn0(this._parent._x + 20, this._parent._y - 20);
_root.spawn0(this._parent._x - 20, this._parent._y - 20);
_root.spawn0(this._parent._x + 20, this._parent._y + 20);
_root.spawn0(this._parent._x - 20, this._parent._y + 20);
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 266 MovieClip [tank9] Frame 1
#initclip 34
Object.registerClass("tank9", tank9);
#endinitclip
stop();
Symbol 266 MovieClip [tank9] Frame 2
stop();
this.gotoAndStop(1);
Symbol 266 MovieClip [tank9] Frame 3
stop();
Symbol 273 MovieClip Frame 60
this._parent.gotoAndStop(1);
Symbol 279 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 279 MovieClip Frame 11
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 280 MovieClip [tank8] Frame 1
#initclip 35
Object.registerClass("tank8", tank8);
#endinitclip
stop();
Symbol 280 MovieClip [tank8] Frame 2
stop();
Symbol 280 MovieClip [tank8] Frame 3
stop();
_root.missionobj3c++;
Symbol 289 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 289 MovieClip Frame 9
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 290 MovieClip [tank7] Frame 1
#initclip 36
Object.registerClass("tank7", tank7);
#endinitclip
stop();
Symbol 290 MovieClip [tank7] Frame 2
stop();
this.gotoAndStop(1);
Symbol 290 MovieClip [tank7] Frame 3
stop();
Symbol 296 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 296 MovieClip Frame 11
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 297 MovieClip [tank6] Frame 1
#initclip 37
Object.registerClass("tank6", tank6);
#endinitclip
stop();
Symbol 297 MovieClip [tank6] Frame 2
stop();
this.gotoAndStop(1);
Symbol 297 MovieClip [tank6] Frame 3
stop();
Symbol 302 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 302 MovieClip Frame 11
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 303 MovieClip [tank5] Frame 1
#initclip 38
Object.registerClass("tank5", tank5);
#endinitclip
stop();
Symbol 303 MovieClip [tank5] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 4, 5);
this.gotoAndStop(1);
Symbol 303 MovieClip [tank5] Frame 3
stop();
Symbol 308 MovieClip [tank4] Frame 1
#initclip 39
Object.registerClass("tank4", tank4);
#endinitclip
stop();
Symbol 308 MovieClip [tank4] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 10, 15);
this.gotoAndStop(1);
Symbol 308 MovieClip [tank4] Frame 3
stop();
Symbol 314 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 314 MovieClip Frame 11
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 315 MovieClip [tank3] Frame 1
#initclip 40
Object.registerClass("tank3", tank3);
#endinitclip
stop();
Symbol 315 MovieClip [tank3] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 1, 1);
this.gotoAndStop(1);
Symbol 315 MovieClip [tank3] Frame 3
stop();
Symbol 320 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 320 MovieClip Frame 10
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 321 MovieClip [tank2] Frame 1
#initclip 41
Object.registerClass("tank2", tank2);
#endinitclip
stop();
Symbol 321 MovieClip [tank2] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 2, 12);
this.gotoAndStop(1);
Symbol 321 MovieClip [tank2] Frame 3
stop();
Symbol 330 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 330 MovieClip Frame 11
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 331 MovieClip [tank1] Frame 1
#initclip 42
Object.registerClass("tank1", tank1);
#endinitclip
stop();
Symbol 331 MovieClip [tank1] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 8, 5);
this.gotoAndStop(1);
Symbol 331 MovieClip [tank1] Frame 3
stop();
Symbol 332 MovieClip Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
son.attachSound("explode");
son.start(0, 0);
Symbol 332 MovieClip Frame 11
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 333 MovieClip [tank0] Frame 1
#initclip 43
Object.registerClass("tank0", tank1);
#endinitclip
stop();
Symbol 333 MovieClip [tank0] Frame 2
stop();
_root.shoot(this._x, this._y, this.ang, "bad", 8, 5);
this.gotoAndStop(1);
Symbol 333 MovieClip [tank0] Frame 3
stop();
Symbol 338 MovieClip [boom] Frame 10
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
Symbol 357 MovieClip Frame 4
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 361 MovieClip Frame 4
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 362 MovieClip Frame 5
_root.shoot(this._parent._x, this._parent._y, this._parent.ang, "bad", 7, 3);
this._parent.gotoAndStop(1);
Symbol 363 MovieClip [soldierrr1] Frame 1
#initclip 44
Object.registerClass("soldierrr1", soldier);
#endinitclip
stop();
Symbol 377 MovieClip Frame 5
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 381 MovieClip Frame 4
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 385 MovieClip Frame 4
stop();
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.removeMovieClip();
Symbol 386 MovieClip Frame 5
_root.shoot(this._parent._x, this._parent._y, this._parent.ang, "bad", 3, 3);
this._parent.gotoAndStop(1);
Symbol 387 MovieClip [soldierrr2] Frame 1
#initclip 45
Object.registerClass("soldierrr2", soldier);
#endinitclip
stop();
Symbol 388 MovieClip [soldierrr0] Frame 1
#initclip 46
Object.registerClass("soldierrr0", soldier);
#endinitclip
stop();
Symbol 410 MovieClip [bul] Frame 1
var son = new Sound(this);
son.setVolume(_root.sfxvol);
Symbol 410 MovieClip [bul] Frame 2
son.attachSound("SFX_rocket");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 410 MovieClip [bul] Frame 3
son.attachSound("SFX_laser");
son.setVolume(_root.sfxvol);
son.start(0, 0);
Symbol 410 MovieClip [bul] Frame 4
son.attachSound("SFX_laser");
son.setVolume(_root.sfxvol);
son.start(0, 0);
Symbol 410 MovieClip [bul] Frame 5
son.attachSound("SFX_rocket");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 410 MovieClip [bul] Frame 6
son.attachSound("SFX_cannon");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 410 MovieClip [bul] Frame 7
son.attachSound("SFX_cannon");
son.setVolume(_root.sfxvol);
son.start(0, 0);
Symbol 410 MovieClip [bul] Frame 8
son.attachSound("SFX_cannon");
son.setVolume(_root.sfxvol);
son.start(0, 0);
Symbol 410 MovieClip [bul] Frame 9
son.attachSound("SFX_cannon");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 410 MovieClip [bul] Frame 10
son.attachSound("SFX_cannon");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 410 MovieClip [bul] Frame 11
son.attachSound("SFX_rocket");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 410 MovieClip [bul] Frame 12
son.attachSound("SFX_rocket");
son.setVolume(_root.sfxvol);
son.start(0, 0);
this.boom = true;
Symbol 420 MovieClip Frame 16
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 31
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 47
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 67
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 82
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 99
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 118
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 134
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 149
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
Symbol 420 MovieClip Frame 165
_root.spawns(this._parent._x + (Math.cos(this._parent.ang) * 70), this._parent._y + (Math.sin(this._parent.ang) * 70));
this._parent.gotoAndStop(1);
Symbol 421 MovieClip [tank12] Frame 1
#initclip 47
Object.registerClass("tank12", tank12);
#endinitclip
stop();
Symbol 421 MovieClip [tank12] Frame 2
stop();
Symbol 421 MovieClip [tank12] Frame 3
stop();
Instance of Symbol 428 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.loadedt = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this._yscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
}
Instance of Symbol 434 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.loadedt == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
if (this._currentframe == 2) {
_root.play();
}
}
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1132 MovieClip [__Packages.tbomb] Frame 0
class tbomb extends MovieClip
{
var gotoAndStop, hitTest, _currentframe;
function tbomb () {
super();
}
function onEnterFrame() {
timer--;
if (timer <= 0) {
timer = 30;
timed--;
}
if (timed <= 0) {
_root.hp = _root.hp - 30;
gotoAndStop(2);
}
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 2)) {
gotoAndStop(2);
}
}
var timer = 30;
var timed = 5;
var hp = 1;
}
Symbol 1133 MovieClip [__Packages.striker] Frame 0
class striker extends MovieClip
{
var hitTest, getDepth, ang, _y, _x, gotoAndStop, _currentframe, _rotation;
function striker () {
super();
}
function onEnterFrame() {
for (var _local3 in _root) {
if (hitTest(_root[_local3])) {
if (_root[_local3].getDepth() > getDepth()) {
_root[_local3].swapDepths(this);
}
}
}
if (!setang) {
ang = Math.atan2(_root.striketarget._y - _y, _root.striketarget._x - _x);
setang = true;
}
if ((((_x > (Stage.width + 200)) || (_y > (Stage.height + 200))) || (_y < -200)) || (_x < -200)) {
gotoAndStop(3);
}
if (atkcharge >= 20) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
}
}
}
var hp = 20;
var speed = 4;
var atkcharge = 0;
var plane = true;
var setang = false;
}
Symbol 1134 MovieClip [__Packages.tank18] Frame 0
class tank18 extends MovieClip
{
var hitTest, getDepth, ang, _y, _x, gotoAndStop, _currentframe, _rotation;
function tank18 () {
super();
}
function onEnterFrame() {
for (var _local3 in _root) {
if (hitTest(_root[_local3])) {
if (_root[_local3].getDepth() > getDepth()) {
_root[_local3].swapDepths(this);
}
}
}
if (!setang) {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
setang = true;
}
if ((((_x > (Stage.width + 200)) || (_y > (Stage.height + 200))) || (_y < -200)) || (_x < -200)) {
gotoAndStop(3);
}
if (atkcharge >= 20) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local4 in _root) {
if (hitTest(_root[_local4]._x, _root[_local4]._y) && (_local4.slice(0, 3) == "bul")) {
if (_root[_local4].team == "good") {
hp = hp - _root[_local4].dam;
_root[_local4].swapDepths(_root.getNextHighestDepth());
_root[_local4].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
_root.missionobj6++;
gotoAndStop(3);
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 20;
var speed = 4;
var atkcharge = 0;
var plane = true;
var setang = false;
}
Symbol 1135 MovieClip [__Packages.tank17] Frame 0
class tank17 extends MovieClip
{
var hitTest, getDepth, ang, _y, _x, gotoAndStop, _currentframe, _rotation;
function tank17 () {
super();
}
function onEnterFrame() {
for (var _local3 in _root) {
if (hitTest(_root[_local3])) {
if (_root[_local3].getDepth() > getDepth()) {
_root[_local3].swapDepths(this);
}
}
}
if (!setang) {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
setang = true;
}
if ((((_x > (Stage.width + 200)) || (_y > (Stage.height + 200))) || (_y < -200)) || (_x < -200)) {
gotoAndStop(3);
}
if (atkcharge >= 30) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local4 in _root) {
if (hitTest(_root[_local4]._x, _root[_local4]._y) && (_local4.slice(0, 3) == "bul")) {
if (_root[_local4].team == "good") {
hp = hp - _root[_local4].dam;
_root[_local4].swapDepths(_root.getNextHighestDepth());
_root[_local4].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.missionobj6++;
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 20;
var speed = 4;
var atkcharge = 0;
var plane = true;
var setang = false;
}
Symbol 1136 MovieClip [__Packages.tank16] Frame 0
class tank16 extends MovieClip
{
var hitTest, getDepth, ang, _y, _x, gotoAndStop, _currentframe, _rotation;
function tank16 () {
super();
}
function onEnterFrame() {
for (var _local3 in _root) {
if (hitTest(_root[_local3])) {
if (_root[_local3].getDepth() > getDepth()) {
_root[_local3].swapDepths(this);
}
}
}
if (!setang) {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
setang = true;
}
if ((((_x > (Stage.width + 200)) || (_y > (Stage.height + 200))) || (_y < -200)) || (_x < -200)) {
gotoAndStop(3);
}
if (atkcharge >= 30) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local4 in _root) {
if (hitTest(_root[_local4]._x, _root[_local4]._y) && (_local4.slice(0, 3) == "bul")) {
if (_root[_local4].team == "good") {
hp = hp - _root[_local4].dam;
_root[_local4].swapDepths(_root.getNextHighestDepth());
_root[_local4].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.missionobj6++;
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 10;
var speed = 4;
var atkcharge = 0;
var plane = true;
var setang = false;
}
Symbol 1137 MovieClip [__Packages.tank15] Frame 0
class tank15 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, hitTest, _rotation;
function tank15 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 100000) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
if (hitTest(_root.base)) {
_root.power = 0;
}
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 5;
var speed = 5;
var atkcharge = 0;
}
Symbol 1138 MovieClip [__Packages.tank14] Frame 0
class tank14 extends MovieClip
{
var ang, _y, _x, cannon, gotoAndStop, _currentframe, _rotation, hitTest;
function tank14 () {
super();
}
function onEnterFrame() {
if (!circling) {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
} else {
cannon._rotation = 270;
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x) + (Math.PI/2);
}
if (Math.sqrt(((_x - _root.base._x) * (_x - _root.base._x)) + ((_y - _root.base._y) * (_y - _root.base._y))) < 250) {
circling = true;
}
if ((atkcharge >= 20) && (circling)) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 2)) {
gotoAndStop(3);
_root.cash = _root.cash + (100 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 5;
var speed = 5;
var atkcharge = 0;
var circling = false;
var plane = true;
}
Symbol 1139 MovieClip [__Packages.tank13] Frame 0
class tank13 extends MovieClip
{
var ang, _y, _x, _currentframe, _rotation, hitTest, gotoAndStop;
function tank13 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
for (var _local3 in _root.base) {
_root.base[_local3].freeze = true;
_root.base[_local3].ang = Math.atan2(_y - ((_root.base[_local3].gun._y + _root.base[_local3]._y) + _root.base._y), _x - ((_root.base[_local3].gun._x + _root.base[_local3]._x) + _root.base._x));
}
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local4 in _root) {
if (hitTest(_root[_local4]._x, _root[_local4]._y) && (_local4.slice(0, 3) == "bul")) {
if (_root[_local4].team == "good") {
hp = hp - _root[_local4].dam;
_root[_local4].swapDepths(_root.getNextHighestDepth());
_root[_local4].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 2)) {
gotoAndStop(2);
_root.cash = _root.cash + (100 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 15;
var speed = 0.5;
var atkcharge = 0;
}
Symbol 1140 MovieClip [__Packages.soldier2] Frame 0
class soldier2 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function soldier2 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 120) {
atkcharge = 0;
gotoAndStop(5);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
if (hitTest(_root.base.b7)) {
hp = hp - 2;
}
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe == 1)) {
gotoAndStop(random(3) + 2);
_root.cash = _root.cash + (10 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 2;
var speed = 4;
var atkcharge = 0;
var plane = true;
}
Symbol 1141 MovieClip [__Packages.tank10] Frame 0
class tank10 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank10 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 270) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (1000 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 120;
var speed = 0.5;
var atkcharge = 0;
}
Symbol 1142 MovieClip [__Packages.tank9] Frame 0
class tank9 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank9 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 123234) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (100 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 10;
var speed = 1;
var atkcharge = 0;
}
Symbol 1143 MovieClip [__Packages.tank8] Frame 0
class tank8 extends MovieClip
{
var _y, _x, car, ang, gotoAndStop, _currentframe, _rotation, hitTest;
function tank8 () {
super();
}
function onEnterFrame() {
var _local6 = _y - _root.base._y;
var _local5 = _x - _root.base._x;
car.bar._yscale = Math.sqrt((_local6 * _local6) + (_local5 * _local5)) * 2;
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 1200) {
atkcharge = 0;
gotoAndStop(2);
}
if (_currentframe == 2) {
for (var _local3 in _root.base) {
_root.base[_local3].freeze = true;
_root.base[_local3].ang = (random(360) * Math.PI) / 180;
}
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local4 in _root) {
if (hitTest(_root[_local4]._x, _root[_local4]._y) && (_local4.slice(0, 3) == "bul")) {
if (_root[_local4].team == "good") {
hp = hp - _root[_local4].dam;
_root[_local4].swapDepths(_root.getNextHighestDepth());
_root[_local4].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (100 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 5;
var speed = 2;
var atkcharge = 1140;
}
Symbol 1144 MovieClip [__Packages.tank7] Frame 0
class tank7 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, hitTest;
function tank7 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 100000) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (100 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 1;
var speed = 5;
var atkcharge = 0;
}
Symbol 1145 MovieClip [__Packages.tank6] Frame 0
class tank6 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank6 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 100000) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 1;
var speed = 4;
var atkcharge = 0;
}
Symbol 1146 MovieClip [__Packages.tank5] Frame 0
class tank5 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank5 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 30) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 1;
var speed = 3;
var atkcharge = 0;
}
Symbol 1147 MovieClip [__Packages.tank4] Frame 0
class tank4 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank4 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 90) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 1;
var speed = 0.5;
var atkcharge = 0;
}
Symbol 1148 MovieClip [__Packages.tank3] Frame 0
class tank3 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank3 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 30) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 3;
var speed = 1;
var atkcharge = 0;
}
Symbol 1149 MovieClip [__Packages.tank2] Frame 0
class tank2 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank2 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 240) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (40 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 2;
var speed = 0.5;
var atkcharge = 0;
}
Symbol 1150 MovieClip [__Packages.tank1] Frame 0
class tank1 extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function tank1 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 120) {
atkcharge = 0;
gotoAndStop(2);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(random(3) + 2);
_root.cash = _root.cash + (30 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
}
var hp = 2;
var speed = 0.5;
var atkcharge = 0;
}
Symbol 1151 MovieClip [__Packages.soldier] Frame 0
class soldier extends MovieClip
{
var ang, _y, _x, gotoAndStop, _currentframe, _rotation, hitTest;
function soldier () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
if (atkcharge >= 120) {
atkcharge = 0;
gotoAndStop(5);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if (_currentframe == 1) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
_rotation = ((ang * 180) / Math.PI) - 180;
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
if ((hp <= 0) && (_currentframe == 1)) {
gotoAndStop(random(3) + 2);
_root.cash = _root.cash + (10 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
_root.missionobj5++;
}
}
}
}
var hp = 1;
var speed = 0.5;
var atkcharge = 0;
}
Symbol 1152 MovieClip [__Packages.tank12] Frame 0
class tank12 extends MovieClip
{
var ang, _y, _x, ang2, gotoAndStop, car, _currentframe, _rotation, hitTest;
function tank12 () {
super();
}
function onEnterFrame() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
ang2 = ang;
if (atkcharge == 40) {
gotoAndStop(2);
atkcharge++;
}
if (atkcharge > 40) {
car._visible = false;
}
if ((!_root.pauser2) && (!_root.pauser)) {
if (_currentframe == 1) {
atkcharge++;
if (atkcharge < 41) {
_rotation = (ang * 180) / Math.PI;
} else if (rota < 180) {
_rotation = _rotation - 5;
rota = rota + 5;
ang2 = ((_rotation - 180) * Math.PI) / 180;
}
_x = _x + (Math.cos(ang2) * speed);
_y = _y + (Math.sin(ang2) * speed);
}
if (rota >= 180) {
for (var _local3 in _root) {
if (hitTest(_root[_local3]._x, _root[_local3]._y) && (_local3.slice(0, 3) == "bul")) {
if (_root[_local3].team == "good") {
hp = hp - _root[_local3].dam;
_root[_local3].swapDepths(_root.getNextHighestDepth());
_root[_local3].removeMovieClip();
}
}
}
}
if ((hp <= 0) && (_currentframe != 3)) {
gotoAndStop(3);
_root.cash = _root.cash + (500 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
}
}
var rota = 0;
var hp = 5;
var speed = 2;
var atkcharge = 0;
}
Symbol 1153 MovieClip [__Packages.tank20] Frame 0
class tank20 extends MovieClip
{
var ang, _y, _x, hitTest, _currentframe, gotoAndStop, _alpha, swapDepths, removeMovieClip, _rotation;
function tank20 () {
super();
}
function onLoad() {
ang = Math.atan2(_root.base._y - _y, _root.base._x - _x);
for (var _local3 in this) {
if (_local3.slice(0, 1) != "b") {
this[_local3].hp = 1;
this[_local3].onEnterFrame = function () {
if (this.hp <= 0) {
this._parent.deaths++;
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
_root.cash = _root.cash + (50 * _root.autocash);
_root.hp = _root.hp + _root.autohp;
}
};
}
}
}
function onEnterFrame() {
for (var _local4 in _root) {
if (_root[_local4].team == "good") {
if (_local4.slice(0, 3) == "bul") {
if (hitTest(_root[_local4]._x, _root[_local4]._y)) {
for (var _local3 in this) {
if (this[_local3].hitTest(_root[_local4]._x, _root[_local4]._y)) {
if (_local3.slice(0, 1) != "b") {
this[_local3].hp = this[_local3].hp - _root[_local4].dam;
_root[_local4].swapDepths(_root.getNextHighestDepth());
_root[_local4].removeMovieClip();
break;
}
}
}
}
}
}
}
if (_currentframe == 2) {
_root.hp--;
}
if (deaths >= 12) {
gotoAndStop(2);
_alpha = _alpha - 10;
}
if (_alpha <= 0) {
_root.missionobj3d++;
swapDepths(_root.getNextHighestDepth());
removeMovieClip();
}
if ((((_x > (Stage.width + 200)) || (_y > (Stage.height + 200))) || (_y < -200)) || (_x < -200)) {
gotoAndStop(3);
}
if ((!_root.pauser2) && (!_root.pauser)) {
atkcharge++;
if ((((_x - _root.base._x) * (_x - _root.base._x)) + ((_y - _root.base._y) * (_y - _root.base._y))) > 10000) {
_x = _x + (Math.cos(ang) * speed);
_y = _y + (Math.sin(ang) * speed);
} else {
gotoAndStop(2);
}
_rotation = ((ang * 180) / Math.PI) - 180;
}
}
var speed = 0.5;
var atkcharge = 0;
var plane = true;
var deaths = 0;
}
Symbol 488 Button
on (release) {
_root.play();
}
Symbol 489 MovieClip Frame 143
_root.play();
stop();
Symbol 510 MovieClip Frame 140
_root.play();
Instance of Symbol 769 MovieClip "dragger" in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent.variance = 70 + this._x;
}
on (press) {
this.startDrag(0, -70, this._y, 12, this._y);
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Instance of Symbol 770 MovieClip in Symbol 777 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.bgmvol = this.variance;
}
onClipEvent (load) {
this.dragger._x = _root.bgmvol - 70;
}
Instance of Symbol 770 MovieClip in Symbol 777 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.sfxvol = this.variance;
}
onClipEvent (load) {
this.dragger._x = _root.sfxvol - 70;
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
_root.qual = "LOW";
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
_root.qual = "HIGH";
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
_root.qual = "MEDIUM";
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
_root.qual = "AUTO";
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
_root.saveops();
_root.pauser = false;
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
getURL ("http://www.rustygames.com", "_blank");
}
Instance of Symbol 759 MovieClip in Symbol 777 MovieClip Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 787 MovieClip in Symbol 807 MovieClip Frame 1
on (press) {
this._parent._visible = false;
}
Symbol 822 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 1
stop();
Symbol 837 MovieClip Frame 1
stop();
Instance of Symbol 822 MovieClip in Symbol 858 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level9 && (_root.level10)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 825 MovieClip in Symbol 858 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level7 && (_root.level8)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 828 MovieClip in Symbol 858 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level5 && (_root.level6)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 831 MovieClip in Symbol 858 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level4) {
this.gotoAndStop(2);
}
}
Instance of Symbol 834 MovieClip in Symbol 858 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level2 && (_root.level3)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 837 MovieClip in Symbol 858 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "Many immigrants are swarming into 'Far West City' from the 'Ed country union'. Build a full base (turrets optional) to show them we don't want them there.";
if (_root.level1) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Far West City (Medium)";
_root.mission = 1;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b1");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "Matt's kingdom is planning on testing their new air units in our 'Commercial zone'. They are first sending in an army of troops then sending in their planes. Let's show them we have the number 1 air fleet. Build a radar and send 3 air strikes.";
if (_root.level2) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Commercial Zone (Medium)";
_root.mission = 2;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b2");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "Matt's kingdom has, by far, superior technology to us. Our plan is to build a base in south city and destroy their high tech units for our scientists to study. We will need 5 special forces soldiers, 3 Magnetrons, 3 Disrupter tanks and a Troop Ram.";
if (_root.level3) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "South City (Easy)";
_root.mission = 3;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b3");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "We must protect our capital! The 'Schemly Socialist Republic' is planning on taking over our capital and killing the president. We cannot let this happen this is an objective of extreme importance. Destroy all 25 waves of enemies. Do not fail us.";
if (_root.level4) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Scoth DC (Hard)";
_root.mission = 4;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b4");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "There's going to be an invasion from the 'Schemly Socialist Republic' against 'Blue city' tomorrow morning. They are going to send Soldiers to kill the population and take over the government buildings. Show them they aren't welcome, kill 85 troops.";
if (_root.level5) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Blue City (Easy)";
_root.mission = 5;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b5");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "The 'United Federation' is launching an air-based attack on the civilian city of 'Long Town'. We must prevent this. Destroy at least half of the advancing air-craft.";
if (_root.level6) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Long Town (Easy)";
_root.mission = 6;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b6");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "Barbaria town continues to pose a threat to our 'Industrial Zone'. They are sending a wave of tanks. Hold off all 15 waves.";
if (_root.level7) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Industrial Zone (Hard)";
_root.mission = 7;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b7");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "Our diplomatic situation with 'Barbaria' isn't going so well. They are sending a wave of tanks and soldiers our way. We must reinforce 'State City'. Build a complete base (turrets optional) and place 10 mines.";
if (_root.level8) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "State City (Hard)";
_root.mission = 8;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b8");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "The situation in Oak Town is going out of control, The 'Warren' troops have taken over almost all of the city. We must excersize extreme measures. As a last resort we want you to launch a nuclear weapon.";
if (_root.level9) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Oak Town (Medium)";
_root.mission = 9;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b9");
son.start(0, 0);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 1
on (press) {
_root.objective = "Our 'Farm Zone' is in trouble. There is not enough money to even hope to be able to stand up against the advancing forces of the 'Warren Republic'. Help speed up economy and generate $25,000 for the farmers.";
if (_root.level10) {
_root.status = "Safe";
} else {
_root.status = "Danger";
}
_root.city = "Farm Zone (Hard)";
_root.mission = 10;
stopAllSounds();
var son = new Sound(this);
son.setVolume(100);
son.attachSound("b10");
son.start(0, 0);
}
Symbol 871 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 2
stop();
Symbol 871 MovieClip Frame 3
stop();
Symbol 880 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 2
stop();
Symbol 880 MovieClip Frame 3
stop();
Symbol 880 MovieClip Frame 4
stop();
Instance of Symbol 862 MovieClip in Symbol 895 MovieClip Frame 1
on (press) {
if (_root.username == "sarahblount") {
_root.cash = _root.cash + 100000;
}
_root.savefile.data.username = _root.username;
var lv = new LoadVars();
lv.score = _root.tcash;
lv.uname = _root.username;
lv.sendAndLoad("http://www.rustygames.com/games/FD2submit.php", lv, "POST");
getURL ("http://www.rustygames.com/games/FD2.php", "_blank");
this._visible = false;
}
Instance of Symbol 871 MovieClip in Symbol 895 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.autocash);
}
on (press) {
this.play();
if (_root.tcash >= ((300 * this._currentframe) * 20)) {
_root.autocash++;
_root.tcash = _root.tcash - ((300 * this._currentframe) * 20);
_root.savefile.data.autocash = _root.autocash;
_root.savefile.data.cash = _root.tcash;
}
}
on (rollOver) {
this._parent.info2.text = "Cash flow\nIncrease the ammount of cash earnt by killing enemies\n$" + ((300 * this._currentframe) * 20);
}
on (rollOut) {
this._parent.info2.text = "";
}
Instance of Symbol 880 MovieClip in Symbol 895 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop((_root.autohp / 10) + 1);
}
on (press) {
if (_root.tcash >= ((300 * this._currentframe) * 10)) {
_root.autohp = _root.autohp + 10;
_root.tcash = _root.tcash - ((300 * this._currentframe) * 10);
_root.savefile.data.autohp = _root.autohp;
_root.savefile.data.cash = _root.tcash;
}
}
on (rollOver) {
this._parent.info2.text = "Auto repair\nAutomaticaly regenerate HP every time you kill an enemy\n$" + ((300 * this._currentframe) * 10);
}
on (rollOut) {
this._parent.info2.text = "";
}
Instance of Symbol 886 MovieClip "button" in Symbol 895 MovieClip Frame 1
on (press) {
_root.cash = _root.cash + _root.missioncash[_root.mission - 1];
_root.gotoAndStop("mission" + _root.mission);
}
onClipEvent (enterFrame) {
if (_root.mission == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 890 MovieClip "button" in Symbol 895 MovieClip Frame 1
on (release) {
_root.gotoAndStop("menu");
}
Symbol 904 MovieClip Frame 1
stop();
Symbol 915 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 1
stop();
Symbol 952 MovieClip Frame 1
stop();
Symbol 954 MovieClip Frame 1
stop();
Instance of Symbol 904 MovieClip "b7" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.maxhp = this._currentframe * 200;
}
Instance of Symbol 915 MovieClip "b2" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.radaract = this._currentframe - 1;
}
Instance of Symbol 917 MovieClip "b3" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.nukeact = this._currentframe - 1;
}
Instance of Symbol 919 MovieClip "b6" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.powerinc = this._currentframe;
}
Instance of Symbol 927 MovieClip "b5" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.powerdec = (3 - this._currentframe) / 2;
}
Instance of Symbol 930 MovieClip "b1" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.sheildtype = this._currentframe;
}
Instance of Symbol 952 MovieClip "t1" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
var shooting = false;
var fir = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pauser2) && (!_root.pauser)) {
if (this._currentframe > 2) {
if (!this.freeze) {
this.ang = Math.atan2(_root._ymouse - ((this.gun._y + this._y) + this._parent._y), _root._xmouse - ((this.gun._x + this._x) + this._parent._x));
}
this.gun._rotation = ((this.ang * 180) / Math.PI) - 180;
this.fir++;
if (this.shooting) {
if (this.fir > (60 - (this._currentframe * 10))) {
this.fir = 0;
_root.shoot((this.gun._x + this._x) + this._parent._x, (this.gun._y + this._y) + this._parent._y, this.ang, "good", this._currentframe - 2, (this._currentframe - 2) * _root.powerinc);
}
}
}
}
this.freeze = false;
}
onClipEvent (mouseDown) {
this.shooting = true;
}
onClipEvent (mouseUp) {
this.shooting = false;
}
Instance of Symbol 952 MovieClip "t2" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
var shooting = false;
var fir = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pauser2) && (!_root.pauser)) {
if (this._currentframe > 2) {
if (!this.freeze) {
this.ang = Math.atan2(_root._ymouse - ((this.gun._y + this._y) + this._parent._y), _root._xmouse - ((this.gun._x + this._x) + this._parent._x));
}
this.gun._rotation = ((this.ang * 180) / Math.PI) - 180;
this.fir++;
if (this.shooting) {
if (this.fir > (60 - (this._currentframe * 10))) {
this.fir = 0;
_root.shoot((this.gun._x + this._x) + this._parent._x, (this.gun._y + this._y) + this._parent._y, this.ang, "good", this._currentframe - 2, (this._currentframe - 2) * _root.powerinc);
}
}
}
}
this.freeze = false;
}
onClipEvent (mouseDown) {
this.shooting = true;
}
onClipEvent (mouseUp) {
this.shooting = false;
}
Instance of Symbol 952 MovieClip "t3" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
var shooting = false;
var fir = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pauser2) && (!_root.pauser)) {
if (this._currentframe > 2) {
if (!this.freeze) {
this.ang = Math.atan2(_root._ymouse - ((this.gun._y + this._y) + this._parent._y), _root._xmouse - ((this.gun._x + this._x) + this._parent._x));
}
this.gun._rotation = ((this.ang * 180) / Math.PI) - 180;
this.fir++;
if (this.shooting) {
if (this.fir > (60 - (this._currentframe * 10))) {
this.fir = 0;
_root.shoot((this.gun._x + this._x) + this._parent._x, (this.gun._y + this._y) + this._parent._y, this.ang, "good", this._currentframe - 2, (this._currentframe - 2) * _root.powerinc);
}
}
}
}
this.freeze = false;
}
onClipEvent (mouseDown) {
this.shooting = true;
}
onClipEvent (mouseUp) {
this.shooting = false;
}
Instance of Symbol 952 MovieClip "t4" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
var shooting = false;
var fir = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pauser2) && (!_root.pauser)) {
if (this._currentframe > 2) {
if (!this.freeze) {
this.ang = Math.atan2(_root._ymouse - ((this.gun._y + this._y) + this._parent._y), _root._xmouse - ((this.gun._x + this._x) + this._parent._x));
}
this.gun._rotation = ((this.ang * 180) / Math.PI) - 180;
this.fir++;
if (this.shooting) {
if (this.fir > (60 - (this._currentframe * 10))) {
this.fir = 0;
_root.shoot((this.gun._x + this._x) + this._parent._x, (this.gun._y + this._y) + this._parent._y, this.ang, "good", this._currentframe - 2, (this._currentframe - 2) * _root.powerinc);
}
}
}
}
this.freeze = false;
}
onClipEvent (mouseDown) {
this.shooting = true;
}
onClipEvent (mouseUp) {
this.shooting = false;
}
Instance of Symbol 952 MovieClip "t6" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
var shooting = false;
var fir = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pauser2) && (!_root.pauser)) {
if (this._currentframe > 2) {
if (!this.freeze) {
this.ang = Math.atan2(_root._ymouse - ((this.gun._y + this._y) + this._parent._y), _root._xmouse - ((this.gun._x + this._x) + this._parent._x));
}
this.gun._rotation = ((this.ang * 180) / Math.PI) - 180;
this.fir++;
if (this.shooting) {
if (this.fir > (60 - (this._currentframe * 10))) {
this.fir = 0;
_root.shoot((this.gun._x + this._x) + this._parent._x, (this.gun._y + this._y) + this._parent._y, this.ang, "good", this._currentframe - 2, (this._currentframe - 2) * _root.powerinc);
}
}
}
}
this.freeze = false;
}
onClipEvent (mouseDown) {
this.shooting = true;
}
onClipEvent (mouseUp) {
this.shooting = false;
}
Instance of Symbol 952 MovieClip "t5" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
var shooting = false;
var fir = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pauser2) && (!_root.pauser)) {
if (this._currentframe > 2) {
if (!this.freeze) {
this.ang = Math.atan2(_root._ymouse - ((this.gun._y + this._y) + this._parent._y), _root._xmouse - ((this.gun._x + this._x) + this._parent._x));
}
this.gun._rotation = ((this.ang * 180) / Math.PI) - 180;
this.fir++;
if (this.shooting) {
if (this.fir > (60 - (this._currentframe * 10))) {
this.fir = 0;
_root.shoot((this.gun._x + this._x) + this._parent._x, (this.gun._y + this._y) + this._parent._y, this.ang, "good", this._currentframe - 2, (this._currentframe - 2) * _root.powerinc);
}
}
}
}
this.freeze = false;
}
onClipEvent (mouseDown) {
this.shooting = true;
}
onClipEvent (mouseUp) {
this.shooting = false;
}
Instance of Symbol 954 MovieClip "b4" in Symbol 955 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.mineact = this._currentframe - 1;
}
Symbol 972 MovieClip Frame 1
nuke = 0;
strike = 0;
mine = 0;
onEnterFrame = function () {
if ((!_root.pauser) && (!_root.pauser2)) {
if ((_root.nukeact == 1) && (this.nuke < 100)) {
this.nuke = this.nuke + 0.05;
}
if ((_root.radaract == 1) && (this.strike < 100)) {
this.strike = this.strike + 0.05;
}
if ((_root.mineact == 1) && (this.mine < 100)) {
this.mine = this.mine + 0.2;
}
if (this.mine >= 100) {
this.mine = 0;
_root.mines++;
}
}
};
Instance of Symbol 957 MovieClip in Symbol 972 MovieClip Frame 1
on (press) {
if (this._parent.nuke >= 100) {
_root.nuke();
this._parent.nuke = 0;
}
}
Instance of Symbol 960 MovieClip in Symbol 972 MovieClip Frame 1
on (release) {
this._parent._y = this._parent._y - ((this._yscale / 100) * 53);
this._yscale = -this._yscale;
}
Instance of Symbol 961 MovieClip in Symbol 972 MovieClip Frame 1
on (press) {
if (this._parent.strike >= 100) {
_root.strike();
this._parent.strike = 0;
_root.missionobj2++;
}
}
Instance of Symbol 957 MovieClip in Symbol 972 MovieClip Frame 1
on (press) {
if (_root.mines > 0) {
_root.mine();
_root.mines--;
_root.missionobj8++;
}
}
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 2
stop();
Symbol 1005 MovieClip Frame 1
stop();
Instance of Symbol 871 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.autocash);
}
on (press) {
this.play();
if (_root.cash >= ((300 * this._currentframe) * 20)) {
_root.autocash++;
_root.cash = _root.cash - ((300 * this._currentframe) * 20);
}
}
on (rollOver) {
this._parent.info2.text = "Cash flow\nIncrease the ammount of cash earnt by killing enemies\n$" + ((300 * this._currentframe) * 20);
}
on (rollOut) {
this._parent.info2.text = "";
}
Instance of Symbol 880 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop((_root.autohp / 10) + 1);
}
on (press) {
if (_root.cash >= ((300 * this._currentframe) * 10)) {
_root.autohp = _root.autohp + 10;
_root.cash = _root.cash - ((300 * this._currentframe) * 10);
}
}
on (rollOver) {
this._parent.info2.text = "Auto repair\nAutomaticaly regenerate HP every time you kill an enemy\n$" + ((300 * this._currentframe) * 10);
}
on (rollOut) {
this._parent.info2.text = "";
}
Instance of Symbol 988 MovieClip in Symbol 1025 MovieClip Frame 1
on (press) {
if (_root.hp < _root.maxhp) {
if (_root.cash >= 30) {
_root.hp = _root.hp + 10;
_root.cash = _root.cash - 30;
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
}
}
}
on (rollOver) {
this._parent.info2.text = "Repair base (+10hp) \n$30";
}
on (rollOut) {
this._parent.info2.text = "";
}
Instance of Symbol 991 MovieClip in Symbol 1025 MovieClip Frame 1
on (rollOver) {
this._parent.info2.text = "Skip time (+30 time) \n$100";
}
on (rollOut) {
this._parent.info2.text = "";
}
on (press) {
if (_root.timer <= (_root.maxtime - 11)) {
if (_root.cash >= 100) {
_root.timer = _root.timer + 30;
_root.cash = _root.cash - 100;
}
}
}
Instance of Symbol 1005 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var tnum = 1;
var upgradetext = new Array("", "", (("Construct turret\nCreate a new turret in turret space " + this.tnum) + "\n$") + _root.t1cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a rocket turret\n$") + _root.t2cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a laser turret\n$") + _root.t3cost);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["t" + this.tnum]._currentframe;
if ((this.cupframe < 5) && (this.cupframe > 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext[this.cupframe];
this._parent.icons.gotoAndStop(this.cupframe);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root.t1cost) {
if (this.cupframe == 2) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t1cost;
this.play();
}
}
if (_root.cash >= _root.t2cost) {
if (this.cupframe == 3) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t2cost;
this.play();
}
}
if (_root.cash >= _root.t3cost) {
if (this.cupframe == 4) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t3cost;
this.play();
this._parent.info.text = "";
}
}
}
Instance of Symbol 1005 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var tnum = 2;
var upgradetext = new Array("", "", (("Construct turret\nCreate a new turret in turret space " + this.tnum) + "\n$") + _root.t1cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a rocket turret\n$") + _root.t2cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a laser turret\n$") + _root.t3cost);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["t" + this.tnum]._currentframe;
if ((this.cupframe < 5) && (this.cupframe > 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext[this.cupframe];
this._parent.icons.gotoAndStop(this.cupframe);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root.t1cost) {
if (this.cupframe == 2) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t1cost;
this.play();
}
}
if (_root.cash >= _root.t2cost) {
if (this.cupframe == 3) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t2cost;
this.play();
}
}
if (_root.cash >= _root.t3cost) {
if (this.cupframe == 4) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t3cost;
this.play();
this._parent.info.text = "";
}
}
}
Instance of Symbol 1005 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var tnum = 3;
var upgradetext = new Array("", "", (("Construct turret\nCreate a new turret in turret space " + this.tnum) + "\n$") + _root.t1cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a rocket turret\n$") + _root.t2cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a laser turret\n$") + _root.t3cost);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["t" + this.tnum]._currentframe;
if ((this.cupframe < 5) && (this.cupframe > 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext[this.cupframe];
this._parent.icons.gotoAndStop(this.cupframe);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root.t1cost) {
if (this.cupframe == 2) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t1cost;
this.play();
}
}
if (_root.cash >= _root.t2cost) {
if (this.cupframe == 3) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t2cost;
this.play();
}
}
if (_root.cash >= _root.t3cost) {
if (this.cupframe == 4) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t3cost;
this.play();
this._parent.info.text = "";
}
}
}
Instance of Symbol 1005 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var tnum = 5;
var upgradetext = new Array("", "", (("Construct turret\nCreate a new turret in turret space " + this.tnum) + "\n$") + _root.t1cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a rocket turret\n$") + _root.t2cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a laser turret\n$") + _root.t3cost);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["t" + this.tnum]._currentframe;
if ((this.cupframe < 5) && (this.cupframe > 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext[this.cupframe];
this._parent.icons.gotoAndStop(this.cupframe);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root.t1cost) {
if (this.cupframe == 2) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t1cost;
this.play();
}
}
if (_root.cash >= _root.t2cost) {
if (this.cupframe == 3) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t2cost;
this.play();
}
}
if (_root.cash >= _root.t3cost) {
if (this.cupframe == 4) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t3cost;
this.play();
this._parent.info.text = "";
}
}
}
Instance of Symbol 1005 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var tnum = 6;
var upgradetext = new Array("", "", (("Construct turret\nCreate a new turret in turret space " + this.tnum) + "\n$") + _root.t1cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a rocket turret\n$") + _root.t2cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a laser turret\n$") + _root.t3cost);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["t" + this.tnum]._currentframe;
if ((this.cupframe < 5) && (this.cupframe > 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext[this.cupframe];
this._parent.icons.gotoAndStop(this.cupframe);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root.t1cost) {
if (this.cupframe == 2) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t1cost;
this.play();
}
}
if (_root.cash >= _root.t2cost) {
if (this.cupframe == 3) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t2cost;
this.play();
}
}
if (_root.cash >= _root.t3cost) {
if (this.cupframe == 4) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t3cost;
this.play();
this._parent.info.text = "";
}
}
}
Instance of Symbol 1005 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var tnum = 4;
var upgradetext = new Array("", "", (("Construct turret\nCreate a new turret in turret space " + this.tnum) + "\n$") + _root.t1cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a rocket turret\n$") + _root.t2cost, (("Upgrade turret\nUpgrade turret " + this.tnum) + " to a laser turret\n$") + _root.t3cost);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["t" + this.tnum]._currentframe;
if ((this.cupframe < 5) && (this.cupframe > 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext[this.cupframe];
this._parent.icons.gotoAndStop(this.cupframe);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root.t1cost) {
if (this.cupframe == 2) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t1cost;
this.play();
}
}
if (_root.cash >= _root.t2cost) {
if (this.cupframe == 3) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t2cost;
this.play();
}
}
if (_root.cash >= _root.t3cost) {
if (this.cupframe == 4) {
_root.base["t" + this.tnum].nextFrame();
_root.cash = _root.cash - _root.t3cost;
this.play();
this._parent.info.text = "";
}
}
}
Instance of Symbol 1007 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 2;
var upgradetext = ("Radar\nCalls airstrike support\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(8);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
this.play();
_root.missionobj++;
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
}
}
}
Instance of Symbol 1009 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 7;
var upgradetext = ("Main Base\nIncreases hit points\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(11);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
this.play();
_root.hp = 400;
_root.missionobj++;
}
}
}
Instance of Symbol 1011 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 5;
var upgradetext = ("Power olant\nGenerates power so sheild charges faster\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(7);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
this.play();
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
_root.missionobj++;
}
}
}
Instance of Symbol 1013 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 4;
var upgradetext = ("Mine factory\nCreates mines\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(9);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
this.play();
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
_root.missionobj++;
}
}
}
Instance of Symbol 1015 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 3;
var upgradetext = ("Nuclear silo\nLaunches Nuclear Weapons\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(10);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
this.play();
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
_root.missionobj++;
}
}
}
Instance of Symbol 1017 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 1;
var upgradetext = ("Advanced sheild generator\nGenerates a sheild which can deflect bullets\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(6);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
_root.missionobj++;
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
this.play();
}
}
}
Instance of Symbol 1019 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
var bnum = 6;
var upgradetext = ("Bullet factory\nIncreases weapon damage\n$" + _root[("b" + this.bnum) + "p"]);
}
onClipEvent (enterFrame) {
this.cupframe = _root.base["b" + this.bnum]._currentframe;
if (this.cupframe == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this._parent.info.text = this.upgradetext;
this._parent.icons.gotoAndStop(5);
}
on (rollOut) {
this._parent.info.text = "";
this._parent.icons.gotoAndStop(1);
}
on (release) {
if (_root.cash >= _root[("b" + this.bnum) + "p"]) {
if (_root.base["b" + this.bnum]._currentframe == 1) {
_root.base["b" + this.bnum].nextFrame();
this.play();
_root.cash = _root.cash - _root[("b" + this.bnum) + "p"];
_root.missionobj++;
}
}
}
Instance of Symbol 1022 MovieClip in Symbol 1025 MovieClip Frame 1
on (press) {
_root.pauser2 = false;
}
Instance of Symbol 770 MovieClip in Symbol 1028 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.bgmvol = this.variance;
}
onClipEvent (load) {
this.dragger._x = _root.bgmvol - 70;
}
Instance of Symbol 770 MovieClip in Symbol 1028 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.sfxvol = this.variance;
}
onClipEvent (load) {
this.dragger._x = _root.sfxvol - 70;
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
_root.qual = "LOW";
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
_root.qual = "HIGH";
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
_root.qual = "MEDIUM";
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
_root.qual = "AUTO";
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
_root.saveops();
_root.pauser = false;
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
_root.gotoAndStop("menu");
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
getURL ("http://www.rustygames.com", "_blank");
}
Instance of Symbol 759 MovieClip in Symbol 1028 MovieClip Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 1032 MovieClip in Symbol 1033 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = (_root.hp / _root.maxhp) * 100;
}
Instance of Symbol 1035 MovieClip in Symbol 1036 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.power;
}
Instance of Symbol 1038 MovieClip in Symbol 1039 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = (_root.timer / _root.maxtime) * 100;
}
Instance of Symbol 1048 MovieClip in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._parent._alpha = 20 + (this._x * 2);
}
on (press) {
this.startDrag(1, 0, 0, 40, 0);
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Symbol 1054 MovieClip Frame 1
var loopnum = (random(4) + 1);
var bgm = new Sound(this);
bgm.attachSound("loop" + loopnum);
bgm.start(0, 10000);
bgm.onSoundComplete = function () {
loopnum = random(4) + 1;
};
onEnterFrame = function () {
bgm.setVolume(_root.bgmvol);
};
Instance of Symbol 960 MovieClip in Symbol 1054 MovieClip Frame 1
on (release) {
this._parent._y = this._parent._y - ((this._yscale / 100) * 30);
this._yscale = -this._yscale;
}
Instance of Symbol 1053 MovieClip in Symbol 1054 MovieClip Frame 1
on (press) {
this._parent.loopnum++;
if (this._parent.loopnum == 5) {
this._parent.loopnum = 1;
}
this._parent.bgm.stop();
this._parent.bgm.attachSound("loop" + this._parent.loopnum);
this._parent.bgm.start(0, 10000);
}
Instance of Symbol 765 MovieClip in Symbol 1054 MovieClip Frame 1
on (release) {
_root.pauser = true;
}
Instance of Symbol 960 MovieClip in Symbol 1060 MovieClip Frame 1
on (release) {
this._parent._y = this._parent._y - ((this._yscale / 100) * 30);
this._yscale = -this._yscale;
}
Instance of Symbol 770 MovieClip in Symbol 1066 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.bgmvol = this.variance;
}
onClipEvent (load) {
this.dragger._x = _root.bgmvol - 70;
}
Instance of Symbol 770 MovieClip in Symbol 1066 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.sfxvol = this.variance;
}
onClipEvent (load) {
this.dragger._x = _root.sfxvol - 70;
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
_root.qual = "LOW";
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
_root.qual = "HIGH";
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
_root.qual = "MEDIUM";
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
_root.qual = "AUTO";
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
_root.saveops();
_root.pauser = false;
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
_root.pauser = false;
_root.lose();
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
getURL ("http://www.rustygames.com", "_blank");
}
Instance of Symbol 759 MovieClip in Symbol 1066 MovieClip Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1117 MovieClip Frame 285
_root.gotoAndStop("menu");
Symbol 1131 MovieClip Frame 733
_root.gotoAndStop("missions");