Frame 1
stop();
Stage.showMenu = false;
total = _root.getBytesTotal();
this.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
if (loaded == total) {
total = 0;
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 3
function explosionsound() {
tempnumber = random(8);
if (tempnumber == 0) {
playsound("weapon4explosion");
}
if (tempnumber == 1) {
playsound("weapon4explosion2");
}
if (tempnumber == 2) {
playsound("explosion3");
}
if (tempnumber == 3) {
playsound("explosion4");
}
if (tempnumber == 4) {
playsound("explosion5");
}
if (tempnumber == 5) {
playsound("explosion6");
}
if (tempnumber == 6) {
playsound("explosion7");
}
if (tempnumber == 7) {
playsound("explosion8");
}
}
function playsound(sounds) {
if (_root.soundon) {
_root.soundnumber = _root.soundnumber + 1;
asdfsound = _root.createEmptyMovieClip("sound" + soundnumber, soundnumber);
qwersound = new Sound(asdfsound);
qwersound.attachSound(sounds);
qwersound.setVolume(50);
qwersound.start(0, 0);
}
}
function saveeverything() {
savedata.data.waveNo = waveNo;
savedata.data.level_speed = level_speed;
savedata.data.level_armor = level_armor;
savedata.data.level_fuel = level_fuel;
savedata.data.missiletube = missiletube;
savedata.data.realtotalkills = realtotalkills;
savedata.data.survivalkills = 0;
savedata.data.realplayercash = realplayercash;
}
function deletealldata() {
savedata.data.waveNo = 0;
savedata.data.level_speed = 1;
savedata.data.level_armor = 1;
savedata.data.level_fuel = 1;
savedata.data.missiletube = 2;
savedata.data.realtotalkills = 0;
savedata.data.survivalkills = 0;
savedata.data.realplayercash = 0;
waveNo = savedata.data.waveNo;
realplayercash = savedata.data.realplayercash;
level_speed = savedata.data.level_speed;
level_armor = savedata.data.level_armor;
level_fuel = savedata.data.level_fuel;
missiletube = savedata.data.missiletube;
realtotalkills = savedata.data.realtotalkills;
survivalkills = savedata.data.survivalkills;
mainmenu.waveselect.progressdisplay = "0%";
mainmenu.waveselect.cashdisplay = "$0";
}
function pricejump(amount, obx, oby, bonus) {
createParticle2("fx_pricejump", obx, oby);
_root["particle" + particleI].amount = amount;
_root["particle" + particleI].bonusamount = 0;
playercash = playercash + amount;
if (bonus > 0) {
_root["particle" + particleI].bonusamount = bonus;
playercash = playercash + bonus;
}
}
function screenshake(amount) {
temp = ((Math.random() * amount) + amount) - 2;
if (random(2) == 0) {
temp = temp * -1;
}
_root._x = _root._x + temp;
_root.hud._x = -_root._x;
temp = ((Math.random() * amount) + amount) - 2;
if (random(2) == 0) {
temp = temp * -1;
}
_root._y = _root._y + temp;
_root.hud._y = -_root._x;
}
function createParticle(ob, obx, oby, obr) {
particleI = particleI + 1;
particleDepth = particleDepth + 1;
_root.attachMovie(ob, "particle" + particleI, particleDepth);
_root["particle" + particleI]._x = obx;
_root["particle" + particleI]._y = oby;
_root["particle" + particleI]._rotation = obr;
if (particleDepth > 19998) {
particleDepth = 10000;
}
if (particleI > 10000) {
particleI = 0;
}
}
function createParticle2(ob, obx, oby) {
particleI = particleI + 1;
particleDepth2 = particleDepth2 + 1;
_root.attachMovie(ob, "particle" + particleI, particleDepth2);
_root["particle" + particleI]._x = obx;
_root["particle" + particleI]._y = oby;
if (particleDepth2 > 29999) {
particleDepth2 = 25001;
}
if (particleI > 10000) {
particleI = 0;
}
}
function createEnemy(ob) {
enemyI = enemyI + 1;
enemyDepth = enemyDepth + 1;
_root.attachMovie(ob, "enemy" + enemyI, enemyDepth);
_root["enemy" + enemyI]._x = -50;
_root["enemy" + enemyI]._y = 100;
if (enemyDepth > 9000) {
enemyDepth = 8000;
}
if (enemyI > 10000) {
enemyI = 0;
}
}
function createEnemy2(ob) {
enemyI = enemyI + 1;
enemyDepth2 = enemyDepth2 + 1;
_root.attachMovie(ob, "enemy" + enemyI, enemyDepth2);
_root["enemy" + enemyI]._x = -50;
_root["enemy" + enemyI]._y = 100;
if (enemyDepth2 > 24000) {
enemyDepth = 20001;
}
if (enemyI > 10000) {
enemyI = 0;
}
}
function airsupport() {
createParticle("heli", 670, 30);
_root["particle" + particleI]._rotation = -20;
}
function createCrate(obx, oby, vx) {
particleI = particleI + 1;
crateDepth = crateDepth + 1;
_root.attachMovie("crate", "particle" + particleI, crateDepth);
_root["particle" + particleI]._x = obx;
_root["particle" + particleI]._y = oby;
_root["particle" + particleI].velx = vx;
if (crateDepth > 9010) {
crateDepth = 9000;
}
if (particleI > 10000) {
particleI = 0;
}
}
gotoAndPlay (4);
bgDepth = -1;
enemyDepth = 7000;
oceanDepth = 8999;
crateDepth = 9000;
particleDepth = 10000;
enemyDepth2 = 20001;
particleDepth2 = 25001;
spawnDepth = 30001;
pauseDepth = 30004;
cursorDepth = 30005;
fadeDepth = 30010;
hudDepth = 30002;
playerDepth = 20000;
soundnumber = 0;
gamepaused = false;
particleI = 0;
enemyI = 0;
blowup = false;
blowupbonus = 0;
savedata = SharedObject.getLocal("subgamedata");
if (!savedata.data.filled) {
savedata.data.filled = true;
savedata.data.waveNo = 0;
savedata.data.level_speed = 1;
savedata.data.level_armor = 1;
savedata.data.level_fuel = 1;
savedata.data.missiletube = 2;
savedata.data.realtotalkills = 0;
savedata.data.survivalcash = 0;
savedata.data.realplayercash = 0;
}
waveNo = savedata.data.waveNo;
realplayercash = savedata.data.realplayercash;
level_speed = savedata.data.level_speed;
level_armor = savedata.data.level_armor;
level_fuel = savedata.data.level_fuel;
missiletube = savedata.data.missiletube;
realtotalkills = savedata.data.realtotalkills;
survivalcash = savedata.data.survivalcash;
musicon = true;
soundon = true;
deleteall = false;
attachMovie("cursor", "pointer", cursorDepth);
attachMovie("fader", "fader", fadeDepth);
_root.soundnumber = _root.soundnumber + 1;
music123 = _root.createEmptyMovieClip("sound" + soundnumber, soundnumber);
music111 = new Sound(music123);
music111.attachSound("music111");
_root.soundnumber = _root.soundnumber + 1;
music456 = _root.createEmptyMovieClip("sound" + soundnumber, soundnumber);
music222 = new Sound(music456);
music222.attachSound("music222");
onMouseMove = function () {
if (!_root.pointer.control) {
_root.pointer.control = true;
}
if (_root._currentframe == 5) {
if (_ymouse < 370) {
Mouse.hide();
} else {
Mouse.show();
}
} else {
if (_currentframe == 4) {
_root.createParticle("fx_missile", (pointer._x + random(10)) - 5, (pointer._y + random(10)) - 5);
}
Mouse.hide();
}
};
Frame 4
stop();
_root._x = 0;
_root._y = 0;
infinitymode = false;
music111.stop();
music222.stop();
music111.start(0.1, 100);
Frame 5
stop();
Bullet = new Array();
music111.stop();
music222.stop();
music222.start(0.1, 100);
attachMovie("spawner", "spawner", spawnDepth);
attachMovie("pausemenu", "pausemenu", pauseDepth);
attachMovie("background", "background", bgDepth);
attachMovie("ocean", "ocean", oceanDepth);
ocean._x = 0;
ocean._y = 0;
attachMovie("sub", "player", playerDepth);
attachMovie("hud", "hud", hudDepth);
player._x = 350;
player._y = 250;
playerhealth = 150 + (50 * _root.level_armor);
playergas = 200;
playercash = 0;
shipkilled = 0;
shipescaped = 0;
shipalive = false;
wavedone = false;
Frame 6
stop();
_root.pointer._alpha = 80;
Frame 7
stop();
music111.stop();
music222.stop();
music111.start(0.1, 100);
pointer._alpha = 80;
Frame 8
stop();
Frame 9
stop();
Symbol 8 MovieClip Frame 90
stop();
Symbol 8 MovieClip Frame 189
stop();
_root.fader.gotoAndPlay(340);
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 264
_root.airsupport();
gotoAndPlay (1);
Symbol 30 MovieClip Frame 1
display = 0;
Symbol 36 MovieClip [ocean] Frame 1
wave2.gotoAndPlay(25);
wave1._alpha = 100;
wave2._alpha = 100;
Symbol 40 MovieClip [cursor] Frame 1
this.onEnterFrame = function () {
if (control || (_root.gamepaused)) {
xtarget = _root._xmouse;
ytarget = _root._ymouse;
if (_root._currentframe == 5) {
if (_root._ymouse < 370) {
_x = (_x + ((xtarget - _x) / 2));
_y = (_y + ((ytarget - _y) / 2));
} else {
_x = (_x + ((xtarget - _x) / 2));
_y = (_y + ((370 - _y) / 2));
}
} else {
_x = (_x + ((xtarget - _x) / 2));
_y = (_y + ((ytarget - _y) / 2));
}
black._alpha = 0;
if ((_root._currentframe == 8) || (_root._currentframe == 9)) {
black._alpha = 100;
}
}
};
Symbol 53 MovieClip Frame 1
this.onEnterFrame = function () {
stop();
if (!_root.gamepaused) {
_parent.sub1._alpha = 0;
_parent.sub2._alpha = 0;
if (_parent.facing == 1) {
prevFrame();
} else {
nextFrame();
}
if (_currentframe == 1) {
_parent.sub1._alpha = 100;
}
if (_currentframe == 30) {
_parent.sub2._alpha = 100;
}
if (_currentframe > 15) {
flipped = -1;
} else {
flipped = 1;
}
}
};
Symbol 54 MovieClip [sub] Frame 1
time = 0;
surface = false;
gasloss = 0.2;
killed = false;
pausedown = false;
docked = false;
_x = 623.35;
_y = 99.4;
speed = 0;
if (_root.infinitymode) {
_root.playerhealth = 300;
}
_root.pointer._x = _x - 10;
_root.potiner._y = _y + 10;
keyup = false;
this.onEnterFrame = function () {
if ((!_root.gamepaused) && (!docked)) {
if (Key.isDown(38)) {
_root.pointer.control = false;
_root.pointer._alpha = 0;
_root.pointer._y = _y - 50;
}
if (Key.isDown(40)) {
_root.pointer.control = false;
_root.pointer._alpha = 0;
_root.pointer._y = _y + 50;
}
if (Key.isDown(37)) {
_root.pointer.control = false;
_root.pointer._alpha = 0;
_root.pointer._x = _x - 50;
}
if (Key.isDown(39)) {
_root.pointer.control = false;
_root.pointer._alpha = 0;
_root.pointer._x = _x + 50;
}
if (_root.pointer._y > 371) {
_root.pointer._y = 371;
}
if (_root.pointer._x > 701) {
_root.pointer._x = 701;
}
if (_root.pointer._x < -1) {
_root.pointer._x = -1;
}
distance = Math.sqrt(Math.pow(_root.pointer._x - _x, 2) + Math.pow(_root.pointer._y - _y, 2));
if (_root.ocean.riganim.hook._currentframe < 60) {
speed = (_root.ocean.riganim.hook._currentframe - 10) / 25;
} else if (!_root.infinitymode) {
speed = (_root.level_speed / 5) + 1.7;
} else {
speed = 2.3;
}
if ((distance > 50) && (_root.playergas > 0)) {
dx = _x - _root.pointer._x;
dy = _y - _root.pointer._y;
radians = Math.atan2(dy, dx);
dirx = Math.cos(radians) * speed;
diry = Math.sin(radians) * speed;
_x = (_x - dirx);
if ((_y > 100) || (diry <= 0)) {
_y = (_y - diry);
}
if (_root.pointer.control) {
_root.pointer._alpha = 80;
}
if (!_root.infinitymode) {
_root.playergas = _root.playergas - (gasloss - (_root.level_fuel * 0.03));
} else {
_root.playergas = _root.playergas - (gasloss - 0.09);
}
if ((_root.waveNo == 0) && (_root.hud.tutorial._currentframe >= 975)) {
_root.playergas = 200;
}
} else {
_x = (_x + ((_root.pointer._x - _x) / 30));
if ((_y > 100) || ((_root.pointer._y - _y) >= 0)) {
_y = (_y + ((_root.pointer._y - _y) / 30));
}
if (_root.pointer.control) {
_root.pointer._alpha = 30;
}
}
if ((_root.pointer._x - _x) >= 0) {
facing = 1;
} else {
facing = -1;
}
offset = (subanim.sub._width * subanim.flipped) / 2;
if (!killed) {
if (_y > 100) {
surface = false;
if (distance > 20) {
_root.createParticle("fx_bubbles", _x - offset, _y);
}
} else {
surface = true;
_root.createParticle("fx_shipbubbles2", _x - offset, _y - (Math.random() * 5));
}
}
if (_root.blowup) {
time = time + 1;
if (time >= 1) {
time = 0;
_root.blowup = false;
}
}
if (!_root.infinitymode) {
if (_root.playerhealth <= (150 + (_root.level_armor * 50))) {
_root.playerhealth = _root.playerhealth + 0.05;
}
} else if (_root.playerhealth <= 300) {
_root.playerhealth = _root.playerhealth + 0.05;
}
if (((_root.playerhealth <= 0) && (!killed)) || ((_root.playergas <= 0) && (!killed))) {
killed = true;
_root.playerhealth = 0;
_root.shaketimer = 20;
_root.createParticle("junk_sub1", _x + 20, _y);
_root.createParticle("junk_sub2", _x - 20, _y);
_alpha = 0;
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(180);
}
}
if (_root.shaketimer > 0) {
_root.screenshake(10);
_root.shaketimer = _root.shaketimer - 1;
}
_root.hud._x = -_root._x;
_root.hud._y = -_root._y;
_root._x = _root._x + ((-_root._x) / 3);
_root._y = _root._y + ((-_root._y) / 3);
if (Key.isDown(65) && (leftup)) {
leftup = false;
if ((!surface) && (_root.hasbullet)) {
_root.createParticle("wep_torpedoL", _x + (((subanim._currentframe * -1) + 15) * 2), _y);
_root.hud.subtractMissile();
}
} else if ((!Key.isDown(65)) && (!leftup)) {
leftup = true;
}
if (Key.isDown(68) && (rightup)) {
rightup = false;
if ((!surface) && (_root.hasbullet)) {
if (subanim._currentframe >= 20) {
_root.createParticle("wep_torpedoR", _x - 35, _y);
_root.hud.subtractMissile();
} else if (subanim._currentframe <= 10) {
_root.createParticle("wep_torpedoR", _x + 35, _y);
_root.hud.subtractMissile();
}
}
} else if ((!Key.isDown(68)) && (!rightup)) {
rightup = true;
}
if (Key.isDown(87) && (!keyup)) {
mousedown = true;
keyup = true;
} else if ((!Key.isDown(87)) && (keyup)) {
keyup = false;
}
if (mousedown) {
if ((!surface) && (_root.hasbullet)) {
_root.hud.subtractMissile();
_root.createParticle("wep_missile", _x, _y - 7);
}
}
mousedown = false;
}
if (Key.isDown(80) && (!pausedown)) {
pausedown = true;
if (_root.gamepaused == false) {
_root.ocean.riganim.riganim2.stop();
_root.gamepaused = true;
_root.pausemenu._x = 0;
_root.pausemenu.gotoAndPlay(2);
_root.pointer._alpha = 100;
} else {
_root.ocean.riganim.riganim2.play();
_root.gamepaused = false;
_root.pausemenu.gotoAndPlay(8);
}
} else if (!Key.isDown(80)) {
pausedown = false;
}
if (((!_root.shipalive) && (_root.hud.enemybar.enemydisplay == 0)) && (_root.waveNo != 0)) {
_root.wavedone = true;
}
_root.shipalive = false;
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
this.onMouseDown = function () {
mousedown = true;
};
Symbol 55 MovieClip [spawner] Frame 1
time = 0;
time2 = 0;
time3 = 0;
time4 = 0;
timeAir = 0;
if (_root.waveNo == 0) {
timeAir = 940;
}
airsupporttime = 1000;
countdown = true;
countup = true;
totalenemies = 0;
spawnedenemies = 0;
infinitytotal = 200;
if (_root.infinitymode) {
time = 200;
}
switch (_root.waveNo) {
case 1 :
totalenemies = 10;
break;
case 2 :
totalenemies = 7;
break;
case 3 :
totalenemies = 20;
break;
case 4 :
totalenemies = 15;
break;
case 5 :
totalenemies = 20;
break;
case 6 :
totalenemies = 20;
break;
case 7 :
totalenemies = 15;
break;
case 8 :
totalenemies = 20;
break;
case 9 :
totalenemies = 15;
break;
case 10 :
totalenemies = 25;
break;
case 11 :
totalenemies = 20;
break;
case 12 :
totalenemies = 25;
break;
case 13 :
totalenemies = 20;
break;
case 14 :
totalenemies = 30;
break;
case 15 :
totalenemies = 30;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (countdown) {
timeAir = timeAir + 1;
_root.ocean.riganim.display = Math.ceil((airsupporttime - timeAir) / 40);
} else {
_root.ocean.riganim.display = "";
}
if (countup && (!_root.infinitymode)) {
time = time + 1;
time2 = time2 + 1;
time3 = time3 + 1;
time4 = time4 + 1;
}
if (((spawnedenemies < totalenemies) && (!_root.infinitymode)) || ((_root.waveNo == 0) && (!_root.infinitymode))) {
switch (_root.waveNo) {
case 0 :
if (time > 200) {
time = 0;
_root.createEnemy("ship_patrol");
}
break;
case 1 :
if (time > 200) {
time = 0;
_root.createEnemy("ship_patrol");
spawnedenemies++;
}
break;
case 2 :
if (time > 250) {
time = 0;
_root.createEnemy("ship_mine");
spawnedenemies++;
}
break;
case 3 :
if (time > 300) {
time = 0;
_root.createEnemy("ship_patrol");
spawnedenemies++;
}
if (time2 > 180) {
time2 = 0;
_root.createEnemy2("ship_sub");
spawnedenemies++;
}
break;
case 4 :
if (time > 200) {
time = 0;
_root.createEnemy("ship_seeker");
spawnedenemies++;
}
break;
case 5 :
if (time > 220) {
time = 0;
_root.createEnemy("ship_seeker");
spawnedenemies++;
}
if (time2 > 260) {
time2 = 0;
_root.createEnemy2("ship_sub");
spawnedenemies++;
}
break;
case 6 :
if (time > 260) {
time = 0;
_root.createEnemy("ship_mine");
spawnedenemies++;
}
if (time2 > 320) {
time2 = 0;
_root.createEnemy("ship_seeker");
spawnedenemies++;
}
break;
case 7 :
if (time > 300) {
time = 0;
_root.createEnemy("ship_patrol");
spawnedenemies++;
}
if (time2 > 220) {
time2 = 0;
_root.createEnemy2("ship_sub3");
spawnedenemies++;
}
break;
case 8 :
if (time > 200) {
time = 0;
_root.createEnemy2("ship_sub3");
spawnedenemies++;
}
if (time2 > 250) {
time2 = 0;
_root.createEnemy("ship_seeker");
spawnedenemies++;
}
break;
case 9 :
if (time > 200) {
time = 0;
_root.createEnemy("ship_timebomb");
spawnedenemies++;
}
break;
case 10 :
if (time > 220) {
time = 0;
_root.createEnemy("ship_timebomb");
spawnedenemies++;
}
if (time2 > 310) {
time2 = 0;
_root.createEnemy2("ship_sub3");
spawnedenemies++;
}
if (time3 > 260) {
time3 = 0;
_root.createEnemy2("ship_sub");
spawnedenemies++;
}
break;
case 11 :
if (time > 250) {
time = 0;
_root.createEnemy2("ship_sub");
spawnedenemies++;
}
if (time2 > 200) {
time2 = 0;
_root.createEnemy("ship_seeker2");
spawnedenemies++;
}
break;
case 12 :
if (time > 300) {
time = 0;
_root.createEnemy("ship_timebomb");
spawnedenemies++;
}
if (time2 > 220) {
time2 = 0;
_root.createEnemy("ship_seeker");
spawnedenemies++;
}
if (time3 > 400) {
time3 = 0;
_root.createEnemy("ship_mine");
spawnedenemies++;
}
break;
case 13 :
if (time > 250) {
time = 0;
_root.createEnemy2("ship_sub2");
spawnedenemies++;
}
if (time2 > 350) {
time2 = 0;
_root.createEnemy("ship_patrol");
spawnedenemies++;
}
break;
case 14 :
if (time > 330) {
time = 0;
_root.createEnemy2("ship_sub2");
spawnedenemies++;
}
if (time2 > 270) {
time2 = 0;
_root.createEnemy2("ship_sub");
spawnedenemies++;
}
if (time3 > 220) {
time3 = 0;
_root.createEnemy2("ship_sub3");
spawnedenemies++;
}
if (time4 > 400) {
time4 = 0;
_root.createEnemy("ship_patrol");
spawnedenemies++;
}
break;
case 15 :
if (time > 250) {
time = 0;
_root.createEnemy2("ship_sub2");
spawnedenemies++;
}
if (time2 > 320) {
time2 = 0;
_root.createEnemy("ship_seeker2");
spawnedenemies++;
}
if (time4 <= 450) {
break;
}
time4 = 0;
_root.createEnemy("ship_timebomb");
spawnedenemies++;
}
}
if (_root.infinitymode) {
time = time + 1;
if (time >= infinitytotal) {
time = 0;
if (infinitytotal >= 105) {
infinitytotal = infinitytotal - 5;
}
temp = random(7);
switch (temp) {
case 0 :
_root.createEnemy("ship_seeker");
break;
case 1 :
_root.createEnemy("ship_seeker2");
break;
case 2 :
_root.createEnemy("ship_mine");
break;
case 3 :
_root.createEnemy("ship_timebomb");
break;
case 4 :
_root.createEnemy2("ship_sub");
break;
case 5 :
_root.createEnemy2("ship_sub2");
break;
case 6 :
_root.createEnemy2("ship_sub3");
}
}
}
_root.ocean.riganim.arrows._alpha = 0;
if (_root.wavedone) {
_root.ocean.riganim.arrows._alpha = 100;
if (_root.player.hitTest(627.1, 105.5, true)) {
if (_root.waveNo == 0) {
_root.hud.tutorial.gotoAndPlay(2051);
}
_root.player.docked = true;
_root.ocean.riganim.hook.play();
}
if (_root.player.docked) {
_root.player._x = _root.player._x + ((623.35 - _root.player._x) / 20);
_root.player._y = _root.player._y + ((99.4 - _root.player._y) / 20);
}
}
if (timeAir > airsupporttime) {
timeAir = 0;
_root.ocean.riganim.riganim2.gotoAndPlay(2);
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 78 MovieClip Frame 1
gotoAndStop(_root.waveNo + 1);
Symbol 79 MovieClip Frame 130
stop();
Symbol 86 MovieClip Frame 60
gotoAndPlay (1);
Symbol 86 MovieClip Frame 75
_parent._parent.play();
Symbol 123 MovieClip Frame 2
_root.player._x = 350;
_root.player._y = 200;
_root.spawner.countup = false;
_root.spawner.countdown = false;
Symbol 123 MovieClip Frame 3
_root.missiletube = 0;
Symbol 123 MovieClip Frame 230
stop();
this.onEnterFrame = function () {
if (_root.player.hitTest(94.1, 141.3, true)) {
delete this.onEnterFrame;
play();
}
};
Symbol 123 MovieClip Frame 282
stop();
this.onEnterFrame = function () {
if (_root.player.hitTest(427.1, 290.3, true)) {
delete this.onEnterFrame;
play();
}
};
Symbol 123 MovieClip Frame 681
_root.spawner.countdown = true;
Symbol 123 MovieClip Frame 742
_root.spawner.countdown = false;
Symbol 123 MovieClip Frame 970
stop();
Symbol 123 MovieClip Frame 971
_root.missiletube = 2;
Symbol 123 MovieClip Frame 1311
_root.spawner.countup = true;
_root.spawner.time = 100;
Symbol 123 MovieClip Frame 1600
stop();
Symbol 123 MovieClip Frame 1601
_root.spawner.countup = false;
Symbol 123 MovieClip Frame 1860
stop();
Symbol 123 MovieClip Frame 2050
stop();
_root.wavedone = true;
Symbol 123 MovieClip Frame 2070
stop();
Symbol 131 MovieClip Frame 121
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 138 MovieClip [hud] Frame 1
function subtractMissile() {
if (!_root.infinitymode) {
i = 0;
while (i < _root.missiletube) {
if (bararray[i + 1]._currentframe == total) {
bararray[i + 1].gotoAndPlay(1);
return(undefined);
}
i++;
}
} else {
i = 0;
while (i <= 5) {
if (bararray[i + 1]._currentframe == total) {
bararray[i + 1].gotoAndPlay(1);
return(undefined);
}
i++;
}
}
}
_alpha = 50;
total = bar1._totalframes;
bararray = new Array();
bararray[1] = bar1;
bararray[2] = bar2;
bararray[3] = bar3;
bararray[4] = bar4;
bararray[5] = bar5;
bararray[6] = bar6;
bararray[7] = bar7;
bararray[8] = bar8;
bararray[9] = bar9;
bararray[10] = bar10;
i = 0;
while (i < 10) {
bararray[i + 1].gotoAndStop(total);
i++;
}
healthwidth = healthbar._width;
enemybar._alpha = 0;
if (_root.waveNo != 0) {
enemybar._alpha = 100;
tutorial.swapDepths(1);
removeMovieClip(tutorial);
delete tutorial.onEnterFrame;
}
if (_root.infinitymode) {
wavedisplay.swapDepths(1);
removeMovieClip(wavedisplay);
tutorial.swapDepths(1);
removeMovieClip(tutorial);
delete tutorial.onEnterFrame;
enemybar.swapDepths(1);
removeMovieClip(enemybar);
delete enemybar.onEnterFrame;
}
this.onEnterFrame = function () {
_root.hasbullet = false;
if (!_root.infinitymode) {
totalhealth = 200 * (_root.playerhealth / (150 + (_root.level_armor * 50)));
} else {
totalhealth = 200 * (_root.playerhealth / 300);
}
healthbar._width = healthbar._width + ((totalhealth - healthbar._width) / 3);
gasbar._width = gasbar._width + ((_root.playergas - gasbar._width) / 3);
if (!_root.infinitymode) {
i = 0;
while (i < _root.missiletube) {
if (bararray[i + 1]._currentframe == total) {
_root.hasbullet = true;
}
i++;
}
} else {
i = 0;
while (i < 5) {
if (bararray[i + 1]._currentframe == total) {
_root.hasbullet = true;
}
i++;
}
}
bar1._alpha = 0;
bar2._alpha = 0;
bar3._alpha = 0;
bar4._alpha = 0;
bar5._alpha = 0;
bar6._alpha = 0;
bar7._alpha = 0;
bar8._alpha = 0;
bar9._alpha = 0;
bar10._alpha = 0;
if (_root.missiletube >= 1) {
bar1._alpha = 100;
}
if (_root.missiletube >= 2) {
bar2._alpha = 100;
}
if (_root.missiletube >= 3) {
bar3._alpha = 100;
}
if (_root.missiletube >= 4) {
bar4._alpha = 100;
}
if (_root.missiletube >= 5) {
bar5._alpha = 100;
}
if (_root.missiletube >= 6) {
bar6._alpha = 100;
}
if (_root.missiletube >= 7) {
bar7._alpha = 100;
}
if (_root.missiletube >= 8) {
bar8._alpha = 100;
}
if (_root.missiletube >= 9) {
bar9._alpha = 100;
}
if (_root.missiletube >= 10) {
bar10._alpha = 100;
}
if (_root.infinitymode) {
bar1._alpha = 100;
bar2._alpha = 100;
bar3._alpha = 100;
bar4._alpha = 100;
bar5._alpha = 100;
}
enemybar.enemydisplay = _root.spawner.totalenemies - _root.spawner.spawnedenemies;
cash = "$" + (_root.playercash + _root.realplayercash);
if (healthbar._width < (healthwidth - 1)) {
healthbar.gotoAndPlay(2);
}
if (_root.playergas < 50) {
gasbar.play();
}
healthwidth = healthbar._width;
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
btn_pause.onRelease = function () {
if (!_root.gamepaused) {
_root.ocean.riganim.riganim2.stop();
_root.gamepaused = true;
_root.pausemenu._x = 0;
_root.pausemenu.gotoAndPlay(2);
_root.pointer._alpha = 100;
}
};
Symbol 140 MovieClip [crate] Frame 1
function createSplash() {
_root.createParticle("fx_ripple", _x, 100);
_root["particle" + _root.particleI].facing = 1;
_root.createParticle("fx_ripple", _x, 100);
_root["particle" + _root.particleI].facing = -1;
i = 0;
while (i < 10) {
_root.createParticle("fx_splashwater", _x, 100);
i++;
}
i = 0;
while (i < 10) {
_root.createParticle("fx_splashbubbles", _x, 100);
i++;
}
}
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = velx * -1.1;
vy = 0;
rotationspeed = (Math.random() * 3) + 1;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
hitwater = false;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vy < 1.5) {
vy = vy + 0.1;
}
if ((_y > 100) && (!hitwater)) {
hitwater = true;
createSplash();
vy = 1;
}
if (_y < 100) {
vy = vy * 1.05;
}
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
if (_root.waveNo == 0) {
_root.hud.tutorial.play();
}
destroyed();
}
if (_root.player.hitTest(_x, _y, true)) {
pickedup = true;
}
if (pickedup) {
_alpha = (_alpha - 34);
if (_alpha <= 0) {
_root.playergas = 200;
if (!_root.infinitymode) {
_root.playerhealth = 150 + (_root.level_armor * 50);
} else {
_root.playerhealth = 300;
}
if (_root.waveNo == 0) {
_root.hud.tutorial.play();
}
removeMovieClip(this);
delete this.onEnterFrame;
}
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 149 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 159 MovieClip [pausemenu] Frame 1
_x = 700;
Symbol 159 MovieClip [pausemenu] Frame 7
stop();
on1.tabEnabled = false;
on2.tabEnabled = false;
off1.tabEnabled = false;
off2.tabEnabled = false;
pauseexit.tabEnabled = false;
pauseexit.tabEnabled = true;
if (_root.musicon) {
on1.gotoAndStop(3);
} else {
off1.gotoAndStop(3);
}
if (_root.soundon) {
on2.gotoAndStop(3);
} else {
off2.gotoAndStop(3);
}
on1.onRelease = function () {
if (!_root.musicon) {
_root.musicon = true;
on1.gotoAndStop(3);
off1.gotoAndStop(1);
_root.music111.setVolume(100);
_root.music222.setVolume(100);
}
};
off1.onRelease = function () {
if (_root.musicon) {
_root.musicon = false;
on1.gotoAndStop(1);
off1.gotoAndStop(3);
_root.music111.setVolume(0);
_root.music222.setVolume(0);
}
};
on1.onRollOver = function () {
if (on1._currentframe == 1) {
on1.gotoAndStop(2);
}
};
on1.onRollOut = function () {
if (on1._currentframe == 2) {
on1.gotoAndStop(1);
}
};
off1.onRollOver = function () {
if (off1._currentframe == 1) {
off1.gotoAndStop(2);
}
};
off1.onRollOut = function () {
if (off1._currentframe == 2) {
off1.gotoAndStop(1);
}
};
on2.onRelease = function () {
if (!_root.soundon) {
_root.soundon = true;
on2.gotoAndStop(3);
off2.gotoAndStop(1);
}
};
off2.onRelease = function () {
if (_root.soundon) {
_root.soundon = false;
on2.gotoAndStop(1);
off2.gotoAndStop(3);
}
};
on2.onRollOver = function () {
if (on2._currentframe == 1) {
on2.gotoAndStop(2);
}
};
on2.onRollOut = function () {
if (on2._currentframe == 2) {
on2.gotoAndStop(1);
}
};
off2.onRollOver = function () {
if (off2._currentframe == 1) {
off2.gotoAndStop(2);
}
};
off2.onRollOut = function () {
if (off2._currentframe == 2) {
off2.gotoAndStop(1);
}
};
pauseexit.onRollOver = function () {
pauseexit.gotoAndStop(2);
};
pauseexit.onRollOut = function () {
pauseexit.gotoAndStop(1);
};
pauseexit.onRelease = function () {
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(140);
}
};
pauseresume.onRollOver = function () {
pauseresume.gotoAndStop(2);
};
pauseresume.onRollOut = function () {
pauseresume.gotoAndStop(1);
};
pauseresume.onRelease = function () {
if (_root.waveNo != 0) {
_root.ocean.riganim.riganim2.play();
}
_root.gamepaused = false;
_root.pausemenu.gotoAndPlay(8);
};
Symbol 159 MovieClip [pausemenu] Frame 13
_x = 700;
stop();
Symbol 164 MovieClip [fader] Frame 1
stop();
_x = 0;
_y = 0;
Symbol 164 MovieClip [fader] Frame 11
_root.deletealldata();
Symbol 164 MovieClip [fader] Frame 35
gotoAndPlay (1);
Symbol 164 MovieClip [fader] Frame 80
_root.gotoAndPlay(5);
Symbol 164 MovieClip [fader] Frame 130
gotoAndPlay (1);
Symbol 164 MovieClip [fader] Frame 142
removeMovieClip(_root.pausemenu);
_root.background.swapDepths(_root.pauseDepth);
removeMovieClip(_root.background);
_root.oceanfloor.swapDepths(1);
removeMovieClip(_root.oceanfloor);
removeMovieClip(_root.ocean);
_root.gamepaused = false;
_root.deleteall = true;
Symbol 164 MovieClip [fader] Frame 144
_root.deleteall = false;
_root.gotoAndPlay(4);
Symbol 164 MovieClip [fader] Frame 173
gotoAndPlay (1);
Symbol 164 MovieClip [fader] Frame 281
removeMovieClip(_root.pausemenu);
_root.background.swapDepths(_root.pauseDepth);
removeMovieClip(_root.background);
_root.oceanfloor.swapDepths(1);
removeMovieClip(_root.oceanfloor);
removeMovieClip(_root.ocean);
_root.gamepaused = false;
_root.deleteall = true;
Symbol 164 MovieClip [fader] Frame 283
_root.deleteall = false;
if (!_root.infinitymode) {
_root.gotoAndPlay(6);
} else {
_root.gotoAndPlay(9);
}
Symbol 164 MovieClip [fader] Frame 302
gotoAndPlay (1);
Symbol 164 MovieClip [fader] Frame 366
removeMovieClip(_root.pausemenu);
_root.background.swapDepths(_root.pauseDepth);
removeMovieClip(_root.background);
_root.oceanfloor.swapDepths(1);
removeMovieClip(_root.oceanfloor);
removeMovieClip(_root.ocean);
_root.gamepaused = false;
_root.deleteall = true;
Symbol 164 MovieClip [fader] Frame 368
_root.deleteall = false;
_root.waveNo = _root.waveNo + 1;
if (_root.waveNo == 16) {
_root.waveNo = _root.waveNo - 1;
_root.gotoAndPlay(8);
} else {
_root.gotoAndPlay(7);
}
Symbol 164 MovieClip [fader] Frame 397
gotoAndPlay (1);
Symbol 164 MovieClip [fader] Frame 407
_root.gotoAndPlay(5);
Symbol 164 MovieClip [fader] Frame 457
gotoAndPlay (1);
Symbol 185 MovieClip Frame 60
stop();
stoptime = 0;
this.onEnterFrame = function () {
stoptime = stoptime + 1;
if (stoptime > 120) {
play();
}
};
Symbol 185 MovieClip Frame 85
delete this.onEnterFrame;
_root.play();
Symbol 187 MovieClip [fx_bubbles] Frame 1
risespeed = (Math.random() * 3) + 1;
_x = (_x + ((Math.random() * 10) - 5));
_y = (_y + ((Math.random() * 20) - 10));
alphafade = (Math.random() * 2) + 4;
vx = (Math.random() * 10) * _root.player.facing;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
vx = vx * 0.9;
_y = (_y - risespeed);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_alpha <= 0) || (_y <= 100)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 188 MovieClip [fx_bubbles2] Frame 1
risespeed = (Math.random() * 3) + 1;
_x = (_x + ((Math.random() * 10) - 5));
_y = (_y + ((Math.random() * 20) - 10));
alphafade = (Math.random() * 2) + 4;
vx = Math.random() * 10;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
vx = vx * 0.9;
_y = (_y - risespeed);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_alpha <= 0) || (_y <= 100)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 189 MovieClip [fx_charge] Frame 1
risespeed = Math.random() * 1;
alphafade = (Math.random() * 3) + 10;
vx = (Math.random() / 2) - 0.25;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_y = (_y - risespeed);
_x = (_x + vx);
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_y <= 100) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 193 MovieClip [fx_fire] Frame 1
alphafade = (Math.random() * 10) + 10;
_x = (_x + ((Math.random() * 2) - 1));
_y = (_y + ((Math.random() * 2) - 1));
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_alpha = (_alpha - alphafade);
fireanim._alpha = fireanim._alpha + 15;
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 195 MovieClip [fx_missile] Frame 1
risespeed = Math.random() * 1;
alphafade = (Math.random() * 4) + 3;
_xscale = (random(50) + 50);
_yscale = _xscale;
vx = (Math.random() / 2) - 0.25;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_y = (_y - risespeed);
_x = (_x + vx);
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_y <= 100) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 199 MovieClip [fx_pricejump] Frame 1
vy = -2 - (Math.random() * 2);
cash = "$" + this.amount;
if (this.bonusamount > 0) {
bonusdisplay = "+$" + this.bonusamount;
} else {
bonusdisplay = "";
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vy < 0) {
vy = vy + 0.1;
} else {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
_y = (_y + vy);
}
};
Symbol 201 MovieClip [fx_ripple] Frame 1
alphafade = 2;
vx = 2 * facing;
vy = 1.4;
gravity = 0.1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
vy = vy - gravity;
_y = (_y - vy);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_y > 100) || (_alpha <= 0)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 203 MovieClip [fx_shipbubbles] Frame 1
risespeed = (Math.random() / 2) + 0.1;
alphafade = (Math.random() * 5) + 5;
vx = (Math.random() * 3) - 4;
vy = (Math.random() * 2) + 1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
vy = vy - risespeed;
_y = (_y - vy);
_x = (_x + vx);
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_y >= 100) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 204 MovieClip [fx_shipbubbles2] Frame 1
risespeed = (Math.random() / 2) + 0.1;
alphafade = (Math.random() * 2) + 1;
vx = ((Math.random() * 3) - 4) * _root.player.facing;
vy = (Math.random() * 2) + 1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
vy = vy - risespeed;
_y = (_y - vy);
_x = (_x + vx);
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_y >= 100) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 207 MovieClip [fx_smoke] Frame 1
risespeed = (Math.random() * 3) + 1;
_x = (_x + ((Math.random() * 10) - 5));
_y = (_y + ((Math.random() * 20) - 10));
alphafade = (Math.random() * 1) + 0.5;
vx = (Math.random() * 10) - 5;
_xscale = (random(50) + 100);
_yscale = _xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
vx = vx * 0.9;
_y = (_y - risespeed);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_alpha <= 0) || (_y < -50)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 209 MovieClip [fx_smoke2] Frame 1
risespeed = (Math.random() * 3) + 1;
_x = (_x + ((Math.random() * 4) - 2));
alphafade = (Math.random() * 1) + 0.5;
vx = (Math.random() * 4) - 2;
_xscale = 1;
_yscale = 1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + 2);
_yscale = (_yscale + 2);
vx = vx * 0.9;
_y = (_y - risespeed);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_alpha <= 0) || (_y < -50)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 210 MovieClip [fx_splashbubbles] Frame 1
_y = (_y - 5);
_xscale = (random(100) + 100);
_yscale = _xscale;
alphafade = (Math.random() * 4) + 1;
vx = (Math.random() * 6) - 3;
vy = (Math.random() * 4) - 6;
gravity = (Math.random() / 3) + 0.1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
vy = vy + gravity;
_y = (_y - vy);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_alpha <= 0) || (_y < 100)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 212 MovieClip [fx_splashwater] Frame 1
_xscale = (random(100) + 100);
_yscale = _xscale;
alphafade = (Math.random() * 4) + 1;
vx = (Math.random() * 20) - 10;
vy = (Math.random() * 6) + 3;
gravity = (Math.random() / 2) + 0.1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
vy = vy - gravity;
_y = (_y - vy);
_x = (_x - vx);
_alpha = (_alpha - alphafade);
if ((_alpha <= 0) || (_xscale <= 1)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 214 MovieClip [fx_split] Frame 1
alphafade = 10;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + ((600 - _xscale) / 5));
_yscale = (_yscale + ((600 - _yscale) / 5));
_alpha = (_alpha - alphafade);
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.playerhealth = _root.playerhealth - 10;
_root.shaketimer = 5;
}
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 216 MovieClip [fx_underexplode] Frame 1
alphafade = 5;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + ((1500 - _xscale) / 8));
_yscale = (_yscale + ((1500 - _yscale) / 8));
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 217 MovieClip [fx_underexplode2] Frame 1
alphafade = 6;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + ((1300 - _xscale) / 5));
_yscale = (_yscale + ((1300 - _yscale) / 5));
_alpha = (_alpha - alphafade);
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.playerhealth = _root.playerhealth - 10;
_root.shaketimer = 5;
}
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 219 MovieClip [fx_waterexplode] Frame 1
alphafade = 5;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + 100);
_yscale = (_yscale + 100);
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 220 MovieClip [fx_waterexplode2] Frame 1
alphafade = 10;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + 100);
_yscale = (_yscale + 100);
_alpha = (_alpha - alphafade);
if (_alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
_rotation = (_rotation - 2);
Symbol 249 MovieClip Frame 4
_rotation = (_rotation - 2);
Symbol 249 MovieClip Frame 6
_rotation = (_rotation - 2);
Symbol 249 MovieClip Frame 8
_rotation = (_rotation - 2);
Symbol 249 MovieClip Frame 39
stop();
_alpha = 0;
Symbol 250 MovieClip [heli] Frame 1
cratedropped = false;
vy = 0;
vx = 0.4;
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vx < 2) {
vx = vx + 0.1;
}
_x = (_x - vx);
_y = (_y + vy);
time = time + 1;
if (time < 40) {
vy = vy + ((0.2 - vy) / 10);
} else if (time < 80) {
vy = vy + ((-0.2 - vy) / 10);
} else {
time = 0;
}
if ((_x < (_root.player._x + 80)) && (!cratedropped)) {
cratedropped = true;
helicrate.play();
_root.createCrate(_x + 2, _y + 22, vx);
}
if (cratedropped) {
_rotation = (_rotation + 0.2);
vy = vy - 0.05;
}
if ((_x < -80) || (_y < -15)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 20
_parent.anim.swapDepths(_parent.chargeanim);
Symbol 253 MovieClip Frame 30
gotoAndStop (1);
_root.createParticle2("wep_charge", _parent._x + 12, _parent._y - 2);
Symbol 254 MovieClip [ship_mine] Frame 1
function hit() {
i = 0;
while (i < 2) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
}
function destroyed() {
_root.shipkilled++;
_root.pricejump(150, _x, _y, _root.blowupbonus);
_root.createParticle("junk_mine", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
anim.gotoAndPlay(random(anim._totalframes + 1));
health = 2;
time = 0;
timecharge = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + 0.8);
timecharge = timecharge + 1;
if (timecharge > 70) {
timecharge = 0;
chargeanim.play();
anim.swapDepths(chargeanim);
}
hitarea1 = _x - 30;
hitarea2 = _x + 35;
if (_root.blowup) {
if ((_root.blowupX > hitarea1) && (_root.blowupX < hitarea2)) {
health = health - 1;
_root.blowup = false;
_root.player.time = 0;
if (health <= 0) {
destroyed();
} else {
hit();
}
}
}
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 258 MovieClip [ship_patrol] Frame 1
function destroyed() {
_root.shipkilled++;
_root.pricejump(100, _x, _y, _root.blowupbonus);
_root.createParticle("junk_patrol", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = (Math.random() / 2) + 1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + speed);
hitarea1 = _x - 30;
hitarea2 = _x + 30;
if (_root.blowup) {
if ((_root.blowupX > hitarea1) && (_root.blowupX < hitarea2)) {
_root.blowup = false;
_root.player.time = 0;
if (((_root.waveNo == 0) && (_root.hud.tutorial._currentframe > 1460)) && (_root.hud.tutorial._currentframe <= 1601)) {
_root.hud.tutorial.gotoAndPlay(1601);
}
destroyed();
}
}
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 262 MovieClip [ship_seeker] Frame 1
function destroyed() {
_root.shipkilled++;
_root.pricejump(200, _x, _y, _root.blowupbonus);
_root.createParticle("junk_seeker", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = (Math.random() / 4) + 0.6;
time = 50 + random(150);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + speed);
hitarea1 = _x - 32;
hitarea2 = _x + 35;
if (_root.blowup) {
if ((_root.blowupX > hitarea1) && (_root.blowupX < hitarea2)) {
_root.blowup = false;
_root.player.time = 0;
destroyed();
}
}
time = time + 1;
if (time >= 150) {
time = 0;
_root.createParticle("wep_torpedoHome", _x, _y + 5);
}
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 266 MovieClip [ship_seeker2] Frame 1
function destroyed() {
_root.shipkilled++;
_root.pricejump(250, _x, _y, _root.blowupbonus);
_root.createParticle("junk_seeker", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = (Math.random() / 4) + 0.6;
time = 50 + random(150);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + speed);
hitarea1 = _x - 32;
hitarea2 = _x + 35;
if (_root.blowup) {
if ((_root.blowupX > hitarea1) && (_root.blowupX < hitarea2)) {
_root.blowup = false;
_root.player.time = 0;
destroyed();
}
}
time = time + 1;
if (time >= 150) {
time = 0;
_root.createParticle("wep_torpedoHome2", _x, _y + 5);
}
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 267 MovieClip Frame 1
_alpha = 0;
Symbol 272 MovieClip [ship_sub] Frame 1
function destroyed() {
_root.shipkilled++;
_root.screenshake(10);
_root.pricejump(200, _x, _y);
_root.createParticle("junk_sube1", _x + 20, _y);
_root.createParticle("junk_sube2", _x - 20, _y);
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
removeMovieClip(this);
delete this.onEnterFrame;
}
_y = (150 + random(200));
speed = (Math.random() / 2) + 0.7;
time = random(100);
anim.shade._alpha = random(20);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + speed);
hitarea1 = _x - 25;
hitarea2 = _x + 20;
i = 0;
while (i < _root.Bullet.length) {
if (this.frame.hitTest(_root.Bullet[i]._x, _root.Bullet[i]._y, true)) {
_root.Bullet[i].destroyed();
_root.explosionsound();
destroyed();
}
i++;
}
time = time + 1;
if (time >= 120) {
_root.createParticle("wep_torpedoE", _x + 30, _y);
time = 0;
}
_root.createParticle("fx_bubbles2", _x - 40, _y);
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 277 MovieClip [ship_sub2] Frame 1
function destroyed() {
_root.shipkilled++;
_root.screenshake(10);
_root.pricejump(400, _x, _y);
_root.createParticle("junk_sub2e1", _x + 20, _y);
_root.createParticle("junk_sub2e2", _x - 20, _y);
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
removeMovieClip(this);
delete this.onEnterFrame;
}
_y = (150 + random(200));
speed = (Math.random() / 2) + 0.7;
time = random(100);
anim.shade._alpha = random(20) + 25;
health = 2;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + speed);
hitarea1 = _x - 25;
hitarea2 = _x + 20;
i = 0;
while (i < _root.Bullet.length) {
if (this.frame.hitTest(_root.Bullet[i]._x, _root.Bullet[i]._y, true)) {
health = health - 1;
_root.explosionsound();
if (health <= 0) {
_root.Bullet[i].destroyed();
destroyed();
} else {
j = 0;
while (j < 10) {
_root.createParticle("fx_splashbubbles", (_root.Bullet[i]._x + random(40)) - 20, (_root.Bullet[i]._y + random(40)) - 20);
_root.createParticle2("fx_missile", (_root.Bullet[i]._x + random(40)) - 20, (_root.Bullet[i]._y + random(40)) - 20);
j++;
}
_root.createParticle2("fx_underexplode", _root.Bullet[i]._x, _root.Bullet[i]._y);
_root.screenshake(8);
}
_root.Bullet[i].destroyed();
}
i++;
}
time = time + 1;
if (time >= 120) {
_root.createParticle("wep_torpedoCluster2", _x + 30, _y);
time = 0;
}
_root.createParticle("fx_bubbles2", _x - 40, _y);
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 282 MovieClip [ship_sub3] Frame 1
function destroyed() {
_root.shipkilled++;
_root.screenshake(10);
_root.pricejump(300, _x, _y);
_root.createParticle("junk_sub3e1", _x + 20, _y);
_root.createParticle("junk_sub3e2", _x - 20, _y);
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
removeMovieClip(this);
delete this.onEnterFrame;
}
_y = (150 + random(200));
speed = (Math.random() / 2) + 0.7;
time = random(100);
anim.shade._alpha = random(20) + 25;
health = 1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + speed);
hitarea1 = _x - 25;
hitarea2 = _x + 20;
i = 0;
while (i < _root.Bullet.length) {
if (this.frame.hitTest(_root.Bullet[i]._x, _root.Bullet[i]._y, true)) {
health = health - 1;
_root.explosionsound();
if (health <= 0) {
_root.Bullet[i].destroyed();
destroyed();
} else {
j = 0;
while (j < 10) {
_root.createParticle("fx_splashbubbles", (_root.Bullet[i]._x + random(40)) - 20, (_root.Bullet[i]._y + random(40)) - 20);
_root.createParticle2("fx_missile", (_root.Bullet[i]._x + random(40)) - 20, (_root.Bullet[i]._y + random(40)) - 20);
j++;
}
_root.createParticle2("fx_underexplode", _root.Bullet[i]._x, _root.Bullet[i]._y);
_root.screenshake(8);
}
_root.Bullet[i].destroyed();
}
i++;
}
time = time + 1;
if (time >= 120) {
_root.createParticle("wep_torpedoCluster", _x + 30, _y);
time = 0;
}
_root.createParticle("fx_bubbles2", _x - 40, _y);
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 60
_parent.pwn();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 20
_parent.anim.swapDepths(_parent.chargeanim);
Symbol 290 MovieClip Frame 30
gotoAndStop (1);
_root.createParticle2("wep_time", _parent._x - 3, _parent._y - 2);
Symbol 291 MovieClip [ship_timebomb] Frame 1
function hit() {
i = 0;
while (i < 2) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
}
function destroyed() {
_root.shipkilled++;
_root.pricejump(700, _x, _y, _root.blowupbonus);
_root.createParticle("junk_time", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode", _x, 100);
i = 0;
while (i < 5) {
_root.createParticle("fx_smoke", _x, 100);
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
anim.gotoAndPlay(random(anim._totalframes + 1));
health = 2;
time = 0;
timecharge = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.shipalive = true;
_x = (_x + 0.8);
timecharge = timecharge + 1;
if (timecharge > 70) {
timecharge = 0;
chargeanim.play();
anim.swapDepths(chargeanim);
}
hitarea1 = _x - 30;
hitarea2 = _x + 35;
if (_root.blowup) {
if ((_root.blowupX > hitarea1) && (_root.blowupX < hitarea2)) {
health = health - 1;
_root.blowup = false;
_root.player.time = 0;
if (health <= 0) {
destroyed();
} else {
hit();
}
}
}
if (_x > 750) {
_root.shipescaped++;
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 293 MovieClip [junk_mine] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
_alpha = 70;
rotationspeed = (Math.random() * 4) - 2;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 295 MovieClip [junk_patrol] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
_alpha = 70;
rotationspeed = (Math.random() * 4) - 2;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 296 MovieClip [junk_patrolpiece] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = (Math.random() * 8) - 4;
vy = (Math.random() * 4) - 6;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
hitwater = false;
_xscale = (random(50) + 50);
_yscale = _xscale;
_x = (_x + ((Math.random() * 20) - 10));
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (_y < 100) {
_root.createParticle("fx_fire", _x, _y);
}
vx = vx * 0.97;
if (_y < 100) {
vy = vy + 0.2;
}
if ((_y > 100) && (!hitwater)) {
hitwater = true;
vy = vy * 0.4;
}
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 410) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 298 MovieClip [junk_seeker] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 300 MovieClip [junk_sub1] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 302 MovieClip [junk_sub2] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 304 MovieClip [junk_sub2e1] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 306 MovieClip [junk_sub2e2] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 308 MovieClip [junk_sub3e1] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 310 MovieClip [junk_sub3e2] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 312 MovieClip [junk_sube1] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 314 MovieClip [junk_sube2] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 316 MovieClip [junk_time] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
vy = 2;
rotationspeed = (Math.random() * 4) - 2;
_alpha = 70;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", (_x + (Math.random() * 14)) - 7, (_y + (Math.random() * 14)) - 7);
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 318 MovieClip [wep_charge] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vy = Math.random() + 1;
rotationspeed = (Math.random() * 20) - 10;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_charge", (_x + (Math.random() * 6)) - 3, (_y - 2) - (Math.random() * 10));
vx = vx * 0.97;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_root.player.hitTest(_x, _y, true)) {
_root.explosionsound();
_root.playerhealth = _root.playerhealth - 100;
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
if (_y > 420) {
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 320 MovieClip [wep_missile] Frame 1
function destroyed() {
i = 0;
while (i < _root.Bullet.length) {
if (_root.Bullet[i] == this) {
_root.Bullet.splice(i, 1);
}
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
function detonate() {
_root.explosionsound();
_root.screenshake(5);
_root.blowup = true;
_root.blowupbonus = bonus;
_root.blowupX = _x;
_root.createParticle("fx_ripple", _x, 100);
_root["particle" + _root.particleI].facing = 1;
_root.createParticle("fx_ripple", _x, 100);
_root["particle" + _root.particleI].facing = -1;
i = 0;
while (i < 5) {
_root.createParticle("fx_splashwater", _x, 100);
_root.createParticle("fx_splashbubbles", _x, 100);
i++;
}
i = 0;
while (i < 2) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode2", _x, 100);
destroyed();
}
vy = 1;
bonus = Math.ceil((_y - 100) / 2);
_root.Bullet[_root.Bullet.length] = this;
_root.playsound("swish2");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", _x, _y + 10);
vy = vy * 1.02;
_y = (_y - vy);
if (_y <= 100) {
detonate();
}
if (_root.deleteall) {
destroyed();
}
}
};
Symbol 321 MovieClip [wep_time] Frame 1
function pwn() {
_root.explosionsound();
_root.screenshake(5);
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode2", _x, _y);
destroyed();
}
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vy = (Math.random() * 2) + 1.1;
rotationspeed = (Math.random() * 20) - 10;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vy > 0.8) {
_root.createParticle("fx_charge", _x, _y);
}
vx = vx * 0.97;
vy = vy * 0.99;
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
if (_root.player.hitTest(_x, _y, true)) {
_root.explosionsound();
_root.playerhealth = _root.playerhealth - 120;
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
if (_y > 420) {
destroyed();
}
if (vy < 0.3) {
reddot.play();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 323 MovieClip [wep_torpedoCluster] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
time = 0;
_root.playsound("swish");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", _x - 7, _y);
vx = vx * 1.02;
_x = (_x + vx);
if ((_x <= -20) || (_x >= 720)) {
destroyed();
}
if (_root.player.hitTest(_x, _y, true)) {
_root.playerhealth = _root.playerhealth - 100;
_root.explosionsound();
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
time = time + 1;
if (time >= 60) {
i = 0;
while (i < 10) {
_root.createParticle("fx_splashbubbles", (_x + random(20)) - 10, (_y + random(20)) - 10);
i++;
}
_root.playsound("emppop");
_root.createParticle("wep_torpedoSplit", _x, _y, 20);
_root.createParticle("wep_torpedoSplit", _x, _y, -20);
_root.createParticle("fx_split", _x, _y);
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 325 MovieClip [wep_torpedoCluster2] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
time = 0;
_root.playsound("swish");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", _x - 7, _y);
vx = vx * 1.02;
_x = (_x + vx);
if ((_x <= -20) || (_x >= 720)) {
destroyed();
}
if (_root.player.hitTest(_x, _y, true)) {
_root.playerhealth = _root.playerhealth - 100;
_root.explosionsound();
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
time = time + 1;
if (time >= 60) {
i = 0;
while (i < 10) {
_root.createParticle("fx_splashbubbles", (_x + random(20)) - 10, (_y + random(20)) - 10);
i++;
}
_root.playsound("emppop");
_root.createParticle("wep_torpedoSplit", _x, _y, 30);
_root.createParticle("wep_torpedoSplit", _x, _y, -30);
_root.createParticle("wep_torpedoSplit", _x, _y, 0);
_root.createParticle("fx_split", _x, _y);
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 327 MovieClip [wep_torpedoE] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
vx = 1;
_root.playsound("swish");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_root.createParticle("fx_missile", _x - 7, _y);
vx = vx * 1.02;
_x = (_x + vx);
if ((_x <= -20) || (_x >= 720)) {
destroyed();
}
if (_root.player.hitTest(_x, _y, true)) {
_root.playerhealth = _root.playerhealth - 100;
_root.explosionsound();
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 330 MovieClip [wep_torpedoHome] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 0.5;
_rotation = 90;
time = 0;
_alpha = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (((_x <= -20) || (_x >= 720)) || (_y > 415)) {
destroyed();
}
if (speed < 2) {
speed = speed * 1.05;
}
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + dirx);
_y = (_y + diry);
if (time > 20) {
_root.createParticle("fx_missile", _x - (dirx * 6), _y - (diry * 6));
}
if (time < 170) {
time = time + 1;
dx = _root.player._x - _x;
dy = _root.player._y - _y;
radians = Math.atan2(dy, dx);
degrees = (radians * 180) / Math.PI;
if (degrees > _rotation) {
_rotation = (_rotation + 0.6);
} else {
_rotation = (_rotation - 0.6);
}
} else {
reddot._alpha = 0;
}
if (_root.player.hitTest(_x, _y, true)) {
_root.explosionsound();
_root.playerhealth = _root.playerhealth - 100;
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 332 MovieClip [wep_torpedoHome2] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 0.5;
_rotation = 90;
time = 0;
_alpha = 0;
time2 = 0;
_root.playsound("swish");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (((_x <= -20) || (_x >= 720)) || (_y > 415)) {
destroyed();
}
if (speed < 2) {
speed = speed * 1.05;
}
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + dirx);
_y = (_y + diry);
if (time > 20) {
_root.createParticle("fx_missile", _x - (dirx * 6), _y - (diry * 6));
}
if (time < 170) {
time = time + 1;
dx = _root.player._x - _x;
dy = _root.player._y - _y;
radians = Math.atan2(dy, dx);
degrees = (radians * 180) / Math.PI;
if (degrees > _rotation) {
_rotation = (_rotation + 0.6);
} else {
_rotation = (_rotation - 0.6);
}
} else {
reddot._alpha = 0;
}
time2 = time2 + 1;
if (time2 >= 50) {
i = 0;
while (i < 10) {
_root.createParticle("fx_splashbubbles", (_x + random(20)) - 10, (_y + random(20)) - 10);
i++;
}
_root.playsound("emppop");
_root.createParticle("wep_torpedoSplit", _x, _y, _rotation + 25);
_root.createParticle("wep_torpedoSplit", _x, _y, _rotation - 25);
_root.createParticle("fx_split", _x, _y);
destroyed();
}
if (_root.player.hitTest(_x, _y, true)) {
_root.explosionsound();
_root.playerhealth = _root.playerhealth - 100;
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 334 MovieClip [wep_torpedoL] Frame 1
function destroyed() {
i = 0;
while (i < _root.Bullet.length) {
if (_root.Bullet[i] == this) {
_root.Bullet.splice(i, 1);
}
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_x < _root.player._x) {
vx = -2;
dir = -1;
} else {
_xscale = -100;
vx = 2;
dir = 1;
flipped = 1;
}
_root.Bullet[_root.Bullet.length] = this;
_root.playsound("swish2");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vx > 0) {
dir = 1;
} else {
dir = -1;
}
if (vx >= 3) {
flipped = 2;
}
if ((vx > -2) && (flipped == 2)) {
vx = vx - 0.2;
}
_root.createParticle("fx_missile", _x - (7 * dir), _y);
vx = vx * 1.03;
_x = (_x + vx);
if ((_x <= -20) || (_x >= 850)) {
if (((_root.waveNo == 0) && (_root.hud.tutorial._currentframe > 1841)) && (_root.hud.tutorial._currentframe < 1862)) {
_root.hud.tutorial.gotoAndPlay(1865);
}
destroyed();
}
if (_root.deleteall) {
destroyed();
}
}
};
Symbol 335 MovieClip [wep_torpedoR] Frame 1
function destroyed() {
i = 0;
while (i < _root.Bullet.length) {
if (_root.Bullet[i] == this) {
_root.Bullet.splice(i, 1);
}
i++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_x < _root.player._x) {
vx = -2;
dir = -1;
flipped = 1;
} else {
_xscale = -100;
vx = 2;
dir = 1;
}
_root.Bullet[_root.Bullet.length] = this;
_root.playsound("swish2");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vx > 0) {
dir = 1;
} else {
dir = -1;
}
if (vx <= -3) {
flipped = 2;
}
if ((vx < 2) && (flipped == 2)) {
vx = vx + 0.2;
}
_root.createParticle("fx_missile", _x - (7 * dir), _y);
vx = vx * 1.03;
_x = (_x + vx);
if ((_x <= -150) || (_x >= 720)) {
if (((_root.waveNo == 0) && (_root.hud.tutorial._currentframe > 1841)) && (_root.hud.tutorial._currentframe < 1862)) {
_root.hud.tutorial.gotoAndPlay(1865);
}
destroyed();
}
if (_root.deleteall) {
destroyed();
}
}
};
Symbol 337 MovieClip [wep_torpedoSplit] Frame 1
function destroyed() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 2;
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (((_x <= -20) || (_x >= 720)) || (_y > 415)) {
destroyed();
}
if (_y <= 100) {
i = 0;
while (i < 5) {
_root.createParticle("fx_splashbubbles", (_x + random(10)) - 5, _y + 5);
_root.createParticle("fx_splashwater", _x, 100);
i++;
}
i = 0;
while (i < 2) {
_root.createParticle("junk_patrolpiece", _x, 100);
i++;
}
_root.createParticle("fx_waterexplode2", _x, 100);
_root.createParticle("fx_ripple", _x, 100);
_root["particle" + _root.particleI].facing = 1;
_root.createParticle("fx_ripple", _x, 100);
_root["particle" + _root.particleI].facing = -1;
destroyed();
}
if (speed < 3) {
speed = speed * 1.02;
}
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + dirx);
_y = (_y + diry);
if (time > 20) {
_root.createParticle("fx_missile", _x - (dirx * 4), _y - (diry * 4));
}
if (time < 170) {
time = time + 1;
dx = _root.player._x - _x;
dy = _root.player._y - _y;
radians = Math.atan2(dy, dx);
degrees = (radians * 180) / Math.PI;
if (degrees > _rotation) {
_rotation = (_rotation + 0.4);
} else {
_rotation = (_rotation - 0.4);
}
} else {
reddot._alpha = 0;
}
if (_root.player.hitTest(_x, _y, true)) {
_root.explosionsound();
_root.playerhealth = _root.playerhealth - 100;
_root.shaketimer = 10;
i = 0;
while (i < 20) {
_root.createParticle("fx_splashbubbles", (_x + random(40)) - 20, (_y + random(40)) - 20);
_root.createParticle2("fx_missile", (_x + random(40)) - 20, (_y + random(40)) - 20);
i++;
}
_root.createParticle2("fx_underexplode", _x, _y);
destroyed();
}
if (_root.deleteall) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 368 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 1
wave2.gotoAndPlay(25);
wave1._alpha = 100;
wave2._alpha = 100;
Symbol 379 MovieClip Frame 1
this.swapDepths(_root.hudDepth + 1);
this.swapDepths(_root.hud);
toplink.onRelease = function () {
getURL ("http://www.ugotgames.com", _blank);
};
Symbol 382 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 1
stop();
if (!this.hitTest(_root.pointer)) {
frame2._alpha = 0;
}
this.onRollOver = function () {
if (_currentframe == 1) {
frame2._alpha = 20;
}
};
this.onRollOut = function () {
if (_currentframe == 1) {
frame2._alpha = 0;
}
};
this.onRelease = function () {
gotoAndPlay (2);
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(40);
}
};
Symbol 394 MovieClip Frame 1
stop();
if (!this.hitTest(_root.pointer)) {
frame2._alpha = 0;
}
this.onRollOver = function () {
if (_currentframe == 1) {
frame2._alpha = 20;
}
};
this.onRollOut = function () {
if (_currentframe == 1) {
frame2._alpha = 0;
}
};
this.onRelease = function () {
gotoAndPlay (2);
_parent.confirmanim.play();
if ((_parent.confirmanim._currentframe != 1) && (_root.fader._currentframe == 1)) {
_root.fader.gotoAndPlay(2);
_parent.confirmanim.gotoAndPlay(_parent.confirmanim._totalframes);
}
};
Symbol 407 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 1
_x = 450;
cashdisplay = "$" + _root.realplayercash;
progressdisplay = Math.ceil((_root.waveNo / 15) * 100) + "%";
Symbol 419 MovieClip Frame 1
_x = 450;
asdfasdf.onRelease = function () {
getURL ("http://www.thekevingu.com", _blank);
};
qwerqwer.onRelease = function () {
getURL ("http://www.incompetech.com", _blank);
};
Symbol 421 MovieClip Frame 1
_y = 340;
Symbol 424 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.ugotgames.com", _blank);
};
this.onRollOver = function () {
if (asdfasdfasdf._currentframe == 1) {
asdfasdfasdf.gotoAndStop(2);
}
};
this.onRollOut = function () {
if (asdfasdfasdf._currentframe == 2) {
asdfasdfasdf.gotoAndStop(1);
}
};
Symbol 427 MovieClip Frame 1
_x = 450;
Symbol 429 MovieClip Frame 1
stop();
if (!this.hitTest(_root.pointer)) {
frame2._alpha = 0;
}
this.onRollOver = function () {
if (_currentframe == 1) {
frame2._alpha = 20;
}
};
this.onRollOut = function () {
if (_currentframe == 1) {
frame2._alpha = 0;
}
};
this.onRelease = function () {
gotoAndPlay (2);
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(40);
_root.infinitymode = true;
}
};
Symbol 434 MovieClip Frame 1
_x = 450;
Symbol 436 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.clicked == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
Symbol 437 MovieClip Frame 1
select = 0;
clicked = 0;
btn1.tabEnabled = false;
btn2.tabEnabled = false;
btn3.tabEnabled = false;
btn4.tabEnabled = false;
this.onEnterFrame = function () {
if (select == 1) {
light._y = light._y + ((btn1._y - light._y) / 2);
} else if (select == 2) {
light._y = light._y + ((btn2._y - light._y) / 2);
} else if (select == 3) {
light._y = light._y + ((btn3._y - light._y) / 2);
} else if (select == 4) {
light._y = light._y + ((btn4._y - light._y) / 2);
}
if (_root.pointer.hitTest(area)) {
light._alpha = light._alpha + ((100 - light._alpha) / 2);
} else {
light._alpha = light._alpha + ((-light._alpha) / 2);
}
if (clicked == 0) {
menuline._y = menuline._y + ((340 - menuline._y) / 3);
} else {
menuline._y = menuline._y + ((-menuline._y) / 3);
}
if (clicked == 1) {
waveselect._x = waveselect._x + ((-waveselect._x) / 3);
waveselect._alpha = waveselect._alpha + ((100 - waveselect._alpha) / 5);
} else {
waveselect._x = waveselect._x + ((450 - waveselect._x) / 3);
waveselect._alpha = waveselect._alpha + ((-waveselect._alpha) / 5);
}
if (clicked == 2) {
survival._x = survival._x + ((-survival._x) / 3);
survival._alpha = survival._alpha + ((100 - survival._alpha) / 5);
} else {
survival._x = survival._x + ((450 - survival._x) / 3);
survival._alpha = survival._alpha + ((-survival._alpha) / 5);
}
if (clicked == 3) {
credits._x = credits._x + ((-credits._x) / 3);
credits._alpha = credits._alpha + ((100 - credits._alpha) / 5);
} else {
credits._x = credits._x + ((450 - credits._x) / 3);
credits._alpha = credits._alpha + ((-credits._alpha) / 5);
}
if (clicked == 4) {
sponsor._x = sponsor._x + ((-sponsor._x) / 3);
sponsor._alpha = sponsor._alpha + ((100 - sponsor._alpha) / 5);
} else {
sponsor._x = sponsor._x + ((450 - sponsor._x) / 3);
sponsor._alpha = sponsor._alpha + ((-sponsor._alpha) / 5);
}
};
btn1.onRelease = function () {
light.gotoAndPlay(2);
if (clicked != 1) {
clicked = 1;
} else {
clicked = 0;
}
};
btn2.onRelease = function () {
light.gotoAndPlay(2);
if (clicked != 2) {
clicked = 2;
} else {
clicked = 0;
}
};
btn3.onRelease = function () {
light.gotoAndPlay(2);
if (clicked != 3) {
clicked = 3;
} else {
clicked = 0;
}
};
btn4.onRelease = function () {
light.gotoAndPlay(2);
if (clicked != 4) {
clicked = 4;
} else {
clicked = 0;
}
};
btn1.onRollOver = function () {
select = 1;
};
btn2.onRollOver = function () {
select = 2;
};
btn3.onRollOver = function () {
select = 3;
};
btn4.onRollOver = function () {
select = 4;
};
Symbol 443 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 1
pauseexit.onRollOver = function () {
pauseexit.gotoAndStop(2);
};
pauseexit.onRollOut = function () {
pauseexit.gotoAndStop(1);
};
pauseexit.onRelease = function () {
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(140);
}
};
pauseresume.onRollOver = function () {
pauseresume.gotoAndStop(2);
};
pauseresume.onRollOut = function () {
pauseresume.gotoAndStop(1);
};
pauseresume.onRelease = function () {
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(40);
}
};
Symbol 474 MovieClip Frame 1
stop();
this.tabEnabled = false;
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
if (_parent._x == 0) {
_parent.slide = true;
}
};
Symbol 479 MovieClip Frame 1
stop();
this.tabEnabled = false;
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
if (_root.fader._currentframe == 1) {
_root.saveeverything();
_root.fader.gotoAndPlay(400);
}
};
Symbol 483 MovieClip Frame 1
this.tabEnabled = false;
stop();
this.onRollOver = function () {
if (_currentframe == 1) {
gotoAndStop (2);
}
};
this.onRollOut = function () {
if (_currentframe == 2) {
gotoAndStop (1);
}
};
Symbol 483 MovieClip Frame 10
gotoAndPlay (1);
Symbol 483 MovieClip Frame 18
gotoAndPlay (1);
Symbol 495 MovieClip Frame 1
function reload() {
cashdisplay = "$" + _root.realplayercash;
tagg1 = Math.pow(_root.level_speed, 2) * 400;
tagg2 = Math.pow(_root.level_armor, 2) * 400;
tagg3 = Math.pow(_root.level_fuel, 2) * 400;
tagg4 = Math.pow(_root.missiletube - 1, 2) * 400;
tag1 = "$" + (Math.pow(_root.level_speed, 2) * 400);
tag2 = "$" + (Math.pow(_root.level_armor, 2) * 400);
tag3 = "$" + (Math.pow(_root.level_fuel, 2) * 400);
tag4 = "$" + (Math.pow(_root.missiletube - 1, 2) * 400);
line1 = _root.level_speed;
line2 = _root.level_armor;
line3 = _root.level_fuel;
line4 = _root.missiletube;
if (_root.level_speed >= 5) {
tag1 = "MAXED";
btn1._y = -1000;
}
if (_root.level_armor >= 5) {
tag2 = "MAXED";
btn2._y = -1000;
}
if (_root.level_fuel >= 5) {
tag3 = "MAXED";
btn3._y = -1000;
}
if (_root.missiletube >= 6) {
tag4 = "MAXED";
btn4._y = -1000;
}
}
totalenemies = _root.shipkilled + _root.shipescaped;
cashearn = "$" + _root.playercash;
penalty = "-$" + (_root.shipescaped * 100);
totalearn = _root.playercash - (_root.shipescaped * 100);
if (totalearn <= 0) {
totalearn = 0;
}
_root.realplayercash = _root.realplayercash + totalearn;
_root.realtotalkills = _root.realtotalkills + _root.shipkilled;
this.onEnterFrame = function () {
if (slide) {
this._x = this._x + Math.round((-700 - _x) / 3);
}
};
reload();
btn1.onRelease = function () {
if ((btn1._currentframe <= 2) && (_root.level_speed < 5)) {
if (_root.realplayercash >= (Math.pow(_root.level_speed, 2) * 400)) {
btn1.gotoAndPlay(3);
_root.realplayercash = _root.realplayercash - (Math.pow(_root.level_speed, 2) * 400);
_root.level_speed = _root.level_speed + 1;
reload();
} else {
btn1.gotoAndPlay(11);
}
}
};
btn2.onRelease = function () {
if ((btn2._currentframe <= 2) && (_root.level_armor < 5)) {
if (_root.realplayercash >= (Math.pow(_root.level_armor, 2) * 400)) {
btn2.gotoAndPlay(3);
_root.realplayercash = _root.realplayercash - (Math.pow(_root.level_armor, 2) * 400);
_root.level_armor = _root.level_armor + 1;
reload();
} else {
btn2.gotoAndPlay(11);
}
}
};
btn3.onRelease = function () {
if ((btn3._currentframe <= 2) && (_root.level_fuel < 5)) {
if (_root.realplayercash >= (Math.pow(_root.level_fuel, 2) * 400)) {
btn3.gotoAndPlay(3);
_root.realplayercash = _root.realplayercash - (Math.pow(_root.level_fuel, 2) * 400);
_root.level_fuel = _root.level_fuel + 1;
reload();
} else {
btn3.gotoAndPlay(11);
}
}
};
btn4.onRelease = function () {
if ((btn4._currentframe <= 2) && (_root.missiletube < 6)) {
if (_root.realplayercash >= (Math.pow(_root.missiletube - 1, 2) * 400)) {
btn4.gotoAndPlay(3);
_root.realplayercash = _root.realplayercash - (Math.pow(_root.missiletube - 1, 2) * 400);
_root.missiletube = _root.missiletube + 1;
reload();
} else {
btn4.gotoAndPlay(11);
}
}
};
Symbol 499 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 112
stop();
Symbol 509 MovieClip Frame 1
pauseexit.onRollOver = function () {
pauseexit.gotoAndStop(2);
};
pauseexit.onRollOut = function () {
pauseexit.gotoAndStop(1);
};
pauseexit.onRelease = function () {
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(140);
}
};
Symbol 515 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 1
pauseexit.onRollOver = function () {
pauseexit.gotoAndStop(2);
};
pauseexit.onRollOut = function () {
pauseexit.gotoAndStop(1);
};
pauseexit.onRelease = function () {
if (_root.fader._currentframe == 1) {
_root.fader.gotoAndPlay(140);
}
};
cashdisplay = "$" + _root.playercash;
if (_root.playercash > _root.savedata.data.survivalcash) {
_root.savedata.data.survivalcash = _root.playercash;
_root.survivalcash = _root.playercash;
} else {
highscore.gotoAndStop(2);
}