Frame 1
Stage.showMenu = false;
var savefile = SharedObject.getLocal("SpaceFightersRevolution");
_root.highscore = savefile.data.hscore;
if (savefile.data.hscore == undefined) {
_root.highscore = 0;
}
beatgame = false;
speed = 7;
mission = 1;
ischeating = false;
haveminigame = true;
crosshaircolornum = 1;
crosshairnum = 1;
difficulty = "Veteran";
_quality = "LOW";
subtitles = true;
song1on = true;
song2on = true;
song3on = true;
song4on = true;
song5on = true;
song6on = true;
havecheat1 = false;
havecheat2 = false;
havecheat3 = false;
havecheat4 = false;
havecheat5 = false;
cheaton1 = false;
cheaton2 = false;
cheaton3 = false;
cheaton4 = false;
cheaton5 = false;
Instance of Symbol 7 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.percent);
}
Instance of Symbol 12 MovieClip in Frame 1
onClipEvent (load) {
mouse.hide();
this.startDrag(true);
}
Frame 2
loadedb = getBytesLoaded();
total = getBytesTotal();
percent = int((loadedb / total) * 100);
tellTarget (loadbar) {
gotoAndStop(percent);
};
Frame 3
if (total == loadedb) {
play();
} else {
gotoAndPlay (2);
}
Instance of Symbol 22 MovieClip "musiccontroller" in Frame 20
onClipEvent (load) {
this.gotoAndStop(1);
testplay = true;
}
Frame 49
stop();
Frame 60
stop();
Frame 69
gotoAndStop (49);
Frame 80
stop();
Frame 89
gotoAndStop (49);
Frame 116
gotoAndPlay (118);
Frame 118
function spawnAsteroid1() {
enemies++;
duplicateMovieClip (asteroid1, "enemy" + k, j);
area = random(4);
if (area == 0) {
_root["enemy" + k]._y = -85;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 1) {
_root["enemy" + k]._y = 650;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 2) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = -90;
}
if (area == 3) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = 940;
}
_root["enemy" + k].active = true;
_root.k++;
_root.j++;
}
function spawnAsteroid2() {
enemies++;
duplicateMovieClip (asteroid2, "enemy" + k, j);
area = random(4);
if (area == 0) {
_root["enemy" + k]._y = -85;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 1) {
_root["enemy" + k]._y = 650;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 2) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = -90;
}
if (area == 3) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = 940;
}
_root["enemy" + k].active = true;
_root.k++;
_root.j++;
}
function spawnMine1() {
enemies++;
duplicateMovieClip (mine1, "enemy" + k, j);
area = random(4);
if (area == 0) {
_root["enemy" + k]._y = -85;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 1) {
_root["enemy" + k]._y = 650;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 2) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = -90;
}
if (area == 3) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = 940;
}
_root["enemy" + k].active = true;
_root.k++;
_root.j++;
}
function spawnMine2() {
enemies++;
duplicateMovieClip (mine2, "enemy" + k, j);
area = random(4);
if (area == 0) {
_root["enemy" + k]._y = -85;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 1) {
_root["enemy" + k]._y = 650;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 2) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = -90;
}
if (area == 3) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = 940;
}
_root["enemy" + k].active = true;
_root.k++;
_root.j++;
}
function spawnShip1() {
enemies++;
duplicateMovieClip (eship1, "enemy" + k, j);
area = random(4);
if (area == 0) {
_root["enemy" + k]._y = -85;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 1) {
_root["enemy" + k]._y = 650;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 2) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = -90;
}
if (area == 3) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = 940;
}
_root["enemy" + k].active = true;
_root.k++;
_root.j++;
}
function spawnShip2() {
enemies++;
duplicateMovieClip (eship2, "enemy" + k, j);
area = random(4);
if (area == 0) {
_root["enemy" + k]._y = -85;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 1) {
_root["enemy" + k]._y = 650;
_root["enemy" + k]._x = random(Stage.width);
}
if (area == 2) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = -90;
}
if (area == 3) {
_root["enemy" + k]._y = random(Stage.height);
_root["enemy" + k]._x = 940;
}
_root["enemy" + k].active = true;
_root.k++;
_root.j++;
}
function addtime() {
time = time + 1;
}
i = 0;
j = 0;
k = 0;
backframe = random(5) + 1;
enemies = 0;
enemies = 0;
shots = 0;
hits = 0;
canmove = true;
score = 0;
messagenum = 1;
messages = 0;
canrecharge = true;
speedup = false;
rechargeup = false;
srechargeup = false;
maxenergyup = false;
powerup = false;
powerups = 0;
power = 20;
energy = 325;
maxenergy = 325;
armor = 500;
maxarmor = 500;
shields = 500;
maxshields = 500;
recharge = 1;
srecharge = 1;
shiptarget = "none";
if (_root.cheaton3 == true) {
missiles = 99;
} else {
missiles = 10;
}
if (_root.cheaton3 == true) {
torpedos = 99;
} else {
torpedos = 8;
}
if (cheaton5 == true) {
speed = 15;
} else {
speed = 7;
}
time = 0;
stoptime = setInterval(addtime, 1000);
Instance of Symbol 194 MovieClip "back" in Frame 118
onClipEvent (load) {
this.gotoAndStop(_root.backframe);
}
Instance of Symbol 197 MovieClip in Frame 118
onClipEvent (load) {
_root.asteroid1.active = false;
_root.asteroid2.active = false;
_root.asteroid3.active = false;
_root.mine1.active = false;
_root.mine2.active = false;
_root.eship1.active = false;
_root.eship2.active = false;
}
Instance of Symbol 199 MovieClip "leftwall" in Frame 118
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship) && (_root.ship.moveleft > 0)) {
if (_root.ship.moveleft > 7) {
_root.ship.moveleft = _root.ship.moveleft - 5;
}
_root.ship.moveleft = _root.ship.moveleft - 0.5;
}
}
Instance of Symbol 199 MovieClip "rightwall" in Frame 118
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship) && (_root.ship.moveright > 0)) {
if (_root.ship.moveright > 7) {
_root.ship.moveright = _root.ship.moveright - 5;
}
_root.ship.moveright = _root.ship.moveright - 0.5;
}
}
Instance of Symbol 199 MovieClip "lowerwall" in Frame 118
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship) && (_root.ship.movedown > 0)) {
if (_root.ship.movedown > 7) {
_root.ship.movedown = _root.ship.movedown - 5;
}
_root.ship.movedown = _root.ship.movedown - 0.5;
}
}
Instance of Symbol 199 MovieClip "upperwall" in Frame 118
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship) && (_root.ship.moveup > 0)) {
if (_root.ship.moveup > 7) {
_root.ship.moveup = _root.ship.moveup - 5;
}
_root.ship.moveup = _root.ship.moveup - 0.5;
}
}
Instance of Symbol 208 MovieClip "asteroid1" in Frame 118
onClipEvent (load) {
chance = 100;
rotate = random(5) + 4;
change = random(2);
if (change == 1) {
rotate = rotate * -1;
}
dead = false;
armor = 250 + random(30);
movex = (random(10) + 5) / 4;
movey = (random(10) + 5) / 4;
change = random(2);
if (change == 1) {
movex = movex * -1;
}
change = random(2);
if (change == 1) {
movey = movey * -1;
}
}
onClipEvent (enterFrame) {
if (active == true) {
this._rotation = this._rotation + rotate;
this._x = this._x + movex;
this._y = this._y + movey;
if ((this._x > 875) && (movex > 0)) {
this._x = -25;
}
if ((this._x < -25) && (movex < 0)) {
this._x = 875;
}
if ((this._y > 625) && (movey > 0)) {
this._y = -25;
}
if ((this._y < -25) && (movey < 0)) {
this._y = 625;
}
j = _root.i - 10;
while (j <= _root.i) {
if (this.hitTest(_root["bullet" + j]._x, _root["bullet" + j]._y) && (this.hitTest(_root["bullet" + j]))) {
_root["bullet" + j].play();
if (_root.cheaton4 == true) {
armor = 0;
}
if (_root["bullet" + j].active == true) {
armor = armor - ((_root["bullet" + j].damage + random(5)) + 5);
_root["bullet" + j].active = false;
}
}
j++;
}
if ((this.hitTest(_root.ship.hitship1) || (this.hitTest(_root.ship.hitship2))) || (this.hitTest(_root.ship.hitship3))) {
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - 40;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - 50;
_root.ship.shield.gotoAndStop(4);
}
sendhity = int((Math.sin(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
sendhitx = int((Math.cos(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
if (sendhitx > 0) {
_root.ship.moveleft = sendhitx;
_root.ship.moveright = 0;
}
if (sendhitx < 0) {
_root.ship.moveright = sendhitx * -1;
_root.ship.moveleft = 0;
}
if (sendhity < 0) {
_root.ship.moveup = sendhity * -1;
_root.ship.movedown = 0;
}
if (sendhity > 0) {
_root.ship.movedown = sendhity;
_root.ship.moveup = 0;
}
movex = movex + sendhitx;
movey = movey + (sendhity * -1);
if (movex > 4) {
movex = 4;
}
if (movex < -4) {
movex = -4;
}
if (movey > 4) {
movey = 4;
}
if (movey < -4) {
movey = -4;
}
}
if ((armor <= 0) && (dead == false)) {
_root.enemies--;
if (_root.enemies == 0) {
_root.nextFrame();
}
dead = true;
play();
a = random(chance);
if (a < 15) {
p = random(5) + 1;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 25) {
p = random(2) + 10;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 35) {
p = random(4) + 6;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
}
_root.score = _root.score + 100;
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Destroyed Asteroid - +100 Points";
_root.kills = _root.kills + 1;
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
}
Instance of Symbol 210 MovieClip "asteroid2" in Frame 118
onClipEvent (load) {
chance = 100;
rotate = random(5) + 4;
change = random(2);
if (change == 1) {
rotate = rotate * -1;
}
dead = false;
armor = 250 + random(30);
movex = (random(10) + 5) / 4;
movey = (random(10) + 5) / 4;
change = random(2);
if (change == 1) {
movex = movex * -1;
}
change = random(2);
if (change == 1) {
movey = movey * -1;
}
}
onClipEvent (enterFrame) {
if (active == true) {
this._rotation = this._rotation + rotate;
this._x = this._x + movex;
this._y = this._y + movey;
if ((this._x > 875) && (movex > 0)) {
this._x = -25;
}
if ((this._x < -25) && (movex < 0)) {
this._x = 875;
}
if ((this._y > 625) && (movey > 0)) {
this._y = -25;
}
if ((this._y < -25) && (movey < 0)) {
this._y = 625;
}
j = _root.i - 10;
while (j <= _root.i) {
if (this.hitTest(_root["bullet" + j]._x, _root["bullet" + j]._y) && (this.hitTest(_root["bullet" + j]))) {
_root["bullet" + j].play();
if (_root.cheaton4 == true) {
armor = 0;
}
if (_root["bullet" + j].active == true) {
armor = armor - ((_root["bullet" + j].damage + random(5)) + 5);
_root["bullet" + j].active = false;
}
}
j++;
}
if ((this.hitTest(_root.ship.hitship1) || (this.hitTest(_root.ship.hitship2))) || (this.hitTest(_root.ship.hitship3))) {
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - 40;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - 50;
_root.ship.shield.gotoAndStop(4);
}
sendhity = int((Math.sin(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
sendhitx = int((Math.cos(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
if (sendhitx > 0) {
_root.ship.moveleft = sendhitx;
_root.ship.moveright = 0;
}
if (sendhitx < 0) {
_root.ship.moveright = sendhitx * -1;
_root.ship.moveleft = 0;
}
if (sendhity < 0) {
_root.ship.moveup = sendhity * -1;
_root.ship.movedown = 0;
}
if (sendhity > 0) {
_root.ship.movedown = sendhity;
_root.ship.moveup = 0;
}
movex = movex + sendhitx;
movey = movey + (sendhity * -1);
if (movex > 4) {
movex = 4;
}
if (movex < -4) {
movex = -4;
}
if (movey > 4) {
movey = 4;
}
if (movey < -4) {
movey = -4;
}
}
if ((armor <= 0) && (dead == false)) {
_root.enemies--;
if (_root.enemies == 0) {
_root.nextFrame();
}
dead = true;
play();
a = random(chance);
if (a < 15) {
p = random(5) + 1;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 25) {
p = random(2) + 10;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 35) {
p = random(4) + 6;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
}
_root.score = _root.score + 100;
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Destroyed Asteroid - +100 Points";
_root.kills = _root.kills + 1;
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
}
Instance of Symbol 217 MovieClip "mine1" in Frame 118
onClipEvent (load) {
chance = 95;
armor = 300 + random(40);
hitship = false;
dead = false;
rotate = random(3) + 2;
change = random(2);
if (change == 1) {
rotate = rotate * -1;
}
smokeon = false;
}
onClipEvent (enterFrame) {
if (active == true) {
this._x = this._x - movex;
this._y = this._y + movey;
this._rotation = this._rotation + rotate;
if (dead == true) {
if (movex > 0) {
movex = movex - 1;
}
if (movex < 0) {
movex = movex + 1;
}
if (movey > 0) {
movex = movex - 1;
}
if (movex < 0) {
movex = movex + 1;
}
}
if (dead == false) {
x = this._x - _root.ship._x;
y = _root.ship._y - this._y;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
movey = int((Math.sin(angle * (Math.PI/180)) / (Math.PI/180)) / 16);
movex = int((Math.cos(angle * (Math.PI/180)) / (Math.PI/180)) / 16);
j = _root.i - 10;
while (j <= _root.i) {
if (this.hitTest(_root["bullet" + j]._x, _root["bullet" + j]._y) && (this.hitTest(_root["bullet" + j]))) {
_root["bullet" + j].play();
if (_root.cheaton4 == true) {
armor = 0;
}
if (_root["bullet" + j].active == true) {
armor = armor - ((_root["bullet" + j].damage + random(5)) + 5);
_root["bullet" + j].active = false;
}
}
j++;
}
}
if (((this.hitTest(_root.ship.hitship1) || (this.hitTest(_root.ship.hitship2))) || (this.hitTest(_root.ship.hitship3))) && (dead == false)) {
hitship = true;
armor = 0;
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - 160;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - 85;
_root.ship.shield.gotoAndStop(4);
}
sendhity = int((Math.sin(hitangle * (Math.PI/180)) / (Math.PI/180)) / 15);
sendhitx = int((Math.cos(hitangle * (Math.PI/180)) / (Math.PI/180)) / 15);
if (sendhitx > 0) {
_root.ship.moveleft = sendhitx;
_root.ship.moveright = 0;
}
if (sendhitx < 0) {
_root.ship.moveright = sendhitx * -1;
_root.ship.moveleft = 0;
}
if (sendhity < 0) {
_root.ship.moveup = sendhity * -1;
_root.ship.movedown = 0;
}
if (sendhity > 0) {
_root.ship.movedown = sendhity;
_root.ship.moveup = 0;
}
}
if ((armor < 80) && (smokeon == false)) {
k = _root.j;
duplicateMovieClip (_root.smokefollow, "smokefollow" + k, _root.j);
_root["smokefollow" + k].gotoAndPlay(2);
_root.j = _root.j + 1;
smokeon = true;
}
if (smokeon == true) {
if (armor >= 80) {
_root["smokefollow" + k].removeMovieClip();
smokeon = false;
} else {
_root["smokefollow" + k].play();
_root["smokefollow" + k]._y = this._y;
_root["smokefollow" + k]._x = this._x;
}
}
if ((armor <= 0) && (dead == false)) {
_root.enemies--;
if (_root.enemies == 0) {
_root.nextFrame();
}
if (hitship == false) {
a = random(chance);
} else {
a = 100;
}
if (a < 15) {
p = random(5) + 1;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 25) {
p = random(2) + 10;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 35) {
p = random(4) + 6;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
}
if (hitship == false) {
_root.score = _root.score + 150;
} else {
_root.score = _root.score + 50;
}
_root["smokefollow" + k].removeMovieClip();
if (_root.messages == 5) {
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
if (hitship == false) {
_root["showmessage" + _root.messagenum].message = "Destroyed Mine - +150 Points";
} else {
_root["showmessage" + _root.messagenum].message = "Destroyed Mine (Impact) - +50 Points";
}
_root.kills = _root.kills + 1;
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
i = _root.j;
duplicateMovieClip (_root.explosion3S, "explosion" + i, _root.j);
_root.j = _root.j + 1;
_root["explosion" + i]._rotation = random(360) + 1;
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
tellTarget (_root["explosion" + i]) {
gotoAndPlay (2);
};
play();
dead = true;
}
if (dead == true) {
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
}
}
}
Instance of Symbol 220 MovieClip "mine2" in Frame 118
onClipEvent (load) {
chance = 95;
armor = 375 + random(30);
hitship = false;
dead = false;
rotate = random(3) + 2;
change = random(2);
if (change == 1) {
rotate = rotate * -1;
}
movex = (random(3) + 11) / 4;
movey = (random(3) + 11) / 4;
change = random(2);
if (change == 1) {
movex = movex * -1;
}
change = random(2);
if (change == 1) {
movey = movey * -1;
}
smokeon = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (movex > 0) {
movex = movex * 0.9;
}
if (movex < 0) {
movex = movex * 0.9;
}
if (movey > 0) {
movey = movey * 0.9;
}
if (movex < 0) {
movey = movey * 0.9;
}
}
this._rotation = this._rotation + rotate;
this._x = this._x + movex;
this._y = this._y + movey;
if ((this._x > 875) && (movex > 0)) {
this._x = -25;
}
if ((this._x < -25) && (movex < 0)) {
this._x = 875;
}
if ((this._y > 625) && (movey > 0)) {
this._y = -25;
}
if ((this._y < -25) && (movey < 0)) {
this._y = 625;
}
j = _root.i - 10;
while (j <= _root.i) {
if (this.hitTest(_root["bullet" + j]._x, _root["bullet" + j]._y) && (this.hitTest(_root["bullet" + j]))) {
_root["bullet" + j].play();
if (_root.cheaton4 == true) {
armor = 0;
}
if (_root["bullet" + j].active == true) {
armor = armor - ((_root["bullet" + j].damage + random(5)) + 5);
_root["bullet" + j].active = false;
}
}
j++;
}
if (((this.hitTest(_root.ship.hitship1) || (this.hitTest(_root.ship.hitship2))) || (this.hitTest(_root.ship.hitship3))) && (dead == false)) {
hitship = true;
armor = 0;
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - 160;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - 70;
_root.ship.shield.gotoAndStop(4);
}
}
if ((armor < 80) && (smokeon == false)) {
k = _root.j;
duplicateMovieClip (_root.smokefollow, "smokefollow" + k, _root.j);
_root["smokefollow" + k].gotoAndPlay(2);
_root.j = _root.j + 1;
smokeon = true;
}
if (smokeon == true) {
if (armor >= 80) {
_root["smokefollow" + k].removeMovieClip();
smokeon = false;
} else {
_root["smokefollow" + k].play();
_root["smokefollow" + k]._y = this._y;
_root["smokefollow" + k]._x = this._x;
}
}
if ((armor <= 0) && (dead == false)) {
_root.enemies--;
if (_root.enemies == 0) {
_root.nextFrame();
}
if (hitship == false) {
a = random(chance);
} else {
a = 100;
}
if (a < 15) {
p = random(5) + 1;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 25) {
p = random(2) + 10;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 35) {
p = random(4) + 6;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
}
if (hitship == false) {
_root.score = _root.score + 120;
} else {
_root.score = _root.score + 30;
}
_root["smokefollow" + k].removeMovieClip();
if (_root.messages == 5) {
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
if (hitship == false) {
_root["showmessage" + _root.messagenum].message = "Destroyed Mine - +120 Points";
} else {
_root["showmessage" + _root.messagenum].message = "Destroyed Mine (Impact) - +30 Points";
}
_root.kills = _root.kills + 1;
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
i = _root.j;
duplicateMovieClip (_root.explosion3S, "explosion" + i, _root.j);
_root.j = _root.j + 1;
_root["explosion" + i]._rotation = random(360) + 1;
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
tellTarget (_root["explosion" + i]) {
gotoAndPlay (2);
};
play();
dead = true;
}
if (dead == true) {
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
}
}
}
Instance of Symbol 222 MovieClip "ebullet" in Frame 118
onClipEvent (load) {
damage = 5;
active = true;
}
onClipEvent (enterFrame) {
if ((active = true)) {
if (_root.ship.hitTest(this._x, this._y)) {
active = false;
this.play();
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - damage;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - damage;
_root.ship.shield.gotoAndStop(4);
}
}
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
}
}
Instance of Symbol 233 MovieClip "eship1" in Frame 118
onClipEvent (load) {
speed = 5;
chance = 60;
dead = false;
hitwall = false;
armor = 500 + random(100);
smokeon = false;
targetx = random(800) + 30;
targety = random(600) + 30;
hittarget = false;
moveright = 0;
moveleft = 0;
movedown = 0;
moveup = 0;
tx = targetx - this._x;
ty = this._y - targety;
angle = Math.atan(ty / tx) / (Math.PI/180);
if (tx < 0) {
angle = angle + 180;
}
if ((tx >= 0) && (ty < 0)) {
angle = angle + 360;
}
movey = int((Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
movex = int((Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
if (movex > 0) {
moveright = movex;
}
if (movex < 0) {
moveleft = movex * -1;
}
if (movey > 0) {
movedown = movey;
}
if (movey < 0) {
moveup = movey * -1;
}
}
onClipEvent (enterFrame) {
this._x = this._x + goright;
this._x = this._x - goleft;
this._y = this._y + godown;
this._y = this._y - goup;
if (active == true) {
if (((((this.hitTest(_root.rightwall) || (this.hitTest(_root.leftwall))) || (this.hitTest(_root.upperwall))) || (this.hitTest(_root.lowerwall))) && (hitwall == false)) && (dead == false)) {
hitwall = true;
hittarget = true;
} else {
hitwall = false;
}
if ((hittarget == true) && (dead == false)) {
moveup = 0;
moveright = 0;
moveleft = 0;
movedown = 0;
targetx = random(800) + 30;
targety = random(600) + 30;
hittarget = false;
tx = targetx - this._x;
ty = this._y - targety;
angle = Math.atan(ty / tx) / (Math.PI/180);
if (tx < 0) {
angle = angle + 180;
}
if ((tx >= 0) && (y < 0)) {
angle = angle + 360;
}
movey = int((Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
movex = int((Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
if (movex > 0) {
moveright = movex;
}
if (movex < 0) {
moveleft = movex * -1;
}
if (movey > 0) {
movedown = movey;
}
if (movey < 0) {
moveup = movey * -1;
}
}
if (this.hitTest(targetx, targety)) {
hittarget = true;
}
if (dead == false) {
if (goright < moveright) {
goright = goright + 0.5;
} else if (goright > moveright) {
goright = goright - 0.5;
}
if (goleft < moveleft) {
goleft = goleft + 0.5;
} else if (goleft > moveleft) {
goleft = goleft - 0.5;
}
if (goup < moveup) {
goup = goup + 0.5;
} else if (goup > moveup) {
goup = goup - 0.5;
}
if (godown < movedown) {
godown = godown + 0.5;
} else if (godown > movedown) {
godown = godown - 0.5;
}
}
j = _root.i - 10;
while (j <= _root.i) {
if (this.hitTest(_root["bullet" + j]._x, _root["bullet" + j]._y) && (this.hitTest(_root["bullet" + j]))) {
_root["bullet" + j].play();
if (_root.cheaton4 == true) {
armor = 0;
}
if (_root["bullet" + j].active == true) {
armor = armor - ((_root["bullet" + j].damage + random(5)) + 5);
_root["bullet" + j].active = false;
}
}
j++;
}
if ((this.hitTest(_root.ship.hitship1) || (this.hitTest(_root.ship.hitship2))) || (this.hitTest(_root.ship.hitship3))) {
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - 40;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - 50;
_root.ship.shield.gotoAndStop(4);
}
sendhity = int((Math.sin(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
sendhitx = int((Math.cos(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
if (sendhitx > 0) {
_root.ship.moveleft = sendhitx;
_root.ship.moveright = 0;
goright = sendhitx;
goleft = 0;
}
if (sendhitx < 0) {
_root.ship.moveright = sendhitx * -1;
_root.ship.moveleft = 0;
goleft = sendhitx * -1;
goright = 0;
}
if (sendhity < 0) {
_root.ship.moveup = sendhity * -1;
_root.ship.movedown = 0;
godown = sendhity * -1;
goup = 0;
}
if (sendhity > 0) {
_root.ship.movedown = sendhity;
_root.ship.moveup = 0;
goup = sendhity;
godown = 0;
}
}
if ((armor < 100) && (smokeon == false)) {
_root.enemies--;
if (_root.enemies == 0) {
_root.nextFrame();
}
k = _root.j;
duplicateMovieClip (_root.smokefollow, "smokefollow" + k, _root.j);
_root["smokefollow" + k].gotoAndPlay(2);
_root.j = _root.j + 1;
smokeon = true;
}
if (smokeon == true) {
if (armor >= 100) {
_root["smokefollow" + k].removeMovieClip();
smokeon = false;
} else {
_root["smokefollow" + k].play();
_root["smokefollow" + k]._y = this._y;
_root["smokefollow" + k]._x = this._x;
}
}
if ((armor <= 0) && (dead == false)) {
a = random(chance);
if (a < 15) {
p = random(5) + 1;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 25) {
p = random(2) + 10;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 35) {
p = random(4) + 6;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
}
_root.score = _root.score + 300;
_root["smokefollow" + k].removeMovieClip();
if (_root.messages == 5) {
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Destroyed Fighter - +300 Points";
_root.kills = _root.kills + 1;
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
i = _root.j;
duplicateMovieClip (_root.explosion2S, "explosion" + i, _root.j);
_root.j = _root.j + 1;
_root["explosion" + i]._rotation = random(360) + 1;
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
tellTarget (_root["explosion" + i]) {
gotoAndPlay (2);
};
play();
dead = true;
}
if (dead == true) {
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
if (goright > 0) {
goright = goright - 0.5;
}
if (goleft > 0) {
goleft = goleft - 0.5;
}
if (goup > 0) {
goup = goup - 0.5;
}
if (godown > 0) {
godown = godown - 0.5;
}
}
}
}
Instance of Symbol 247 MovieClip "eship2" in Frame 118
onClipEvent (load) {
speed = 4;
chance = 50;
dead = false;
hitwall = false;
armor = 650 + random(100);
smokeon = false;
targetx = random(800) + 30;
targety = random(600) + 30;
hittarget = false;
moveright = 0;
moveleft = 0;
movedown = 0;
moveup = 0;
tx = targetx - this._x;
ty = this._y - targety;
angle = Math.atan(ty / tx) / (Math.PI/180);
if (tx < 0) {
angle = angle + 180;
}
if ((tx >= 0) && (y < 0)) {
angle = angle + 360;
}
movey = int((Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
movex = int((Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
if (movex > 0) {
moveright = movex;
}
if (movex < 0) {
moveleft = movex * -1;
}
if (movey > 0) {
movedown = movey;
}
if (movey < 0) {
moveup = movey * -1;
}
}
onClipEvent (enterFrame) {
this._x = this._x + goright;
this._x = this._x - goleft;
this._y = this._y + godown;
this._y = this._y - goup;
if (active == true) {
if (((((this.hitTest(_root.rightwall) || (this.hitTest(_root.leftwall))) || (this.hitTest(_root.upperwall))) || (this.hitTest(_root.lowerwall))) && (hitwall == false)) && (dead == false)) {
hitwall = true;
hittarget = true;
} else {
hitwall = false;
}
if ((hittarget == true) && (dead == false)) {
moveup = 0;
moveright = 0;
moveleft = 0;
movedown = 0;
targetx = random(800) + 30;
targety = random(600) + 30;
hittarget = false;
tx = targetx - this._x;
ty = this._y - targety;
angle = Math.atan(ty / tx) / (Math.PI/180);
if (tx < 0) {
angle = angle + 180;
}
if ((tx >= 0) && (y < 0)) {
angle = angle + 360;
}
movey = int((Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
movex = int((Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 8);
if (movex > 0) {
moveright = movex;
}
if (movex < 0) {
moveleft = movex * -1;
}
if (movey > 0) {
movedown = movey;
}
if (movey < 0) {
moveup = movey * -1;
}
}
if (this.hitTest(targetx, targety)) {
hittarget = true;
}
if (dead == false) {
if (goright < moveright) {
goright = goright + 0.5;
} else if (goright > moveright) {
goright = goright - 0.5;
}
if (goleft < moveleft) {
goleft = goleft + 0.5;
} else if (goleft > moveleft) {
goleft = goleft - 0.5;
}
if (goup < moveup) {
goup = goup + 0.5;
} else if (goup > moveup) {
goup = goup - 0.5;
}
if (godown < movedown) {
godown = godown + 0.5;
} else if (godown > movedown) {
godown = godown - 0.5;
}
}
j = _root.i - 10;
while (j <= _root.i) {
if (this.hitTest(_root["bullet" + j]._x, _root["bullet" + j]._y) && (this.hitTest(_root["bullet" + j]))) {
_root["bullet" + j].play();
if (_root.cheaton4 == true) {
armor = 0;
}
if (_root["bullet" + j].active == true) {
armor = armor - ((_root["bullet" + j].damage + random(5)) + 5);
_root["bullet" + j].active = false;
}
}
j++;
}
if ((this.hitTest(_root.ship.hitship1) || (this.hitTest(_root.ship.hitship2))) || (this.hitTest(_root.ship.hitship3))) {
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - 40;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - 50;
_root.ship.shield.gotoAndStop(4);
}
sendhity = int((Math.sin(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
sendhitx = int((Math.cos(hitangle * (Math.PI/180)) / (Math.PI/180)) / 8);
if (sendhitx > 0) {
_root.ship.moveleft = sendhitx;
_root.ship.moveright = 0;
goright = sendhitx;
goleft = 0;
}
if (sendhitx < 0) {
_root.ship.moveright = sendhitx * -1;
_root.ship.moveleft = 0;
goleft = sendhitx * -1;
goright = 0;
}
if (sendhity < 0) {
_root.ship.moveup = sendhity * -1;
_root.ship.movedown = 0;
godown = sendhity * -1;
goup = 0;
}
if (sendhity > 0) {
_root.ship.movedown = sendhity;
_root.ship.moveup = 0;
goup = sendhity;
godown = 0;
}
}
if ((armor < 100) && (smokeon == false)) {
_root.enemies--;
if (_root.enemies == 0) {
_root.nextFrame();
}
k = _root.j;
duplicateMovieClip (_root.smokefollow, "smokefollow" + k, _root.j);
_root["smokefollow" + k].gotoAndPlay(2);
_root.j = _root.j + 1;
smokeon = true;
}
if (smokeon == true) {
if (armor >= 100) {
_root["smokefollow" + k].removeMovieClip();
smokeon = false;
} else {
_root["smokefollow" + k].play();
_root["smokefollow" + k]._y = this._y;
_root["smokefollow" + k]._x = this._x;
}
}
if ((armor <= 0) && (dead == false)) {
a = random(chance);
if (a < 15) {
p = random(5) + 1;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 25) {
p = random(2) + 10;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
} else if (a < 35) {
p = random(4) + 6;
duplicateMovieClip (_root["getpowerup" + p], "powerup" + _root.j, _root.j);
_root["powerup" + _root.j]._x = this._x;
_root["powerup" + _root.j]._y = this._y;
_root["powerup" + _root.j].x = (random(10) - 5) / (random(5) + 5);
_root["powerup" + _root.j].y = (random(10) - 5) / (random(5) + 5);
_root.j = _root.j + 1;
}
_root.score = _root.score + 300;
_root["smokefollow" + k].removeMovieClip();
if (_root.messages == 5) {
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Destroyed Attacker - +325 Points";
_root.kills = _root.kills + 1;
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
i = _root.j;
duplicateMovieClip (_root.explosion4S, "explosion" + i, _root.j);
_root.j = _root.j + 1;
_root["explosion" + i]._rotation = random(360) + 1;
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
tellTarget (_root["explosion" + i]) {
gotoAndPlay (2);
};
play();
dead = true;
}
if (dead == true) {
_root["explosion" + i]._x = this._x;
_root["explosion" + i]._y = this._y;
if (goright > 0) {
goright = goright - 0.5;
}
if (goleft > 0) {
goleft = goleft - 0.5;
}
if (goup > 0) {
goup = goup - 0.5;
}
if (godown > 0) {
godown = godown - 0.5;
}
}
}
}
Instance of Symbol 249 MovieClip "ebullet2" in Frame 118
onClipEvent (load) {
damage = 7;
active = true;
}
onClipEvent (enterFrame) {
if ((active = true)) {
if (_root.ship.hitTest(this._x, this._y)) {
active = false;
this.play();
hitx = this._x - _root.ship._x;
hity = _root.ship._y - this._y;
hitangle = Math.atan(hity / hitx) / (Math.PI/180);
if (hitx < 0) {
hitangle = hitangle + 180;
}
if ((hitx >= 0) && (hity < 0)) {
hitangle = hitangle + 360;
}
if (_root.shields > 0) {
_root.ship.shield._rotation = hitangle * -1;
if (_root.cheaton1 == false) {
_root.shields = _root.shields - damage;
}
_root.ship.shield.gotoAndStop(2);
} else {
tellTarget (_root.shieldcount) {
gotoAndPlay (3);
};
_root.armor = _root.armor - damage;
_root.ship.shield.gotoAndStop(4);
}
}
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
}
}
Instance of Symbol 251 MovieClip "bullet" in Frame 118
onClipEvent (load) {
_root.shots = _root.shots + 1;
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
}
Instance of Symbol 253 MovieClip "slug" in Frame 118
onClipEvent (load) {
_root.shots = _root.shots + 1;
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
}
Instance of Symbol 262 MovieClip "torpedo" in Frame 118
onClipEvent (load) {
_root.shots = _root.shots + 1;
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
}
Instance of Symbol 271 MovieClip "missile" in Frame 118
onClipEvent (load) {
_root.shots = _root.shots + 1;
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
}
Instance of Symbol 350 MovieClip "ship" in Frame 118
onClipEvent (load) {
dead = false;
smokeon = false;
_root.weapon = 1;
moveright = 0;
moveleft = 0;
moveup = 0;
movedown = 0;
}
onClipEvent (enterFrame) {
if ((_root.armor < 80) && (smokeon == false)) {
duplicateMovieClip (_root.smokefollow, "smokefollowship", _root.j);
_root.smokefollowship.gotoAndPlay(2);
_root.j = _root.j + 1;
smokeon = true;
}
if (smokeon == true) {
if (_root.armor >= 80) {
_root.smokefollowship.removeMovieClip();
smokeon = false;
} else {
_root.smokefollowship.play();
_root.smokefollowship._y = this._y;
_root.smokefollowship._x = this._x;
}
}
if ((_root.armor <= 0) && (dead == false)) {
tellTarget (_root.deadplay) {
play();
};
_root.smokefollowship.removeMovieClip();
if (_root.messages == 5) {
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "You have died. Mission failed...";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
duplicateMovieClip (_root.explosion1S, "explosionship", _root.j);
_root.j = _root.j + 1;
_root.explosionship._rotation = random(360) + 1;
_root.explosionship._x = this._x;
_root.explosionship._y = this._y;
tellTarget (_root.explosionship) {
gotoAndPlay (2);
};
play();
dead = true;
}
if (dead == true) {
_root.explosionship._x = this._x;
_root.explosionship._y = this._y;
}
if (((Key.isDown(39) || (Key.isDown(68))) && (dead == false)) && (_root.canmove == true)) {
if (this.hitTest(_root.rightwall)) {
} else if (moveright < _root.speed) {
moveright = moveright + 1;
}
} else if (moveright > 0) {
moveright = moveright - 0.5;
}
this._x = this._x + moveright;
if (((Key.isDown(37) || (Key.isDown(65))) && (dead == false)) && (_root.canmove == true)) {
if (this.hitTest(_root.leftwall)) {
} else if (moveleft < _root.speed) {
moveleft = moveleft + 1;
}
} else if (moveleft > 0) {
moveleft = moveleft - 0.5;
}
this._x = this._x - moveleft;
if (((Key.isDown(38) || (Key.isDown(87))) && (dead == false)) && (_root.canmove == true)) {
if (this.hitTest(_root.upperwall)) {
} else if (moveup < _root.speed) {
moveup = moveup + 1;
}
} else if (moveup > 0) {
moveup = moveup - 0.5;
}
this._y = this._y - moveup;
if (((Key.isDown(40) || (Key.isDown(83))) && (dead == false)) && (_root.canmove == true)) {
if (this.hitTest(_root.lowerwall)) {
} else if (movedown < _root.speed) {
movedown = movedown + 1;
}
} else if (movedown > 0) {
movedown = movedown - 0.5;
}
this._y = this._y + movedown;
if (moveright < 0) {
moveright = 0;
}
if (moveleft < 0) {
moveleft = 0;
}
if (moveup < 0) {
moveup = 0;
}
if (movedown < 0) {
movedown = 0;
}
}
Instance of Symbol 357 MovieClip "getpowerup10" in Frame 118
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (active == true)) {
active = false;
this.play();
_root.torpedos = _root.torpedos + 3;
if (_root.torpedos > 99) {
_root.torpedos = 99;
}
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Torpedos Aquired - 3";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
Instance of Symbol 360 MovieClip "getpowerup9" in Frame 118
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (active == true)) {
this.play();
active = false;
_root.armor = _root.armor + 200;
if (_root.armor > _root.maxarmor) {
_root.armor = _root.maxarmor;
}
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Armor Pickup Aquired";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
Instance of Symbol 362 MovieClip "getpowerup2" in Frame 118
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (_root.rechargeup == false)) {
_root.showrechargeup._x = 823 - (_root.powerups * 50);
tellTarget (_root.showrechargeup) {
play();
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Energy Recharge Rate Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
} else if (_root.ship.hitTest(this._x, this._y)) {
tellTarget (_root.showrechargeup) {
gotoAndPlay (3);
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Energy Recharge Rate Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
}
}
Instance of Symbol 364 MovieClip "getpowerup1" in Frame 118
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (_root.speedup == false)) {
_root.showspeedup._x = 823 - (_root.powerups * 50);
tellTarget (_root.showspeedup) {
play();
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Ship Speed Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
} else if (_root.ship.hitTest(this._x, this._y)) {
tellTarget (_root.showspeedup) {
gotoAndPlay (3);
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Ship Speed Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
}
}
Instance of Symbol 366 MovieClip "getpowerup5" in Frame 118
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (_root.srechargeup == false)) {
_root.showsrechargeup._x = 823 - (_root.powerups * 50);
tellTarget (_root.showsrechargeup) {
play();
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Shield Recharge Rate Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
} else if (_root.ship.hitTest(this._x, this._y)) {
tellTarget (_root.showsrechargeup) {
gotoAndPlay (3);
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Shield Recharge Rate Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
}
}
Instance of Symbol 368 MovieClip "getpowerup3" in Frame 118
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (_root.maxenergyup == false)) {
_root.showmaxenergyup._x = 823 - (_root.powerups * 50);
tellTarget (_root.showmaxenergyup) {
play();
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Maximum Weapon Energy Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
} else if (_root.ship.hitTest(this._x, this._y)) {
tellTarget (_root.showmaxenergyup) {
gotoAndPlay (3);
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Maximum Weapon Energy Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
}
}
Instance of Symbol 370 MovieClip "getpowerup4" in Frame 118
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (_root.powerup == false)) {
_root.showpowerup._x = 823 - (_root.powerups * 50);
tellTarget (_root.showpowerup) {
play();
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Weapon Power Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
} else if (_root.ship.hitTest(this._x, this._y)) {
tellTarget (_root.showpowerup) {
gotoAndPlay (3);
};
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Weapon Power Increased - 30 Seconds";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
this.removeMovieClip();
}
}
Instance of Symbol 372 MovieClip "getpowerup8" in Frame 118
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (active == true)) {
active = false;
this.play();
_root.armor = _root.maxarmor;
_root.shields = _root.maxshields;
_root.energy = _root.maxenergy;
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Full Regeneration Pickup Aquired";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
Instance of Symbol 374 MovieClip "getpowerup7" in Frame 118
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (active == true)) {
active = false;
this.play();
_root.armor = _root.armor + (_root.maxarmor / 2);
_root.shields = _root.shields + (_root.maxshields / 2);
if (_root.armor > _root.maxarmor) {
_root.armor = _root.maxarmor;
}
if (_root.shields > _root.maxshields) {
_root.shields = _root.maxshields;
}
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Half Regeneration Pickup Aquired";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
Instance of Symbol 376 MovieClip "getpowerup6" in Frame 118
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (active == true)) {
active = false;
this.play();
_root.shields = _root.shields + 150;
if (_root.shields > _root.maxshields) {
_root.shields = _root.maxshields;
}
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Shield Pickup Aquired";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
Instance of Symbol 381 MovieClip "smoke" in Frame 118
onClipEvent (enterFrame) {
if (del == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.ship)) {
if ((_root.ship.moveright > 0) && (this.x < 1)) {
this.x = this.x + 0.1;
}
if ((_root.ship.moveleft > 0) && (this.x > -1)) {
this.x = this.x - 0.1;
}
if ((_root.ship.moveup > 0) && (this.y > -1)) {
this.y = this.y - 0.1;
}
if ((_root.ship.movedown > 0) && (this.y < 1)) {
this.y = this.y + 0.1;
}
}
this._x = this._x + x;
this._y = this._y + y;
}
Instance of Symbol 386 MovieClip "debris" in Frame 118
onClipEvent (enterFrame) {
this._x = this._x + x;
this._y = this._y + y;
}
Instance of Symbol 449 MovieClip "getpowerup11" in Frame 118
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((((this._x > 875) || (this._x < -25)) || (this._y < -25)) || (this._y > 625)) {
this.removeMovieClip();
}
this._x = this._x + x;
this._y = this._y + y;
if (_root.ship.hitTest(this._x, this._y) && (active == true)) {
active = false;
this.play();
_root.missiles = _root.missiles + 4;
if (_root.missiles > 99) {
_root.missiles = 99;
}
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Missiles Aquired - 4";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
}
}
Instance of Symbol 492 MovieClip "energybar" in Frame 118
onClipEvent (load) {
this.gotoAndStop(100);
this.swapDepths(100001);
}
onClipEvent (enterFrame) {
if (_root.ship.dead == false) {
this.gotoAndStop(int((_root.energy / _root.maxenergy) * 100));
} else {
this.gotoAndStop(1);
}
if (_root.energy < _root.maxenergy) {
_root.energy = _root.energy + _root.recharge;
}
}
Instance of Symbol 501 MovieClip "weaponhud" in Frame 118
onClipEvent (load) {
this.swapDepths(100000);
}
Instance of Symbol 526 MovieClip "hullhud" in Frame 118
onClipEvent (load) {
this.swapDepths(100003);
}
Instance of Symbol 539 MovieClip "showmaxenergyup" in Frame 118
onClipEvent (load) {
this.swapDepths(100008);
}
onClipEvent (enterFrame) {
if (_root.ship.dead == true) {
this.gotoAndStop(1);
this._x = 950;
}
}
Instance of Symbol 549 MovieClip "showsrechargeup" in Frame 118
onClipEvent (load) {
this.swapDepths(100009);
}
onClipEvent (enterFrame) {
if (_root.ship.dead == true) {
this.gotoAndStop(1);
this._x = 950;
}
}
Instance of Symbol 552 MovieClip "showmessage" in Frame 118
onClipEvent (enterFrame) {
if (remove == true) {
this.removeMovieClip();
}
if (this._y <= 506) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
this._y = this._y + 14;
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
}
Instance of Symbol 557 MovieClip "shieldcount" in Frame 118
onClipEvent (enterFrame) {
if ((_root.canrecharge == true) && (_root.shields < _root.maxshields)) {
_root.shields = _root.shields + _root.srecharge;
}
if (_root.ship.dead == true) {
_root.shields = 0;
}
if ((_root.canrecharge == false) && (_root.shields > 0)) {
this.gotoAndStop(1);
}
if ((_root.shields <= 0) && (_root.ship.dead == false)) {
_root.canrecharge = false;
this.play();
}
}
onClipEvent (enterFrame) {
if (_root.shields < 0) {
_root.shields = 0;
}
if (_root.shields > _root.maxshields) {
_root.shields = _root.maxshields;
}
}
Instance of Symbol 559 MovieClip "schargehud" in Frame 118
onClipEvent (load) {
this.swapDepths(100004);
}
onClipEvent (enterFrame) {
if ((_root.canrecharge == false) && (_root.ship.dead == false)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 562 MovieClip "scorehud" in Frame 118
onClipEvent (load) {
this.swapDepths(100002);
}
Instance of Symbol 572 MovieClip "showpowerup" in Frame 118
onClipEvent (load) {
this.swapDepths(100005);
}
onClipEvent (enterFrame) {
if (_root.ship.dead == true) {
this.gotoAndStop(1);
this._x = 950;
}
}
Instance of Symbol 582 MovieClip "showrechargeup" in Frame 118
onClipEvent (load) {
this.swapDepths(100006);
}
onClipEvent (enterFrame) {
if (_root.ship.dead == true) {
this.gotoAndStop(1);
this._x = 950;
}
}
Instance of Symbol 592 MovieClip "showspeedup" in Frame 118
onClipEvent (load) {
this.swapDepths(100007);
}
onClipEvent (enterFrame) {
if (_root.ship.dead == true) {
this.gotoAndStop(1);
this._x = 950;
}
}
Instance of Symbol 594 MovieClip "deadplay" in Frame 118
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 22 MovieClip "musiccontroller" in Frame 118
onClipEvent (load) {
testplay = false;
havesong = false;
if ((((((_root.song1on == false) && (_root.song2on == false)) && (_root.song3on == false)) && (_root.song4on == false)) && (_root.song5on == false)) && (_root.song6on == false)) {
this.gotoAndStop(1);
} else {
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
this.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
this.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
this.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
this.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
this.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
this.gotoAndStop(7);
}
}
}
}
Instance of Symbol 96 MovieClip "crosshair" in Frame 118
onClipEvent (load) {
_root.crosshaircolor = new Color(_root.crosshair);
this.swapDepths(1000010);
this.startDrag(true);
this.gotoAndStop(_root.crosshairnum);
if (_root.crosshaircolornum == 1) {
_root.crosshaircolor.setRGB(16777215);
}
if (_root.crosshaircolornum == 2) {
_root.crosshaircolor.setRGB(16711680);
}
if (_root.crosshaircolornum == 3) {
_root.crosshaircolor.setRGB(65280);
}
if (_root.crosshaircolornum == 4) {
_root.crosshaircolor.setRGB(255);
}
if (_root.crosshaircolornum == 5) {
_root.crosshaircolor.setRGB(16776960);
}
if (_root.crosshaircolornum == 6) {
_root.crosshaircolor.setRGB(65535);
}
if (_root.crosshaircolornum == 7) {
_root.crosshaircolor.setRGB(16711935);
}
}
onClipEvent (enterFrame) {
x = this._x - _root.ship._x;
y = _root.ship._y - this._y;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
_root.ship.turret._rotation = angle * -1;
}
Frame 142
stop();
spawnAsteroid1();
Frame 143
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid1();
Frame 144
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid1();
Frame 145
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid1();
spawnMine2();
Frame 146
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid2();
spawnMine2();
spawnMine2();
Frame 147
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnMine2();
spawnMine1();
spawnMine1();
Frame 148
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnMine2();
spawnMine1();
spawnMine1();
spawnMine2();
Frame 149
spawnMine2();
spawnMine2();
spawnMine2();
spawnMine2();
spawnMine1();
spawnMine1();
Frame 150
spawnMine1();
spawnMine1();
spawnMine1();
spawnMine1();
spawnMine1();
spawnMine2();
Frame 151
spawnMine2();
spawnMine2();
spawnMine2();
spawnMine2();
spawnMine2();
spawnMine2();
Frame 152
spawnMine2();
spawnMine2();
spawnMine2();
spawnMine1();
spawnMine1();
spawnMine1();
spawnAsteroid2();
spawnAsteroid1();
Frame 153
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid1();
Frame 154
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid2();
spawnShip1();
Frame 155
spawnAsteroid2();
spawnAsteroid1();
spawnMine2();
spawnShip1();
Frame 156
spawnAsteroid2();
spawnAsteroid1();
spawnShip1();
spawnShip1();
Frame 157
spawnAsteroid2();
spawnAsteroid1();
spawnMine2();
spawnShip1();
spawnShip1();
Frame 158
spawnAsteroid2();
spawnMine1();
spawnMine2();
spawnShip1();
Frame 159
spawnMine2();
spawnMine2();
spawnMine2();
spawnShip1();
Frame 160
spawnMine1();
spawnMine1();
spawnMine2();
spawnMine2();
spawnShip1();
spawnShip1();
Frame 161
spawnShip1();
spawnShip1();
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid2();
spawnMine1();
Frame 162
spawnShip2();
spawnMine2();
Frame 163
spawnShip2();
spawnMine1();
spawnMine1();
Frame 164
spawnMine1();
spawnMine1();
spawnMine1();
spawnShip2();
spawnAsteroid1();
spawnAsteroid2();
Frame 165
spawnShip2();
spawnShip2();
spawnMine2();
Frame 166
spawnShip2();
spawnShip2();
spawnShip1();
Frame 167
spawnShip2();
spawnShip2();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid1();
Frame 168
spawnShip1();
spawnShip1();
spawnShip2();
Frame 169
spawnShip1();
spawnShip1();
spawnShip1();
spawnShip1();
Frame 170
spawnShip1();
spawnShip2();
spawnShip2();
Frame 171
spawnShip1();
spawnShip1();
spawnShip2();
spawnShip2();
spawnShip1();
Frame 172
spawnShip2();
spawnShip2();
spawnShip2();
spawnShip2();
Frame 173
spawnShip2();
spawnShip2();
spawnShip2();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid1();
Frame 174
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid1();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid2();
spawnAsteroid2();
Frame 175
spawnMine1();
spawnMine1();
spawnMine2();
spawnShip1();
spawnShip1();
spawnShip2();
Frame 176
spawnShip1();
spawnShip1();
spawnShip1();
spawnShip1();
spawnShip1();
Frame 177
spawnShip1();
spawnShip1();
spawnShip2();
spawnShip2();
spawnShip2();
Frame 178
play();
Frame 197
removeMovieClip(_root.weaponhud);
removeMovieClip(_root.energybar);
removeMovieClip(_root.scorehud);
removeMovieClip(_root.endmhud);
removeMovieClip(_root.crosshair);
removeMovieClip(_root.hullhud);
removeMovieClip(_root.schargehud);
removeMovieClip(_root.showpowerup);
removeMovieClip(_root.showrechargeup);
removeMovieClip(_root.showspeedup);
removeMovieClip(_root.showenergyup);
removeMovieClip(_root.showsrechargeup);
tellTarget (_root.ship) {
play();
};
clearInterval(stoptime);
a = 0;
while (a <= j) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["powerup" + a]);
a++;
}
deleteenemies = true;
Instance of Symbol 194 MovieClip in Frame 204
onClipEvent (load) {
this.gotoAndStop(_root.mission);
}
Instance of Symbol 12 MovieClip in Frame 232
onClipEvent (load) {
mouse.hide();
this.startDrag(true);
}
Frame 246
if (difficulty == "Recruit") {
multi = 1;
}
if (difficulty == "Veteran") {
multi = 1.5;
}
if (difficulty == "Elite") {
multi = 2;
}
code = random(5);
if (code == 0) {
code = "Prophecy agent";
} else if (code == 1) {
code = "Power to the masses";
} else if (code == 2) {
code = "Fully loaded";
} else if (code == 3) {
code = "Achilles bit the dust";
} else if (code == 4) {
code = "Turbo charged";
}
accuracy = int((hits / shots) * 100);
bonus = int(((accuracy * 5) + (multi * kills)) + (time / 10));
fscore = score + bonus;
mins = 0;
time = int(time);
while (time >= 60) {
mins = mins + 1;
time = time - 60;
}
if (time < 10) {
time = "0" + time;
}
ftime = (mins + ":") + time;
if ((fscore > highscore) and (!ischeating)) {
highscore = fscore;
savefile.data.hscore = _root.fscore;
}
Frame 247
stop();
deleteenemies = false;
Frame 276
gotoAndPlay (20);
Symbol 7 MovieClip Frame 100
stop();
Symbol 15 MovieClip Frame 1664
havesong = false;
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
_parent.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
_parent.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
_parent.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
_parent.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
_parent.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
_parent.gotoAndStop(7);
}
}
Symbol 16 MovieClip Frame 2227
havesong = false;
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
_parent.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
_parent.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
_parent.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
_parent.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
_parent.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
_parent.gotoAndStop(7);
}
}
Symbol 18 MovieClip Frame 1248
havesong = false;
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
_parent.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
_parent.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
_parent.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
_parent.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
_parent.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
_parent.gotoAndStop(7);
}
}
Symbol 19 MovieClip Frame 2135
havesong = false;
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
_parent.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
_parent.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
_parent.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
_parent.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
_parent.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
_parent.gotoAndStop(7);
}
}
Symbol 20 MovieClip Frame 1560
havesong = false;
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
_parent.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
_parent.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
_parent.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
_parent.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
_parent.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
_parent.gotoAndStop(7);
}
}
Symbol 21 MovieClip Frame 1767
havesong = false;
while (havesong == false) {
gotosong = random(6);
if ((gotosong == 0) && (_root.song1on == true)) {
havesong = true;
_parent.gotoAndStop(6);
} else if ((gotosong == 1) && (_root.song2on == true)) {
havesong = true;
_parent.gotoAndStop(8);
} else if ((gotosong == 2) && (_root.song3on == true)) {
havesong = true;
_parent.gotoAndStop(5);
} else if ((gotosong == 3) && (_root.song4on == true)) {
havesong = true;
_parent.gotoAndStop(2);
} else if ((gotosong == 4) && (_root.song5on == true)) {
havesong = true;
_parent.gotoAndStop(3);
} else if ((gotosong == 5) && (_root.song6on == true)) {
havesong = true;
_parent.gotoAndStop(7);
}
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 50 Button
on (press) {
gotoAndStop (117);
}
Symbol 51 Button
on (press) {
gotoAndPlay (70);
}
Symbol 52 Button
on (press) {
gotoAndPlay (50);
}
Symbol 53 Button
on (press) {
_root.gotoAndPlay("gotogame");
}
Symbol 54 Button
on (press) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 60 Button
on (press) {
tellTarget (_root) {
play();
};
tellTarget (_root.musiccontroller) {
gotoAndStop (1);
};
}
Symbol 65 Button
on (press) {
_root.difficulty = "Veteran";
tellTarget (difficultyhover) {
gotoAndStop (2);
};
}
Symbol 66 Button
on (press) {
_root.difficulty = "Elite";
tellTarget (difficultyhover) {
gotoAndStop (3);
};
}
Symbol 67 Button
on (press) {
_root.difficulty = "Recruit";
tellTarget (difficultyhover) {
gotoAndStop (1);
};
}
Symbol 68 Button
on (press) {
_root._quality = "LOW";
tellTarget (qualityhover) {
gotoAndStop (1);
};
}
Symbol 69 Button
on (press) {
_root._quality = "MEDIUM";
tellTarget (qualityhover) {
gotoAndStop (2);
};
}
Symbol 70 Button
on (press) {
_root._quality = "HIGH";
tellTarget (qualityhover) {
gotoAndStop (3);
};
}
Symbol 71 Button
on (press) {
_root.subtitles = true;
tellTarget (subtitleshover) {
gotoAndStop (1);
};
}
Symbol 72 Button
on (press) {
_root.subtitles = false;
tellTarget (subtitleshover) {
gotoAndStop (2);
};
}
Symbol 73 Button
on (press) {
_root.song1on = true;
tellTarget (song1hover) {
gotoAndStop (1);
};
}
Symbol 74 Button
on (press) {
_root.song1on = false;
tellTarget (song1hover) {
gotoAndStop (2);
};
}
Symbol 75 Button
on (press) {
_root.song2on = true;
tellTarget (song2hover) {
gotoAndStop (1);
};
}
Symbol 76 Button
on (press) {
_root.song2on = false;
tellTarget (song2hover) {
gotoAndStop (2);
};
}
Symbol 77 Button
on (press) {
_root.song3on = true;
tellTarget (song3hover) {
gotoAndStop (1);
};
}
Symbol 78 Button
on (press) {
_root.song3on = false;
tellTarget (song3hover) {
gotoAndStop (2);
};
}
Symbol 79 Button
on (press) {
_root.song4on = true;
tellTarget (song4hover) {
gotoAndStop (1);
};
}
Symbol 80 Button
on (press) {
_root.song4on = false;
tellTarget (song4hover) {
gotoAndStop (2);
};
}
Symbol 81 Button
on (press) {
_root.song5on = true;
tellTarget (song5hover) {
gotoAndStop (1);
};
}
Symbol 82 Button
on (press) {
_root.song5on = false;
tellTarget (song5hover) {
gotoAndStop (2);
};
}
Symbol 83 Button
on (press) {
_root.song6on = true;
tellTarget (song6hover) {
gotoAndStop (1);
};
}
Symbol 84 Button
on (press) {
_root.song6on = false;
tellTarget (song6hover) {
gotoAndStop (2);
};
}
Symbol 102 Button
on (press) {
if (_root.crosshaircolornum == 7) {
_root.crosshaircolornum = 1;
} else {
_root.crosshaircolornum++;
}
crosshaircolordisp.gotoAndStop(_root.crosshaircolornum);
}
Symbol 103 Button
on (press) {
if (_root.crosshaircolornum == 1) {
_root.crosshaircolornum = 7;
} else {
_root.crosshaircolornum--;
}
crosshaircolordisp.gotoAndStop(_root.crosshaircolornum);
}
Symbol 104 Button
on (press) {
if (_root.crosshairnum == 11) {
_root.crosshairnum = 1;
} else {
_root.crosshairnum++;
}
showcrosshair.gotoAndStop(_root.crosshairnum);
}
Symbol 105 Button
on (press) {
if (_root.crosshairnum == 1) {
_root.crosshairnum = 11;
} else {
_root.crosshairnum--;
}
showcrosshair.gotoAndStop(_root.crosshairnum);
}
Symbol 127 MovieClip Frame 1
_parent.showcrosshaircolor.setRGB(16777215);
Symbol 127 MovieClip Frame 2
_parent.showcrosshaircolor.setRGB(16711680);
Symbol 127 MovieClip Frame 3
_parent.showcrosshaircolor.setRGB(65280);
Symbol 127 MovieClip Frame 4
_parent.showcrosshaircolor.setRGB(255);
Symbol 127 MovieClip Frame 5
_parent.showcrosshaircolor.setRGB(16776960);
Symbol 127 MovieClip Frame 6
_parent.showcrosshaircolor.setRGB(65535);
Symbol 127 MovieClip Frame 7
_parent.showcrosshaircolor.setRGB(16711935);
Symbol 131 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (6);
};
tellTarget (showplaying) {
gotoAndStop (2);
};
}
Symbol 134 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (1);
};
this.gotoAndStop(1);
}
Symbol 136 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (8);
};
tellTarget (showplaying) {
gotoAndStop (2);
};
}
Symbol 137 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (5);
};
tellTarget (showplaying) {
gotoAndStop (2);
};
}
Symbol 138 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (2);
};
tellTarget (showplaying) {
gotoAndStop (2);
};
}
Symbol 139 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (3);
};
tellTarget (showplaying) {
gotoAndStop (2);
};
}
Symbol 140 Button
on (press) {
tellTarget (_root.musiccontroller) {
gotoAndStop (7);
};
tellTarget (showplaying) {
gotoAndStop (2);
};
}
Symbol 141 MovieClip Frame 1
showcrosshaircolor = new Color(showcrosshair);
Instance of Symbol 96 MovieClip "showcrosshair" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.crosshairnum);
}
Instance of Symbol 109 MovieClip "difficultyhover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.difficulty);
}
Instance of Symbol 113 MovieClip "qualityhover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root._quality);
}
Instance of Symbol 116 MovieClip "subtitleshover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.subtitles == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip "song1hover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.song1on == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip "song2hover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.song2on == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip "song3hover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.song3on == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip "song4hover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.song4on == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip "song5hover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.song5on == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 119 MovieClip "song6hover" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
if (_root.song6on == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 127 MovieClip "crosshaircolordisp" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.crosshaircolornum);
}
Instance of Symbol 135 MovieClip "showplaying" in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 144 Button
on (press) {
if (_root.havecheat1 == false) {
tellTarget (cheat1hover) {
play();
};
} else {
tellTarget (cheat1hover) {
gotoAndStop (10);
};
_root.cheaton1 = true;
}
}
Symbol 145 Button
on (press) {
_root.cheat1on = false;
tellTarget (cheat1hover) {
gotoAndStop (1);
};
}
Symbol 146 Button
on (press) {
if (_root.havecheat2 == false) {
tellTarget (cheat2hover) {
play();
};
} else {
tellTarget (cheat2hover) {
gotoAndStop (10);
};
_root.cheaton2 = true;
}
}
Symbol 147 Button
on (press) {
_root.cheat2on = false;
tellTarget (cheat2hover) {
gotoAndStop (1);
};
}
Symbol 148 Button
on (press) {
if (_root.havecheat3 == false) {
tellTarget (cheat3hover) {
play();
};
} else {
tellTarget (cheat3hover) {
gotoAndStop (10);
};
_root.cheaton3 = true;
}
}
Symbol 149 Button
on (press) {
_root.cheat3on = false;
tellTarget (cheat3hover) {
gotoAndStop (1);
};
}
Symbol 150 Button
on (press) {
if (_root.havecheat4 == false) {
tellTarget (cheat4hover) {
play();
};
} else {
tellTarget (cheat4hover) {
gotoAndStop (10);
};
_root.cheaton4 = true;
}
}
Symbol 151 Button
on (press) {
_root.cheat4on = false;
tellTarget (cheat4hover) {
gotoAndStop (1);
};
}
Symbol 152 Button
on (press) {
if (_root.havecheat5 == false) {
tellTarget (cheat5hover) {
play();
};
} else {
tellTarget (cheat5hover) {
gotoAndStop (10);
};
_root.cheaton5 = true;
}
}
Symbol 153 Button
on (press) {
_root.cheat5on = false;
tellTarget (cheat5hover) {
gotoAndStop (1);
};
}
Symbol 156 Button
on (press) {
if ((((((_root.cheaton1 == true) || (_root.cheaton2 == true)) || (_root.cheaton3 == true)) || (_root.cheaton4 == true)) || (_root.cheaton5 == true)) || (_root.cheaton6 == true)) {
_root.ischeating = true;
} else {
_root.ischeating = false;
}
tellTarget (_root) {
play();
};
}
Symbol 161 Button
on (press) {
getURL ("http://www.newgrounds.com/portal/view.php?id=191795", "_blank");
}
Symbol 166 Button
on (press) {
if (code == "Prophecy agent") {
_root.havecheat1 = true;
code = "Unlocked Cheat!";
} else if (code == "Power to the masses") {
_root.havecheat2 = true;
code = "Unlocked Cheat!";
} else if (code == "Fully loaded") {
_root.havecheat3 = true;
code = "Unlocked Cheat!";
} else if (code == "Achilles bit the dust") {
_root.havecheat4 = true;
code = "Unlocked Cheat!";
} else if (code == "Turbo charged") {
_root.havecheat5 = true;
code = "Unlocked Cheat!";
} else if (code == "Not a code...") {
code = "Try typing something else in first";
} else if (code == "Try typing something else in first") {
code = "You don't listen very well...";
} else if (code == "You don't listen very well...") {
code = "You have a keyboard. Use it.";
} else if (code == "You have a keyboard. Use it.") {
code = "I dare you to hit that one more time.";
} else if (code == "I dare you to hit that one more time.") {
code = "Well I can't really do much...";
} else if (code == "Well I can't really do much...") {
code = "I'm done talking to you.";
} else if (((code == "sex") || (code == "sexy")) || (code == "naked")) {
code = "This is not a porno game";
} else if (code == "George Bush") {
code = "Oh great. Another four years...";
} else if (code == "Star Wars") {
code = "Use the force!";
} else if (code == "1337") {
code = "I r teh haxx0rz j00 n00b. w00t11@!!";
} else {
code = "Not a code...";
}
}
Symbol 170 MovieClip Frame 9
gotoAndStop (1);
Symbol 174 MovieClip Frame 1
code = "Enter Code Here";
stop();
Instance of Symbol 170 MovieClip "cheat1hover" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.cheaton1 == true) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 170 MovieClip "cheat2hover" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.cheaton2 == true) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 170 MovieClip "cheat3hover" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.cheaton3 == true) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 170 MovieClip "cheat4hover" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.cheaton4 == true) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 170 MovieClip "cheat5hover" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.cheaton5 == true) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.havecheat1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.havecheat1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.havecheat2 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.havecheat2 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.havecheat3 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.havecheat3 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.havecheat4 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.havecheat4 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
if (_root.havecheat5 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.havecheat5 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 180 Button
on (press) {
gotoAndPlay (20);
}
Symbol 185 Button
on (press) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 202 Button
on (rollOver) {
_root.shiptarget = tagnum;
}
on (rollOut) {
_root.shiptarget = "none";
}
Symbol 208 MovieClip Frame 1
stop();
Instance of Symbol 207 MovieClip in Symbol 208 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Symbol 208 MovieClip Frame 3
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 208 MovieClip Frame 5
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 208 MovieClip Frame 7
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 208 MovieClip Frame 8
this.removeMovieClip();
stop();
Symbol 210 MovieClip Frame 1
stop();
Instance of Symbol 207 MovieClip in Symbol 210 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Symbol 210 MovieClip Frame 3
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 210 MovieClip Frame 5
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 210 MovieClip Frame 7
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 210 MovieClip Frame 8
this.removeMovieClip();
stop();
Instance of Symbol 215 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Instance of Symbol 215 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 7
this.removeMovieClip();
stop();
Instance of Symbol 215 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Instance of Symbol 215 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 7
this.removeMovieClip();
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
this.removeMovieClip();
Symbol 232 MovieClip Frame 3
duplicateMovieClip (_root.ebullet, "ebullet" + _root.j, _root.j);
setProperty(_root["ebullet" + _root.j], _rotation , angle * -1);
_root["ebullet" + _root.j].y = (Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["ebullet" + _root.j].x = (Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["ebullet" + _root.j]._y = _parent._y + ((Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root["ebullet" + _root.j]._x = _parent._x + ((Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root.j = _root.j + 1;
Symbol 232 MovieClip Frame 6
shots = shots - 1;
Symbol 233 MovieClip Frame 1
stop();
Instance of Symbol 227 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(90) + 1);
}
Instance of Symbol 232 MovieClip "turret" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
shots = 10;
wait = 0;
endwait = 0;
active = true;
}
onClipEvent (enterFrame) {
if (((_root.ship.dead == false) && (_parent.dead == false)) && (_parent.active == true)) {
if (shots > 0) {
this.play;
} else if (active == true) {
this.gotoAndStop(1);
active = false;
wait = 0;
endwait = random(40) + 20;
}
if ((active == false) && (wait < endwait)) {
wait = wait + 1;
} else if (active == false) {
shots = random(10) + 5;
active = true;
this.play();
}
tx = _root.ship._x - _parent._x;
ty = _parent._y - _root.ship._y;
x = ((_root.ship._x + (_root.ship.moveright * (5 + (Math.abs(ty) / 90)))) - (_root.ship.moveleft * (5 + (Math.abs(ty) / 40)))) - _parent._x;
y = ((_parent._y - (_root.ship.movedown * (5 + (Math.abs(tx) / 90)))) + (_root.ship.moveup * (5 + (Math.abs(tx) / 40)))) - _root.ship._y;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
this._rotation = angle * -1;
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 232 MovieClip "turret" in Symbol 233 MovieClip Frame 6
onClipEvent (load) {
shots = 10;
wait = 0;
endwait = 0;
active = true;
}
onClipEvent (enterFrame) {
if (_root.ship.dead == false) {
if (shots > 0) {
this.play;
} else if (active == true) {
this.gotoAndStop(1);
active = false;
wait = 0;
endwait = random(50) + 20;
}
if ((active == false) && (wait < endwait)) {
wait = wait + 1;
} else if (active == false) {
shots = random(10) + 15;
active = true;
this.play();
}
tx = _root.ship._x - _parent._x;
ty = _parent._y - _root.ship._y;
x = ((_root.ship._x + (_root.ship.moveright * (5 + (Math.abs(ty) / 90)))) - (_root.ship.moveleft * (5 + (Math.abs(ty) / 40)))) - _parent._x;
y = ((_parent._y - (_root.ship.movedown * (5 + (Math.abs(tx) / 90)))) + (_root.ship.moveup * (5 + (Math.abs(tx) / 40)))) - _root.ship._y;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
this._rotation = angle * -1;
} else {
this.gotoAndStop(1);
}
}
Symbol 233 MovieClip Frame 22
this.removeMovieClip();
stop();
Symbol 246 MovieClip Frame 3
duplicateMovieClip (_root.ebullet2, "ebullet" + _root.j, _root.j);
setProperty(_root["ebullet" + _root.j], _rotation , angle * -1);
_root["ebullet" + _root.j].y = (Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["ebullet" + _root.j].x = (Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["ebullet" + _root.j]._y = _parent._y + ((Math.sin((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root["ebullet" + _root.j]._x = _parent._x + ((Math.cos((angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root.j = _root.j + 1;
Symbol 246 MovieClip Frame 11
shots = shots - 1;
Symbol 247 MovieClip Frame 1
stop();
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip Frame 1
onClipEvent (load) {
shots = 10;
wait = 0;
endwait = 0;
active = true;
}
onClipEvent (enterFrame) {
if (((_root.ship.dead == false) && (_parent.dead == false)) && (_parent.active == true)) {
if (shots > 0) {
this.play;
} else if (active == true) {
this.gotoAndStop(1);
active = false;
wait = 0;
endwait = random(40) + 20;
}
if ((active == false) && (wait < endwait)) {
wait = wait + 1;
} else if (active == false) {
shots = random(10) + 5;
active = true;
this.play();
}
tx = _root.ship._x - _parent._x;
ty = _parent._y - _root.ship._y;
x = ((_root.ship._x + (_root.ship.moveright * (5 + (Math.abs(ty) / 90)))) - (_root.ship.moveleft * (5 + (Math.abs(ty) / 40)))) - _parent._x;
y = ((_parent._y - (_root.ship.movedown * (5 + (Math.abs(tx) / 90)))) + (_root.ship.moveup * (5 + (Math.abs(tx) / 40)))) - _root.ship._y;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
this._rotation = angle * -1;
} else {
this.gotoAndStop(1);
}
}
Symbol 247 MovieClip Frame 24
this.removeMovieClip();
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
this.removeMovieClip();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
_root.hits = _root.hits + 1;
this.removeMovieClip();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
_root.hits = _root.hits + 1;
this.removeMovieClip();
Symbol 255 MovieClip Frame 1
stop();
_root.shoottorpedo = true;
Symbol 255 MovieClip Frame 2
_root.shoottorpedo = false;
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
r = 1;
while (r < 18) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
p = random(2);
if (p == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
p = random(2);
if (p == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
_root.hits = _root.hits + 1;
this.removeMovieClip();
Symbol 263 MovieClip Frame 1
stop();
_root.shootmissile = true;
Symbol 263 MovieClip Frame 2
_root.shootmissile = false;
_root.shiptarget = "none";
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
p = random(2);
if (p == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
p = random(2);
if (p == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
_root.hits = _root.hits + 1;
this.removeMovieClip();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 19
if (Key.isDown(39) || (Key.isDown(68))) {
gotoAndPlay (7);
}
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 19
if (Key.isDown(37) || (Key.isDown(65))) {
gotoAndPlay (7);
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 19
if (Key.isDown(38) || (Key.isDown(87))) {
gotoAndPlay (7);
}
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 19
if (Key.isDown(40) || (Key.isDown(83))) {
gotoAndPlay (7);
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
if (_root.energy < 9) {
gotoAndPlay (6);
}
Symbol 309 MovieClip Frame 3
duplicateMovieClip (_root.bullet, "bullet" + _root.i, _root.j);
setProperty(_root["bullet" + _root.i], _rotation , _root.crosshair.angle * -1);
_root["bullet" + _root.i].y = (Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["bullet" + _root.i].x = (Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["bullet" + _root.i]._y = _root.ship._y + ((Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root["bullet" + _root.i]._x = _root.ship._x + ((Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root["bullet" + _root.i].damage = _root.power;
_root.i = _root.i + 1;
_root.j = _root.j + 1;
if (_root.cheaton2 == false) {
_root.energy = _root.energy - 8;
}
Symbol 309 MovieClip Frame 5
gotoAndStop (1);
Symbol 309 MovieClip Frame 7
gotoAndStop (1);
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
if (_root.energy < 14) {
gotoAndPlay (9);
}
Symbol 316 MovieClip Frame 3
duplicateMovieClip (_root.slug, "bullet" + _root.i, _root.j);
_root["bullet" + _root.i].y = (Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["bullet" + _root.i].x = (Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3;
_root["bullet" + _root.i]._y = _root.ship._y + ((Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3.5);
_root["bullet" + _root.i]._x = _root.ship._x + ((Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3.5);
_root["bullet" + _root.i].damage = _root.power * 2.5;
_root.i = _root.i + 1;
_root.j = _root.j + 1;
if (_root.cheaton2 == false) {
_root.energy = _root.energy - 18;
}
Symbol 316 MovieClip Frame 8
gotoAndStop (1);
Symbol 316 MovieClip Frame 10
gotoAndStop (1);
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
if (_root.cheaton3 == false) {
_root.missiles = _root.missiles - 1;
}
Symbol 323 MovieClip Frame 5
gotoAndStop (1);
Symbol 323 MovieClip Frame 6
_root.shiptarget = "none";
Symbol 323 MovieClip Frame 7
gotoAndStop (1);
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 2
if (_root.cheaton3 == false) {
_root.torpedos = _root.torpedos - 1;
}
Symbol 329 MovieClip Frame 4
gotoAndStop (1);
Symbol 329 MovieClip Frame 6
gotoAndStop (1);
Symbol 330 MovieClip Frame 1
stop();
Instance of Symbol 309 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (mouseDown) {
this.gotoAndPlay(2);
shoot = true;
}
onClipEvent (enterFrame) {
if (shoot == true) {
this.play();
}
}
onClipEvent (mouseUp) {
shoot = false;
}
Instance of Symbol 316 MovieClip in Symbol 330 MovieClip Frame 2
onClipEvent (mouseDown) {
this.play();
shoot = true;
}
onClipEvent (enterFrame) {
if (shoot == true) {
this.play();
}
}
onClipEvent (mouseUp) {
shoot = false;
}
Instance of Symbol 323 MovieClip in Symbol 330 MovieClip Frame 3
onClipEvent (mouseDown) {
if ((_root.shootmissile == true) && (_root.missiles > 0)) {
tellTarget (_root.missilecount) {
play();
};
this.play();
duplicateMovieClip (_root.missile, "bullet" + _root.i, _root.j);
setProperty(_root["bullet" + _root.i], _rotation , _root.crosshair.angle * -1);
_root["bullet" + _root.i].y = (Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 4.5;
_root["bullet" + _root.i].x = (Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 4.5;
_root["bullet" + _root.i]._y = _root.ship._y + ((Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 4);
_root["bullet" + _root.i]._x = _root.ship._x + ((Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 4);
_root["bullet" + _root.i].damage = 140;
if (_root.shiptarget != "none") {
_root["bullet" + _root.i].homing = true;
_root["bullet" + _root.i].tag = _root.shiptarget;
_root.shiptarget = "none";
} else {
_root["bullet" + _root.i].homing = false;
}
_root.i = _root.i + 1;
_root.j = _root.j + 1;
}
if ((_root.shootmissile == true) && (_root.missiles == 0)) {
this.gotoAndPlay(6);
tellTarget (_root.missilecount) {
play();
};
}
}
Instance of Symbol 329 MovieClip in Symbol 330 MovieClip Frame 4
onClipEvent (mouseDown) {
if ((_root.shoottorpedo == true) && (_root.torpedos > 0)) {
tellTarget (_root.torpedocount) {
play();
};
this.play();
duplicateMovieClip (_root.torpedo, "bullet" + _root.i, _root.j);
setProperty(_root["bullet" + _root.i], _rotation , _root.crosshair.angle * -1);
_root["bullet" + _root.i].y = (Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 5.5;
_root["bullet" + _root.i].x = (Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 5.5;
_root["bullet" + _root.i]._y = _root.ship._y + ((Math.sin((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root["bullet" + _root.i]._x = _root.ship._x + ((Math.cos((_root.crosshair.angle * -1) * (Math.PI/180)) / (Math.PI/180)) / 3);
_root["bullet" + _root.i].damage = 250;
if (_root.shiptarget != "none") {
_root["bullet" + _root.i].homing = true;
_root["bullet" + _root.i].tag = _root.shiptarget;
_root.shiptarget = "none";
} else {
_root["bullet" + _root.i].homing = false;
}
_root.i = _root.i + 1;
_root.j = _root.j + 1;
}
if ((_root.shoottorpedo == true) && (_root.torpedos == 0)) {
this.gotoAndPlay(5);
tellTarget (_root.torpedocount) {
play();
};
}
}
Symbol 335 MovieClip Frame 17
_parent.gotoAndStop(1);
Symbol 339 MovieClip Frame 17
_parent.gotoAndStop(1);
Instance of Symbol 347 MovieClip in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(7) + 1);
}
Symbol 348 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 349 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Instance of Symbol 279 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.canmove == true)) {
this.play();
}
}
Instance of Symbol 286 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.canmove == true)) {
this.play();
}
}
Instance of Symbol 293 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.canmove == true)) {
this.play();
}
}
Instance of Symbol 300 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.canmove == true)) {
this.play();
}
}
Instance of Symbol 330 MovieClip "turret" in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(49) || (Key.isDown(97))) {
_root.weapon = 1;
this.gotoAndStop(1);
tellTarget (_root.weaponhud) {
gotoAndStop (1);
};
}
if (Key.isDown(50) || (Key.isDown(98))) {
_root.weapon = 2;
this.gotoAndStop(2);
tellTarget (_root.weaponhud) {
gotoAndStop (2);
};
}
if (Key.isDown(51) || (Key.isDown(99))) {
_root.weapon = 3;
this.gotoAndStop(3);
tellTarget (_root.weaponhud) {
gotoAndStop (3);
};
}
if (Key.isDown(52) || (Key.isDown(100))) {
_root.weapon = 4;
this.gotoAndStop(4);
tellTarget (_root.weaponhud) {
gotoAndStop (4);
};
}
}
Symbol 350 MovieClip Frame 19
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
this.removeMovieClip();
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
this.removeMovieClip();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
this.removeMovieClip();
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
this.removeMovieClip();
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
this.removeMovieClip();
Symbol 381 MovieClip Frame 2
p = random(30) + 2;
gotoAndPlay(p);
Symbol 381 MovieClip Frame 65
del = true;
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 6
duplicateMovieClip (_root.smoke, "smoke" + _root.j, _root.j);
_root["smoke" + _root.j]._x = this._x;
_root["smoke" + _root.j]._y = this._y;
_root["smoke" + _root.j].x = (random(5) - 5) / 20;
x = random(2);
if (x == 0) {
_root["smoke" + _root.j].x = _root["smoke" + _root.j].x * -1;
}
_root["smoke" + _root.j].y = (random(5) - 5) / 20;
x = random(2);
if (x == 0) {
_root["smoke" + _root.j].y = _root["smoke" + _root.j].y * -1;
}
_root.j = _root.j + 1;
Symbol 382 MovieClip Frame 7
x = random(4) + 2;
gotoAndPlay(x);
Symbol 386 MovieClip Frame 2
this.gotoAndPlay(random(70) + 3);
Symbol 386 MovieClip Frame 153
this.removeMovieClip();
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
play();
Symbol 410 MovieClip Frame 15
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 410 MovieClip Frame 17
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 410 MovieClip Frame 19
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 410 MovieClip Frame 21
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 410 MovieClip Frame 37
this.removeMovieClip();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
play();
Symbol 446 MovieClip Frame 30
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 446 MovieClip Frame 32
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 446 MovieClip Frame 34
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 446 MovieClip Frame 50
this.removeMovieClip();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
this.removeMovieClip();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
play();
Symbol 468 MovieClip Frame 9
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 468 MovieClip Frame 11
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 468 MovieClip Frame 13
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 468 MovieClip Frame 15
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 468 MovieClip Frame 25
this.removeMovieClip();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
play();
Symbol 488 MovieClip Frame 16
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 488 MovieClip Frame 18
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 488 MovieClip Frame 20
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 488 MovieClip Frame 22
r = 1;
while (r < 10) {
duplicateMovieClip (_root.debris, "debris" + _root.j, _root.j);
_root["debris" + _root.j]._x = this._x;
_root["debris" + _root.j]._y = this._y;
_root["debris" + _root.j].x = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].x = _root["debris" + _root.j].x * -1;
}
_root["debris" + _root.j].y = (random(5) - 5) / 5;
x = random(2);
if (x == 0) {
_root["debris" + _root.j].y = _root["debris" + _root.j].y * -1;
}
_root.j = _root.j + 1;
r++;
}
Symbol 488 MovieClip Frame 33
this.removeMovieClip();
Symbol 501 MovieClip Frame 1
stop();
Instance of Symbol 518 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(int((_root.armor / _root.maxarmor) * 100) + 1);
if (_root.armor <= 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 525 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.ship.dead == true) || (_root.canrecharge == false)) {
this.gotoAndStop(1);
}
shieldpercent = int((_root.shields / _root.maxshields) * 100);
this.gotoAndStop(shieldpercent);
}
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
_root.maxenergy = _root.maxenergy + 100;
_root.energy = _root.energy + 100;
_root.maxenergyup = true;
_root.powerups = _root.powerups + 1;
Symbol 539 MovieClip Frame 900
_root.maxenergy = _root.maxenergy - 100;
if (_root.energy > _root.maxenergy) {
_root.energy = _root.maxenergy;
}
_root.maxenergyup = false;
_root.powerups = _root.powerups - 1;
if (_root.showrechargeup._x < this._x) {
_root.showrechargeup._x = _root.showrechargeup._x + 50;
}
if (_root.showpowerup._x < this._x) {
_root.showpowerup._x = _root.showpowerup._x + 50;
}
if (_root.showspeedup._x < this._x) {
_root.showspeedup._x = _root.showspeedup._x + 50;
}
if (_root.showsrechargeup._x < this._x) {
_root.showsrechargeup._x = _root.showsrechargeup._x + 50;
}
this._x = 950;
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
_root.srecharge = _root.srecharge + 1;
_root.srechargeup = true;
_root.powerups = _root.powerups + 1;
Symbol 549 MovieClip Frame 900
_root.srecharge = _root.srecharge - 1;
_root.srechargeup = false;
_root.powerups = _root.powerups - 1;
if (_root.showspeedup._x < this._x) {
_root.showspeedup._x = _root.showspeedup._x + 50;
}
if (_root.showpowerup._x < this._x) {
_root.showpowerup._x = _root.showpowerup._x + 50;
}
if (_root.showmaxenergyup._x < this._x) {
_root.showmaxenergyup._x = _root.showmaxenergyup._x + 50;
}
if (_root.showrechargeup._x < this._x) {
_root.showrechargeup._x = _root.showrechargeup._x + 50;
}
this._x = 950;
Symbol 552 MovieClip Frame 1
stop();
remove = false;
Symbol 552 MovieClip Frame 2
play();
Symbol 552 MovieClip Frame 180
remove = true;
_root.messages = _root.messages - 1;
_root["showmessage" + (d + 1)]._y = _root["showmessage" + (d + 1)]._y + 14;
_root["showmessage" + (d + 2)]._y = _root["showmessage" + (d + 2)]._y + 14;
_root["showmessage" + (d + 3)]._y = _root["showmessage" + (d + 3)]._y + 14;
_root["showmessage" + (d + 4)]._y = _root["showmessage" + (d + 4)]._y + 14;
Symbol 557 MovieClip Frame 1
stop();
_root.canrecharge = true;
Symbol 557 MovieClip Frame 2
_root.canrecharge = false;
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Shield Failure. Shield Recharging.";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
Symbol 557 MovieClip Frame 299
if (_root.ship.dead == true) {
stop();
}
Symbol 557 MovieClip Frame 300
_root.shields = 100;
if (_root.messages == 5) {
_root.messages = _root.messages - 1;
removeMovieClip(_root["showmessage" + (_root.messagenum - 5)]);
_root["showmessage" + (_root.messagenum - 4)]._y = _root["showmessage" + (_root.messagenum - 4)]._y + 14;
_root["showmessage" + (_root.messagenum - 3)]._y = _root["showmessage" + (_root.messagenum - 3)]._y + 14;
_root["showmessage" + (_root.messagenum - 2)]._y = _root["showmessage" + (_root.messagenum - 2)]._y + 14;
_root["showmessage" + (_root.messagenum - 1)]._y = _root["showmessage" + (_root.messagenum - 1)]._y + 14;
}
duplicateMovieClip (_root.showmessage, "showmessage" + _root.messagenum, _root.j);
_root["showmessage" + _root.messagenum].message = "Shield Recharged";
tellTarget (_root["showmessage" + _root.messagenum]) {
gotoAndPlay (2);
};
_root["showmessage" + _root.messagenum]._y = 590 - (_root.messages * 14);
_root["showmessage" + _root.messagenum].d = _root.messagenum;
_root.messagenum = _root.messagenum + 1;
_root.messages = _root.messages + 1;
_root.j = _root.j + 1;
Symbol 559 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 2
_root.power = _root.power * 2;
_root.powerup = true;
_root.powerups = _root.powerups + 1;
Symbol 572 MovieClip Frame 900
_root.power = _root.power / 2;
_root.powerup = false;
_root.powerups = _root.powerups - 1;
if (_root.showrechargeup._x < this._x) {
_root.showrechargeup._x = _root.showrechargeup._x + 50;
}
if (_root.showspeedup._x < this._x) {
_root.showspeedup._x = _root.showspeedup._x + 50;
}
if (_root.showmaxenergyup._x < this._x) {
_root.showmaxenergyup._x = _root.showmaxenergyup._x + 50;
}
if (_root.showsrechargeup._x < this._x) {
_root.showsrechargeup._x = _root.showsrechargeup._x + 50;
}
this._x = 950;
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 2
_root.recharge = _root.recharge + 0.5;
_root.rechargeup = true;
_root.powerups = _root.powerups + 1;
Symbol 582 MovieClip Frame 900
_root.recharge = _root.recharge - 0.5;
_root.rechargeup = false;
_root.powerups = _root.powerups - 1;
if (_root.showspeedup._x < this._x) {
_root.showspeedup._x = _root.showspeedup._x + 50;
}
if (_root.showpowerup._x < this._x) {
_root.showpowerup._x = _root.showpowerup._x + 50;
}
if (_root.showmaxenergyup._x < this._x) {
_root.showmaxenergyup._x = _root.showmaxenergyup._x + 50;
}
if (_root.showsrechargeup._x < this._x) {
_root.showsrechargeup._x = _root.showsrechargeup._x + 50;
}
this._x = 950;
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
_root.speed = _root.speed + 5;
_root.speedup = true;
_root.powerups = _root.powerups + 1;
Symbol 592 MovieClip Frame 900
_root.speed = _root.speed - 5;
_root.speedup = false;
_root.powerups = _root.powerups - 1;
if (_root.showrechargeup._x < this._x) {
_root.showrechargeup._x = _root.showrechargeup._x + 50;
}
if (_root.showpowerup._x < this._x) {
_root.showpowerup._x = _root.showpowerup._x + 50;
}
if (_root.showmaxenergyup._x < this._x) {
_root.showmaxenergyup._x = _root.showmaxenergyup._x + 50;
}
if (_root.showsrechargeup._x < this._x) {
_root.showsrechargeup._x = _root.showsrechargeup._x + 50;
}
this._x = 950;
Symbol 594 MovieClip Frame 180
tellTarget (_root) {
gotoAndPlay ("endmission");
};
clearInterval(_root.stoptime);
Symbol 605 Button
on (press) {
play();
}