Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"aab2392d93145d83", res:"700x440", background:0, color:10487045, outline:16777215, no_bg:false});
Frame 2
function onEnterFrame() {
if (btns._currentframe == 60) {
x = 1;
while (x <= 4) {
if ((btns["bt" + x].knife._currentframe == btns["bt" + x].knife._totalframes) && (_root["btn" + x] == true)) {
_root["hitb" + x] = false;
}
if (_root["hitb" + x] == true) {
btns["bt" + x].knife.nextFrame();
}
if (_root["hitb" + x] == false) {
btns["bt" + x].knife.prevFrame();
}
x++;
}
}
if ((page._alpha < 100) && (starts == true)) {
page._alpha = page._alpha + pagealp;
pagealp = pagealp + 0.1;
}
if (starts == false) {
menu_bg.prevFrame();
page._alpha = page._alpha - pagealp;
pagealp = pagealp - 0.1;
}
if (menu_bg._currentframe != menu_bg._totalframes) {
menu_bg._x = random(shakeAm) - (shakeAm * 0.5);
menu_bg._y = random(shakeAm) - (shakeAm * 0.5);
shakeAm = shakeAm - 0.5;
} else {
menu_bg._x = 0;
menu_bg._y = 0;
}
mencou++;
if ((random(20) == 0) && (mencou > 10)) {
meA.push("menu_en_" + page.meco.getNextHighestDepth());
meenOb = page.meco.attachMovie("menu_en", "menu_en_" + page.meco.getNextHighestDepth(), page.meco.getNextHighestDepth());
meenOb.gotoAndStop(random(3) + 1);
meenOb._x = -10;
meenOb._y = random(170) + 50;
meenOb._alpha = 0;
meenOb._yscale = 50 + (meenOb._y / 4);
meenOb._xscale = 50 + (meenOb._y / 4);
meenOb.anim.b1.gotoAndStop(random(3) + 1);
meenOb.anim.b2.gotoAndStop(random(3) + 1);
meenOb.anim.b3.gotoAndStop(random(3) + 1);
meenOb.anim.b4.gotoAndStop(random(3) + 1);
meenOb.anim.b5.gotoAndStop(random(3) + 1);
meenOb.anim.b6.gotoAndStop(random(3) + 1);
meenOb.anim.b7.gotoAndStop(random(3) + 1);
meenOb.anim.b8.gotoAndStop(random(3) + 1);
meenOb.anim.b9.gotoAndStop(random(3) + 1);
meenOb.anim.b10.gotoAndStop(random(3) + 1);
meenOb.anim.b11.gotoAndStop(random(3) + 1);
mencou = 0;
}
for (x in meA) {
page.meco[meA[x]]._x = page.meco[meA[x]]._x + 2;
if (page.meco[meA[x]]._alpha < 80) {
page.meco[meA[x]]._alpha = page.meco[meA[x]]._alpha + 0.5;
}
if (page.meco[meA[x]]._x > 370) {
page.meco[meA[x]].removeMovieClip();
meA.splice(x, 1);
}
}
}
var meenOb = new Object();
var clitrain = false;
var meA = new Array();
var menup = false;
var starts = true;
var cicgo = false;
var pagealp = 0.1;
var shakeAm = 16;
var mencou = 0;
page._alpha = 0;
Mouse.show();
_quality = "high";
var btn1 = false;
var btn2 = false;
var btn3 = false;
var btn4 = false;
var hitb1 = false;
var hitb2 = false;
var hitb3 = false;
var hitb4 = false;
ltcl.gotoAndPlay(ltclvar);
Instance of Symbol 341 MovieClip "sbigbomb" in Frame 2
/* no clip actions */
Frame 3
function aysfunc(ob1, ob2) {
if (expvar >= _root["tuprice" + ob1]) {
if (ob2 == true) {
uc["tc" + ob1].gotoAndStop(tm._currentframe + 1);
gp["tc" + ob1].gotoAndStop(tm._currentframe + 1);
_root["tcLev" + ob1] = tm._currentframe + 1;
expvar = expvar - _root["tuprice" + tm._currentframe];
uc.setUB();
} else {
uc["tc" + ob1].gotoAndStop(_root["tcLev" + ob1]);
}
aysboo = false;
uc.ays._x = 1100;
uc.ays.gotoAndStop(1);
} else {
uc.ays.gotoAndStop(1);
}
}
function onMouseDown() {
if (tutvar == false) {
mdvar = true;
if (upgrade == true) {
x = 1;
while (x <= 6) {
if ((((((uc["tu" + x]._x - 40) < _xmouse) && ((uc["tu" + x]._x + 40) > _xmouse)) && ((uc["tu" + x]._y - 23) < _ymouse)) && ((uc["tu" + x]._y + 23) > _ymouse)) && (expvar >= _root["tuprice" + x])) {
if ((tmdrag == true) && (tm._currentframe == x)) {
tm._visible = false;
tm._x = -50;
tm._y = -50;
tmdrag = false;
} else {
uc.ays._x = 1100;
uc.ays.gotoAndStop(1);
tm.gotoAndStop(x);
tmdrag = true;
tm._x = _xmouse;
tm._y = _ymouse;
tm._visible = true;
}
}
x++;
}
if (trdrag == true) {
x = 1;
while (x < 4) {
if (((((uc["tr" + x]._x - 20) < _xmouse) && ((uc["tr" + x]._x + 20) > _xmouse)) && ((uc["tr" + x]._y - 20) < _ymouse)) && ((uc["tr" + x]._y + 20) > _ymouse)) {
aysvar = x;
aysboo = true;
trdrag = false;
uc.ays.gotoAndStop(2);
if (x == 1) {
uc.ays._x = uc["tr" + x]._x;
uc.ays._y = uc["tr" + x]._y + 10;
}
if (x == 2) {
uc.ays._x = uc["tr" + x]._x - 10;
uc.ays._y = uc["tr" + x]._y + 10;
}
if (x == 3) {
uc.ays._x = uc["tr" + x]._x - 20;
uc.ays._y = uc["tr" + x]._y + 10;
}
resettm();
}
x++;
}
}
}
if (p == false) {
x = 1;
while (x < 5) {
if (_ymouse < 400) {
if (_root["tool" + x]) {
tempres = _root[("to" + x) + "res"];
_root[("t" + x) + "cur"] = tempres[rlev];
}
if (_root["tool" + x] == true) {
_root["tooluse" + x] = true;
tooluse = true;
t1.cross.gotoAndStop(2);
t2.cross.gotoAndStop(2);
t3.cross.gotoAndStop(2);
t4.cross.gotoAndStop(2);
_root["t" + x].cross.gotoAndStop(1);
rifletrans = true;
rifleaway = false;
tmo._visible = false;
if ((x == 3) && (soundvar == true)) {
sastrike.play();
}
taaob = gp.attachMovie("taa", "taa", gp.getNextHighestDepth(), {_x:tmo._x - gp._x, _y:tmo._y});
if (tmo._currentframe > 10) {
tmocur = tmo._currentframe;
tmocur = tmocur.toString();
tmocur = tmocur.split("");
tmocur = Number(tmocur[1]);
taaob.gotoAndPlay(30 + tmocur);
} else {
taaob.gotoAndPlay(30 + tmo._currentframe);
}
taavar = true;
}
_root["tool" + x] = false;
_root["t" + x].gotoAndStop(1);
}
if (_ymouse > 400) {
if (_root[("t" + x) + "cur"] == 0) {
if (((((tooluse == false) && ((_root["t" + x]._x - 20) < _xmouse)) && ((_root["t" + x]._x + 20) > _xmouse)) && ((_root["t" + x]._y - 15) < _ymouse)) && ((_root["t" + x]._y + 15) > _ymouse)) {
tmo._visible = true;
tmo.gotoAndPlay(1);
if (_root["t" + x]._currentframe == 1) {
y = 1;
while (y < 5) {
_root["tool" + y] = false;
_root["t" + y].gotoAndStop(1);
_root["t" + y].anim._xscale = 0;
y++;
}
_root["t" + x].gotoAndStop(2);
_root["tool" + x] = true;
rifletrans = true;
rifleaway = true;
} else {
_root["tool" + x] = false;
rifletrans = true;
rifleaway = false;
tmo._y = -30;
_root["t" + x].gotoAndStop(1);
_root["t" + x].anim._xscale = 0;
}
}
}
}
x++;
}
}
}
}
function onMouseUp() {
mdvar = false;
if (tutvar == false) {
if (options == true) {
if (scr1v == true) {
if (_xmouse > 476) {
opcont.scr1._x = 590;
_quality = "HIGH";
} else if (_xmouse < 225) {
opcont.scr1._x = 105;
_quality = "LOW";
} else if ((_xmouse > 225) && (_xmouse < 476)) {
opcont.scr1._x = 350;
_quality = "MEDIUM";
}
}
if (scr2v == true) {
if (_xmouse >= 350) {
opcont.scr2._x = 590;
soundvar = true;
bgfx.gotoAndStop(2);
} else if (_xmouse < 350) {
opcont.scr2._x = 105;
stopAllSounds();
bgfx.gotoAndStop(1);
soundvar = false;
}
}
if (scr3v == true) {
if (_xmouse >= 350) {
opcont.scr3._x = 590;
graphicsvar = true;
} else if (_xmouse < 350) {
opcont.scr3._x = 105;
graphicsvar = false;
}
}
scr1v = false;
scr2v = false;
scr3v = false;
}
}
}
function onEnterFrame() {
if (tutvar == false) {
if ((p == false) && (opcont._currentframe == 1)) {
if (Key.isDown(80) || (Key.isDown(79))) {
p = true;
options = true;
rifletrans = true;
rifleaway = true;
opcont.gotoAndPlay(2);
x = 1;
while (x < 5) {
if (_root["tool" + x] == true) {
_root["tool" + x] = false;
tmo._y = -30;
tmo._visible = false;
_root["t" + x].gotoAndStop(1);
_root["t" + x].anim._xscale = 0;
}
x++;
}
}
}
if ((upgrade == false) && (options == false)) {
if (Key.isDown(85)) {
uc.gotoAndPlay(2);
p = true;
upgrade = true;
rifletrans = true;
rifleaway = true;
x = 1;
while (x < 5) {
if (_root["tool" + x] == true) {
_root["tool" + x] = false;
tmo._y = -30;
tmo._visible = false;
_root["t" + x].gotoAndStop(1);
_root["t" + x].anim._xscale = 0;
}
x++;
}
}
}
if (upgrade == true) {
tmFunc();
}
if (p == false) {
optionFunc();
nousert();
scrollgp();
toolFunc();
enSpawn();
hotkeyFunc();
nuaFunc();
rifleShoot();
}
enMove();
optionScrub();
rifleFunc();
}
smoFunc();
expFunc();
expCount();
baseFunc();
}
function nuaFunc() {
if ((expvar >= dcost1) && (dcostu1 == false)) {
dcostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= dcost2) && (dcostu2 == false)) {
dcostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= dcost3) && (dcostu3 == false)) {
dcostu3 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= tcost1) && (tcostu1 == false)) {
tcostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= tcost2) && (tcostu2 == false)) {
tcostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= tcost3) && (tcostu3 == false)) {
tcostu3 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= rcost1) && (rcostu1 == false)) {
rcostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= rcost2) && (rcostu2 == false)) {
rcostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= rcost3) && (rcostu3 == false)) {
rcostu3 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= acost1) && (acostu1 == false)) {
acostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= acost2) && (acostu2 == false)) {
acostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= acost3) && (acostu3 == false)) {
acostu3 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= hcost1) && (hcostu1 == false)) {
hcostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= hcost2) && (hcostu2 == false)) {
hcostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= hcost3) && (hcostu3 == false)) {
hcostu3 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= bcost1) && (bcostu1 == false)) {
bcostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= bcost2) && (bcostu2 == false)) {
bcostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= bcost3) && (bcostu3 == false)) {
bcostu3 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= scost1) && (scostu1 == false)) {
scostu1 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= scost2) && (scostu2 == false)) {
scostu2 = true;
nua.gotoAndPlay(2);
}
if ((expvar >= scost3) && (scostu3 == false)) {
scostu3 = true;
nua.gotoAndPlay(2);
}
}
function hotkeyFunc() {
if (tooluse == false) {
x = 1;
while (x < 5) {
if (_root[("t" + x) + "cur"] == 0) {
if (Key.isDown(48 + x) && (hkw >= 12)) {
tmo._visible = true;
tmo.gotoAndPlay(1);
if (_root["t" + x]._currentframe == 1) {
y = 1;
while (y < 5) {
_root["tool" + y] = false;
_root["t" + y].gotoAndStop(1);
_root["t" + y].anim._xscale = 0;
y++;
}
_root["t" + x].gotoAndStop(2);
_root["tool" + x] = true;
rifletrans = true;
rifleaway = true;
} else {
_root["tool" + x] = false;
rifletrans = true;
rifleaway = false;
tmo._y = -30;
tmo._visible = false;
_root["t" + x].gotoAndStop(1);
_root["t" + x].anim._xscale = 0;
}
hkw = 0;
}
}
x++;
}
if (hkw < 12) {
hkw++;
}
}
}
function optionScrub() {
if (options == true) {
if (_quality == "HIGH") {
opcont.scr1._x = 590;
} else if (_quality == "MEDIUM") {
opcont.scr1._x = 350;
} else if (_quality == "LOW") {
opcont.scr1._x = 105;
}
if (scr1v == true) {
if (_xmouse > 565) {
opcont.scr1._x = 590;
_quality = "HIGH";
} else if (_xmouse < 130) {
opcont.scr1._x = 105;
_quality = "LOW";
} else if ((_xmouse > 325) && (_xmouse < 375)) {
_quality = "MEDIUM";
opcont.scr1._x = 350;
} else {
opcont.scr1._x = _xmouse;
}
}
if (soundvar == true) {
opcont.scr2._x = 590;
} else if (soundvar == false) {
opcont.scr2._x = 105;
}
if (scr2v == true) {
if (_xmouse > 565) {
opcont.scr2._x = 590;
soundvar = true;
} else if (_xmouse < 130) {
opcont.scr2._x = 105;
soundvar = false;
} else {
opcont.scr2._x = _xmouse;
}
}
if (graphicsvar == true) {
opcont.scr3._x = 590;
} else if (graphicsvar == false) {
opcont.scr3._x = 105;
}
if (scr3v == true) {
if (_xmouse > 565) {
opcont.scr3._x = 590;
graphicsvar = true;
} else if (_xmouse < 130) {
opcont.scr3._x = 105;
graphicsvar = false;
} else {
opcont.scr3._x = _xmouse;
}
}
}
}
function baseFunc() {
if (p == false) {
bhaddcou++;
if (bhaddcou >= 40) {
if (basehealth < _root["basehealth" + hlev]) {
basehealth = basehealth + alev;
}
bhaddcou = 0;
}
}
bhcou = bhcou + ((basehealth - bhcou) * 0.1);
bhealth.tex.tex = Math.round(bhcou);
bhealth.anim._xscale = Math.round(bhcou) * bmb;
bhealth.tex._x = bhealth.anim._width;
if (bhealth.anim._xscale < 50) {
bhealth.tex.gotoAndStop(2);
} else if (bhealth.anim._xscale > 50) {
bhealth.tex.gotoAndStop(1);
}
if (bhealth.anim._xscale < 0) {
bhealth.anim._xscale = 0;
basehealth = 0;
bhealth.tex.tex = 0;
gameovertrans.play();
delete onEnterFrame;
delete onMouseDown;
}
}
function expCount() {
if (p == false) {
if (expvar < Math.round(expcou)) {
epi.textColor = 3145728 /* 0x300000 */;
} else if (expvar > Math.round(expcou)) {
epi.textColor = 994560 /* 0x0F2D00 */;
} else {
epi.textColor = 0;
}
expcou = expcou + ((expvar - expcou) * 0.1);
exptext = "EXP: " + Math.round(expcou);
}
if ((upgrade == true) && (uc._currentframe == 61)) {
if (expvar < Math.round(uexpcou)) {
uc.expm.epi.textColor = 3145728 /* 0x300000 */;
} else if (expvar > Math.round(uexpcou)) {
uc.expm.epi.textColor = 994560 /* 0x0F2D00 */;
} else {
uc.expm.epi.textColor = 0;
}
uexpcou = uexpcou + ((expvar - uexpcou) * 0.1);
uc.expm.exptext = "EXP: " + Math.round(uexpcou);
}
}
function trotate(num, obx, oby) {
xpr = obx - gp["tc" + num]._x;
ypr = oby - gp["tc" + num]._y;
var _local3 = (Math.atan2(ypr, xpr) * 180) / Math.PI;
var _local1 = (_local3 - gp["tc" + num].barrel._rotation) - 180;
if (Math.abs(_local1) > 180) {
_local1 = ((_local1 > 0) ? (_local1 - 360) : (360 + _local1));
}
gp["tc" + num].barrel._rotation = gp["tc" + num].barrel._rotation + (_local1 * 0.2);
gp["tc" + num].barrel.anim.gotoAndStop(1);
}
function tshoFunc(num, enemy) {
tshoydist = gp["tc" + num]._y - enemy._y;
tshoxdist = ((gp["tc" + num]._x + gp["tc" + num].barrel.anim._x) - enemy._x) - 10;
gp["tc" + num].barrel.anim._rotation = (random(600) * 0.01) - 3;
gp["tc" + num].barrel.anim._xscale = Math.round(Math.sqrt((tshoxdist * tshoxdist) + (tshoydist * tshoydist))) + (random(50) - 25);
gp["tc" + num].barrel.anim.gotoAndStop(random(6) + 2);
gp["tc" + num].barrel.shot.play();
if (soundvar == true) {
_root["stur" + (_root["tcLev" + num] - 1)].play();
}
hitEnemy(enemy, tdam[gp["tc" + num]._currentframe], 1);
}
function nousert() {
y = 1;
while (y < 4) {
for (x in enArray) {
if (gp.gec.en[enArray[x]].health > 0) {
gp.gec.en[enArray[x]].Distance = Math.sqrt(Math.pow(gp.gec.en[enArray[x]]._y - gp["tc" + y]._y, 2) + Math.pow(gp.gec.en[enArray[x]]._x - gp["tc" + y]._x, 2));
}
if ((((gp.gec.en[enArray[x]].Distance < _root["nearen" + y].Distance) || (_root["turtarg" + y] == false)) || (_root["nearen" + y].health <= 0)) && (gp.gec.en[enArray[x]].health > 0)) {
_root["nearen" + y] = gp.gec.en[enArray[x]];
_root["turtarg" + x] = true;
}
}
y++;
}
x = 1;
while (x < 4) {
if (_root["tshoche" + x] == false) {
trotate(x, _root["nearen" + x]._x, _root["nearen" + x]._y - (_root["nearen" + x]._height * 0.5));
}
if (_root["nearen" + x].health > 0) {
if ((_root["tshocou" + x] >= tspe[_root["tcLev" + x]]) && (_root["nearen" + x].Distance <= tran[_root["tcLev" + x]])) {
tshoFunc(x, _root["nearen" + x]);
}
} else {
_root["turtarg" + x] = false;
}
if (_root["tshocou" + x] >= tspe[_root["tcLev" + x]]) {
_root["tshocou" + x] = 0;
}
_root["tshocou" + x]++;
if (_root["nearen" + x].Distance == undefined) {
_root["nearen" + x] = new Object();
_root["nearen" + x].Distance = 1000000 /* 0x0F4240 */;
}
x++;
}
}
function tmFunc() {
uc.uro._x = uc.uro._x - ((uc.uro._x - _xmouse) * 0.9);
uc.uro._y = uc.uro._y - ((uc.uro._y - _ymouse) * 0.9);
if (tmdrag == true) {
tm._x = tm._x - ((tm._x - _xmouse) * 0.5);
tm._y = tm._y - ((tm._y - _ymouse) * 0.5);
}
tm._visible = true;
tshoche1 = false;
tshoche2 = false;
tshoche3 = false;
if (tmdrag == true) {
x = 1;
while (x < 4) {
if (((((uc["tr" + x]._x - 20) < _xmouse) && ((uc["tr" + x]._x + 20) > _xmouse)) && ((uc["tr" + x]._y - 15) < _ymouse)) && ((uc["tr" + x]._y + 15) > _ymouse)) {
trdrag = true;
_root["tshoche" + x] = true;
uc["tc" + x].gotoAndStop(tm._currentframe + 1);
tm._visible = false;
} else {
uc["tc" + x].gotoAndStop(_root["tcLev" + x]);
}
x++;
}
}
}
function resettm() {
tmdrag = false;
tm._x = -20;
tm._y = -20;
}
function makewc(ob1) {
if (justloaded == false) {
if (clitrain == false) {
gsi.play();
savear[0] = dlev;
savear[1] = tlev;
savear[2] = rlev;
savear[3] = alev;
savear[4] = hlev;
savear[5] = blev;
savear[6] = slev;
savear[7] = curlevel;
savear[8] = dcost1;
savear[9] = dcost2;
savear[10] = dcost3;
savear[11] = tcost1;
savear[12] = tcost2;
savear[13] = tcost3;
savear[14] = rcost1;
savear[15] = rcost2;
savear[16] = rcost3;
savear[17] = acost1;
savear[18] = acost2;
savear[19] = acost3;
savear[20] = hcost1;
savear[21] = hcost2;
savear[22] = hcost3;
savear[23] = bcost1;
savear[24] = bcost2;
savear[25] = bcost3;
savear[26] = scost1;
savear[27] = scost2;
savear[28] = scost3;
savear[29] = tcLev1;
savear[30] = tcLev2;
savear[31] = tcLev3;
savear[32] = basehealth;
savear[33] = expvar;
savear[34] = true;
savefile.data.savear = savear;
savefile.flush();
trace(savear);
}
} else {
justloaded = false;
return(("LOCK AND LOAD\rHERE COMES WAVE NUMBER " + (curlevel + 1)) + "!");
}
if (curlevel == 0) {
tutcont._visible = false;
tutcont.nextFrame();
_root.gp.tea._visible = false;
_root.gp.tea._x = -200;
_root.gp.tea._y = -200;
if (clitrain == false) {
return("GET READY\rHERE COMES THE FIRST WAVE!");
}
return("TRAINING IS COMPLETE.\rGOOD WORK!");
}
if (ob1 == 0) {
return(("WOW, YOU'RE AMAZING\rYOU COMPLETED THE WAVE!\rHERE COMES WAVE " + (curlevel + 1)) + ".");
}
if (ob1 == 1) {
return(("AWESOME WORK!\rWAVE " + (curlevel + 1)) + " IS APPROACHING!");
}
if (ob1 == 2) {
return(("YOU ARE GODLIKE!\rBRING ON WAVE " + (curlevel + 1)) + "!");
}
if (ob1 == 3) {
return(("BAH!\rI COULD DO BETTER IN MY SLEEP\rWAVE " + (curlevel + 1)) + " IS GOING TO DESTROY YOU!");
}
return(("WHAT?\rYOU THINK THAT WAS GOOD?\rTRY WAVE " + (curlevel + 1)) + " ON FOR SIZE...");
}
function enSpawn() {
if (gcvar == true) {
gccou++;
if (gccou >= 90) {
gamecomptrans.play();
gccou = 0;
gcvar = false;
}
}
if ((curleva.length == 0) && (en_alive == 0)) {
if (lvluped == false) {
if (curlevel == 20) {
gcvar = true;
} else {
nlc.nla.tex = makewc(random(5));
nlc.play();
}
}
lvluped = true;
if (enArray.length == 0) {
if (clitrain == false) {
curlevel++;
curleva = _root["eleva" + curlevel].slice(0, _root["eleva" + curLevel].length);
lvluped = false;
spawntime = curleva[0];
curleva.splice(0, 1);
} else {
pagego = 2;
clitrain = false;
loadinout.play();
delete onEnterFrame;
delete onMouseDown;
}
}
}
spawncou++;
if (((enArray.length < 20) && (curleva.length > 0)) && (spawncou >= spawntime)) {
entype = curleva[0];
if (er4cou >= 12) {
return(undefined);
}
if (entype > 4) {
er4cou++;
y = 0;
while (y < 12) {
if (er[y * 2] == false) {
erpos.push(er[(y * 2) + 1]);
}
y++;
}
if (erpos.length > 0) {
depthypos = erpos[random(erpos.length)] + 160;
er[((depthypos - 160) * 0.1) - 2] = true;
erpos = [];
}
curleva.splice(0, 1);
}
if (entype <= 4) {
curleva.splice(0, 1);
depthypos = ((random(24) + 1) * 10) + 160;
}
en_alive++;
enDepth = makeDepth(depthypos, false);
enArray.push("en_" + enDepth);
enOb = gp.gec.en.attachMovie("en", "en_" + enDepth, enDepth);
enOb.dapos = ((depthypos - 160) * 0.1) - 2;
enOb.bar._visible = false;
enOb.hit._visible = false;
enOb.eav = 1;
enOb._visible = false;
enOb.deadcou = 150;
enOb.enty = entype;
enOb.gotoAndStop(enOb.enty);
enOb._x = -110;
enOb._y = depthypos;
enOb.resmax = random(15) + 15;
enOb.rescou = 0;
enOb.endpos = random(120) + 900;
enOb.mov = true;
enOb.dep = enDepth;
if (enOb.enty <= 4) {
enOb.anim.b1.gotoAndStop(random(3) + 1);
enOb.anim.b2.gotoAndStop(random(3) + 1);
enOb.anim.b3.gotoAndStop(random(3) + 1);
enOb.anim.b4.gotoAndStop(random(3) + 1);
enOb.anim.b5.gotoAndStop(random(3) + 1);
enOb.anim.b6.gotoAndStop(random(3) + 1);
enOb.anim.b7.gotoAndStop(random(3) + 1);
enOb.anim.b8.gotoAndStop(random(3) + 1);
enOb.anim.b9.gotoAndStop(random(3) + 1);
enOb.anim.b10.gotoAndStop(random(3) + 1);
enOb.anim.b11.gotoAndStop(random(3) + 1);
}
if (enOb.enty == 1) {
enOb.expam = 3;
enOb.xsp = (random(200) * 0.01) + 2;
enOb.anim.fire._visible = false;
enOb.anim.fire.stop();
enOb.damage = 1;
enOb.health = 5;
}
if (enOb.enty == 2) {
enOb.expam = 3;
enOb.xsp = (random(200) * 0.01) + 2;
enOb.anim.fire._visible = false;
enOb.anim.fire.stop();
enOb.damage = 1;
enOb.health = 6;
}
if (enOb.enty == 3) {
enOb.expam = 3;
enOb.xsp = (random(200) * 0.01) + 2;
enOb.damage = 5;
enOb.health = 7;
}
if (enOb.enty == 4) {
enOb.expam = 6;
enOb.xsp = (random(150) * 0.01) + 1;
enOb.damage = 10;
enOb.health = 10;
}
if (enOb.enty == 5) {
enOb.expam = 20;
enOb.xsp = (random(200) * 0.01) + 4;
enOb.health = 25;
enOb.damage = 3;
enOb.anim.b1.gotoAndStop(random(3) + 1);
enOb.anim.b2.gotoAndStop(random(3) + 1);
enOb.anim.b3.gotoAndStop(random(3) + 1);
enOb.anim.b4.gotoAndStop(random(3) + 1);
enOb.anim.b5.gotoAndStop(random(3) + 1);
enOb.anim.b6.gotoAndStop(random(3) + 1);
enOb.anim.b7.gotoAndStop(random(3) + 1);
enOb.anim.b8.gotoAndStop(random(3) + 1);
enOb.anim.b9.gotoAndStop(random(3) + 1);
enOb.anim.b10.gotoAndStop(random(3) + 1);
enOb.anim.b11.gotoAndStop(random(3) + 1);
enOb.anim.d1.gotoAndStop(random(3) + 1);
enOb.anim.d2.gotoAndStop(random(3) + 1);
enOb.anim.d3.gotoAndStop(random(3) + 1);
enOb.anim.d4.gotoAndStop(random(3) + 1);
enOb.anim.d5.gotoAndStop(random(3) + 1);
enOb.anim.d6.gotoAndStop(random(3) + 1);
enOb.anim.d7.gotoAndStop(random(3) + 1);
enOb.anim.d8.gotoAndStop(random(3) + 1);
enOb.anim.d9.gotoAndStop(random(3) + 1);
enOb.anim.d10.gotoAndStop(random(3) + 1);
enOb.anim.d11.gotoAndStop(random(3) + 1);
}
if (enOb.enty == 6) {
enOb.expam = 30;
enOb.xsp = (random(200) * 0.01) + 2;
enOb.health = 60;
enOb.damage = 20;
}
if (enOb.enty == 7) {
enOb.expam = 40;
enOb.xsp = (random(200) * 0.01) + 3;
enOb.health = 75;
enOb.damage = 5;
enOb.anim.fire._visible = false;
enOb.anim.fire.stop();
enOb.anim.b1.gotoAndStop(random(3) + 1);
enOb.anim.b2.gotoAndStop(random(3) + 1);
enOb.anim.b3.gotoAndStop(random(3) + 1);
enOb.anim.b4.gotoAndStop(random(3) + 1);
enOb.anim.b5.gotoAndStop(random(3) + 1);
enOb.anim.b6.gotoAndStop(random(3) + 1);
enOb.anim.b7.gotoAndStop(random(3) + 1);
enOb.anim.b8.gotoAndStop(random(3) + 1);
enOb.anim.b9.gotoAndStop(random(3) + 1);
enOb.anim.b10.gotoAndStop(random(3) + 1);
enOb.anim.b11.gotoAndStop(random(3) + 1);
}
if (enOb.enty == 8) {
enOb.expam = 60;
enOb.xsp = (random(100) * 0.01) + 1;
enOb.damage = 40;
enOb.health = 240;
}
if (enOb.enty == 9) {
enOb.expam = 80;
enOb.xsp = 1;
enOb.damage = 50;
enOb.health = 500;
}
enOb.makebar = ((enOb.bar.anim._xscale - enOb.health) / enOb.health) + 1;
spawncou = 0;
}
}
function enMove() {
for (x in enArray) {
with (gp.gec.en[enArray[x]]) {
if (p == true) {
anim.stop();
}
if ((paa == true) && (anim._currentframe != anim._totalframes)) {
anim.gotoAndPlay(anim._currentframe - 1);
}
if (p == false) {
if (((_root.gp._x + _x) < -110) || ((_root.gp._x + _x) > 760)) {
_visible = false;
} else {
_visible = true;
}
if (tutcont._currentframe == 7) {
_root.gp.tea._x = _x + 4;
_root.gp.tea._y = _y - 35;
}
if (mov == true) {
_x = _x + xsp;
} else {
if (enty == 1) {
if (((((anim._currentframe == 109) || (anim._currentframe == 149)) || (anim._currentframe == 214)) || (anim._currentframe == 249)) || (anim._currentframe == 294)) {
anim.stop();
deadcou--;
if (deadcou <= 0) {
removeMovieClip();
enArray.splice(x, 1);
}
}
if (anim._currentframe == 44) {
anim.fire.gotoAndStop(random(15) + 1);
anim.fire._rotation = random(5) - 2;
anim.fire._visible = true;
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se1.play();
}
} else if (anim.fire._visible == true) {
anim.fire._visible = false;
}
if (anim._currentframe == 71) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(31);
}
}
}
if (enty == 2) {
if (((anim._currentframe == 112) || (anim._currentframe == 152)) || (anim._currentframe == 184)) {
anim.stop();
deadcou--;
if (deadcou <= 0) {
removeMovieClip();
enArray.splice(x, 1);
}
}
if ((((anim._currentframe == 50) || (anim._currentframe == 52)) || (anim._currentframe == 56)) || (anim._currentframe == 58)) {
anim.fire.gotoAndStop(random(15) + 1);
anim.fire._rotation = random(11) - 5;
anim.fire._visible = true;
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se1.play();
}
} else if (anim.fire._visible == true) {
anim.fire._visible = false;
}
if (anim._currentframe == 75) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(37);
}
}
}
if (enty == 3) {
if (((anim._currentframe == 152) || (anim._currentframe == 192)) || (anim._currentframe == 257)) {
anim.stop();
deadcou--;
if (deadcou <= 0) {
removeMovieClip();
enArray.splice(x, 1);
}
}
if (anim._currentframe == 115) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(35);
}
}
if (anim._currentframe == 57) {
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se2.play();
}
}
}
}
if ((anim._currentframe == 20) && (((enty == 5) || (enty == 7)) || (enty == 9))) {
if (_x > endpos) {
mov = false;
} else {
anim.gotoAndPlay(1);
}
}
if ((anim._currentframe == 25) && (enty <= 3)) {
if (_x > endpos) {
mov = false;
} else {
anim.gotoAndPlay(1);
}
}
if ((anim._currentframe == 30) && (enty == 4)) {
if (_x > endpos) {
mov = false;
} else {
anim.gotoAndPlay(1);
}
}
if ((anim._currentframe == 40) && (enty <= 6)) {
if (_x > endpos) {
mov = false;
} else {
anim.gotoAndPlay(1);
}
}
if ((anim._currentframe == 30) && (enty == 8)) {
if (_x > endpos) {
mov = false;
} else {
anim.gotoAndPlay(1);
}
}
if (enty == 4) {
if ((anim._currentframe == 87) || (anim._currentframe == 120)) {
anim.stop();
deadcou--;
if (deadcou <= 0) {
removeMovieClip();
enArray.splice(x, 1);
}
}
if (anim._currentframe == 50) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(31);
}
}
if (anim._currentframe == 33) {
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se2.play();
}
}
}
if (enty == 5) {
if (anim._currentframe == 80) {
anim.stop();
if (deadcou == 150) {
smoAtt(_x + 27, _y - 16, 100, _y, 100);
}
deadcou--;
if (deadcou <= 0) {
er4cou--;
er[dapos] = false;
removeMovieClip();
enArray.splice(x, 1);
}
}
if ((((((anim._currentframe == 49) || (anim._currentframe == 41)) || (anim._currentframe == 43)) || (anim._currentframe == 45)) || (anim._currentframe == 47)) || (anim._currentframe == 49)) {
anim.fire.gotoAndStop(random(15) + 1);
anim.fire._rotation = random(9) - 4;
anim.fire._visible = true;
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se1.play();
}
} else if (anim.fire._visible == true) {
anim.fire._visible = false;
}
if (anim._currentframe == 50) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(31);
}
}
}
if (enty == 6) {
if (anim._currentframe == 57) {
anim.stop();
if (deadcou == 150) {
smoAtt(_x - 28, _y - 24, 100, _y, 100);
}
deadcou--;
if (deadcou <= 0) {
er4cou--;
er[dapos] = false;
removeMovieClip();
enArray.splice(x, 1);
}
}
if (anim._currentframe == 56) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(40);
}
}
if (anim._currentframe == 43) {
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se2.play();
}
}
}
if (enty == 7) {
if (anim._currentframe == 58) {
anim.stop();
if (deadcou == 150) {
smoAtt(_x + 47, _y - 22, 100, _y, 100);
}
deadcou--;
if (deadcou <= 0) {
er4cou--;
er[dapos] = false;
removeMovieClip();
enArray.splice(x, 1);
}
}
if ((((((((anim._currentframe == 41) || (anim._currentframe == 43)) || (anim._currentframe == 45)) || (anim._currentframe == 47)) || (anim._currentframe == 49)) || (anim._currentframe == 51)) || (anim._currentframe == 53)) || (anim._currentframe == 55)) {
anim.fire.gotoAndStop(random(15) + 1);
anim.fire._rotation = random(9) - 4;
anim.fire._visible = true;
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se1.play();
}
} else if (anim.fire._visible == true) {
anim.fire._visible = false;
}
if (anim._currentframe == 56) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(21);
}
}
}
if (enty == 8) {
if (anim._currentframe == 51) {
anim.stop();
if (deadcou == 150) {
smoAtt(_x - 37, _y - 37, 100, _y, 100);
}
deadcou--;
if (deadcou <= 0) {
er4cou--;
er[dapos] = false;
removeMovieClip();
enArray.splice(x, 1);
}
}
if (anim._currentframe == 50) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(31);
}
}
if (anim._currentframe == 32) {
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se3.play();
}
}
}
if (enty == 9) {
if (anim._currentframe == 49) {
anim.stop();
if (deadcou == 150) {
smoAtt(_x - 37, _y - 37, 100, _y, 100);
}
deadcou--;
if (deadcou <= 0) {
er4cou--;
er[dapos] = false;
removeMovieClip();
enArray.splice(x, 1);
}
}
if (anim._currentframe == 48) {
anim.stop();
rescou++;
if (rescou > resmax) {
rescou = 0;
resmax = random(15) + 15;
anim.gotoAndPlay(21);
}
}
if (anim._currentframe == 22) {
_root.basehealth = _root.basehealth - damage;
if (_root.soundvar == true) {
_root.se3.play();
}
}
}
}
if (tool4used == true) {
if ((((_y < (tooly4 + 80)) && (_y > (tooly4 - 60))) && (_x < ((toolx4 - tool4gpx) + 90))) && (_x > ((toolx4 - tool4gpx) - 90))) {
hitEnemy(gp.gec.en[enArray[x]], to4dam[dlev], 2);
}
}
}
}
paa = false;
}
function scrollgp() {
if (tmdrag == false) {
if ((_xmouse < 700) && (_xmouse > 0)) {
gp._x = gp._x - ((gp._x + _xmouse) * 0.5);
bf._x = bf._x - ((bf._x + (_xmouse * 0.9)) * 0.5);
bt._x = bt._x - ((bt._x + (_xmouse * 0.8)) * 0.5);
}
} else {
gp._x = gp._x - ((gp._x + 700) * 0.5);
bf._x = bf._x - ((bf._x + 630) * 0.5);
bt._x = bt._x - ((bt._x + 560) * 0.5);
}
}
function toolFunc() {
if (tooluse1 == true) {
if (toolcou1 == 0) {
toolx1 = tmo._x;
tooly1 = tmo._y;
tool1gpx = gp._x;
}
toolcou1++;
if ((toolcou1 % 20) == 0) {
fintool1y = (tooly1 - random(80)) + 40;
enDepth = makeDepth(fintool1y, true);
expArr.push("gexp" + enDepth);
expOb = gp.gec.en.attachMovie("gexp", "gexp" + enDepth, enDepth, {_xscale:75, _yscale:75, _x:(toolx1 - tool1gpx) - (random(200) - 100), _y:fintool1y});
expOb.remtim = 0;
expOb.typ = 1;
expOb.dam = to1dam[dlev];
if (soundvar == true) {
ssexp.play();
}
} else if (toolcou1 >= tlmax1[tlev]) {
tooluse = false;
t2.cross.gotoAndStop(1);
t3.cross.gotoAndStop(1);
t4.cross.gotoAndStop(1);
tooluse1 = false;
toolcou1 = 0;
toolx1 = 0;
tooly1 = 0;
tool1gpx = 0;
fintool1y = 0;
}
}
if (tooluse2 == true) {
if (toolcou2 == 0) {
toolx2 = tmo._x;
tooly2 = tmo._y;
tool2gpx = gp._x;
}
toolcou2++;
if ((toolcou2 % 30) == 0) {
fintool2y = (tooly2 - random(80)) + 40;
enDepth = makeDepth(fintool2y, true);
expArr.push("gexp" + enDepth);
fintool2x = (toolx2 - tool2gpx) - (random(200) - 100);
expOb = gp.gec.en.attachMovie("gexp", "gexp" + enDepth, enDepth, {_xscale:85, _yscale:85, _x:fintool2x, _y:fintool2y, _rotation:-(random(6) + 10)});
expOb.typ = 3;
expOb.dam = to2dam[dlev];
exp = gp.gec.ex.attachMovie("exp", "exp", gp.gec.ex.getNextHighestDepth());
exp._xscale = 45;
exp._yscale = 45;
exp._x = fintool2x;
exp._y = fintool2y;
exp.gotoAndPlay(1);
exp.anim.gotoAndStop(random(3) + 1);
if (soundvar == true) {
slexp.play();
}
expOb.remtim = 0;
} else if (toolcou2 >= tlmax2[tlev]) {
tooluse2 = false;
t1.cross.gotoAndStop(1);
t3.cross.gotoAndStop(1);
t4.cross.gotoAndStop(1);
tooluse = false;
toolcou2 = 0;
toolx2 = 0;
tooly2 = 0;
tool2gpx = 0;
fintool2y = 0;
}
}
if (tooluse3 == true) {
if (toolx3 == 0) {
toolorix3 = tmo._x - tlmax3[tlev];
toolx3 = tmo._x + tlmax3[tlev];
tooly3 = tmo._y;
tool3gpx = gp._x;
}
toolcou3++;
if ((toolcou3 > 40) && ((toolcou3 % 2) == 0)) {
fintool3y = (tooly3 - random(40)) + 20;
enDepth = makeDepth(fintool3y, true);
expArr.push("gexp" + enDepth);
expOb = gp.gec.en.attachMovie("gexp", "gexp" + enDepth, enDepth, {_xscale:75, _yscale:75, _y:fintool3y, _x:toolx3 - tool3gpx});
expOb.typ = 2;
expOb.remtim = 0;
expOb.dam = to3dam[dlev];
toolx3 = toolx3 - (random(10) + 18);
if (soundvar == true) {
ssexp.play();
}
} else if (toolx3 <= toolorix3) {
tooluse3 = false;
tooluse = false;
t1.cross.gotoAndStop(1);
t2.cross.gotoAndStop(1);
t4.cross.gotoAndStop(1);
toolcou3 = 0;
toolx3 = 0;
toolorix3 = 0;
tooly3 = 0;
tool3gpx = 0;
}
}
if (tool4used == true) {
tool4used = false;
toolcou4 = 0;
toolx4 = 0;
tooly4 = 0;
tool4gpx = 0;
fintool4y = 0;
}
if (tooluse4 == true) {
if (toolcou4 == 0) {
toolx4 = tmo._x;
tooly4 = tmo._y;
tool4gpx = gp._x;
}
toolcou4++;
if (toolcou4 > 40) {
if (graphicsvar == true) {
if (soundvar == true) {
sbigbomb.play();
}
x = 0;
while (x < 20) {
fintool4y = (tooly4 - random(80)) + 40;
fintool4x = (toolx4 - tool4gpx) - (random(160) - 80);
exp = gp.gec.ex.attachMovie("exp", "exp", gp.gec.ex.getNextHighestDepth());
exp._xscale = 60;
exp._yscale = 60;
exp._x = fintool4x;
exp._y = fintool4y;
exp.gotoAndPlay(1);
exp.anim.gotoAndStop(random(3) + 1);
expOb.remtim = 0;
x++;
}
} else {
x = 0;
while (x < 15) {
fintool4y = (tooly4 - random(80)) + 40;
fintool4x = (toolx4 - tool4gpx) - (random(160) - 80);
exp = gp.gec.ex.attachMovie("exp", "exp", gp.gec.ex.getNextHighestDepth());
exp._xscale = 60;
exp._yscale = 60;
exp._x = fintool4x;
exp._y = fintool4y;
exp.gotoAndPlay(1);
exp.anim.gotoAndStop(random(3) + 1);
expOb.remtim = 0;
x++;
}
}
tool4used = true;
tool4shake = true;
tooluse4 = false;
tooluse = false;
t1.cross.gotoAndStop(1);
t2.cross.gotoAndStop(1);
t3.cross.gotoAndStop(1);
}
}
if (tool4shake == true) {
tool4shacou++;
if (tool4shacou < 10) {
tool4shaam = tool4shaam - 0.2;
_x = (random(tool4shaam) - (tool4shaam * 0.5));
_y = (random(tool4shaam) - (tool4shaam * 0.5));
} else {
_x = 0;
_y = 0;
tool4shaam = 5;
tool4shacou = 0;
tool4shake = false;
}
}
if ((((tool1 == true) || (tool2 == true)) || (tool3 == true)) || (tool4 == true)) {
tmo._x = tmo._x - ((tmo._x - _xmouse) * 0.5);
if (_xmouse < 25) {
tmo._x = 25;
}
if (_xmouse > 500) {
tmo._x = 500;
}
if (_ymouse > 215) {
tmo._y = tmo._y - ((tmo._y - _ymouse) * 0.5);
} else {
tmo._y = 215;
}
if (_ymouse > 345) {
tmo._y = 345;
}
}
x = 1;
while (x < 5) {
if (_root[("t" + x) + "cur"] > 0) {
_root[("t" + x) + "cur"]--;
tempres2 = _root[("to" + x) + "res"];
_root["t" + x].anim._xscale = (_root[("t" + x) + "cur"] / tempres2[rlev]) * 100;
}
if (((((_root["t" + x]._x - 20) < _xmouse) && ((_root["t" + x]._x + 20) > _xmouse)) && ((_root["t" + x]._y - 20) < _ymouse)) && ((_root["t" + x]._y + 20) > _ymouse)) {
_root["t" + x].roll._visible = true;
} else {
_root["t" + x].roll._visible = false;
}
x++;
}
}
function rifleFunc() {
if (shootready < ((4 + slev) * 3)) {
shootready++;
}
if (rifle._xscale > 100) {
rifle._xscale = rifle._xscale - (5 - (slev * 0.5));
rifle._yscale = rifle._yscale - (5 - (slev * 0.5));
}
if ((rifleaway == false) && (rifletrans == false)) {
if (_ymouse > 100) {
rifle._y = rifle._y + ((_ymouse - rifle._y) * 0.9);
} else {
rifle._y = 100;
}
rifle._x = rifle._x + ((_xmouse - rifle._x) * 0.9);
}
if ((rifleaway == true) && (rifletrans == true)) {
rifle._rotation = rifle._rotation - ((90 + rifle._rotation) * 0.4);
rifle._x = rifle._x + ((-400 - rifle._x) * 0.3);
rifle._y = rifle._y + ((700 - rifle._y) * 0.3);
if ((rifle._x < -390) && (rifle._y > 690)) {
rifle._x = -400;
rifle._y = 700;
rifletrans = false;
rifle._visible = false;
}
}
if ((rifleaway == false) && (rifletrans == true)) {
rifle._visible = true;
if (_ymouse > 100) {
rifletransy = _ymouse;
} else {
rifletransy = 100;
}
rifle._rotation = rifle._rotation - ((0 + rifle._rotation) * 0.4);
rifle._y = rifle._y + ((rifletransy - rifle._y) * 0.3);
rifle._x = rifle._x + ((_xmouse - rifle._x) * 0.3);
if ((((rifle._x > (_xmouse - 5)) && (rifle._x < (_xmouse + 5))) && (rifle._y > (rifletransy - 5))) && (rifle._y < (rifletransy + 5))) {
rifle._rotation = 0;
rifletrans = false;
}
}
if (((rifleaway == true) || (rifle._alpha == 50)) || (_ymouse < 90)) {
Mouse.show();
} else {
Mouse.hide();
}
if (_ymouse > 400) {
rifle._alpha = 50;
} else if (_ymouse > 54) {
rifle._alpha = 100;
}
}
function rifleShoot() {
if ((((((((mdvar == true) && (p == false)) && (rifle._alpha != 50)) && (tool1 == false)) && (tool2 == false)) && (tool3 == false)) && (tool4 == false)) && (shootready >= ((4 + slev) * 3))) {
gbyran = (1 + random(18 / slev)) - (9 / slev);
gbxran = (1 + random(18 / slev)) - (9 / slev);
shotxpos = rifle._x + gbxran;
shotypos = rifle._y + gbyran;
rifle._xscale = 120;
rifle._yscale = 120;
rifle._y = rifle._y - 5;
if (soundvar == true) {
_root["rs" + slev].play();
}
for (x in enArray) {
with (gp.gec.en[enArray[x]]) {
if (((((health > 0) && ((((gp.gec.en[enArray[x]]._x + hit._x) + gp._x) - (hit._width * 0.5)) < shotxpos)) && ((((_x + hit._x) + gp._x) + (hit._width * 0.5)) > shotxpos)) && (((_y + hit._y) - (hit._height * 0.5)) < shotypos)) && (((_y + hit._y) + (hit._height * 0.5)) > shotypos)) {
shotArr.push(dep);
shothit = true;
}
}
}
if (shothit == false) {
enDepth = makeDepth(shotypos, true);
if ((shotypos > 160) && (shotypos < 400)) {
if (graphicsvar == true) {
gp.gec.en.attachMovie("gb", "gb", enDepth, {_x:shotxpos - gp._x, _y:shotypos, _xscale:50, _yscale:50});
}
}
} else {
hitEnemy(gp.gec.en["en_" + maxValue(shotArr)], (_root["ammodam" + blev] * 3) + (slev * 3), 1);
}
shotArr = [];
shothit = false;
shootready = 0;
}
}
function smoAtt(ob1, ob2, ob3, ob4, ob5) {
if (graphicsvar == true) {
enDepth = makeDepth(ob4, true);
smoArr.push("smoke" + enDepth);
gp.gec.en.attachMovie("smoke", "smoke" + enDepth, enDepth, {_x:ob1, _y:ob2, _xscale:ob3, _yscale:ob3, _alpha:ob5});
}
}
function smoFunc() {
for (x in smoArr) {
with (gp.gec.en[smoArr[x]]) {
if (((_root.gp._x + _x) < -50) || ((_root.gp._x + _x) > 750)) {
_visible = false;
} else {
_visible = true;
}
if (p == true) {
stop();
} else {
play();
}
if (_currentframe == _totalframes) {
removeMovieClip();
smoArr.splice(x, 1);
}
}
}
}
function expFunc() {
for (x in expArr) {
with (gp.gec.en[expArr[x]]) {
for (x in enArray) {
if (_currentframe == 1) {
if (gp.gec.en[enArray[x]].enty <= 4) {
if (((((gp.gec.en[enArray[x]].health > 0) && (((gp.gec.en[enArray[x]]._x + gp.gec.en[enArray[x]].hit._x) - gp.gec.en[enArray[x]].hit._width) < _x)) && (((gp.gec.en[enArray[x]]._x + gp.gec.en[enArray[x]].hit._x) + gp.gec.en[enArray[x]].hit._width) > _x)) && (((gp.gec.en[enArray[x]]._y + gp.gec.en[enArray[x]].hit._y) - gp.gec.en[enArray[x]].hit._height) < _y)) && (((gp.gec.en[enArray[x]]._y + gp.gec.en[enArray[x]].hit._y) + gp.gec.en[enArray[x]].hit._height) > _y)) {
hitEnemy(gp.gec.en[enArray[x]], dam, 2);
}
} else if (gp.gec.en[enArray[x]].enty >= 5) {
if (((((gp.gec.en[enArray[x]].health > 0) && (((gp.gec.en[enArray[x]]._x + gp.gec.en[enArray[x]].hit._x) - (gp.gec.en[enArray[x]].hit._width * 0.5)) < _x)) && (((gp.gec.en[enArray[x]]._x + gp.gec.en[enArray[x]].hit._x) + (gp.gec.en[enArray[x]].hit._width * 0.5)) > _x)) && (((gp.gec.en[enArray[x]]._y + gp.gec.en[enArray[x]].hit._y) - (gp.gec.en[enArray[x]].hit._height * 0.5)) < _y)) && (((gp.gec.en[enArray[x]]._y + gp.gec.en[enArray[x]].hit._y) + (gp.gec.en[enArray[x]].hit._height * 0.5)) > _y)) {
hitEnemy(gp.gec.en[enArray[x]], dam, 2);
}
}
}
}
if (_currentframe == 30) {
stop();
remtim++;
} else {
if (_root.p == true) {
stop();
}
if (_root.p == false) {
play();
}
}
if (remtim >= 50) {
removeMovieClip();
expArr.splice(x, 1);
}
}
}
}
function hitEnemy(enemy, damage, type) {
if ((enemy.bar._visible == false) && (enemy.health > 0)) {
enemy.bar._visible = true;
}
if ((enemy.health - damage) <= 0) {
enemy.bar._visible = false;
}
enemy.health = enemy.health - damage;
enemy.bar.anim._xscale = enemy.health * enemy.makebar;
if (enemy.health <= 0) {
en_alive = en_alive - enemy.eav;
enemy.eav = 0;
expvar = expvar + enemy.expam;
if (enemy.enty == 1) {
if (type == 1) {
enemy.anim.gotoAndPlay("die" + (random(3) + 1));
} else {
enemy.anim.gotoAndPlay("die" + (random(2) + 4));
}
} else if (enemy.enty == 3) {
enemy.anim.gotoAndPlay("die" + (random(3) + 1));
} else if (enemy.enty == 2) {
if (enemy.mov == true) {
enemy.anim.gotoAndPlay("die" + (random(2) + 1));
} else {
enemy.anim.gotoAndPlay("die3");
}
} else if (enemy.enty == 4) {
enemy.anim.gotoAndPlay("die" + (random(2) + 1));
} else if (enemy.enty >= 5) {
o = 0;
while (o <= enemy.enty) {
exp = gp.gec.ex.attachMovie("exp", "exp", gp.gec.ex.getNextHighestDepth());
exp._xscale = 50;
exp._yscale = 50;
exp._x = enemy._x - (random(enemy.hit._width * 0.5) - (enemy.hit._width * 0.25));
exp._y = enemy._y - random(enemy.hit._height);
exp.gotoAndPlay(1);
exp.anim.gotoAndStop(random(3) + 1);
if (soundvar == true) {
slexp.play();
ssexp.play();
}
o++;
}
if (enemy.enty == 5) {
enemy.anim.gotoAndPlay("die1");
}
if (enemy.enty > 5) {
enemy.anim.gotoAndStop("die1");
}
}
enemy.mov = false;
}
}
function makeDepth(ob1, ob2) {
if (ob2 == true) {
mdypos1 = ob1;
mdypos1 = mdypos1 / 20;
mdypos1 = Math.round(mdypos1);
mdypos1 = mdypos1 * 20;
} else {
mdypos1 = ob1;
}
enDepth = ((((mdypos1 - 160) * 0.1) - 1) * 100000) + endepth[((mdypos1 - 160) * 0.1) - 1];
endepth[((mdypos1 - 160) * 0.1) - 1] = endepth[((mdypos1 - 160) * 0.1) - 1] + 1;
return(enDepth);
}
function maxValue(array) {
mva = array.length;
mxm = array[0];
i = 0;
while (i < mva) {
if (array[i] > mxm) {
mxm = array[i];
}
i++;
}
return(mxm);
}
stop();
_quality = "medium";
uc.stop();
t1.stop();
t2.stop();
t3.stop();
t4.stop();
t1.roll._visible = false;
t2.roll._visible = false;
t3.roll._visible = false;
t4.roll._visible = false;
t1.cross.stop();
t2.cross.stop();
t3.cross.stop();
t4.cross.stop();
var ti1 = 0;
var ti2 = 0;
var ti3 = 0;
var ti4 = 0;
t1.anim._xscale = 0;
t2.anim._xscale = 0;
t3.anim._xscale = 0;
t4.anim._xscale = 0;
var t1cur = 0;
var t2cur = 0;
var t3cur = 0;
var t4cur = 0;
var gccou = 0;
var gcvar = false;
rifle.stop();
var paa = false;
var p = false;
var er = new Array(false, 20, false, 40, false, 60, false, 80, false, 100, false, 120, false, 140, false, 160, false, 180, false, 200, false, 220, false, 240);
var erpos = new Array();
var endepth = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var enArray = new Array();
var enOb = new Object();
var enDepth = null;
var depthypos = null;
var trdrag = false;
var entype = 0;
var scrollspe = 0;
var options = false;
var upgrade = false;
var er4cou = 0;
var en_alive = 0;
var dcost1 = 300;
var dcost2 = 800;
var dcost3 = 2000;
var tcost1 = 250;
var tcost2 = 800;
var tcost3 = 1800;
var rcost1 = 250;
var rcost2 = 500;
var rcost3 = 800;
var acost1 = 200;
var acost2 = 400;
var acost3 = 800;
var hcost1 = 200;
var hcost2 = 600;
var hcost3 = 1600;
var bcost1 = 200;
var bcost2 = 800;
var bcost3 = 2000;
var scost1 = 200;
var scost2 = 800;
var scost3 = 1600;
var tuprice1 = 50;
var tuprice2 = 100;
var tuprice3 = 200;
var tuprice4 = 400;
var tuprice5 = 800;
var tuprice6 = 2000;
var dcostu1 = false;
var dcostu2 = false;
var dcostu3 = false;
var tcostu1 = false;
var tcostu2 = false;
var tcostu3 = false;
var rcostu1 = false;
var rcostu2 = false;
var rcostu3 = false;
var acostu1 = false;
var acostu2 = false;
var acostu3 = false;
var hcostu1 = false;
var hcostu2 = false;
var hcostu3 = false;
var bcostu1 = false;
var bcostu2 = false;
var bcostu3 = false;
var scostu1 = false;
var scostu2 = false;
var scostu3 = false;
var dlev = 1;
var tlev = 1;
var rlev = 1;
var alev = 1;
var hlev = 1;
var blev = 1;
var slev = 1;
gp.ba.stop();
tm.stop();
tm._visible = false;
uc.tu1.gotoAndStop(1);
uc.tu2.gotoAndStop(2);
uc.tu3.gotoAndStop(3);
uc.tu4.gotoAndStop(4);
uc.tu5.gotoAndStop(5);
uc.tu6.gotoAndStop(6);
var tmdrag = false;
var tudrag = false;
var tcLev1 = 1;
var tcLev2 = 1;
var tcLev3 = 1;
var tdam = new Array(0, 0, 0.3, 0.7, 4, 7, 11, 25);
var tran = new Array(0, 0, 400, 450, 500, 550, 600, 650);
var tspe = new Array(0, 0, 4, 5, 20, 30, 45, 80);
var to1dam = new Array(0, 8, 15, 20, 25);
var to2dam = new Array(0, 10, 20, 30, 40);
var to3dam = new Array(0, 5, 10, 15, 20);
var to4dam = new Array(0, 25, 40, 80, 150);
var to1res = new Array(0, 750, 650, 550, 450);
var to2res = new Array(0, 875, 800, 725, 650);
var to3res = new Array(0, 1000, 900, 800, 700);
var to4res = new Array(0, 1300, 1200, 1100, 1000);
var tempres;
var tempres2;
var tlmax1 = new Array(0, 100, 200, 300, 400);
var tlmax2 = new Array(0, 120, 180, 240, 300);
var tlmax3 = new Array(0, 200, 250, 300, 350);
var alev = 1;
var lvluped = false;
var spawncou = 0;
var spawntime = 0;
var tshocou1 = 0;
var tshocou2 = 0;
var tshocou3 = 0;
var tshoche1 = false;
var tshoche2 = false;
var tshoche3 = false;
var xpr = null;
var ypr = null;
var nearen1 = new Object();
nearen1.Distance = 1000000 /* 0x0F4240 */;
var nearen2 = new Object();
nearen2.Distance = 1000000 /* 0x0F4240 */;
var nearen3 = new Object();
nearen3.Distance = 1000000 /* 0x0F4240 */;
var tool1 = false;
var tool2 = false;
var tool3 = false;
var tool4 = false;
var tooluse = false;
var tooluse1 = false;
var tooluse2 = false;
var tooluse3 = false;
var tooluse4 = false;
var toolcou1 = 0;
var toolx1 = 0;
var tooly1 = 0;
var tool1gpx = 0;
var fintool1y = 0;
var toolcou2 = 0;
var toolx2 = 0;
var tooly2 = 0;
var tool2gpx = 0;
var fintool2y = 0;
var toolcou3 = 0;
var toolx3 = 0;
var toolorix3 = 0;
var tooly3 = 0;
var tool3gpx = 0;
var toolcou4 = 0;
var toolx4 = 0;
var tooly4 = 0;
var tool4gpx = 0;
var fintool4y = 0;
var tool4used = false;
var tool4shake = false;
var tool4shaam = 5;
var tool4shacou = 0;
var eleva0 = new Array(1);
var eleva1 = new Array(50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var eleva2 = new Array(40, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2);
var eleva3 = new Array(40, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 2, 2);
var eleva4 = new Array(25, 3, 1, 2, 3, 1, 2, 3, 1, 2, 2, 2, 2, 2, 1, 1, 2, 3, 1, 1, 2, 2, 2, 2, 3, 3, 2, 1);
var eleva5 = new Array(35, 4, 1, 2, 3, 4, 2, 1, 4, 2, 2, 1, 4, 4, 1, 2, 3, 4, 2, 2, 3, 4, 4, 4, 1, 2, 2, 2, 1, 2, 3, 2);
var eleva6 = new Array(17, 3, 4, 1, 2, 4, 2, 3, 1, 2, 3, 1, 4, 3, 1, 2, 3, 4, 2, 2, 2, 5, 2, 1, 4, 2, 3, 1, 5, 4, 2, 2, 2, 5, 4, 4, 3, 5, 5, 5);
var eleva7 = new Array(20, 1, 2, 3, 4, 3, 5, 2, 3, 1, 2, 4, 5, 1, 2, 2, 3, 2, 1, 2, 3, 1, 2, 5, 5, 1, 2, 3, 5, 1, 2, 5, 1, 4, 5, 2, 2, 1, 5, 1, 2, 4, 5, 1, 2, 4, 5, 1, 2);
var eleva8 = new Array(30, 5, 5, 3, 2, 1, 2, 3, 4, 5, 2, 1, 2, 3, 4, 1, 2, 3, 5, 6, 1, 2, 4, 5, 2, 3, 5, 6, 2, 3, 2, 4, 5, 4, 3, 2, 3, 4, 5, 5, 4, 4, 3, 1, 2, 1, 2, 2, 3, 5, 5, 5, 6, 6);
var eleva9 = new Array(40, 1, 5, 2, 3, 1, 2, 6, 4, 5, 6, 1, 2, 2, 3, 2, 1, 2, 3, 6, 1, 2, 5, 5, 6, 1, 2, 6, 3, 5, 1, 2, 5, 6, 1, 4, 5, 6, 2, 6, 2, 1, 6, 5, 1, 2, 4, 5, 6, 1, 2, 4, 6, 5, 1, 2, 6, 6, 6);
var eleva10 = new Array(40, 1, 2, 3, 1, 2, 3, 4, 3, 1, 5, 5, 5, 6, 6, 1, 1, 2, 3, 1, 2, 3, 4, 5, 2, 1, 2, 3, 1, 2, 6, 6, 6, 4, 5, 5, 5, 3, 3, 2, 1, 2, 3, 4, 2, 2, 1, 2, 3, 5, 6, 6, 6, 5, 5, 6, 6, 6, 5, 5, 6, 6, 5, 5, 7);
var eleva11 = new Array(40, 5, 5, 1, 2, 3, 4, 2, 2, 3, 1, 2, 6, 5, 5, 6, 1, 2, 3, 1, 2, 4, 2, 1, 2, 6, 5, 6, 7, 7, 5, 1, 2, 3, 1, 2, 3, 2, 1, 6, 6, 6, 7, 7, 6, 1, 1, 2, 3, 5, 1, 2, 3, 6, 1, 1, 5, 1, 2, 5, 1, 2, 5, 6, 5, 5, 4, 5, 7, 7);
var eleva12 = new Array(30, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 5, 6, 7, 5, 6, 7, 1, 2, 3, 1, 5, 6, 5, 1, 5, 4, 4, 1, 5, 6, 1, 2, 5, 6, 4, 1, 2, 2, 1, 2, 2, 1, 2, 1, 7, 7, 6, 6, 1, 2, 3, 5, 6, 7, 6, 7, 1, 2, 6, 7, 6, 7, 1, 2, 6, 7, 6, 7, 5);
var eleva13 = new Array(40, 1, 2, 5, 1, 2, 5, 6, 1, 2, 5, 4, 1, 2, 6, 5, 1, 4, 5, 6, 1, 2, 5, 6, 1, 1, 2, 3, 1, 2, 3, 2, 1, 2, 2, 6, 5, 1, 5, 2, 6, 7, 6, 1, 5, 2, 2, 1, 2, 2, 6, 5, 1, 2, 6, 5, 1, 2, 4, 5, 5, 4, 1, 2, 2, 5, 6, 7, 8, 8, 1, 1, 3, 5, 4, 1, 2, 1, 8);
var eleva14 = new Array(40, 2, 3, 1, 2, 3, 4, 5, 2, 2, 1, 5, 6, 7, 1, 2, 4, 6, 1, 2, 3, 5, 4, 2, 6, 5, 6, 7, 7, 6, 5, 6, 1, 2, 2, 3, 1, 2, 3, 1, 2, 3, 6, 6, 7, 8, 6, 5, 6, 7, 8, 8, 1, 2, 3, 4, 5, 6, 1, 2, 4, 1, 1, 2, 3, 4, 2, 2, 1, 2, 3, 2, 1, 4, 5, 5, 6, 6, 7, 7, 8, 8, 8);
var eleva15 = new Array(50, 1, 2, 2, 2, 3, 5, 2, 2, 1, 2, 3, 3, 5, 2, 1, 1, 2, 4, 2, 1, 2, 3, 5, 2, 1, 2, 3, 2, 1, 2, 5, 5, 1, 5, 5, 1, 3, 5, 5, 2, 5, 3, 5, 5, 5, 5, 3, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 8, 8, 8, 1, 1, 2, 3, 2, 8, 8, 8, 8, 7, 8, 7, 8, 1, 2, 1, 2, 8, 1, 5, 4, 9);
var eleva16 = new Array(40, 1, 2, 3, 1, 4, 5, 6, 5, 1, 2, 3, 5, 6, 2, 3, 4, 5, 6, 1, 3, 2, 4, 6, 5, 7, 5, 1, 2, 3, 4, 1, 5, 1, 1, 2, 3, 2, 1, 3, 2, 5, 1, 2, 3, 5, 1, 2, 5, 1, 2, 5, 1, 2, 5, 1, 7, 7, 8, 8, 8, 9, 9, 1, 2, 2, 3, 1, 6, 4, 1, 5, 4, 1, 7, 8, 8, 8, 8, 9, 9, 9, 1, 2, 2, 1, 1, 2, 1, 1, 1, 5);
var eleva17 = new Array(50, 1, 2, 3, 1, 4, 5, 7, 6, 8, 2, 6, 1, 1, 5, 4, 6, 7, 3, 4, 5, 6, 7, 3, 2, 4, 5, 6, 7, 5, 2, 4, 6, 7, 5, 4, 7, 8, 5, 4, 3, 7, 1, 7, 8, 6, 8, 7, 5, 2, 1, 1, 1, 1, 2, 3, 1, 2, 3, 1, 5, 5, 5, 5, 5, 8, 9, 8, 9, 8, 9, 8, 9, 1, 2, 1, 4, 6, 8, 9, 8, 7, 6, 5, 6, 7, 7, 8, 7, 6, 5, 3, 1, 1, 1, 5);
var eleva18 = new Array(60, 1, 6, 2, 4, 4, 3, 2, 3, 5, 6, 1, 2, 5, 3, 5, 4, 5, 6, 7, 5, 4, 3, 7, 6, 5, 8, 9, 4, 5, 6, 7, 2, 3, 2, 1, 2, 3, 4, 7, 1, 8, 9, 1, 2, 3, 4, 4, 3, 2, 8, 7, 6, 7, 5, 6, 7, 8, 1, 2, 3, 4, 3, 2, 9, 8, 1, 2, 3, 3, 3, 2, 7, 8, 8, 9, 1, 8, 1, 2, 2, 9, 1, 1, 1, 1, 1, 2, 3, 2, 3, 4, 2, 2, 3, 2, 2, 3, 5, 5, 5, 5, 5, 1, 2, 5, 5, 8, 9, 9);
var eleva19 = new Array(60, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 4, 3, 7, 6, 5, 8, 9, 4, 5, 6, 7, 5, 4, 3, 7, 6, 5, 8, 9, 4, 5, 6, 7, 3, 7, 1, 7, 8, 6, 8, 7, 5, 2, 1, 1, 1, 2, 3, 1, 2, 3, 2, 1, 2, 3, 3, 2, 1, 8, 8, 8, 9, 9, 9, 8, 8, 1, 2, 3, 1, 2, 4, 6, 6, 5, 2, 1, 1, 1, 1, 2, 3, 1, 2, 3, 1, 5, 5, 5, 5, 5, 8, 9, 8);
var eleva20 = new Array(60, 1, 2, 3, 5, 6, 2, 3, 4, 5, 6, 1, 3, 2, 4, 6, 5, 7, 5, 1, 2, 3, 1, 2, 3, 5, 6, 2, 3, 4, 5, 6, 1, 3, 2, 4, 6, 5, 7, 5, 1, 2, 3, 1, 2, 3, 5, 6, 2, 3, 4, 5, 6, 1, 3, 2, 4, 6, 5, 7, 5, 1, 2, 3, 2, 3, 1, 2, 3, 4, 8, 9, 5, 8, 9, 9, 8, 5, 5, 8, 9, 8, 9, 1, 2, 2, 3, 1, 2, 3, 4, 1, 2, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5);
var curleva = new Array();
if (tutvar == false) {
if (gameloadv == true) {
var curlevel = savear[7];
tutcont._visible = false;
curleva = [];
} else {
var curlevel = 0;
tutcont._visible = false;
curleva = [];
}
} else {
var curlevel = 0;
tutcont.gotoAndStop(2);
curleva = [1];
}
var xsom = eval("Null");
var ysom = eval("Null");
var somx = eval("Null");
var somy = eval("Null");
var rifletransy = null;
var rifletrans = true;
var rifleaway = false;
var taaob = new Object();
var tmocur;
var exp = new Object();
var smoArr = new Array();
var expArr = new Array();
var expOb = new Object();
var mdypos1 = 0;
var gbyran = 0;
var gbxran = 0;
var shotypos = 0;
var shotxpos = 0;
var shothit = false;
var shotArr = new Array();
var ammodam1 = 1;
var ammodam2 = 3;
var ammodam3 = 5;
var ammodam4 = 10;
var turtarg1 = false;
var turtarg2 = false;
var turtarg3 = false;
var tshoxdist = null;
var tshoydist = null;
var scr1v = false;
var scr2v = false;
var scr3v = false;
var expvar = 100;
var expcou = 600;
var uexpcou = 0;
var bhcou = 501;
var basehealth = 1000;
var basehealth1 = 1000;
var basehealth2 = 1750;
var basehealth3 = 3000;
var basehealth4 = 5000;
var bhaddcou = 0;
var bmb = (((bhealth.anim._xscale - basehealth) / basehealth) + 1);
var justloaded = false;
if (loadgamev == true) {
trace("game was loaded");
dlev = savear[0];
tlev = savear[1];
rlev = savear[2];
alev = savear[3];
hlev = savear[4];
blev = savear[5];
slev = savear[6];
curlevel = savear[7];
dcost1 = savear[8];
dcost2 = savear[9];
dcost3 = savear[10];
tcost1 = savear[11];
tcost2 = savear[12];
tcost3 = savear[13];
rcost1 = savear[14];
rcost2 = savear[15];
rcost3 = savear[16];
acost1 = savear[17];
acost2 = savear[18];
acost3 = savear[19];
hcost1 = savear[20];
hcost2 = savear[21];
hcost3 = savear[22];
bcost1 = savear[23];
bcost2 = savear[24];
bcost3 = savear[25];
scost1 = savear[26];
scost2 = savear[27];
scost3 = savear[28];
tcLev1 = savear[29];
tcLev2 = savear[30];
tcLev3 = savear[31];
basehealth = savear[32];
expvar = savear[33];
loadgamev = false;
justloaded = true;
}
gp.tc1.gotoAndStop(tcLev1);
gp.tc2.gotoAndStop(tcLev2);
gp.tc3.gotoAndStop(tcLev3);
rifle.gotoAndStop(slev);
var mdvar = false;
var aysvar = 0;
var aysboo = false;
var hkw = 0;
shootready = 0;
var mva = new Number();
Instance of Symbol 493 MovieClip "t1" in Frame 3
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Instance of Symbol 499 MovieClip "t2" in Frame 3
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Instance of Symbol 505 MovieClip "t3" in Frame 3
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Instance of Symbol 511 MovieClip "t4" in Frame 3
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Frame 5
delete onEnterFrame;
delete onMouseDown;
Mouse.show();
_quality = "high";
Frame 6
delete onEnterFrame;
delete onMouseDown;
Mouse.show();
_quality = "high";
Frame 7
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
var con = new ContextMenu();
con.hideBuiltInItems();
_root.menu = con;
var tutvar = true;
var loadgamev = false;
var graphicsvar = true;
var soundvar = true;
var savefile = SharedObject.getLocal("snipedown--");
savear = savefile.data.savear;
if (savefile.data.savear == undefined) {
trace("saved file is undefinded, new savear made");
var savear = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false);
}
__com_mochibot__("82de25fd", this, 10301, true);
Symbol 84 MovieClip [gb] Frame 40
this.removeMovieClip();
Symbol 98 MovieClip [exp] Frame 40
this.removeMovieClip();
Symbol 137 MovieClip Frame 31
_parent.hit._y = _parent.hit._y + 8;
_parent.hit._yscale = 60;
_parent.hit._xscale = 160;
_parent.bar._y = _parent.bar._y + 13;
Symbol 179 MovieClip Frame 33
f1.gotoAndStop(random(3) + 1);
f2.gotoAndStop(random(3) + 1);
f3.gotoAndStop(random(3) + 1);
f4.gotoAndStop(random(3) + 1);
Symbol 203 MovieClip Frame 41
f1.gotoAndStop(random(3) + 1);
f2.gotoAndStop(random(3) + 1);
f3.gotoAndStop(random(3) + 1);
f4.gotoAndStop(random(3) + 1);
Symbol 230 MovieClip Frame 31
f1.gotoAndStop(random(3) + 1);
f2.gotoAndStop(random(3) + 1);
f3.gotoAndStop(random(3) + 1);
f4.gotoAndStop(random(3) + 1);
Symbol 245 MovieClip Frame 21
f1.gotoAndStop(random(3) + 1);
f2.gotoAndStop(random(3) + 1);
f3.gotoAndStop(random(3) + 1);
f4.gotoAndStop(random(3) + 1);
Symbol 268 MovieClip [taa] Frame 90
this.removeMovieClip();
Symbol 887 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 _local26 = {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.gotoAndStop(7);
}, 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, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = 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 _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_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 = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
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 _local13 = {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, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = 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 _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
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.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 - 250;
};
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 _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();
if (!options.skip) {
_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 888 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 889 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.7 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.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_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, 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.MochiSocial.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;
while (_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" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
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 890 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 891 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 892 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
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 requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
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 LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
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 282 MovieClip Frame 2
Symbol 282 MovieClip Frame 30
stop();
Symbol 290 Button
on (press) {
getURL ("http://www.kongregate.com/?gamereferral=snipedown", "_blank");
}
on (rollOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 60
stop();
Instance of Symbol 309 MovieClip "bt1" in Symbol 316 MovieClip Frame 60
on (press) {
if (_root.menup == false) {
if (_root.savear[34] == true) {
_root.cic.play();
} else {
_parent.play();
_root.pagego = 3;
}
}
}
on (rollOver) {
if (_root.menup == false) {
_root.btn1 = false;
_root.hitb1 = true;
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.menup == false) {
_root.btn1 = false;
_root.hitb1 = true;
_root.sbclick.play();
}
}
on (rollOut) {
if (_root.menup == false) {
_root.btn1 = true;
}
}
on (dragOut) {
if (_root.menup == false) {
_root.btn1 = true;
}
}
Instance of Symbol 306 MovieClip "bt2" in Symbol 316 MovieClip Frame 60
on (press) {
if (_root.menup == false) {
if (_root.savear[34] == true) {
_parent.play();
_root.pagego = 3;
_root.loadgamev = true;
_root.tutvar = false;
} else {
trace("cannot load, no saved file");
_root.savedmsg.play();
}
}
}
on (rollOver) {
if (_root.menup == false) {
_root.btn2 = false;
_root.hitb2 = true;
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.menup == false) {
_root.btn2 = false;
_root.hitb2 = true;
_root.sbclick.play();
}
}
on (rollOut) {
if (_root.menup == false) {
_root.btn2 = true;
}
}
on (dragOut) {
if (_root.menup == false) {
_root.btn2 = true;
}
}
Instance of Symbol 303 MovieClip "bt3" in Symbol 316 MovieClip Frame 60
on (press) {
if (_root.menup == false) {
_parent.play();
_root.pagego = 3;
_root.tutvar = true;
_root.clitrain = true;
}
}
on (rollOver) {
if (_root.menup == false) {
_root.btn3 = false;
_root.hitb3 = true;
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.menup == false) {
_root.btn3 = false;
_root.hitb3 = true;
_root.sbclick.play();
}
}
on (rollOut) {
if (_root.menup == false) {
_root.btn3 = true;
}
}
on (dragOut) {
if (_root.menup == false) {
_root.btn3 = true;
}
}
Instance of Symbol 300 MovieClip "bt4" in Symbol 316 MovieClip Frame 60
on (release) {
if (_root.menup == false) {
getURL ("http://www.kongregate.com/?gamereferral=snipedown", "_blank");
}
}
on (rollOver) {
if (_root.menup == false) {
_root.btn4 = false;
_root.hitb4 = true;
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.menup == false) {
_root.btn4 = false;
_root.hitb4 = true;
_root.sbclick.play();
}
}
on (rollOut) {
if (_root.menup == false) {
_root.btn4 = true;
}
}
on (dragOut) {
if (_root.menup == false) {
_root.btn4 = true;
}
}
Symbol 316 MovieClip Frame 61
_root.starts = false;
_root.shakeAm = 16;
Symbol 316 MovieClip Frame 97
_root._x = 0;
_root._y = 0;
_root.gotoAndStop(4);
Symbol 320 MovieClip Frame 2
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 2
_root.menup = true;
_root.btn1 = true;
_root.btn2 = true;
_root.btn3 = true;
_root.btn4 = true;
Symbol 390 MovieClip Frame 14
stop();
Instance of Symbol 389 MovieClip in Symbol 390 MovieClip Frame 14
on (press) {
_root.cicgo = false;
_parent.play();
}
on (rollOver) {
_root.sbclick.play();
}
on (dragOver) {
_root.sbclick.play();
}
Instance of Symbol 384 MovieClip in Symbol 390 MovieClip Frame 14
on (press) {
_root.cicgo = true;
_parent.play();
}
on (rollOver) {
_root.sbclick.play();
}
on (dragOver) {
_root.sbclick.play();
}
Symbol 390 MovieClip Frame 28
_root.menup = false;
if (_root.cicgo == true) {
_root.btns.play();
_root.pagego = 3;
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
_root.menup = true;
_root.btn1 = true;
_root.btn2 = true;
_root.btn3 = true;
_root.btn4 = true;
Symbol 394 MovieClip Frame 26
_root.menup = false;
Symbol 418 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
f1.gotoAndStop(random(3) + 1);
f2.gotoAndStop(random(3) + 1);
f3.gotoAndStop(random(3) + 1);
f4.gotoAndStop(random(3) + 1);
Symbol 444 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 1
stop();
Symbol 475 Button
on (press) {
if (((upgrade == false) && (options == false)) && (tutvar == false)) {
opcont.gotoAndPlay(2);
p = true;
options = true;
rifletrans = true;
rifleaway = true;
x = 1;
while (x < 5) {
if (_root["tool" + x] == true) {
_root["tool" + x] = false;
tmo._y = -30;
tmo._visible = false;
_root["t" + x].gotoAndStop(1);
_root["t" + x].anim._xscale = 0;
}
x++;
}
}
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 480 Button
on (press) {
if (((upgrade == false) && (options == false)) && (tutvar == false)) {
uc.gotoAndPlay(2);
p = true;
upgrade = true;
rifletrans = true;
rifleaway = true;
x = 1;
while (x < 5) {
if (_root["tool" + x] == true) {
_root["tool" + x] = false;
tmo._y = -30;
tmo._visible = false;
_root["t" + x].gotoAndStop(1);
_root["t" + x].anim._xscale = 0;
}
x++;
}
}
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 525 MovieClip Frame 60
gotoAndPlay (30);
Symbol 530 MovieClip Frame 1
stop();
Symbol 555 Button
on (press) {
nextFrame();
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 558 Button
on (press) {
nextFrame();
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 568 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 7
_root.tutvar = false;
Symbol 571 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 2
ltcl.gotoAndPlay(_root.ltclvar);
Symbol 615 MovieClip Frame 10
stop();
Symbol 615 MovieClip Frame 19
stop();
Symbol 618 Button
on (press) {
play();
go = 1;
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 621 Button
on (press) {
play();
go = 2;
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 50
stop();
scr1.gotoAndStop(10);
scr2.gotoAndStop(10);
scr3.gotoAndStop(10);
Instance of Symbol 615 MovieClip "scr3" in Symbol 622 MovieClip Frame 50
on (press) {
_root.scr3v = true;
}
Instance of Symbol 615 MovieClip "scr2" in Symbol 622 MovieClip Frame 50
on (press) {
_root.scr2v = true;
}
Instance of Symbol 615 MovieClip "scr1" in Symbol 622 MovieClip Frame 50
on (press) {
_root.scr1v = true;
}
Symbol 622 MovieClip Frame 51
scr1.gotoAndPlay(11);
scr2.gotoAndPlay(11);
scr3.gotoAndPlay(11);
if (go == 1) {
fakemenu.gotoAndStop(2);
}
Symbol 622 MovieClip Frame 96
if (go == 1) {
_root.pagego = 2;
_root.ltclvar = fakemenu.ltcl._currentframe;
_root.gotoAndStop(4);
} else if (go == 2) {
_root.p = false;
_root.paa = true;
_root.rifletrans = true;
_root.rifleaway = false;
_root.options = false;
}
go = 0;
Symbol 756 MovieClip Frame 1
stop();
Instance of Symbol 741 MovieClip in Symbol 756 MovieClip Frame 2
on (press) {
_root.aysfunc(_root.aysvar, false);
}
on (rollOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
Instance of Symbol 745 MovieClip in Symbol 756 MovieClip Frame 2
on (press) {
_root.aysfunc(_root.aysvar, true);
}
on (rollOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
Symbol 762 Button
on (press) {
btnFunc("d", 1);
}
on (rollOver) {
btnOver(1);
}
on (dragOver) {
btnOver(1);
}
on (rollOut) {
btnOut(1);
}
on (dragOut) {
btnOut(1);
}
Symbol 763 Button
on (press) {
btnFunc("d", 2);
}
on (rollOver) {
btnOver(2);
}
on (dragOver) {
btnOver(2);
}
on (rollOut) {
btnOut(2);
}
on (dragOut) {
btnOut(2);
}
Symbol 764 Button
on (press) {
btnFunc("d", 3);
}
on (rollOver) {
btnOver(3);
}
on (dragOver) {
btnOver(3);
}
on (rollOut) {
btnOut(3);
}
on (dragOut) {
btnOut(3);
}
Symbol 765 Button
on (press) {
btnFunc("t", 1);
}
on (rollOver) {
btnOver(4);
}
on (dragOver) {
btnOver(4);
}
on (rollOut) {
btnOut(4);
}
on (dragOut) {
btnOut(4);
}
Symbol 766 Button
on (press) {
btnFunc("t", 2);
}
on (rollOver) {
btnOver(5);
}
on (dragOver) {
btnOver(5);
}
on (rollOut) {
btnOut(5);
}
on (dragOut) {
btnOut(5);
}
Symbol 767 Button
on (press) {
btnFunc("t", 3);
}
on (rollOver) {
btnOver(6);
}
on (dragOver) {
btnOver(6);
}
on (rollOut) {
btnOut(6);
}
on (dragOut) {
btnOut(6);
}
Symbol 768 Button
on (press) {
btnFunc("r", 1);
}
on (rollOver) {
btnOver(7);
}
on (dragOver) {
btnOver(7);
}
on (rollOut) {
btnOut(7);
}
on (dragOut) {
btnOut(7);
}
Symbol 769 Button
on (press) {
btnFunc("r", 2);
}
on (rollOver) {
btnOver(8);
}
on (dragOver) {
btnOver(8);
}
on (rollOut) {
btnOut(8);
}
on (dragOut) {
btnOut(8);
}
Symbol 770 Button
on (press) {
btnFunc("r", 3);
}
on (rollOver) {
btnOver(9);
}
on (dragOver) {
btnOver(9);
}
on (rollOut) {
btnOut(9);
}
on (dragOut) {
btnOut(9);
}
Symbol 771 Button
on (press) {
btnFunc("a", 1);
}
on (rollOver) {
btnOver(10);
}
on (dragOver) {
btnOver(10);
}
on (rollOut) {
btnOut(10);
}
on (dragOut) {
btnOut(10);
}
Symbol 772 Button
on (press) {
btnFunc("a", 2);
}
on (rollOver) {
btnOver(11);
}
on (dragOver) {
btnOver(11);
}
on (rollOut) {
btnOut(11);
}
on (dragOut) {
btnOut(11);
}
Symbol 773 Button
on (press) {
btnFunc("a", 3);
}
on (rollOver) {
btnOver(12);
}
on (dragOver) {
btnOver(12);
}
on (rollOut) {
btnOut(12);
}
on (dragOut) {
btnOut(12);
}
Symbol 774 Button
on (press) {
btnFunc("h", 1);
}
on (rollOver) {
btnOver(13);
}
on (dragOver) {
btnOver(13);
}
on (rollOut) {
btnOut(13);
}
on (dragOut) {
btnOut(13);
}
Symbol 775 Button
on (press) {
btnFunc("h", 2);
}
on (rollOver) {
btnOver(14);
}
on (dragOver) {
btnOver(14);
}
on (rollOut) {
btnOut(14);
}
on (dragOut) {
btnOut(14);
}
Symbol 776 Button
on (press) {
btnFunc("h", 3);
}
on (rollOver) {
btnOver(15);
}
on (dragOver) {
btnOver(15);
}
on (rollOut) {
btnOut(15);
}
on (dragOut) {
btnOut(15);
}
Symbol 777 Button
on (press) {
btnFunc("b", 1);
}
on (rollOver) {
btnOver(16);
}
on (dragOver) {
btnOver(16);
}
on (rollOut) {
btnOut(16);
}
on (dragOut) {
btnOut(16);
}
Symbol 778 Button
on (press) {
btnFunc("b", 2);
}
on (rollOver) {
btnOver(17);
}
on (dragOver) {
btnOver(17);
}
on (rollOut) {
btnOut(17);
}
on (dragOut) {
btnOut(17);
}
Symbol 779 Button
on (press) {
btnFunc("s", 3);
}
on (rollOver) {
btnOver(21);
}
on (dragOver) {
btnOver(21);
}
on (rollOut) {
btnOut(21);
}
on (dragOut) {
btnOut(21);
}
Symbol 780 Button
on (press) {
btnFunc("b", 3);
}
on (rollOver) {
btnOver(18);
}
on (dragOver) {
btnOver(18);
}
on (rollOut) {
btnOut(18);
}
on (dragOut) {
btnOut(18);
}
Symbol 781 Button
on (press) {
btnFunc("s", 2);
}
on (rollOver) {
btnOver(20);
}
on (dragOver) {
btnOver(20);
}
on (rollOut) {
btnOut(20);
}
on (dragOut) {
btnOut(20);
}
Symbol 782 Button
on (press) {
btnFunc("s", 1);
}
on (rollOver) {
btnOver(19);
}
on (dragOver) {
btnOver(19);
}
on (rollOut) {
btnOut(19);
}
on (dragOut) {
btnOut(19);
}
Symbol 783 Button
on (rollOver) {
btnOver(-1);
}
on (dragOver) {
btnOver(-1);
}
on (rollOut) {
btnOut(-1);
}
on (dragOut) {
btnOut(-1);
}
Symbol 784 Button
on (rollOver) {
btnOver(-2);
}
on (dragOver) {
btnOver(-2);
}
on (rollOut) {
btnOut(-2);
}
on (dragOut) {
btnOut(-2);
}
Symbol 785 Button
on (rollOver) {
btnOver(-3);
}
on (dragOver) {
btnOver(-3);
}
on (rollOut) {
btnOut(-3);
}
on (dragOut) {
btnOut(-3);
}
Symbol 786 Button
on (rollOver) {
btnOver(-4);
}
on (dragOver) {
btnOver(-4);
}
on (rollOut) {
btnOut(-4);
}
on (dragOut) {
btnOut(-4);
}
Symbol 787 Button
on (rollOver) {
btnOver(-5);
}
on (dragOver) {
btnOver(-5);
}
on (rollOut) {
btnOut(-5);
}
on (dragOut) {
btnOut(-5);
}
Symbol 788 Button
on (rollOver) {
btnOver(-6);
}
on (dragOver) {
btnOver(-6);
}
on (rollOut) {
btnOut(-6);
}
on (dragOut) {
btnOut(-6);
}
Symbol 789 MovieClip Frame 2
function makeUB(lev, type, exp, price1, price2, price3) {
this[type + 1].pur.gotoAndStop(2);
this[type + 2].pur.stop();
this[type + 3].pur.stop();
this[type + 4].pur.stop();
if (exp < price1) {
this[type + 2].lock.stop();
} else {
this[type + 2].lock.gotoAndStop(2);
}
if (exp < price2) {
this[type + 3].lock.stop();
} else {
this[type + 3].lock.gotoAndStop(2);
}
if (exp < price3) {
this[type + 4].lock.stop();
} else {
this[type + 4].lock.gotoAndStop(2);
}
if (lev >= 2) {
this[type + 2].pur.gotoAndStop(2);
this[type + 2].lock.gotoAndStop(2);
}
if (lev >= 3) {
this[type + 3].pur.gotoAndStop(2);
this[type + 3].lock.gotoAndStop(2);
}
if (lev == 4) {
this[type + 4].pur.gotoAndStop(2);
this[type + 4].lock.gotoAndStop(2);
}
}
tu1.gotoAndStop(1);
tu2.gotoAndStop(2);
tu3.gotoAndStop(3);
tu4.gotoAndStop(4);
tu5.gotoAndStop(5);
tu6.gotoAndStop(6);
_root.uexpcou = _root.expvar;
expm.exptext = "EXP: " + _root.expvar;
x = 1;
while (x <= 6) {
if (_root.expvar >= _root["tuprice" + x]) {
_root.uc["tu" + x].lock._visible = false;
}
x++;
}
tc1.gotoAndStop(_root.tcLev1);
tc2.gotoAndStop(_root.tcLev2);
tc3.gotoAndStop(_root.tcLev3);
makeUB(_root.dlev, "d", _root.expvar, _root.dcost1, _root.dcost2, _root.dcost3);
makeUB(_root.tlev, "t", _root.expvar, _root.tcost1, _root.tcost2, _root.tcost3);
makeUB(_root.rlev, "r", _root.expvar, _root.rcost1, _root.rcost2, _root.rcost3);
makeUB(_root.alev, "a", _root.expvar, _root.acost1, _root.acost2, _root.acost3);
makeUB(_root.hlev, "h", _root.expvar, _root.hcost1, _root.hcost2, _root.hcost3);
makeUB(_root.blev, "b", _root.expvar, _root.bcost1, _root.bcost2, _root.bcost3);
makeUB(_root.slev, "s", _root.expvar, _root.scost1, _root.scost2, _root.scost3);
Symbol 789 MovieClip Frame 61
function makeUB(lev, type, exp, price1, price2, price3) {
this[type + 1].pur.gotoAndStop(2);
this[type + 2].pur.stop();
this[type + 3].pur.stop();
this[type + 4].pur.stop();
if (exp < price1) {
this[type + 2].lock.gotoAndStop(1);
} else {
this[type + 2].lock.gotoAndStop(2);
}
if (exp < price2) {
this[type + 3].lock.gotoAndStop(1);
} else {
this[type + 3].lock.gotoAndStop(2);
}
if (exp < price3) {
this[type + 4].lock.gotoAndStop(1);
} else {
this[type + 4].lock.gotoAndStop(2);
}
if (lev >= 2) {
this[type + 2].pur.gotoAndStop(2);
this[type + 2].lock.gotoAndStop(2);
}
if (lev >= 3) {
this[type + 3].pur.gotoAndStop(2);
this[type + 3].lock.gotoAndStop(2);
}
if (lev == 4) {
this[type + 4].pur.gotoAndStop(2);
this[type + 4].lock.gotoAndStop(2);
}
}
function setUB() {
makeUB(_root.dlev, "d", _root.expvar, _root.dcost1, _root.dcost2, _root.dcost3);
makeUB(_root.tlev, "t", _root.expvar, _root.tcost1, _root.tcost2, _root.tcost3);
makeUB(_root.rlev, "r", _root.expvar, _root.rcost1, _root.rcost2, _root.rcost3);
makeUB(_root.alev, "a", _root.expvar, _root.acost1, _root.acost2, _root.acost3);
makeUB(_root.hlev, "h", _root.expvar, _root.hcost1, _root.hcost2, _root.hcost3);
makeUB(_root.blev, "b", _root.expvar, _root.bcost1, _root.bcost2, _root.bcost3);
makeUB(_root.slev, "s", _root.expvar, _root.scost1, _root.scost2, _root.scost3);
x = 1;
while (x <= 6) {
if (_root.expvar < _root["tuprice" + x]) {
_root.uc["tu" + x].lock._visible = true;
}
x++;
}
}
function btnFunc(type, number) {
_root.aysfunc(_root.aysvar, false);
if ((this[type + (number + 1)].pur._currentframe == 1) && (this[type + (number + 1)].lock._currentframe == 2)) {
if (type == "s") {
_root.rifle.gotoAndStop(number + 1);
}
if (type == "h") {
_root.basehealth = _root["basehealth" + (number + 1)] + (_root.basehealth - _root["basehealth" + _root.hlev]);
_root.bmb = ((Math.round((_root.basehealth / _root["basehealth" + (number + 1)]) * 100) - _root.basehealth) / _root.basehealth) + 1;
}
if (type == "r") {
x = 1;
while (x < 5) {
if (_root[("t" + x) + "cur"] > 0) {
_root.tempres2 = _root[("to" + x) + "res"];
_root[("t" + x) + "cur"] = Math.round(_root.tempres2[number + 1] * (_root[("t" + x) + "cur"] / _root.tempres2[_root.rlev]));
}
x++;
}
}
_root[type + "lev"] = number + 1;
_root.expvar = _root.expvar - _root[(type + "cost") + number];
if (number == 1) {
_root[(type + "cost") + 2] = _root[(type + "cost") + 2] - _root[(type + "cost") + 1];
_root[(type + "cost") + 3] = _root[(type + "cost") + 3] - _root[(type + "cost") + 1];
}
if (number == 2) {
_root[(type + "cost") + 3] = _root[(type + "cost") + 3] - _root[(type + "cost") + 2];
}
setUB();
if ((_root.expvar < _root.dcost1) && (_root.dcostu1 == true)) {
_root.dcostu1 = false;
}
if ((_root.expvar < _root.dcost2) && (_root.dcostu2 == true)) {
_root.dcostu2 = false;
}
if ((_root.expvar < _root.dcost3) && (_root.dcostu3 == true)) {
_root.dcostu3 = false;
}
if ((_root.expvar < _root.tcost1) && (_root.tcostu1 == true)) {
_root.tcostu1 = false;
}
if ((_root.expvar < _root.tcost2) && (_root.tcostu2 == true)) {
_root.tcostu2 = false;
}
if ((_root.expvar < _root.tcost3) && (_root.tcostu3 == true)) {
_root.tcostu3 = false;
}
if ((_root.expvar < _root.rcost1) && (_root.rcostu1 == true)) {
_root.rcostu1 = false;
}
if ((_root.expvar < _root.rcost2) && (_root.rcostu2 == true)) {
_root.rcostu2 = false;
}
if ((_root.expvar < _root.rcost3) && (_root.rcostu3 == true)) {
_root.rcostu3 = false;
}
if ((_root.expvar < _root.acost1) && (_root.acostu1 == true)) {
_root.acostu1 = false;
}
if ((_root.expvar < _root.acost2) && (_root.acostu2 == true)) {
_root.acostu2 = false;
}
if ((_root.expvar < _root.acost3) && (_root.acostu3 == true)) {
_root.acostu3 = false;
}
if ((_root.expvar < _root.hcost1) && (_root.hcostu1 == true)) {
_root.hcostu1 = false;
}
if ((_root.expvar < _root.hcost2) && (_root.hcostu2 == true)) {
_root.hcostu2 = false;
}
if ((_root.expvar < _root.hcost3) && (_root.hcostu3 == true)) {
_root.hcostu3 = false;
}
if ((_root.expvar < _root.bcost1) && (_root.bcostu1 == true)) {
_root.bcostu1 = false;
}
if ((_root.expvar < _root.bcost2) && (_root.bcostu2 == true)) {
_root.bcostu2 = false;
}
if ((_root.expvar < _root.bcost3) && (_root.bcostu3 == true)) {
_root.bcostu3 = false;
}
if ((_root.expvar < _root.scost1) && (_root.scostu1 == true)) {
_root.scostu1 = false;
}
if ((_root.expvar < _root.scost2) && (_root.scostu2 == true)) {
_root.scostu2 = false;
}
if ((_root.expvar < _root.scost3) && (_root.scostu3 == true)) {
_root.scostu3 = false;
}
}
}
function btnOver(number) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
if (number == -1) {
uro.tex = ("This turret costs " + _root.tuprice1) + " EXP. The most basic piece of equipment, a light machine gun.";
}
if (number == -2) {
uro.tex = ("This turret costs " + _root.tuprice2) + " EXP. A heavy machine gun that will tear through enemy infantry.";
}
if (number == -3) {
uro.tex = ("This turret costs " + _root.tuprice3) + " EXP. A light artillery weapon that is effective against light armour and infantry.";
}
if (number == -4) {
uro.tex = ("This turret costs " + _root.tuprice4) + " EXP. A fast, fairly heavy mortar/cannon that is sure to produce the desired results.";
}
if (number == -5) {
uro.tex = ("This turret costs " + _root.tuprice5) + " EXP. A high powered cannon that will bring the pain.";
}
if (number == -6) {
uro.tex = ("This turret costs " + _root.tuprice6) + " EXP. A heavy duty cannon that will shred anything in its path.";
}
if (number == 1) {
if (_root.dlev < 2) {
uro.tex = ("This upgrade costs " + _root.dcost1) + " EXP. It will increase the damage done by all of your tools.";
} else {
uro.tex = "This upgrade increases the damage done by all of your tools.";
}
}
if (number == 2) {
if (_root.dlev < 3) {
uro.tex = ("This upgrade costs " + _root.dcost2) + " EXP. It will significantly increase the damage done by all of your tools.";
} else {
uro.tex = "This upgrade significantly increases the damage done by all of your tools.";
}
}
if (number == 3) {
if (_root.dlev < 4) {
uro.tex = ("This upgrade costs " + _root.dcost3) + " EXP. It will hugely increase the damage done by all of your tools.";
} else {
uro.tex = "This upgrade hugely increases the damage done by all of your tools.";
}
}
if (number == 4) {
if (_root.tlev < 2) {
uro.tex = ("This upgrade costs " + _root.tcost1) + " EXP. It will increase the time your tools are active.";
} else {
uro.tex = "This upgrade increases the time your tools are active.";
}
}
if (number == 5) {
if (_root.tlev < 3) {
uro.tex = ("This upgrade costs " + _root.tcost2) + " EXP. It will significantly increase the time your tools are active.";
} else {
uro.tex = "This upgrade significantly increases the time your tools are active.";
}
}
if (number == 6) {
if (_root.tlev < 4) {
uro.tex = ("This upgrade costs " + _root.tcost3) + " EXP. It will hugely increase the time your tools are active.";
} else {
uro.tex = "This upgrade hugely increases the time your tools are active.";
}
}
if (number == 7) {
if (_root.rlev < 2) {
uro.tex = ("This upgrade costs " + _root.rcost1) + " EXP. It will reduce the time it takes for your tools to recharge.";
} else {
uro.tex = "This upgrade reduces the time it takes for your tools to recharge.";
}
}
if (number == 8) {
if (_root.rlev < 3) {
uro.tex = ("This upgrade costs " + _root.rcost2) + " EXP. It will significantly reduce the time it takes for your tools to recharge.";
} else {
uro.tex = "This upgrade significantly reduces the time it takes for your tools to recharge.";
}
}
if (number == 9) {
if (_root.rlev < 4) {
uro.tex = ("This upgrade costs " + _root.rcost3) + " EXP. It will hugely reduce the time it takes for your tools to recharge.";
} else {
uro.tex = "This upgrade hugely reduces the time it takes for your tools to recharge.";
}
}
if (number == 10) {
if (_root.alev < 2) {
uro.tex = ("This upgrade costs " + _root.acost1) + " EXP. It will increase the amount of repair work your engineers can carry out on your base.";
} else {
uro.tex = "This upgrade increases the amount of repair work your engineers can carry out on your base.";
}
}
if (number == 11) {
if (_root.alev < 3) {
uro.tex = ("This upgrade costs " + _root.acost2) + " EXP. It will significantly increase the amount of repair work your engineers can carry out on your base.";
} else {
uro.tex = "This upgrade significantly increases the amount of repair work your engineers can carry out on your base.";
}
}
if (number == 12) {
if (_root.alev < 4) {
uro.tex = ("This upgrade costs " + _root.acost3) + " EXP. It will greatly increase the amount of repair work your engineers can carry out on your base.";
} else {
uro.tex = "This upgrade greatly increases the amount of repair work your engineers can carry out on your base.";
}
}
if (number == 13) {
if (_root.hlev < 2) {
uro.tex = ("This upgrade costs " + _root.hcost1) + " EXP. It will increase your base's fortification.";
} else {
uro.tex = "This upgrade increases your base's fortification.";
}
}
if (number == 14) {
if (_root.hlev < 3) {
uro.tex = ("This upgrade costs " + _root.hcost2) + " EXP. It will significantly increase your base's fortification.";
} else {
uro.tex = "This upgrade significantly increases your base's fortification.";
}
}
if (number == 15) {
if (_root.hlev < 4) {
uro.tex = ("This upgrade costs " + _root.hcost3) + " EXP. It will hugely increase your base's fortification.";
} else {
uro.tex = "This upgrade hugely increases your base's fortification.";
}
}
if (number == 16) {
if (_root.blev < 2) {
uro.tex = ("This upgrade costs " + _root.bcost1) + " EXP. It will increase the damage done by your rifle.";
} else {
uro.tex = "This upgrade increases the damage done by your rifle.";
}
}
if (number == 17) {
if (_root.blev < 3) {
uro.tex = ("This upgrade costs " + _root.bcost2) + " EXP. It will significantly increase the damage done by your rifle.";
} else {
uro.tex = "This upgrade significantly increases the damage done by your rifle.";
}
}
if (number == 18) {
if (_root.blev < 4) {
uro.tex = ("This upgrade costs " + _root.bcost3) + " EXP. It will hugely increase the damage done by your rifle.";
} else {
uro.tex = "This upgrade hugely increases the damage done by your rifle.";
}
}
if (number == 19) {
if (_root.slev < 2) {
uro.tex = ("This upgrade costs " + _root.scost1) + " EXP. You will receive a more accurate and powerful rifle.";
} else {
uro.tex = "This upgrade gives you a more accurate and powerful rifle.";
}
}
if (number == 20) {
if (_root.slev < 3) {
uro.tex = ("This upgrade costs " + _root.scost2) + " EXP. You will receive a significantly more accurate and powerful rifle.";
} else {
uro.tex = "This upgrade gives you a significantly more accurate and powerful rifle.";
}
}
if (number == 21) {
if (_root.slev < 4) {
uro.tex = ("This upgrade costs " + _root.scost3) + " EXP. You will receive a hugely accurate and powerful rifle.";
} else {
uro.tex = "This upgrade gives you a hugely accurate and powerful rifle.";
}
}
if (number > 0) {
_root.trdrag = false;
_root.resettm();
}
showuro = true;
}
function btnOut(type, number) {
showuro = false;
}
function onEnterFrame() {
if (showuro == true) {
uro._visible = true;
} else {
uro._visible = false;
}
}
stop();
Instance of Symbol 721 MovieClip in Symbol 789 MovieClip Frame 61
on (press) {
_root.uc.play();
_root.resettm();
_root.uc.ays.gotoAndPlay(3);
}
on (rollOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
on (dragOver) {
if ((_root.soundvar == true) && (_root.p == false)) {
_root.sbclick.play();
}
}
Symbol 789 MovieClip Frame 112
_root.paa = true;
_root.upgrade = false;
_root.p = false;
_root.rifletrans = true;
_root.rifleaway = false;
_root.uc.gotoAndStop(1);
Symbol 800 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 1
ltcl.gotoAndPlay(_root.ltclvar);
Symbol 801 MovieClip Frame 27
stop();
Symbol 801 MovieClip Frame 50
_root.gotoAndStop(4);
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 55
_root.gotoAndStop(5);
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 55
_root.gotoAndStop(6);
Symbol 815 MovieClip Frame 1
if (_root.ltclvar != 0) {
ltcl.gotoAndPlay(_root.ltclvar);
}
_root.ltclvar = 0;
Symbol 815 MovieClip Frame 40
_root.ltclvar = ltcl._currentframe;
_root.gotoAndStop(_root.pagego);
Symbol 817 Button
on (press) {
getURL ("http://www.kongregate.com/?gamereferral=snipedown", "_blank");
}
on (rollOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
Symbol 818 Button
on (press) {
play();
}
on (rollOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
on (dragOver) {
if (_root.soundvar == true) {
_root.sbclick.play();
}
}
Symbol 819 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 24
_root.pagego = 2;
_root.ltclvar = ltcl._currentframe();
_root.gotoAndStop(4);
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 24
_root.pagego = 2;
_root.ltclvar = ltcl._currentframe();
_root.gotoAndStop(4);
Symbol 834 MovieClip Frame 21
stop();
Symbol 837 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=snipedown", "_blank");
}
Symbol 863 MovieClip Frame 83
_parent.nextFrame();
Symbol 868 Button
on (release) {
getURL ("http://flatplatform.com/", "_blank");
}
Symbol 872 MovieClip Frame 1
_visible = false;
Symbol 885 MovieClip Frame 89
_root.ltclvar = _root.ltcl._currentframe;
_root.gotoAndStop(2);
Symbol 886 MovieClip Frame 1
stop();