Frame 1
function EncrpytString(strVal) {
var strKey = "aHfEjcDebChGiAfIjDbEjacD";
var nLenKey = strKey.length;
var strZero = "0";
var _local3 = "";
var nTot = strVal.length;
var _local1 = 0;
_local3 = "";
var nCodeVal;
var nCodeKey;
var _local2;
var nChecksum = 0;
nCnt = 0;
while (nCnt < nTot) {
nCodeVal = strVal.charCodeAt(nCnt);
if (nCodeVal >= 128) {
nCodeVal = "X";
}
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nCodeVal % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nCodeVal / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCnt++;
}
nChecksum = nChecksum % 256;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nChecksum % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nChecksum / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
function GetUrlParam(strUrl, strParam) {
var _local3 = strUrl.toLowerCase();
var _local1 = _local3.indexOf(strParam);
var nParamLen = strParam.length;
if (_local1 > 0) {
var nNumChars;
var _local2 = _local3.indexOf("&", _local1 + nParamLen);
if (_local2 > 0) {
nNumChars = _local2 - _local1;
} else {
nNumChars = strUrl.length - _local1;
}
return(strUrl.substr(_local1 + nParamLen, nNumChars));
}
return("");
}
function GetBaseUrl(strUrl) {
var _local1 = strUrl.toLowerCase();
var nNumChars = _local1.length;
var _local2 = _local1.indexOf("?", 0);
if (_local2 > 0) {
nNumChars = _local2;
}
var _local3 = "download";
if (_local1.substr(0, 4) == "http") {
_local3 = strUrl.substr(7, nNumChars - 7);
}
return(_local3);
}
stop();
Stage.showMenu = eval (false)();
_quality = "High";
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldlevel = savefile.data.level;
if (savefile.data.Level == undefined) {
_root.level = 0;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission = savefile.data.Mission;
if (savefile.data.mission == undefined) {
_root.mission = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission2 = savefile.data.Mission2;
if (savefile.data.mission2 == undefined) {
_root.mission2 = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission3 = savefile.data.Mission3;
if (savefile.data.mission3 == undefined) {
_root.mission3 = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission4 = savefile.data.Mission4;
if (savefile.data.mission4 == undefined) {
_root.mission4 = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission5 = savefile.data.Mission5;
if (savefile.data.mission5 == undefined) {
_root.mission5 = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission6 = savefile.data.Mission6;
if (savefile.data.mission6 == undefined) {
_root.mission6 = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMission7 = savefile.data.Mission7;
if (savefile.data.mission7 == undefined) {
_root.mission7 = false;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldqualityset = savefile.data.qualityset;
if (savefile.data.qualityset == undefined) {
_root.qualityset = 2;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldMkey = savefile.data.Mkey;
if (savefile.data.Mkey == undefined) {
_root.Mkey = 2;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldSkey = savefile.data.Skey;
if (savefile.data.Skey == undefined) {
_root.Skey = 2;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldOAkills = savefile.data.OAkills;
if (savefile.data.OAkills == undefined) {
_root.OAkills = 0;
}
var savefile = SharedObject.getLocal("StarSerpent");
_root.oldoverallscore = savefile.data.overallscore;
if (savefile.data.overallscore == undefined) {
_root.overallscore = 0;
}
Frame 2
stop();
Stage.showMenu = eval (false)();
_quality = "High";
_root.SEL = false;
_root.GO = false;
_root.CON = false;
Frame 3
stop();
_quality = "High";
Instance of Symbol 164 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.qualityset <= 1) {
_root.CURR = _root.low;
}
if (_root.qualityset == 2) {
_root.CURR = _root.medium;
}
if (_root.qualityset >= 3) {
_root.CURR = _root.high;
}
if ((_root.las == _root.a) || (_root.las == _root.ua)) {
_root.Skey = 65;
}
if ((_root.las == _root.b) || (_root.las == _root.ub)) {
_root.Skey = 66;
}
if ((_root.las == _root.c) || (_root.las == _root.uc)) {
_root.Skey = 67;
}
if ((_root.las == _root.d) || (_root.las == _root.ud)) {
_root.Skey = 68;
}
if ((_root.las == _root.e) || (_root.las == _root.ue)) {
_root.Skey = 69;
}
if ((_root.las == _root.f) || (_root.las == _root.uf)) {
_root.Skey = 70;
}
if ((_root.las == _root.g) || (_root.las == _root.ug)) {
_root.Skey = 71;
}
if ((_root.las == _root.h) || (_root.las == _root.uh)) {
_root.Skey = 72;
}
if ((_root.las == _root.i) || (_root.las == _root.ui)) {
_root.Skey = 73;
}
if ((_root.las == _root.j) || (_root.las == _root.uj)) {
_root.Skey = 74;
}
if ((_root.las == _root.k) || (_root.las == _root.uk)) {
_root.Skey = 75;
}
if ((_root.las == _root.l) || (_root.las == _root.ul)) {
_root.Skey = 76;
}
if ((_root.las == _root.m) || (_root.las == _root.um)) {
_root.Skey = 77;
}
if ((_root.las == _root.n) || (_root.las == _root.un)) {
_root.Skey = 78;
}
if ((_root.las == _root.o) || (_root.las == _root.uo)) {
_root.Skey = 79;
}
if ((_root.las == _root.p) || (_root.las == _root.up)) {
_root.Skey = 80;
}
if ((_root.las == _root.q) || (_root.las == _root.uq)) {
_root.Skey = 81;
}
if ((_root.las == _root.r) || (_root.las == _root.ur)) {
_root.Skey = 82;
}
if ((_root.las == _root.s) || (_root.las == _root.us)) {
_root.Skey = 83;
}
if ((_root.las == _root.t) || (_root.las == _root.ut)) {
_root.Skey = 84;
}
if ((_root.las == _root.u) || (_root.las == _root.uu)) {
_root.Skey = 85;
}
if ((_root.las == _root.v) || (_root.las == _root.uv)) {
_root.Skey = 86;
}
if ((_root.las == _root.w) || (_root.las == _root.uw)) {
_root.Skey = 87;
}
if ((_root.las == _root.xz) || (_root.las == _root.ux)) {
_root.Skey = 88;
}
if ((_root.las == _root.yz) || (_root.las == _root.uy)) {
_root.Skey = 89;
}
if ((_root.las == _root.z) || (_root.las == _root.uz)) {
_root.Skey = 90;
}
if ((_root.mis == _root.a) || (_root.mis == _root.ua)) {
_root.Mkey = 65;
}
if ((_root.mis == _root.b) || (_root.mis == _root.ub)) {
_root.Mkey = 66;
}
if ((_root.mis == _root.c) || (_root.mis == _root.uc)) {
_root.Mkey = 67;
}
if ((_root.mis == _root.d) || (_root.mis == _root.ud)) {
_root.Mkey = 68;
}
if ((_root.mis == _root.e) || (_root.mis == _root.ue)) {
_root.Mkey = 69;
}
if ((_root.mis == _root.f) || (_root.mis == _root.uf)) {
_root.Mkey = 70;
}
if ((_root.mis == _root.g) || (_root.mis == _root.ug)) {
_root.Mkey = 71;
}
if ((_root.mis == _root.h) || (_root.mis == _root.uh)) {
_root.Mkey = 72;
}
if ((_root.mis == _root.i) || (_root.mis == _root.ui)) {
_root.Mkey = 73;
}
if ((_root.mis == _root.j) || (_root.mis == _root.uj)) {
_root.Mkey = 74;
}
if ((_root.mis == _root.k) || (_root.mis == _root.uk)) {
_root.Mkey = 75;
}
if ((_root.mis == _root.l) || (_root.mis == _root.ul)) {
_root.Mkey = 76;
}
if ((_root.mis == _root.m) || (_root.mis == _root.um)) {
_root.Mkey = 77;
}
if ((_root.mis == _root.n) || (_root.mis == _root.un)) {
_root.Mkey = 78;
}
if ((_root.mis == _root.o) || (_root.mis == _root.uo)) {
_root.Mkey = 79;
}
if ((_root.mis == _root.p) || (_root.mis == _root.up)) {
_root.Mkey = 80;
}
if ((_root.las == _root.q) || (_root.mis == _root.uq)) {
_root.Mkey = 81;
}
if ((_root.mis == _root.r) || (_root.mis == _root.ur)) {
_root.Mkey = 82;
}
if ((_root.mis == _root.s) || (_root.mis == _root.us)) {
_root.Mkey = 83;
}
if ((_root.mis == _root.t) || (_root.mis == _root.ut)) {
_root.Mkey = 84;
}
if ((_root.mis == _root.u) || (_root.mis == _root.uu)) {
_root.Mkey = 85;
}
if ((_root.mis == _root.v) || (_root.mis == _root.uv)) {
_root.Mkey = 86;
}
if ((_root.mis == _root.w) || (_root.mis == _root.uw)) {
_root.Mkey = 87;
}
if ((_root.mis == _root.xz) || (_root.mis == _root.ux)) {
_root.Mkey = 88;
}
if ((_root.mis == _root.yz) || (_root.mis == _root.uy)) {
_root.Mkey = 89;
}
if ((_root.mis == _root.z) || (_root.mis == _root.uz)) {
_root.Mkey = 90;
}
if (((_root.Skey == _root.Mkey) && (_root.Mkey != _root.a)) || ((_root.Skey == _root.Mkey) && (_root.Mkey != _root.ua))) {
_root.mis = _root.a;
}
if (((_root.Skey == _root.Mkey) && (_root.Skey != _root.s)) || ((_root.Skey == _root.Mkey) && (_root.Skey != _root.us))) {
_root.las = _root.s;
}
_root.mis != _root.las;
}
Frame 4
stop();
_quality = "High";
Instance of Symbol 256 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.system <= 1) {
this.gotoAndStop(1);
}
if (_root.system == 2) {
this.gotoAndStop(2);
}
if (_root.system == 3) {
this.gotoAndStop(3);
}
if (_root.system == 4) {
this.gotoAndStop(4);
}
if (_root.system == 5) {
this.gotoAndStop(5);
}
if (_root.system == 6) {
this.gotoAndStop(6);
}
if (_root.system >= 7) {
this.gotoAndStop(7);
}
if ((_root.system <= 1) && (_root.mission == true)) {
this.MC._visible = true;
_root.MIZ = 1;
}
if ((_root.system == 2) && (_root.mission2 == true)) {
this.MC._visible = true;
_root.MIZ = 2;
}
if ((_root.system == 3) && (_root.mission3 == true)) {
this.MC._visible = true;
_root.MIZ = 3;
}
if ((_root.system == 4) && (_root.mission4 == true)) {
this.MC._visible = true;
_root.MIZ = 4;
}
if ((_root.system == 5) && (_root.mission5 == true)) {
this.MC._visible = true;
_root.MIZ = 5;
}
if ((_root.system == 6) && (_root.mission6 == true)) {
this.MC._visible = true;
_root.MIZ = 6;
}
if ((_root.system >= 7) && (_root.mission7 == true)) {
this.MC._visible = true;
_root.MIZ = 7;
}
if ((_root.system <= 1) && (_root.mission != true)) {
this.MC._visible = false;
_root.MIZ = 1;
}
if ((_root.system == 2) && (_root.mission2 != true)) {
this.MC._visible = false;
_root.MIZ = 2;
}
if ((_root.system == 3) && (_root.mission3 != true)) {
this.MC._visible = false;
_root.MIZ = 3;
}
if ((_root.system == 4) && (_root.mission4 != true)) {
this.MC._visible = false;
_root.MIZ = 4;
}
if ((_root.system == 5) && (_root.mission5 != true)) {
this.MC._visible = false;
_root.MIZ = 5;
}
if ((_root.system == 6) && (_root.mission6 != true)) {
this.MC._visible = false;
_root.MIZ = 6;
}
if ((_root.system >= 7) && (_root.mission7 != true)) {
this.MC._visible = false;
_root.MIZ = 7;
}
}
Frame 5
stop();
Instance of Symbol 378 MovieClip "ship" in Frame 5
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
_root.bg.gotoAndStop(1);
G1 = 1;
G2 = 1;
G3 = 2;
_root.com = false;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 80000 /* 0x013880 */;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 0.5;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 30)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 407 MovieClip "electro" in Frame 5
onClipEvent (load) {
_rotation = ((Math.random() * 180) - (Math.random() * 180));
loading = 0;
lockon = random(9);
goob = (Math.random() * 20) - (Math.random() * 20);
_alpha = 100;
_visible = false;
}
onClipEvent (enterFrame) {
if (((loading > 3) && (_root.electrode == 1)) && (re != true)) {
_x = _root.ENEMY._x;
_y = _root.ENEMY._y;
POSX = _root.ENEMY._x;
POSY = _root.ENEMY._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 2)) && (re != true)) {
_x = _root.ENEMY2._x;
_y = _root.ENEMY2._y;
POSX = _root.ENEMY2._x;
POSY = _root.ENEMY2._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 3)) && (re != true)) {
_x = _root.ENEMY3._x;
_y = _root.ENEMY3._y;
POSX = _root.ENEMY3._x;
POSY = _root.ENEMY3._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 4)) && (re != true)) {
_x = _root.ENEMY4._x;
_y = _root.ENEMY4._y;
POSX = _root.ENEMY4._x;
POSY = _root.ENEMY4._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 5)) && (re != true)) {
_x = _root.ENEMY5._x;
_y = _root.ENEMY5._y;
re = true;
POSX = _root.ENEMY5._x;
POSY = _root.ENEMY5._y;
}
if (((loading > 3) && (_root.electrode == 6)) && (re != true)) {
_x = _root.ENEMY6._x;
_y = _root.ENEMY6._y;
re = true;
POSX = _root.ENEMY6._x;
POSY = _root.ENEMY6._y;
}
if ((loading > 6) && (loading < 9)) {
_visible = true;
}
if ((this.box.hitTest(_root.ENEMY) && (_root.ENEMY.Health > 0)) && (_visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - 4;
_root.ENEMY.play();
}
if ((this.box.hitTest(_root.ENEMY2) && (_root.ENEMY2.Health > 0)) && (_visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - 4;
_root.ENEMY2.play();
}
if ((this.box.hitTest(_root.ENEMY3) && (_root.ENEMY3.Health > 0)) && (_visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - 4;
_root.ENEMY3.play();
}
if ((this.box.hitTest(_root.ENEMY4) && (_root.ENEMY4.Health > 0)) && (_visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - 4;
_root.ENEMY4.play();
}
if ((this.box.hitTest(_root.ENEMY5) && (_root.ENEMY5.Health > 0)) && (_visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - 4;
_root.ENEMY5.play();
}
if ((this.box.box.hitTest(_root.ENEMY6) && (_root.ENEMY6.Health > 0)) && (_visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - 10;
_root.ENEMY6.play();
_root.ENEMY6.Health = _root.ENEMY6.Health - (3 * _root.power);
}
if ((this.box.hitTest(_root.ENEMY7) && (_root.ENEMY7.Health > 0)) && (_visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - 10;
_root.ENEMY7.play();
_root.ENEMY7.Health = _root.ENEMY7.Health - (3 * _root.power);
}
if ((this.box.hitTest(_root.ENEMY8) && (_root.ENEMY8.Health > 0)) && (_visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - 10;
_root.ENEMY.Health = _root.ENEMY.Health - (3 * _root.power);
_root.ENEMY8.play();
}
if ((_root.electrode == 1) && (_root.ENEMY.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 2) && (_root.ENEMY2.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 3) && (_root.ENEMY3.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 4) && (_root.ENEMY4.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 5) && (_root.ENEMY5.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 6) && (_root.ENEMY6.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 7) && (_root.ENEMY7.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 8) && (_root.ENEMY8.HEalth <= 0)) {
_root.electrode = random(9);
}
if (_root.spider.pause != true) {
loading = loading + 1;
_x = POSX;
_y = POSY;
_alpha = (_alpha - 2);
}
if (lockon <= 1) {
XSCA = _root.ENEMY._x - _x;
YSCA = _root.ENEMY._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) / (Math.PI/180)));
}
if (lockon == 2) {
XSCA = _root.ENEMY2._x - _x;
YSCA = _root.ENEMY2._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) / (Math.PI/180)));
}
if (lockon == 3) {
XSCA = _root.ENEMY3._x - _x;
YSCA = _root.ENEMY3._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) / (Math.PI/180)));
}
if (lockon >= 4) {
XSCA = _root.ENEMY4._x - _x;
YSCA = _root.ENEMY4._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) / (Math.PI/180)));
}
if ((_root.electrode == 1) && (lockon <= 1)) {
lockon = 2;
}
if ((_root.electrode == 2) && (lockon == 2)) {
lockon = 3;
}
if ((_root.electrode == 3) && (lockon == 3)) {
lockon = 3;
}
if ((_root.electrode == 4) && (lockon >= 4)) {
lockon = 1;
}
if (_alpha <= 0) {
_visible = false;
removeMovieClip(this);
}
_root.removeMovieClip(_root.electro);
_root.electro._visible = false;
}
Instance of Symbol 407 MovieClip "missile3" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
_visible = false;
lockon = 0;
XMOVE = 10;
YMOVE = 10;
_alpha = 100;
HP = 5;
this.laser.gotoAndStop(random(6));
}
onClipEvent (enterFrame) {
if ((this.box.hitTest(_root.ENEMY) && (_root.ENEMY.Health > 0)) && (_visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - 25;
_root.ENEMY.play();
_root.ENEMY.Health = _root.ENEMY.Health - (15 * _root.power6);
_root.electrode = 1;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY2) && (_root.ENEMY2.Health > 0)) && (_visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - 25;
_root.ENEMY2.play();
_root.ENEMY2.Health = _root.ENEMY2.Health - (15 * _root.power6);
_root.electrode = 2;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY3) && (_root.ENEMY3.Health > 0)) && (_visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - 25;
_root.ENEMY3.play();
_root.ENEMY3.Health = _root.ENEMY3.Health - (15 * _root.power6);
_root.electrode = 3;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY4) && (_root.ENEMY4.Health > 0)) && (_visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - 25;
_root.ENEMY4.play();
_root.ENEMY4.Health = _root.ENEMY4.Health - (15 * _root.power6);
_root.electrode = 4;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY5) && (_root.ENEMY5.Health > 0)) && (_visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - 25;
_root.ENEMY5.play();
_root.ENEMY5.Health = _root.ENEMY5.Health - (15 * _root.power6);
_root.electrode = 5;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY6) && (_root.ENEMY6.Health > 0)) && (_visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - 25;
_root.ENEMY6.play();
_root.ENEMY6.Health = _root.ENEMY6.Health - (15 * _root.power6);
_root.electrode = 6;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY7) && (_root.ENEMY7.Health > 0)) && (_visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - 25;
_root.ENEMY7.play();
_root.ENEMY7.Health = _root.ENEMY7.Health - (15 * _root.power6);
HP = HP - 1;
_root.electrode = 7;
}
if ((this.box.hitTest(_root.ENEMY8) && (_root.ENEMY8.Health > 0)) && (_visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - 25;
_root.ENEMY8.play();
_root.ENEMY8.Health = _root.ENEMY8.Health - (15 * _root.power6);
HP = HP - 1;
_root.electrode = 8;
}
if (((((((_root.ENEMY._y > (_y - 300)) && (_root.ENEMY._y < (_y + 300))) && (_root.ENEMY._x > (_x - 400))) && (_root.ENEMY._x < (_x + 400))) && (_root.ENEMY.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY._visible == true)) {
lockon = 1;
MOTION = -13;
_visible = true;
}
if ((lockon == 1) && (_visible == true)) {
XSCA = _root.ENEMY._x - _x;
YSCA = _root.ENEMY._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY2._y > (_y - 300)) && (_root.ENEMY2._y < (_y + 300))) && (_root.ENEMY2._x > (_x - 400))) && (_root.ENEMY2._x < (_x + 400))) && (_root.ENEMY2.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY2._visible == true)) {
lockon = 2;
_visible = true;
}
if ((lockon == 2) && (_visible == true)) {
XSCA = _root.ENEMY2._x - _x;
YSCA = _root.ENEMY2._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY3._y > (_y - 300)) && (_root.ENEMY3._y < (_y + 300))) && (_root.ENEMY3._x > (_x - 400))) && (_root.ENEMY3._x < (_x + 400))) && (_root.ENEMY3.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY3._visible == true)) {
lockon = 3;
_visible = true;
}
if ((lockon == 3) && (_visible == true)) {
XSCA = _root.ENEMY3._x - _x;
YSCA = _root.ENEMY3._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY4._y > (_y - 300)) && (_root.ENEMY4._y < (_y + 300))) && (_root.ENEMY4._x > (_x - 400))) && (_root.ENEMY4._x < (_x + 400))) && (_root.ENEMY4.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY4._visible == true)) {
lockon = 4;
_visible = true;
}
if ((lockon == 4) && (_visible == true)) {
XSCA = _root.ENEMY4._x - _x;
YSCA = _root.ENEMY4._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY5._y > (_y - 300)) && (_root.ENEMY5._y < (_y + 300))) && (_root.ENEMY5._x > (_x - 400))) && (_root.ENEMY5._x < (_x + 400))) && (_root.ENEMY5.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY5._visible == true)) {
lockon = 5;
_visible = true;
}
if ((lockon == 5) && (_visible == true)) {
XSCA = _root.ENEMY5._x - _x;
YSCA = _root.ENEMY5._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY6._y > (_y - 300)) && (_root.ENEMY6._y < (_y + 300))) && (_root.ENEMY6._x > (_x - 400))) && (_root.ENEMY6._x < (_x + 400))) && (_root.ENEMY6.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY6._visible == true)) {
lockon = 6;
_visible = true;
}
if ((lockon == 6) && (_visible == true)) {
XSCA = _root.ENEMY6._x - _x;
YSCA = _root.ENEMY6._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY7._y > (_y - 300)) && (_root.ENEMY7._y < (_y + 300))) && (_root.ENEMY7._x > (_x - 400))) && (_root.ENEMY7._x < (_x + 400))) && (_root.ENEMY7.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY7._visible == true)) {
lockon = 7;
_visible = true;
}
if ((lockon == 7) && (_visible == true)) {
XSCA = _root.ENEMY7._x - _x;
YSCA = _root.ENEMY7._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY8._y > (_y - 300)) && (_root.ENEMY8._y < (_y + 300))) && (_root.ENEMY8._x > (_x - 400))) && (_root.ENEMY8._x < (_x + 400))) && (_root.ENEMY8.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY8._visible == true)) {
lockon = 8;
_visible = true;
}
if ((lockon == 8) && (_visible == true)) {
XSCA = _root.ENEMY8._x - _x;
YSCA = _root.ENEMY8._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) / (Math.PI/180)));
}
if ((_root.ENEMY.HEalth <= 0) && (lockon == 1)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY2.HEalth <= 0) && (lockon == 2)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY3.HEalth <= 0) && (lockon == 3)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY4.HEalth <= 0) && (lockon == 4)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY5.HEalth <= 0) && (lockon == 5)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY6.HEalth <= 0) && (lockon == 6)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY7.HEalth <= 0) && (lockon == 7)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY8.HEalth <= 0) && (lockon == 8)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY9.HEalth <= 0) && (lockon == 9)) {
_visible = false;
_alpha = 0;
}
if (((time > 3) && (lockon <= 0)) && (_root.ship.pause != true)) {
_visible = true;
_alpha = (_alpha - 3);
}
if ((_alpha <= 0) && (time > 3)) {
removeMovieClip(this);
_visible = false;
}
if (lockon <= 0) {
_xscale = 300;
}
if ((_root.ship.pause != true) && (time > 3)) {
_alpha = (_alpha - 3);
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
}
time = time + 1;
removeMovieClip(_root.missile3);
_root.missile3._visible = false;
}
Instance of Symbol 413 MovieClip "laser" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser);
_root.laser._visible = false;
_x = (_x + 30);
}
Instance of Symbol 418 MovieClip "laser2" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser2);
_root.laser2._visible = false;
_y = ((50 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 5);
}
Instance of Symbol 418 MovieClip "laser2B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser2B);
_root.laser2B._visible = false;
removeMovieClip(_root.laser2B);
_y = ((-50 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 5);
}
Instance of Symbol 413 MovieClip "laser3B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
_rotation = 30;
dead = false;
remove = 0;
power = 10;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser3B);
_root.laser3B._visible = false;
removeMovieClip(_root.laser3B);
_y = (_y + 10);
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser3" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 2;
dead = false;
remove = 0;
power = 10;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser3);
_root.laser3._visible = false;
removeMovieClip(_root.laser3);
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser3C" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
_rotation = -30;
dead = false;
remove = 0;
power = 10;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser3C);
_root.laser3C._visible = false;
removeMovieClip(_root.laser3C);
_y = (_y - 10);
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser4B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x - (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 10) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 4;
timer = 0;
motion = 4;
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((timer > 5) && (_rotation > -170)) {
_rotation = (_rotation - 30);
motion = motion + 0.8;
}
if (_rotation < -173) {
_rotation = -180;
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser4B);
_root.laser4B._visible = false;
timer = timer + 1;
motion = motion + 0.8;
_x = (_x - (motion * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (motion * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 413 MovieClip "laser4" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 4;
timer = 0;
motion = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (timer > 30) {
motion = motion + 0.8;
}
removeMovieClip(_root.laser4);
_root.laser4._visible = false;
motion = motion + 0.8;
timer = timer + 1;
_x = (_x + motion);
}
Instance of Symbol 413 MovieClip "laser4C" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x - (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y - 10) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 4;
timer = 0;
motion = 4;
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((timer > 5) && (_rotation < 170)) {
_rotation = (_rotation + 30);
motion = motion + 0.8;
}
if (_rotation > 173) {
_rotation = 180;
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (timer > 30) {
motion = motion + 0.8;
}
removeMovieClip(_root.laser4C);
_root.laser4C._visible = false;
motion = motion + 0.8;
timer = timer + 1;
_x = (_x - (motion * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (motion * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 413 MovieClip "laser5" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 8;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser5);
_root.laser5._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser5D" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
dead = false;
power = 23;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser5D);
_root.laser5D._visible = false;
_y = ((-70 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 7);
}
Instance of Symbol 413 MovieClip "laser5E" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
dead = false;
remove = 0;
power = 8;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser5E);
_root.laser5E._visible = false;
_y = ((70 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 7);
}
Instance of Symbol 413 MovieClip "laser6" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + 10);
power = 4;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser6);
_root.laser6._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser6B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - 10);
power = 4;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser6B);
_root.laser6B._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser7B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - 5);
power = 1;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser7B);
_root.laser7B._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser7C" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + 5);
power = 1;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser7C);
_root.laser7C._visible = false;
_x = (_x + 30);
}
Instance of Symbol 461 MovieClip "missile" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 30;
acc = -3;
this.gotoAndStop(1);
_rotation = 0;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
acc = acc + 0.4;
_x = (_x + (5 * acc));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
removeMovieClip(_root.missile);
_root.missile._visible = false;
}
Instance of Symbol 473 MovieClip "missile4" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_rotation = (_rotation + 20);
}
if (_x < 50) {
_rotation = (_rotation - 20);
}
if (_y > 370) {
_rotation = (_rotation + 20);
}
if (_y < 90) {
_rotation = (_rotation + 20);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if ((target <= 0) && (dead != true)) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.2;
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile4._visible = false;
}
Instance of Symbol 473 MovieClip "missile4B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (20 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 40) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_rotation = (_rotation + 20);
}
if (_x < 50) {
_rotation = (_rotation - 20);
}
if (_y > 370) {
_rotation = (_rotation + 20);
}
if (_y < 90) {
_rotation = (_rotation + 20);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if ((target <= 0) && (dead != true)) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.2;
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile4B._visible = false;
}
Instance of Symbol 473 MovieClip "missile4C" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (50 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y - 10) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_rotation = (_rotation + 20);
}
if (_x < 50) {
_rotation = (_rotation - 20);
}
if (_y > 370) {
_rotation = (_rotation + 20);
}
if (_y < 90) {
_rotation = (_rotation + 20);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if ((target <= 0) && (dead != true)) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.2;
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile4C._visible = false;
}
Instance of Symbol 475 MovieClip "missile5" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 30;
acc = -3;
this.gotoAndStop(1);
_rotation = 180;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((acc > 3) && (acc < 7.5)) {
_rotation = (_rotation - 20);
}
if ((acc >= 12) && (_rotation < 0)) {
_rotation = (_rotation + 5);
}
if (dead != true) {
acc = acc + 0.4;
_x = (_x + ((5 * acc) * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + ((5 * acc) * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_root.missile5._visible = false;
}
Instance of Symbol 475 MovieClip "missile5B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y - 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 30;
acc = -3;
this.gotoAndStop(1);
_rotation = -180;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((acc > 3) && (acc < 7.5)) {
_rotation = (_rotation + 20);
}
if ((acc >= 12) && (_rotation > 0)) {
_rotation = (_rotation - 5);
}
if (dead != true) {
acc = acc + 0.4;
_x = (_x + ((5 * acc) * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + ((5 * acc) * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_root.missile5B._visible = false;
}
Instance of Symbol 477 MovieClip "missile6" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
GU = 50;
acc = -3;
this.gotoAndStop(1);
_rotation = _root.rotator;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
_x = (_root.ship._x - (GU * Math.cos(_rotation * (Math.PI/180))));
_y = (_root.ship._y - (GU * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_rotation = (_rotation + 5);
GU = GU + 2;
removeMovieClip(_root.missile6);
_root.missile6._visible = false;
}
Instance of Symbol 481 MovieClip "laser7E" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (50 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + 25);
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 2;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 500))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 250))) && (_root.ENEMY._y > (_y - 250))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 500))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 250))) && (_root.ENEMY2._y > (_y - 250))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 500))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 250))) && (_root.ENEMY3._y > (_y - 250))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 500))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 250))) && (_root.ENEMY4._y > (_y - 250))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 500))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 250))) && (_root.ENEMY5._y > (_y - 250))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 500))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 250))) && (_root.ENEMY6._y > (_y - 250))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 500))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 250))) && (_root.ENEMY7._y > (_y - 250))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 500))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 250))) && (_root.ENEMY8._y > (_y - 250))) && (target <= 0)) {
target = 8;
}
if (dead != true) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.laser7E._visible = false;
removeMovieClip(_root.laser7E);
}
Instance of Symbol 481 MovieClip "laser7D" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (50 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - 25);
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 2;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 500))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 250))) && (_root.ENEMY._y > (_y - 250))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 500))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 250))) && (_root.ENEMY2._y > (_y - 250))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 500))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 250))) && (_root.ENEMY3._y > (_y - 250))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 500))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 250))) && (_root.ENEMY4._y > (_y - 250))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 500))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 250))) && (_root.ENEMY5._y > (_y - 250))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 500))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 250))) && (_root.ENEMY6._y > (_y - 250))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 500))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 250))) && (_root.ENEMY7._y > (_y - 250))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 500))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 250))) && (_root.ENEMY8._y > (_y - 250))) && (target <= 0)) {
target = 8;
}
if (dead != true) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.laser7D._visible = false;
removeMovieClip(_root.laser7D);
}
Instance of Symbol 477 MovieClip "missile6B" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
GU = 50;
acc = -3;
this.gotoAndStop(1);
_rotation = (_root.rotator + 120);
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
_x = (_root.ship._x - (GU * Math.cos(_rotation * (Math.PI/180))));
_y = (_root.ship._y - (GU * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_rotation = (_rotation + 5);
GU = GU + 2;
removeMovieClip(_root.missile6B);
_root.missile6B._visible = false;
}
Instance of Symbol 477 MovieClip "missile6C" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
GU = 50;
acc = -3;
this.gotoAndStop(1);
_rotation = (_root.rotator + 240);
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
_x = (_root.ship._x - (GU * Math.cos(_rotation * (Math.PI/180))));
_y = (_root.ship._y - (GU * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_rotation = (_rotation + 5);
GU = GU + 2;
removeMovieClip(_root.missile6C);
_root.missile6C._visible = false;
}
Instance of Symbol 505 MovieClip "missile2" in Frame 5
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 80;
acc = -25;
target = 0;
A = 0.2;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
YMO = (Math.random() * 5) - (Math.random() * 5);
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if (target <= 0) {
_x = (_x + 14);
_rotation = 0;
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.8;
}
if ((ACC < 0) && (target > 0)) {
_x = (_x + 3);
_y = (_y + YMO);
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile2._visible = false;
}
Instance of Symbol 507 MovieClip "ENEMYBlast" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY._x - 40);
_y = _root.ENEMY._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast);
_root.ENEMYblast._visible = false;
_x = (_x - 5);
}
Instance of Symbol 507 MovieClip "ENEMYBlast2" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY2._x - 40);
_y = _root.ENEMY2._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast2);
_root.ENEMYblast2._visible = false;
_x = (_x - 5);
}
Instance of Symbol 507 MovieClip "ENEMYBlast3" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY3._x - 40);
_y = _root.ENEMY3._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast3);
_root.ENEMYblast3._visible = false;
_x = (_x - 5);
}
Instance of Symbol 507 MovieClip "ENEMYBlast4" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY4._x - (40 * Math.cos(_root.ENEMY4.cannon._rotation * (Math.PI/180))));
_y = (_root.ENEMY4._y - (40 * Math.sin(_root.ENEMY4.cannon._rotation * (Math.PI/180))));
_rotation = _root.ENEMY4.cannon._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast4);
_root.ENEMYblast4._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast5" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY5._x - (40 * Math.cos(_root.ENEMY5.cannon._rotation * (Math.PI/180))));
_y = (_root.ENEMY5._y - (40 * Math.sin(_root.ENEMY5.cannon._rotation * (Math.PI/180))));
_rotation = _root.ENEMY5.cannon._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast5);
_root.ENEMYblast5._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (40 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY6._rotation - 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6);
_root.ENEMYblast6._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (40 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY7._rotation - 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7);
_root.ENEMYblast7._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf" in Frame 5
onClipEvent (load) {
_x = (_root.turret._x + (40 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (30 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = _root.turret._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf);
_root.bossf._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7B" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (1 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY7._rotation + 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7);
_root.ENEMYblast7._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6B" in Frame 5
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (1 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY6._rotation + 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6);
_root.ENEMYblast6._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 517 MovieClip "newmissile" in Frame 5
onClipEvent (load) {
type = random(7);
_x = 650;
_y = (Math.random() * 350);
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
time = 0;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ship) && (type <= 1)) && (_visible == true)) {
_root.ship.G2 = 1;
_root.ship.AMMO1 = _root.ship.AI;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 2)) && (_visible == true)) {
_root.ship.G2 = 2;
_root.ship.AMMO2 = _root.ship.AI2;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 3)) && (_visible == true)) {
_root.ship.G2 = 3;
_root.ship.AMMO3 = _root.ship.AI3;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 4)) && (_visible == true)) {
_root.ship.G2 = 4;
_root.ship.AMMO4 = _root.ship.AI4;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 5)) && (_visible == true)) {
_root.ship.G2 = 5;
_root.ship.ammo5 = _root.ship.AI5;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type >= 6)) && (_visible == true)) {
_root.ship.G2 = 6;
_root.ship.ammo6 = _root.ship.AI6;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if (time > 300) {
_visible = false;
removeMovieClip(this);
}
if (type <= 1) {
this.gotoAndStop(1);
}
if (type == 2) {
this.gotoAndStop(2);
}
if (type == 3) {
this.gotoAndStop(3);
}
if (type == 4) {
this.gotoAndStop(4);
}
if (type == 5) {
this.gotoAndStop(5);
}
if (type >= 6) {
this.gotoAndStop(6);
}
if (_x > 670) {
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_x < 40) {
XMOVE = Math.random() * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y > 370) {
YMOVE = (-Math.random()) * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y < 40) {
YMOVE = Math.random() * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
time = time + 1;
_x = (_x + XMOVE);
_y = (_y + YMOVE);
}
Instance of Symbol 517 MovieClip "newlaser" in Frame 5
onClipEvent (load) {
type = random(8) + 1;
_x = 650;
_y = (Math.random() * 350);
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
time = 0;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ship) && (type <= 1)) && (_visible == true)) {
_root.ship.G1 = 1;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 2)) && (_visible == true)) {
_root.ship.G1 = 2;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 3)) && (_visible == true)) {
_root.ship.G1 = 3;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 4)) && (_visible == true)) {
_root.ship.G1 = 4;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 5)) && (_visible == true)) {
_root.ship.G1 = 5;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 6)) && (_visible == true)) {
_root.ship.G1 = 6;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type >= 7)) && (_visible == true)) {
_root.ship.G1 = 7;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if (time > 300) {
_visible = false;
removeMovieClip(this);
}
if (type <= 1) {
this.gotoAndStop(1);
}
if (type == 2) {
this.gotoAndStop(2);
}
if (type == 3) {
this.gotoAndStop(3);
}
if (type == 4) {
this.gotoAndStop(4);
}
if (type == 5) {
this.gotoAndStop(5);
}
if (type == 6) {
this.gotoAndStop(6);
}
if (type >= 7) {
this.gotoAndStop(7);
}
if (_x > 670) {
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_x < 40) {
XMOVE = Math.random() * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y > 370) {
YMOVE = (-Math.random()) * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y < 40) {
YMOVE = Math.random() * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
time = time + 1;
_x = (_x + XMOVE);
_y = (_y + YMOVE);
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 5
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL > 100) {
EL = 1;
}
if ((scatter != true) && (_root.ENEMY8.Health > 0)) {
_root.turret._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret._y, _root.ship._x - _root.turret._x) * 57.2957795130823);
}
if ((((fire > 40) && (scatter != true)) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf, "null" + el, el);
fire = 0;
}
if (SC > 320) {
scatter = false;
SC = 0;
}
if (SC > 217) {
_root.turret._rotation = _root.turret._rotation - 5;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((scatter == true) && (blast > 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf, "null" + el, el);
blast = 0;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
El = El + 1;
EL2 = EL2 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 50;
_root.turret._y = _y + 30;
}
Instance of Symbol 571 MovieClip "mic" in Frame 5
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 588 MovieClip "gameover" in Frame 5
onClipEvent (load) {
this.swapDepths(10001);
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 5
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 70) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 5
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 70) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 5
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 5
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 70) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 5
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 70) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 5
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 5
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
}
Instance of Symbol 672 MovieClip "continueR" in Frame 5
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 676 MovieClip in Frame 5
onClipEvent (load) {
this.swapDepths(6000);
}
Frame 6
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
play();
Frame 7
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
_root.gotoAndStop(4);
Frame 8
stop();
Instance of Symbol 310 MovieClip "BG" in Frame 8
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 378 MovieClip "ship" in Frame 8
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
_root.bg.gotoAndStop(2);
G1 = 1;
G2 = 1;
G3 = 2;
_root.com = false;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 60000;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 0.9;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS2");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 30)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 407 MovieClip "electro" in Frame 8
onClipEvent (load) {
_rotation = ((Math.random() * 180) - (Math.random() * 180));
loading = 0;
lockon = random(9);
goob = (Math.random() * 20) - (Math.random() * 20);
_alpha = 100;
_visible = false;
}
onClipEvent (enterFrame) {
if (((loading > 3) && (_root.electrode == 1)) && (re != true)) {
_x = _root.ENEMY._x;
_y = _root.ENEMY._y;
POSX = _root.ENEMY._x;
POSY = _root.ENEMY._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 2)) && (re != true)) {
_x = _root.ENEMY2._x;
_y = _root.ENEMY2._y;
POSX = _root.ENEMY2._x;
POSY = _root.ENEMY2._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 3)) && (re != true)) {
_x = _root.ENEMY3._x;
_y = _root.ENEMY3._y;
POSX = _root.ENEMY3._x;
POSY = _root.ENEMY3._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 4)) && (re != true)) {
_x = _root.ENEMY4._x;
_y = _root.ENEMY4._y;
POSX = _root.ENEMY4._x;
POSY = _root.ENEMY4._y;
re = true;
}
if (((loading > 3) && (_root.electrode == 5)) && (re != true)) {
_x = _root.ENEMY5._x;
_y = _root.ENEMY5._y;
re = true;
POSX = _root.ENEMY5._x;
POSY = _root.ENEMY5._y;
}
if (((loading > 3) && (_root.electrode == 6)) && (re != true)) {
_x = _root.ENEMY6._x;
_y = _root.ENEMY6._y;
re = true;
POSX = _root.ENEMY6._x;
POSY = _root.ENEMY6._y;
}
if ((loading > 6) && (loading < 9)) {
_visible = true;
}
if ((this.box.hitTest(_root.ENEMY) && (_root.ENEMY.Health > 0)) && (_visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - 4;
_root.ENEMY.play();
}
if ((this.box.hitTest(_root.ENEMY2) && (_root.ENEMY2.Health > 0)) && (_visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - 4;
_root.ENEMY2.play();
}
if ((this.box.hitTest(_root.ENEMY3) && (_root.ENEMY3.Health > 0)) && (_visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - 4;
_root.ENEMY3.play();
}
if ((this.box.hitTest(_root.ENEMY4) && (_root.ENEMY4.Health > 0)) && (_visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - 4;
_root.ENEMY4.play();
}
if ((this.box.hitTest(_root.ENEMY5) && (_root.ENEMY5.Health > 0)) && (_visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - 4;
_root.ENEMY5.play();
}
if ((this.box.box.hitTest(_root.ENEMY6) && (_root.ENEMY6.Health > 0)) && (_visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - 10;
_root.ENEMY6.play();
_root.ENEMY6.Health = _root.ENEMY6.Health - (3 * _root.power);
}
if ((this.box.hitTest(_root.ENEMY7) && (_root.ENEMY7.Health > 0)) && (_visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - 10;
_root.ENEMY7.play();
_root.ENEMY7.Health = _root.ENEMY7.Health - (3 * _root.power);
}
if ((this.box.hitTest(_root.ENEMY8) && (_root.ENEMY8.Health > 0)) && (_visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - 10;
_root.ENEMY.Health = _root.ENEMY.Health - (3 * _root.power);
_root.ENEMY8.play();
}
if ((_root.electrode == 1) && (_root.ENEMY.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 2) && (_root.ENEMY2.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 3) && (_root.ENEMY3.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 4) && (_root.ENEMY4.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 5) && (_root.ENEMY5.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 6) && (_root.ENEMY6.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 7) && (_root.ENEMY7.HEalth <= 0)) {
_root.electrode = random(9);
}
if ((_root.electrode == 8) && (_root.ENEMY8.HEalth <= 0)) {
_root.electrode = random(9);
}
if (_root.spider.pause != true) {
loading = loading + 1;
_x = POSX;
_y = POSY;
_alpha = (_alpha - 2);
}
if (lockon <= 1) {
XSCA = _root.ENEMY._x - _x;
YSCA = _root.ENEMY._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) / (Math.PI/180)));
}
if (lockon == 2) {
XSCA = _root.ENEMY2._x - _x;
YSCA = _root.ENEMY2._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) / (Math.PI/180)));
}
if (lockon == 3) {
XSCA = _root.ENEMY3._x - _x;
YSCA = _root.ENEMY3._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) / (Math.PI/180)));
}
if (lockon >= 4) {
XSCA = _root.ENEMY4._x - _x;
YSCA = _root.ENEMY4._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) / (Math.PI/180)));
}
if ((_root.electrode == 1) && (lockon <= 1)) {
lockon = 2;
}
if ((_root.electrode == 2) && (lockon == 2)) {
lockon = 3;
}
if ((_root.electrode == 3) && (lockon == 3)) {
lockon = 3;
}
if ((_root.electrode == 4) && (lockon >= 4)) {
lockon = 1;
}
if (_alpha <= 0) {
_visible = false;
removeMovieClip(this);
}
_root.removeMovieClip(_root.electro);
_root.electro._visible = false;
}
Instance of Symbol 407 MovieClip "missile3" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
_visible = false;
lockon = 0;
XMOVE = 10;
YMOVE = 10;
_alpha = 100;
HP = 5;
this.laser.gotoAndStop(random(6));
}
onClipEvent (enterFrame) {
if ((this.box.hitTest(_root.ENEMY) && (_root.ENEMY.Health > 0)) && (_visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - 25;
_root.ENEMY.play();
_root.ENEMY.Health = _root.ENEMY.Health - (15 * _root.power6);
_root.electrode = 1;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY2) && (_root.ENEMY2.Health > 0)) && (_visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - 25;
_root.ENEMY2.play();
_root.ENEMY2.Health = _root.ENEMY2.Health - (15 * _root.power6);
_root.electrode = 2;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY3) && (_root.ENEMY3.Health > 0)) && (_visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - 25;
_root.ENEMY3.play();
_root.ENEMY3.Health = _root.ENEMY3.Health - (15 * _root.power6);
_root.electrode = 3;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY4) && (_root.ENEMY4.Health > 0)) && (_visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - 25;
_root.ENEMY4.play();
_root.ENEMY4.Health = _root.ENEMY4.Health - (15 * _root.power6);
_root.electrode = 4;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY5) && (_root.ENEMY5.Health > 0)) && (_visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - 25;
_root.ENEMY5.play();
_root.ENEMY5.Health = _root.ENEMY5.Health - (15 * _root.power6);
_root.electrode = 5;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY6) && (_root.ENEMY6.Health > 0)) && (_visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - 25;
_root.ENEMY6.play();
_root.ENEMY6.Health = _root.ENEMY6.Health - (15 * _root.power6);
_root.electrode = 6;
HP = HP - 1;
}
if ((this.box.hitTest(_root.ENEMY7) && (_root.ENEMY7.Health > 0)) && (_visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - 25;
_root.ENEMY7.play();
_root.ENEMY7.Health = _root.ENEMY7.Health - (15 * _root.power6);
HP = HP - 1;
_root.electrode = 7;
}
if ((this.box.hitTest(_root.ENEMY8) && (_root.ENEMY8.Health > 0)) && (_visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - 25;
_root.ENEMY8.play();
_root.ENEMY8.Health = _root.ENEMY8.Health - (15 * _root.power6);
HP = HP - 1;
_root.electrode = 8;
}
if (((((((_root.ENEMY._y > (_y - 300)) && (_root.ENEMY._y < (_y + 300))) && (_root.ENEMY._x > (_x - 400))) && (_root.ENEMY._x < (_x + 400))) && (_root.ENEMY.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY._visible == true)) {
lockon = 1;
MOTION = -13;
_visible = true;
}
if ((lockon == 1) && (_visible == true)) {
XSCA = _root.ENEMY._x - _x;
YSCA = _root.ENEMY._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY2._y > (_y - 300)) && (_root.ENEMY2._y < (_y + 300))) && (_root.ENEMY2._x > (_x - 400))) && (_root.ENEMY2._x < (_x + 400))) && (_root.ENEMY2.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY2._visible == true)) {
lockon = 2;
_visible = true;
}
if ((lockon == 2) && (_visible == true)) {
XSCA = _root.ENEMY2._x - _x;
YSCA = _root.ENEMY2._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY3._y > (_y - 300)) && (_root.ENEMY3._y < (_y + 300))) && (_root.ENEMY3._x > (_x - 400))) && (_root.ENEMY3._x < (_x + 400))) && (_root.ENEMY3.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY3._visible == true)) {
lockon = 3;
_visible = true;
}
if ((lockon == 3) && (_visible == true)) {
XSCA = _root.ENEMY3._x - _x;
YSCA = _root.ENEMY3._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY4._y > (_y - 300)) && (_root.ENEMY4._y < (_y + 300))) && (_root.ENEMY4._x > (_x - 400))) && (_root.ENEMY4._x < (_x + 400))) && (_root.ENEMY4.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY4._visible == true)) {
lockon = 4;
_visible = true;
}
if ((lockon == 4) && (_visible == true)) {
XSCA = _root.ENEMY4._x - _x;
YSCA = _root.ENEMY4._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY5._y > (_y - 300)) && (_root.ENEMY5._y < (_y + 300))) && (_root.ENEMY5._x > (_x - 400))) && (_root.ENEMY5._x < (_x + 400))) && (_root.ENEMY5.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY5._visible == true)) {
lockon = 5;
_visible = true;
}
if ((lockon == 5) && (_visible == true)) {
XSCA = _root.ENEMY5._x - _x;
YSCA = _root.ENEMY5._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY6._y > (_y - 300)) && (_root.ENEMY6._y < (_y + 300))) && (_root.ENEMY6._x > (_x - 400))) && (_root.ENEMY6._x < (_x + 400))) && (_root.ENEMY6.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY6._visible == true)) {
lockon = 6;
_visible = true;
}
if ((lockon == 6) && (_visible == true)) {
XSCA = _root.ENEMY6._x - _x;
YSCA = _root.ENEMY6._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY7._y > (_y - 300)) && (_root.ENEMY7._y < (_y + 300))) && (_root.ENEMY7._x > (_x - 400))) && (_root.ENEMY7._x < (_x + 400))) && (_root.ENEMY7.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY7._visible == true)) {
lockon = 7;
_visible = true;
}
if ((lockon == 7) && (_visible == true)) {
XSCA = _root.ENEMY7._x - _x;
YSCA = _root.ENEMY7._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) / (Math.PI/180)));
}
if (((((((_root.ENEMY8._y > (_y - 300)) && (_root.ENEMY8._y < (_y + 300))) && (_root.ENEMY8._x > (_x - 400))) && (_root.ENEMY8._x < (_x + 400))) && (_root.ENEMY8.HEALTH > 0)) && (lockon <= 0)) && (_root.ENEMY8._visible == true)) {
lockon = 8;
_visible = true;
}
if ((lockon == 8) && (_visible == true)) {
XSCA = _root.ENEMY8._x - _x;
YSCA = _root.ENEMY8._y - _y;
ARC = (XSCA * XSCA) + (YSCA * YSCA);
ELT = Math.sqrt(ARC);
_xscale = (ELT / 3.2);
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) / (Math.PI/180)));
}
if ((_root.ENEMY.HEalth <= 0) && (lockon == 1)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY2.HEalth <= 0) && (lockon == 2)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY3.HEalth <= 0) && (lockon == 3)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY4.HEalth <= 0) && (lockon == 4)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY5.HEalth <= 0) && (lockon == 5)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY6.HEalth <= 0) && (lockon == 6)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY7.HEalth <= 0) && (lockon == 7)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY8.HEalth <= 0) && (lockon == 8)) {
_visible = false;
_alpha = 0;
}
if ((_root.ENEMY9.HEalth <= 0) && (lockon == 9)) {
_visible = false;
_alpha = 0;
}
if (((time > 3) && (lockon <= 0)) && (_root.ship.pause != true)) {
_visible = true;
_alpha = (_alpha - 3);
}
if ((_alpha <= 0) && (time > 3)) {
removeMovieClip(this);
_visible = false;
}
if (lockon <= 0) {
_xscale = 300;
}
if ((_root.ship.pause != true) && (time > 3)) {
_alpha = (_alpha - 3);
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
}
time = time + 1;
removeMovieClip(_root.missile3);
_root.missile3._visible = false;
}
Instance of Symbol 413 MovieClip "laser" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser);
_root.laser._visible = false;
_x = (_x + 30);
}
Instance of Symbol 418 MovieClip "laser2" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser2);
_root.laser2._visible = false;
_y = ((50 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 5);
}
Instance of Symbol 418 MovieClip "laser2B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser2B);
_root.laser2B._visible = false;
removeMovieClip(_root.laser2B);
_y = ((-50 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 5);
}
Instance of Symbol 413 MovieClip "laser3B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
_rotation = 30;
dead = false;
remove = 0;
power = 10;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser3B);
_root.laser3B._visible = false;
removeMovieClip(_root.laser3B);
_y = (_y + 10);
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser3" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 2;
dead = false;
remove = 0;
power = 10;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser3);
_root.laser3._visible = false;
removeMovieClip(_root.laser3);
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser3C" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
_rotation = -30;
dead = false;
remove = 0;
power = 10;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser3C);
_root.laser3C._visible = false;
removeMovieClip(_root.laser3C);
_y = (_y - 10);
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser4B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x - (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 10) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 4;
timer = 0;
motion = 4;
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((timer > 5) && (_rotation > -170)) {
_rotation = (_rotation - 30);
motion = motion + 0.8;
}
if (_rotation < -173) {
_rotation = -180;
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser4B);
_root.laser4B._visible = false;
timer = timer + 1;
motion = motion + 0.8;
_x = (_x - (motion * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (motion * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 413 MovieClip "laser4" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 4;
timer = 0;
motion = 5;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (timer > 30) {
motion = motion + 0.8;
}
removeMovieClip(_root.laser4);
_root.laser4._visible = false;
motion = motion + 0.8;
timer = timer + 1;
_x = (_x + motion);
}
Instance of Symbol 413 MovieClip "laser4C" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x - (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y - 10) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 4;
timer = 0;
motion = 4;
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((timer > 5) && (_rotation < 170)) {
_rotation = (_rotation + 30);
motion = motion + 0.8;
}
if (_rotation > 173) {
_rotation = 180;
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (timer > 30) {
motion = motion + 0.8;
}
removeMovieClip(_root.laser4C);
_root.laser4C._visible = false;
motion = motion + 0.8;
timer = timer + 1;
_x = (_x - (motion * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (motion * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 413 MovieClip "laser5" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
power = 8;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser5);
_root.laser5._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser5D" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
dead = false;
power = 23;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser5D);
_root.laser5D._visible = false;
_y = ((-70 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 7);
}
Instance of Symbol 413 MovieClip "laser5E" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
dead = false;
remove = 0;
power = 8;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (visible == true)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (visible == true)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (visible == true)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (visible == true)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (visible == true)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (visible == true)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (visible == true)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (visible == true)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (visible == true)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser5E);
_root.laser5E._visible = false;
_y = ((70 * Math.sin(_x / 30)) + bizzaro);
_x = (_x + 7);
}
Instance of Symbol 413 MovieClip "laser6" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + 10);
power = 4;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser6);
_root.laser6._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser6B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - 10);
power = 4;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser6B);
_root.laser6B._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser7B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - 5);
power = 1;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser7B);
_root.laser7B._visible = false;
_x = (_x + 30);
}
Instance of Symbol 413 MovieClip "laser7C" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + 5);
power = 1;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) {
_root.ENEMY.Health = _root.ENEMY.Health - (5 * power);
_root.ENEMY.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) {
_root.ENEMY2.Health = _root.ENEMY2.Health - (5 * power);
_root.ENEMY2.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) {
_root.ENEMY3.Health = _root.ENEMY3.Health - (5 * power);
_root.ENEMY3.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) {
_root.ENEMY4.Health = _root.ENEMY4.Health - (5 * power);
_root.ENEMY4.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) {
_root.ENEMY5.Health = _root.ENEMY5.Health - (5 * power);
_root.ENEMY5.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) {
_root.ENEMY6.Health = _root.ENEMY6.Health - (5 * power);
_root.ENEMY6.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) {
_root.ENEMY7.Health = _root.ENEMY7.Health - (5 * power);
_root.ENEMY7.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) {
_root.ENEMY8.Health = _root.ENEMY8.Health - (5 * power);
_root.ENEMY8.play();
removeMovieClip(this);
}
if (this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) {
_root.ENEMY9.Health = _root.ENEMY9.Health - (5 * power);
_root.ENEMY9.play();
removeMovieClip(this);
}
removeMovieClip(_root.laser7C);
_root.laser7C._visible = false;
_x = (_x + 30);
}
Instance of Symbol 461 MovieClip "missile" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 30;
acc = -3;
this.gotoAndStop(1);
_rotation = 0;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
acc = acc + 0.4;
_x = (_x + (5 * acc));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
removeMovieClip(_root.missile);
_root.missile._visible = false;
}
Instance of Symbol 473 MovieClip "missile4" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_rotation = (_rotation + 20);
}
if (_x < 50) {
_rotation = (_rotation - 20);
}
if (_y > 370) {
_rotation = (_rotation + 20);
}
if (_y < 90) {
_rotation = (_rotation + 20);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if ((target <= 0) && (dead != true)) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.2;
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile4._visible = false;
}
Instance of Symbol 473 MovieClip "missile4B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (20 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 40) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_rotation = (_rotation + 20);
}
if (_x < 50) {
_rotation = (_rotation - 20);
}
if (_y > 370) {
_rotation = (_rotation + 20);
}
if (_y < 90) {
_rotation = (_rotation + 20);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if ((target <= 0) && (dead != true)) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.2;
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile4B._visible = false;
}
Instance of Symbol 473 MovieClip "missile4C" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (50 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y - 10) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_rotation = (_rotation + 20);
}
if (_x < 50) {
_rotation = (_rotation - 20);
}
if (_y > 370) {
_rotation = (_rotation + 20);
}
if (_y < 90) {
_rotation = (_rotation + 20);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if ((target <= 0) && (dead != true)) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.2;
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile4C._visible = false;
}
Instance of Symbol 475 MovieClip "missile5" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 30;
acc = -3;
this.gotoAndStop(1);
_rotation = 180;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((acc > 3) && (acc < 7.5)) {
_rotation = (_rotation - 20);
}
if ((acc >= 12) && (_rotation < 0)) {
_rotation = (_rotation + 5);
}
if (dead != true) {
acc = acc + 0.4;
_x = (_x + ((5 * acc) * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + ((5 * acc) * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_root.missile5._visible = false;
}
Instance of Symbol 475 MovieClip "missile5B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y - 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 30;
acc = -3;
this.gotoAndStop(1);
_rotation = -180;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((acc > 3) && (acc < 7.5)) {
_rotation = (_rotation + 20);
}
if ((acc >= 12) && (_rotation > 0)) {
_rotation = (_rotation - 5);
}
if (dead != true) {
acc = acc + 0.4;
_x = (_x + ((5 * acc) * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + ((5 * acc) * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_root.missile5B._visible = false;
}
Instance of Symbol 477 MovieClip "missile6" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
GU = 50;
acc = -3;
this.gotoAndStop(1);
_rotation = _root.rotator;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
_x = (_root.ship._x - (GU * Math.cos(_rotation * (Math.PI/180))));
_y = (_root.ship._y - (GU * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_rotation = (_rotation + 5);
GU = GU + 2;
removeMovieClip(_root.missile6);
_root.missile6._visible = false;
}
Instance of Symbol 481 MovieClip "laser7E" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (50 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y + 25);
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 2;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 500))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 250))) && (_root.ENEMY._y > (_y - 250))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 500))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 250))) && (_root.ENEMY2._y > (_y - 250))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 500))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 250))) && (_root.ENEMY3._y > (_y - 250))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 500))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 250))) && (_root.ENEMY4._y > (_y - 250))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 500))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 250))) && (_root.ENEMY5._y > (_y - 250))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 500))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 250))) && (_root.ENEMY6._y > (_y - 250))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 500))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 250))) && (_root.ENEMY7._y > (_y - 250))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 500))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 250))) && (_root.ENEMY8._y > (_y - 250))) && (target <= 0)) {
target = 8;
}
if (dead != true) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.laser7E._visible = false;
removeMovieClip(_root.laser7E);
}
Instance of Symbol 481 MovieClip "laser7D" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (50 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = (_root.ship._y - 25);
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 2;
acc = -15;
target = 0;
A = 0.7;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 500))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 250))) && (_root.ENEMY._y > (_y - 250))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 500))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 250))) && (_root.ENEMY2._y > (_y - 250))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 500))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 250))) && (_root.ENEMY3._y > (_y - 250))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 500))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 250))) && (_root.ENEMY4._y > (_y - 250))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 500))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 250))) && (_root.ENEMY5._y > (_y - 250))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 500))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 250))) && (_root.ENEMY6._y > (_y - 250))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 500))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 250))) && (_root.ENEMY7._y > (_y - 250))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 500))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 250))) && (_root.ENEMY8._y > (_y - 250))) && (target <= 0)) {
target = 8;
}
if (dead != true) {
_x = (_x + (30 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (30 * Math.sin(_rotation * (Math.PI/180))));
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.laser7D._visible = false;
removeMovieClip(_root.laser7D);
}
Instance of Symbol 477 MovieClip "missile6B" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
GU = 50;
acc = -3;
this.gotoAndStop(1);
_rotation = (_root.rotator + 120);
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
_x = (_root.ship._x - (GU * Math.cos(_rotation * (Math.PI/180))));
_y = (_root.ship._y - (GU * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_rotation = (_rotation + 5);
GU = GU + 2;
removeMovieClip(_root.missile6B);
_root.missile6B._visible = false;
}
Instance of Symbol 477 MovieClip "missile6C" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 50;
GU = 50;
acc = -3;
this.gotoAndStop(1);
_rotation = (_root.rotator + 240);
remove = 0;
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if (dead != true) {
_x = (_root.ship._x - (GU * Math.cos(_rotation * (Math.PI/180))));
_y = (_root.ship._y - (GU * Math.sin(_rotation * (Math.PI/180))));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
_rotation = (_rotation + 5);
GU = GU + 2;
removeMovieClip(_root.missile6C);
_root.missile6C._visible = false;
}
Instance of Symbol 505 MovieClip "missile2" in Frame 8
onClipEvent (load) {
_x = (_root.ship._x + (40 * Math.cos(_root.ship._rotation * (Math.PI/180))));
_y = ((_root.ship._y + 30) + (40 * Math.sin(_root.ship._rotation * (Math.PI/180))));
bizzaro = _root.ship._y;
war = _root.ship._y;
power = 80;
acc = -25;
target = 0;
A = 0.2;
this.gotoAndStop(1);
_rotation = 0;
dead = false;
remove = 0;
YMO = (Math.random() * 5) - (Math.random() * 5);
}
onClipEvent (enterFrame) {
if (_x > 700) {
removeMovieClip(this);
}
if ((((((_root.ENEMY.Health > 0) && (_root.ENEMY._x < (_x + 100))) && (_root.ENEMY._x > (_x - 50))) && (_root.ENEMY._y < (_y + 70))) && (_root.ENEMY._y > (_y - 70))) && (target <= 0)) {
target = 1;
}
if ((((((_root.ENEMY2.Health > 0) && (_root.ENEMY2._x < (_x + 100))) && (_root.ENEMY2._x > (_x - 50))) && (_root.ENEMY2._y < (_y + 70))) && (_root.ENEMY2._y > (_y - 70))) && (target <= 0)) {
target = 2;
}
if ((((((_root.ENEMY3.Health > 0) && (_root.ENEMY3._x < (_x + 100))) && (_root.ENEMY3._x > (_x - 50))) && (_root.ENEMY3._y < (_y + 70))) && (_root.ENEMY3._y > (_y - 70))) && (target <= 0)) {
target = 3;
}
if ((((((_root.ENEMY4.Health > 0) && (_root.ENEMY4._x < (_x + 100))) && (_root.ENEMY4._x > (_x - 50))) && (_root.ENEMY4._y < (_y + 70))) && (_root.ENEMY4._y > (_y - 70))) && (target <= 0)) {
target = 4;
}
if ((((((_root.ENEMY5.Health > 0) && (_root.ENEMY5._x < (_x + 100))) && (_root.ENEMY5._x > (_x - 50))) && (_root.ENEMY5._y < (_y + 70))) && (_root.ENEMY5._y > (_y - 70))) && (target <= 0)) {
target = 5;
}
if ((((((_root.ENEMY6.Health > 0) && (_root.ENEMY6._x < (_x + 100))) && (_root.ENEMY6._x > (_x - 50))) && (_root.ENEMY6._y < (_y + 70))) && (_root.ENEMY6._y > (_y - 70))) && (target <= 0)) {
target = 6;
}
if ((((((_root.ENEMY7.Health > 0) && (_root.ENEMY7._x < (_x + 100))) && (_root.ENEMY7._x > (_x - 50))) && (_root.ENEMY7._y < (_y + 70))) && (_root.ENEMY7._y > (_y - 70))) && (target <= 0)) {
target = 7;
}
if ((((((_root.ENEMY8.Health > 0) && (_root.ENEMY8._x < (_x + 100))) && (_root.ENEMY8._x > (_x - 50))) && (_root.ENEMY8._y < (_y + 70))) && (_root.ENEMY8._y > (_y - 70))) && (target <= 0)) {
target = 8;
}
if (target <= 0) {
_x = (_x + 14);
_rotation = 0;
}
if ((target > 0) && (dead != true)) {
_x = (_x + (ACC * Math.cos(_rotation * (Math.PI/180))));
_y = (_y + (ACC * Math.sin(_rotation * (Math.PI/180))));
ACC = ACC + A;
A = A * 1.8;
}
if ((ACC < 0) && (target > 0)) {
_x = (_x + 3);
_y = (_y + YMO);
}
if ((target == 1) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY._y, _x - _root.ENEMY._x) * 57.2957795130823));
}
if ((target == 2) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY2._y, _x - _root.ENEMY2._x) * 57.2957795130823));
}
if ((target == 3) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY3._y, _x - _root.ENEMY3._x) * 57.2957795130823));
}
if ((target == 4) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY4._y, _x - _root.ENEMY4._x) * 57.2957795130823));
}
if ((target == 5) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY5._y, _x - _root.ENEMY5._x) * 57.2957795130823));
}
if ((target == 6) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY6._y, _x - _root.ENEMY6._x) * 57.2957795130823));
}
if ((target == 7) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY7._y, _x - _root.ENEMY7._x) * 57.2957795130823));
}
if ((target == 8) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY8._y, _x - _root.ENEMY8._x) * 57.2957795130823));
}
if ((target == 9) && (dead != true)) {
_rotation = (180 + (Math.atan2(_y - _root.ENEMY9._y, _x - _root.ENEMY9._x) * 57.2957795130823));
}
if ((this.hitTest(_root.ENEMY) && (_root.ENEMY.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY.Health = _root.ENEMY.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY2) && (_root.ENEMY2.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY2.Health = _root.ENEMY2.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY3) && (_root.ENEMY3.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY3.Health = _root.ENEMY3.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY4) && (_root.ENEMY4.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY4.Health = _root.ENEMY4.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY5) && (_root.ENEMY5.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY5.Health = _root.ENEMY5.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY6) && (_root.ENEMY6.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY6.Health = _root.ENEMY6.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY7) && (_root.ENEMY7.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY7.Health = _root.ENEMY7.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY8) && (_root.ENEMY8.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY8.Health = _root.ENEMY8.Health - (10 * power);
}
if ((this.hitTest(_root.ENEMY9) && (_root.ENEMY9.HEalth > 0)) && (dead != true)) {
this.play();
dead = true;
_root.ENEMY9.Health = _root.ENEMY9.Health - (10 * power);
}
if (dead == true) {
remove = remove + 1;
}
if (remove > 50) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if (_visible == false) {
this.gotoAndStop(50);
removeMovieClip(this);
}
if ((target == 1) && (_root.ENEMY.Health <= 0)) {
target = 0;
}
if ((target == 2) && (_root.ENEMY2.Health <= 0)) {
target = 0;
}
if ((target == 3) && (_root.ENEMY3.Health <= 0)) {
target = 0;
}
if ((target == 4) && (_root.ENEMY4.Health <= 0)) {
target = 0;
}
if ((target == 5) && (_root.ENEMY5.Health <= 0)) {
target = 0;
}
if ((target == 6) && (_root.ENEMY6.Health <= 0)) {
target = 0;
}
if ((target == 7) && (_root.ENEMY7.Health <= 0)) {
target = 0;
}
if ((target == 8) && (_root.ENEMY8.Health <= 0)) {
target = 0;
}
if ((target == 9) && (_root.ENEMY9.Health <= 0)) {
target = 0;
}
_root.missile2._visible = false;
}
Instance of Symbol 507 MovieClip "ENEMYBlast" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY._x - 40);
_y = _root.ENEMY._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast);
_root.ENEMYblast._visible = false;
_x = (_x - 5);
}
Instance of Symbol 507 MovieClip "ENEMYBlast2" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY2._x - 40);
_y = _root.ENEMY2._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast2);
_root.ENEMYblast2._visible = false;
_x = (_x - 5);
}
Instance of Symbol 507 MovieClip "ENEMYBlast3" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY3._x - 40);
_y = _root.ENEMY3._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast3);
_root.ENEMYblast3._visible = false;
_x = (_x - 5);
}
Instance of Symbol 507 MovieClip "ENEMYBlast4" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY4._x - (40 * Math.cos(_root.ENEMY4.cannon._rotation * (Math.PI/180))));
_y = (_root.ENEMY4._y - (40 * Math.sin(_root.ENEMY4.cannon._rotation * (Math.PI/180))));
_rotation = _root.ENEMY4.cannon._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast4);
_root.ENEMYblast4._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast5" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY5._x - (40 * Math.cos(_root.ENEMY5.cannon._rotation * (Math.PI/180))));
_y = (_root.ENEMY5._y - (40 * Math.sin(_root.ENEMY5.cannon._rotation * (Math.PI/180))));
_rotation = _root.ENEMY5.cannon._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast5);
_root.ENEMYblast5._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (40 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY6._rotation - 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6);
_root.ENEMYblast6._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (40 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY7._rotation - 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7);
_root.ENEMYblast7._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf" in Frame 8
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (40 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = _root.turret2._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf);
_root.bossf._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7B" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (1 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY7._rotation + 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7);
_root.ENEMYblast7._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6B" in Frame 8
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (1 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = (_root.ENEMY6._rotation + 15);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6);
_root.ENEMYblast6._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf2" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf2);
_root.bossf2._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf3" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 40);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf3);
_root.bossf3._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf4" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 20);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf4);
_root.bossf4._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf5" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = _root.turret._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf5);
_root.bossf5._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf6" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 20);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf6);
_root.bossf6._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 517 MovieClip "newmissile" in Frame 8
onClipEvent (load) {
type = random(7);
_x = 650;
_y = (Math.random() * 350);
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
time = 0;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ship) && (type <= 1)) && (_visible == true)) {
_root.ship.G2 = 1;
_root.ship.AMMO1 = _root.ship.AI;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 2)) && (_visible == true)) {
_root.ship.G2 = 2;
_root.ship.AMMO2 = _root.ship.AI2;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 3)) && (_visible == true)) {
_root.ship.G2 = 3;
_root.ship.AMMO3 = _root.ship.AI3;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 4)) && (_visible == true)) {
_root.ship.G2 = 4;
_root.ship.AMMO4 = _root.ship.AI4;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type == 5)) && (_visible == true)) {
_root.ship.G2 = 5;
_root.ship.ammo5 = _root.ship.AI5;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if ((this.hitTest(_root.ship) && (type >= 6)) && (_visible == true)) {
_root.ship.G2 = 6;
_root.ship.ammo6 = _root.ship.AI6;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU");
}
if (time > 300) {
_visible = false;
removeMovieClip(this);
}
if (type <= 1) {
this.gotoAndStop(1);
}
if (type == 2) {
this.gotoAndStop(2);
}
if (type == 3) {
this.gotoAndStop(3);
}
if (type == 4) {
this.gotoAndStop(4);
}
if (type == 5) {
this.gotoAndStop(5);
}
if (type >= 6) {
this.gotoAndStop(6);
}
if (_x > 670) {
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_x < 40) {
XMOVE = Math.random() * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y > 370) {
YMOVE = (-Math.random()) * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y < 40) {
YMOVE = Math.random() * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
time = time + 1;
_x = (_x + XMOVE);
_y = (_y + YMOVE);
}
Instance of Symbol 517 MovieClip "newlaser" in Frame 8
onClipEvent (load) {
type = random(8) + 1;
_x = 650;
_y = (Math.random() * 350);
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
time = 0;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ship) && (type <= 1)) && (_visible == true)) {
_root.ship.G1 = 1;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 2)) && (_visible == true)) {
_root.ship.G1 = 2;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 3)) && (_visible == true)) {
_root.ship.G1 = 3;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 4)) && (_visible == true)) {
_root.ship.G1 = 4;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 5)) && (_visible == true)) {
_root.ship.G1 = 5;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type == 6)) && (_visible == true)) {
_root.ship.G1 = 6;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if ((this.hitTest(_root.ship) && (type >= 7)) && (_visible == true)) {
_root.ship.G1 = 7;
_visible = false;
removeMovieClip(this);
_root.sun.gotoAndPlay("PU2");
}
if (time > 300) {
_visible = false;
removeMovieClip(this);
}
if (type <= 1) {
this.gotoAndStop(1);
}
if (type == 2) {
this.gotoAndStop(2);
}
if (type == 3) {
this.gotoAndStop(3);
}
if (type == 4) {
this.gotoAndStop(4);
}
if (type == 5) {
this.gotoAndStop(5);
}
if (type == 6) {
this.gotoAndStop(6);
}
if (type >= 7) {
this.gotoAndStop(7);
}
if (_x > 670) {
XMOVE = (-Math.random()) * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_x < 40) {
XMOVE = Math.random() * 5;
YMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y > 370) {
YMOVE = (-Math.random()) * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
if (_y < 40) {
YMOVE = Math.random() * 5;
XMOVE = (Math.random() * 5) - (Math.random() * 5);
}
time = time + 1;
_x = (_x + XMOVE);
_y = (_y + YMOVE);
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 8
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
EL3 = 300;
EL5 = 500;
EL4 = 400;
EL6 = 600;
EL7 = 700;
EL8 = 800;
EL9 = 900;
this.base.gotoAndStop(2);
_root.turret.base.gotoAndStop(3);
_root.turret2.base.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL3 > 400) {
EL3 = 300;
}
if (EL4 > 500) {
EL4 = 400;
}
if (EL5 > 600) {
EL5 = 500;
}
if (EL6 > 700) {
EL6 = 600;
}
if (EL7 > 800) {
EL7 = 700;
}
if (EL8 > 900) {
EL8 = 800;
}
if (EL9 > 1000) {
EL9 = 900;
}
if (EL > 100) {
EL = 1;
}
if (_root.ENEMY8.Health > 0) {
_root.turret2._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret2._y, _root.ship._x - _root.turret2._x) * 57.2957795130823);
}
if (_root.fire2 > 175) {
_root.turret._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret._y, _root.ship._x - _root.turret._x) * 57.2957795130823);
}
if (((fire > 40) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf, "null" + el, el);
fire = 0;
}
if (((fire2 > 180) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf2, "null" + el2, el2);
duplicateMovieClip (_root.bossf3, "null" + el3, el3);
duplicateMovieClip (_root.bossf4, "null" + el4, el4);
duplicateMovieClip (_root.bossf5, "null" + el5, el5);
duplicateMovieClip (_root.bossf6, "null" + el6, el6);
duplicateMovieClip (_root.bossf7, "null" + el7, el7);
duplicateMovieClip (_root.bossf8, "null" + el2, el8);
fire2 = 0;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
_root.turret2.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.turret2._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
fire2 = fire2 + 1;
El = El + 1;
EL2 = EL2 + 1;
El3 = El3 + 1;
EL4 = EL4 + 1;
El5 = El5 + 1;
EL6 = EL6 + 1;
El7 = El7 + 1;
EL8 = EL8 + 1;
El9 = El9 + 1;
EL10 = EL10 + 1;
El = El + 1;
EL11 = EL11 + 1;
El12 = El12 + 1;
EL13 = EL13 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8.base.gotoAndStop(2);
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 140;
_root.turret._y = _y - 30;
_root.turret2._x = _x + 70;
_root.turret2._y = _y + 60;
}
Instance of Symbol 507 MovieClip "bossf7" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 40);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf7);
_root.bossf7._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf8" in Frame 8
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf8);
_root.bossf8._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 571 MovieClip "mic" in Frame 8
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 588 MovieClip "gameover" in Frame 8
onClipEvent (load) {
this.swapDepths(10001);
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 8
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(2);
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 8
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(2);
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 8
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(2);
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 8
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(2);
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 8
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(2);
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 8
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(2);
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 8
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(2);
}
Instance of Symbol 672 MovieClip "continueR" in Frame 8
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 676 MovieClip in Frame 8
onClipEvent (load) {
this.swapDepths(6000);
}
Frame 9
stop();
Instance of Symbol 310 MovieClip "BG" in Frame 9
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 378 MovieClip "ship" in Frame 9
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
G1 = 1;
G2 = 1;
G3 = 2;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 60000;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 0.8;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.com = false;
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS3");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 50)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 507 MovieClip "bossf2" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 50);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 2);
removeMovieClip(_root.bossf2);
_root.bossf2._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf3" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 2);
removeMovieClip(_root.bossf3);
_root.bossf3._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf4" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 10);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 2);
removeMovieClip(_root.bossf4);
_root.bossf4._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf5" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = _root.turret2._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf5);
_root.bossf5._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf6" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 10);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 2);
removeMovieClip(_root.bossf6);
_root.bossf6._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7C" in Frame 9
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (40 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = _root.ENEMY7._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7C);
_root.ENEMYblast7C._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6C" in Frame 9
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (40 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = _root.ENEMY6._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6C);
_root.ENEMYblast6C._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 9
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
EL3 = 300;
EL5 = 500;
EL4 = 400;
EL6 = 600;
EL7 = 700;
EL8 = 800;
EL9 = 900;
this.base.gotoAndStop(3);
_root.turret.base.gotoAndStop(4);
_root.turret2.base.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL3 > 400) {
EL3 = 300;
}
if (EL4 > 500) {
EL4 = 400;
}
if (EL5 > 600) {
EL5 = 500;
}
if (EL6 > 700) {
EL6 = 600;
}
if (EL7 > 800) {
EL7 = 700;
}
if (EL8 > 900) {
EL8 = 800;
}
if (EL9 > 1000) {
EL9 = 900;
}
if (EL > 100) {
EL = 1;
}
if (_root.ENEMY8.Health > 0) {
_root.turret2._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret2._y, _root.ship._x - _root.turret2._x) * 57.2957795130823);
}
if (((fire2 > 90) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf2, "null" + el2, el2);
duplicateMovieClip (_root.bossf3, "null" + el3, el3);
duplicateMovieClip (_root.bossf4, "null" + el4, el4);
duplicateMovieClip (_root.bossf5, "null" + el5, el5);
duplicateMovieClip (_root.bossf6, "null" + el6, el6);
duplicateMovieClip (_root.bossf7, "null" + el7, el7);
duplicateMovieClip (_root.bossf8, "null" + el2, el8);
fire2 = 0;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
_root.turret2.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.turret2._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
fire2 = fire2 + 1;
El = El + 1;
EL2 = EL2 + 1;
El3 = El3 + 1;
EL4 = EL4 + 1;
El5 = El5 + 1;
EL6 = EL6 + 1;
El7 = El7 + 1;
EL8 = EL8 + 1;
El9 = El9 + 1;
EL10 = EL10 + 1;
El = El + 1;
EL11 = EL11 + 1;
El12 = El12 + 1;
EL13 = EL13 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8.base.gotoAndStop(3);
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 140;
_root.turret._y = _y - 30;
_root.turret2._x = _x + 70;
_root.turret2._y = _y + 60;
}
Instance of Symbol 507 MovieClip "bossf7" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 2);
removeMovieClip(_root.bossf7);
_root.bossf7._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf8" in Frame 9
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 50);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 2);
removeMovieClip(_root.bossf8);
_root.bossf8._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 9
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
EL3 = 900;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast6C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
EL3 = EL3 + 1;
this.base.gotoAndStop(3);
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 9
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
EL3 = 900;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast7C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(3);
EL3 = EL3 + 1;
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 9
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(3);
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 9
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(3);
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 9
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(3);
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 9
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(3);
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 9
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(3);
}
Frame 10
stop();
Instance of Symbol 310 MovieClip "BG" in Frame 10
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 378 MovieClip "ship" in Frame 10
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
G1 = 1;
G2 = 1;
G3 = 2;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 60000;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 1.2;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.com = false;
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS3");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 50)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 507 MovieClip "bossf" in Frame 10
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 3);
removeMovieClip(_root.bossf);
_root.bossf._visible = false;
_x = (_x - (24 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (24 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf2" in Frame 10
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 4);
removeMovieClip(_root.bossf2);
_root.bossf2._visible = false;
_x = (_x - (24 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (24 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7C" in Frame 10
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (40 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = _root.ENEMY7._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7C);
_root.ENEMYblast7C._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6C" in Frame 10
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (40 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = _root.ENEMY6._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6C);
_root.ENEMYblast6C._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf3" in Frame 10
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 2);
removeMovieClip(_root.bossf3);
_root.bossf3._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf4" in Frame 10
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 2);
removeMovieClip(_root.bossf4);
_root.bossf4._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 10
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
EL3 = 300;
EL5 = 500;
EL4 = 400;
EL6 = 600;
EL7 = 700;
EL8 = 800;
EL9 = 900;
this.base.gotoAndStop(4);
_root.turret.base.gotoAndStop(5);
_root.turret2.base.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL3 > 400) {
EL3 = 300;
}
if (EL4 > 500) {
EL4 = 400;
}
if (EL5 > 600) {
EL5 = 500;
}
if (EL6 > 700) {
EL6 = 600;
}
if (EL7 > 800) {
EL7 = 700;
}
if (EL8 > 900) {
EL8 = 800;
}
if (EL9 > 1000) {
EL9 = 900;
}
if (EL > 100) {
EL = 1;
}
if (_root.ENEMY8.Health > 0) {
_root.turret2._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret2._y, _root.ship._x - _root.turret2._x) * 57.2957795130823);
}
if ((((fire2 > 40) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) && (blast != true)) {
duplicateMovieClip (_root.bossf, "null" + el2, el2);
duplicateMovieClip (_root.bossf2, "null" + el3, el3);
blast = true;
fire2 = 0;
}
if ((((fire2 > 10) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) && (blast == true)) {
duplicateMovieClip (_root.bossf3, "null" + el2, el2);
duplicateMovieClip (_root.bossf4, "null" + el3, el3);
blast = false;
fire2 = 0;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
_root.turret2.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.turret2._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
fire2 = fire2 + 1;
El = El + 1;
EL2 = EL2 + 1;
El3 = El3 + 1;
EL4 = EL4 + 1;
El5 = El5 + 1;
EL6 = EL6 + 1;
El7 = El7 + 1;
EL8 = EL8 + 1;
El9 = El9 + 1;
EL10 = EL10 + 1;
El = El + 1;
EL11 = EL11 + 1;
El12 = El12 + 1;
EL13 = EL13 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8.base.gotoAndStop(4);
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 140;
_root.turret._y = _y - 30;
_root.turret2._x = _x + 70;
_root.turret2._y = _y + 60;
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 10
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
EL3 = 900;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast6C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
EL3 = EL3 + 1;
this.base.gotoAndStop(4);
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 10
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
EL3 = 900;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast7C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(4);
EL3 = EL3 + 1;
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 10
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 50) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(4);
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 10
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 50) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(4);
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 10
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(4);
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 10
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(4);
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 10
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(4);
}
Frame 11
stop();
Instance of Symbol 310 MovieClip "BG" in Frame 11
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 378 MovieClip "ship" in Frame 11
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
G1 = 1;
G2 = 1;
G3 = 2;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 60000;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 0.8;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.com = false;
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 50)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 507 MovieClip "bossf" in Frame 11
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 1);
removeMovieClip(_root.bossf);
_root.bossf._visible = false;
_x = (_x - (19 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (19 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf2" in Frame 11
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 1);
removeMovieClip(_root.bossf2);
_root.bossf2._visible = false;
_x = (_x - (18 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (18 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf3" in Frame 11
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 50);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 3);
removeMovieClip(_root.bossf3);
_root.bossf3._visible = false;
_x = (_x - (19 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (19 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf4" in Frame 11
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 55);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 3);
removeMovieClip(_root.bossf4);
_root.bossf4._visible = false;
_x = (_x - (18 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (18 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf5" in Frame 11
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation - 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 0.4);
removeMovieClip(_root.bossf5);
_root.bossf5._visible = false;
_x = (_x - (19 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (19 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf6" in Frame 11
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret2._rotation + 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 0.4);
removeMovieClip(_root.bossf6);
_root.bossf6._visible = false;
_x = (_x - (18 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (18 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 11
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
EL3 = 300;
EL5 = 500;
EL4 = 400;
EL6 = 600;
EL7 = 700;
EL8 = 800;
EL9 = 900;
this.base.gotoAndStop(5);
_root.turret.base.gotoAndStop(6);
_root.turret2.base.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL3 > 400) {
EL3 = 300;
}
if (EL4 > 500) {
EL4 = 400;
}
if (EL5 > 600) {
EL5 = 500;
}
if (EL6 > 700) {
EL6 = 600;
}
if (EL7 > 800) {
EL7 = 700;
}
if (EL8 > 900) {
EL8 = 800;
}
if (EL9 > 1000) {
EL9 = 900;
}
if (EL > 100) {
EL = 1;
}
if (_root.ENEMY8.Health > 0) {
_root.turret2._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret2._y, _root.ship._x - _root.turret2._x) * 57.2957795130823);
}
if ((((fire2 > 50) && (fire2 < 52)) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf, "null" + el2, el2);
duplicateMovieClip (_root.bossf2, "null" + el3, el3);
}
if ((((fire2 > 60) && (fire2 < 62)) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf3, "null" + el2, el2);
duplicateMovieClip (_root.bossf4, "null" + el3, el3);
}
if ((((fire2 > 70) && (fire2 < 72)) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf5, "null" + el2, el2);
duplicateMovieClip (_root.bossf6, "null" + el3, el3);
fire2 = 0;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
_root.turret2.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.turret2._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
fire2 = fire2 + 1;
El = El + 1;
EL2 = EL2 + 1;
El3 = El3 + 1;
EL4 = EL4 + 1;
El5 = El5 + 1;
EL6 = EL6 + 1;
El7 = El7 + 1;
EL8 = EL8 + 1;
El9 = El9 + 1;
EL10 = EL10 + 1;
El = El + 1;
EL11 = EL11 + 1;
El12 = El12 + 1;
EL13 = EL13 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8.base.gotoAndStop(5);
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 140;
_root.turret._y = _y - 30;
_root.turret2._x = _x + 70;
_root.turret2._y = _y + 60;
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 11
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
EL3 = 900;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast6C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
EL3 = EL3 + 1;
this.base.gotoAndStop(5);
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 11
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
EL3 = 900;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast7C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(5);
EL3 = EL3 + 1;
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 11
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(5);
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 11
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(5);
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 11
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(5);
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 11
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(5);
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 11
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(5);
}
Frame 12
stop();
Instance of Symbol 310 MovieClip "BG" in Frame 12
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 378 MovieClip "ship" in Frame 12
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
G1 = 1;
G2 = 1;
G3 = 2;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 60000;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 0.8;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.com = false;
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS2");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 50)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 507 MovieClip "bossf" in Frame 12
onClipEvent (load) {
_x = (_root.turret2._x + (50 * Math.cos((180 + _root.turret2._rotation) * (Math.PI/180))));
_y = (_root.turret2._y + (50 * Math.sin((180 + _root.turret2._rotation) * (Math.PI/180))));
_rotation = _root.turret2._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf);
_root.bossf._visible = false;
_x = (_x - (17 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (17 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast7C" in Frame 12
onClipEvent (load) {
_x = (_root.ENEMY7._x - (40 * Math.cos(_root.ENEMY7._rotation * (Math.PI/180))));
_y = (_root.ENEMY7._y - (40 * Math.sin(_root.ENEMY7._rotation * (Math.PI/180))));
_rotation = _root.ENEMY7._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast7C);
_root.ENEMYblast7C._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "ENEMYBlast6C" in Frame 12
onClipEvent (load) {
_x = (_root.ENEMY6._x - (40 * Math.cos(_root.ENEMY6._rotation * (Math.PI/180))));
_y = (_root.ENEMY6._y - (40 * Math.sin(_root.ENEMY6._rotation * (Math.PI/180))));
_rotation = _root.ENEMY6._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 50) {
_rotation = (_rotation - 20);
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
if (_y < 90) {
_rotation = (_rotation + 20);
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.ENEMYblast6C);
_root.ENEMYblast6C._visible = false;
_x = (_x - (5 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (5 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf2" in Frame 12
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 1);
removeMovieClip(_root.bossf2);
_root.bossf2._visible = false;
_x = (_x - (19 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (19 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf3" in Frame 12
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 1);
removeMovieClip(_root.bossf3);
_root.bossf3._visible = false;
_x = (_x - (18 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (18 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf4" in Frame 12
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 50);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 3);
removeMovieClip(_root.bossf4);
_root.bossf4._visible = false;
_x = (_x - (19 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (19 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf5" in Frame 12
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 55);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 3);
removeMovieClip(_root.bossf5);
_root.bossf5._visible = false;
_x = (_x - (18 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (18 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf6" in Frame 12
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 30);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 0.4);
removeMovieClip(_root.bossf6);
_root.bossf6._visible = false;
_x = (_x - (19 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (19 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf7" in Frame 12
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 35);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 0.4);
removeMovieClip(_root.bossf7);
_root.bossf7._visible = false;
_x = (_x - (18 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (18 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 12
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
EL3 = 300;
EL5 = 500;
EL4 = 400;
EL6 = 600;
EL7 = 700;
EL8 = 800;
EL9 = 900;
this.base.gotoAndStop(6);
_root.turret.base.gotoAndStop(7);
_root.turret2.base.gotoAndStop(7);
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL3 > 400) {
EL3 = 300;
}
if (EL4 > 500) {
EL4 = 400;
}
if (EL5 > 600) {
EL5 = 500;
}
if (EL6 > 700) {
EL6 = 600;
}
if (EL7 > 800) {
EL7 = 700;
}
if (EL8 > 900) {
EL8 = 800;
}
if (EL9 > 1000) {
EL9 = 900;
}
if (EL > 100) {
EL = 1;
}
if (_root.ENEMY8.Health > 0) {
_root.turret._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret._y, _root.ship._x - _root.turret._x) * 57.2957795130823);
_root.turret2._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret2._y, _root.ship._x - _root.turret2._x) * 57.2957795130823);
}
if (((fire2 > 30) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf, "null" + el2, el2);
fire2 = 0;
}
if (((fire > 80) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf2, "null" + el2, el2);
duplicateMovieClip (_root.bossf3, "null" + el3, el3);
duplicateMovieClip (_root.bossf4, "null" + el4, el4);
duplicateMovieClip (_root.bossf5, "null" + el5, el5);
duplicateMovieClip (_root.bossf6, "null" + el6, el6);
duplicateMovieClip (_root.bossf7, "null" + el7, el7);
fire = 0;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
_root.turret2.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.turret2._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
fire2 = fire2 + 1;
El = El + 1;
EL2 = EL2 + 1;
El3 = El3 + 1;
EL4 = EL4 + 1;
El5 = El5 + 1;
EL6 = EL6 + 1;
El7 = El7 + 1;
EL8 = EL8 + 1;
El9 = El9 + 1;
EL10 = EL10 + 1;
El = El + 1;
EL11 = EL11 + 1;
El12 = El12 + 1;
EL13 = EL13 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8.base.gotoAndStop(6);
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 140;
_root.turret._y = _y - 30;
_root.turret2._x = _x + 70;
_root.turret2._y = _y + 60;
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 12
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
EL3 = 900;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast6C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
EL3 = EL3 + 1;
this.base.gotoAndStop(6);
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 12
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
EL3 = 900;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast7C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(6);
EL3 = EL3 + 1;
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 12
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(6);
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 12
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(6);
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 12
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(6);
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 12
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(6);
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 12
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 40) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(6);
}
Frame 13
stop();
Instance of Symbol 310 MovieClip "BG" in Frame 13
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 378 MovieClip "ship" in Frame 13
onClipEvent (load) {
_root.tally = 0;
_root.wave = 1;
_root.kills = 0;
_root.score = 0;
motion = 7 + _root.level;
_rotation = 0;
G1 = 1;
G2 = 1;
G3 = 2;
ammo1 = 30;
TMQUOTA = 700 + (Math.random() * 700);
TLQUOTA = 700 + (Math.random() * 700);
AI = 30;
AI2 = 20;
AI3 = 10;
AI4 = 5;
AI5 = 15;
AI6 = 10;
Xmax = 650;
Xmin = 120;
Ymax = 370;
Ymin = 30;
blaze = 30;
HEalth = 400 + (100 * _root.level);
_root.ammo = 40;
thrusters = 0;
thrustersU = 0;
thrustersD = 0;
thrustersL = 0;
element2 = 100;
element3 = 200;
element4 = 300;
element5 = 400;
element6 = 500;
BHP = 60000;
element7 = 600;
warp = 1;
pause = true;
_root.difficulty = 0.8;
_root.miw.swapDepths(12000);
_root.maw.swapDepths(12001);
_root.hp.swapDepths(12002);
_root.levelup.swapDepths(12007);
_root.hz.swapDepths(12003);
_root.com = false;
_root.scoreadd.swapDepths(12004);
}
onClipEvent (enterFrame) {
if ((key.IsDown(39) && (pause != true)) && (_x < XMax)) {
_x = (_x + motion);
_rotation = 0;
Thrusters = 80;
}
if ((key.IsDown(37) && (pause != true)) && (_x > XMin)) {
_x = (_x - motion);
_rotation = 0;
ThrustersL = 80;
}
if ((key.IsDown(38) && (pause != true)) && (_y > YMin)) {
_y = (_y - motion);
ThrustersU = 80;
_rotation = -25;
U = true;
}
if ((key.IsDown(40) && (pause != true)) && (_y < YMax)) {
_y = (_y + motion);
ThrustersD = 80;
_rotation = 25;
D = true;
}
if ((D == true) && (!key.IsDown(40))) {
_rotation = 0;
D = false;
}
if ((U == true) && (!key.IsDown(38))) {
_rotation = 0;
U = false;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 <= 1)) && (pause != true)) {
duplicateMovieClip (_root.laser, "null" + element, element);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 2)) && (pause != true)) {
duplicateMovieClip (_root.laser2, "null" + element, element);
shifty = true;
duplicateMovieClip (_root.laser2B, "null" + element2, element2);
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 3)) && (pause != true)) {
duplicateMovieClip (_root.laser3, "null" + element, element);
duplicateMovieClip (_root.laser3B, "null" + element2, element2);
duplicateMovieClip (_root.laser3C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 4)) && (pause != true)) {
duplicateMovieClip (_root.laser4, "null" + element, element);
duplicateMovieClip (_root.laser4B, "null" + element2, element2);
duplicateMovieClip (_root.laser4C, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 5)) && (pause != true)) {
duplicateMovieClip (_root.laser5, "null" + element, element);
duplicateMovieClip (_root.laser5D, "null" + element4, element4);
duplicateMovieClip (_root.laser5E, "null" + element5, element5);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 6)) && (pause != true)) {
duplicateMovieClip (_root.laser6, "null" + element, element);
duplicateMovieClip (_root.laser6B, "null" + element3, element3);
shifty = true;
}
if (((key.IsDown(_root.SKEY) && (shifty != true)) && (G1 == 7)) && (pause != true)) {
duplicateMovieClip (_root.laser7B, "null" + element2, element2);
duplicateMovieClip (_root.laser7C, "null" + element3, element3);
duplicateMovieClip (_root.laser7D, "null" + element4, element4);
duplicateMovieClip (_root.laser7E, "null" + element5, element5);
shifty = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 <= 1)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile, "null" + element, element);
AMMO1 = AMMO1 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 2)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile2, "null" + element, element);
AMMO2 = AMMO2 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 3)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile3, "null" + element, element);
AMMO3 = AMMO3 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 4)) && (_root.ammo > 0)) && (pause != true)) {
FIRIE = true;
AMMO4 = AMMO4 - 1;
RL = true;
}
if (FIRIE == true) {
counter = counter + 1;
}
if (((G2 == 4) && (counter > 5)) && (counter < 7)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (((G2 == 4) && (counter > 7)) && (counter < 9)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 9)) && (counter < 11)) {
duplicateMovieClip (_root.missile4C, "null" + element, element);
}
if (((G2 == 4) && (counter > 10)) && (counter < 12)) {
duplicateMovieClip (_root.missile4B, "null" + element, element);
}
if (((G2 == 4) && (counter > 11)) && (counter < 13)) {
duplicateMovieClip (_root.missile4, "null" + element, element);
}
if (counter > 13) {
FIRIE = false;
counter = 0;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 5)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile5, "null" + element, element);
duplicateMovieClip (_root.missile5B, "null" + element2, element2);
AMMO5 = AMMO5 - 1;
RL = true;
}
if ((((key.IsDown(_root.Mkey) && (RL != true)) && (G2 == 6)) && (_root.ammo > 0)) && (pause != true)) {
duplicateMovieClip (_root.missile6, "null" + element, element);
duplicateMovieClip (_root.missile6B, "null" + element2, element2);
duplicateMovieClip (_root.missile6C, "null" + element3, element3);
AMMO6 = AMMO6 - 1;
RL = true;
_root.rotator = _root.rotator + 30;
}
if ((shifty == true) && (!key.IsDown(_root.SKEY))) {
shifty = false;
}
if (RL == true) {
revort = revort + 1;
}
if (revort > 40) {
RL = false;
revort = 0;
}
if (thrusters > 0) {
thrusters = thrusters - 4;
}
if (thrustersD > 0) {
thrustersD = thrustersD - 4;
}
if (thrustersU > 0) {
thrustersU = thrustersU - 4;
}
if (thrustersL > 0) {
thrustersL = thrustersL - 4;
}
if (element > 99) {
element = 0;
}
if (element > 199) {
element = 100;
}
if (element3 > 299) {
element3 = 200;
}
if (element4 > 399) {
element4 = 300;
}
if (element5 > 499) {
element5 = 400;
}
if (element6 > 599) {
element6 = 500;
}
if (element7 > 699) {
element7 = 600;
}
if (g1 <= 1) {
_root.MAW.gotoAndStop(1);
_root.MAW.wet = _root.LW1;
}
if (g1 == 2) {
_root.MAW.gotoAndStop(2);
_root.MAW.wet = _root.LW2;
}
if (g1 == 3) {
_root.MAW.gotoAndStop(3);
_root.MAW.wet = _root.LW3;
}
if (g1 == 4) {
_root.MAW.gotoAndStop(4);
_root.MAW.wet = _root.LW4;
}
if (g1 == 5) {
_root.MAW.gotoAndStop(5);
_root.MAW.wet = _root.LW5;
}
if (g1 == 6) {
_root.MAW.gotoAndStop(6);
_root.MAW.wet = _root.LW6;
}
if (g1 == 7) {
_root.MAW.gotoAndStop(7);
_root.MAW.wet = _root.LW7;
}
if (g2 <= 1) {
_root.MIW.gotoAndStop(1);
_root.MIW.wet = _root.MW1;
_root.ammo = AMMO1;
_root.AF = AI;
}
if (g2 == 2) {
_root.MIW.gotoAndStop(2);
_root.ammo = AMMO2;
_root.AF = AI2;
_root.MIW.wet = _root.MW2;
}
if (g2 == 3) {
_root.MIW.gotoAndStop(3);
_root.ammo = AMMO3;
_root.AF = AI3;
_root.MIW.wet = _root.MW3;
}
if (g2 == 4) {
_root.MIW.gotoAndStop(4);
_root.ammo = AMMO4;
_root.AF = AI4;
_root.MIW.wet = _root.MW4;
}
if (g2 == 5) {
_root.MIW.gotoAndStop(5);
_root.ammo = AMMO5;
_root.AF = AI5;
_root.MIW.wet = _root.MW5;
}
if (g2 == 6) {
_root.MIW.gotoAndStop(6);
_root.ammo = AMMO6;
_root.AF = AI6;
_root.MIW.wet = _root.MW6;
}
if (begin > 50) {
_x = (_x + blaze);
blaze = blaze * 0.9;
Thrusters = 80;
_root.dock._x = _root.dock._x - blaze;
}
if (blaze <= 1) {
blaze = 0;
pause = false;
}
if (_root.dock._x < -200) {
_root.dock._visible = false;
removeMovieClip(_root.dock);
}
if (SR < 50) {
_root.scoreadd._visible = true;
}
if ((SR >= 50) && (SCA > 0)) {
_root.score = _root.score + 3;
SCA = SCA - 3;
}
if (SCA <= 0) {
SCA = 0;
_root.scoreadd._visible = false;
}
if (timerL > TLQUOTA) {
duplicateMovieClip (_root.newlaser, "null" + element4, element4);
TLQUOTA = 700 + (Math.random() * 700);
timerl = 0;
}
if (timerM > TMQUOTA) {
duplicateMovieClip (_root.newmissile, "null" + element4, element4);
TMQUOTA = 700 + (Math.random() * 700);
timerm = 0;
}
if (pause != true) {
TimerL = TimerL + 1;
TimerM = TimerM + 1;
}
if (((_root.tally2 > 8) && (_root.tally2 < 14)) && (_root.wave <= 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 15) && (_root.tally2 < 19)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 22) && (_root.tally2 < 28)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 30) && (_root.tally2 < 38)) && (_root.wave == 2)) {
_root.wave = 1;
}
if (((_root.tally2 > 45) && (_root.tally2 < 49)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 55) && (_root.tally2 < 59)) && (_root.wave == 3)) {
_root.wave = 2;
}
if (((_root.tally2 > 64) && (_root.tally2 < 68)) && (_root.wave == 2)) {
_root.wave = 3;
}
if (((_root.tally2 > 74) && (_root.tally2 < 78)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 84) && (_root.tally2 < 88)) && (_root.wave == 1)) {
_root.wave = 3;
}
if (((_root.tally2 > 94) && (_root.tally2 < 98)) && (_root.wave == 3)) {
_root.wave = 1;
}
if (((_root.tally2 > 114) && (_root.tally2 < 118)) && (_root.wave == 1)) {
_root.wave = 2;
}
if (((_root.tally2 > 144) && (_root.tally2 < 148)) && (_root.wave == 2)) {
_root.wave = 3;
}
if ((_root.tally2 > 248) && (_root.wave == 3)) {
BOSS = true;
_root.wave = 4;
}
if (BOSS == true) {
summon = summon + 1;
}
if ((summon > 40) && (summon < 45)) {
_root.ENEMY.HEalth = 0;
_root.ENEMY.gotoAndPlay("death");
_root.ENEMY2.HEalth = 0;
_root.ENEMY2.gotoAndPlay("death");
_root.ENEMY3.HEalth = 0;
_root.ENEMY3.gotoAndPlay("death");
_root.ENEMY4.HEalth = 0;
_root.ENEMY4.gotoAndPlay("death");
_root.ENEMY5.HEalth = 0;
_root.ENEMY5.gotoAndPlay("death");
_root.ENEMY6.HEalth = 0;
_root.ENEMY6.gotoAndPlay("death");
_root.ENEMY7.HEalth = 0;
_root.ENEMY7.gotoAndPlay("death");
_root.music.gotoAndPlay("BOSS3");
_root.ENEMY8.Health = BHP * _root.difficulty;
}
if (((_root.wave >= 4) && (warp < 50)) && (summon > 170)) {
warp = warp * 1.05;
_root.boss.SUMMON = true;
}
if ((Health <= 0) && (element > 10)) {
death = true;
pause = true;
}
if (death == true) {
dying = dying + 1;
pause = true;
}
if ((dying > 10) && (dying < 14)) {
this.gotoAndPlay("death");
}
if (dying > 50) {
_root.GO.play();
}
if ((BOSS != true) && (warp > 1)) {
warp = warp * 0.9;
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset == 2)) {
_quality = "Medium";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset <= 1)) {
_quality = "Low";
}
if (((_root.wave < 4) && (_root.com != true)) && (_root.qualityset >= 3)) {
_quality = "High";
}
if ((_root.wave >= 4) && (_root.com != true)) {
_quality = "Low";
}
if (_root.com == true) {
_quality = "High";
}
if ((_root.com == true) && (_root.score >= 10000)) {
_root.mic.Sr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.score < 10000)) && (_root.score > 8000)) {
_root.mic.Sr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.score <= 8000)) && (_root.score > 6000)) {
_root.mic.Sr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.score < 6000)) && (_root.score > 4000)) {
_root.mic.Sr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.score < 4000)) {
_root.mic.Sr.gotoAndStop(2);
}
if ((_root.com == true) && (_root.Kills >= 170)) {
_root.mic.kr.gotoAndStop(6);
}
if (((_root.com == true) && (_root.Kills < 170)) && (_root.Kills > 140)) {
_root.mic.kr.gotoAndStop(5);
}
if (((_root.com == true) && (_root.Kills < 140)) && (_root.Kills > 110)) {
_root.mic.kr.gotoAndStop(4);
}
if (((_root.com == true) && (_root.Kills < 110)) && (_root.Kills > 80)) {
_root.mic.kr.gotoAndStop(3);
}
if ((_root.com == true) && (_root.Kills < 80)) {
_root.mic.kr.gotoAndStop(2);
}
if ((_root.com == true) && (SCA > 0)) {
_root.score = _root.score + 9;
SCA = SCA - 9;
}
if (_root.OAkills > OAkillTA) {
_root.levelup.play();
}
if ((((_root.SKey == undefined) || (_root.Skey < 65)) || (_root.MKey == undefined)) || (_root.Mkey < 65)) {
_root.SKey = 83;
_root.MKey = 65;
}
if (_root.stars._x < -1200) {
_root.stars._x = 950;
}
if (_root.stars2._x < -1200) {
_root.stars2._x = 950;
}
this.sh.BLA._alpha = Warp * 2;
_root.stars._x = _root.stars._x - (3 * warp);
_root.stars2._x = _root.stars2._x - (3 * warp);
_root.nebula._x = _root.nebula._x - 2;
_root.BG._x = _root.BG._x - (0.1 + (0.01 * warp));
_root.lvl = _root.level + 1;
_root.HP._height = (HEalth - (100 * _root.level)) * 0.4;
element = element + 1;
element2 = element2 + 1;
element3 = element3 + 1;
element4 = element4 + 1;
element5 = element5 + 1;
element6 = element6 + 1;
element7 = element7 + 1;
sr = sr + 1;
_root.mic.ki = _root.kills;
_root.mic.sc = _root.score;
_root.scoreadd.SC = SCA;
_root.AF2 = _root.AF;
_root.ammo2 = _root.ammo;
this.sh.thrust._alpha = thrusters;
this.sh.thrust2._alpha = thrusters;
this.sh.thrustU._alpha = thrustersU;
this.sh.thrustL._alpha = thrustersL;
this.sh.thrustD._alpha = thrustersD;
_root.main = _root.ma;
_root.miss = _root.mi;
OAkillTA = 100 + (130 * _root.level);
begin = begin + 1;
}
Instance of Symbol 533 MovieClip "BOSS" in Frame 13
onClipEvent (load) {
_visible = false;
_x = 900;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
EL2 = 200;
EL3 = 300;
EL5 = 500;
EL4 = 400;
EL6 = 600;
EL7 = 700;
EL8 = 800;
EL9 = 900;
this.base.gotoAndStop(7);
_root.turret.base.gotoAndStop(8);
_root.turret2.base.gotoAndStop(8);
}
onClipEvent (enterFrame) {
if ((SUMMON == true) && (_x > 530)) {
_x = (_x - 5);
}
if (_root.wave >= 4) {
_root.ENEMY8._visible = true;
_visible = true;
_root.turret._visible = true;
}
if (EL2 > 300) {
EL2 = 200;
}
if (EL3 > 400) {
EL3 = 300;
}
if (EL4 > 500) {
EL4 = 400;
}
if (EL5 > 600) {
EL5 = 500;
}
if (EL6 > 700) {
EL6 = 600;
}
if (EL7 > 800) {
EL7 = 700;
}
if (EL8 > 900) {
EL8 = 800;
}
if (EL9 > 1000) {
EL9 = 900;
}
if (EL > 100) {
EL = 1;
}
if (_root.ENEMY8.Health > 0) {
_root.turret._rotation = 180 + (Math.atan2(_root.ship._y - _root.turret._y, _root.ship._x - _root.turret._x) * 57.2957795130823);
}
if (((fire2 > 50) && (_root.wave >= 4)) && (_root.ENEMY8.Health > 0)) {
duplicateMovieClip (_root.bossf2, "null" + el2, el2);
duplicateMovieClip (_root.bossf3, "null" + el3, el3);
duplicateMovieClip (_root.bossf4, "null" + el4, el4);
duplicateMovieClip (_root.bossf5, "null" + el5, el5);
duplicateMovieClip (_root.bossf6, "null" + el6, el6);
duplicateMovieClip (_root.bossf7, "null" + el7, el7);
duplicateMovieClip (_root.bossf8, "null" + el2, el8);
fire2 = 0;
}
if (((SC > 180) && (SC < 197)) && (_rotation < 45)) {
_root.turret._rotation = _root.turret._rotation + 5;
}
if (SC < 180) {
scatter = false;
}
if ((SC > 180) && (SC < 185)) {
scatter = true;
}
if (scatter == true) {
Blast = Blast + 1;
}
if (((_root.ENEMY8.Health <= 0) && (_root.wave == 4)) && (_root.ship.summon > 100)) {
death = death + 1;
}
if ((death > 10) && (death < 14)) {
_root.ENEMY8.gotoAndPlay("die");
}
if ((death > 50) && (death < 54)) {
_root.turret.gotoAndPlay("die");
_root.turret2.gotoAndPlay("die");
}
if ((death > 80) && (death < 89)) {
this.gotoAndPlay("die");
}
if (death > 170) {
this._visible = false;
_root.ENEMY8._visible = false;
_root.turret._visible = false;
_root.turret2._visible = false;
_root.com = true;
}
if ((death > 180) && (_root.ship.BOSS != false)) {
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
}
if (_root.wave >= 4) {
SC = SC + 1;
fire = fire + 1;
fire2 = fire2 + 1;
El = El + 1;
EL2 = EL2 + 1;
El3 = El3 + 1;
EL4 = EL4 + 1;
El5 = El5 + 1;
EL6 = EL6 + 1;
El7 = El7 + 1;
EL8 = EL8 + 1;
El9 = El9 + 1;
EL10 = EL10 + 1;
El = El + 1;
EL11 = EL11 + 1;
El12 = El12 + 1;
EL13 = EL13 + 1;
_root.GAh = _root.enemy8.HEalth;
}
_root.ENEMY8.base.gotoAndStop(7);
_root.ENEMY8._x = _x;
_root.ENEMY8._y = _y;
_root.turret._x = _x + 140;
_root.turret._y = _y - 30;
_root.turret2._x = _x + 70;
_root.turret2._y = _y + 60;
}
Instance of Symbol 507 MovieClip "bossf2" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 2.4);
removeMovieClip(_root.bossf2);
_root.bossf2._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf3" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 40);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 1.7);
removeMovieClip(_root.bossf3);
_root.bossf3._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf4" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation - 20);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation + 0.8);
removeMovieClip(_root.bossf4);
_root.bossf4._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf5" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = _root.turret._rotation;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
removeMovieClip(_root.bossf5);
_root.bossf5._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf6" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 20);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 0.9);
removeMovieClip(_root.bossf6);
_root.bossf6._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf7" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 40);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 1.7);
removeMovieClip(_root.bossf7);
_root.bossf7._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 507 MovieClip "bossf8" in Frame 13
onClipEvent (load) {
_x = (_root.turret._x + (50 * Math.cos((180 + _root.turret._rotation) * (Math.PI/180))));
_y = (_root.turret._y + (50 * Math.sin((180 + _root.turret._rotation) * (Math.PI/180))));
_rotation = (_root.turret._rotation + 60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.core) && (_visible == true)) {
_root.ship.play();
_root.ship.Health = _root.ship.Health - (20 * _root.difficulty);
removeMovieClip(this);
_visible = false;
}
if (_x > 700) {
_visible = false;
removeMovieClip(this);
}
if (_x < 0) {
_visible = false;
removeMovieClip(this);
}
if (_y > 370) {
_visible = false;
removeMovieClip(this);
}
if (_y < 0) {
_visible = false;
removeMovieClip(this);
}
_rotation = (_rotation - 2.4);
removeMovieClip(_root.bossf8);
_root.bossf8._visible = false;
_x = (_x - (14 * Math.cos(_rotation * (Math.PI/180))));
_y = (_y - (14 * Math.sin(_rotation * (Math.PI/180))));
}
Instance of Symbol 598 MovieClip "ENEMY6" in Frame 13
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
EL3 = 900;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast6, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast6B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast6C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 3)) || ((dying > 90) && (_root.wave == 2))) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) || ((_root.wave <= 1) && (dying > 50))) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
EL3 = EL3 + 1;
this.base.gotoAndStop(7);
}
Instance of Symbol 598 MovieClip "ENEMY7" in Frame 13
onClipEvent (load) {
_x = 2400;
_y = (Math.random() * 350);
Health = 400;
EL = 700;
EL2 = 800;
EL3 = 900;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 5);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_x < 700) && (HEalth > 0)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast7, "null" + EL, EL);
duplicateMovieClip (_root.ENEMYblast7B, "null" + EL2, EL2);
duplicateMovieClip (_root.ENEMYblast7C, "null" + EL3, EL3);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 3)) {
_x = 800;
starcure = 30 + (Math.random() * 5);
revert = 0;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
ACC = 3;
}
if ((_root.wave > 3) && (dying > 50)) {
_x = 800;
_y = (Math.random() * 350);
Health = 400;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
_root.cannon._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - STARCURE);
STARCURE = STARCURE * 0.97;
}
if ((_root.ship.pause != true) && (_x > 710)) {
_x = (_x - 7);
}
if (_x < 400) {
StarCURE = StarCURE * 0.4;
}
if (EL > 799) {
EL = 700;
}
if (EL2 > 899) {
EL2 = 800;
}
if (EL3 > 999) {
EL3 = 900;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
_rotation = (180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823));
EL = EL + 1;
EL2 = EL2 + 1;
this.base.gotoAndStop(7);
EL3 = EL3 + 1;
}
Instance of Symbol 610 MovieClip "ENEMY4" in Frame 13
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast4, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_root.cannon._visible = false;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon._x = _x;
_root.cannon._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(7);
EL = EL + 1;
}
Instance of Symbol 610 MovieClip "ENEMY5" in Frame 13
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 100;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
starcure = 30 + (Math.random() * 20);
ACC = 3;
}
onClipEvent (enterFrame) {
if ((_root.ship._x > (_x - 400)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 60) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast5, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
starcure = 0;
_root.cannon2._x = 900;
_root.cannon2._visible = false;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 3))) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
dier = false;
this.gotoAndStop(1);
_root.tally = _root.tally + 1;
dying = 0;
ACC = 3;
}
if (((_root.wave != 2) && (_root.wave != 3)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
_root.cannon2._visible = false;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
_root.cannon2._x = _x;
_root.cannon2._y = _y;
this.cannon._rotation = 180 + (Math.atan2(_root.ship._y - _y, _root.ship._x - _x) * 57.2957795130823);
dier = false;
_root.cannon2._visible = true;
}
if (_root.ship.pause != true) {
_x = (_x - (STARCURE / 2.4));
ACC = ACC - 0.3;
STARCURE = STARCURE - 0.9;
}
if ((_x > 800) && (starcure < 0)) {
_x = 900;
starcure = 30 + (Math.random() * 20);
revert = 0;
_y = (Math.random() * 350);
Health = 100;
ACC = 3;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
this.base.gotoAndStop(7);
EL = EL + 1;
}
Instance of Symbol 619 MovieClip "ENEMY" in Frame 13
onClipEvent (load) {
_x = 1400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if ((dying > 90) && (_root.wave == 2)) {
_x = 900;
_y = (Math.random() * 350);
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (_root.wave > 1) {
Health = 0;
}
if (((_root.wave != 2) && (Health <= 0)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (_root.wave >= 4) {
_y = (_y - 7);
HEalth = 0;
dier = true;
}
if (EL > 799) {
EL = 700;
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(7);
}
Instance of Symbol 619 MovieClip "ENEMY3" in Frame 13
onClipEvent (load) {
_x = 2400;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast3, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave <= 1)) || ((dying > 90) && (_root.wave == 2))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if ((_root.wave > 2) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(7);
}
Instance of Symbol 619 MovieClip "ENEMY2" in Frame 13
onClipEvent (load) {
_x = 1900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
EL = 700;
this.gotoAndStop(1);
dying = 0;
dier = false;
}
onClipEvent (enterFrame) {
if ((_root.ship._y < _y) && (_root.ship._x < _x)) {
_y = (_y - 3);
}
if ((_root.ship._y > _y) && (_root.ship._x < _x)) {
_y = (_y + 3);
}
if ((_root.ship._x > (_x - 300)) && (_root.ship._x < _x)) {
firing = firing + 1;
}
if ((firing > 80) && (HEalth > 0)) {
duplicateMovieClip (_root.ENEMYblast2, "null" + EL, EL);
firing = 0;
}
if ((Health <= 0) && (_root.wave < 4)) {
Dier = true;
}
if (dier == true) {
dying = dying + 1;
}
if (((dying > 4) && (dying < 7)) && (_root.wave < 4)) {
this.gotoAndPlay("death");
}
if (dying > 30) {
this.gotoAndStop("dead");
}
if (((dying > 90) && (_root.wave == 2)) || ((dying > 90) && (_root.wave == 4))) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
_root.tally = _root.tally + 1;
}
if (((_root.wave != 2) && (_root.wave != 4)) && (dying > 50)) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
dier = false;
this.gotoAndStop(1);
dying = 0;
}
if (Health > 0) {
dier = false;
}
if (_root.ship.pause != true) {
_x = (_x - 3);
}
if (_x < -300) {
_x = 900;
_y = ((Math.random() * 350) - (Math.random() * 350));
Health = 500;
this.gotoAndStop(1);
_root.tally2 = _root.tally2 + 1;
}
if (EL > 799) {
EL = 700;
}
if (_root.wave >= 4) {
HEalth = 0;
dier = true;
_y = (_y - 7);
}
if ((_root.wave >= 4) && (dying > 30)) {
_visible = false;
removeMovieClip(this);
this.gotoAndStop(50);
dier = true;
}
EL = EL + 1;
this.base.gotoAndStop(7);
}
Frame 14
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
Frame 15
stop();
Frame 16
_root.overallscore = 0;
Frame 17
_root.gotoAndStop(5);
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 3
gotoAndStop (1);
Symbol 11 MovieClip Frame 25
gotoAndStop (1);
Symbol 11 MovieClip Frame 28
gotoAndStop (1);
Symbol 11 MovieClip Frame 31
gotoAndStop (1);
Symbol 11 MovieClip Frame 34
gotoAndStop (1);
Symbol 11 MovieClip Frame 37
gotoAndStop (1);
_root.nextR.play();
Symbol 11 MovieClip Frame 40
gotoAndStop (1);
Symbol 11 MovieClip Frame 44
gotoAndStop (1);
Symbol 11 MovieClip Frame 48
gotoAndStop (1);
Symbol 11 MovieClip Frame 51
gotoAndStop (1);
Instance of Symbol 25 MovieClip "player" in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
Max = 5;
Min = 357;
}
onClipEvent (enterFrame) {
if ((_y > Max) && (key.IsDown(38))) {
_y = (_y - 5);
} else if ((_y < Min) && (key.IsDown(40))) {
_y = (_y + 5);
}
}
Instance of Symbol 25 MovieClip "enemy" in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
Max = 5;
Min = 357;
_root.DIF = 1;
}
onClipEvent (enterFrame) {
if (((_y > Max) && (_root.preloader.minigame.ball._y < (_y + 30))) && (_root.preloader.minigame.ball.started == true)) {
_y = (_y - (2 * _root.DIF));
} else if (((_y < Min) && (_root.preloader.minigame.ball._y > (_y + 30))) && (_root.preloader.minigame.ball.started == true)) {
_y = (_y + (2 * _root.DIF));
}
}
Instance of Symbol 27 MovieClip "ball" in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
build = 6;
Xmotion = 6;
Ymotion = 6;
_y = 240;
XPOS = _x;
EY = _root.preloader.minigame.ENEMY._y;
PY = _root.preloader.minigame.player._y;
_root.preloader.minigame.ENEMYscore = 0;
_root.preloader.minigame.playerscore = 0;
}
onClipEvent (enterFrame) {
if (started == true) {
_x = (_x + Xmotion);
_y = (_y - Ymotion);
_root.preloader.minigame.nano.gotoAndStop(2);
DUP = DUP + 1;
}
if ((this.hitTest(_root.preloader.minigame.player) && (started == true)) && (key.IsDown(38))) {
Xmotion = -build;
build = build + 1;
Ymotion = Math.random() * 12;
_root.soundfx.gotoAndPlay("boing2");
} else if ((this.hitTest(_root.preloader.minigame.player) && (started == true)) && (key.IsDown(40))) {
Xmotion = -build;
build = build + 1;
Ymotion = (-Math.random()) * 12;
_root.soundfx.gotoAndPlay("boing2");
} else if (this.hitTest(_root.preloader.minigame.player) && (started == true)) {
Xmotion = -build;
build = build + 1;
Ymotion = (Math.random() * 6) - (Math.random() * 6);
_root.soundfx.gotoAndPlay("boing2");
}
if (this.hitTest(_root.preloader.minigame.ENEMY) && (started == true)) {
Xmotion = build;
build = build + 1;
Ymotion = (Math.random() * DIFFC) - (Math.random() * DIFFC);
_root.soundfx.gotoAndPlay("boing2");
}
if (_x <= 10) {
_visible = false;
_root.preloader.minigame.playerscore = _root.preloader.minigame.playerscore + 1;
_x = 247;
build = 0;
started = false;
Xmotion = 0;
Ymotion = 0;
_root.soundFX.gotoAndPlay("cash2");
_root.DIF = _root.DIF + 0.1;
Diffc = Diffc + 1;
}
if (_x >= 465) {
_visible = false;
_root.preloader.minigame.ENEMYscore = _root.preloader.minigame.ENEMYscore + 1;
_x = 247;
started = false;
build = 0;
Xmotion = 0;
Ymotion = 0;
}
if (_y >= 435) {
Ymotion = Math.random() * 6;
_root.soundfx.gotoAndPlay("boing2");
}
if (_y <= 0) {
Ymotion = Math.random() * -6;
_root.soundfx.gotoAndPlay("boing2");
}
if (_visible == false) {
reset = reset + 1;
_x = XPOS;
_y = 240;
}
if (reset > 30) {
_visible = true;
build = 6;
reset = 0;
started = true;
Xmotion = 6;
Ymotion = 0;
}
if (build > 12) {
build = 12;
}
if (DIFFC > 12) {
DIFFC = 12;
}
if (((key.IsDown(32) && (began != true)) && (started != true)) && (GRRR > 30)) {
started = true;
began = true;
Ymotion = 0;
GRRR = 0;
}
if (((key.IsDown(32) && (began == true)) && (started == true)) && (GRRR > 30)) {
started = false;
began = false;
Ymotion = 0;
GRRR = 0;
_root.preloader.minigame.ENEMY._y = EY;
_root.preloader.minigame.player._y = PY;
_root.preloader.minigame.ENEMYscore = 0;
_root.preloader.minigame.playerscore = 0;
}
if ((started != true) && (began != true)) {
build = 6;
_root.preloader.minigame.nano.gotoAndStop(1);
DIFFC = 6;
Xmotion = 6;
Ymotion = 6;
_y = 240;
_x = XPOS;
}
if (element > 100) {
element = 0;
}
element = element + 1;
GRRR = GRRR + 1;
}
Instance of Symbol 27 MovieClip "orb" in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
_x = _root.preloader.minigame.ball._x;
_y = _root.preloader.minigame.ball._y;
_alpha = 60;
}
onClipEvent (enterFrame) {
if (_alpha <= 0) {
removeMovieClip(this);
_visible = false;
}
_alpha = (_alpha - 3);
}
Symbol 56 Button
on (release) {
getURL ("http://www.heavygames.com", "_blank");
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 65 Button
on (release) {
getURL ("http://www.dizimz.net", "_blank");
}
Symbol 72 Button
on (release) {
play();
}
Symbol 79 Button
on (release) {
gotoAndPlay ("skip");
}
Symbol 86 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded * 6.2;
percent = (Math.round(PercentLoaded) * 3) + 7;
} else {
gotoAndStop (3);
}
Symbol 86 MovieClip Frame 2
gotoAndPlay (1);
Symbol 86 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 378
MM = _url;
_root.NG = MM.slice(0, 29);
trace(MM);
if (_root.NG == _root.NGURL) {
play();
}
if (_root.NG != _root.NGURL) {
_root.INTRO.gotoAndPlay("skipNG");
}
Symbol 86 MovieClip Frame 380
MM = _url;
_root.NG = MM.slice(0, 29);
trace(MM);
if (_root.NG == _root.NGURL) {
play();
}
if (_root.NG != _root.NGURL) {
_root.INTRO.gotoAndPlay("skipNG");
}
Symbol 86 MovieClip Frame 442
stopAllSounds();
stopAllSounds();
stopAllSounds();
Symbol 86 MovieClip Frame 443
_root.play();
Symbol 95 Button
on (release) {
getURL ("http://www.heavygames.com", "_blank");
}
Symbol 101 Button
on (release) {
if (_root.SEL != true) {
_root.nextR.play();
GO = true;
CON = false;
SEL = true;
}
}
Symbol 105 Button
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.level == undefined) {
_root.level = 0;
_root.soundFx.gotoAndPlay("boing");
} else {
_root.level = savefile.data.level;
_root.soundFx.gotoAndPlay("cash");
_root.nextR.play();
GO = false;
CON = true;
SEL = true;
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission == undefined) {
_root.mission = false;
} else {
_root.mission = savefile.data.mission;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission2 == undefined) {
_root.mission2 = false;
} else {
_root.nextR.play();
_root.mission2 = savefile.data.mission2;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission3 == undefined) {
_root.mission3 = false;
} else {
_root.mission3 = savefile.data.mission3;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission4 == undefined) {
_root.mission4 = false;
} else {
_root.mission4 = savefile.data.mission4;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission5 == undefined) {
_root.mission5 = false;
} else {
_root.mission5 = savefile.data.mission5;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission6 == undefined) {
_root.mission6 = false;
} else {
_root.mission6 = savefile.data.mission6;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.mission7 == undefined) {
_root.mission7 = false;
} else {
_root.mission7 = savefile.data.mission7;
_root.soundFx.gotoAndPlay("cash");
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.Mkey == undefined) {
_root.Mkey = 65;
} else {
_root.Mkey = savefile.data.Mkey;
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.Skey == undefined) {
_root.Skey = 83;
} else {
_root.Skey = savefile.data.Skey;
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.overallscore == undefined) {
_root.overallscore = 0;
} else {
_root.overallscore = savefile.data.overallscore;
}
}
on (release) {
var savefile = SharedObject.getLocal("StarSerpent");
if (savefile.data.OAkills == undefined) {
_root.OAkills = 0;
} else {
_root.OAkills = savefile.data.OAkills;
}
}
Symbol 108 Button
on (release) {
getURL ("http://www.heavygames.com/starserpent/view_high_scores.asp", "_blank");
}
Symbol 113 MovieClip Frame 1
stopAllSounds();
Symbol 113 MovieClip Frame 52
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 12
stop();
if ((_root.GO == true) && (_root.CON == false)) {
_root.play();
}
if ((_root.GO == false) && (_root.CON == true)) {
_root.gotoAndStop(4);
}
Symbol 153 Button
on (release) {
_root.qualityset = 3;
}
Symbol 157 Button
on (release) {
_root.qualityset = 2;
}
Symbol 158 Button
on (release) {
_root.qualityset = 1;
}
Symbol 197 Button
on (press) {
savefile.data.level = _root.level;
savefile.data.mission = _root.mission;
savefile.flush();
}
on (press) {
savefile.data.mission2 = _root.mission2;
savefile.data.mission3 = _root.mission3;
savefile.flush();
}
on (press) {
savefile.data.mission4 = _root.mission4;
savefile.data.mission5 = _root.mission5;
savefile.flush();
}
on (press) {
savefile.data.mission6 = _root.mission6;
savefile.data.mission7 = _root.mission7;
savefile.flush();
}
on (press) {
savefile.data.OAkills = _root.OAkills;
savefile.data.overallscore = _root.overallscore;
savefile.flush();
}
on (release) {
_root.nex.play();
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 53
stop();
_root.play();
Symbol 209 MovieClip Frame 52
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 260 Button
on (release) {
_root.gotoAndStop(15);
}
Symbol 264 Button
on (release) {
_root.system = 1;
}
Symbol 265 Button
on (release) {
_root.system = 2;
}
Symbol 266 Button
on (release) {
_root.system = 3;
}
Symbol 267 Button
on (release) {
_root.system = 4;
}
Symbol 268 Button
on (release) {
_root.system = 5;
}
Symbol 269 Button
on (release) {
_root.system = 6;
}
Symbol 270 Button
on (release) {
_root.system = 7;
}
Symbol 279 Button
on (release) {
if (_root.MIZ > 0) {
_root.startmission.play();
}
}
Symbol 281 MovieClip Frame 52
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 32
stopAllSounds();
Symbol 286 MovieClip Frame 75
stop();
if (_root.MIZ == 1) {
_root.gotoAndStop("MI1");
}
if (_root.MIZ == 2) {
_root.gotoAndStop("MI2");
}
if (_root.MIZ == 3) {
_root.gotoAndStop("MI3");
}
if (_root.MIZ == 4) {
_root.gotoAndStop("MI4");
}
if (_root.MIZ == 5) {
_root.gotoAndStop("MI5");
}
if (_root.MIZ == 6) {
_root.gotoAndStop("MI6");
}
if (_root.MIZ == 7) {
_root.gotoAndStop("MI7");
}
Symbol 293 MovieClip Frame 1
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 6
stopAllSounds();
Symbol 293 MovieClip Frame 87
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 95
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 101
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 111
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 115
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 119
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 123
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 126
stop();
_root.player.triggerEV = false;
Symbol 293 MovieClip Frame 127
stop();
Symbol 293 MovieClip Frame 128
_root.player.triggerEV = true;
Symbol 293 MovieClip Frame 130
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 134
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 138
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 141
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 145
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 149
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 153
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 157
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 161
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(10);
Symbol 293 MovieClip Frame 165
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 170
stopAllSounds();
Symbol 293 MovieClip Frame 192
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 246
stopAllSounds();
Symbol 293 MovieClip Frame 261
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 278
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 286
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 292
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 302
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 306
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 310
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 314
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 317
stop();
_root.player.triggerEV = false;
Symbol 293 MovieClip Frame 318
stop();
Symbol 293 MovieClip Frame 321
stopAllSounds();
Symbol 293 MovieClip Frame 327
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 351
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 359
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 365
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 375
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 379
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 383
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 387
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 390
stop();
_root.player.triggerEV = false;
Symbol 293 MovieClip Frame 391
stop();
Symbol 293 MovieClip Frame 392
_root.player.triggerEV = true;
Symbol 293 MovieClip Frame 394
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 398
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 402
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 405
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 409
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 413
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 417
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 421
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 425
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(10);
Symbol 293 MovieClip Frame 429
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 434
stopAllSounds();
Symbol 293 MovieClip Frame 456
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 510
stopAllSounds();
Symbol 293 MovieClip Frame 525
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 542
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 550
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 556
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 566
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 570
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 574
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 578
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 581
stop();
_root.player.triggerEV = false;
Symbol 293 MovieClip Frame 582
stop();
Symbol 293 MovieClip Frame 583
_root.player.triggerEV = true;
Symbol 293 MovieClip Frame 585
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 589
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 593
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 596
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 600
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 604
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 608
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 612
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 616
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(10);
Symbol 293 MovieClip Frame 620
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 625
stopAllSounds();
Symbol 293 MovieClip Frame 647
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(0);
Symbol 293 MovieClip Frame 701
stopAllSounds();
Symbol 293 MovieClip Frame 716
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(20);
Symbol 293 MovieClip Frame 733
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(30);
Symbol 293 MovieClip Frame 741
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(40);
Symbol 293 MovieClip Frame 747
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(50);
Symbol 293 MovieClip Frame 757
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(60);
Symbol 293 MovieClip Frame 761
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(70);
Symbol 293 MovieClip Frame 765
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(80);
Symbol 293 MovieClip Frame 769
AMP = new Sound();
AMP.attachSound("rebellion");
AMP.setVolume(90);
Symbol 293 MovieClip Frame 772
stop();
_root.player.triggerEV = false;
Symbol 293 MovieClip Frame 773
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 7
gotoAndStop (1);
Symbol 298 MovieClip Frame 13
gotoAndStop (1);
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 3
stop();
Symbol 310 MovieClip Frame 4
stop();
Symbol 310 MovieClip Frame 5
stop();
Symbol 310 MovieClip Frame 6
stop();
Symbol 310 MovieClip Frame 7
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
_root._y = random(6) - random(6);
_root._x = random(6) - random(6);
my_color = new Color(_root);
myColorTransform = {ra:100, rb:80, ga:100, gb:40, ba:100, bb:70};
my_color.setTransform(myColorTransform);
Symbol 378 MovieClip Frame 3
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:60, ga:100, gb:30, ba:100, bb:55};
my_color.setTransform(myColorTransform);
Symbol 378 MovieClip Frame 4
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:40, ga:100, gb:20, ba:100, bb:35};
my_color.setTransform(myColorTransform);
Symbol 378 MovieClip Frame 5
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:10, ba:100, bb:15};
my_color.setTransform(myColorTransform);
Symbol 378 MovieClip Frame 6
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 378 MovieClip Frame 7
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 378 MovieClip Frame 8
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 378 MovieClip Frame 9
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 378 MovieClip Frame 10
_root._x = 0;
_root._y = 0;
Symbol 378 MovieClip Frame 11
gotoAndStop (1);
Symbol 378 MovieClip Frame 37
_root.gameover.play();
Symbol 378 MovieClip Frame 38
_root.music.gotoAndPlay("gameoverX");
Symbol 378 MovieClip Frame 39
_root.music.gotoAndPlay("gameoverX");
Symbol 378 MovieClip Frame 435
stop();
Symbol 378 MovieClip Frame 436
stop();
Symbol 378 MovieClip Frame 437
gotoAndStop (435);
Symbol 378 MovieClip Frame 438
gotoAndStop (435);
Symbol 378 MovieClip Frame 439
gotoAndStop (435);
Symbol 378 MovieClip Frame 440
gotoAndStop (435);
Symbol 378 MovieClip Frame 441
gotoAndStop (435);
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 3
stop();
Symbol 403 MovieClip Frame 4
stop();
Symbol 407 MovieClip Frame 1
_root._y = 1;
my_color = new Color(_root);
myColorTransform = {ra:100, rb:30, ga:100, gb:60, ba:100, bb:78};
my_color.setTransform(myColorTransform);
Symbol 407 MovieClip Frame 2
_root._y = -1;
Symbol 407 MovieClip Frame 3
_root._y = 1;
_root._x = 2;
Symbol 407 MovieClip Frame 4
_root._y = -1;
_root._x = -1;
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:40, ba:100, bb:58};
my_color.setTransform(myColorTransform);
Symbol 407 MovieClip Frame 5
_root._y = 1;
my_color = new Color(_root);
myColorTransform = {ra:100, rb:10, ga:100, gb:20, ba:100, bb:38};
my_color.setTransform(myColorTransform);
Symbol 407 MovieClip Frame 6
_root._y = -1;
_root._x = 0;
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:10, ba:100, bb:18};
my_color.setTransform(myColorTransform);
Symbol 407 MovieClip Frame 7
_root._y = 0;
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 407 MovieClip Frame 8
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
stop();
Symbol 413 MovieClip Frame 5
stop();
Symbol 413 MovieClip Frame 23
stop();
Symbol 418 MovieClip Frame 5
stop();
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
_root._y = random(6) - random(6);
_root._x = random(6) - random(6);
my_color = new Color(_root);
myColorTransform = {ra:100, rb:60, ga:100, gb:40, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 461 MovieClip Frame 3
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:50, ga:100, gb:30, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 461 MovieClip Frame 4
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:40, ga:100, gb:20, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 461 MovieClip Frame 5
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:10, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 461 MovieClip Frame 6
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 461 MovieClip Frame 7
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 8
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 9
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 10
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 11
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 12
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 13
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 461 MovieClip Frame 14
_root._x = 0;
_root._y = 0;
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 2
_root._y = random(6) - random(6);
_root._x = random(6) - random(6);
my_color = new Color(_root);
myColorTransform = {ra:100, rb:60, ga:100, gb:40, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 473 MovieClip Frame 3
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:50, ga:100, gb:30, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 473 MovieClip Frame 4
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:40, ga:100, gb:20, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 473 MovieClip Frame 5
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:10, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 473 MovieClip Frame 6
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 473 MovieClip Frame 7
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 8
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 9
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 10
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 11
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 12
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 13
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 473 MovieClip Frame 14
_root._x = 0;
_root._y = 0;
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
_root._y = random(6) - random(6);
_root._x = random(6) - random(6);
my_color = new Color(_root);
myColorTransform = {ra:100, rb:60, ga:100, gb:40, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 475 MovieClip Frame 3
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:50, ga:100, gb:30, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 475 MovieClip Frame 4
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:40, ga:100, gb:20, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 475 MovieClip Frame 5
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:10, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 475 MovieClip Frame 6
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 475 MovieClip Frame 7
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 8
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 9
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 10
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 11
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 12
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 13
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 475 MovieClip Frame 14
_root._x = 0;
_root._y = 0;
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
_root._y = random(6) - random(6);
_root._x = random(6) - random(6);
my_color = new Color(_root);
myColorTransform = {ra:100, rb:80, ga:100, gb:40, ba:100, bb:70};
my_color.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 3
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:60, ga:100, gb:30, ba:100, bb:55};
my_color.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 4
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:40, ga:100, gb:20, ba:100, bb:35};
my_color.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 5
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:10, ba:100, bb:15};
my_color.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 6
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 7
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 8
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 9
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 10
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 11
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 12
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 13
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 477 MovieClip Frame 14
_root._x = 0;
_root._y = 0;
Symbol 481 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 2
_root._y = random(6) - random(6);
_root._x = random(6) - random(6);
my_color = new Color(_root);
myColorTransform = {ra:100, rb:60, ga:100, gb:40, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 505 MovieClip Frame 3
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:50, ga:100, gb:30, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 505 MovieClip Frame 4
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:40, ga:100, gb:20, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 505 MovieClip Frame 5
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:20, ga:100, gb:10, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 505 MovieClip Frame 6
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 505 MovieClip Frame 7
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 8
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 9
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 10
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 11
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 12
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 13
if (_root._y > 0) {
_root._y = _root._y - 0.5;
}
if (_root._y < 0) {
_root._y = _root._y + 0.5;
}
if (_root._x > 0) {
_root._x = _root._x - 0.5;
}
if (_root._x < 0) {
_root._x = _root._x + 0.5;
}
Symbol 505 MovieClip Frame 14
_root._x = 0;
_root._y = 0;
Symbol 517 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 2
stop();
Symbol 517 MovieClip Frame 3
stop();
Symbol 517 MovieClip Frame 4
stop();
Symbol 517 MovieClip Frame 5
stop();
Symbol 517 MovieClip Frame 6
stop();
Symbol 517 MovieClip Frame 7
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 2
stop();
Symbol 529 MovieClip Frame 3
stop();
Symbol 529 MovieClip Frame 4
stop();
Symbol 529 MovieClip Frame 5
stop();
Symbol 529 MovieClip Frame 6
stop();
Symbol 529 MovieClip Frame 7
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 105
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
Symbol 533 MovieClip Frame 106
_root.music.gotoAndPlay("missionclear");
_root.mic.play();
_root.ship.BOSS = false;
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 2
stop();
Symbol 541 MovieClip Frame 3
stop();
Symbol 541 MovieClip Frame 4
stop();
Symbol 541 MovieClip Frame 5
stop();
Symbol 541 MovieClip Frame 6
stop();
Symbol 541 MovieClip Frame 7
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 7
gotoAndStop (1);
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 3
stop();
Symbol 552 MovieClip Frame 4
stop();
Symbol 552 MovieClip Frame 5
stop();
Symbol 552 MovieClip Frame 6
stop();
Symbol 552 MovieClip Frame 7
stop();
Symbol 552 MovieClip Frame 8
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 192
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
stop();
Symbol 560 MovieClip Frame 3
stop();
Symbol 560 MovieClip Frame 4
stop();
Symbol 560 MovieClip Frame 5
stop();
Symbol 560 MovieClip Frame 6
stop();
Symbol 570 Button
on (press) {
savefile.data.level = _root.level;
savefile.data.mission = _root.mission;
savefile.flush();
}
on (press) {
savefile.data.mission2 = _root.mission2;
savefile.data.mission3 = _root.mission3;
savefile.flush();
}
on (press) {
savefile.data.mission4 = _root.mission4;
savefile.data.mission5 = _root.mission5;
savefile.flush();
}
on (press) {
savefile.data.mission6 = _root.mission6;
savefile.data.mission7 = _root.mission7;
savefile.flush();
}
on (press) {
savefile.data.OAkills = _root.OAkills;
savefile.data.overallscore = _root.overallscore;
savefile.flush();
}
on (release) {
_root.continueR.play();
}
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 14
stopAllSounds();
Symbol 571 MovieClip Frame 127
if (_root.MIZ == 1) {
_root.mission = true;
}
if (_root.MIZ == 2) {
_root.mission2 = true;
}
if (_root.MIZ == 3) {
_root.mission3 = true;
}
if (_root.MIZ == 4) {
_root.mission4 = true;
}
if (_root.MIZ == 5) {
_root.mission5 = true;
}
if (_root.MIZ == 6) {
_root.mission6 = true;
}
if (_root.MIZ == 7) {
_root.mission7 = true;
}
Symbol 571 MovieClip Frame 1386
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 23
_root.ship.Health = _root.ship.Health + 100;
Symbol 579 MovieClip Frame 64
_root.level = _root.level + 1;
Symbol 585 Button
on (release) {
_root.gameover.play();
}
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 2
_root.OAkills = _root.OAkills - _root.kills;
Symbol 588 MovieClip Frame 3
_root.overallscore = _root.overallscore - _root.score;
Symbol 588 MovieClip Frame 4
_root.score = 0;
_root.kills = 0;
Symbol 588 MovieClip Frame 48
stop();
Symbol 588 MovieClip Frame 85
stop();
_root.gotoAndPlay(6);
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 2
stop();
Symbol 597 MovieClip Frame 3
stop();
Symbol 597 MovieClip Frame 4
stop();
Symbol 597 MovieClip Frame 5
stop();
Symbol 597 MovieClip Frame 6
stop();
Symbol 597 MovieClip Frame 7
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 8
gotoAndStop (1);
Symbol 598 MovieClip Frame 9
if (_root.wave >= 4) {
gotoAndStop (50);
}
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
_root.overallscore = _root.overallscore + 4;
Symbol 598 MovieClip Frame 10
if (_root.wave >= 4) {
gotoAndStop (50);
}
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
_root.overallscore = _root.overallscore + 4;
Symbol 598 MovieClip Frame 11
_root.ship.SCA = _root.ship.SCA + 5;
_root.overallscore = _root.overallscore + 4;
Symbol 598 MovieClip Frame 12
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
_root.overallscore = _root.overallscore + 4;
Symbol 598 MovieClip Frame 13
_root.ship.SCA = _root.ship.SCA + 5;
_root.overallscore = _root.overallscore + 4;
Symbol 598 MovieClip Frame 14
_root.ship.SCA = _root.ship.SCA + 5;
_root.overallscore = _root.overallscore + 4;
Symbol 598 MovieClip Frame 15
_root.kills = _root.kills + 1;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 598 MovieClip Frame 16
_root.tally2 = _root.tally2 + 1;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 598 MovieClip Frame 17
_root.OAkills = _root.OAkills + 1;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 598 MovieClip Frame 18
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 598 MovieClip Frame 50
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 3
stop();
Symbol 609 MovieClip Frame 4
stop();
Symbol 609 MovieClip Frame 5
stop();
Symbol 609 MovieClip Frame 6
stop();
Symbol 609 MovieClip Frame 7
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 8
gotoAndStop (1);
Symbol 610 MovieClip Frame 9
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 610 MovieClip Frame 10
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 610 MovieClip Frame 11
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 610 MovieClip Frame 12
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 610 MovieClip Frame 13
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 610 MovieClip Frame 14
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 610 MovieClip Frame 15
_root.kills = _root.kills + 1;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 610 MovieClip Frame 16
_root.tally2 = _root.tally2 + 1;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 610 MovieClip Frame 17
_root.OAkills = _root.OAkills + 1;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 610 MovieClip Frame 18
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 610 MovieClip Frame 50
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 2
stop();
Symbol 618 MovieClip Frame 3
stop();
Symbol 618 MovieClip Frame 4
stop();
Symbol 618 MovieClip Frame 5
stop();
Symbol 618 MovieClip Frame 6
stop();
Symbol 618 MovieClip Frame 7
stop();
Symbol 619 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 8
gotoAndStop (1);
Symbol 619 MovieClip Frame 9
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 619 MovieClip Frame 10
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 619 MovieClip Frame 11
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 619 MovieClip Frame 12
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 619 MovieClip Frame 13
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 619 MovieClip Frame 14
_root.overallscore = _root.overallscore + 4;
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 619 MovieClip Frame 15
_root.kills = _root.kills + 1;
_root.OAkills = _root.OAkills + 1;
_root.tally2 = _root.tally2 + 1;
_root.ship.SCA = _root.ship.SCA + 5;
_root.ship.SR = 0;
Symbol 619 MovieClip Frame 16
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 619 MovieClip Frame 17
_root.ship.SCA = _root.ship.SCA + 5;
Symbol 619 MovieClip Frame 18
my_color = new Color(_root);
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0};
my_color.setTransform(myColorTransform);
Symbol 619 MovieClip Frame 50
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 4
stop();
Symbol 633 MovieClip Frame 5
stop();
Symbol 633 MovieClip Frame 6
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 3
stop();
Symbol 653 MovieClip Frame 4
stop();
Symbol 653 MovieClip Frame 5
stop();
Symbol 653 MovieClip Frame 6
stop();
Symbol 653 MovieClip Frame 7
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 31
stopAllSounds();
Symbol 672 MovieClip Frame 32
stop();
_root.gotoAndPlay("REM");
Symbol 676 MovieClip Frame 40
stop();
Symbol 807 Button
on (release) {
gotoAndStop (4);
}
Symbol 808 Button
on (release) {
var strOut = ((_root.playerName + "|") + _root.overallScore);
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.heavygames.com/starserpent/hs.asp?" + strOut2, "_blank");
play();
}