Frame 1
stop();
_root.cacheAsBitmap = true;
Stage.showMenu = false;
Frame 2
_y = 0;
_x = 0;
tsound.stop();
ship.removeMovieClip();
bossguy.removeMovieClip();
gameover.removeMovieClip();
box.removeMovieClip();
foreG.removeMovieClip();
masker.removeMovieClip();
_root.createEmptyMovieClip("tsoundMC", 1);
tsound = new Sound("tsoundMC");
tsound.attachSound("titleSound");
tsound.start();
tsound.onSoundComplete = function () {
tsound.start();
};
spm.stop();
plm.stop();
yyy = new Array(5);
mz = 0;
while (mz < 5) {
yyy[mz] = this["bb" + mz]._y;
mz++;
}
movA = [0, 30, 120, 90, 60];
rad = 57.2957795130823;
onEnterFrame = function () {
wap._x = 0;
wap._y = 0;
wap._x = wap._x + (3 - random(6));
wap._y = wap._y + (3 - random(6));
mv = 0;
while (mv < 5) {
this["bb" + mv]._y = (yyy[mv] + Math.sin(movA[mv] / rad)) + 0.05;
movA[mv] = movA[mv] + 31;
mv++;
}
if (bb0._y < 230) {
tsound.stop();
gotoAndStop (1);
}
bb4._visible = false;
};
bb2.onRelease = function () {
tsound.stop();
gotoAndStop ("game");
};
bb0.onRelease = function () {
gotoAndStop ("htp");
};
bb3.onRelease = function () {
gotoAndStop ("cred");
};
Frame 5
function moveShip() {
if (Key.isDown(40)) {
if (ship._y < 2100) {
ship._y = ship._y + speed;
ship._rotation = ship._rotation + speed;
}
}
if (Key.isDown(38)) {
if (ship._y > 0) {
ship._y = ship._y - speed;
ship._rotation = ship._rotation - speed;
}
}
if (ship._y > 2100) {
ship._y = 2100;
}
if (ship._y < 0) {
ship._y = 0;
}
ship._rotation = ship._rotation * 0.8;
if (Key.isDown(39)) {
if ((boss == true) && (ship._x < 550)) {
ship._x = ship._x + speed;
} else if (ship._x < 300) {
ship._x = ship._x + speed;
}
}
if (Key.isDown(37) && (ship._x > 50)) {
ship._x = ship._x - speed;
if (zone == 1) {
ship._rotation = ship._rotation - (speed / 2);
}
}
if (((ship._y - 200) > 1200) && (zone == 0)) {
if (ship.shiptran._currentframe == 1) {
ship.shiptran.play();
}
box.mass.zid.gotoAndStop(1);
zone = 1;
}
if (((ship._y + 200) < 1200) && (zone == 1)) {
if (ship.shiptran._currentframe == 15) {
ship.shiptran.play();
}
box.mass.zid.gotoAndStop(2);
shield = Math.round(maxshield * 0.1);
shieldtimer = 0;
zone = 0;
}
if (elasnum > 200) {
elasnum = 1;
}
}
function statsShip() {
if (zone == 1) {
ship._y = ship._y + (1500 / (2500 - ship._y));
shield = 0;
if (Key.isDown(32) && (rebomb < 1)) {
planetbomb.duplicateMovieClip("pp" + totalbombs, 100 + totalbombs);
this["pp" + totalbombs].gotoAndStop(1);
this["pp" + totalbombs]._x = ship._x;
this["pp" + totalbombs]._y = ship._y + 20;
totalbombs++;
if (totalbombs > 10) {
totalbombs = 0;
}
rebomb = retbomb;
}
rebomb--;
shd._alpha = 0;
} else if (zone == 0) {
shd._x = ship._x;
shd._y = ship._y;
shd._rotation = ship._rotation;
if (shieldtimer > 1) {
sheild = 0;
}
if (shield >= maxshield) {
shield = maxshield;
} else if ((shield < maxshield) && (shieldtimer < 1)) {
if (shrec < 1) {
shield++;
shrec = shieldrec;
}
}
shrec--;
if (shal != shield) {
shd._alpha = 80;
shal = shield;
} else if (shd._alpha > 1) {
shd._alpha--;
}
shieldtimer--;
}
}
function container() {
box.mass.hpper = Math.round((health / maxhealth) * 100);
box.mass.shper = Math.round((shield / maxshield) * 100);
box.mass.cir.hp.gotoAndStop(100 - Math.round((health / maxhealth) * 100));
box.mass.cir.sh.gotoAndStop(100 - Math.round((shield / maxshield) * 100));
if (blueNum < upgrade.length) {
if (blueOrbs >= upgrade[blueNum]) {
upSet[0] = 1;
} else {
upSet[0] = 0;
}
if (redOrbs >= upgrade[blueNum]) {
upSet[1] = 1;
} else {
upSet[1] = 0;
}
if (greenOrbs >= upgrade[blueNum]) {
upSet[2] = 1;
} else {
upSet[2] = 0;
}
if (((upSet[0] == 1) && (upSet[1] == 1)) && (upSet[2] == 1)) {
blueNum++;
}
}
box.mass.expbar.blueex.gotoAndStop(1 + Math.floor(((blueOrbs - upgrade[blueNum - 1]) / (upgrade[blueNum] - upgrade[blueNum - 1])) * 100));
box.mass.expbar.redex.gotoAndStop(1 + Math.floor(((redOrbs - upgrade[blueNum - 1]) / (upgrade[blueNum] - upgrade[blueNum - 1])) * 100));
box.mass.expbar.greenex.gotoAndStop(1 + Math.floor(((greenOrbs - upgrade[blueNum - 1]) / (upgrade[blueNum] - upgrade[blueNum - 1])) * 100));
if (score > 9999999) {
stscore = String(score);
} else if (score > 999999) {
stscore = String("0" + score);
} else if (score > 99999) {
stscore = String("00" + score);
} else if (score > 9999) {
stscore = String("000" + score);
} else if (score > 999) {
stscore = String("0000" + score);
} else if (score > 99) {
stscore = String("00000" + score);
} else if (score > 9) {
stscore = String("000000" + score);
} else {
stscore = String("0000000" + score);
}
if (money > 9999999) {
stmoney = String(money);
} else if (money > 999999) {
stmoney = String("0" + money);
} else if (money > 99999) {
stmoney = String("00" + money);
} else if (money > 9999) {
stmoney = String("000" + money);
} else if (money > 999) {
stmoney = String("0000" + money);
} else if (money > 99) {
stmoney = String("00000" + money);
} else if (money > 9) {
stmoney = String("000000" + money);
} else {
stmoney = String("0000000" + money);
}
if (combo > 9999999) {
stcombo = String(combo);
} else if (combo > 999999) {
stcombo = String("0" + combo);
} else if (combo > 99999) {
stcombo = String("00" + combo);
} else if (combo > 9999) {
stcombo = String("000" + combo);
} else if (combo > 999) {
stcombo = String("0000" + combo);
} else if (combo > 99) {
stcombo = String("00000" + combo);
} else if (combo > 9) {
stcombo = String("000000" + combo);
} else {
stcombo = String("0000000" + combo);
}
sArray = stscore.split("");
mArray = stmoney.split("");
cArray = stcombo.split("");
axz = 0;
while (axz < 8) {
box.mass["s" + axz] = Number(sArray[axz]);
box.mass["m" + axz] = Number(mArray[axz]);
box.mass["c" + axz] = Number(cArray[axz]);
axz++;
}
}
function attackShip() {
if (Key.isDown(65)) {
if (weaponOn == 0) {
weaponOn = 1;
}
} else if (weaponOn == 1) {
weaponOn = 0;
}
if (Key.isDown(83)) {
if (weaponOn == 0) {
weaponOn = 2;
}
} else if (weaponOn == 2) {
weaponOn = 0;
}
if (Key.isDown(68)) {
if (weaponOn == 0) {
weaponOn = 3;
}
} else if (weaponOn == 3) {
weaponOn = 0;
}
blueAttack.gotoAndStop(blueNum);
redAttack.gotoAndStop(blueNum);
greenAttack.gotoAndStop(blueNum);
with (blueAttack) {
mov._x = ship._x;
mov._y = ship._y;
}
with (redAttack) {
mov._x = ship._x;
mov._y = ship._y;
}
with (greenAttack) {
mov._x = ship._x;
mov._y = ship._y;
}
}
function cameraMove() {
_y = (_y + ((((-ship._y) + 150) - _y) / 10));
if (_y > 0) {
_y = 0;
}
masker._y = -_y;
box._y = (-_y) + 300;
}
function variousStuff() {
if ((Key.isDown(80) && (box.mass.screen._currentframe == 1)) && (paused == false)) {
paused = true;
box.mass.screen.gotoAndPlay("paused");
}
if (atime < 1) {
if (area == 1) {
area = 2 + random(2);
} else if (area == 2) {
area = 1 + random(2);
} else if (area == 3) {
area = 1;
}
atime = 450 + random(1050);
}
atime--;
}
function constants() {
if (isNaN(score)) {
score = tmpscore;
} else {
tmpscore = score;
}
if (isNaN(money)) {
money = tmpmoney;
} else {
tmpmoney = money;
}
if (health < 1) {
health = 0;
if (died == 0) {
if (lives > 0) {
enemies.exx.duplicateMovieClip("ex" + exnum, 700 + exnum, {_x:_x, _y:_y});
exnum++;
if (exnum > 50) {
exnum = 0;
}
lives--;
health = maxhealth;
shield = maxshield;
dtime = 90;
} else {
shy = 1;
died = 1;
}
}
}
if (dtime > 1) {
ship._alpha = 100 - dtime;
health = health + 100;
dtime--;
} else if (ship._alpha != 100) {
ship._alpha = 100;
}
if (health > maxhealth) {
health = maxhealth;
}
if (died == 1) {
paused = true;
if (ship._y < 2260) {
playingM = 0;
shootFX = 0;
shd._visible = false;
ship._x = ship._x + 5;
ship._rotation = ship._rotation + 13;
ship._y = ship._y + shy;
if (shy < 25) {
shy++;
}
if (random(3) == 0) {
enemies.exx.duplicateMovieClip("ex" + exnum, 700 + exnum, {_x:ship._x + 20, _y:ship._y + 60});
exnum++;
if (exnum > 50) {
exnum = 0;
}
}
if (ship._y < 2100) {
_y = ((-ship._y) + 150);
} else {
_y = -1950;
}
masker._y = -_y;
box._y = (-_y) + 300;
} else {
gameover._x = 300;
gameover._y = (-_y) + 200;
if (gameover._currentframe == 1) {
gameover.play();
}
}
}
if ((playingM == 0) || (boss == true)) {
spm.stop();
plm.stop();
} else if (playingM == 2) {
spm.start(random(spm.duration));
plm.start(random(plm.duration));
playingM = 1;
}
spv = (1250 - ship._y) / 5;
plv = (ship._y - 1150) / 5;
if (spv > 200) {
spv = 200;
}
if (plv > 200) {
plv = 200;
}
if (spv < 0) {
spv = 0;
}
if (plv < 0) {
plv = 0;
}
spm.setVolume(spv);
plm.setVolume(plv);
}
function levelCreation() {
}
stop();
speed = 10;
blueNum = 1;
bluePow = 1;
redPow = 1;
greenPow = 1;
multi = 2;
weaponOn = 0;
blueOrbs = 0;
redOrbs = 0;
greenOrbs = 0;
upgrade = [0, 10, 20, 30, 40, 50, 150, 300, 550, 900, 1250, 1500, 2000, 2500];
upSet = [0, 0, 0];
bombPow = 5;
bombExpand = 2;
box.mass.zid.gotoAndStop(2);
zone = 0;
foreG.swapDepths(9999);
box.swapDepths(1000000);
score = 0;
money = 0;
kills = 0;
combo = 0;
maxhealth = 100;
health = maxhealth;
lives = 3;
maxshield = 20;
shield = maxshield;
shieldrec = 30;
shrec = shieldrec;
shieldtimer = 0;
retbomb = 30;
rebomb = retbomb;
totalbombs = 0;
paused = false;
level = 1;
boss = false;
elasnum = 1;
shootFX = 1;
FXV = 60;
storyNum = 0;
talkness = "";
onEnterFrame = function () {
if (_root.paused == false) {
moveShip();
statsShip();
container();
attackShip();
cameraMove();
variousStuff();
}
constants();
levelCreation();
storyArray = story.split("&&");
};
blueAttack._x = 0;
blueAttack._y = 0;
redAttack._x = 0;
redAttack._y = 0;
greenAttack._x = 0;
greenAttack._y = 0;
_root.createEmptyMovieClip("masker", 99996);
masker.beginFill(0, 0);
masker.lineStyle(0, 0, 0);
masker.lineTo(0, 0);
masker.lineTo(600, 0);
masker.lineTo(600, 400);
masker.lineTo(0, 400);
masker.lineTo(0, 0);
masker.endFill();
_root.setMask(masker);
area = 3;
atime = random(300);
gfx = 5;
stotyTime = false;
this.createEmptyMovieClip("spmm", 777);
this.createEmptyMovieClip("plmm", 778);
spm = new Sound("spmm");
spm.attachSound("spaceM");
spm.start();
plm = new Sound("plmm");
plm.attachSound("planM");
plm.start();
playingM = 1;
spm.onSoundComplete = function () {
spm.start();
};
plm.onSoundComplete = function () {
plm.start();
};
died = 0;
gamover._x = -600;
gameover.swapDepths(1000001);
boss = false;
shop = false;
Symbol 10 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (2);
if (Key.isDown(32)) {
_root.nextFrame();
}
}
};
Symbol 12 MovieClip Frame 1
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_alpha = 0;
} else {
_width = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 71);
}
};
Symbol 14 MovieClip Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("08b11415", this, 10301, true);
Symbol 27 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 51 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1576", "_blank");
}
Symbol 82 Button
on (release) {
play();
}
Symbol 92 MovieClip Frame 130
stop();
Symbol 92 MovieClip Frame 201
stop();
Symbol 92 MovieClip Frame 299
stop();
Symbol 92 MovieClip Frame 300
_root.gotoAndStop(2);
Symbol 97 Button
on (release) {
gotoAndStop (2);
}
Symbol 98 Button
on (release) {
getURL ("http://www.clockcrew.cc", "_blamk");
}
Symbol 102 MovieClip Frame 1
onEnterFrame = function () {
if (_root.gfx < 3) {
_visible = false;
} else {
_visible = true;
}
};
Symbol 107 MovieClip Frame 1
if (_parent.a == 0) {
gotoAndPlay(random(20) + 1);
_parent.a = 1;
}
Symbol 111 MovieClip Frame 1
if (_parent.a == 0) {
gotoAndPlay(random(20) + 1);
_parent.a = 1;
}
Symbol 121 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._x > 600) {
gotoAndStop(random(_totalframes + 1));
}
};
Symbol 122 MovieClip Frame 1
stop();
fg = _name;
Symbol 159 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 166 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 175 MovieClip Frame 1
gotoAndStop(1 + random(4));
Symbol 176 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 188 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
n = 0;
while (n < 15) {
star.duplicateMovieClip("a" + n, n);
this["a" + n].gotoAndStop(random(this["a" + n]._totalframes) + 1);
this["a" + n].sp = random(10) + 5;
this["a" + n]._x = random(600);
this["a" + n]._y = (_root.ship._y - 400) + random(800);
this["a" + n]._rotation = random(360);
this["a" + n].a = 0;
n++;
}
n = 15;
while (n < 20) {
galax.duplicateMovieClip("a" + n, n);
this["a" + n].gotoAndStop(random(this["a" + n]._totalframes) + 1);
this["a" + n].sp = 3;
this["a" + n]._x = random(10) * 100;
this["a" + n]._y = (_root.ship._y - 400) + (random(8) * 100);
this["a" + n]._rotation = random(360);
this["a" + n].a = 0;
n++;
}
n = 20;
while (n < 30) {
gasses.duplicateMovieClip("a" + n, n);
this["a" + n].gotoAndStop(random(this["a" + n]._totalframes) + 1);
this["a" + n].sp = random(14) + 6;
this["a" + n]._x = random(7) * 100;
this["a" + n]._y = (_root.ship._y - 400) + (random(8) * 100);
this["a" + n]._rotation = random(360);
this["a" + n].a = 0;
n++;
}
j = 0;
while (j < 5) {
cloud.duplicateMovieClip("b" + j, 300 + j);
this["b" + j].sp = random(20) + 10;
this["b" + j]._x = random(600);
this["b" + j]._y = 1200 + random(900);
j++;
}
g = 0;
while (g < 2) {
clud.duplicateMovieClip("bb" + g, 340 + g);
this["bb" + g]._x = random(3) * 300;
this["bb" + g]._y = 1600 + random(50);
this["bb" + g]._alpha = 50 + random(50);
this["bb" + g].sp = random(10) + 4;
g++;
}
h = 0;
while (h < 4) {
mount.duplicateMovieClip("m" + h, 750 + h);
this["m" + h].gotoAndStop(_root.area);
this["m" + h]._x = h * 350;
this["m" + h]._y = 2200;
h++;
}
u = 0;
while (u < 4) {
ground.duplicateMovieClip("g" + u, 700 + u);
this["g" + u].gotoAndStop(_root.area);
this["g" + u]._x = u * 350;
this["g" + u]._y = 2300;
u++;
}
onEnterFrame = function () {
if (_root.paused == false) {
if (_root.gfx > 1) {
if (_root.ship._y < 1200) {
n = 0;
while (n < 30) {
if (((n > 15) && (n < 20)) && (_root.gfx > 2)) {
this["a" + n]._visible = true;
} else if (((n > 15) && (n < 20)) && (_root.gfx < 3)) {
this["a" + n]._visible = false;
}
if ((n > 19) && (_root.gfx > 3)) {
this["a" + n]._visible = true;
} else if ((n > 19) && (_root.gfx < 4)) {
this["a" + n]._visible = false;
}
this["a" + n]._x = this["a" + n]._x - this["a" + n].sp;
if (this["a" + n]._x < -200) {
this["a" + n].gotoAndStop(random(this["a" + n]._totalframes) + 1);
this["a" + n]._visible = true;
if (n < 15) {
this["a" + n].sp = random(10) + 5;
this["a" + n]._x = 700 + random(100);
this["a" + n]._y = (_root.ship._y - 400) + random(800);
} else if (n < 20) {
this["a" + n].sp = 3;
this["a" + n]._x = 700 + (random(10) * 100);
this["a" + n]._y = (_root.ship._y - 400) + (random(8) * 100);
} else {
this["a" + n].sp = random(14) + 6;
this["a" + n]._x = 700 + (random(4) * 100);
this["a" + n]._y = (_root.ship._y - 400) + (random(8) * 100);
}
if (this["a" + n]._y > 1000) {
this["a" + n]._y = random(1000);
}
this["a" + n]._rotation = random(360);
this["a" + n].a = 0;
}
n++;
}
}
if (_root.ship._y > 950) {
j = 0;
while (j < 8) {
if (_root.gfx > 3) {
this["b" + j]._visible = true;
this["b" + j]._x = this["b" + j]._x - this["b" + j].sp;
this["b" + j].gotoAndStop(90 - Math.round((Math.abs(this["b" + j]._y - 1200) / 952) * 90));
if (this["b" + j]._x < -500) {
this["b" + j].sp = random(20) + 10;
this["b" + j]._x = 600 + random(200);
this["b" + j]._y = 1200 + random(850);
}
} else {
this["b" + j]._visible = false;
}
j++;
}
}
if ((_root.ship._y > 1400) && (_root.ship._y < 2100)) {
g = 0;
while (g < 8) {
if (_root.gfx == 5) {
this["bb" + g]._visible = true;
this["bb" + g]._x = this["bb" + g]._x - this["bb" + g].sp;
if (this["bb" + g]._x < -1000) {
this["bb" + g]._x = 600 + (random(3) * 300);
this["bb" + g]._y = 1600 + random(50);
this["bb" + g]._alpha = 50 + random(50);
this["bb" + g].sp = random(10) + 4;
}
} else {
this["bb" + g]._visible = false;
}
g++;
}
}
if (_root.ship._y > 1500) {
h = 0;
while (h < 4) {
if (_root.gfx > 2) {
this["m" + h]._visible = true;
this["m" + h]._x = this["m" + h]._x - 10;
if (this["m" + h]._x < -300) {
this["m" + h].gotoAndStop(random(10));
this["m" + h].gotoAndStop(_root.area);
this["m" + h]._x = 1100;
}
} else {
this["m" + h]._visible = false;
}
h++;
}
u = 0;
while (u < 4) {
this["g" + u]._visible = true;
this["g" + u]._x = this["g" + u]._x - 10;
if (this["g" + u]._x < -300) {
this["g" + u].gotoAndStop(random(10));
this["g" + u].gotoAndStop(_root.area);
this["g" + u]._x = 1100;
}
u++;
}
}
} else {
kz = 0;
while (kz < 33) {
this["g" + kz]._visible = false;
this["m" + kz]._visible = false;
this["bb" + kz]._visible = false;
this["b" + kz]._visible = false;
this["a" + kz]._visible = false;
kz++;
}
}
}
};
Symbol 264 MovieClip Frame 10
stop();
Symbol 275 MovieClip Frame 1
if (_name != "exx") {
if ((_root.shootFX == 1) || (_root.died == 1)) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("enex");
lsou.start();
}
}
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
_x = (_x - 25);
};
Symbol 275 MovieClip Frame 30
stop();
this.removeMovieClip();
Symbol 276 MovieClip Frame 1
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("");
lsou.attachSound("exp1");
lsou.setVolume(_root.FXV);
stop();
hp = 300;
onEnterFrame = function () {
g = 0;
while (g < 10) {
this["h" + g]._alpha = 0;
xs = (this["h" + g]._x + _x) + _parent._x;
ys = (this["h" + g]._y + _y) + _parent._y;
if (_name == "blue") {
if (_root.blueAttack.hitTest(xs, ys, true)) {
hp = hp - (_root.bluePow * _root.multi);
if (_root.shootFX == 1) {
lsou.start();
}
fla.play();
}
} else if (_name == "red") {
if (_root.redAttack.hitTest(xs, ys, true)) {
hp = hp - (_root.redPow * _root.multi);
if (_root.shootFX == 1) {
lsou.start();
}
fla.play();
}
} else if (_name == "green") {
if (_root.greenAttack.hitTest(xs, ys, true)) {
hp = hp - (_root.greenPow * _root.multi);
if (_root.shootFX == 1) {
lsou.start();
}
fla.play();
}
}
g++;
}
if ((hp < 1) && (_currentframe == 1)) {
_parent.doom++;
gotoAndStop (1);
}
};
Symbol 278 MovieClip Frame 1
if (_name != "exx") {
if ((_root.shootFX == 1) || (_root.died == 1)) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("enex");
lsou.start();
}
}
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
};
Symbol 278 MovieClip Frame 30
gotoAndPlay(31 + random(30));
Symbol 279 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser2");
}
if (shot == undefined) {
shot = random(60);
}
xsc = 1;
rad = 57.2957795130823;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_root.boss == true)) {
x1 = _parent._x + _x;
y1 = _parent._y + _y;
xx = x1 - _root.ship._x;
yy = y1 - _root.ship._y;
if ((Math.atan2(yy, xx) * rad) > 90) {
if ((_xscale * xsc) < 0) {
_xscale = (_xscale * -1);
}
_rotation = (Math.atan2(yy, xx) * rad);
} else {
if ((_xscale * xsc) > 0) {
_xscale = (_xscale * -1);
}
_rotation = (180 + (Math.atan2(yy, xx) * rad));
}
rot = Math.atan2(yy, xx) * rad;
xs = Math.cos(rot / rad) * 80;
ys = Math.sin(rot / rad) * 80;
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:x1 - xs, _y:y1 - ys, frame:3, _rotation:rot, power:_parent.power});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 10 + random(20);
}
shot--;
}
};
Symbol 291 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser2");
}
if (shot == undefined) {
shot = random(60);
}
gunt = 0;
rad = 57.2957795130823;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_root.boss == true)) {
if (gunt == 0) {
tx = -18;
} else {
tx = 18;
}
x1 = _parent._x + _x;
y1 = _parent._y + _y;
xx = x1 - _root.ship._x;
yy = y1 - _root.ship._y;
_rotation = (Math.atan2(yy, xx) * rad);
rot = _rotation;
xs = Math.cos(rot / rad) * 50;
ys = Math.sin(rot / rad) * 50;
xs2 = Math.cos((rot - 90) / rad) * tx;
ys2 = Math.sin((rot - 90) / rad) * tx;
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:(x1 - xs) - xs2, _y:(y1 - ys) - ys2, frame:3, _rotation:_rotation, power:_parent.power});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 10 + random(20);
this["gun" + gunt].play();
gunt++;
if (gunt > 1) {
gunt = 0;
}
}
shot--;
}
};
Symbol 293 MovieClip Frame 1
function mode1() {
_y = (_y + ((_root.ship._y - _y) / 28));
_x = (_x + 4);
if (_x > 1200) {
mod = 2;
}
}
function mode2() {
_y = (_y + (((_root.ship._y - _y) - 200) / 28));
_x = (_x - 4);
if (_x < 50) {
mod = 3;
}
}
function mode3() {
_y = (_y + 8);
_x = (_x + 2);
if ((_y > 2000) || (_x > 550)) {
mod = 4;
}
}
function mode4() {
_y = (_y - 6);
_x = (_x-1);
if (_x < 550) {
_x = -600;
_y = _root.ship._y;
mod = 1;
}
}
function mode5() {
if (_rotation < 66) {
_rotation = (_rotation+1);
}
_x = (_x+1);
_y = (_y + 8);
if (_y > 3000) {
_root.storyTimr = true;
exx.gotoAndStop(1);
}
}
doom = 0;
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("bossin");
this.createEmptyMovieClip("msou2", 2);
lsou2 = new Sound("msou2");
lsou2.attachSound("bosslo");
lsou.onSoundComplete = function () {
lsou2.start();
};
lsou2.onSoundComplete = function () {
lsou2.start();
};
mod = 0;
hp = 500;
power = 10 + (8 * _root.level);
onEnterFrame = function () {
if (_root.playingM == 0) {
lsou.setVolume(0);
lsou2.setVolume(0);
} else {
lsou.setVolume(100);
lsou2.setVolume(100);
}
if ((_root.paused == false) && (_root.boss == true)) {
if (mod == 0) {
_x = -550;
_y = _root.ship._y;
lsou.start();
mod = 1;
}
if (mod == 1) {
mode1();
} else if (mod == 2) {
mode2();
} else if (mod == 3) {
mode3();
} else if (mod == 4) {
mode4();
} else if (mod == 5) {
mode5();
}
while ((_y > 2000) && (mod != 5)) {
_y = (_y-1);
}
if ((doom >= 3) && (mod != 5)) {
exx.gotoAndStop(2);
mod = 5;
}
}
};
Symbol 302 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 307 MovieClip Frame 1
gotoAndStop(1 + random(2));
Symbol 316 MovieClip Frame 1
gotoAndStop(1 + random(4));
Symbol 321 MovieClip Frame 1
j = 0;
while (j < 3) {
cloud.duplicateMovieClip("b" + j, 300 + j);
this["b" + j].sp = random(20) + 10;
this["b" + j]._x = random(6) * 100;
this["b" + j]._y = 1200 + random(950);
j++;
}
g = 0;
while (g < 2) {
clud.duplicateMovieClip("bb" + g, 340 + g);
this["bb" + g]._x = random(3) * 300;
this["bb" + g]._y = 1600 + random(20);
this["bb" + g]._alpha = 50 + random(50);
this["bb" + g].sp = random(10) + 4;
g++;
}
t = 0;
while (t < 4) {
frontG.duplicateMovieClip("bg" + t, 600 + t);
this["bg" + t].gotoAndStop(_root.area);
this["bg" + t]._x = random(4) * 400;
this["bg" + t]._y = 2300;
t++;
}
onEnterFrame = function () {
if (_root.paused == false) {
if (_root.gfx == 5) {
if (_root.ship._y < 1000) {
wizz._x = wizz._x - 60;
if (wizz._x < -500) {
wizz._x = 2000 + random(1000);
wizz._y = random(800);
}
}
if (_root.ship._y > 950) {
j = 0;
while (j < 4) {
this["b" + j]._visible = true;
this["b" + j]._x = this["b" + j]._x - this["b" + j].sp;
this["b" + j].gotoAndStop(90 - Math.round((Math.abs(this["b" + j]._y - 1200) / 952) * 90));
if (this["b" + j]._x < -500) {
this["b" + j].sp = random(20) + 10;
this["b" + j]._x = 600 + random(200);
this["b" + j]._y = 1200 + random(950);
}
j++;
}
}
if ((_root.ship._y > 1400) && (_root.ship._y < 2100)) {
g = 0;
while (g < 3) {
this["bb" + g]._visible = true;
this["bb" + g]._x = this["bb" + g]._x - this["bb" + g].sp;
if (this["bb" + g]._x < -1000) {
this["bb" + g]._x = 600 + (random(3) * 300);
this["bb" + g]._y = 1600 + random(50);
this["bb" + g]._alpha = 50 + random(50);
this["bb" + g].sp = random(10) + 4;
}
g++;
}
}
if (_root.ship._y > 1600) {
t = 0;
while (t < 4) {
this["bg" + t]._visible = true;
this["bg" + t]._x = this["bg" + t]._x - 30;
if (this["bg" + t]._x < -300) {
this["bg" + t].gotoAndStop(random(10));
this["bg" + t].gotoAndStop(_root.area);
this["bg" + t]._x = 1000 + (random(50) * 50);
this["bg" + t]._y = 2300 - random(80);
}
t++;
}
}
} else {
kz = 0;
while (kz < 5) {
this["bg" + kz]._visible = false;
this["bb" + kz]._visible = false;
this["b" + kz]._visible = false;
wizz._visible = false;
kz++;
}
}
}
};
Symbol 324 MovieClip Frame 1
if ((_root.shootFX == 1) && (_name != "bull")) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("laser1");
lsou.setVolume(_root.FXV);
lsou.start();
}
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_name != "bull") && (_root.paused == false)) {
_x = (_x + (Math.sin((_rotation + 90) / rad) * 20));
_y = (_y - (Math.cos((_rotation + 90) / rad) * 20));
if ((((_root.enemies.hold.hitTest(_x, _y, true) || (_x < -5)) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
if (_root.boss == true) {
if (_root.bossguy.blue.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.bossguy.red.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.bossguy.green.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
};
Symbol 325 MovieClip Frame 1
function mode1() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10 / _root.blueNum;
}
shot--;
}
function mode2() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y - 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 5;
}
shot--;
}
function mode3() {
if (shot < 1) {
a = -1;
while (a < 2) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + (10 * a);
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + (5 * a)) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
a++;
}
shot = 5;
}
shot--;
}
function mode4() {
if (shot < 1) {
a = -2;
while (a < 3) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + (10 * a);
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + (5 * a)) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
a++;
}
shot = 5;
}
shot--;
}
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 1) && (_root.paused == false)) {
if (_root.blueNum < 3) {
mode1();
}
if (_root.blueNum == 3) {
mode2();
}
if ((_root.blueNum == 4) || (_root.blueNum > 5)) {
mode3();
}
if (_root.blueNum == 5) {
mode4();
}
}
};
Symbol 332 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 333 MovieClip Frame 1
if ((_root.shootFX == 1) && (_name != "bull")) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("");
lsou.attachSound("misslaunch");
lsou.setVolume(_root.FXV);
lsou.start();
this.createEmptyMovieClip("msou2", 1);
lsou2 = new Sound("msou2");
lsou2.attachSound("exp1");
}
bang = false;
stop();
speed = 1;
rad = 57.2957795130823;
onEnterFrame = function () {
lsou2.setVolume(_root.FXV);
if ((_name != "bull") && (_root.paused == false)) {
if (_currentframe == 1) {
_x = (_x + (Math.sin((_rotation + 90) / rad) * speed));
_y = (_y - (Math.cos((_rotation + 90) / rad) * speed));
speed = speed + 2;
if ((((_x < -5) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
if (_root.boss == true) {
if (_root.bossguy.blue.hitTest(_x, _y, true)) {
bang = true;
}
if (_root.bossguy.red.hitTest(_x, _y, true)) {
bang = true;
}
if (_root.bossguy.green.hitTest(_x, _y, true)) {
bang = true;
}
}
if (_root.enemies.hold.hitTest(_x, _y, true) || (bang == true)) {
if (_root.shootFX == 1) {
lsou2.start();
}
nextFrame();
}
} else {
_x = (_x - 15);
}
}
};
Symbol 334 MovieClip Frame 1
function mode1() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10;
}
shot--;
}
function mode2() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation - 3;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + 3;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = (_root.ship._y + 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10;
}
shot--;
}
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 1) && (_root.paused == false)) {
if (_root.blueNum == 6) {
mode1();
}
if (_root.blueNum > 6) {
mode2();
}
}
};
Symbol 338 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("laser2");
}
rad = 57.2957795130823;
onEnterFrame = function () {
_rotation = _root.ship._rotation;
if (_root.weaponOn == 1) {
if (_currentframe == 1) {
gotoAndStop (2);
}
} else if (_currentframe == 2) {
gotoAndStop (1);
}
if (_root.blueNum == 9) {
_yscale = 100;
} else {
_yscale = 200;
}
};
Symbol 338 MovieClip Frame 2
if (_root.shootFX == 1) {
lsou.setVolume(_root.FXV);
lsou.start();
}
Symbol 341 MovieClip Frame 1
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_name != "bull") && (_root.paused == false)) {
_yscale = (_yscale + 5);
_xscale = (_xscale+1);
_x = (_x + (Math.sin((_rotation + 90) / rad) * 15));
_y = (_y - (Math.cos((_rotation + 90) / rad) * 15));
if ((((_x < -5) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
}
};
Symbol 342 MovieClip Frame 1
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 1) && (_root.paused == false)) {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + 15) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 20;
}
shot--;
}
};
Symbol 343 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 1
if ((_root.shootFX == 1) && (_name != "bull")) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("laser1");
lsou.setVolume(_root.FXV);
lsou.start();
}
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_name != "bull") && (_root.paused == false)) {
_x = (_x + (Math.sin((_rotation + 90) / rad) * 20));
_y = (_y - (Math.cos((_rotation + 90) / rad) * 20));
if ((((_root.enemies.hold.hitTest(_x, _y, true) || (_x < -5)) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
if (_root.boss == true) {
if (_root.bossguy.blue.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.bossguy.red.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.bossguy.green.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
};
Symbol 347 MovieClip Frame 1
function mode1() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10 / _root.blueNum;
}
shot--;
}
function mode2() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y - 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 5;
}
shot--;
}
function mode3() {
if (shot < 1) {
a = -1;
while (a < 2) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + (10 * a);
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + (5 * a)) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
a++;
}
shot = 5;
}
shot--;
}
function mode4() {
if (shot < 1) {
a = -2;
while (a < 3) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + (10 * a);
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + (5 * a)) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
a++;
}
shot = 5;
}
shot--;
}
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 2) && (_root.paused == false)) {
if (_root.blueNum < 3) {
mode1();
}
if (_root.blueNum == 3) {
mode2();
}
if ((_root.blueNum == 4) || (_root.blueNum > 5)) {
mode3();
}
if (_root.blueNum == 5) {
mode4();
}
}
};
Symbol 354 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 355 MovieClip Frame 1
if ((_root.shootFX == 1) && (_name != "bull")) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("");
lsou.attachSound("misslaunch");
lsou.setVolume(_root.FXV);
lsou.start();
this.createEmptyMovieClip("msou2", 1);
lsou2 = new Sound("msou2");
lsou2.attachSound("exp1");
}
stop();
speed = 1;
rad = 57.2957795130823;
onEnterFrame = function () {
lsou2.setVolume(_root.FXV);
if ((_name != "bull") && (_root.paused == false)) {
if (_currentframe == 1) {
_x = (_x + (Math.sin((_rotation + 90) / rad) * speed));
_y = (_y - (Math.cos((_rotation + 90) / rad) * speed));
speed = speed + 2;
if ((((_x < -5) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
if (_root.boss == true) {
if (_root.bossguy.blue.hitTest(_x, _y, true)) {
bang = true;
}
if (_root.bossguy.red.hitTest(_x, _y, true)) {
bang = true;
}
if (_root.bossguy.green.hitTest(_x, _y, true)) {
bang = true;
}
}
if (_root.enemies.hold.hitTest(_x, _y, true) || (bang == true)) {
if (_root.shootFX == 1) {
lsou2.start();
}
nextFrame();
}
} else {
_x = (_x - 15);
}
}
};
Symbol 356 MovieClip Frame 1
function mode1() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10;
}
shot--;
}
function mode2() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation - 3;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + 3;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = (_root.ship._y + 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10;
}
shot--;
}
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 2) && (_root.paused == false)) {
if (_root.blueNum == 6) {
mode1();
}
if (_root.blueNum > 6) {
mode2();
}
}
};
Symbol 359 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("laser2");
}
rad = 57.2957795130823;
onEnterFrame = function () {
_rotation = _root.ship._rotation;
if (_root.weaponOn == 2) {
if (_currentframe == 1) {
gotoAndStop (2);
}
} else if (_currentframe == 2) {
gotoAndStop (1);
}
if (_root.blueNum == 9) {
_yscale = 100;
} else {
_yscale = 200;
}
};
Symbol 359 MovieClip Frame 2
if (_root.shootFX == 1) {
lsou.setVolume(_root.FXV);
lsou.start();
}
Symbol 360 MovieClip Frame 1
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_name != "bull") && (_root.paused == false)) {
_yscale = (_yscale + 5);
_xscale = (_xscale+1);
_x = (_x + (Math.sin((_rotation + 90) / rad) * 15));
_y = (_y - (Math.cos((_rotation + 90) / rad) * 15));
if ((((_x < -5) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
}
};
Symbol 361 MovieClip Frame 1
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 2) && (_root.paused == false)) {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + 15) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 20;
}
shot--;
}
};
Symbol 362 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
if ((_root.shootFX == 1) && (_name != "bull")) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("laser1");
lsou.setVolume(_root.FXV);
lsou.start();
}
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_name != "bull") && (_root.paused == false)) {
_x = (_x + (Math.sin((_rotation + 90) / rad) * 20));
_y = (_y - (Math.cos((_rotation + 90) / rad) * 20));
if ((((_root.enemies.hold.hitTest(_x, _y, true) || (_x < -5)) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
if (_root.boss == true) {
if (_root.bossguy.blue.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.bossguy.red.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if (_root.bossguy.green.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
};
Symbol 366 MovieClip Frame 1
function mode1() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10 / _root.blueNum;
}
shot--;
}
function mode2() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y - 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 5;
}
shot--;
}
function mode3() {
if (shot < 1) {
a = -1;
while (a < 2) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + (10 * a);
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + (5 * a)) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
a++;
}
shot = 5;
}
shot--;
}
function mode4() {
if (shot < 1) {
a = -2;
while (a < 3) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + (10 * a);
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + (5 * a)) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
a++;
}
shot = 5;
}
shot--;
}
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 3) && (_root.paused == false)) {
if (_root.blueNum < 3) {
mode1();
}
if (_root.blueNum == 3) {
mode2();
}
if ((_root.blueNum == 4) || (_root.blueNum > 5)) {
mode3();
}
if (_root.blueNum == 5) {
mode4();
}
}
};
Symbol 373 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 374 MovieClip Frame 1
if ((_root.shootFX == 1) && (_name != "bull")) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("");
lsou.attachSound("misslaunch");
lsou.setVolume(_root.FXV);
lsou.start();
this.createEmptyMovieClip("msou2", 1);
lsou2 = new Sound("msou2");
lsou2.attachSound("exp1");
}
stop();
speed = 1;
rad = 57.2957795130823;
onEnterFrame = function () {
lsou2.setVolume(_root.FXV);
if ((_name != "bull") && (_root.paused == false)) {
if (_currentframe == 1) {
_x = (_x + (Math.sin((_rotation + 90) / rad) * speed));
_y = (_y - (Math.cos((_rotation + 90) / rad) * speed));
speed = speed + 2;
if ((((_x < -5) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
if (_root.boss == true) {
if (_root.bossguy.blue.hitTest(_x, _y, true)) {
bang = true;
}
if (_root.bossguy.red.hitTest(_x, _y, true)) {
bang = true;
}
if (_root.bossguy.green.hitTest(_x, _y, true)) {
bang = true;
}
}
if (_root.enemies.hold.hitTest(_x, _y, true) || (bang == true)) {
if (_root.shootFX == 1) {
lsou2.start();
}
nextFrame();
}
} else {
_x = (_x - 15);
}
}
};
Symbol 375 MovieClip Frame 1
function mode1() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10;
}
shot--;
}
function mode2() {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation - 3;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = _root.ship._y - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation + 3;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 40);
this["bb" + num]._y = (_root.ship._y + 10) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 10;
}
shot--;
}
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 3) && (_root.paused == false)) {
if (_root.blueNum == 6) {
mode1();
}
if (_root.blueNum > 6) {
mode2();
}
}
};
Symbol 378 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("laser2");
}
rad = 57.2957795130823;
onEnterFrame = function () {
_rotation = _root.ship._rotation;
if (_root.weaponOn == 3) {
if (_currentframe == 1) {
gotoAndStop (2);
}
} else if (_currentframe == 2) {
gotoAndStop (1);
}
if (_root.blueNum == 9) {
_yscale = 100;
} else {
_yscale = 200;
}
};
Symbol 378 MovieClip Frame 2
if (_root.shootFX == 1) {
lsou.setVolume(_root.FXV);
lsou.start();
}
Symbol 380 MovieClip Frame 1
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_name != "bull") && (_root.paused == false)) {
_yscale = (_yscale + 5);
_xscale = (_xscale+1);
_x = (_x + (Math.sin((_rotation + 90) / rad) * 15));
_y = (_y - (Math.cos((_rotation + 90) / rad) * 15));
if ((((_x < -5) || (_y > 2250)) || (_y < -50)) || (_x > 605)) {
this.removeMovieClip();
}
}
};
Symbol 381 MovieClip Frame 1
shot = 0;
num = 0;
bull._x = -1000;
rad = 57.2957795130823;
onEnterFrame = function () {
if ((_root.weaponOn == 3) && (_root.paused == false)) {
if (shot < 1) {
bull.duplicateMovieClip("bb" + num, num);
this["bb" + num]._rotation = _root.ship._rotation;
this["bb" + num]._x = _root.ship._x + (Math.sin((this["bb" + num]._rotation + 90) / rad) * 20);
this["bb" + num]._y = (_root.ship._y + 15) - (Math.cos((this["bb" + num]._rotation + 90) / rad) * 40);
num++;
if (num > 30) {
num = 0;
}
shot = 20;
}
shot--;
}
};
Symbol 382 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
Symbol 445 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.comPic);
};
Symbol 467 Button
on (release) {
_parent.play();
}
Symbol 468 Button
on (release) {
gotoAndStop (3);
}
Symbol 469 Button
on (release) {
gotoAndStop (2);
}
Symbol 470 Button
on (release) {
_alpha = 100;
ex.gotoAndStop(2);
}
Symbol 477 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 478 Button
on (release) {
_parent._alpha = 80;
prevFrame();
}
Symbol 479 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_name == "FX") {
gotoAndStop(2 - _root.shootFX);
}
if (_name == "MC") {
gotoAndStop(2 - _root.playingM);
}
};
Symbol 498 MovieClip Frame 1
onEnterFrame = function () {
if (_quality == "LOW") {
gotoAndStop (4);
} else if (_quality == "BEST") {
gotoAndStop (1);
} else if (_quality == "HIGH") {
gotoAndStop (2);
} else if (_quality == "MEDIUM") {
gotoAndStop (3);
}
};
Symbol 501 Button
on (release) {
if (_root.shootFX == 0) {
_root.shootFX = 1;
} else {
_root.shootFX = 0;
}
}
Symbol 502 Button
on (release) {
if (_root.playingM == 0) {
_root.playingM = 2;
} else {
_root.playingM = 0;
}
}
Symbol 503 Button
on (release) {
gotoAndStop (1);
}
Symbol 504 Button
on (release) {
if (_quality == "LOW") {
_quality = "BEST";
} else if (_quality == "BEST") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
}
}
Symbol 505 Button
on (release) {
_root.gfx = 1;
}
Symbol 506 Button
on (release) {
_root.gfx = 2;
}
Symbol 507 Button
on (release) {
_root.gfx = 3;
}
Symbol 508 Button
on (release) {
_root.gfx = 4;
}
Symbol 509 Button
on (release) {
_root.gfx = 5;
}
Symbol 516 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
moder = 0;
miny = 0;
maxy = 160;
speed = 5;
instanceName0 = "ex0";
instanceName1 = "ex1";
instanceName2 = "";
onEnterFrame = function () {
scroller.onPress = function () {
moder = 1;
};
scroller.onRelease = function () {
moder = 0;
};
scroller.onReleaseOutside = function () {
moder = 0;
};
uparrow.onPress = function () {
moder = 2;
};
downarrow.onPress = function () {
moder = 3;
};
uparrow.onRelease = function () {
moder = 0;
};
downarrow.onRelease = function () {
moder = 0;
};
uparrow.onReleaseOutside = function () {
moder = 0;
};
downarrow.onReleaseOutside = function () {
moder = 0;
};
if (moder == 1) {
if ((_ymouse >= 0) && (_ymouse <= 100)) {
scroller._y = _ymouse;
} else if (_ymouse < 0) {
scroller._y = 0;
} else if (_ymouse > 100) {
scroller._y = 100;
}
}
if (moder == 2) {
if (scroller._y >= 5) {
scroller._y = scroller._y - speed;
} else {
scroller._y = 0;
}
}
if (moder == 3) {
if (scroller._y <= 95) {
scroller._y = scroller._y + speed;
} else {
scroller._y = 100;
}
}
if (instanceName2 != "") {
_parent[instanceName0][instanceName1][instanceName2]._y = -(miny + ((scroller._y / 100) * (maxy - miny)));
} else if (instanceName1 != "") {
_parent[instanceName0][instanceName1]._y = -(miny + ((scroller._y / 100) * (maxy - miny)));
} else {
_parent[instanceName0]._y = -(miny + ((scroller._y / 100) * (maxy - miny)));
}
};
Symbol 612 Button
on (release) {
_parent._parent.itemNum = 0;
}
Symbol 613 Button
on (release) {
_parent._parent.itemNum = 1;
}
Symbol 614 Button
on (release) {
_parent._parent.itemNum = 2;
}
Symbol 615 Button
on (release) {
_parent._parent.itemNum = 3;
}
Symbol 616 Button
on (release) {
_parent._parent.itemNum = 4;
}
Symbol 617 Button
on (release) {
_parent._parent.itemNum = 5;
}
Symbol 618 Button
on (release) {
_parent._parent.itemNum = 6;
}
Symbol 619 Button
on (release) {
_parent._parent.itemNum = 7;
}
Symbol 620 Button
on (release) {
_parent._parent.itemNum = 8;
}
Symbol 621 Button
on (release) {
_parent._parent.itemNum = 9;
}
Symbol 622 Button
on (release) {
_parent._parent.itemNum = 10;
}
Symbol 623 Button
on (release) {
_parent._parent.itemNum = 11;
}
Symbol 624 Button
on (release) {
_parent._parent.itemNum = 12;
}
Symbol 625 Button
on (release) {
_parent._parent.itemNum = 13;
}
Symbol 626 Button
on (release) {
_parent._parent.itemNum = 14;
}
Symbol 627 Button
on (release) {
_parent._parent.itemNum = 15;
}
Symbol 628 Button
on (release) {
_parent._parent.itemNum = 16;
}
Symbol 641 Button
on (release) {
buying = true;
}
Symbol 649 MovieClip Frame 1
if (done == undefined) {
buying = false;
itemNum = 0;
cflash = 0;
item0 = ["Repair", "Repair your ship 20 damge.", 20, 1, 0, 0, 1];
item1 = ["Max Health", "Increase Maximum health by 20.", 20, 10, 0, 20];
item2 = ["Max Shield", "Increase shield power by 10.", 20, 20, 0, 8];
item3 = ["Recharge", "Increase shield recharge speed.", 10, 50, 0, 5];
item4 = ["Weapon Power", "Increase weapon damage.", 45, 45, 0, 4];
item5 = ["Increase Multi", "Increase muliplier damage on same color enemies.", 50, 100, 0, 3];
item6 = ["Speed", "Increase ship speed.", 35, 15, 0, 5];
item7 = ["Bomb", "Increase dumb bomb strength.", 50, 50, 0, 5];
item8 = ["21 O Clock", "21 O Clock Street\nStrangeClock\nJustice...\n\nBuy all clock movies for ultra bonus points", 250, 335, 0];
item9 = ["Clock from...", "The Clock from Space\nArchonPrime\nBweep", 250, 250, 0];
item10 = ["Broken", "Broken Clocks\nRenegadeClock\nLAZORZ NEEEEEEEER", 777, 1000, 0];
item11 = ["Born on...", "Born on the 15th of August\nGreyClock\njababjajbjajabjj", 150, 800, 0];
item12 = ["Molmol", "Molmol Defender\nHamburgerClock\nrawr", 800, 5, 0];
item13 = ["N", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5000, 1337, 0];
item14 = ["Red Orb", "Buy 25 red orbs", 250];
item15 = ["Blue Orb", "Buy 25 blue orbs", 250];
item16 = ["Green Orb", "Buy 25 green orbs", 250];
itemList = [item0, item1, item2, item3, item4, item5, item6, item7, item8, item9, item10, item11, item12, item13, item14, item15, item16];
done = 0;
}
onEnterFrame = function () {
if (itemNum < 8) {
nom = itemList[itemNum][0];
gen = itemList[itemNum][1];
pri = itemList[itemNum][2];
if (itemList[itemNum][4] > itemList[itemNum][5]) {
pri = "MAX";
}
if ((itemNum == 0) || (itemNum == 1)) {
gen = gen + ((("\nHP: " + _root.health) + "/") + _root.maxhealth);
}
if (itemNum == 2) {
gen = gen + ("\nMax: " + _root.maxshield);
}
} else if (itemNum < 14) {
nom = itemList[itemNum][0];
gen = itemList[itemNum][1];
pri = itemList[itemNum][2];
} else {
nom = itemList[itemNum][0];
gen = ((((((itemList[itemNum][1] + "\nYou have:") + _root.redOrbs) + "R ") + _root.blueOrbs) + "B ") + _root.greenOrbs) + "G";
pri = itemList[itemNum][2];
}
if (buying == true) {
if (_root.money >= itemList[itemNum][3]) {
if (itemNum < 8) {
if (itemList[itemNum][4] <= itemList[itemNum][5]) {
switch (itemNum) {
case 0 :
if (_root.health < _root.maxheath) {
_root.health = _root.health + 20;
} else {
_root.money = _root.money + itemList[itemNum][2];
}
itemList[itemNum][4]--;
break;
case 1 :
_root.maxhealth = _root.maxhealth + 20;
_root.health = _root.health + 20;
break;
case 2 :
_root.maxshield = _root.maxshield + 10;
break;
case 3 :
_root.shieldrec = _root.shieldrec - 3;
break;
case 4 :
_root.bluePow++;
_root.greenPow++;
_root.redPow++;
break;
case 5 :
_root.multi++;
break;
case 6 :
_root.speed = _root.speed + 2;
break;
case 7 :
_root.bombPow++;
_root.bombExpand++;
}
_root.money = _root.money - itemList[itemNum][2];
itemList[itemNum][2] = itemList[itemNum][2] + itemList[itemNum][3];
itemList[itemNum][4]++;
}
} else if (itemList[itemNum][4] == 0) {
_root.money = _root.money - itemList[itemNum][2];
itemList[itemNum][2] = "Gots!";
cflash++;
_root.score = _root.score + itemList[itemNum][3];
itemList[itemNum][4] = 1;
} else if (itemNum >= 14) {
switch (itemNum) {
case 14 :
_root.redOrbs = _root.redOrbs + 25;
break;
case 15 :
_root.blueOrbs = _root.blueOrbs + 25;
break;
case 16 :
_root.greenOrbs = _root.greenOrbs + 25;
}
_root.money = _root.money - 250;
}
}
buying = false;
}
if (cflash == 6) {
_root.score = _root.score + 50000;
cflash = 7;
}
};
Symbol 650 MovieClip Frame 1
if (_root.storyNum > 0) {
stop();
}
onEnterFrame = function () {
if ((_root.storyTime == true) && (_currentframe == 1)) {
play();
}
if ((_root.shop == true) && (_currentframe == 1)) {
gotoAndPlay ("shop");
}
};
Symbol 650 MovieClip Frame 2
_root.paused = true;
Symbol 650 MovieClip Frame 20
down = false;
_root.storyNum++;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (down == false) {
_root.storyNum++;
down = true;
}
} else {
down = false;
}
tempPic = _root.storyArray[_root.storyNum].split("|");
if ((tempPic[0] == "*") && (_currentframe == 30)) {
gotoAndStop (124);
} else {
_root.talkness = tempPic[0];
}
_root.comPic = Number(tempPic[1]);
if (_currentframe == 30) {
semi._alpha = 5 + random(20);
semi._x = (sx - 1) + random(3);
semi._y = (sy - 1) + random(3);
}
};
Symbol 650 MovieClip Frame 30
stop();
sx = semi._x;
sy = semi._y;
Symbol 650 MovieClip Frame 50
_root.paused = false;
_root.level++;
gotoAndStop (1);
Symbol 650 MovieClip Frame 69
onEnterFrame = function () {
semi._alpha = 10 + random(20);
if (psc._alpha == 100) {
semi._alpha = 0;
}
semi._x = (sx - 1) + random(3);
semi._y = (sy - 1) + random(4);
semi.gotoAndStop(psc._currentframe);
};
Symbol 650 MovieClip Frame 79
stop();
sx = semi._x;
sy = semi._y;
Symbol 650 MovieClip Frame 99
_root.paused = false;
gotoAndStop (1);
Symbol 650 MovieClip Frame 124
stop();
Symbol 650 MovieClip Frame 145
_root.paused = false;
_root.storyTime = false;
_root.shop = false;
if (d == undefined) {
d = 0;
} else {
_root.level++;
}
gotoAndStop (1);
Symbol 665 MovieClip Frame 1
stop();
Symbol 665 MovieClip Frame 15
stop();
Symbol 668 MovieClip Frame 1
point._visible = false;
Symbol 684 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("dbomb");
}
stop();
fall = 4;
exrate = _root.bombExpand;
bbp._rotation = 0;
if (_name == "planetbomb") {
_visible = false;
} else {
_visible = true;
}
onEnterFrame = function () {
if ((_root.paused == false) && (_name != "planetbomb")) {
_y = (_y + fall);
fall = fall + 0.5;
if (bbp._rotation < 90) {
bbp._rotation = bbp._rotation + 5;
}
if (_currentframe == 1) {
_x = (_x + 6);
}
if (_y > 2260) {
if (_currentframe == 1) {
lsou.start();
nextFrame();
expr.swapDepths(1);
expr._xscale = 1;
expr._yscale = 1;
}
_x = (_x - 10);
fall = 0;
expr._xscale = expr._xscale + (exrate * 3);
expr._yscale = expr._yscale + (exrate * 3);
exrate = exrate * 0.88;
if ((exrate * 3) < 5) {
expr._alpha = expr._alpha - 3;
}
}
if (expr._alpha < 10) {
this.removeMovieClip();
}
}
};
Symbol 691 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 1
cd.gotoAndStop(frame);
rad = 57.2957795130823;
onEnterFrame = function () {
if (_root._currentframe == 5) {
} else {
this.removeMovieClip();
}
if (_root.paused == false) {
if (_name != "elas") {
cd.gotoAndStop(frame);
_x = (_x + (Math.sin((_rotation - 90) / rad) * speed));
_y = (_y - (Math.cos((_rotation - 90) / rad) * speed));
if (this.hitTest(_root.ship.point)) {
if (_root.shield > 0) {
_root.shield = _root.shield - power;
}
if (_root.shield < 1) {
_root.health = _root.health - power;
_root.shield = 0;
if (_root.shieldtimer < 30) {
_root.shieldtimer = 30;
}
}
this.removeMovieClip();
}
if (((_x < -5) || (_y > 2250)) || (_y < -50)) {
this.removeMovieClip();
}
if ((_x > 605) && (boss == false)) {
this.removeMovieClip();
} else if (_x > 1000) {
this.removeMovieClip();
}
}
}
};
if (speed == undefined) {
speed = 15;
}
if (power == undefined) {
power = 4 + (1 * _root.level);
}
Symbol 693 MovieClip Frame 1
onEnterFrame = function () {
if (_root.paused == false) {
_x = (_x - 8);
_y = (_y + ((_root.ship._y - _y) / 50));
ss = _name;
if (_root.ship.hitTest(this)) {
_root.blueOrbs++;
this.removeMovieClip();
}
if (_x < -50) {
this.removeMovieClip();
}
}
};
Symbol 694 MovieClip Frame 1
onEnterFrame = function () {
if (_root.paused == false) {
_x = (_x - 8);
if (_root.ship.hitTest(this)) {
_root.redOrbs++;
this.removeMovieClip();
}
if (_x < -50) {
this.removeMovieClip();
}
}
};
Symbol 695 MovieClip Frame 1
onEnterFrame = function () {
if (_root.paused == false) {
_x = (_x - 8);
if (_root.ship.hitTest(this)) {
_root.greenOrbs++;
this.removeMovieClip();
}
if (_x < -50) {
this.removeMovieClip();
}
}
};
Symbol 699 MovieClip Frame 1
onEnterFrame = function () {
if ((_root.paused == false) && (_name != "dtank")) {
_x = (_x - 10);
if (_x < -200) {
this.removeMovieClip();
}
}
};
Symbol 708 MovieClip Frame 9
_visible = false;
stop();
this.removeMovieClip();
Symbol 712 MovieClip Frame 15
_visible = false;
stop();
this.removeMovieClip();
Symbol 713 MovieClip Frame 1
stop();
Symbol 714 MovieClip Frame 1
function style1() {
if (yd == 0) {
_y = (_y + (Math.abs(Math.sin(rr)) * 10));
}
if (yd == 1) {
_y = (_y - (Math.abs(Math.sin(rr)) * 10));
}
_x = (_x + (Math.cos(rr) * 5));
rr = rr + 0.05;
if (random(100) == 0) {
rr = rr + 0.1;
}
if (rr > 100) {
rr = 0;
}
if ((_y > 2100) || (_y > (_root.ship._y + 300))) {
if (yd == 0) {
yd = 1;
}
}
if ((_y < 0) || (_y < (_root.ship._y - 300))) {
if (yd == 1) {
yd = 0;
}
}
if (random(300) == 0) {
yd = random(2);
}
}
function style2() {
_x = (_x + ((xd - _x) / 15));
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
xd = 300 + random(300);
yd = (_root.ship._y - 300) + random(600);
rr = 60 + random(60);
}
if (yd > 2100) {
yd = 2100;
}
if ((_root.ship._y > (_y + 300)) || (_root.ship._y < (_y - 300))) {
rr = 0;
}
if (random(300) == 0) {
xd = 300 + random(300);
yd = (_root.ship._y - 300) + random(600);
}
}
function style3() {
_x = (_x + ((((_root.ship._x - _x) + 300) + xd) / 15));
_y = (_y + ((yd - _y) / 5));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 50) + random(100);
xd = -100 + random(200);
rr = 20 + random(20);
}
}
function style4() {
_x = (_x + ((xd - _x) / 15));
if (random(30) == 0) {
xd = 300 + random(300);
}
if (ydd == 0) {
_y = (_y + yd);
} else if (ydd == 1) {
_y = (_y - yd);
}
if (rr == 0) {
yd = yd + 0.2;
} else if (rr == 1) {
yd = yd - 0.2;
}
if (yd > 10) {
rr = 1;
} else if (yd < 4) {
rr = 0;
}
if (_y < 50) {
ydd = 0;
} else if (_y > 2050) {
ydd = 1;
}
if (((_root.ship._y < _y) && (_y < 1800)) && (random(5) == 0)) {
ydd = 0;
} else if (((_root.ship._y > _y) && (_y > 200)) && (random(5) == 0)) {
ydd = 1;
}
if (random(300) == 0) {
rr = random(2);
ydd = random(2);
}
}
function style5() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if (xd == 0) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (random(300) == 0) {
yd = random(2);
xd = random(2);
}
if (_y > 2100) {
yd = 1;
} else if (_y < 50) {
yd = 0;
}
if ((_x > 580) && (xd == 0)) {
xd = 1;
} else if ((_x < 320) && (xd == 1)) {
xd = 0;
}
}
function style6() {
_x = (_x + ((xd - _x) / 15));
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
xd = 300 + random(300);
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
rr = 60 + random(60);
}
if (yd > 2100) {
yd = (_root.ship._y - 100) - random(300);
}
if ((_root.ship._y - _y) < 50) {
rr--;
}
if (random(300) == 0) {
xd = 300 + random(300);
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
}
}
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser1");
}
stop();
if (style == undefined) {
style = 1 + random(6);
}
rip._visible = false;
rr = 0;
xx = 0;
yy = 0;
xd = 0;
xdd = 0;
yd = 0;
ydd = 0;
shot = random(60);
hp = (14 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_name != "spamShipR")) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
} else if (style == 3) {
style3();
} else if (style == 4) {
style4();
} else if (style == 5) {
style5();
} else if (style == 6) {
style6();
}
while (_x < 300) {
_x = (_x+1);
mov = 0;
}
while (_x > 600) {
_x = (_x-1);
mov = 1;
}
if ((mov == 0) && (_x < 450)) {
_x = (_x+1);
}
if ((mov == 1) && (_x > 450)) {
_x = (_x-1);
}
z = 0;
while (z < 7) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.redPow * _root.multi);
if (hitting < 1) {
hitting = 3;
} else {
hitting++;
}
}
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.greenPow / 4);
}
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.bluePow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(30);
this["rr" + rnum]._y = -15 + random(30);
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:_x, _y:_y, frame:1});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 30 + random(30);
}
shot--;
if (hp < 1) {
_parent._parent.rorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x, _y:_y});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 25;
_root.money = _root.money + 5;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 716 MovieClip Frame 1
function style1() {
if (yd == 0) {
_y = (_y + (Math.abs(Math.sin(rr)) * 10));
}
if (yd == 1) {
_y = (_y - (Math.abs(Math.sin(rr)) * 10));
}
_x = (_x + (Math.cos(rr) * 5));
rr = rr + 0.05;
if (random(100) == 0) {
rr = rr + 0.1;
}
if (rr > 100) {
rr = 0;
}
if ((_y > 2100) || (_y > (_root.ship._y + 300))) {
if (yd == 0) {
yd = 1;
}
}
if ((_y < 0) || (_y < (_root.ship._y - 300))) {
if (yd == 1) {
yd = 0;
}
}
if (random(300) == 0) {
yd = random(2);
}
}
function style2() {
_x = (_x + ((xd - _x) / 15));
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
xd = 300 + random(300);
yd = (_root.ship._y - 300) + random(600);
rr = 60 + random(60);
}
if (yd > 2100) {
yd = 2100;
}
if ((_root.ship._y > (_y + 300)) || (_root.ship._y < (_y - 300))) {
rr = 0;
}
if (random(300) == 0) {
xd = 300 + random(300);
yd = (_root.ship._y - 300) + random(600);
}
}
function style3() {
_x = (_x + ((((_root.ship._x - _x) + 300) + xd) / 15));
_y = (_y + ((yd - _y) / 5));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 50) + random(100);
xd = -100 + random(200);
rr = 20 + random(20);
}
}
function style4() {
_x = (_x + ((xd - _x) / 15));
if (random(30) == 0) {
xd = 300 + random(300);
}
if (ydd == 0) {
_y = (_y + yd);
} else if (ydd == 1) {
_y = (_y - yd);
}
if (rr == 0) {
yd = yd + 0.2;
} else if (rr == 1) {
yd = yd - 0.2;
}
if (yd > 10) {
rr = 1;
} else if (yd < 4) {
rr = 0;
}
if (_y < 50) {
ydd = 0;
} else if (_y > 2050) {
ydd = 1;
}
if (((_root.ship._y < _y) && (_y < 1800)) && (random(5) == 0)) {
ydd = 0;
} else if (((_root.ship._y > _y) && (_y > 200)) && (random(5) == 0)) {
ydd = 1;
}
if (random(300) == 0) {
rr = random(2);
ydd = random(2);
}
}
function style5() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if (xd == 0) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (random(300) == 0) {
yd = random(2);
xd = random(2);
}
if (_y > 2100) {
yd = 1;
} else if (_y < 50) {
yd = 0;
}
if ((_x > 580) && (xd == 0)) {
xd = 1;
} else if ((_x < 320) && (xd == 1)) {
xd = 0;
}
}
function style6() {
_x = (_x + ((xd - _x) / 15));
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
xd = 300 + random(300);
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
rr = 60 + random(60);
}
if (yd > 2100) {
yd = (_root.ship._y - 100) - random(300);
}
if ((_root.ship._y - _y) < 50) {
rr--;
}
if (random(300) == 0) {
xd = 300 + random(300);
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
}
}
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser1");
}
stop();
if (style == undefined) {
style = 1 + random(6);
}
rip._visible = false;
rr = 0;
xx = 0;
yy = 0;
xd = 0;
xdd = 0;
yd = 0;
ydd = 0;
shot = random(60);
hp = (8 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_name != "spamShipG")) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
} else if (style == 3) {
style3();
} else if (style == 4) {
style4();
} else if (style == 5) {
style5();
} else if (style == 6) {
style6();
}
while (_x < 300) {
_x = (_x+1);
mov = 0;
}
while (_x > 600) {
_x = (_x-1);
mov = 1;
}
if ((mov == 0) && (_x < 450)) {
_x = (_x+1);
}
if ((mov == 1) && (_x > 450)) {
_x = (_x-1);
}
z = 0;
while (z < 7) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.greenPow * _root.multi);
if (hitting < 1) {
hitting = 3;
} else {
hitting++;
}
}
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.redPow / 4);
}
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.bluePow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(30);
this["rr" + rnum]._y = -15 + random(30);
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:_x, _y:_y, frame:2, power:5 + (2 * _root.level)});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 30 + random(30);
}
shot--;
if (hp < 1) {
_parent._parent.gorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x, _y:_y});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 25;
_root.money = _root.money + 5;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 718 MovieClip Frame 1
function style1() {
if (yd == 0) {
_y = (_y + (Math.abs(Math.sin(rr)) * 10));
}
if (yd == 1) {
_y = (_y - (Math.abs(Math.sin(rr)) * 10));
}
_x = (_x + (Math.cos(rr) * 5));
rr = rr + 0.05;
if (random(100) == 0) {
rr = rr + 0.1;
}
if (rr > 100) {
rr = 0;
}
if ((_y > 2100) || (_y > (_root.ship._y + 300))) {
if (yd == 0) {
yd = 1;
}
}
if ((_y < 0) || (_y < (_root.ship._y - 300))) {
if (yd == 1) {
yd = 0;
}
}
if (random(300) == 0) {
yd = random(2);
}
}
function style2() {
_x = (_x + ((xd - _x) / 15));
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
xd = 300 + random(300);
yd = (_root.ship._y - 300) + random(600);
rr = 60 + random(60);
}
if (yd > 2100) {
yd = 2100;
}
if ((_root.ship._y > (_y + 300)) || (_root.ship._y < (_y - 300))) {
rr = 0;
}
if (random(300) == 0) {
xd = 300 + random(300);
yd = (_root.ship._y - 300) + random(600);
}
}
function style3() {
_x = (_x + ((((_root.ship._x - _x) + 300) + xd) / 15));
_y = (_y + ((yd - _y) / 5));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 50) + random(100);
xd = -100 + random(200);
rr = 20 + random(20);
}
}
function style4() {
_x = (_x + ((xd - _x) / 15));
if (random(30) == 0) {
xd = 300 + random(300);
}
if (ydd == 0) {
_y = (_y + yd);
} else if (ydd == 1) {
_y = (_y - yd);
}
if (rr == 0) {
yd = yd + 0.2;
} else if (rr == 1) {
yd = yd - 0.2;
}
if (yd > 10) {
rr = 1;
} else if (yd < 4) {
rr = 0;
}
if (_y < 50) {
ydd = 0;
} else if (_y > 2050) {
ydd = 1;
}
if (((_root.ship._y < _y) && (_y < 1800)) && (random(5) == 0)) {
ydd = 0;
} else if (((_root.ship._y > _y) && (_y > 200)) && (random(5) == 0)) {
ydd = 1;
}
if (random(300) == 0) {
rr = random(2);
ydd = random(2);
}
}
function style5() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if (xd == 0) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (random(300) == 0) {
yd = random(2);
xd = random(2);
}
if (_y > 2100) {
yd = 1;
} else if (_y < 50) {
yd = 0;
}
if ((_x > 580) && (xd == 0)) {
xd = 1;
} else if ((_x < 320) && (xd == 1)) {
xd = 0;
}
}
function style6() {
_x = (_x + ((xd - _x) / 15));
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
xd = 300 + random(300);
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
rr = 60 + random(60);
}
if (yd > 2100) {
yd = (_root.ship._y - 100) - random(300);
}
if ((_root.ship._y - _y) < 50) {
rr--;
}
if (random(300) == 0) {
xd = 300 + random(300);
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
}
}
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser1");
}
stop();
if (style == undefined) {
style = 1 + random(6);
}
rip._visible = false;
rr = 0;
xx = 0;
yy = 0;
xd = 0;
xdd = 0;
yd = 0;
ydd = 0;
shot = random(60);
hp = (10 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_name != "spamShip")) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
} else if (style == 3) {
style3();
} else if (style == 4) {
style4();
} else if (style == 5) {
style5();
} else if (style == 6) {
style6();
}
while (_x < 300) {
_x = (_x+1);
mov = 0;
}
while (_x > 600) {
_x = (_x-1);
mov = 1;
}
if ((mov == 0) && (_x < 450)) {
_x = (_x+1);
}
if ((mov == 1) && (_x > 450)) {
_x = (_x-1);
}
z = 0;
while (z < 7) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.bluePow * _root.multi);
if (hitting < 1) {
hitting = 3;
} else {
hitting++;
}
}
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.redPow / 4);
}
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.greenPow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(30);
this["rr" + rnum]._y = -15 + random(30);
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:_x, _y:_y, frame:3});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 30 + random(30);
}
shot--;
if (hp < 1) {
_parent._parent.borb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x, _y:_y});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 25;
_root.money = _root.money + 5;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 723 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser2");
}
if (shot == undefined) {
shot = random(60);
}
rad = 57.2957795130823;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if (_root.paused == false) {
x1 = _parent._x + _x;
y1 = _parent._y + _y;
xx = x1 - _root.ship._x;
yy = y1 - _root.ship._y;
_rotation = (Math.atan2(yy, xx) * rad);
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:x1, _y:y1, frame:_parent.frame, _rotation:_parent.power});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 20 + random(40);
}
shot--;
}
};
Symbol 724 MovieClip Frame 1
function style1() {
_y = (_y + yd);
if ((_root.ship._y > (_y + 100)) && (yd < 10)) {
yd++;
if (yd < 0) {
yd++;
}
}
if ((_root.ship._y < (_y - 100)) && (yd > -10)) {
yd--;
if (yd > 0) {
yd--;
}
}
if (mov == 0) {
_x = (_x - 4);
}
if (mov == 1) {
_x = (_x + 4);
}
if (_x < 350) {
mov = 1;
}
if (_x > 550) {
mov = 0;
}
}
function style2() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if ((_root.ship._y > (_y + 400)) || (_y < 0)) {
yd = 0;
}
if ((_root.ship._y < (_y - 400)) || (_y > 2100)) {
yd = 1;
}
if (mov == 0) {
_x = (_x - 4);
}
if (mov == 1) {
_x = (_x + 4);
}
if (_x < 350) {
mov = 1;
}
if (_x > 550) {
mov = 0;
}
}
if (style == undefined) {
style = 2 + random(2);
}
yd = random(10);
mov = random(2);
hp = (25 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
frame = 3;
power = 6 + (3 * _root.level);
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
if ((_root.paused == false) && (_name != "spamUFO")) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
}
z = 0;
while (z < 10) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.bluePow * _root.multi);
if (hitting < 1) {
hitting = 9;
} else {
hitting++;
}
}
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.redPow / 4);
}
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.greenPow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(160) - 80;
this["rr" + rnum]._y = random(60) - 30;
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (hp < 1) {
a = 0;
while (a < 5) {
_parent._parent.borb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:(_x - 50) + random(100), _y:(_y - 20) + random(40)});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
a++;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x - 40, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x + 40, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 50;
_root.money = _root.money + 15;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 727 MovieClip Frame 1
function style1() {
_y = (_y + yd);
if ((_root.ship._y > (_y + 100)) && (yd < 10)) {
yd++;
if (yd < 0) {
yd++;
}
}
if ((_root.ship._y < (_y - 100)) && (yd > -10)) {
yd--;
if (yd > 0) {
yd--;
}
}
if (mov == 0) {
_x = (_x - 4);
}
if (mov == 1) {
_x = (_x + 4);
}
if (_x < 350) {
mov = 1;
}
if (_x > 550) {
mov = 0;
}
}
function style2() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if ((_root.ship._y > (_y + 400)) || (_y < 0)) {
yd = 0;
}
if ((_root.ship._y < (_y - 400)) || (_y > 2100)) {
yd = 1;
}
if (mov == 0) {
_x = (_x - 4);
}
if (mov == 1) {
_x = (_x + 4);
}
if (_x < 350) {
mov = 1;
}
if (_x > 550) {
mov = 0;
}
}
if (style == undefined) {
style = 2 + random(2);
}
yd = random(10);
mov = random(2);
hp = (20 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
frame = 2;
power = 6 + (5 * _root.level);
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
if ((_root.paused == false) && (_name != "spamUFOG")) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
}
z = 0;
while (z < 10) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.greenPow * _root.multi);
if (hitting < 1) {
hitting = 9;
} else {
hitting++;
}
}
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.redPow / 4);
}
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.bluePow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(160) - 80;
this["rr" + rnum]._y = random(60) - 30;
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (hp < 1) {
a = 0;
while (a < 5) {
_parent._parent.gorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:(_x - 50) + random(100), _y:(_y - 20) + random(40)});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
a++;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x - 40, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x + 40, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 50;
_root.money = _root.money + 15;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 730 MovieClip Frame 1
function style1() {
_y = (_y + yd);
if ((_root.ship._y > (_y + 100)) && (yd < 10)) {
yd++;
if (yd < 0) {
yd++;
}
}
if ((_root.ship._y < (_y - 100)) && (yd > -10)) {
yd--;
if (yd > 0) {
yd--;
}
}
if (mov == 0) {
_x = (_x - 4);
}
if (mov == 1) {
_x = (_x + 4);
}
if (_x < 350) {
mov = 1;
}
if (_x > 550) {
mov = 0;
}
}
function style2() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if ((_root.ship._y > (_y + 400)) || (_y < 0)) {
yd = 0;
}
if ((_root.ship._y < (_y - 400)) || (_y > 2100)) {
yd = 1;
}
if (mov == 0) {
_x = (_x - 4);
}
if (mov == 1) {
_x = (_x + 4);
}
if (_x < 350) {
mov = 1;
}
if (_x > 550) {
mov = 0;
}
}
if (style == undefined) {
style = 2 + random(2);
}
yd = random(10);
mov = random(2);
hp = (32 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
frame = 1;
power = 3 + (3 * _root.level);
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
if ((_root.paused == false) && (_name != "spamUFOR")) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
}
z = 0;
while (z < 10) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.redPow * _root.multi);
if (hitting < 1) {
hitting = 9;
} else {
hitting++;
}
}
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.greenPow / 4);
}
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.bluePow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(160) - 80;
this["rr" + rnum]._y = random(60) - 30;
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (hp < 1) {
a = 0;
while (a < 5) {
_parent._parent.rorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:(_x - 50) + random(100), _y:(_y - 20) + random(40)});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
a++;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x - 40, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x + 40, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 50;
_root.money = _root.money + 15;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 738 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser2");
}
if (shot == undefined) {
shot = random(60);
}
rad = 57.2957795130823;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if (_root.paused == false) {
x1 = _parent._x + _x;
y1 = _parent._y + _y;
xx = x1 - _root.ship._x;
yy = y1 - _root.ship._y;
if ((Math.atan2(yy, xx) * rad) > 90) {
if (_xscale < 0) {
_xscale = (_xscale * -1);
}
_rotation = (Math.atan2(yy, xx) * rad);
} else {
if (_xscale > 0) {
_xscale = (_xscale * -1);
}
_rotation = (180 + (Math.atan2(yy, xx) * rad));
}
rot = Math.atan2(yy, xx) * rad;
xs = Math.cos(rot / rad) * 80;
ys = Math.sin(rot / rad) * 80;
if ((shot < 1) && (_root.ship._y > 1600)) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:x1 - xs, _y:y1 - ys, frame:3, _rotation:rot});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 10 + random(20);
}
shot--;
}
};
Symbol 739 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("tankExp");
}
hp = 20 + (_root.lavel * 3);
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if (_root.paused == false) {
_x = (_x - 4);
_y = 2260;
if (_x < -200) {
_x = (1000 + random(2000));
}
a = 0;
while (a < 11) {
if (_root["pp" + a].hitTest(hit)) {
hp--;
}
a++;
}
if (hp < 1) {
ob = 0;
while (ob < 4) {
switch (random(3)) {
case 0 :
_parent._parent.borb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x + random(80), _y:(_y - 100) - random(80)});
break;
case 1 :
_parent._parent.gorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x + random(80), _y:(_y - 100) - random(80)});
break;
case 2 :
_parent._parent.rorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x + random(80), _y:(_y - 100) - random(80)});
}
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
ob++;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x + 50, _y:_y - 100});
_parent.dtank.duplicateMovieClip("dt" + _root.exnum, 80 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 40;
_root.money = _root.money + 18;
if (_root.shootFX == 1) {
lsou.start();
}
this.removeMovieClip();
}
}
};
Symbol 746 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 747 MovieClip Frame 1
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("contain1");
}
stop();
hp = 50;
dead = false;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if (_root.paused == false) {
_x = (_x - 8);
_y = 2260;
if (_x < -200) {
_x = (1000 + random(2000));
nextFrame();
}
a = 0;
while (a < 11) {
if (_root["pp" + a].hitTest(hit)) {
hp--;
}
a++;
}
if ((hp < 1) && (dead == false)) {
ob = 0;
while (ob < 15) {
switch (random(3)) {
case 0 :
_parent._parent.borb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x + random(200), _y:(_y - 80) - random(200)});
break;
case 1 :
_parent._parent.rorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x + random(200), _y:(_y - 80) - random(200)});
break;
case 2 :
_parent._parent.gorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x + random(200), _y:(_y - 80) - random(200)});
}
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
ob++;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x + 20, _y:_y - 100});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 5;
_root.money = _root.money + 1;
if (_root.shootFX == 1) {
lsou.start();
}
con.gotoAndStop(3);
dead = true;
}
}
};
Symbol 747 MovieClip Frame 2
prevFrame();
Symbol 760 MovieClip Frame 1
function style1() {
if (yd == 0) {
_y = (_y + (Math.abs(Math.sin(rr)) * 10));
}
if (yd == 1) {
_y = (_y - (Math.abs(Math.sin(rr)) * 10));
}
rr = rr + 0.05;
if (random(100) == 0) {
rr = rr + 0.1;
}
if (rr > 100) {
rr = 0;
}
if ((_y > 2100) || (_y > (_root.ship._y + 300))) {
if (yd == 0) {
yd = 1;
}
}
if ((_y < 0) || (_y < (_root.ship._y - 300))) {
if (yd == 1) {
yd = 0;
}
}
if (random(300) == 0) {
yd = random(2);
}
}
function style2() {
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 300) + random(600);
rr = 60 + random(60);
}
if (yd > 2100) {
yd = 2100;
}
if ((_root.ship._y > (_y + 300)) || (_root.ship._y < (_y - 300))) {
rr = 0;
}
if (random(300) == 0) {
yd = (_root.ship._y - 300) + random(600);
}
}
function style3() {
_y = (_y + ((yd - _y) / 5));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 50) + random(100);
rr = 20 + random(20);
}
}
function style4() {
if (ydd == 0) {
_y = (_y + yd);
} else if (ydd == 1) {
_y = (_y - yd);
}
if (rr == 0) {
yd = yd + 0.2;
} else if (rr == 1) {
yd = yd - 0.2;
}
if (yd > 10) {
rr = 1;
} else if (yd < 4) {
rr = 0;
}
if (_y < 50) {
ydd = 0;
} else if (_y > 2050) {
ydd = 1;
}
if (random(300) == 0) {
rr = random(2);
ydd = random(2);
}
}
function style5() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if (random(300) == 0) {
yd = random(2);
}
if (_y > 2100) {
yd = 1;
} else if (_y < 50) {
yd = 0;
}
}
function style6() {
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
rr = 60 + random(60);
}
if (yd > 2100) {
yd = (_root.ship._y - 100) - random(300);
}
if ((_root.ship._y - _y) < 50) {
rr--;
}
if (random(300) == 0) {
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
}
}
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser1");
}
stop();
if (style == undefined) {
style = 1 + random(6);
}
rip._visible = false;
rr = 0;
yy = 0;
yt = 0;
yd = 0;
ydd = 0;
shot = random(60);
hp = (15 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_name != "spamFish")) {
if (mov == 0) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
} else if (style == 3) {
style3();
} else if (style == 4) {
style4();
} else if (style == 5) {
style5();
} else if (style == 6) {
style6();
}
}
_x = (_x - (1 + random(4)));
if (_x < 300) {
mov = 1;
}
if (mov == 1) {
_x = (_x-1);
_y = (_y - yt);
_rotation = (_rotation + 3);
yt = yt + 2;
}
if (mov == 1) {
if ((_y < (_root.ship._y - 400)) || (_y > (_root.ship._y + 400))) {
mov = 0;
_x = (620 + random(80));
_y = _root.ship._y;
_rotation = 0;
yt = 0;
}
}
z = 0;
while (z < 7) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.bluePow * _root.multi);
if (hitting < 1) {
hitting = 6;
} else {
hitting++;
}
}
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.redPow / 4);
}
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.greenPow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(100);
this["rr" + rnum]._y = -15 + random(30);
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:_x, _y:_y, frame:3, power:4 + (2 * _root.level), speed:10});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 30 + random(30);
}
shot--;
if (hp < 1) {
_parent._parent.borb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x, _y:_y});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 35;
_root.money = _root.money + 8;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 774 MovieClip Frame 1
function style1() {
if (yd == 0) {
_y = (_y + (Math.abs(Math.sin(rr)) * 10));
}
if (yd == 1) {
_y = (_y - (Math.abs(Math.sin(rr)) * 10));
}
rr = rr + 0.05;
if (random(100) == 0) {
rr = rr + 0.1;
}
if (rr > 100) {
rr = 0;
}
if ((_y > 2100) || (_y > (_root.ship._y + 300))) {
if (yd == 0) {
yd = 1;
}
}
if ((_y < 0) || (_y < (_root.ship._y - 300))) {
if (yd == 1) {
yd = 0;
}
}
if (random(300) == 0) {
yd = random(2);
}
}
function style2() {
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 300) + random(600);
rr = 60 + random(60);
}
if (yd > 2100) {
yd = 2100;
}
if ((_root.ship._y > (_y + 300)) || (_root.ship._y < (_y - 300))) {
rr = 0;
}
if (random(300) == 0) {
yd = (_root.ship._y - 300) + random(600);
}
}
function style3() {
_y = (_y + ((yd - _y) / 5));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 50) + random(100);
rr = 20 + random(20);
}
}
function style4() {
if (ydd == 0) {
_y = (_y + yd);
} else if (ydd == 1) {
_y = (_y - yd);
}
if (rr == 0) {
yd = yd + 0.2;
} else if (rr == 1) {
yd = yd - 0.2;
}
if (yd > 10) {
rr = 1;
} else if (yd < 4) {
rr = 0;
}
if (_y < 50) {
ydd = 0;
} else if (_y > 2050) {
ydd = 1;
}
if (random(300) == 0) {
rr = random(2);
ydd = random(2);
}
}
function style5() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if (random(300) == 0) {
yd = random(2);
}
if (_y > 2100) {
yd = 1;
} else if (_y < 50) {
yd = 0;
}
}
function style6() {
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
rr = 60 + random(60);
}
if (yd > 2100) {
yd = (_root.ship._y - 100) - random(300);
}
if ((_root.ship._y - _y) < 50) {
rr--;
}
if (random(300) == 0) {
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
}
}
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser1");
}
stop();
if (style == undefined) {
style = 1 + random(6);
}
rip._visible = false;
rr = 0;
yy = 0;
yt = 0;
yd = 0;
ydd = 0;
shot = random(60);
hp = (12 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_name != "spamFishG")) {
if (mov == 0) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
} else if (style == 3) {
style3();
} else if (style == 4) {
style4();
} else if (style == 5) {
style5();
} else if (style == 6) {
style6();
}
}
_x = (_x - (1 + random(4)));
if (_x < 300) {
mov = 1;
}
if (mov == 1) {
_x = (_x-1);
_y = (_y - yt);
_rotation = (_rotation + 3);
yt = yt + 2;
}
if (mov == 1) {
if ((_y < (_root.ship._y - 400)) || (_y > (_root.ship._y + 400))) {
mov = 0;
_x = (620 + random(80));
_y = _root.ship._y;
_rotation = 0;
yt = 0;
}
}
z = 0;
while (z < 7) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.greenPow * _root.multi);
if (hitting < 1) {
hitting = 6;
} else {
hitting++;
}
}
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.redPow / 4);
}
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.bluePow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(100);
this["rr" + rnum]._y = -15 + random(30);
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:_x, _y:_y, frame:2, power:6 + (3 * _root.level), speed:10});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 30 + random(30);
}
shot--;
if (hp < 1) {
_parent._parent.gorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x, _y:_y});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 35;
_root.money = _root.money + 8;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 787 MovieClip Frame 1
function style1() {
if (yd == 0) {
_y = (_y + (Math.abs(Math.sin(rr)) * 10));
}
if (yd == 1) {
_y = (_y - (Math.abs(Math.sin(rr)) * 10));
}
rr = rr + 0.05;
if (random(100) == 0) {
rr = rr + 0.1;
}
if (rr > 100) {
rr = 0;
}
if ((_y > 2100) || (_y > (_root.ship._y + 300))) {
if (yd == 0) {
yd = 1;
}
}
if ((_y < 0) || (_y < (_root.ship._y - 300))) {
if (yd == 1) {
yd = 0;
}
}
if (random(300) == 0) {
yd = random(2);
}
}
function style2() {
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 300) + random(600);
rr = 60 + random(60);
}
if (yd > 2100) {
yd = 2100;
}
if ((_root.ship._y > (_y + 300)) || (_root.ship._y < (_y - 300))) {
rr = 0;
}
if (random(300) == 0) {
yd = (_root.ship._y - 300) + random(600);
}
}
function style3() {
_y = (_y + ((yd - _y) / 5));
rr--;
if (rr < 1) {
yd = (_root.ship._y - 50) + random(100);
rr = 20 + random(20);
}
}
function style4() {
if (ydd == 0) {
_y = (_y + yd);
} else if (ydd == 1) {
_y = (_y - yd);
}
if (rr == 0) {
yd = yd + 0.2;
} else if (rr == 1) {
yd = yd - 0.2;
}
if (yd > 10) {
rr = 1;
} else if (yd < 4) {
rr = 0;
}
if (_y < 50) {
ydd = 0;
} else if (_y > 2050) {
ydd = 1;
}
if (random(300) == 0) {
rr = random(2);
ydd = random(2);
}
}
function style5() {
if (yd == 0) {
_y = (_y + 8);
} else {
_y = (_y - 8);
}
if (random(300) == 0) {
yd = random(2);
}
if (_y > 2100) {
yd = 1;
} else if (_y < 50) {
yd = 0;
}
}
function style6() {
_y = (_y + ((yd - _y) / 15));
rr--;
if (rr < 1) {
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
rr = 60 + random(60);
}
if (yd > 2100) {
yd = (_root.ship._y - 100) - random(300);
}
if ((_root.ship._y - _y) < 50) {
rr--;
}
if (random(300) == 0) {
if (random(2) == 0) {
yd = (_root.ship._y - 100) - random(300);
} else {
yd = (_root.ship._y + 100) + random(300);
}
}
}
if (_root.shootFX == 1) {
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("elaser1");
}
stop();
if (style == undefined) {
style = 1 + random(6);
}
rip._visible = false;
rr = 0;
yy = 0;
yt = 0;
yd = 0;
ydd = 0;
shot = random(60);
hp = (16 * Math.round(Math.pow(_root.level, 0.9) * 10)) / 10;
hitting = 0;
rnum = 0;
this.swapDepths(300 + _parent._parent.temp);
_parent._parent.temp++;
onEnterFrame = function () {
lsou.setVolume(_root.FXV);
if ((_root.paused == false) && (_name != "spamFishR")) {
if (mov == 0) {
if (style == 1) {
style1();
} else if (style == 2) {
style2();
} else if (style == 3) {
style3();
} else if (style == 4) {
style4();
} else if (style == 5) {
style5();
} else if (style == 6) {
style6();
}
}
_x = (_x - (1 + random(4)));
if (_x < 300) {
mov = 1;
}
if (mov == 1) {
_x = (_x-1);
_y = (_y - yt);
_rotation = (_rotation + 3);
yt = yt + 2;
}
if (mov == 1) {
if ((_y < (_root.ship._y - 400)) || (_y > (_root.ship._y + 400))) {
mov = 0;
_x = (620 + random(80));
_y = _root.ship._y;
_rotation = 0;
yt = 0;
}
}
z = 0;
while (z < 7) {
this["w" + z]._visible = false;
wx = this["w" + z]._x + _x;
wy = this["w" + z]._y + _y;
if (_root.redAttack.hitTest(wx, wy, true)) {
hp = hp - (_root.redPow * _root.multi);
if (hitting < 1) {
hitting = 6;
} else {
hitting++;
}
}
if (_root.greenAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.greenPow / 4);
}
if (_root.blueAttack.hitTest(wx, wy, true)) {
hp = hp - Math.floor(_root.bluePow / 4);
}
z++;
}
hitting--;
if (hitting > 0) {
rip.duplicateMovieClip("rr" + rnum, rnum);
this["rr" + rnum].gotoAndStop(1 + random(2));
this["rr" + rnum]._visible = true;
this["rr" + rnum]._x = random(100);
this["rr" + rnum]._y = -15 + random(30);
rnum++;
if (rnum > 5) {
rnum = 0;
}
}
if (shot < 1) {
_root.elas.duplicateMovieClip("ll" + _root.elasnum, _root.elasnum, {_x:_x, _y:_y, frame:1, power:4 + (2 * _root.level), speed:10});
if (_root.shootFX == 1) {
lsou.start();
}
_root.elasnum++;
shot = 30 + random(30);
}
shot--;
if (hp < 1) {
_parent._parent.rorb.duplicateMovieClip("orb" + _root.orbit, _root.orbit, {_x:_x, _y:_y});
_root.orbit++;
if (_root.orbit > 50) {
_root.orbit = 0;
}
_parent._parent.exx.duplicateMovieClip("ex" + _root.exnum, 100 + _root.exnum, {_x:_x, _y:_y});
_root.exnum++;
if (_root.exnum > 50) {
_root.exnum = 0;
}
_root.kills++;
_root.combo++;
_root.score = _root.score + 35;
_root.money = _root.money + 8;
_parent.cleared++;
this.removeMovieClip();
}
}
};
Symbol 788 MovieClip Frame 1
stop();
cleared = 0;
cc = 9;
onEnterFrame = function () {
if (_currentframe != _root.level) {
gotoAndStop(_root.level);
}
if (cleared >= cc) {
cleared = 0;
_root.blueOrbs = _root.blueOrbs + 5;
_root.redOrbs = _root.redOrbs + 5;
_root.greenOrbs = _root.greenOrbs + 5;
10 * Number(_root.level);
_root.score = _root.score + (10 * Number(_root.level));
_root.money = _root.money + (10 * Number(_root.level));
if (_root.level >= 6) {
_root.shop = true;
} else {
_root.storyTime = true;
}
}
};
Symbol 788 MovieClip Frame 2
cc = 6;
Symbol 788 MovieClip Frame 3
cc = 12;
Symbol 788 MovieClip Frame 4
cc = 12;
Symbol 788 MovieClip Frame 5
_root.boss = true;
Symbol 788 MovieClip Frame 6
cc = 9;
Symbol 788 MovieClip Frame 7
cc = 12;
Symbol 788 MovieClip Frame 8
cc = 15;
Symbol 788 MovieClip Frame 9
cc = 18;
Symbol 788 MovieClip Frame 10
cc = 18;
Symbol 788 MovieClip Frame 11
cc = 24;
Symbol 788 MovieClip Frame 12
cc = 15;
Symbol 788 MovieClip Frame 13
cc = 9;
Symbol 788 MovieClip Frame 14
cc = 21;
Symbol 788 MovieClip Frame 15
cc = 30;
Symbol 788 MovieClip Frame 16
cc = 18;
Symbol 788 MovieClip Frame 17
cc = 30;
Symbol 788 MovieClip Frame 18
cc = 30;
Symbol 788 MovieClip Frame 19
cc = 30;
Symbol 788 MovieClip Frame 20
cc = 36;
Symbol 788 MovieClip Frame 21
cc = 36;
Symbol 788 MovieClip Frame 22
_root.lives = 0;
_root.health = 0;
Symbol 789 MovieClip Frame 1
stop();
temp = 1;
_root.orbit = 0;
_root.exnum = 0;
Symbol 794 MovieClip Frame 1
_root.story = "Press SPACEBAR to advance...|1&&GoldenClock: Reporting in! (Press Spacebar) |1&&StrawberryClock: The Keyhole Klub has struck again! The Clock Crew needs you!|1&&GoldenClock: Oh boy! What have they done this time, boss?|1&&StrawberryClock: Not content with stealing all our ideas, they`ve gone one step further...|1&&StrawberryClock: ...and stolen all our clock flashes from the Containment System!|1&&GoldenClock: ...|1&&StrawberryClock: ...|1&&GoldenClock: Ajajajajaja!|1&&StrawberryClock: Aajajaja! Yeah, they don`t stand a chance. Go get `em!|1&&GoldenClock: Yes sir!|1&&StrawberryClock: Oh, one more thing.|1&&GoldenClock: Yes`m?|1&&StrawberryClock: Recon suggests that our flash masterpieces are being transported in these.|2&&StraberryClock: Destroy the armour and remember to collect the flashes.|2&&StrawberryClock: The more flashes you have on board, the more powerful your defenses.|1&&StrawberryClock: Golden... They`ve got B. They`ve got everything!|1&&GoldenClock: Great scott! It`s worse than I thought. I had better get going.|1&&StrawberryClock: GODSPEED, GOLDENCLOCK! THE CLOCK CREW DEPENDS ON YOU!&&*&&Press SPACEBAR to advance...|1&&StrawberryClock: Golden, watch out! We`ve detected more powerful crafts headed your way.|1&&StrawberryClock: Remember to attack using the appropriately coloured weapon, for max effect.|1&&GoldenClock: No probs, boss.&&*&&Press SPACEBAR to advance...|1&&StrawberryClock: Valiant defending, Golden! You`ve already retrieved some of my favourite flash masterpieces!|1&&StrawberryClock: We`ve got... Duck.swf, StrawberryClock V, StrawberryClock VI-...|1&&GoldenClock: That`s great, boss! I`m kind of busy right now. Was there something you-...|1&&StrawberryClock: Oh, yes, of course. I wanted to advise you that we have tracked a shipment of stolen flashes.|1&&StrawberryClock: A convoy of container transports is advancing at ground level.|1&&GoldenClock: What`s their defense like?|1&&StrawberryClock: They`re being escorted by tanks, but it`s nothing your P.W.N. bombs can`t handle.|1&&GoldenClock: Roger dodger.|1&&StrawberryClock: Are you calling me fat?|1&&GoldenClock: Gotta go. GoldenClock out.&&*&&Press SPACEBAR to advance...|1&&StrawberryClock: That`s another bunch of classics returned to their rightful place|1&&GoldenClock: Right on!|1&&StrawberryClock: It might not be a good time to mention this but...|1&&GoldenClock: Oh boy, what is it this time?|1&&StrawberryClock: Well, our system seems to be going crazy...|1&&GoldenClock: Well that`s the last thing I need right now. What`s the problem?|1&&StrawberryClock: Well, it`s the radar. It is indicating that a shoal of giant fish are heading towards you.|1&&GoldenClock: I`m nowhere near the water, for Pete`s sake!|1&&StrawberryClock: I know that, Golden, you`ll just have to stick it without our help for-...|1&&SIGNAL INTERRUPTED|1&&*&&Press SPACEBAR to advance...|1&&StrawberryClock: Speak to me, Golden! What`s going on up there?|1&&GoldenClock: Well it turns out your radar wasn`t going haywire.|1&&StrawberryClock: What do you mean?|1&&GoldenClock: I mean I was attacked by ... robotic... spam... space-fish.|1&&StrawberryClock: Ah, that`s wonderful news!|1&&GoldenClock: It is...?|1&&StrawberryClock: Yes, that means our system is telling me the truth! We`ve found it.|1&&GoldenClock: Found what?|1&&StrawberryClock: We`ve found B. It`s massively protected though.|1&&GoldenClock: The Keyhole Klubbers may be simple, but even they recognise the significance of B.|1&&StrawberryClock: Yes indeed. Golden, this will be your toughest challenge yet.|1&&GoldenClock: I`m ready, boss.|1&&StrawberryClock: Bring back what is rightfully ours and teach those dunces a lesson!|1&&GoldenClock: For great justice!&&*&&Press SPACEBAR to advance...!1&&GoldenClock: Golden to Command Center. Hey Strawberry, I think I`ve found something of yours.|1&&StrawberryClock: You did it! You retrieved B!|1&&GoldenClock: It was nothin`, boss. Really, I ain`t got a scratch on me!|1&&StrawberryClock: You`ve set Clock Crew history back on track, and saved countless flash masterpieces from the clutches of the Keyhole Klub!|1&&GoldenClock: We can rendezvous at the Newgrounds Portal and I`ll resubmit all these flashes for a lap of victory through the system.|1&&StrawberryClock: Perfect idea! The Crew will be waiting for you. Could you do one more thing...?|1&&GoldenClock: Sure boss, what`ll it be?|1&&StrawberryClock: Pick me up a sack of Peggymix on the way back? Molmol is hungry.|1&&GoldenClock: Jeez-.. Uh, oh sure, boss. Anything else??|1&&StrawberryClock: Yeah, some stolen clock flashes are still unaccounted for... We think they may have been sold on the black market.|1&&StrawberryClock: If you cross paths with any merchant ships, you might be able to buy the missing flashes back.|1&&GoldenClock: But they are already ours!|1&&StrawberryClock: I doubt we`ll ever see them again, unless we buy them back, Golden.|1&&GoldenClock: Understood. GoldenClock out.&&*";
Symbol 805 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = nameit.text;
ab20_09.x = _root.score;
ab20_09.c = 1576;
ab20_09.v = "TFCFIS";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=1576", "_blank");
_parent.play();
}
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 40
this.createEmptyMovieClip("msou", 1);
lsou = new Sound("msou");
lsou.attachSound("dead1");
lsou.start();
Symbol 807 MovieClip Frame 359
stop();
Symbol 807 MovieClip Frame 460
lsoud.stop();
_root.gotoAndStop(2);