Frame 2
function newgame() {
_root.ship.removeMovieClip();
_root.level = 1;
_root.cash = 0;
_root.mhc = 200;
_root.cd = 10;
_root.cr = 15;
_root.crc = 200;
_root.cdc = 375;
_root.rd = 10;
_root.rr = 25;
_root.rrc = 425;
_root.rdc = 615;
_root.ld = 5;
_root.lr = 8;
_root.lrc = 400;
_root.ldc = 565;
_root.attachMovie("ws", "ws", 10000);
_root.attachMovie("meter", "meter", 10001);
_root.attachMovie("cashmeter", "cashmeter", 10004);
_root.wlist = new Array(3);
_root.wlist[0] = "cannon";
_root.cweapon = _root.wlist[0];
_root.cspeed = 30;
_root.mhealth = 100;
_root.chealth = 100;
wcount = 0;
scount = 800;
lcount = 1000;
bcount = 1200;
for (x in _root.oig) {
_root[_root.oig[x]].removeMovieClip();
_root.oig.splice(x, 1);
}
_root.attachMovie("ship", "ship", 9999);
}
stop();
explode = new Sound();
explode.attachSound("explode");
cping = new Sound();
cping.attachSound("cping");
bang = new Sound();
bang.attachSound("bang");
recieved = new Sound();
recieved.attachSound("recieved");
rocket = new Sound();
rocket.attachSound("zoop");
ping = new Sound();
ping.attachSound("ping");
splash = new Sound();
splash.attachSound("splash");
cannon = new Sound();
cannon.attachSound("cannon");
tropical = new Sound();
tropical.attachSound("tropical");
slaser = new Sound();
slaser.attachSound("zap");
argh = new Sound();
argh.attachSound("argh");
boom = new Sound();
boom.attachSound("boom");
tropical.start(0, 100);
Frame 3
function makeboss(acount) {
_root.alienships.push("boss" + acount);
_root.oig.push("boss" + acount);
_root.attachMovie("boss", "boss" + acount, acount);
_root.oig.push("bmeter");
_root.attachMovie("bmeter", "bmeter", 10007);
}
function makebarrel(x, y) {
_root.ping.start();
_root.attachMovie("barrel", "barrel" + bcount, bcount);
_root.oig.push("barrel" + bcount);
_root["barrel" + bcount]._x = x;
_root["barrel" + bcount]._y = y;
_root["barrel" + bcount].gotoAndStop(random(10) + 1);
bcount++;
if (bcount > 1299) {
bcount = 1200;
}
}
function makewave(x, y) {
_root.attachMovie("wave", "wave" + wcount, wcount);
_root.oig.push("wave" + wcount);
_root["wave" + wcount]._x = x;
_root["wave" + wcount]._y = y;
wcount++;
if (wcount > 99) {
wcount = 0;
}
}
function makesmoke(x, y) {
_root.attachMovie("smoke", "smoke" + scount, scount);
_root.oig.push("smoke" + scount);
_root["smoke" + scount]._x = x;
_root["smoke" + scount]._y = y;
scount++;
if (scount > 899) {
scount = 800;
}
}
function makelaser(x, y, r) {
_root.attachMovie("laser", "laser" + lcount, lcount);
_root.oig.push("laser" + lcount);
_root["laser" + lcount]._x = x;
_root["laser" + lcount]._y = y;
_root["laser" + lcount]._rotation = r + 180;
_root.llist.push("laser" + lcount);
lcount++;
if (lcount > 1099) {
lcount = 1000;
}
}
function makeexplosion(x, y) {
_root.attachMovie("explosion", "explosion" + scount, scount);
_root.oig.push("explosion" + scount);
_root["explosion" + scount]._x = x;
_root["explosion" + scount]._y = y;
_root.llist.push("explosion" + scount);
scount++;
if (scount > 899) {
scount = 800;
}
}
function nextlevel() {
_root.level++;
_root.attachMovie("leveldisplay", "leveldisplay", 10002);
}
function gotobuy() {
for (x in _root.oig) {
_root[_root.oig[x]].removeMovieClip();
_root.oig(x, 1);
}
_root.ship.removeMovieClip();
_root.ws._visible = false;
_root.meter._visible = false;
_root.gotoAndStop("buy");
}
stop();
_root.alienships = new Array();
_root.clist = new Array();
_root.llist = new Array();
_root.oig = new Array();
Instance of Symbol 127 MovieClip in Frame 3
onClipEvent (load) {
if (_root.level == 10) {
boss = 1;
} else {
boss = 0;
}
s1 = 0;
nlk = 0;
lvldone = 0;
_root.ctimermax = 10;
ccount = 100;
ctimer = _root.ctimerxax;
atimer = 10;
acount = 500;
_root.attachMovie("ship", "ship", 9999);
}
onClipEvent (enterFrame) {
_root.amax = 50 - (_root.level * 2);
for (g in _root.llist) {
if (_root[_root.llist[g]].hitTest(_root.ship)) {
_root.argh.start();
_root.boom.start();
_root.chealth = _root.chealth - 10;
_root[_root.llist[g]].removeMovieClip();
_root.llist.splice(g, 1);
}
if (_root[_root.llist[g]]._y > (random(20) + 370)) {
_root.makewave(_root[_root.llist[g]]._x, _root[_root.llist[g]]._y);
_root[_root.llist[g]].removeMovieClip();
_root.llist.splice(g, 1);
}
}
for (c in _root.clist) {
if ((((_root[_root.clist[c]]._x > 550) or (_root[_root.clist[c]]._x < 0)) or (_root[_root.clist[c]]._y > 400)) or (_root[_root.clist[c]]._y < 0)) {
removeMovieClip(_root[_root.clist[c]]);
_root.clist.splice(c, 1);
}
}
for (d in _root.alienships) {
if ((_root[_root.alienships[d]]._x < -1) or (_root[_root.alienships[d]]._x > 551)) {
removeMovieClip(_root[_root.alienships[d]]);
_root.alienships.splice(d, 1);
}
}
for (e in _root.clist) {
for (f in _root.alienships) {
if (_root[_root.clist[e]].hitTest(_root[_root.alienships[f]])) {
_root.bang.start();
_root.makeexplosion(_root[_root.clist[e]]._x, _root[_root.clist[e]]._y);
_root[_root.clist[e]].removeMovieClip();
_root[_root.alienships[f]].hp = _root[_root.alienships[f]].hp - _root.cdamage;
_root.clist.splice(e, 1);
}
}
}
if (ccount > 199) {
ccount = 100;
}
if ((_root.pressed == 1) and (ctimer >= _root.ctimermax)) {
_root[_root.cweapon].start();
_root.attachMovie("cball", "cball" + ccount, ccount);
_root.oig.push("cball" + ccount);
_root.clist.push("cball" + ccount);
ccount++;
ctimer = 0;
if (ccount > 199) {
ccount = 100;
}
}
ctimer++;
if ((atimer >= _root.amax) and (lvldone == 0)) {
atimer = 0;
jk = random(2) + 1;
i = 0;
while (i < jk) {
_root.alienships.push("alien" + acount);
_root.oig.push("alien" + acount);
_root.attachMovie("alien", "alien" + acount, acount);
nlk++;
acount++;
i++;
}
if (acount > 700) {
acount = 500;
}
}
atimer++;
if (nlk >= (10 * _root.level)) {
btime = 100;
nlk = 0;
lvldone = 1;
avol = 25;
rtimer = 100;
}
if (Key.isDown(49)) {
_root.cweapon = _root.wlist[0];
}
if (Key.isDown(50) and (_root.wlist[1] == "slaser")) {
_root.cweapon = "slaser";
}
if (Key.isDown(51) and (_root.wlist[2] == "rocket")) {
_root.cweapon = "rocket";
}
if ((lvldone == 1) and (_root.alienships.length == 0)) {
rtimer--;
btime--;
if (((rtimer <= 0) and (s1 == 0)) and (boss == 0)) {
if (_root.level >= 10) {
for (x in _root.oig) {
_root[_root.oig[x]].removeMovieClip();
_root.oig(x, 1);
}
_root.ship.removeMovieClip();
_root.ws._visible = false;
_root.meter._visible = false;
_root.gotoAndStop(6);
} else {
_root.attachMovie("blacks", "blacks", 10005);
}
s1 = 1;
}
if ((boss > 0) and (btime <= 0)) {
_root.makeboss(acount);
rtimer = 200;
boss--;
}
}
if (_root.chealth <= 0) {
for (x in _root.oig) {
_root[_root.oig[x]].removeMovieClip();
_root.oig(x, 1);
}
_root.tropical.stop();
_root.tropical.start(0, 100);
_root.ship.removeMovieClip();
_root.ws._visible = false;
_root.meter._visible = false;
_root.cashmeter._visible = false;
_root.gotoAndStop(5);
}
}
onClipEvent (mouseDown) {
_root.pressed = 1;
}
onClipEvent (mouseUp) {
_root.pressed = 0;
}
Frame 4
stop();
Instance of Symbol 138 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((_root.cash < 1200) or (_root.wlist[2] == "rocket")) {
gotoAndStop (2);
}
}
Instance of Symbol 142 MovieClip in Frame 4
on (press) {
_root.attachMovie("blackb", "blackb", 10005);
}
Instance of Symbol 145 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((_root.cash < 500) or (_root.wlist[1] == "slaser")) {
gotoAndStop (2);
}
}
Instance of Symbol 28 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
Instance of Symbol 153 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((_root.cash < _root.crc) or (_root.cr <= 5)) {
if (_root.cr <= 5) {
_root.crc = "max";
}
gotoAndStop (2);
}
}
Instance of Symbol 156 MovieClip "lrb" in Frame 4
onClipEvent (enterFrame) {
if (((_root.wlist[1] != "slaser") or (_root.cash < _root.lrc)) or (_root.lr <= 2)) {
if (_root.lr <= 2) {
_root.lrc = "max";
}
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 159 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (((_root.wlist[2] != "rocket") or (_root.cash < _root.rrc)) or (_root.rr <= 20)) {
if (_root.rr <= 20) {
_root.rrc = "max";
}
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 163 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((_root.cash < _root.cdc) or (_root.cd >= 15)) {
if (_root.cd >= 15) {
_root.cdc = "max";
}
gotoAndStop (2);
}
}
Instance of Symbol 166 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (((_root.wlist[1] != "slaser") or (_root.cash < _root.ldc)) or (_root.ld >= 10)) {
if (_root.ld >= 10) {
_root.ldc = "max";
}
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 169 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (((_root.wlist[2] != "rocket") or (_root.cash < _root.rdc)) or (_root.rd >= 15)) {
if (_root.rd >= 15) {
_root.rdc = "max";
}
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 174 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((_root.cash < _root.mhc) or (_root.mhealth >= 1000)) {
if (_root.mhealth >= 1000) {
_root.mhc = "max";
}
gotoAndStop (2);
}
}
Instance of Symbol 177 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((_root.cash < 100) or (_root.chealth == _root.mhealth)) {
gotoAndStop (2);
}
}
Frame 121
_root.newgame();
gotoAndPlay (2);
Symbol 22 MovieClip [ship] Frame 1
_y = 390;
_x = 275;
Instance of Symbol 21 MovieClip "minor" in Symbol 22 MovieClip [ship] Frame 1
onClipEvent (load) {
a = 10;
speed = 0;
mspeed = 10;
wcount = 0;
waveh = 370;
accel = 3;
resistance = 0.2;
}
onClipEvent (enterFrame) {
if (_parent._y < waveh) {
_parent._y = _parent._y + 1;
}
if (_parent._y > waveh) {
_parent._y = _parent._y - 1;
}
_parent._x = _parent._x + speed;
if ((_parent._x < 10) or (_parent._x > 540)) {
speed = speed * -0.8;
if (_parent._x < 10) {
_parent._x = 12;
}
if (_parent._x > 540) {
_parent._x = 538;
}
}
if (Key.isDown(68)) {
if (speed < mspeed) {
speed = speed + accel;
}
}
if (Key.isDown(65)) {
if (speed > (mspeed * -1)) {
speed = speed - accel;
}
}
if (speed > 0) {
speed = speed - resistance;
}
if (speed < 0) {
speed = speed + resistance;
}
ax = _parent._x - _root._xmouse;
ay = _parent._y - _root._ymouse;
_root.crotation = (Math.atan(ax / ay) * -180) / Math.PI;
_root.makewave(_parent._x, _parent._y + 12);
}
Symbol 25 MovieClip Frame 13
removeMovieClip(_parent);
Symbol 35 MovieClip [cball] Frame 1
gotoAndStop(_root.cweapon);
Instance of Symbol 28 MovieClip in Symbol 35 MovieClip [cball] Frame 1
onClipEvent (load) {
_root.cdamage = _root.cd;
_root.ctimermax = _root.cr;
_root.cspeed = 30;
_parent._rotation = _root.crotation;
_parent._x = _root.ship._x;
_parent._y = _root.ship._y;
}
onClipEvent (enterFrame) {
x = Math.sin(_parent._rotation * (Math.PI/180)) * _root.cspeed;
y = (Math.cos(_parent._rotation * (Math.PI/180)) * _root.cspeed) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
}
Instance of Symbol 30 MovieClip in Symbol 35 MovieClip [cball] Frame 2
onClipEvent (load) {
_root.cdamage = _root.ld;
_root.ctimermax = _root.lr;
_root.cspeed = 40;
_parent._rotation = _root.crotation;
_parent._x = _root.ship._x;
_parent._y = _root.ship._y;
}
onClipEvent (enterFrame) {
x = Math.sin(_parent._rotation * (Math.PI/180)) * _root.cspeed;
y = (Math.cos(_parent._rotation * (Math.PI/180)) * _root.cspeed) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
}
Instance of Symbol 34 MovieClip in Symbol 35 MovieClip [cball] Frame 3
onClipEvent (load) {
_root.cdamage = _root.rd;
_root.ctimermax = _root.rr;
_root.cspeed = 15;
_parent._x = _root.ship._x;
_parent._y = _root.ship._y;
target = _root.alienships[random(_root.alienships.length)];
_parent._rotation = _root.crotation;
}
onClipEvent (enterFrame) {
a = _root[target]._x - _parent._x;
b = _root[target]._y - _parent._y;
if (((Math.atan(a / b) * -180) / Math.PI) > _parent._rotation) {
_parent._rotation = _parent._rotation + 5;
}
if (((Math.atan(a / b) * -180) / Math.PI) < _parent._rotation) {
_parent._rotation = _parent._rotation - 5;
}
x = Math.sin(_parent._rotation * (Math.PI/180)) * _root.cspeed;
y = (Math.cos(_parent._rotation * (Math.PI/180)) * _root.cspeed) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
}
Symbol 45 MovieClip [alien] Frame 1
b = random(5);
if ((b == 1) and (_root.level >= 3)) {
a = 2;
} else {
a = 1;
}
gotoAndStop(a);
Instance of Symbol 37 MovieClip in Symbol 45 MovieClip [alien] Frame 1
onClipEvent (load) {
p = random(2);
_parent.hp = 10;
firerate = 0;
fire = 20;
if (p == 1) {
_parent._x = 550;
irotation = -90;
}
if (p == 0) {
_parent._x = 0;
irotation = 90;
}
speed = random(5) + 3;
a = random(100) + 10;
_parent._y = a;
}
onClipEvent (enterFrame) {
firerate++;
if ((firerate >= fire) and (_parent.destroyed != 1)) {
_root.slaser.start();
_root.makelaser(_parent._x, _parent._y + 30, 0);
firerate = 0;
}
if (_parent._y > 400) {
removeMovieClip(_parent);
}
x = Math.sin(irotation * (Math.PI/180)) * speed;
y = (Math.cos(irotation * (Math.PI/180)) * speed) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
if ((turn == 1) and (p == 1)) {
_parent._rotation = _parent._rotation - 0.5;
irotation--;
speed = speed + 0.5;
}
if ((turn == 1) and (p == 0)) {
_parent._rotation = _parent._rotation + 0.5;
irotation++;
speed = speed + 0.5;
}
if (_parent.hp <= 0) {
_parent.destroyed = 1;
}
if (_parent.destroyed == 1) {
if (kswitch != 1) {
barrel = random(2);
if (barrel == 1) {
_root.makebarrel(_parent._x, _parent._y);
}
for (d in _root.alienships) {
if (_parent._name == _root.alienships[d]) {
_root.alienships.splice(d, 1);
}
}
kswitch = 1;
}
turn = 1;
_root.makesmoke(_parent._x, _parent._y);
}
}
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip [alien] Frame 2
onClipEvent (load) {
p = random(2);
_parent.hp = 30;
firerate = 0;
fire = 20;
if (p == 1) {
_parent._x = 550;
irotation = -90;
}
if (p == 0) {
_parent._x = 0;
irotation = 90;
}
speed = random(5) + 3;
a = random(100) + 10;
_parent._y = a;
}
onClipEvent (enterFrame) {
firerate++;
if ((firerate >= fire) and (_parent.destroyed != 1)) {
_root.slaser.start();
_root.makelaser(_parent._x - 2.5, _parent._y + 30, 0);
_root.makelaser(_parent._x + 2.5, _parent._y + 30, 0);
firerate = 0;
}
if (_parent._y > 400) {
removeMovieClip(_parent);
}
x = Math.sin(irotation * (Math.PI/180)) * speed;
y = (Math.cos(irotation * (Math.PI/180)) * speed) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
if ((turn == 1) and (p == 1)) {
_parent._rotation = _parent._rotation - 0.5;
irotation--;
speed = speed + 0.5;
}
if ((turn == 1) and (p == 0)) {
_parent._rotation = _parent._rotation + 0.5;
irotation++;
speed = speed + 0.5;
}
if (_parent.hp <= 0) {
_parent.destroyed = 1;
}
if (_parent.destroyed == 1) {
if (kswitch != 1) {
barrel = random(2);
if (barrel == 1) {
_root.makebarrel(_parent._x, _parent._y);
}
for (d in _root.alienships) {
if (_parent._name == _root.alienships[d]) {
_root.alienships.splice(d, 1);
}
}
kswitch = 1;
}
turn = 1;
_root.makesmoke(_parent._x, _parent._y);
}
}
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip [laser] Frame 1
onClipEvent (enterFrame) {
x = Math.sin(_parent._rotation * (Math.PI/180)) * 10;
y = (Math.cos(_parent._rotation * (Math.PI/180)) * 10) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
}
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip [explosion] Frame 1
onClipEvent (load) {
_parent._rotation = random(360);
}
Symbol 51 MovieClip [explosion] Frame 5
removeMovieClip(this);
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip [explosion] Frame 5
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + 20;
}
Symbol 64 MovieClip [ws] Frame 1
_x = 40;
_y = 350;
Instance of Symbol 62 MovieClip in Symbol 64 MovieClip [ws] Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.cweapon);
}
Instance of Symbol 69 MovieClip in Symbol 72 MovieClip [barrel] Frame 1
onClipEvent (load) {
wtype = "rocket";
y = random(20) + 370;
speed = 0;
}
onClipEvent (enterFrame) {
if (_parent._y < y) {
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + 10;
}
if (_parent._y >= y) {
_root.makewave(_parent._x, _parent._y);
_root.splash.start();
removeMovieClip(_parent);
}
if (speed < 8) {
speed = speed + 0.2;
}
if (_parent.hitTest(_root.ship)) {
_root.recieved.start();
_root.cash = _root.cash + (random(150) + 25);
removeMovieClip(_parent);
}
}
Instance of Symbol 71 MovieClip in Symbol 72 MovieClip [barrel] Frame 10
onClipEvent (load) {
y = random(20) + 370;
speed = 0;
}
onClipEvent (enterFrame) {
if (_parent._y < y) {
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + 5;
}
if (_parent._y >= y) {
_root.makewave(_parent._x, _parent._y);
_root.splash.start();
removeMovieClip(_parent);
}
if (speed < 8) {
speed = speed + 0.2;
}
if (_parent.hitTest(_root.ship)) {
_root.recieved.start();
if (_root.chealth < (_root.mhealth - 20)) {
_root.chealth = _root.chealth + 20;
} else {
_root.chealth = _root.mhealth;
}
removeMovieClip(_parent);
}
}
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = ((80 * _root.bchealth) / _root.bmhealth);
}
Symbol 78 MovieClip [bmeter] Frame 1
_x = 500;
_y = (10 + _height);
Symbol 78 MovieClip [bmeter] Frame 10
stop();
Symbol 79 MovieClip [meter] Frame 1
_x = 500;
_y = 390;
Instance of Symbol 75 MovieClip in Symbol 79 MovieClip [meter] Frame 1
onClipEvent (enterFrame) {
_height = ((80 * _root.chealth) / _root.mhealth);
}
Symbol 83 MovieClip [leveldisplay] Frame 1
_x = 275;
_y = 200;
Instance of Symbol 82 MovieClip in Symbol 83 MovieClip [leveldisplay] Frame 1
onClipEvent (load) {
_root.displaytext = "LEVEL " + _root.level;
}
Symbol 83 MovieClip [leveldisplay] Frame 88
removeMovieClip(this);
Symbol 87 MovieClip [cashmeter] Frame 1
_x = 20;
_y = 10;
Symbol 89 MovieClip [blackb] Frame 5
_root.gotoAndStop("game");
_root.nextlevel();
_root.ws._visible = true;
_root.meter._visible = true;
Symbol 89 MovieClip [blackb] Frame 10
removeMovieClip(this);
Symbol 90 MovieClip [blacks] Frame 5
_root.gotobuy();
Symbol 90 MovieClip [blacks] Frame 10
removeMovieClip(this);
Symbol 93 MovieClip [boss] Frame 1
gotoAndStop (2);
Instance of Symbol 92 MovieClip in Symbol 93 MovieClip [boss] Frame 1
onClipEvent (load) {
a = 4;
irotation = 90;
p = random(2);
_parent.hp = 2500;
_root.bmhealth = _parent.hp;
firerate = 0;
fire = 20;
_parent._x = 550;
speed = 3;
_parent._y = 50;
}
onClipEvent (enterFrame) {
_root.bchealth = _parent.hp;
if (_parent._x < 100) {
d = 1;
}
if (_parent._x > 450) {
d = 2;
}
if (d == 2) {
irotation = -90;
}
if (d == 1) {
irotation = 90;
}
firerate++;
if ((firerate >= fire) and (_parent.destroyed != 1)) {
_root.slaser.start();
_root.makelaser(_parent._x, _parent._y + 50, 20);
_root.makelaser(_parent._x, _parent._y + 50, -20);
firerate = 0;
}
x = Math.sin(irotation * (Math.PI/180)) * speed;
y = (Math.cos(irotation * (Math.PI/180)) * speed) * -1;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
if (_parent.hp <= 0) {
_parent.destroyed = 1;
}
if (_parent.destroyed == 1) {
if (kswitch != 1) {
for (d in _root.alienships) {
if (_parent._name == _root.alienships[d]) {
_root.alienships.splice(d, 1);
}
}
}
kswitch = 1;
if ((timer <= 0) and (a >= 0)) {
_root.explode.start();
_parent._alpha = _parent._alpha - 20;
_root.attachMovie("bkill", "bkill", 10008);
timer = 20;
a--;
}
timer--;
}
}
Symbol 96 MovieClip [bkill] Frame 10
removeMovieClip(this);
Symbol 99 MovieClip [smoke] Frame 7
removeMovieClip(this);
Instance of Symbol 104 MovieClip in Symbol 105 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ship.minor.waveh = 390;
}
}
Instance of Symbol 104 MovieClip in Symbol 105 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ship.minor.waveh = 360;
}
}
Symbol 114 Button
on (release) {
_root.newgame();
_root.gotoAndPlay(2);
}
Instance of Symbol 105 MovieClip in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x <= -550) {
_x = 550;
}
_x = (_x - 10);
}
Instance of Symbol 105 MovieClip in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x <= -550) {
_x = 550;
}
_x = (_x - 10);
}
Symbol 138 MovieClip Frame 1
if (_root.cash < 1500) {
gotoAndStop (2);
}
stop();
Instance of Symbol 132 MovieClip in Symbol 138 MovieClip Frame 1
on (release) {
_root.wlist[2] = "rocket";
_root.cash = _root.cash - 1200;
_root.cping.start();
}
Symbol 145 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 145 MovieClip Frame 1
on (release) {
_root.wlist[1] = "slaser";
_root.cash = _root.cash - 500;
_root.cping.start();
}
Instance of Symbol 30 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 153 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 153 MovieClip Frame 1
on (release) {
_root.cr--;
_root.cash = _root.cash - _root.crc;
_root.crc = _root.crc + Math.round(_root.crc / 2);
_root.cping.start();
}
Instance of Symbol 28 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 28 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 28 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 156 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 156 MovieClip Frame 1
on (release) {
_root.lr--;
_root.cash = _root.cash - _root.lrc;
_root.lrc = _root.lrc + Math.round(_root.lrc / 2);
_root.cping.start();
}
Instance of Symbol 30 MovieClip in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 30 MovieClip in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 30 MovieClip in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 159 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 159 MovieClip Frame 1
on (release) {
_root.rr--;
_root.cash = _root.cash - _root.rrc;
_root.rrc = _root.rrc + Math.round(_root.rrc / 2);
_root.cping.start();
}
Symbol 163 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 163 MovieClip Frame 1
on (release) {
_root.cd = _root.cd + 2;
_root.cash = _root.cash - _root.cdc;
_root.cdc = _root.cdc + Math.round(_root.cdc / 2);
_root.cping.start();
}
Instance of Symbol 28 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 166 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 166 MovieClip Frame 1
on (release) {
_root.ld = _root.ld + 2;
_root.cash = _root.cash - _root.ldc;
_root.ldc = _root.ldc + Math.round(_root.ldc / 2);
_root.cping.start();
}
Instance of Symbol 30 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 169 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 169 MovieClip Frame 1
on (release) {
_root.rd = _root.rd + 2;
_root.cash = _root.cash - _root.rdc;
_root.rdc = _root.rdc + Math.round(_root.rdc / 2);
_root.cping.start();
}
Symbol 174 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 174 MovieClip Frame 1
on (release) {
_root.mhealth = _root.mhealth + 20;
_root.chealth = _root.chealth + 20;
_root.cash = _root.cash - _root.mhc;
_root.mhc = _root.mhc + Math.round(_root.mhc / 4);
_root.cping.start();
}
Instance of Symbol 20 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 177 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 177 MovieClip Frame 1
on (release) {
if (_root.chealth < (_root.mhealth - 20)) {
_root.chealth = _root.chealth + 20;
} else {
_root.chealth = _root.mhealth;
}
_root.cash = _root.cash - 100;
_root.cping.start();
}
Instance of Symbol 71 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 181 Button
on (release) {
_root.tropical.stop();
_root.gotoAndStop(2);
}
Symbol 185 Button
on (release) {
_root.tropical.stop();
getURL ("http://dearthy.com", "_blank");
}