Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"6d737943652d59f4", res:"600x800"});
Frame 2
stop();
_root.createEmptyMovieClip("bullets", 92);
bCount = 0;
_root.createEmptyMovieClip("splash", 80);
sCount = 0;
_root.createEmptyMovieClip("specials", 98);
spCount = 0;
_root.createEmptyMovieClip("effects", 97);
eCount = 0;
_root.createEmptyMovieClip("effects2", 95);
e2Count = 0;
_root.createEmptyMovieClip("effects3", 94);
shells = 0;
_root.createEmptyMovieClip("enemy", 90);
enemyCount = 0;
_root.createEmptyMovieClip("blood", 89);
bloodCount = 0;
_root.createEmptyMovieClip("movFrameRate", 102);
cannon.swapDepths(96);
lvlend.swapDepths(99);
mainmenu.swapDepths(100);
cursor.swapDepths(101);
_root.lvl = 0;
_root.kills = 0;
_root.lvlgo = false;
_root.count = 0;
_root.enmleft = 0;
_root.reload = 28;
_root.acc = 3;
_root.acc1 = _root.acc;
_root.motor = 0.2;
_root.ra = _root.motor;
_root.firing = 0;
_root.ammo = 20;
_root.wpn = 1;
_root.scrollermax = 0;
_root.healthmax = 500;
_root.health = _root.healthmax;
_root.defplus = 0;
_root.shotsfired = 0;
_root.score = 0;
_root.artillery = 1;
_root.airstrike = 0;
_root.nuke = 0;
_root.defenders = 0;
_root.tech = 1;
_root.movFrameRate.onEnterFrame = function () {
this.t = getTimer();
this.frameRate = Math.round(1000 / (this.t - this.o));
this.o = this.t;
_root.Fps = this.frameRate + "/25";
};
cannon.onMouseDown = function () {
shoot = true;
if (lvlend._visible == false) {
if (_root.wpn == 8) {
Sound21.start(0, 99999);
} else if (_root.wpn == 12) {
Sound18.start(0.05, 0);
Sound26.start(0, 99999999);
Sound27.start(0, 0);
}
}
};
cannon.onMouseUp = function () {
shoot = false;
if (lvlend._visible == false) {
if (_root.wpn == 8) {
Sound21.stop();
Sound22.start(0, 0);
} else if (_root.wpn == 12) {
Sound26.stop();
}
}
if ((lvlend._visible == true) || (mainmenu._visible == true)) {
Sound21.stop();
Sound26.stop();
}
};
pointAtEnm = function (who, x, y) {
var _local1 = x - who._x;
var _local2 = y - who._y;
var _local4 = Math.sqrt((_local1 * _local1) + (_local2 * _local2));
var _local3;
if (_local2 < 0) {
_local3 = (Math.PI*2) - Math.acos(_local1 / _local4);
} else {
_local3 = Math.acos(_local1 / _local4);
}
who._rotation = ((_local3 * 180) / Math.PI) - 90;
};
pointAt = function (who, x, y) {
var _local1 = x - who._x;
var _local2 = y - who._y;
var _local4 = Math.sqrt((_local1 * _local1) + (_local2 * _local2));
var _local3;
if (_local2 < 0) {
_local3 = (Math.PI*2) - Math.acos(_local1 / _local4);
} else {
_local3 = Math.acos(_local1 / _local4);
}
who._rotation = (_local3 * 180) / Math.PI;
};
cursor.onEnterFrame = function () {
_root.bunkerbase.gotoAndStop(_root.defplus + 1);
this.destx = _xmouse;
var _local4 = this.destx - this._x;
this._x = this._x + (_local4 * _root.ra);
this.desty = _ymouse;
var _local3 = this.desty - this._y;
this._y = this._y + (_local3 * _root.ra);
if (lvlend._visible == false) {
if ((((_local4 > 20) || (_local4 < -20)) || (_local3 > 20)) || (_local3 < -20)) {
this.gotoAndStop("move");
_root.acc1 = _root.acc * 2;
_root.ra = _root.motor;
} else {
this.gotoAndStop("idle");
_root.acc1 = _root.acc;
}
} else if ((lvlend._visible == true) || (mainmenu._visible == true)) {
this.gotoAndStop(3);
_root.ra = 0.8;
}
};
cannonEnterFrame = function () {
if (_root.health <= 0) {
_root.lvlend._visible = false;
_root.mainmenu.gotoAndStop(4);
_root.lvltimer = -10;
_root.mainmenu._visible = true;
if (_root.clearscreen == true) {
var _local6 = 0;
while (_local6 < 200) {
var _local10 = "enemy" + _local6;
enemy[_local10].removeMovieClip();
_local6++;
}
_local6 = 0;
while (_local6 < 100) {
var _local8 = "eff" + _local6;
blood[_local8].removeMovieClip();
_local6++;
}
_local6 = 0;
while (_local6 < 100) {
var _local8 = "eff" + _local6;
blood[_local8].removeMovieClip();
_local6++;
}
_local6 = 0;
while (_local6 < 100) {
var _local9 = "shell" + _local6;
effects3[_local9].removeMovieClip();
_local6++;
}
_root.clearscreen = false;
_root.clearscreen = false;
}
}
_root.lvlend.wave = "Are On Wave " + _root.lvl;
_root.lvlend.kills = ("Killed " + _root.kills) + " Enemies";
_root.lvlend.fired = ("Fired " + _root.shotsfired) + " Bullets";
_root.lvlend.score = ("Scored " + _root.score) + " Pts";
_root.lvlend.scorestore = _root.score + " Pts";
_root.lvlend.artcount = "x " + _root.artillery;
_root.lvlend.aircount = "x " + _root.airstrike;
_root.lvlend.nukcount = "x " + _root.nuke;
_root.lvlend.defcount = "x " + _root.defenders;
_root.lvlend.health = (_root.health + "/") + _root.healthmax;
if ((_root.defplus >= 15) || (_root.score < 500)) {
_root.lvlend.updef._alpha = 35;
} else {
_root.lvlend.updef._alpha = 100;
}
if ((_root.tech >= 15) || (_root.score < 250)) {
_root.lvlend.research._alpha = 35;
} else {
_root.lvlend.research._alpha = 100;
}
if ((_root.defenders >= 25) || (_root.score < 500)) {
_root.lvlend.hire._alpha = 35;
} else {
_root.lvlend.hire._alpha = 100;
}
if ((_root.artillery >= 10) || (_root.score < 100)) {
_root.lvlend.art._alpha = 35;
} else {
_root.lvlend.art._alpha = 100;
}
if ((_root.airstrike >= 10) || (_root.score < 300)) {
_root.lvlend.air._alpha = 35;
} else {
_root.lvlend.air._alpha = 100;
}
if ((_root.nuke >= 10) || (_root.score < 800)) {
_root.lvlend.nuk._alpha = 35;
} else {
_root.lvlend.nuk._alpha = 100;
}
if (_root.health >= _root.healthmax) {
_root.lvlend.smrep._alpha = 35;
_root.lvlend.mjrep._alpha = 35;
} else {
if (_root.score < 50) {
_root.lvlend.smrep._alpha = 35;
} else {
_root.lvlend.smrep._alpha = 100;
}
if (_root.score < 400) {
_root.lvlend.mjrep._alpha = 35;
} else {
_root.lvlend.mjrep._alpha = 100;
}
}
if (_root.defenders > 0) {
var _local11 = true;
var _local14 = random(600);
if (_local14 <= _root.defenders) {
var _local5 = 0;
while (_local5 < 200) {
var _local7 = "enemy" + _local5;
if ((enemy[_local7].hits > 0) && (_local11 == true)) {
enemy[_local7].dmgtp = "norm";
enemy[_local7].hits--;
var _local3 = random(_root.defenders);
while (_local3 < (_root.defenders + 1)) {
var _local4 = "def" + _local3;
_root.bunkerbase[_local4].play();
_local3 = _root.defenders + 1;
_local3++;
}
_local11 = false;
}
_local5++;
}
}
}
if (_root.defenders >= 1) {
_root.bunkerbase.def1._visible = true;
} else {
_root.bunkerbase.def1._visible = false;
}
if (_root.defenders >= 2) {
_root.bunkerbase.def2._visible = true;
} else {
_root.bunkerbase.def2._visible = false;
}
if (_root.defenders >= 3) {
_root.bunkerbase.def3._visible = true;
} else {
_root.bunkerbase.def3._visible = false;
}
if (_root.defenders >= 4) {
_root.bunkerbase.def4._visible = true;
} else {
_root.bunkerbase.def4._visible = false;
}
if (_root.defenders >= 5) {
_root.bunkerbase.def5._visible = true;
} else {
_root.bunkerbase.def5._visible = false;
}
if (_root.defenders >= 6) {
_root.bunkerbase.def6._visible = true;
} else {
_root.bunkerbase.def6._visible = false;
}
if (_root.defenders >= 7) {
_root.bunkerbase.def7._visible = true;
} else {
_root.bunkerbase.def7._visible = false;
}
if (_root.defenders >= 8) {
_root.bunkerbase.def8._visible = true;
} else {
_root.bunkerbase.def8._visible = false;
}
if (_root.defenders >= 9) {
_root.bunkerbase.def9._visible = true;
} else {
_root.bunkerbase.def9._visible = false;
}
if (_root.defenders >= 10) {
_root.bunkerbase.def10._visible = true;
} else {
_root.bunkerbase.def10._visible = false;
}
if (_root.defenders >= 11) {
_root.bunkerbase.def11._visible = true;
} else {
_root.bunkerbase.def11._visible = false;
}
if (_root.defenders >= 12) {
_root.bunkerbase.def12._visible = true;
} else {
_root.bunkerbase.def12._visible = false;
}
if (_root.defenders >= 13) {
_root.bunkerbase.def13._visible = true;
} else {
_root.bunkerbase.def13._visible = false;
}
if (_root.defenders >= 14) {
_root.bunkerbase.def14._visible = true;
} else {
_root.bunkerbase.def14._visible = false;
}
if (_root.defenders >= 15) {
_root.bunkerbase.def15._visible = true;
} else {
_root.bunkerbase.def15._visible = false;
}
if (_root.defenders >= 16) {
_root.bunkerbase.def16._visible = true;
} else {
_root.bunkerbase.def16._visible = false;
}
if (_root.defenders >= 17) {
_root.bunkerbase.def17._visible = true;
} else {
_root.bunkerbase.def17._visible = false;
}
if (_root.defenders >= 18) {
_root.bunkerbase.def18._visible = true;
} else {
_root.bunkerbase.def18._visible = false;
}
if (_root.defenders >= 19) {
_root.bunkerbase.def19._visible = true;
} else {
_root.bunkerbase.def19._visible = false;
}
if (_root.defenders >= 20) {
_root.bunkerbase.def20._visible = true;
} else {
_root.bunkerbase.def20._visible = false;
}
if (_root.defenders >= 21) {
_root.bunkerbase.def21._visible = true;
} else {
_root.bunkerbase.def21._visible = false;
}
if (_root.defenders >= 22) {
_root.bunkerbase.def22._visible = true;
} else {
_root.bunkerbase.def22._visible = false;
}
if (_root.defenders >= 23) {
_root.bunkerbase.def23._visible = true;
} else {
_root.bunkerbase.def23._visible = false;
}
if (_root.defenders >= 24) {
_root.bunkerbase.def24._visible = true;
} else {
_root.bunkerbase.def24._visible = false;
}
if (_root.defenders >= 25) {
_root.bunkerbase.def25._visible = true;
} else {
_root.bunkerbase.def25._visible = false;
}
if ((lvlend._visible == false) && (mainmenu._visible == false)) {
this.gotoAndStop(_root.wpn);
pointAt(this, cursor._x, cursor._y);
if (_root.firing < _root.reload) {
_root.firing++;
}
if (shoot == true) {
if (_root.wpn == 13) {
if (_root.firing >= _root.reload) {
dofires();
Sound8.start(0, 0);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
_root.firing = 0;
_root.cannon.ani.gotoAndPlay(2);
} else if (_root.firing == 1) {
dofires();
} else if (_root.firing == 2) {
dofires();
} else if (_root.firing == 4) {
dofires();
} else if (_root.firing == 7) {
dofires();
}
} else if (_root.firing >= _root.reload) {
_root.shots++;
if (_root.wpn == 6) {
if (_root.cannon.ani._currentframe < 8) {
_root.cannon.ani.gotoAndPlay(2);
} else {
_root.cannon.ani.gotoAndPlay(8);
}
} else {
_root.cannon.ani.gotoAndPlay(2);
}
dofires();
_root.firing = 0;
}
}
var _local13 = _root.cursor._x + (-this._x);
var _local12 = _root.cursor._y + (-this._y);
this.ang = Math.atan2(_local12, _local13);
}
if ((_root.tech > 1) && (_root.lvlend.weaponequip.scroller.mg._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if ((_root.tech > 2) && (_root.lvlend.weaponequip.scroller.sg._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if ((_root.tech > 5) && (_root.lvlend.weaponequip.scroller.hc._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if ((_root.tech > 7) && (_root.lvlend.weaponequip.scroller.rl._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if ((_root.tech > 4) && (_root.lvlend.weaponequip.scroller.fc._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if ((_root.tech > 9) && (_root.lvlend.weaponequip.scroller.pc._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if ((_root.tech > 13) && (_root.lvlend.weaponequip.scroller.cg._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if ((_root.tech > 12) && (_root.lvlend.weaponequip.scroller.gc._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if ((_root.tech > 11) && (_root.lvlend.weaponequip.scroller.sp._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if ((_root.tech > 10) && (_root.lvlend.weaponequip.scroller.gm._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if ((_root.tech > 8) && (_root.lvlend.weaponequip.scroller.ft._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if ((_root.tech > 3) && (_root.lvlend.weaponequip.scroller.sr._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if ((_root.tech > 14) && (_root.lvlend.weaponequip.scroller.ac._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if ((_root.tech > 6) && (_root.lvlend.weaponequip.scroller.mt._currentframe == 1)) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
if (_root.artillery > 0) {
_root.btn_barrage._visible = true;
} else {
_root.btn_barrage._visible = false;
}
if (_root.airstrike > 0) {
_root.btn_airstrike._visible = true;
} else {
_root.btn_airstrike._visible = false;
}
if (_root.nuke > 0) {
_root.btn_nuke._visible = true;
} else {
_root.btn_nuke._visible = false;
}
};
createEnemy = function (type, hp, sp, rg, typ) {
var _local2 = "enemy" + enemyCount;
enemy.attachMovie(type, _local2, enemyCount);
enemy[_local2]._x = (random(11) * 50) + 25;
enemy[_local2]._y = -50;
enemy[_local2].spd = sp;
enemy[_local2].dy = Math.random() * 4;
enemy[_local2].hits = hp;
enemy[_local2].ran = 600 - rg;
enemy[_local2].typ = typ;
enemy[enm].dmgtp = "norm";
enemy[_local2].onEnterFrame = function () {
this._y = this._y + ((this.dy + this.spd) * 0.1);
if (this._y >= this.ran) {
if (this.hits > 0) {
this.dy = 0;
this.spd = this.spd * 0.7;
this.gotoAndStop("att");
if (this.typ == "org") {
pointAtEnm(this, cannon._x, cannon._y);
}
}
}
if (this.hits <= 0) {
this.dy = 0;
this.spd = 0;
if (this.dmgtp == "norm") {
this.gotoAndStop("die1");
} else if (this.dmgtp == "bang") {
this.gotoAndStop("die2");
} else if (this.dmgtp == "fire") {
this.gotoAndStop("die3");
}
}
};
enemyCount++;
enemyCount = enemyCount % 200;
};
createEnemyDrop = function (type, hp, sp, rg, typ, x, y) {
var _local2 = "enemy" + enemyCount;
enemy.attachMovie(type, _local2, enemyCount);
enemy[_local2]._x = x;
enemy[_local2]._y = y;
enemy[_local2].spd = sp;
enemy[_local2].dy = Math.random() * 4;
enemy[_local2].hits = hp;
enemy[_local2].ran = 700 - rg;
enemy[_local2].typ = typ;
enemy[enm].dmgtp = "norm";
enemy[_local2].onEnterFrame = function () {
this._y = this._y + ((this.dy + this.spd) * 0.1);
if (this._y >= this.ran) {
if (this.hits > 0) {
this.dy = 0;
this.spd = this.spd * 0.7;
this.gotoAndStop("att");
if (this.typ == "org") {
pointAtEnm(this, cannon._x, cannon._y);
}
}
}
if (this.hits <= 0) {
this.dy = 0;
this.spd = 0;
if (this.dmgtp == "norm") {
this.gotoAndStop("die1");
} else if (this.dmgtp == "bang") {
this.gotoAndStop("die2");
} else if (this.dmgtp == "fire") {
this.gotoAndStop("die3");
}
}
};
enemyCount++;
enemyCount = enemyCount % 200;
};
dofires = function () {
if (_root.wpn == 1) {
Sound3.start(0, 0);
_root.reload = 28;
_root.acc = 3;
fireBullet(cannon, _root.acc1, 5, 1, 50);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 45), _root.cannon._y + (Math.sin(cannon.ang) * 45), _root.cannon._rotation + random(360), "smoke3");
_root.shotsfired++;
}
if (_root.wpn == 2) {
Sound9.start(0, 0);
_root.reload = 6;
_root.acc = 6;
fireBullet(cannon, _root.acc1, 1, 1, 60);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 45), _root.cannon._y + (Math.sin(cannon.ang) * 45), _root.cannon._rotation + random(360), "smoke2");
_root.shotsfired++;
}
if (_root.wpn == 3) {
Sound7.start(0, 0);
_root.reload = 28;
_root.acc = 8;
fireBullet(cannon, _root.acc1, 1, 1, 60);
fireBullet(cannon, _root.acc1, 1, 1, 60);
fireBullet(cannon, _root.acc1, 1, 1, 60);
fireBullet(cannon, _root.acc1, 1, 1, 60);
fireBullet(cannon, _root.acc1, 0.5, 1, 60);
fireBullet(cannon, _root.acc1, 0.5, 1, 60);
fireBullet(cannon, _root.acc1, 0.5, 1, 60);
fireBullet(cannon, _root.acc1, 0.5, 1, 60);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 55), _root.cannon._y + (Math.sin(cannon.ang) * 55), _root.cannon._rotation + random(360), "smoke4");
_root.shotsfired = _root.shotsfired + 8;
}
if (_root.wpn == 4) {
Sound2.start(0.15, 0);
_root.reload = 50;
_root.acc = 6;
fireBullet(cannon, _root.acc1, 8, 2, 40);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 45), _root.cannon._y + (Math.sin(cannon.ang) * 45), _root.cannon._rotation + random(360), "smoke3");
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 55), _root.cannon._y + (Math.sin(cannon.ang) * 55), _root.cannon._rotation + random(360), "smoke4");
_root.shotsfired++;
}
if (_root.wpn == 5) {
Sound15.start(0.3, 0);
_root.reload = 75;
_root.acc = 1250;
fireMissile(cannon, _root.acc1, 4, 2);
fireMissile(cannon, _root.acc1, 4, 2);
fireMissile(cannon, _root.acc1, 4, 2);
fireMissile(cannon, _root.acc1, 4, 2);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 45), _root.cannon._y + (Math.sin(cannon.ang) * 45), _root.cannon._rotation + random(360), "smoke3");
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 55), _root.cannon._y + (Math.sin(cannon.ang) * 55), _root.cannon._rotation + random(360), "smoke4");
_root.shotsfired = _root.shotsfired + 4;
}
if (_root.wpn == 6) {
Sound1.start(0, 0);
_root.reload = 9;
_root.acc = 6;
fireBullet(cannon, _root.acc1, 0.75, 2, 50);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 60), _root.cannon._y + (Math.sin(cannon.ang) * 60), _root.cannon._rotation + random(360), "smoke4");
_root.shotsfired++;
}
if (_root.wpn == 7) {
Sound10.start(0, 0);
_root.reload = 12;
_root.acc = 5;
fireBullet(cannon, _root.acc1, 1.5, 3, 30);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
_root.shotsfired++;
}
if (_root.wpn == 8) {
_root.reload = 2;
_root.acc = 9;
fireBullet(cannon, _root.acc1, 1, 1, 60);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 45), _root.cannon._y + (Math.sin(cannon.ang) * 45), _root.cannon._rotation + random(360), "smoke2");
_root.cannon.ani.burn._alpha = _root.cannon.ani.burn._alpha + 3;
_root.shotsfired++;
}
if (_root.wpn == 9) {
Sound4.start(0, 0);
_root.reload = 30;
_root.acc = 4;
firePenetrateBullet(cannon, _root.acc1, 7, 2, 60, 3);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
_root.shotsfired++;
}
if (_root.wpn == 10) {
_root.reload = 80;
_root.acc = 0;
fireSpotter(cannon, _root.acc1, 6, 2, 60);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
_root.shotsfired++;
}
if (_root.wpn == 11) {
Sound15.start(0.3, 0);
_root.reload = 30;
_root.acc = 2000;
fireGuidedMissile(cannon, _root.acc1, 4, 2);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 5), _root.cannon._y + (Math.sin(cannon.ang) * 5), _root.cannon._rotation + random(360), "smoke3");
CustEff(_root.cannon._x + (Math.cos(cannon.ang) * 15), _root.cannon._y + (Math.sin(cannon.ang) * 15), _root.cannon._rotation + random(360), "smoke4");
_root.shotsfired++;
}
if (_root.wpn == 12) {
_root.reload = 1;
_root.acc = 4;
fireFlames(cannon, _root.acc1, 0.25, random(10) + 20);
_root.shotsfired++;
}
if (_root.wpn == 13) {
_root.reload = 25;
_root.acc = 5;
fireArc(cannon, _root.acc1, 1, 3, 80, 10);
_root.shotsfired++;
}
if (_root.wpn == 14) {
Sound19.start(0, 0);
_root.reload = 40;
_root.acc = 0.5;
firePenetrateBullet(cannon, _root.acc1, 2, 1, 80, 2);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
_root.shotsfired++;
}
if (_root.wpn == 15) {
Sound2.start(0.15, 0);
_root.reload = 50;
_root.acc = 5;
fireMotar(cannon, _root.acc1, 7, 2, 20);
CustEff(_root.cannon._x, _root.cannon._y, _root.cannon._rotation + 90, "bang" + _root.wpn);
_root.shotsfired++;
}
};
SpecialBarrage = function () {
var _local9 = random(500) + 50;
var _local7 = random(550) + 50;
var _local3 = random(360);
var _local8 = random(500) + 50;
var _local5 = random(550) + 50;
var _local2 = random(360);
var _local6 = random(500) + 50;
var _local4 = random(550) + 50;
var _local1 = random(360);
Sound12.start(0, 0);
Specials(_local9, _local7, _local3, "hitbarrage");
splashdmgCust("splashbarrage", _local9, _local7, _local3, 99, 2);
Specials(_local8, _local5, _local2, "hitbarrage");
splashdmgCust("splashbarrage", _local8, _local5, _local2, 99, 2);
Specials(_local6, _local4, _local1, "hitbarrage");
splashdmgCust("splashbarrage", _local6, _local4, _local1, 99, 2);
};
SpecialAirstrike = function () {
var _local14 = random(50) + 50;
var _local12 = random(550) + 100;
var _local17 = 160 + random(35);
var _local13 = (_local14 + random(50)) + 50;
var _local10 = (_local12 + random(25)) - random(25);
var _local16 = 160 + random(35);
var _local11 = (_local13 + random(50)) + 50;
var _local8 = (_local10 + random(25)) - random(25);
var _local15 = 160 + random(35);
var _local9 = (_local11 + random(50)) + 50;
var _local6 = (_local8 + random(25)) - random(25);
var _local24 = 160 + random(35);
var _local7 = (_local9 + random(50)) + 50;
var _local1 = (_local6 + random(25)) - random(25);
var _local23 = 160 + random(35);
var _local5 = (_local7 + random(50)) + 50;
var _local3 = (_local1 + random(25)) - random(25);
var _local22 = 160 + random(35);
var _local4 = (_local5 + random(50)) + 50;
var _local2 = (_local3 + random(25)) - random(25);
var _local21 = 160 + random(35);
var _local19 = (_local4 + random(50)) + 50;
var _local18 = (_local2 + random(25)) - random(25);
var _local20 = 160 + random(35);
Sound12.start(0, 0);
Specials(_local14, _local12, _local17, "hitbarrage");
splashdmgCust("splashbarrage", _local14, _local12, _local17, 99, 2);
Specials(_local13, _local10, _local16, "hitbarrage");
splashdmgCust("splashbarrage", _local13, _local10, _local16, 99, 2);
Specials(_local11, _local8, _local15, "hitbarrage");
splashdmgCust("splashbarrage", _local11, _local8, _local15, 99, 2);
Specials(_local9, _local6, _local24, "hitbarrage");
splashdmgCust("splashbarrage", _local9, _local6, _local24, 99, 2);
Specials(_local7, _local1, _local23, "hitbarrage");
splashdmgCust("splashbarrage", _local7, _local1, _local23, 99, 2);
Specials(_local5, _local3, _local22, "hitbarrage");
splashdmgCust("splashbarrage", _local5, _local3, _local22, 99, 2);
Specials(_local4, _local2, _local21, "hitbarrage");
splashdmgCust("splashbarrage", _local4, _local2, _local21, 99, 2);
CustEff(_local19, _local18, _local20, "hitbarrage");
splashdmgCust("splashbarrage", _local19, _local18, _local20, 99, 2);
Specials(275, _local1, 0, "airstrikeplanes");
};
SpecialNuke = function () {
Sound12.start(0, 0);
Specials(0, 0, 0, "hitnuke");
splashdmgCust("splashnuke", 0, 0, 0, 99, 3);
};
fireBullet = function (who, acc, dmg, dmgtype, spd) {
var _local5 = "bullet" + bCount;
bullets.attachMovie("bullet" + _root.wpn, _local5, bCount);
bullets[_local5]._currentframe = frame;
bullets[_local5]._x = who._x + (Math.cos(who.ang) * 50);
bullets[_local5]._y = who._y + (Math.sin(who.ang) * 50);
bullets[_local5].acc = acc;
bullets[_local5].acc = acc;
bullets[_local5].spd = spd;
bullets[_local5].dx = (Math.cos(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5].dy = (Math.sin(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5]._rotation = who._rotation + 90;
bullets[_local5].dmg = dmg;
bullets[_local5].dmgtype = dmgtype;
bullets[_local5].rand = random(100);
bullets[_local5].onEnterFrame = function () {
CustEff2(this._x, this._y, this._rotation, "trail" + _root.wpn);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local6 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local5;
if (this.dy < 0) {
_local5 = (Math.PI*2) - Math.acos(this.dx / _local6);
} else {
_local5 = Math.acos(this.dx / _local6);
}
this._rotation = ((_local5 * 180) / Math.PI) + 90;
var _local4 = 0;
while (_local4 < 200) {
var _local3 = "enemy" + _local4;
if (this.hit.hitTest(enemy[_local3]) && (enemy[_local3].hits > 0)) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "bang";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
this.removeMovieClip();
} else if (this.dmgtype == 3) {
splashdmg(this, this.dmg, 3);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "fire";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
this.removeMovieClip();
}
}
_local4++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
fireMotar = function (who, acc, dmg, dmgtype, spd) {
var nm = ("bullet" + bCount);
bullets.attachMovie("bullet" + _root.wpn, nm, bCount);
bullets[nm]._currentframe = frame;
bullets[nm]._x = who._x + (Math.cos(who.ang) * 50);
bullets[nm]._y = who._y + (Math.sin(who.ang) * 50);
bullets[nm].acc = acc;
bullets[nm].acc = acc;
bullets[nm].spd = spd;
bullets[nm].desty = _root.cursor._y;
bullets[nm].ang = who.ang;
bullets[nm].dx = (Math.cos(who.ang) * bullets[nm].spd) + (random(bullets[nm].acc) - random(bullets[nm].acc));
bullets[nm].dy = (Math.sin(who.ang) * bullets[nm].spd) + (random(bullets[nm].acc) - random(bullets[nm].acc));
bullets[nm]._rotation = who._rotation + 90;
bullets[nm].dmg = dmg;
bullets[nm].dmgtype = dmgtype;
bullets[nm].curve = 0;
bullets[nm].curveamt = (random(314) - random(314)) * 5E-6;
bullets[nm].rand = random(100);
bullets[nm].onEnterFrame = function () {
CustEff2(this._x, this._y, random(360), "smoke2");
this.dx = Math.cos(this.ang + this.curve) * bullets[nm].spd;
this.dy = Math.sin(this.ang + this.curve) * bullets[nm].spd;
this.curve = this.curve + this.curveamt;
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local4 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local3;
if (this.dy < 0) {
_local3 = (Math.PI*2) - Math.acos(this.dx / _local4);
} else {
_local3 = Math.acos(this.dx / _local4);
}
this._rotation = ((_local3 * 180) / Math.PI) + 90;
this._yscale = this._y - this.desty;
this._xscale = this._y - this.desty;
if (this._yscale > 150) {
this._yscale = 150;
this._xscale = 150;
}
if (this._y < this.desty) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
this.removeMovieClip();
} else if (this.dmgtype == 3) {
splashdmg(this, this.dmg, 3);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
this.removeMovieClip();
}
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
fireSpotter = function (who, acc, dmg, dmgtype, spd) {
var _local5 = "bullet" + bCount;
bullets.attachMovie("bullet" + _root.wpn, _local5, bCount);
bullets[_local5]._currentframe = frame;
bullets[_local5]._x = who._x + (Math.cos(who.ang) * 50);
bullets[_local5]._y = who._y + (Math.sin(who.ang) * 50);
bullets[_local5].acc = acc;
bullets[_local5].acc = acc;
bullets[_local5].spd = spd;
bullets[_local5].dx = (Math.cos(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5].dy = (Math.sin(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5]._rotation = who._rotation + 90;
bullets[_local5].dmg = dmg;
bullets[_local5].dmgtype = dmgtype;
bullets[_local5].rand = random(100);
bullets[_local5].onEnterFrame = function () {
CustEff2(this._x, this._y, this._rotation, "trail" + _root.wpn);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local6 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local5;
if (this.dy < 0) {
_local5 = (Math.PI*2) - Math.acos(this.dx / _local6);
} else {
_local5 = Math.acos(this.dx / _local6);
}
this._rotation = ((_local5 * 180) / Math.PI) + 90;
var _local3 = 0;
while (_local3 < 200) {
var _local4 = "enemy" + _local3;
if (this.hit.hitTest(enemy[_local4]) && (enemy[_local4].hits > 0)) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
this.removeMovieClip();
} else if (this.dmgtype == 3) {
splashdmg(this, this.dmg, 3);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
this.removeMovieClip();
}
}
_local3++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
fireArc = function (who, acc, dmg, dmgtype, spd, layers) {
var nm = ("bullet" + bCount);
bullets.attachMovie("bullet" + _root.wpn, nm, bCount);
bullets[nm]._currentframe = frame;
bullets[nm]._x = who._x + (Math.cos(who.ang) * 50);
bullets[nm]._y = who._y + (Math.sin(who.ang) * 50);
bullets[nm].acc = acc;
bullets[nm].acc = acc;
bullets[nm].spd = spd;
bullets[nm].layers = layers;
bullets[nm].ang = who.ang;
bullets[nm].dx = (Math.cos(bullets[nm].ang) * bullets[nm].spd) + (random(bullets[nm].acc) - random(bullets[nm].acc));
bullets[nm].dy = (Math.sin(bullets[nm].ang) * bullets[nm].spd) + (random(bullets[nm].acc) - random(bullets[nm].acc));
bullets[nm]._rotation = who._rotation + 90;
bullets[nm].dmg = dmg;
bullets[nm].dmgtype = dmgtype;
bullets[nm].rand = random(100);
bullets[nm].timer = 10;
bullets[nm].onEnterFrame = function () {
if (this.timer < 0) {
this.removeMovieClip();
} else {
CustEff2(this._x, this._y, this._rotation, "trail" + _root.wpn);
this.timer--;
}
this.dx = (Math.cos(this.ang) * bullets[nm].spd) + (random(bullets[nm].acc) - random(bullets[nm].acc));
this.dy = (Math.sin(this.ang) * bullets[nm].spd) + (random(bullets[nm].acc) - random(bullets[nm].acc));
this.ang = this.ang + ((random(150) * 0.002) - (random(150) * 0.002));
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local6 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local5;
if (this.dy < 0) {
_local5 = (Math.PI*2) - Math.acos(this.dx / _local6);
} else {
_local5 = Math.acos(this.dx / _local6);
}
this._rotation = ((_local5 * 180) / Math.PI) + 90;
var _local4 = 0;
while (_local4 < 200) {
var _local3 = "enemy" + _local4;
if (this.hit.hitTest(enemy[_local3]) && (enemy[_local3].hits > 0)) {
if (this.layers > 0) {
if (this.dmgtype == 1) {
this.ang = this.ang + ((random(150) * 0.01) - (random(150) * 0.01));
this.spd = this.spd * 0.75;
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
} else if (this.dmgtype == 2) {
this.ang = this.ang + ((random(150) * 0.01) - (random(150) * 0.01));
this.spd = this.spd * 0.75;
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
} else if (this.dmgtype == 3) {
this.ang = this.ang + ((random(150) * 0.01) - (random(150) * 0.01));
this.spd = this.spd * 0.75;
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "fire";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
}
this.layers--;
}
if (this.layers <= 0) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - (this.dmg * 2);
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "bang";
enemy[_local3].hits = enemy[_local3].hits - (this.dmg * 2);
this.removeMovieClip();
} else if (this.dmgtype == 3) {
splashdmg(this, this.dmg, 3);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "fire";
enemy[_local3].hits = enemy[_local3].hits - (this.dmg * 2);
this.removeMovieClip();
}
}
}
_local4++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
firePenetrateBullet = function (who, acc, dmg, dmgtype, spd, layers) {
var _local5 = "bullet" + bCount;
bullets.attachMovie("bullet" + _root.wpn, _local5, bCount);
bullets[_local5]._currentframe = frame;
bullets[_local5]._x = who._x + (Math.cos(who.ang) * 50);
bullets[_local5]._y = who._y + (Math.sin(who.ang) * 50);
bullets[_local5].acc = acc;
bullets[_local5].acc = acc;
bullets[_local5].spd = spd;
bullets[_local5].layers = layers;
bullets[_local5].dx = (Math.cos(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5].dy = (Math.sin(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5]._rotation = who._rotation + 90;
bullets[_local5].dmg = dmg;
bullets[_local5].dmgtype = dmgtype;
bullets[_local5].rand = random(100);
bullets[_local5].onEnterFrame = function () {
CustEff2(this._x, this._y, this._rotation, "trail" + _root.wpn);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local6 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local5;
if (this.dy < 0) {
_local5 = (Math.PI*2) - Math.acos(this.dx / _local6);
} else {
_local5 = Math.acos(this.dx / _local6);
}
this._rotation = ((_local5 * 180) / Math.PI) + 90;
var _local4 = 0;
while (_local4 < 200) {
var _local3 = "enemy" + _local4;
if (this.hit.hitTest(enemy[_local3]) && (enemy[_local3].hits > 0)) {
if (this.layers > 0) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
} else if (this.dmgtype == 2) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
} else if (this.dmgtype == 3) {
splashdmg(this, this.dmg, 3);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "fire";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
}
this.layers--;
}
if (this.layers <= 0) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - (this.dmg * 0.5);
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "bang";
enemy[_local3].hits = enemy[_local3].hits - (this.dmg * 0.5);
this.removeMovieClip();
} else if (this.dmgtype == 3) {
splashdmg(this, this.dmg, 3);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "fire";
enemy[_local3].hits = enemy[_local3].hits - (this.dmg * 0.5);
this.removeMovieClip();
}
}
}
_local4++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
fireFlames = function (who, acc, dmg, spd) {
var _local5 = "bullet" + bCount;
bullets.attachMovie("bullet" + _root.wpn, _local5, bCount);
bullets[_local5]._currentframe = frame;
bullets[_local5]._x = who._x + (Math.cos(who.ang) * 50);
bullets[_local5]._y = who._y + (Math.sin(who.ang) * 50);
bullets[_local5].acc = acc;
bullets[_local5].acc = acc;
bullets[_local5].spd = spd;
bullets[_local5].layers = layers;
bullets[_local5].dx = (Math.cos(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5].dy = (Math.sin(who.ang) * bullets[_local5].spd) + (random(bullets[_local5].acc) - random(bullets[_local5].acc));
bullets[_local5]._rotation = random(360);
bullets[_local5].dr = random(50) - random(50);
bullets[_local5].dmg = dmg;
bullets[_local5].rand = random(100);
bullets[_local5].onEnterFrame = function () {
CustEff2(this._x, this._y, this._rotation, "trail" + _root.wpn);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + (this.dr * 0.1);
var _local4 = 0;
while (_local4 < 200) {
var _local3 = "enemy" + _local4;
if (this.hit.hitTest(enemy[_local3]) && (enemy[_local3].hits > 0)) {
enemy[_local3].dmgtp = "fire";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
this.dmg = this.dmg * 0.5;
}
_local4++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
fireMissile = function (who, acc, dmg, dmgtype) {
var _local4 = "bullet" + bCount;
bullets.attachMovie("bullet" + _root.wpn, _local4, bCount);
bullets[_local4]._currentframe = frame;
bullets[_local4]._x = who._x + (Math.cos(who.ang) * 50);
bullets[_local4]._y = who._y + (Math.sin(who.ang) * 50);
bullets[_local4].acc = acc;
bullets[_local4].accact1 = (random(bullets[_local4].acc) - random(bullets[_local4].acc)) * 8E-5;
bullets[_local4].randspd1 = random(10) + 20;
bullets[_local4].randspd2 = random(10) + 20;
bullets[_local4].ang = who.ang;
bullets[_local4].dx = Math.cos(bullets[_local4].ang) * 20;
bullets[_local4].dy = Math.sin(bullets[_local4].ang) * 20;
bullets[_local4]._rotation = who._rotation + 90;
bullets[_local4].dmg = dmg;
bullets[_local4].dmgtype = dmgtype;
bullets[_local4].curve = 0;
bullets[_local4].timer = 70;
bullets[_local4].onEnterFrame = function () {
if (this.timer < 0) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[enm].dmgtp = "norm";
enemy[enm].hits = enemy[enm].hits - this.dmg;
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[enm].dmgtp = "bang";
enemy[enm].hits = enemy[enm].hits - this.dmg;
this.removeMovieClip();
}
} else {
this.timer--;
}
CustEff2(this._x, this._y, this._rotation, "smoke2");
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.dx = Math.cos(this.ang + this.curve) * this.randspd1;
this.dy = Math.sin(this.ang + this.curve) * this.randspd2;
this.curve = this.curve + this.accact1;
var _local5 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local4;
if (this.dy < 0) {
_local4 = (Math.PI*2) - Math.acos(this.dx / _local5);
} else {
_local4 = Math.acos(this.dx / _local5);
}
this._rotation = ((_local4 * 180) / Math.PI) + 90;
var _local3 = 0;
while (_local3 < 200) {
var enm = ("enemy" + _local3);
if (this.hit.hitTest(enemy[enm]) && (enemy[enm].hits > 0)) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[enm].dmgtp = "norm";
enemy[enm].hits = enemy[enm].hits - this.dmg;
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[enm].dmgtp = "bang";
enemy[enm].hits = enemy[enm].hits - this.dmg;
this.removeMovieClip();
}
}
_local3++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
fireGuidedMissile = function (who, acc, dmg, dmgtype) {
var _local5 = "bullet" + bCount;
bullets.attachMovie("bullet" + _root.wpn, _local5, bCount);
bullets[_local5]._currentframe = frame;
bullets[_local5].who = who;
bullets[_local5]._x = who._x + (Math.cos(who.ang) * 50);
bullets[_local5]._y = who._y + (Math.sin(who.ang) * 50);
bullets[_local5].acc = acc;
bullets[_local5].accact1 = (random(bullets[_local5].acc) - random(bullets[_local5].acc)) * 8E-5;
bullets[_local5].randspd1 = random(5) + 20;
bullets[_local5].randspd2 = random(5) + 20;
bullets[_local5].ang = who.ang;
bullets[_local5].finalang = who.ang;
bullets[_local5].dx = Math.cos(bullets[_local5].ang) * 10;
bullets[_local5].dy = Math.sin(bullets[_local5].ang) * 10;
bullets[_local5]._rotation = who._rotation + 90;
bullets[_local5].dmg = dmg;
bullets[_local5].dmgtype = dmgtype;
bullets[_local5].curve = 0;
bullets[_local5].enmtarg = undefined;
bullets[_local5].targethave = false;
bullets[_local5].onEnterFrame = function () {
if (this.targethave == false) {
this.gotoAndStop(1);
var _local4 = random(200);
while (_local4 < 400) {
if (_local4 > 200) {
var _local3 = "enemy" + (_local4 - 200);
} else {
var _local3 = "enemy" + _local4;
}
if (enemy[_local3].hits > 0) {
this.enmtarg = _local3;
this.targethave = true;
}
_local4++;
}
} else if (this.targethave == true) {
this.gotoAndStop(2);
var _local8 = _root.enemy[this.enmtarg]._x - this._x;
var _local7 = _root.enemy[this.enmtarg]._y - this._y;
this.ang = Math.atan2(_local7, _local8);
if ((_root.enemy[this.enmtarg].hits == undefined) || (_root.enemy[this.enmtarg].hits <= 0)) {
this.targethave = false;
}
}
if (this.ang > (this.finalang + 0.1)) {
this.finalang = this.finalang + 0.1;
} else if (this.ang < (this.finalang - 0.1)) {
this.finalang = this.finalang - 0.1;
}
CustEff2(this._x, this._y, random(360), "smoke2");
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.dx = Math.cos(this.finalang + this.curve) * this.randspd1;
this.dy = Math.sin(this.finalang + this.curve) * this.randspd2;
if ((this.curve < 3) && (this.curve > 3)) {
this.curve = this.curve + this.accact1;
}
var _local6 = Math.sqrt((this.dx * this.dx) + (this.dy * this.dy));
var _local5;
if (this.dy < 0) {
_local5 = (Math.PI*2) - Math.acos(this.dx / _local6);
} else {
_local5 = Math.acos(this.dx / _local6);
}
this._rotation = ((_local5 * 180) / Math.PI) + 90;
var _local4 = 0;
while (_local4 < 200) {
var _local3 = "enemy" + _local4;
if (this.hit.hitTest(enemy[_local3]) && (enemy[_local3].hits > 0)) {
if (this.dmgtype == 1) {
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "norm";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
this.removeMovieClip();
} else if (this.dmgtype == 2) {
splashdmg(this, this.dmg, 2);
CustEff(this._x, this._y, this._rotation, "hit" + _root.wpn);
enemy[_local3].dmgtp = "bang";
enemy[_local3].hits = enemy[_local3].hits - this.dmg;
this.removeMovieClip();
}
}
_local4++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
splashdmg = function (who, dmg, typ) {
var _local5 = "bullet" + bCount;
bullets.attachMovie("splash" + _root.wpn, _local5, bCount);
bullets[_local5]._currentframe = frame;
bullets[_local5]._x = who._x;
bullets[_local5]._y = who._y;
bullets[_local5]._rotation = who._rotation;
bullets[_local5].dmg = dmg;
bullets[_local5].typ = typ;
bullets[_local5].onEnterFrame = function () {
var _local3 = 0;
while (_local3 < 200) {
var _local2 = "enemy" + _local3;
if (this.hitTest(enemy[_local2]) && (enemy[_local2].hits > 0)) {
enemy[_local2].hits = enemy[_local2].hits - this.dmg;
if (this.typ == 1) {
enemy[_local2].dmgtp = "norm";
} else if (this.typ == 2) {
enemy[_local2].dmgtp = "bang";
} else if (this.typ == 3) {
enemy[_local2].dmgtp = "fire";
}
}
_local3++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
bCount++;
};
splashdmgCust = function (type, x, y, r, dmg, typ) {
var _local4 = "splash" + sCount;
splash.attachMovie(type, _local4, sCount);
splash[_local4]._currentframe = frame;
splash[_local4]._x = x;
splash[_local4]._y = y;
splash[_local4]._rotation = r;
splash[_local4].dmg = dmg;
splash[_local4].typ = typ;
splash[_local4].onEnterFrame = function () {
var _local3 = 0;
while (_local3 < 200) {
var _local2 = "enemy" + _local3;
if (this.hitTest(enemy[_local2]) && (enemy[_local2].hits > 0)) {
enemy[_local2].hits = enemy[_local2].hits - this.dmg;
if (this.typ == 1) {
enemy[_local2].dmgtp = "norm";
} else if (this.typ == 2) {
enemy[_local2].dmgtp = "bang";
} else if (this.typ == 3) {
enemy[_local2].dmgtp = "fire";
}
}
_local3++;
}
if ((((this._x < -100) || (this._x > 700)) || (this._y < -100)) || (this._y > 900)) {
this.removeMovieClip();
}
};
sCount++;
};
Specials = function (x, y, r, type) {
var _local1 = "special" + spCount;
specials.attachMovie(type, _local1, spCount);
specials[_local1]._x = x;
specials[_local1]._y = y;
specials[_local1]._rotation = r;
spCount++;
spCount = spCount % 50;
};
CustEff = function (x, y, r, type) {
var _local1 = "eff" + eCount;
effects.attachMovie(type, _local1, eCount);
effects[_local1]._x = x;
effects[_local1]._y = y;
effects[_local1]._rotation = r;
eCount++;
eCount = eCount % 50;
};
CustEff2 = function (x, y, r, type) {
var _local1 = "eff2" + e2Count;
effects2.attachMovie(type, _local1, e2Count);
effects2[_local1]._x = x;
effects2[_local1]._y = y;
effects2[_local1]._rotation = r;
e2Count++;
e2Count = e2Count % 50;
};
BloodEff = function (x, y, r, type) {
var _local1 = "blood" + bloodCount;
blood.attachMovie(type, _local1, bloodCount);
blood[_local1]._x = x;
blood[_local1]._y = y;
blood[_local1]._rotation = r;
bloodCount++;
bloodCount = bloodCount % 100;
};
startlvl = function () {
_root.clearscreen = true;
eCount = 0;
e2Count = 0;
_root.lvl++;
_root.spawntime = 0;
_root.timer = 180;
_root.lvltimer = (_root.lvl * 5) + 30;
onEnterFrame = function () {
if ((_root.enmleft <= 0) && (_root.lvltimer < 2)) {
if (_root.lvl >= 33) {
_root.mainmenu.gotoAndStop(5);
_root.mainmenu._visible = true;
} else {
_root.lvlend._visible = true;
if (_root.clearscreen == true) {
var _local2 = 0;
while (_local2 < 200) {
var _local5 = "enemy" + _local2;
enemy[_local5].removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < 100) {
var _local3 = "eff" + _local2;
blood[_local3].removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < 100) {
var _local3 = "eff" + _local2;
blood[_local3].removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < 100) {
var _local4 = "shell" + _local2;
effects3[_local4].removeMovieClip();
_local2++;
}
_root.clearscreen = false;
}
}
} else {
_root.lvlend._visible = false;
_root.count++;
_root.count = _root.count % 22;
if (_root.count == 0) {
_root.lvltimer--;
}
}
if ((_root.spawntime == (_root.timer / 2)) && (_root.lvltimer > 5)) {
if (_root.lvl <= 3) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
_root.enmleft = _root.enmleft + 5;
} else if (_root.lvl <= 5) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
_root.enmleft = _root.enmleft + 7;
} else if (_root.lvl <= 6) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 6;
} else if (_root.lvl <= 9) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 8;
} else if (_root.lvl <= 12) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 7;
} else if (_root.lvl > 12) {
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("infantry2", 1, 4, 125, "org");
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("tank1", 17, 5, 250, "mec");
_root.enmleft = _root.enmleft + 5;
}
if (_root.lvl > 15) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 2;
}
if (_root.lvl > 17) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
_root.enmleft = _root.enmleft + 2;
}
if (_root.lvl > 18) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 2;
}
if (_root.lvl > 20) {
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 1;
}
if (_root.lvl > 22) {
createEnemy("tank1", 17, 5, 250, "mec");
_root.enmleft = _root.enmleft + 1;
}
if (_root.lvl > 24) {
createEnemy("tank1", 17, 5, 250, "mec");
_root.enmleft = _root.enmleft + 1;
}
if (_root.lvl > 26) {
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 2;
}
if (_root.lvl > 28) {
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("infantry1", 1, 6, 75, "org");
createEnemy("tank1", 17, 5, 250, "mec");
_root.enmleft = _root.enmleft + 3;
}
if (_root.lvl > 29) {
createEnemy("tank1", 17, 5, 250, "mec");
createEnemy("tank1", 17, 5, 250, "mec");
_root.enmleft = _root.enmleft + 2;
}
if (_root.lvl > 30) {
createEnemy("tank1", 17, 5, 250, "mec");
_root.enmleft = _root.enmleft + 1;
}
if (_root.lvl > 31) {
createEnemy("truck1", 6, 24, 150, "mec");
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft = _root.enmleft + 2;
}
}
_root.spawntime++;
_root.spawntime = _root.spawntime % timer;
};
};
shellEff = function (who, type, xang, yang, ang) {
var _local2 = "shell" + shells;
effects3.attachMovie(type, _local2, shells);
effects3[_local2]._x = who._x + Math.cos(who.ang);
effects3[_local2]._y = who._y + Math.sin(who.ang);
effects3[_local2].dx = Math.cos(who.ang + ang) * xang;
effects3[_local2].dy = Math.sin(who.ang + ang) * yang;
effects3[_local2].dr = random(10) - random(10);
effects3[_local2]._rotation = who._rotation;
effects3[_local2].T = 10;
effects3[_local2].onEnterFrame = function () {
this.T--;
if (this.T <= 0) {
delete this.onEnterFrame;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.dr;
this.dx = this.dx * 0.7;
this.dy = this.dy * 0.7;
};
shells++;
shells = shells % 100;
};
spawner.onRelease = function () {
createEnemy("truck1", 6, 24, 150, "mec");
_root.enmleft++;
};
lvlend.startbtn.onRelease = function () {
startlvl();
};
mainmenu.startgamebtn.onRelease = function () {
};
reset = function () {
_root.clearscreen = false;
_root.lvl = 0;
_root.kills = 0;
_root.lvlgo = false;
_root.count = 0;
_root.enmleft = 0;
_root.reload = 28;
_root.acc = 3;
_root.acc1 = _root.acc;
_root.motor = 0.2;
_root.ra = _root.motor;
_root.firing = 0;
_root.ammo = 20;
_root.wpn = 1;
_root.scrollermax = 0;
_root.healthmax = 500;
_root.health = _root.healthmax;
_root.defplus = 0;
_root.shotsfired = 0;
_root.score = 0;
_root.artillery = 1;
_root.airstrike = 0;
_root.nuke = 0;
_root.defenders = 0;
_root.tech = 1;
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(1);
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(1);
var _local2 = 0;
while (_local2 < 200) {
var _local3 = "enemy" + _local2;
enemy[_local3].removeMovieClip();
_local2++;
}
};
cannon.onEnterFrame = cannonEnterFrame;
Sound1 = new Sound(cannon);
Sound1.attachSound("Sound_.50cal");
Sound2 = new Sound(cannon);
Sound2.attachSound("Sound_BigCannon");
Sound3 = new Sound(cannon);
Sound3.attachSound("Sound_Cannon");
Sound4 = new Sound(cannon);
Sound4.attachSound("Sound_EnergyCannon");
Sound5 = new Sound(cannon);
Sound5.attachSound("Sound_Explode1");
Sound6 = new Sound(cannon);
Sound6.attachSound("Sound_Explode2");
Sound7 = new Sound(cannon);
Sound7.attachSound("Sound_Shotgun");
Sound8 = new Sound(cannon);
Sound8.attachSound("Sound_Laser");
Sound9 = new Sound(cannon);
Sound9.attachSound("Sound_MachineGun");
Sound10 = new Sound(cannon);
Sound10.attachSound("Sound_Plasma");
Sound11 = new Sound(cannon);
Sound11.attachSound("Sound_ChainGun");
Sound12 = new Sound(cannon);
Sound12.attachSound("Sound_Acknowlege");
Sound13 = new Sound(cannon);
Sound13.attachSound("Sound_Pong");
Sound14 = new Sound(cannon);
Sound14.attachSound("Sound_Explode4");
Sound15 = new Sound(cannon);
Sound15.attachSound("Sound_Rocket");
Sound16 = new Sound(cannon);
Sound16.attachSound("Sound_Reload");
Sound17 = new Sound(cannon);
Sound17.attachSound("Sound_Cock");
Sound18 = new Sound(cannon);
Sound18.attachSound("Sound_Flames");
Sound19 = new Sound(cannon);
Sound19.attachSound("Sound_BellSound");
Sound20 = new Sound(cannon);
Sound20.attachSound("Sound_SnipeReload");
Sound21 = new Sound(cannon);
Sound21.attachSound("Sound_VulcanLoop");
Sound22 = new Sound(cannon);
Sound22.attachSound("Sound_VulcanOff");
Sound23 = new Sound(cannon);
Sound23.attachSound("Sound_Nuke");
Sound24 = new Sound(cannon);
Sound24.attachSound("Sound_Blastwave");
Sound25 = new Sound(cannon);
Sound25.attachSound("Sound_Approach");
Sound26 = new Sound(cannon);
Sound26.attachSound("Sound_Burn");
Sound27 = new Sound(cannon);
Sound27.attachSound("Sound_Flames2");
SoundSong = new Sound(cannon);
SoundSong.attachSound("Sound_Fuse");
global_sound = new Sound();
global_sound.setVolume(40);
Instance of Symbol 543 MovieClip "reloadbar" in Frame 2
onClipEvent (enterFrame) {
rld = (_root.firing / _root.reload) * 100;
this._xscale = rld;
}
Instance of Symbol 543 MovieClip "reloadbar" in Frame 2
onClipEvent (enterFrame) {
rld = (_root.firing / _root.reload) * 100;
this._xscale = rld;
}
Instance of Symbol 545 MovieClip "healthbar" in Frame 2
onClipEvent (enterFrame) {
hp = (_root.health / _root.healthmax) * 80;
this._width = hp;
}
Symbol 35 MovieClip [splashnuke] Frame 449
this.removeMovieClip();
Symbol 38 MovieClip [splashbarrage] Frame 82
this.removeMovieClip();
Symbol 39 MovieClip [splash10] Frame 52
this.removeMovieClip();
Symbol 40 MovieClip [splash7] Frame 7
this.removeMovieClip();
Symbol 42 MovieClip [splash6] Frame 3
this.removeMovieClip();
Symbol 43 MovieClip [splash15] Frame 3
this.removeMovieClip();
Symbol 44 MovieClip [splash5] Frame 3
this.removeMovieClip();
Symbol 45 MovieClip [splash11] Frame 3
this.removeMovieClip();
Symbol 46 MovieClip [splash4] Frame 3
this.removeMovieClip();
Symbol 49 MovieClip [bullet7] Frame 3
stop();
Symbol 52 MovieClip [bullet6] Frame 3
stop();
Symbol 67 MovieClip [bullet9] Frame 3
stop();
Symbol 68 MovieClip [bullet8] Frame 3
stop();
Symbol 69 MovieClip [bullet2] Frame 3
stop();
Symbol 72 MovieClip [smoke1] Frame 15
this._parent.removeMovieClip();
Symbol 74 MovieClip [bullet12] Frame 16
this.removeMovieClip();
Symbol 85 MovieClip [bullet15] Frame 3
stop();
Symbol 87 MovieClip [bullet4] Frame 3
stop();
Symbol 88 MovieClip [bullet3] Frame 3
stop();
Symbol 89 MovieClip [bullet10] Frame 1
stop();
Symbol 91 MovieClip [bullet14] Frame 3
stop();
Symbol 92 MovieClip [bullet1] Frame 3
stop();
Symbol 95 MovieClip [test] Frame 1
stop();
Symbol 95 MovieClip [test] Frame 2
stop();
Symbol 95 MovieClip [test] Frame 3
this.removeMovieClip();
Symbol 97 MovieClip [bang2] Frame 4
this.removeMovieClip();
Instance of Symbol 98 MovieClip in Symbol 99 MovieClip [bang8] Frame 1
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 99 MovieClip [bang8] Frame 4
this.removeMovieClip();
Symbol 104 MovieClip [bang3] Frame 5
this.removeMovieClip();
Symbol 105 MovieClip [bang13] Frame 21
this.removeMovieClip();
Symbol 110 MovieClip [bang9] Frame 11
this.removeMovieClip();
Symbol 111 MovieClip [bang7] Frame 11
this.removeMovieClip();
Symbol 113 MovieClip [bang14] Frame 11
this.removeMovieClip();
Symbol 114 MovieClip [bang1] Frame 4
this.removeMovieClip();
Symbol 125 MovieClip [hit10] Frame 1
_root.Sound12.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 16
_root.Sound13.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 26
_root.Sound13.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 33
_root.Sound13.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 38
_root.Sound13.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 42
_root.Sound13.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 45
_root.Sound15.start(1, 0);
Symbol 125 MovieClip [hit10] Frame 46
_root.Sound13.start(0, 0);
Symbol 125 MovieClip [hit10] Frame 51
_root.Sound6.start();
Symbol 125 MovieClip [hit10] Frame 91
this.removeMovieClip();
Symbol 128 MovieClip [airstrikeplanes] Frame 114
this.removeMovieClip();
Symbol 132 MovieClip [hitnuke] Frame 422
_root.Sound24.start(0, 0);
Symbol 132 MovieClip [hitnuke] Frame 580
_root.lvltimer = -10;
this.removeMovieClip();
Symbol 137 MovieClip [hitbarrage] Frame 73
_root.Sound15.start(1, 0);
Symbol 137 MovieClip [hitbarrage] Frame 79
_root.Sound14.start(0, 0);
Symbol 137 MovieClip [hitbarrage] Frame 82
_root.BloodEff(this._x, this._y, this._rotation, "barragecrater");
Symbol 137 MovieClip [hitbarrage] Frame 98
this.removeMovieClip();
Symbol 142 MovieClip [hit15] Frame 1
_root.Sound6.start();
Symbol 142 MovieClip [hit15] Frame 20
this.removeMovieClip();
Symbol 148 MovieClip [hit11] Frame 1
_root.Sound14.start(0, 0);
Symbol 148 MovieClip [hit11] Frame 20
this.removeMovieClip();
Symbol 155 MovieClip [hit4] Frame 1
_root.Sound14.start(0, 0);
Symbol 155 MovieClip [hit4] Frame 20
this.removeMovieClip();
Symbol 163 MovieClip [hit3] Frame 12
this.removeMovieClip();
Symbol 174 MovieClip [hit6] Frame 1
_root.Sound7.start(0, 0);
Symbol 174 MovieClip [hit6] Frame 16
this.removeMovieClip();
Symbol 181 MovieClip [hit9] Frame 12
this.removeMovieClip();
Symbol 182 MovieClip [hit13] Frame 12
this.removeMovieClip();
Symbol 184 MovieClip [hit8] Frame 12
this.removeMovieClip();
Symbol 186 MovieClip [hit2] Frame 12
this.removeMovieClip();
Symbol 188 MovieClip [hit14] Frame 12
this.removeMovieClip();
Symbol 190 MovieClip [hit1] Frame 12
this.removeMovieClip();
Symbol 199 MovieClip [cannonshell9] Frame 36
stop();
Symbol 215 MovieClip Frame 20
_root.health = _root.health - 15;
Symbol 215 MovieClip Frame 48
this.gotoAndPlay(11);
Symbol 225 MovieClip Frame 1
this._parent._rotation = random(360);
Symbol 225 MovieClip Frame 2
_root.BloodEff(this._parent._x, this._parent._y, this._parent._rotation, "blood1");
Symbol 225 MovieClip Frame 36
_root.enmleft--;
_root.kills++;
_root.score = _root.score + 5;
this._parent.removeMovieClip();
Symbol 241 MovieClip Frame 1
this._parent._rotation = random(360);
Symbol 241 MovieClip Frame 2
_root.BloodEff(this._parent._x, this._parent._y, this._parent._rotation, "blood2");
Symbol 241 MovieClip Frame 40
_root.enmleft--;
_root.kills++;
_root.score = _root.score + 5;
this._parent.removeMovieClip();
Symbol 254 MovieClip Frame 33
_root.enmleft--;
_root.kills++;
_root.score = _root.score + 5;
this._parent.removeMovieClip();
Symbol 255 MovieClip [infantry2] Frame 1
stop();
Symbol 255 MovieClip [infantry2] Frame 2
stop();
Symbol 255 MovieClip [infantry2] Frame 3
stop();
Symbol 255 MovieClip [infantry2] Frame 4
stop();
Symbol 255 MovieClip [infantry2] Frame 5
stop();
Symbol 256 MovieClip [bang4] Frame 11
this.removeMovieClip();
Symbol 271 MovieClip Frame 36
_root.health = _root.health - 15;
Symbol 271 MovieClip Frame 65
this.gotoAndPlay(20);
Symbol 291 MovieClip Frame 13
_root.BloodEff(this._parent._x, this._parent._y, this._parent._rotation, "crater1");
Symbol 291 MovieClip Frame 30
_root.enmleft--;
_root.kills++;
_root.score = _root.score + 15;
this._parent.removeMovieClip();
Symbol 292 MovieClip [tank1] Frame 1
stop();
Symbol 292 MovieClip [tank1] Frame 2
stop();
Symbol 292 MovieClip [tank1] Frame 3
stop();
Symbol 292 MovieClip [tank1] Frame 4
stop();
Symbol 292 MovieClip [tank1] Frame 5
stop();
Symbol 298 MovieClip [hit5] Frame 1
_root.Sound6.start();
Symbol 298 MovieClip [hit5] Frame 20
this.removeMovieClip();
Symbol 315 MovieClip Frame 14
_root.createEnemyDrop("infantry1", 1, 6, 75, "org", this._parent._x + 25, this._parent._y - 40);
_root.createEnemyDrop("infantry1", 1, 6, 75, "org", this._parent._x - 25, this._parent._y - 40);
_root.enmleft = _root.enmleft + 2;
Symbol 315 MovieClip Frame 15
stop();
Symbol 327 MovieClip Frame 13
_root.BloodEff(this._parent._x, this._parent._y, this._parent._rotation, "crater1");
Symbol 327 MovieClip Frame 30
_root.enmleft--;
_root.kills++;
_root.score = _root.score + 15;
this._parent.removeMovieClip();
Symbol 340 MovieClip Frame 13
_root.BloodEff(this._parent._x, this._parent._y, this._parent._rotation, "crater1");
Symbol 340 MovieClip Frame 19
_root.enmleft--;
_root.kills++;
_root.score = _root.score + 15;
this._parent.removeMovieClip();
Symbol 341 MovieClip [truck1] Frame 1
stop();
Symbol 341 MovieClip [truck1] Frame 2
stop();
Symbol 341 MovieClip [truck1] Frame 3
stop();
Symbol 341 MovieClip [truck1] Frame 4
stop();
Symbol 341 MovieClip [truck1] Frame 5
stop();
Symbol 343 MovieClip Frame 14
_root.health = _root.health - 1;
Symbol 343 MovieClip Frame 17
gotoAndPlay (11);
Symbol 344 MovieClip [infantry1] Frame 1
stop();
Symbol 344 MovieClip [infantry1] Frame 2
stop();
Symbol 344 MovieClip [infantry1] Frame 3
stop();
Symbol 344 MovieClip [infantry1] Frame 4
stop();
Symbol 344 MovieClip [infantry1] Frame 5
stop();
Symbol 346 MovieClip [trail9] Frame 16
this.removeMovieClip();
Symbol 347 MovieClip [trail13] Frame 1
lightning.gotoAndPlay(random(12));
Symbol 347 MovieClip [trail13] Frame 8
this.removeMovieClip();
Symbol 348 MovieClip [trail7] Frame 11
this.removeMovieClip();
Symbol 350 MovieClip [trail3] Frame 5
this.removeMovieClip();
Symbol 351 MovieClip [trail8] Frame 5
this.removeMovieClip();
Symbol 352 MovieClip [trail2] Frame 5
this.removeMovieClip();
Symbol 353 MovieClip [trail10] Frame 26
this.removeMovieClip();
Symbol 354 MovieClip [trail14] Frame 14
this.removeMovieClip();
Symbol 355 MovieClip [trail1] Frame 5
this.removeMovieClip();
Symbol 362 MovieClip [blood2] Frame 12
stop();
Symbol 365 MovieClip [blood1] Frame 10
stop();
Symbol 386 MovieClip [hit7] Frame 1
_root.Sound14.start(0.52, 0);
Symbol 386 MovieClip [hit7] Frame 24
this.removeMovieClip();
Symbol 423 MovieClip Frame 4710
gotoAndPlay (1);
Symbol 864 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var _local21 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = _local21;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local15);
var clip = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var _local11 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local6 = _getRes(options);
var _local16 = _local6[0];
var _local13 = _local6[1];
_local3._x = _local16 * 0.5;
_local3._y = _local13 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = _local11;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 865 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 866 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.3 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
if (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
//infinite loop
}
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 867 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 868 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 869 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 870 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 429 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 14
_root.shellEff(this._parent, "cannonshell1", -(random(4) + 10), -(random(4) + 10), 0);
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
_root.shellEff(this._parent, "cannonshell2", -(random(4) + 10), -(random(4) + 10), -1.5707963267949);
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 14
_root.Sound16.start(0.1, 0);
Symbol 452 MovieClip Frame 22
_root.shellEff(this._parent, "cannonshell3", -(random(8) + 10), -(random(8) + 10), 0);
_root.shellEff(this._parent, "cannonshell3", -(random(8) + 10), -(random(8) + 10), 0);
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 17
_root.shellEff(this._parent, "cannonshell4", -(random(4) + 10), -(random(4) + 10), 0);
Symbol 474 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
_root.shellEff(this._parent, "cannonshell2", -(random(8) + 6), -(random(8) + 6), -1.5707963267949);
Symbol 484 MovieClip Frame 8
stop();
Symbol 484 MovieClip Frame 9
_root.shellEff(this._parent, "cannonshell2", -(random(8) + 6), -(random(8) + 6), (Math.PI/2));
Symbol 488 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
if (this._alpha > 0) {
this._alpha--;
}
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 2
_root.shellEff(this._parent, "cannonshell2", -(random(4) + 10), -(random(4) + 10), -1.5707963267949);
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 9
_root.shellEff(this._parent, "cannonshell9", -(random(4) + 10), -(random(4) + 10), 0);
Symbol 513 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 18
_root.Sound20.start(1, 0);
Symbol 533 MovieClip Frame 23
_root.shellEff(this._parent, "cannonshell14", -(random(4) + 7), -(random(4) + 7), -1.41371669411541);
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 15
_root.shellEff(this._parent, "cannonshell4", -(random(4) + 10), -(random(4) + 10), 0);
Symbol 540 MovieClip Frame 1
stop();
Symbol 550 Button
on (release) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
}
on (keyPress "Q") {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
}
on (keyPress "q") {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
}
Symbol 559 Button
on (release) {
if (_root.artillery > 0) {
_root.SpecialBarrage();
_root.artillery--;
this.play();
}
}
on (keyPress "A") {
if (_root.artillery > 0) {
_root.SpecialBarrage();
_root.artillery--;
this.play();
}
}
on (keyPress "a") {
if (_root.artillery > 0) {
_root.SpecialBarrage();
_root.artillery--;
this.play();
}
}
Symbol 570 MovieClip Frame 1
stop();
Symbol 575 Button
on (release) {
if (_root.airstrike > 0) {
_root.SpecialAirstrike();
_root.airstrike--;
this.play();
}
}
on (keyPress "S") {
if (_root.airstrike > 0) {
_root.SpecialAirstrike();
_root.airstrike--;
this.play();
}
}
on (keyPress "s") {
if (_root.airstrike > 0) {
_root.SpecialAirstrike();
_root.airstrike--;
this.play();
}
}
Symbol 582 MovieClip Frame 1
stop();
Symbol 585 Button
on (release) {
if (_root.nuke > 0) {
_root.SpecialNuke();
_root.nuke--;
this.play();
}
}
on (keyPress "D") {
if (_root.nuke > 0) {
_root.SpecialNuke();
_root.nuke--;
this.play();
}
}
on (keyPress "d") {
if (_root.nuke > 0) {
_root.SpecialNuke();
_root.nuke--;
this.play();
}
}
Symbol 592 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 10
stop();
Symbol 605 MovieClip Frame 10
stop();
Symbol 609 MovieClip Frame 10
stop();
Symbol 611 MovieClip Frame 10
stop();
Symbol 622 Button
on (release) {
_root.wpn = 1;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 624 MovieClip Frame 3
stop();
Symbol 630 Button
on (release) {
_root.wpn = 2;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 2
stop();
Symbol 632 MovieClip Frame 3
stop();
Symbol 636 Button
on (release) {
_root.wpn = 3;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 638 MovieClip Frame 1
stop();
Symbol 638 MovieClip Frame 2
stop();
Symbol 638 MovieClip Frame 3
stop();
Symbol 642 Button
on (release) {
_root.wpn = 4;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 2
stop();
Symbol 644 MovieClip Frame 3
stop();
Symbol 649 Button
on (release) {
_root.wpn = 15;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
}
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 2
stop();
Symbol 652 MovieClip Frame 3
stop();
Symbol 656 Button
on (release) {
_root.wpn = 6;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 658 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 658 MovieClip Frame 3
stop();
Symbol 663 Button
on (release) {
_root.wpn = 7;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 2
stop();
Symbol 666 MovieClip Frame 3
stop();
Symbol 670 Button
on (release) {
_root.wpn = 8;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 2
stop();
Symbol 672 MovieClip Frame 3
stop();
Symbol 677 Button
on (release) {
_root.wpn = 9;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
stop();
Symbol 680 MovieClip Frame 3
stop();
Symbol 685 Button
on (release) {
_root.wpn = 10;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 2
stop();
Symbol 688 MovieClip Frame 3
stop();
Symbol 693 Button
on (release) {
_root.wpn = 11;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 696 MovieClip Frame 1
stop();
Symbol 696 MovieClip Frame 2
stop();
Symbol 696 MovieClip Frame 3
stop();
Symbol 700 Button
on (release) {
_root.wpn = 12;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 702 MovieClip Frame 1
stop();
Symbol 702 MovieClip Frame 2
stop();
Symbol 702 MovieClip Frame 3
stop();
Symbol 707 Button
on (release) {
_root.wpn = 14;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 710 MovieClip Frame 1
stop();
Symbol 710 MovieClip Frame 2
stop();
Symbol 710 MovieClip Frame 3
stop();
Symbol 715 Button
on (release) {
_root.wpn = 13;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.rl._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.rl.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 718 MovieClip Frame 1
stop();
Symbol 718 MovieClip Frame 2
stop();
Symbol 718 MovieClip Frame 3
stop();
Symbol 722 Button
on (release) {
_root.wpn = 5;
this.gotoAndStop(3);
if (_root.lvlend.weaponequip.scroller.bc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.bc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.hc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.hc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.fc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.fc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.pc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.pc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.cg._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.cg.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gc._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gc.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sp._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sp.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.gm._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.gm.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ft._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ft.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.sr._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.sr.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.ac._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.ac.gotoAndStop(2);
}
if (_root.lvlend.weaponequip.scroller.mt._currentframe >= 2) {
_root.lvlend.weaponequip.scroller.mt.gotoAndStop(2);
}
}
Symbol 724 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 2
stop();
Symbol 724 MovieClip Frame 3
stop();
Symbol 730 Button
on (release) {
if (_root.scrollermax <= -50) {
_root.lvlend.weaponequip.scroller._y = _root.lvlend.weaponequip.scroller._y + 50;
_root.scrollermax = _root.scrollermax + 50;
}
}
Symbol 731 Button
on (release) {
if (_root.scrollermax >= -600) {
_root.lvlend.weaponequip.scroller._y = _root.lvlend.weaponequip.scroller._y - 50;
_root.scrollermax = _root.scrollermax - 50;
}
}
Symbol 745 Button
on (release) {
if (_root.score >= 50) {
if (_root.health <= (_root.healthmax - 50)) {
_root.health = _root.health + 50;
} else {
_root.health = _root.healthmax;
}
_root.score = _root.score - 50;
}
}
Symbol 752 Button
on (release) {
if (_root.score >= 400) {
if (_root.health <= (_root.healthmax - 500)) {
_root.health = _root.health + 500;
} else {
_root.health = _root.healthmax;
}
_root.score = _root.score - 400;
}
}
Symbol 759 Button
on (release) {
if ((_root.score >= 500) && (_root.defplus < 15)) {
_root.defplus++;
_root.healthmax = _root.healthmax + 100;
_root.health = _root.health + 100;
_root.score = _root.score - 500;
}
}
Symbol 767 Button
on (release) {
if (_root.score >= 100) {
if (_root.artillery < 10) {
_root.artillery++;
_root.score = _root.score - 100;
}
}
}
Symbol 774 Button
on (release) {
if (_root.score >= 300) {
if (_root.airstrike < 10) {
_root.airstrike++;
_root.score = _root.score - 300;
}
}
}
Symbol 781 Button
on (release) {
if (_root.score >= 800) {
if (_root.nuke < 10) {
_root.nuke++;
_root.score = _root.score - 800;
}
}
}
Symbol 792 Button
on (release) {
if ((_root.score >= 500) && (_root.defenders < 25)) {
_root.defenders++;
_root.score = _root.score - 500;
}
}
Symbol 799 Button
on (release) {
if (_root.score >= 250) {
if (_root.tech < 15) {
_root.tech++;
_root.score = _root.score - 250;
}
}
}
Symbol 805 MovieClip Frame 1
menubtn.onRelease = function () {
_root.lvl = 1;
_root.mainmenu.gotoAndStop(1);
_root.mainmenu._visible = true;
};
Instance of Symbol 545 MovieClip "healthbar" in Symbol 805 MovieClip Frame 1
onClipEvent (enterFrame) {
hp = (_root.health / _root.healthmax) * 100;
this._xscale = hp;
}
Symbol 816 Button
on (release) {
_root.reset();
_root.mainmenu._visible = false;
_root.mainmenu.gotoAndStop(3);
}
Symbol 819 MovieClip Frame 10
stop();
Symbol 821 MovieClip Frame 10
stop();
Symbol 822 Button
on (release) {
gotoAndStop (2);
}
Symbol 823 Button
on (release) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
}
Symbol 825 Button
on (release) {
gotoAndStop (1);
}
Symbol 835 MovieClip Frame 10
stop();
Symbol 837 MovieClip Frame 10
stop();
Symbol 843 MovieClip Frame 1
var i = 0;
while (i < 200) {
var enm = ("enemy" + i);
enemy[enm].removeMovieClip();
i++;
}
var i = 0;
while (i < 100) {
var nm = ("eff" + i);
blood[nm].removeMovieClip();
i++;
}
var i = 0;
while (i < 100) {
var nm = ("eff" + i);
blood[nm].removeMovieClip();
i++;
}
var i = 0;
while (i < 100) {
var snm = ("shell" + i);
effects3[snm].removeMovieClip();
i++;
}
Symbol 843 MovieClip Frame 20
_root.mainmenu.dead.scorename = "--Insert Name Here--";
submitscore.onRelease = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.mainmenu.dead.scorename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MzczN2olZSVhJW4lcw==", "TkJwQndNUk8=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/omegaturret/", "_blank");
_root.health = 1;
_root.mainmenu.gotoAndStop(1);
};
menubtn.onRelease = function () {
_root.health = 1;
_root.mainmenu.gotoAndStop(1);
};
stop();
Symbol 851 MovieClip Frame 1
var i = 0;
while (i < 200) {
var enm = ("enemy" + i);
enemy[enm].removeMovieClip();
i++;
}
var i = 0;
while (i < 100) {
var nm = ("eff" + i);
blood[nm].removeMovieClip();
i++;
}
var i = 0;
while (i < 100) {
var nm = ("eff" + i);
blood[nm].removeMovieClip();
i++;
}
var i = 0;
while (i < 100) {
var snm = ("shell" + i);
effects3[snm].removeMovieClip();
i++;
}
Symbol 851 MovieClip Frame 20
_root.mainmenu.win.scorename = "--Insert Name Here--";
submitscore.onRelease = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.mainmenu.win.scorename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MzczN2olZSVhJW4lcw==", "TkJwQndNUk8=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/omegaturret/", "_blank");
_root.health = 1;
_root.lvl = 1;
_root.mainmenu.gotoAndStop(1);
};
menubtn.onRelease = function () {
_root.health = 1;
_root.lvl = 1;
_root.mainmenu.gotoAndStop(1);
};
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 8
stop();
Symbol 861 MovieClip Frame 8
stop();