Frame 1
if (_url.substring(0, 4) != "file") {
x = new LoadVars();
x.id = "nanobeast";
x.ui = _url;
x.sendAndLoad("http://track.g-bot.net/track.php", x, "POST");
}
_quality = "LOW";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Frame 2
stop();
Frame 3
var savefile = SharedObject.getLocal("nanobeast");
stop();
Frame 4
_root.difficulty = 0.5;
_root.cutscene1 = false;
_root.cutscene2 = false;
_root.cutscene3 = false;
_root.cutscene4 = false;
_root.cutscene5 = false;
if (_root.savefile.data.medal1 == undefined) {
_root.medal1 = false;
_root.savefile.data.medal1 = false;
} else {
_root.medal1 = _root.savefile.data.medal1;
}
if (_root.savefile.data.medal2 == undefined) {
_root.medal2 = false;
_root.savefile.data.medal2 = false;
} else {
_root.medal2 = _root.savefile.data.medal2;
}
if (_root.savefile.data.medal3 == undefined) {
_root.medal3 = false;
_root.savefile.data.medal3 = false;
} else {
_root.medal3 = _root.savefile.data.medal3;
}
if (_root.savefile.data.medal4 == undefined) {
_root.medal4 = false;
_root.savefile.data.medal4 = false;
} else {
_root.medal4 = _root.savefile.data.medal4;
}
if (_root.savefile.data.medal5 == undefined) {
_root.medal5 = false;
_root.savefile.data.medal5 = false;
} else {
_root.medal5 = _root.savefile.data.medal5;
}
if (_root.savefile.data.medal6 == undefined) {
_root.medal6 = false;
_root.savefile.data.medal6 = false;
} else {
_root.medal6 = _root.savefile.data.medal6;
}
if (_root.savefile.data.medal7 == undefined) {
_root.medal7 = false;
_root.savefile.data.medal7 = false;
} else {
_root.medal7 = _root.savefile.data.medal7;
}
if (_root.savefile.data.medal8 == undefined) {
_root.medal8 = false;
_root.savefile.data.medal8 = false;
} else {
_root.medal8 = _root.savefile.data.medal8;
}
if (_root.savefile.data.medal9 == undefined) {
_root.medal9 = false;
_root.savefile.data.medal9 = false;
} else {
_root.medal9 = _root.savefile.data.medal9;
}
if (_root.savefile.data.medal10 == undefined) {
_root.medal10 = false;
_root.savefile.data.medal10 = false;
} else {
_root.medal10 = _root.savefile.data.medal10;
}
if (_root.savefile.data.medal11 == undefined) {
_root.medal11 = false;
_root.savefile.data.medal11 = false;
} else {
_root.medal11 = _root.savefile.data.medal11;
}
if (_root.savefile.data.medal12 == undefined) {
_root.medal12 = false;
_root.savefile.data.medal12 = false;
} else {
_root.medal12 = _root.savefile.data.medal12;
}
if (_root.savefile.data.medal13 == undefined) {
_root.medal13 = false;
_root.savefile.data.medal13 = false;
} else {
_root.medal13 = _root.savefile.data.medal13;
}
if (_root.savefile.data.medal14 == undefined) {
_root.medal14 = false;
_root.savefile.data.medal14 = false;
} else {
_root.medal14 = _root.savefile.data.medal14;
}
if (_root.savefile.data.medal15 == undefined) {
_root.medal15 = false;
_root.savefile.data.medal15 = false;
} else {
_root.medal15 = _root.savefile.data.medal15;
}
if (_root.savefile.data.medal16 == undefined) {
_root.medal16 = false;
_root.savefile.data.medal16 = false;
} else {
_root.medal16 = _root.savefile.data.medal16;
}
if (_root.savefile.data.medal17 == undefined) {
_root.medal17 = false;
_root.savefile.data.medal17 = false;
} else {
_root.medal17 = _root.savefile.data.medal17;
}
if (_root.savefile.data.medal18 == undefined) {
_root.medal18 = false;
_root.savefile.data.medal18 = false;
} else {
_root.medal18 = _root.savefile.data.medal18;
}
if (_root.savefile.data.medal19 == undefined) {
_root.medal19 = false;
_root.savefile.data.medal19 = false;
} else {
_root.medal19 = _root.savefile.data.medal19;
}
if (_root.savefile.data.medal20 == undefined) {
_root.medal20 = false;
_root.savefile.data.medal20 = false;
} else {
_root.medal20 = _root.savefile.data.medal20;
}
if (_root.savefile.data.medal21 == undefined) {
_root.medal21 = false;
_root.savefile.data.medal21 = false;
} else {
_root.medal21 = _root.savefile.data.medal21;
}
if (_root.savefile.data.medal22 == undefined) {
_root.medal22 = false;
_root.savefile.data.medal22 = false;
} else {
_root.medal22 = _root.savefile.data.medal22;
}
if (_root.savefile.data.medal23 == undefined) {
_root.medal23 = false;
_root.savefile.data.medal23 = false;
} else {
_root.medal23 = _root.savefile.data.medal23;
}
if (_root.savefile.data.medal24 == undefined) {
_root.medal24 = false;
_root.savefile.data.medal24 = false;
} else {
_root.medal24 = _root.savefile.data.medal24;
}
if (_root.savefile.data.medal25 == undefined) {
_root.medal25 = false;
_root.savefile.data.medal25 = false;
} else {
_root.medal25 = _root.savefile.data.medal25;
}
if (_root.savefile.data.medal26 == undefined) {
_root.medal26 = false;
_root.savefile.data.medal26 = false;
} else {
_root.medal26 = _root.savefile.data.medal26;
}
if (_root.savefile.data.medal27 == undefined) {
_root.medal27 = false;
_root.savefile.data.medal27 = false;
} else {
_root.medal27 = _root.savefile.data.medal27;
}
if (_root.savefile.data.medals == undefined) {
_root.medals = 0;
_root.savefile.data.medals = 0;
} else {
_root.medals = _root.savefile.data.medals;
}
if (_root.savefile.data.multi == undefined) {
_root.multi = 1;
_root.savefile.data.multi = 1;
} else {
_root.multi = _root.savefile.data.multi;
}
_root.backgroundMusic = new Sound();
musicplaying = true;
Key.removeListener(mySoundListener);
var mySoundListener = new Object();
mySoundListener.onKeyUp = function () {
k = Key.getCode();
if (k == 77) {
if (musicplaying == true) {
_root.backgroundMusic.setVolume(0);
_root.musicicon.gotoAndPlay("stop");
musicplaying = false;
} else if (musicplaying == false) {
_root.backgroundMusic.setVolume(100);
_root.musicicon.gotoAndPlay("play");
musicplaying = true;
}
}
};
Key.addListener(mySoundListener);
Frame 6
function onEnterFrame() {
_root.bgmm._x = _root.bgmm._x + 1;
if (_root.bgmm._x > 1032) {
_root.bgmm._x = 0;
}
}
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
if (_root.difficulty == 0.5) {
_root.diffBar.easyBut.gotoAndStop(3);
_root.diffBar.normBut.gotoAndStop(1);
_root.diffBar.hardBut.gotoAndStop(1);
if (_root.multi == 1) {
_root.diffBar.diffExp.gotoAndStop("x1set");
}
if (_root.multi == 2) {
_root.diffBar.diffExp.gotoAndStop("x2set");
}
if (_root.multi == 3) {
_root.diffBar.diffExp.gotoAndStop("x3set");
}
if (_root.multi == 4) {
_root.diffBar.diffExp.gotoAndStop("x4set");
}
}
if (_root.difficulty == 1) {
_root.diffBar.easyBut.gotoAndStop(1);
_root.diffBar.normBut.gotoAndStop(3);
_root.diffBar.hardBut.gotoAndStop(1);
if (_root.multi == 1) {
_root.diffBar.diffExp.gotoAndStop("x2set");
}
if (_root.multi == 2) {
_root.diffBar.diffExp.gotoAndStop("x4set");
}
if (_root.multi == 3) {
_root.diffBar.diffExp.gotoAndStop("x6set");
}
if (_root.multi == 4) {
_root.diffBar.diffExp.gotoAndStop("x8set");
}
}
if (_root.difficulty == 2) {
_root.diffBar.easyBut.gotoAndStop(1);
_root.diffBar.normBut.gotoAndStop(1);
_root.diffBar.hardBut.gotoAndStop(3);
if (_root.multi == 1) {
_root.diffBar.diffExp.gotoAndStop("x4set");
}
if (_root.multi == 2) {
_root.diffBar.diffExp.gotoAndStop("x8set");
}
if (_root.multi == 3) {
_root.diffBar.diffExp.gotoAndStop("x12set");
}
if (_root.multi == 4) {
_root.diffBar.diffExp.gotoAndStop("x16set");
}
}
Frame 17
_root.backgroundMusic = new Sound();
_root.backgroundMusic.attachSound("menumusic");
_root.backgroundMusic.start(0, 1000);
Frame 22
function updateScore(points) {
score = score + ((points * _root.difficulty) * _root.multi);
_root.scoreText.text = score;
if ((score >= 100000) && (live1award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live1award = true;
}
if ((score >= 500000) && (live2award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live2award = true;
}
if ((score >= 1000000) && (live3award == false)) {
if (_root.medal5 == false) {
_root.medal5 = true;
_root.savefile.data.medal5 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live3award = true;
}
if ((score >= 2000000) && (live4award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live4award = true;
}
if ((score >= 3000000) && (live5award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live5award = true;
}
if ((score >= 4000000) && (live6award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live6award = true;
}
if ((score >= 5000000) && (live7award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live7award = true;
}
if ((score >= 6000000) && (live8award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live8award = true;
}
if ((score >= 7000000) && (live9award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live9award = true;
}
if ((score >= 8000000) && (live10award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live10award = true;
}
if ((score >= 9000000) && (live11award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live11award = true;
}
if ((score >= 10000000) && (live12award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live12award = true;
}
if ((score >= 11000000) && (live13award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live13award = true;
}
if ((score >= 12000000) && (live14award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live14award = true;
}
if ((score >= 13000000) && (live15award == false)) {
if (_root.lives == 9) {
_root.deathStat5.gotoAndPlay("max");
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
} else {
_root.deathStat5.gotoAndPlay("select");
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
}
_root.lives++;
live15award = true;
}
}
function resetScore() {
score = 0;
_root.scoreText.text = score;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function afterDeath() {
_root.lives--;
_root.deathStat5.gotoAndPlay("blink");
if (_root.difficulty == 0.5) {
var _local2 = randRange(1, 3);
if (_local2 == 1) {
_root.shipspeed--;
_root.deathStat1.gotoAndPlay("blink");
}
if (_local2 == 2) {
_root.missilepower--;
_root.deathStat2.gotoAndPlay("blink");
}
if (_local2 == 3) {
_root.firerate--;
_root.deathStat3.gotoAndPlay("blink");
}
var _local3 = randRange(1, 2);
if (_local3 == 1) {
_root.torpedoState--;
}
if (_local3 == 2) {
_root.sideState--;
}
}
if (_root.difficulty == 1) {
_root.shipspeed--;
_root.deathStat1.gotoAndPlay("blink");
_root.missilepower--;
_root.deathStat2.gotoAndPlay("blink");
_root.firerate--;
_root.deathStat3.gotoAndPlay("blink");
_root.torpedoState--;
_root.sideState--;
}
if (_root.difficulty == 2) {
_root.shipspeed--;
_root.deathStat1.gotoAndPlay("blink");
_root.missilepower = _root.missilepower - 2;
_root.deathStat2.gotoAndPlay("blink");
_root.firerate--;
_root.deathStat3.gotoAndPlay("blink");
_root.torpedoState = _root.torpedoState - 2;
_root.sideState = _root.sideState - 2;
}
}
function respawn() {
if ((_root.level == 1) || (_root.level == 5)) {
_root.ship.gotoAndPlay("explode");
_root.ship._x = -20;
_root.ship._y = 200;
}
if (_root.level == 2) {
_root.ship.gotoAndPlay("explode2");
_root.ship._x = 380;
_root.ship._y = 510;
}
if (_root.level == 3) {
_root.ship.gotoAndPlay("explode3");
_root.ship._x = 772;
_root.ship._y = 260;
}
if ((_root.level == 4) || (_root.level == 6)) {
_root.ship.gotoAndPlay("explode4");
_root.ship._x = 380;
_root.ship._y = 60;
}
}
function rememberStats() {
_root.pUstateRem = _root.pUstate;
_root.shipspeedRem = _root.shipspeed;
_root.missilepowerRem = _root.missilepower;
_root.firerateRem = _root.firerate;
_root.bombsRem = _root.bombs;
_root.livesRem = _root.lives;
_root.torpedoStateRem = _root.torpedoState;
_root.sideStateRem = _root.sideState;
}
function reloadStats() {
_root.pUstate = _root.pUstateRem;
_root.shipspeed = _root.shipspeedRem;
_root.missilepower = _root.missilepowerRem;
_root.firerate = _root.firerateRem;
_root.bombs = _root.bombsRem;
_root.lives = _root.livesRem;
_root.torpedoState = _root.torpedoStateRem;
_root.sideState = _root.sideStateRem;
_root.score = 0;
}
stop();
level = 0;
Frame 40
function onEnterFrame() {
}
stop();
if (_root.goto == 1) {
gotoAndPlay ("A1");
}
if (_root.goto == 2) {
gotoAndPlay ("hs");
}
if (_root.goto == 3) {
gotoAndStop ("medals");
}
if (_root.goto == 4) {
gotoAndPlay ("credits");
}
Frame 43
function onEnterFrame() {
_root.bgcr._y = _root.bgcr._y + 1;
if (_root.bgcr._y > 500) {
_root.bgcr._y = -300;
}
_root.credroll._y = _root.credroll._y - 0.8;
if (_root.credroll._y < -944) {
if (_root.medal3 == false) {
_root.medal3 = true;
_root.savefile.data.medal3 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
_root.credroll._y = 340;
}
}
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Frame 54
_root.backgroundMusic = new Sound();
_root.backgroundMusic.attachSound("credloop");
_root.backgroundMusic.setVolume(70);
_root.backgroundMusic.start(0, 1000);
Frame 59
stop();
Frame 77
function onEnterFrame() {
}
gotoAndPlay ("backtomm");
Frame 79
stop();
Frame 82
_quality = "HIGH";
_root.submithit = false;
_root.lookatscores = false;
_root.hitclose = false;
Frame 91
stop();
Frame 100
_quality = "LOW";
Frame 101
gotoAndPlay ("startover");
Frame 104
_quality = "HIGH";
_root.hitclose = false;
_root.lookatscores = true;
Frame 113
stop();
Frame 122
_quality = "LOW";
_root.lookatscores = false;
Frame 123
gotoAndPlay ("startover");
Frame 129
stop();
Frame 140
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Frame 156
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("pressA");
}
if (Key.isDown(68)) {
gotoAndPlay ("pressA");
}
}
stop();
Frame 157
function onEnterFrame() {
}
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Frame 184
stop();
Frame 195
function onEnterFrame() {
if (_root.gamepaused == false) {
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
}
}
level = 1;
_root.replayChapter = false;
stopAllSounds();
_root.bossHealth.gotoAndStop(1);
_root.bossHealth.bossBar.bossMeter._xscale = 100;
shipspeed = 1;
missilepower = 1;
firerate = 1;
torpedoState = 0;
sideState = 0;
if (_root.difficulty == 0.5) {
bombs = 3;
lives = 5;
}
if (_root.difficulty == 1) {
bombs = 2;
lives = 3;
}
if (_root.difficulty == 2) {
bombs = 1;
lives = 1;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
_root.gamepaused = false;
bgimage.gotoAndStop(level);
live1award = false;
live2award = false;
live3award = false;
live4award = false;
live5award = false;
live6award = false;
live7award = false;
live8award = false;
live9award = false;
live10award = false;
live11award = false;
live12award = false;
live13award = false;
live14award = false;
live15award = false;
resetScore();
pUstate = 0;
_root.gamepaused = false;
Frame 221
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
_root.play();
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
_root.stop();
}
}
};
Key.addListener(myPauseListener);
Instance of Symbol 1153 MovieClip in Frame 225
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Frame 231
_root.backgroundMusic.attachSound("1loop");
_root.backgroundMusic.start(0, 1000);
Frame 410
function onEnterFrame() {
if (_root.gamepaused == false) {
velocity = (shipspeed * 1.4) + 2;
if (pUstate == 0) {
_root.powerUpTag1.gotoAndStop("normal");
_root.powerUpTag2.gotoAndStop("normal");
_root.powerUpTag3.gotoAndStop("normal");
_root.powerUpTag4.gotoAndStop("normal");
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate > 5) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
pUstate = 1;
}
_root.bombUnleashed = false;
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (shipspeed < 1) {
shipspeed = 1;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (missilepower < 1) {
missilepower = 1;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (firerate < 1) {
firerate = 1;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (bombs < 0) {
bombs = 0;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
if (lives < 1) {
lives = 0;
Key.removeListener(myPauseListener);
}
if ((lives == 9) && (_root.medal6 == false)) {
_root.medal6 = true;
_root.savefile.data.medal6 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if ((_root.firstblood == true) && (_root.medal1 == false)) {
_root.medal1 = true;
_root.savefile.data.medal1 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (torpedoState < 0) {
torpedoState = 0;
}
if (sideState < 0) {
sideState = 0;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
shootLimiter = shootLimiter + firerate;
bombLimiter = bombLimiter + 1;
if ((Key.isDown(39) && (_root.ship._x < 730)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x + velocity;
}
if ((Key.isDown(37) && (_root.ship._x > 30)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x - velocity;
}
if (((Key.isDown(38) && (_root.ship._y > 136)) && (globalTimer < 0)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if (((Key.isDown(38) && (_root.ship._y > 60)) && (globalTimer > 0)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if ((Key.isDown(40) && (_root.ship._y < 475)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y + velocity;
}
if (Key.isDown(68) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local3 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3.gotoAndStop(missilepower);
_local3._x = _root.ship._x + 28;
_local3._y = _root.ship._y - 2;
_root.pacifist = false;
}
if (Key.isDown(65) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local2 = _root.attachMovie("Missile2", "Missile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.gotoAndStop(missilepower);
_local2._x = _root.ship._x - 20;
_local2._y = _root.ship._y - 2;
_root.pacifist = false;
}
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if ((Key.isDown(87) && (bombLimiter > 22)) && (bombs > 0)) {
_root.bombUnleashed = true;
_root.deathStat4.gotoAndPlay("blink");
_root.bombMC.gotoAndPlay(2);
bombLimiter = 0;
bombs--;
if (_root.medal2 == false) {
_root.medal2 = true;
_root.savefile.data.medal2 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
}
globalTimer = globalTimer + 1;
if (globalTimer == 5700) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.bossHealth.gotoAndPlay("show");
}
if (globalTimer == 5760) {
_root.backgroundMusic.attachSound("boss1loop");
_root.backgroundMusic.start(0, 1000);
}
enemyTimer = enemyTimer + 1;
if ((enemyTimer > 60) && (globalTimer < 5600)) {
enemyTimer = 0;
var _local9 = _root.attachMovie("EnemyShip", "EnemyShip" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local9);
}
enemy2Timer = enemy2Timer + 1;
if ((enemy2Timer > 245) && (globalTimer < 5600)) {
enemy2Timer = 0;
var _local8 = _root.attachMovie("EnemyShip2", "EnemyShip2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local8);
}
groundEnemyTimer = groundEnemyTimer + 1;
if ((groundEnemyTimer > 575) && (globalTimer < 5600)) {
groundEnemyTimer = 0;
var _local4 = _root.attachMovie("GroundEnemy1", "GroundEnemy1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local4);
}
enemy3Timer = enemy3Timer + 1;
if ((enemy3Timer > 1300) && (globalTimer < 5600)) {
enemy3Timer = 0;
var _local7 = _root.attachMovie("EnemyShip3", "EnemyShip3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local7);
}
enemy4Timer = enemy4Timer + 1;
if ((enemy4Timer > 1900) && (globalTimer < 5600)) {
enemy4Timer = 0;
var _local5 = _root.attachMovie("EnemyShip4", "EnemyShip4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local5);
}
if (globalTimer == -840) {
var _local9 = _root.attachMovie("EnemyShip", "EnemyShip" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local9);
}
if (globalTimer == -500) {
var _local8 = _root.attachMovie("EnemyShip2", "EnemyShip2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local8);
}
if (globalTimer == -900) {
globalTimer = -850;
}
if (globalTimer == -800) {
globalTimer = -750;
}
if (globalTimer == -200) {
globalTimer = -50;
}
if (globalTimer == 5800) {
var _local6 = _root.attachMovie("Boss1", "Boss1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local6);
}
if (_root.bossDead == true) {
bossDeadCounter = bossDeadCounter + 1;
}
if (bossDeadCounter == 50) {
if ((_root.pacifist == true) && (_root.medal7 == false)) {
_root.medal7 = true;
_root.savefile.data.medal7 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 0.5) && (_root.medal10 == false)) {
_root.medal10 = true;
_root.savefile.data.medal10 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 1) && (_root.medal13 == false)) {
_root.medal13 = true;
_root.savefile.data.medal13 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 2) && (_root.medal16 == false)) {
_root.medal16 = true;
_root.savefile.data.medal16 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (bossDeadCounter == 150) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (bossDeadCounter > 150) {
_root.ship._x = _root.ship._x + 30;
if (_root.ship._x > 800) {
_root.gamepaused = false;
Key.removeListener(myPauseListener);
_root.success.gotoAndPlay("begin");
}
}
if (_root.globalTimer > 0) {
_root.puScreen.gotoAndStop(1);
}
if (((_root.globalTimer > -1100) && (_root.globalTimer < -1070)) && (pUstate == 0)) {
_root.puScreen.gotoAndStop(1);
}
if (_root.globalTimer == -1070) {
_root.soundFX.attachSound("powerupPick");
_root.soundFX.start();
}
if (((_root.globalTimer > -1070) && (_root.globalTimer < -820)) && (pUstate == 0)) {
_root.puScreen.gotoAndStop(5);
}
if ((_root.globalTimer > -820) && (pUstate == 0)) {
_root.puScreen.gotoAndStop(1);
}
if ((_root.globalTimer < 0) && (pUstate == 1)) {
_root.puScreen.gotoAndStop(2);
}
if ((_root.globalTimer < 0) && (pUstate == 2)) {
_root.puScreen.gotoAndStop(3);
}
if ((_root.globalTimer < 0) && (pUstate == 3)) {
_root.puScreen.gotoAndStop(4);
}
}
}
stop();
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
}
}
};
Key.addListener(myPauseListener);
_root.soundFX = new Sound();
_root.firstblood = false;
_root.pacifist = true;
_root.erasePowerUps = true;
_root.ship._visible = true;
_root.cannotshoot = false;
_root.cannotmove = false;
_root.invincible = false;
_root.gameoverStarted = false;
_root.bossDead = false;
_root.boss2Show = false;
_root.boss1Show = false;
_root.boss4Show = false;
var bossDeadCounter;
bossDeadCounter = 0;
var velocity;
var shootLimiter;
var globalTimer;
var enemyTimer;
var enemy2Timer;
var enemy3Timer;
var enemy4Timer;
var groundEnemyTimer;
var torpedoState;
var sideState;
var enemies;
var shipspeed;
var missilepower;
var firerate;
var bombs;
var bombLimiter;
if (shipspeed > 9) {
shipspeed = 9;
}
torpedoState = 0;
sideState = 0;
shootLimiter = 0;
bombLimiter = 0;
globalTimer = -1100;
enemyTimer = -850;
enemy2Timer = -850;
enemy3Timer = -850;
enemy4Timer = -850;
groundEnemyTimer = -850;
enemies = [];
resetScore();
Frame 417
stop();
Frame 428
stop();
Frame 439
stop();
Frame 450
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
_root.scoreText.text = score;
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
cityMC._y = cityMC._y + 2;
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
}
}
level = 2;
stopAllSounds();
_root.bossHealth.gotoAndStop(1);
_root.bossHealth.bossBar.bossMeter._xscale = 100;
_root.bossHealth2.gotoAndStop(1);
_root.bossHealth2.bossBar.bossMeter._xscale = 100;
if (_root.replayChapter == false) {
rememberStats();
}
if (_root.replayChapter == true) {
reloadStats();
_root.replayChapter = false;
}
bgimage.gotoAndStop(level);
_root.gamepaused = false;
Frame 476
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
_root.play();
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
_root.stop();
}
}
};
Key.addListener(myPauseListener);
Instance of Symbol 1278 MovieClip in Frame 480
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Frame 485
_root.backgroundMusic.attachSound("2loop");
_root.backgroundMusic.start(0, 1000);
Frame 599
function onEnterFrame() {
if (_root.gamepaused == false) {
velocity = (shipspeed * 1.4) + 2;
if (pUstate == 0) {
_root.powerUpTag1.gotoAndStop("normal");
_root.powerUpTag2.gotoAndStop("normal");
_root.powerUpTag3.gotoAndStop("normal");
_root.powerUpTag4.gotoAndStop("normal");
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate > 5) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
pUstate = 1;
}
_root.bombUnleashed = false;
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (shipspeed < 1) {
shipspeed = 1;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (missilepower < 1) {
missilepower = 1;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (firerate < 1) {
firerate = 1;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (bombs < 0) {
bombs = 0;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
if ((lives == 9) && (_root.medal6 == false)) {
_root.medal6 = true;
_root.savefile.data.medal6 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (lives < 1) {
lives = 0;
Key.removeListener(myPauseListener);
}
if (torpedoState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
torpedoState = 7;
}
if (torpedoState < 0) {
torpedoState = 0;
}
if (sideState < 0) {
sideState = 0;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
shootLimiter = shootLimiter + firerate;
bombLimiter = bombLimiter + 1;
torpedoLimiter = torpedoLimiter + torpedoState;
if ((Key.isDown(39) && (_root.ship._x < 730)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x + velocity;
}
if ((Key.isDown(37) && (_root.ship._x > 30)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x - velocity;
}
if ((Key.isDown(38) && (_root.ship._y > 60)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if ((Key.isDown(40) && (_root.ship._y < 475)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y + velocity;
}
if (Key.isDown(68) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local3 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3.gotoAndStop(missilepower);
_local3._x = _root.ship._x + 28;
_local3._y = _root.ship._y - 2;
_root.pacifist = false;
}
if (Key.isDown(68) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local6 = _root.attachMovie("TorpRight1", "TorpRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _root.ship._x + 18;
_local6._y = _root.ship._y + 15;
var _local5 = _root.attachMovie("TorpRight2", "TorpRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _root.ship._x + 18;
_local5._y = _root.ship._y - 13;
}
if (Key.isDown(65) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local2 = _root.attachMovie("Missile2", "Missile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.gotoAndStop(missilepower);
_local2._x = _root.ship._x - 20;
_local2._y = _root.ship._y - 2;
_root.pacifist = false;
}
if (Key.isDown(65) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local7 = _root.attachMovie("TorpLeft1", "TorpLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _root.ship._x - 10;
_local7._y = _root.ship._y + 15;
var _local4 = _root.attachMovie("TorpLeft2", "TorpLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x - 10;
_local4._y = _root.ship._y - 13;
}
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if ((Key.isDown(87) && (bombLimiter > 22)) && (bombs > 0)) {
_root.bombUnleashed = true;
_root.deathStat4.gotoAndPlay("blink");
_root.bombMC.gotoAndPlay(2);
bombLimiter = 0;
bombs--;
if (_root.medal2 == false) {
_root.medal2 = true;
_root.savefile.data.medal2 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
}
globalTimer = globalTimer + 1;
if (globalTimer == 2810) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local12 = _root.attachMovie("EnemyShip13", "EnemyShip13" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
if (globalTimer == 2820) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local12 = _root.attachMovie("EnemyShip13", "EnemyShip13" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
if (globalTimer == 2830) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local12 = _root.attachMovie("EnemyShip13", "EnemyShip13" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
if (globalTimer == 4850) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local12 = _root.attachMovie("EnemyShip13", "EnemyShip13" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
if (globalTimer == 4860) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local12 = _root.attachMovie("EnemyShip13", "EnemyShip13" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
if (globalTimer == 4870) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local12 = _root.attachMovie("EnemyShip13", "EnemyShip13" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
if (globalTimer == 6200) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.bossHealth.gotoAndPlay("show");
_root.bossHealth2.gotoAndPlay("show");
_root.boss1Show = true;
_root.boss2Show = true;
}
if (globalTimer == 6260) {
_root.backgroundMusic.attachSound("boss2loop");
_root.backgroundMusic.start(0, 1000);
}
enemy5Timer = enemy5Timer + 1;
if ((enemy5Timer > 2000) && (globalTimer < 6100)) {
enemy5Timer = 0;
var _local11 = _root.attachMovie("EnemyShip5", "EnemyShip5" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local11);
}
enemy6Timer = enemy6Timer + 1;
if ((enemy6Timer > 2000) && (globalTimer < 6100)) {
enemy6Timer = 0;
var _local10 = _root.attachMovie("EnemyShip6", "EnemyShip6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local10);
}
enemy7Timer = enemy7Timer + 1;
if ((((((enemy7Timer > 32) && (globalTimer > 0)) && (globalTimer < 200)) || (((enemy7Timer > 32) && (globalTimer > 1400)) && (globalTimer < 1600))) || (((enemy7Timer > 32) && (globalTimer > 3400)) && (globalTimer < 3600))) || (((enemy7Timer > 32) && (globalTimer > 5400)) && (globalTimer < 5600))) {
enemy7Timer = 0;
var _local9 = _root.attachMovie("EnemyShip7", "EnemyShip7" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local9);
}
enemy8Timer = enemy8Timer + 1;
if ((((((enemy8Timer > 32) && (globalTimer > 180)) && (globalTimer < 380)) || (((enemy8Timer > 32) && (globalTimer > 1400)) && (globalTimer < 1600))) || (((enemy8Timer > 32) && (globalTimer > 3400)) && (globalTimer < 3600))) || (((enemy8Timer > 32) && (globalTimer > 5400)) && (globalTimer < 5600))) {
enemy8Timer = 0;
var _local8 = _root.attachMovie("EnemyShip8", "EnemyShip8" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local8);
}
enemy9Timer = enemy9Timer + 1;
if ((enemy9Timer > 174) && (globalTimer < 6100)) {
enemy9Timer = 0;
var _local18 = _root.attachMovie("EnemyShip9", "EnemyShip9" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local18);
}
enemy10Timer = enemy10Timer + 1;
if (((enemy10Timer > 174) && (globalTimer > 261)) && (globalTimer < 6100)) {
enemy10Timer = 0;
var _local15 = _root.attachMovie("EnemyShip10", "EnemyShip10" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local15);
}
enemy11Timer = enemy11Timer + 1;
if ((enemy11Timer > 1300) && (globalTimer < 6100)) {
enemy11Timer = 0;
var _local14 = _root.attachMovie("EnemyShip11", "EnemyShip11" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local14);
}
enemy12Timer = enemy12Timer + 1;
if ((enemy12Timer > 1100) && (globalTimer < 6100)) {
enemy12Timer = 0;
var _local13 = _root.attachMovie("EnemyShip12", "EnemyShip12" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
}
if (globalTimer == 6350) {
var _local17 = _root.attachMovie("Boss2A", "Boss2A" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local17);
var _local16 = _root.attachMovie("Boss2B", "Boss2B" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local16);
}
if ((_root.boss1Dead == true) && (_root.boss2Dead == true)) {
bossesDeadCounter = bossesDeadCounter + 1;
}
if (bossesDeadCounter == 50) {
if ((_root.pacifist == true) && (_root.medal8 == false)) {
_root.medal8 = true;
_root.savefile.data.medal8 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 0.5) && (_root.medal11 == false)) {
_root.medal11 = true;
_root.savefile.data.medal11 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 1) && (_root.medal14 == false)) {
_root.medal14 = true;
_root.savefile.data.medal14 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 2) && (_root.medal17 == false)) {
_root.medal17 = true;
_root.savefile.data.medal17 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (bossesDeadCounter == 150) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (bossesDeadCounter > 150) {
_root.ship._y = _root.ship._y - 30;
if (_root.ship._y < -30) {
_root.gamepaused = false;
Key.removeListener(myPauseListener);
_root.success.gotoAndPlay("begin");
}
}
}
}
stop();
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
}
}
};
Key.addListener(myPauseListener);
_root.pacifist = true;
_root.erasePowerUps = true;
_root.ship._visible = true;
_root.cannotshoot = false;
_root.cannotmove = false;
_root.invincible = false;
_root.gameoverStarted = false;
_root.boss1Show = false;
_root.boss2Show = false;
_root.boss1Dead = false;
_root.boss2Dead = false;
_root.boss4Show = false;
var bossesDeadCounter;
bossesDeadCounter = 0;
var velocity;
var shootLimiter;
var bombLimiter;
var torpedoLimiter;
var torpedoState;
var sideState;
var globalTimer;
var enemy5Timer;
var enemy6Timer;
var enemy7Timer;
var enemy8Timer;
var enemy9Timer;
var enemy10Timer;
var enemy11Timer;
var enemy12Timer;
var enemies;
shootLimiter = 0;
bombLimiter = 0;
torpedoLimiter = 0;
torpedoState = 0;
sideState = 0;
globalTimer = 0;
enemy5Timer = 1000;
enemy6Timer = 0;
enemy7Timer = 0;
enemy8Timer = 0;
enemy9Timer = 0;
enemy10Timer = 0;
enemy11Timer = 800;
enemy12Timer = 200;
enemies = [];
Frame 606
stop();
Frame 617
stop();
Frame 628
stop();
Frame 639
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
_root.scoreText.text = score;
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
cityMC._y = cityMC._y + 2;
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
}
}
level = 3;
stopAllSounds();
_root.bossHealth2.gotoAndStop(1);
_root.bossHealth2.bossBar.bossMeter._xscale = 100;
if (_root.replayChapter == false) {
rememberStats();
}
if (_root.replayChapter == true) {
reloadStats();
_root.replayChapter = false;
}
bgimage.gotoAndStop(level);
_root.gamepaused = false;
Frame 665
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
_root.play();
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
_root.stop();
}
}
};
Key.addListener(myPauseListener);
Frame 669
_root.backgroundMusic.attachSound("3loop");
_root.backgroundMusic.start(0, 1000);
Instance of Symbol 1336 MovieClip in Frame 669
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Frame 845
function onEnterFrame() {
if (_root.gamepaused == false) {
velocity = (shipspeed * 1.4) + 2;
if (pUstate == 0) {
_root.powerUpTag1.gotoAndStop("normal");
_root.powerUpTag2.gotoAndStop("normal");
_root.powerUpTag3.gotoAndStop("normal");
_root.powerUpTag4.gotoAndStop("normal");
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate > 5) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
pUstate = 1;
}
_root.bombUnleashed = false;
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (shipspeed < 1) {
shipspeed = 1;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (missilepower < 1) {
missilepower = 1;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (firerate < 1) {
firerate = 1;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (bombs < 0) {
bombs = 0;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
if ((lives == 9) && (_root.medal6 == false)) {
_root.medal6 = true;
_root.savefile.data.medal6 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (lives < 1) {
lives = 0;
Key.removeListener(myPauseListener);
}
if (torpedoState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
torpedoState = 7;
}
if (torpedoState < 0) {
torpedoState = 0;
}
if (sideState < 0) {
sideState = 0;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
shootLimiter = shootLimiter + firerate;
bombLimiter = bombLimiter + 1;
torpedoLimiter = torpedoLimiter + torpedoState;
if ((Key.isDown(39) && (_root.ship._x < 730)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x + velocity;
}
if ((Key.isDown(37) && (_root.ship._x > 30)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x - velocity;
}
if ((Key.isDown(38) && (_root.ship._y > 60)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if ((Key.isDown(40) && (_root.ship._y < 475)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y + velocity;
}
if (Key.isDown(68) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local3 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3.gotoAndStop(missilepower);
_local3._x = _root.ship._x + 28;
_local3._y = _root.ship._y - 2;
_root.pacifist = false;
}
if (Key.isDown(68) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local6 = _root.attachMovie("TorpRight1", "TorpRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _root.ship._x + 18;
_local6._y = _root.ship._y + 15;
var _local5 = _root.attachMovie("TorpRight2", "TorpRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _root.ship._x + 18;
_local5._y = _root.ship._y - 13;
}
if (Key.isDown(65) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local2 = _root.attachMovie("Missile2", "Missile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.gotoAndStop(missilepower);
_local2._x = _root.ship._x - 20;
_local2._y = _root.ship._y - 2;
_root.pacifist = false;
}
if (Key.isDown(65) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local7 = _root.attachMovie("TorpLeft1", "TorpLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _root.ship._x - 10;
_local7._y = _root.ship._y + 15;
var _local4 = _root.attachMovie("TorpLeft2", "TorpLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x - 10;
_local4._y = _root.ship._y - 13;
}
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if ((Key.isDown(87) && (bombLimiter > 22)) && (bombs > 0)) {
_root.bombUnleashed = true;
_root.deathStat4.gotoAndPlay("blink");
_root.bombMC.gotoAndPlay(2);
bombLimiter = 0;
bombs--;
if (_root.medal2 == false) {
_root.medal2 = true;
_root.savefile.data.medal2 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
}
globalTimer = globalTimer + 1;
if (globalTimer == 7000) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.bossHealth2.gotoAndPlay("show");
_root.boss2Show = true;
}
if (globalTimer == 7060) {
_root.backgroundMusic.attachSound("boss3loop");
_root.backgroundMusic.start(0, 1000);
}
if (((globalTimer == 1000) || (globalTimer == 3000)) || (globalTimer == 5000)) {
var _local8 = _root.attachMovie("EnemyShip19", "EnemyShip19" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local8);
}
if (((((((((((((((((((((((((((((((((((((((((((((globalTimer == 200) || (globalTimer == 400)) || (globalTimer == 404)) || (globalTimer == 800)) || (globalTimer == 804)) || (globalTimer == 808)) || (globalTimer == 1400)) || (globalTimer == 1404)) || (globalTimer == 1408)) || (globalTimer == 1412)) || (globalTimer == 2200)) || (globalTimer == 2204)) || (globalTimer == 2208)) || (globalTimer == 2212)) || (globalTimer == 2216)) || (globalTimer == 3200)) || (globalTimer == 3204)) || (globalTimer == 3208)) || (globalTimer == 3212)) || (globalTimer == 3216)) || (globalTimer == 3220)) || (globalTimer == 4200)) || (globalTimer == 4204)) || (globalTimer == 4208)) || (globalTimer == 4212)) || (globalTimer == 4216)) || (globalTimer == 4220)) || (globalTimer == 5200)) || (globalTimer == 5204)) || (globalTimer == 5208)) || (globalTimer == 5212)) || (globalTimer == 5216)) || (globalTimer == 5220)) || (globalTimer == 6900)) || (globalTimer == 6904)) || (globalTimer == 6908)) || (globalTimer == 6912)) || (globalTimer == 6916)) || (globalTimer == 6920)) || (globalTimer == 6924)) || (globalTimer == 6928)) || (globalTimer == 6932)) || (globalTimer == 6936)) || (globalTimer == 6940)) || (globalTimer == 6944)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local9 = _root.attachMovie("EnemyShip18", "EnemyShip18" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local9);
}
enemy14Timer = enemy14Timer + 1;
if ((enemy14Timer > 56) && (globalTimer < 6800)) {
enemy14Timer = 0;
var _local14 = _root.attachMovie("EnemyShip14", "EnemyShip14" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local14);
}
enemy15Timer = enemy15Timer + 1;
if ((enemy15Timer > 600) && (globalTimer < 6800)) {
enemy15Timer = 0;
var _local13 = _root.attachMovie("EnemyShip15", "EnemyShip15" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
}
enemy16Timer1 = enemy16Timer1 + 1;
if ((enemy16Timer1 > 2000) && (globalTimer < 6800)) {
enemy16Timer1 = 0;
enemy16extraY = 0;
enemy16ydir = 1;
var _local12 = _root.attachMovie("EnemyShip16", "EnemyShip16" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
enemy16Timer2 = enemy16Timer2 + 1;
if ((enemy16Timer2 > 2040) && (globalTimer < 6800)) {
enemy16Timer2 = 0;
enemy16extraY = 370;
enemy16ydir = -1;
var _local12 = _root.attachMovie("EnemyShip16", "EnemyShip16" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
enemy17Timer = enemy17Timer + 1;
if ((enemy17Timer > 56) && (globalTimer < 6800)) {
enemy17Timer = 0;
var _local10 = _root.attachMovie("EnemyShip17", "EnemyShip17" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local10);
}
if (globalTimer == 7100) {
var _local11 = _root.attachMovie("Boss3", "Boss3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local11);
}
if (_root.bossDead == true) {
bossDeadCounter = bossDeadCounter + 1;
}
if (bossDeadCounter == 50) {
if ((_root.pacifist == true) && (_root.medal9 == false)) {
_root.medal9 = true;
_root.savefile.data.medal9 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 0.5) && (_root.medal12 == false)) {
_root.medal12 = true;
_root.savefile.data.medal12 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 1) && (_root.medal15 == false)) {
_root.medal15 = true;
_root.savefile.data.medal15 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 2) && (_root.medal18 == false)) {
_root.medal18 = true;
_root.savefile.data.medal18 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (bossDeadCounter == 150) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (bossDeadCounter > 150) {
_root.ship._y = _root.ship._y + 30;
if (_root.ship._y > 530) {
_root.gamepaused = false;
Key.removeListener(myPauseListener);
_root.success.gotoAndPlay("begin");
}
}
}
}
stop();
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
}
}
};
Key.addListener(myPauseListener);
_root.pacifist = true;
_root.erasePowerUps = true;
_root.ship._visible = true;
_root.cannotshoot = false;
_root.cannotmove = false;
_root.invincible = false;
_root.gameoverStarted = false;
_root.boss2Show = false;
_root.bossDead = false;
_root.boss1Show = false;
_root.boss4Show = false;
var bossDeadCounter;
bossDeadCounter = 0;
var velocity;
var shootLimiter;
var bombLimiter;
var torpedoLimiter;
var torpedoState;
var sideState;
var globalTimer;
var enemy14Timer;
var enemy15Timer;
var enemy16Timer1;
var enemy16Timer2;
var enemy17Timer;
var enemies;
shootLimiter = 0;
bombLimiter = 0;
torpedoLimiter = 0;
sideState = 0;
globalTimer = 0;
enemy14Timer = 0;
enemy15Timer = 0;
enemy16Timer1 = 0;
enemy16Timer2 = 0;
enemy17Timer = 28;
enemies = [];
Frame 852
stop();
Frame 863
stop();
Frame 874
stop();
Frame 885
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
_root.scoreText.text = score;
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
cityMC._y = cityMC._y + 2;
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
}
}
level = 4;
stopAllSounds();
if (_root.replayChapter == false) {
rememberStats();
}
if (_root.replayChapter == true) {
reloadStats();
_root.replayChapter = false;
}
bgimage.gotoAndStop(level);
_root.gamepaused = false;
Frame 911
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
_root.play();
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
_root.stop();
}
}
};
Key.addListener(myPauseListener);
Frame 915
_root.backgroundMusic.attachSound("4loop");
_root.backgroundMusic.start(0, 1000);
Instance of Symbol 1466 MovieClip in Frame 915
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Frame 1091
function onEnterFrame() {
if (_root.gamepaused == false) {
velocity = (shipspeed * 1.4) + 2;
if (pUstate == 0) {
_root.powerUpTag1.gotoAndStop("normal");
_root.powerUpTag2.gotoAndStop("normal");
_root.powerUpTag3.gotoAndStop("normal");
_root.powerUpTag4.gotoAndStop("normal");
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate > 5) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
pUstate = 1;
}
_root.bombUnleashed = false;
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (shipspeed < 1) {
shipspeed = 1;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (missilepower < 1) {
missilepower = 1;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (firerate < 1) {
firerate = 1;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (bombs < 0) {
bombs = 0;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
if ((lives == 9) && (_root.medal6 == false)) {
_root.medal6 = true;
_root.savefile.data.medal6 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (lives < 1) {
lives = 0;
Key.removeListener(myPauseListener);
}
if (torpedoState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
torpedoState = 7;
}
if (torpedoState < 0) {
torpedoState = 0;
}
if (sideState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
sideState = 7;
}
if (sideState < 0) {
sideState = 0;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
shootLimiter = shootLimiter + firerate;
bombLimiter = bombLimiter + 1;
torpedoLimiter = torpedoLimiter + torpedoState;
sideLimiter = sideLimiter + sideState;
if ((Key.isDown(39) && (_root.ship._x < 730)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x + velocity;
}
if ((Key.isDown(37) && (_root.ship._x > 30)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x - velocity;
}
if ((Key.isDown(38) && (_root.ship._y > 60)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if ((Key.isDown(40) && (_root.ship._y < 475)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y + velocity;
}
if (Key.isDown(68) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local14 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14.gotoAndStop(missilepower);
_local14._x = _root.ship._x + 28;
_local14._y = _root.ship._y - 2;
}
if (Key.isDown(68) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local19 = _root.attachMovie("TorpRight1", "TorpRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local19._x = _root.ship._x + 18;
_local19._y = _root.ship._y + 15;
var _local18 = _root.attachMovie("TorpRight2", "TorpRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = _root.ship._x + 18;
_local18._y = _root.ship._y - 13;
}
if (Key.isDown(68) && (sideLimiter > 50)) {
sideLimiter = 0;
var _local25 = _root.attachMovie("SideRight1", "SideRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local25._x = _root.ship._x + 8;
_local25._y = _root.ship._y - 18;
var _local15 = _root.attachMovie("SideRight2", "SideRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = _root.ship._x + 8;
_local15._y = _root.ship._y + 14;
}
if (Key.isDown(65) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local12 = _root.attachMovie("Missile2", "Missile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local12.gotoAndStop(missilepower);
_local12._x = _root.ship._x - 20;
_local12._y = _root.ship._y - 2;
}
if (Key.isDown(65) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local24 = _root.attachMovie("TorpLeft1", "TorpLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local24._x = _root.ship._x - 10;
_local24._y = _root.ship._y + 15;
var _local16 = _root.attachMovie("TorpLeft2", "TorpLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = _root.ship._x - 10;
_local16._y = _root.ship._y - 13;
}
if (Key.isDown(65) && (sideLimiter > 50)) {
sideLimiter = 0;
var _local20 = _root.attachMovie("SideLeft1", "SideLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local20._x = _root.ship._x - 4;
_local20._y = _root.ship._y - 18;
var _local17 = _root.attachMovie("SideLeft2", "SideLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local17._x = _root.ship._x - 4;
_local17._y = _root.ship._y + 14;
}
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if ((Key.isDown(87) && (bombLimiter > 22)) && (bombs > 0)) {
_root.bombUnleashed = true;
_root.deathStat4.gotoAndPlay("blink");
_root.bombMC.gotoAndPlay(2);
bombLimiter = 0;
bombs--;
if (_root.medal2 == false) {
_root.medal2 = true;
_root.savefile.data.medal2 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
}
globalTimer = globalTimer + 1;
if (((((((((((((((((globalTimer == 100) || (globalTimer == 2200)) || (globalTimer == 4200)) || (globalTimer == 6400)) || (globalTimer == 6425)) || (globalTimer == 6450)) || (globalTimer == 6475)) || (globalTimer == 6500)) || (globalTimer == 6525)) || (globalTimer == 6550)) || (globalTimer == 6575)) || (globalTimer == 6600)) || (globalTimer == 6625)) || (globalTimer == 6650)) || (globalTimer == 6675)) || (globalTimer == 6700)) || (globalTimer == 6725)) {
var _local30 = _root.attachMovie("EnemyShip23", "EnemyShip23" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local30);
}
if ((globalTimer == 1000) && ((_root.difficulty == 1) || (_root.difficulty == 2))) {
var _local30 = _root.attachMovie("EnemyShip23", "EnemyShip23" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local30);
}
if ((globalTimer == 3000) && (_root.difficulty == 2)) {
var _local30 = _root.attachMovie("EnemyShip23", "EnemyShip23" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local30);
}
if ((globalTimer == 5000) && ((_root.difficulty == 1) || (_root.difficulty == 2))) {
var _local30 = _root.attachMovie("EnemyShip23", "EnemyShip23" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local30);
}
if ((globalTimer == 2900) || (globalTimer == 4900)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 64.5;
_local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 463.5;
}
if ((globalTimer == 2903) || (globalTimer == 4903)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 131;
_local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 397;
}
if ((globalTimer == 2906) || (globalTimer == 4906)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 197.5;
_local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 330.5;
}
if ((globalTimer == 2909) || (globalTimer == 4909)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local21 = _root.attachMovie("EnemyShip25", "EnemyShip25" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
_local21._y = 264;
}
if ((globalTimer == 900) || (globalTimer == 4900)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 64.5;
_local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 463.5;
}
if ((globalTimer == 903) || (globalTimer == 4903)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 131;
_local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 397;
}
if ((globalTimer == 906) || (globalTimer == 4906)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 197.5;
_local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 330.5;
}
if ((globalTimer == 909) || (globalTimer == 4909)) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local22 = _root.attachMovie("EnemyShip24", "EnemyShip24" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
_local22._y = 264;
}
if (((globalTimer == 600) || (globalTimer == 2600)) || (globalTimer == 4600)) {
var _local23 = _root.attachMovie("EnemyShip21", "EnemyShip21" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local23);
_local23.speed = 2;
}
if (((globalTimer == 1600) || (globalTimer == 3600)) || (globalTimer == 5600)) {
var _local23 = _root.attachMovie("EnemyShip21", "EnemyShip21" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local23);
_local23.speed = -2;
}
if (globalTimer == 300) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = -2.5;
_local13._y = 60;
}
if (globalTimer == 1300) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = 2.5;
_local13._y = 468;
}
if (globalTimer == 2300) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = 2.5;
_local13._y = 60;
}
if (globalTimer == 3300) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = -2.5;
_local13._y = 468;
}
if (globalTimer == 4300) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = 2.5;
_local13._y = 228;
}
if (globalTimer == 5300) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = -2.5;
_local13._y = 300;
}
if (globalTimer == 6100) {
var _local13 = _root.attachMovie("EnemyShip22", "EnemyShip22" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
_local13.speed = 2.5;
_local13._y = 60;
}
enemy20Timer = enemy20Timer + 1;
if ((enemy20Timer > 2000) && (globalTimer < 6200)) {
enemy20Timer = 0;
var _local31 = _root.attachMovie("EnemyShip20", "EnemyShip20" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local31);
}
enemy26Timer = enemy26Timer + 1;
if ((enemy26Timer > 240) && (globalTimer < 6200)) {
enemy26Timer = 0;
var _local29 = _root.attachMovie("EnemyShip26", "EnemyShip26" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local29);
}
enemy27Timer = enemy27Timer + 1;
if ((enemy27Timer > 240) && (globalTimer < 6200)) {
enemy27Timer = 0;
var _local27 = _root.attachMovie("EnemyShip27", "EnemyShip27" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local27);
}
enemy28Timer = enemy28Timer + 1;
if ((enemy28Timer > 480) && (globalTimer < 6200)) {
enemy28Timer = 0;
var _local26 = _root.attachMovie("EnemyShip28", "EnemyShip28" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local26);
}
enemy29Timer = enemy29Timer + 1;
if ((enemy29Timer > 480) && (globalTimer < 6200)) {
enemy29Timer = 0;
var _local32 = _root.attachMovie("EnemyShip29", "EnemyShip29" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local32);
}
if (globalTimer == 7100) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.bossHealth4.gotoAndPlay("show");
_root.boss4Show = true;
}
if (globalTimer == 7160) {
_root.backgroundMusic.attachSound("boss1loop");
_root.backgroundMusic.start(0, 1000);
}
if (globalTimer == 7160) {
_root.erasePowerUps = false;
var _local28 = _root.attachMovie("Boss4", "Boss4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local28);
var _local11 = _root.attachMovie("Boss4Part1", "Boss4Part1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local11);
_local11.offsetX = -192;
_local11.offsetY = -88;
if (_root.difficulty == 0.5) {
_local11.extraTimer = 56;
} else {
_local11.extraTimer = 28;
}
var _local10 = _root.attachMovie("Boss4Part1", "Boss4Part1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local10);
_local10.offsetX = -196;
_local10.offsetY = 0;
if (_root.difficulty == 0.5) {
_local10.extraTimer = 52;
} else {
_local10.extraTimer = 26;
}
var _local9 = _root.attachMovie("Boss4Part1", "Boss4Part1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local9);
_local9.offsetX = -192;
_local9.offsetY = 88;
if (_root.difficulty == 0.5) {
_local9.extraTimer = 44;
} else {
_local9.extraTimer = 22;
}
var _local5 = _root.attachMovie("Boss4Part7", "Boss4Part7" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local5);
_local5.offsetX = -104;
_local5.offsetY = 92;
_local5.upordown = 1;
if (_root.difficulty == 0.5) {
_local5.extraTimer = 40;
} else {
_local5.extraTimer = 20;
}
var _local3 = _root.attachMovie("Boss4Part7", "Boss4Part7" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local3);
_local3.offsetX = 92;
_local3.offsetY = 92;
_local3.upordown = 1;
if (_root.difficulty == 0.5) {
_local3.extraTimer = 32;
} else {
_local3.extraTimer = 16;
}
var _local6 = _root.attachMovie("Boss4Part4", "Boss4Part4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local6);
_local6.offsetX = 180;
_local6.offsetY = 88;
if (_root.difficulty == 0.5) {
_local6.extraTimer = 28;
} else {
_local6.extraTimer = 14;
}
var _local7 = _root.attachMovie("Boss4Part4", "Boss4Part4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local7);
_local7.offsetX = 184;
_local7.offsetY = 0;
if (_root.difficulty == 0.5) {
_local7.extraTimer = 20;
} else {
_local7.extraTimer = 10;
}
var _local8 = _root.attachMovie("Boss4Part4", "Boss4Part4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local8);
_local8.offsetX = 180;
_local8.offsetY = -88;
if (_root.difficulty == 0.5) {
_local8.extraTimer = 16;
} else {
_local8.extraTimer = 8;
}
var _local2 = _root.attachMovie("Boss4Part7", "Boss4Part7" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local2);
_local2.offsetX = 92;
_local2.offsetY = -92;
_local2.upordown = -1;
if (_root.difficulty == 0.5) {
_local2.extraTimer = 8;
} else {
_local2.extraTimer = 4;
}
var _local4 = _root.attachMovie("Boss4Part7", "Boss4Part7" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local4);
_local4.offsetX = -104;
_local4.offsetY = -92;
_local4.upordown = -1;
if (_root.difficulty == 0.5) {
_local4.extraTimer = 4;
} else {
_local4.extraTimer = 2;
}
}
if (_root.bossDead == true) {
bossDeadCounter = bossDeadCounter + 1;
}
if (bossDeadCounter == 50) {
if ((_root.difficulty == 0.5) && (_root.medal19 == false)) {
_root.medal19 = true;
_root.savefile.data.medal19 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 1) && (_root.medal22 == false)) {
_root.medal22 = true;
_root.savefile.data.medal22 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 2) && (_root.medal25 == false)) {
_root.medal25 = true;
_root.savefile.data.medal25 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (bossDeadCounter == 300) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (bossDeadCounter > 300) {
_root.ship._y = _root.ship._y + 30;
if (_root.ship._y > 530) {
_root.gamepaused = false;
_root.erasePowerUps = true;
Key.removeListener(myPauseListener);
_root.success.gotoAndPlay("begin");
}
}
}
}
stop();
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
}
}
};
Key.addListener(myPauseListener);
_root.erasePowerUps = true;
_root.ship._visible = true;
_root.cannotshoot = false;
_root.cannotmove = false;
_root.invincible = false;
_root.gameoverStarted = false;
_root.boss4Show = false;
_root.bossDead = false;
_root.boss2Show = false;
_root.boss1Show = false;
var bossDeadCounter;
bossDeadCounter = 0;
var velocity;
var shootLimiter;
var bombLimiter;
var torpedoLimiter;
var torpedoState;
var sideLimiter;
var sideState;
var globalTimer;
var enemy20Timer;
var enemy26Timer;
var enemy27Timer;
var enemy28Timer;
var enemy29Timer;
var enemies;
shootLimiter = 0;
bombLimiter = 0;
torpedoLimiter = 0;
sideLimiter = 0;
sideState = 0;
globalTimer = 0;
enemy20Timer = 0;
enemy26Timer = 160;
enemy27Timer = 80;
enemy28Timer = 0;
enemy29Timer = 240;
enemies = [];
Frame 1098
stop();
Frame 1109
stop();
Frame 1120
stop();
Frame 1131
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
_root.scoreText.text = score;
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
cityMC._y = cityMC._y + 2;
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
}
}
level = 5;
stopAllSounds();
if (_root.replayChapter == false) {
rememberStats();
}
if (_root.replayChapter == true) {
reloadStats();
_root.replayChapter = false;
}
bgimage.gotoAndStop(level);
_root.gamepaused = false;
Frame 1157
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
_root.play();
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
_root.stop();
}
}
};
Key.addListener(myPauseListener);
Frame 1161
_root.backgroundMusic.attachSound("5loop");
_root.backgroundMusic.start(0, 1000);
Instance of Symbol 1538 MovieClip in Frame 1161
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Frame 1337
function onEnterFrame() {
if (_root.gamepaused == false) {
velocity = (shipspeed * 1.4) + 2;
if (pUstate == 0) {
_root.powerUpTag1.gotoAndStop("normal");
_root.powerUpTag2.gotoAndStop("normal");
_root.powerUpTag3.gotoAndStop("normal");
_root.powerUpTag4.gotoAndStop("normal");
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate > 5) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
pUstate = 1;
}
_root.bombUnleashed = false;
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (shipspeed < 1) {
shipspeed = 1;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (missilepower < 1) {
missilepower = 1;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (firerate < 1) {
firerate = 1;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (bombs < 0) {
bombs = 0;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
if ((lives == 9) && (_root.medal6 == false)) {
_root.medal6 = true;
_root.savefile.data.medal6 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (lives < 1) {
lives = 0;
Key.removeListener(myPauseListener);
}
if (torpedoState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
torpedoState = 7;
}
if (torpedoState < 0) {
torpedoState = 0;
}
if (sideState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
sideState = 7;
}
if (sideState < 0) {
sideState = 0;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
shootLimiter = shootLimiter + firerate;
bombLimiter = bombLimiter + 1;
torpedoLimiter = torpedoLimiter + torpedoState;
sideLimiter = sideLimiter + sideState;
if ((Key.isDown(39) && (_root.ship._x < 730)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x + velocity;
}
if ((Key.isDown(37) && (_root.ship._x > 30)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x - velocity;
}
if ((Key.isDown(38) && (_root.ship._y > 60)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if ((Key.isDown(40) && (_root.ship._y < 475)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y + velocity;
}
if (Key.isDown(68) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local3 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3.gotoAndStop(missilepower);
_local3._x = _root.ship._x + 28;
_local3._y = _root.ship._y - 2;
}
if (Key.isDown(68) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local8 = _root.attachMovie("TorpRight1", "TorpRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local8._x = _root.ship._x + 18;
_local8._y = _root.ship._y + 15;
var _local7 = _root.attachMovie("TorpRight2", "TorpRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _root.ship._x + 18;
_local7._y = _root.ship._y - 13;
}
if (Key.isDown(68) && (sideLimiter > 50)) {
sideLimiter = 0;
var _local11 = _root.attachMovie("SideRight1", "SideRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local11._x = _root.ship._x + 8;
_local11._y = _root.ship._y - 18;
var _local4 = _root.attachMovie("SideRight2", "SideRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x + 8;
_local4._y = _root.ship._y + 14;
}
if (Key.isDown(65) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local2 = _root.attachMovie("Missile2", "Missile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.gotoAndStop(missilepower);
_local2._x = _root.ship._x - 20;
_local2._y = _root.ship._y - 2;
}
if (Key.isDown(65) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local10 = _root.attachMovie("TorpLeft1", "TorpLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _root.ship._x - 10;
_local10._y = _root.ship._y + 15;
var _local5 = _root.attachMovie("TorpLeft2", "TorpLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _root.ship._x - 10;
_local5._y = _root.ship._y - 13;
}
if (Key.isDown(65) && (sideLimiter > 50)) {
sideLimiter = 0;
var _local9 = _root.attachMovie("SideLeft1", "SideLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local9._x = _root.ship._x - 4;
_local9._y = _root.ship._y - 18;
var _local6 = _root.attachMovie("SideLeft2", "SideLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _root.ship._x - 4;
_local6._y = _root.ship._y + 14;
}
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if ((Key.isDown(87) && (bombLimiter > 22)) && (bombs > 0)) {
_root.bombUnleashed = true;
_root.deathStat4.gotoAndPlay("blink");
_root.bombMC.gotoAndPlay(2);
bombLimiter = 0;
bombs--;
if (_root.medal2 == false) {
_root.medal2 = true;
_root.savefile.data.medal2 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
}
globalTimer = globalTimer + 1;
if (((((((globalTimer == 100) || (globalTimer == 1200)) || (globalTimer == 2200)) || (globalTimer == 3300)) || (globalTimer == 4200)) || (globalTimer == 5000)) || (globalTimer == 5600)) {
_root.soundFX.attachSound("shieldapp");
_root.soundFX.start();
var _local16 = _root.attachMovie("EnemyShip33", "EnemyShip33" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip34", "EnemyShip34" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local15);
}
if (((globalTimer == 200) || (globalTimer == 1800)) || (globalTimer == 3800)) {
var _local14 = _root.attachMovie("EnemyShip36", "EnemyShip36" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local14);
}
if (((globalTimer == 2600) || (globalTimer == 4800)) || (globalTimer == 5800)) {
var _local12 = _root.attachMovie("EnemyShip37", "EnemyShip37" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local12);
}
groundEnemy2Timer = groundEnemy2Timer + 1;
if ((groundEnemy2Timer > 800) && (globalTimer < 6100)) {
groundEnemy2Timer = 0;
var _local21 = _root.attachMovie("GroundEnemy2", "GroundEnemy2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local21);
}
groundEnemy3Timer = groundEnemy3Timer + 1;
if ((groundEnemy3Timer > 800) && (globalTimer < 6100)) {
groundEnemy3Timer = 0;
var _local19 = _root.attachMovie("GroundEnemy3", "GroundEnemy3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local19);
}
enemy31Timer = enemy31Timer + 1;
if (globalTimer == 500) {
var _local18 = _root.attachMovie("EnemyShip31", "EnemyShip31" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local18);
}
if ((enemy31Timer > 1000) && (globalTimer < 6100)) {
enemy31Timer = 0;
var _local18 = _root.attachMovie("EnemyShip31", "EnemyShip31" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local18);
}
enemy32Timer = enemy32Timer + 1;
if ((enemy32Timer > 1000) && (globalTimer < 6100)) {
enemy32Timer = 0;
var _local17 = _root.attachMovie("EnemyShip32", "EnemyShip32" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local17);
}
enemy38Timer = enemy38Timer + 1;
if ((enemy38Timer > 88) && (globalTimer < 6100)) {
enemy38Timer = 0;
var _local22 = _root.attachMovie("EnemyShip38", "EnemyShip38" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local22);
}
enemy39Timer = enemy39Timer + 1;
if ((enemy39Timer > 88) && (globalTimer < 6100)) {
enemy39Timer = 0;
var _local20 = _root.attachMovie("EnemyShip39", "EnemyShip39" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local20);
}
if (globalTimer == 6400) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.bossHealth4.gotoAndPlay("show");
_root.boss4Show = true;
}
if (globalTimer == 6460) {
_root.backgroundMusic.attachSound("boss3loop");
_root.backgroundMusic.start(0, 1000);
}
if (globalTimer == 6460) {
_root.erasePowerUps = false;
var _local13 = _root.attachMovie("Boss5", "Boss5" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local13);
}
if (_root.bossDead == true) {
bossDeadCounter = bossDeadCounter + 1;
}
if (bossDeadCounter == 50) {
if ((_root.difficulty == 0.5) && (_root.medal20 == false)) {
_root.medal20 = true;
_root.savefile.data.medal20 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 1) && (_root.medal23 == false)) {
_root.medal23 = true;
_root.savefile.data.medal23 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 2) && (_root.medal26 == false)) {
_root.medal26 = true;
_root.savefile.data.medal26 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (bossDeadCounter == 200) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (bossDeadCounter > 200) {
_root.ship._x = _root.ship._x + 30;
if (_root.ship._x > 800) {
_root.gamepaused = false;
_root.erasePowerUps = true;
Key.removeListener(myPauseListener);
_root.success.gotoAndPlay("begin");
}
}
}
}
stop();
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
}
}
};
Key.addListener(myPauseListener);
_root.erasePowerUps = true;
_root.ship._visible = true;
_root.cannotshoot = false;
_root.cannotmove = false;
_root.invincible = false;
_root.gameoverStarted = false;
_root.boss2Show = false;
_root.boss1Show = false;
_root.boss4Show = false;
_root.shieldpart = true;
_root.shieldpos = 1;
_root.bossLeft = true;
_root.bossDead = false;
var bossDeadCounter;
bossDeadCounter = 0;
var velocity;
var shootLimiter;
var bombLimiter;
var torpedoLimiter;
var torpedoState;
var sideLimiter;
var sideState;
var globalTimer;
var groundEnemy2Timer;
var groundEnemy3Timer;
var enemy31Timer;
var enemy32Timer;
var enemy38Timer;
var enemy39Timer;
var enemies;
shootLimiter = 0;
bombLimiter = 0;
torpedoLimiter = 0;
sideLimiter = 0;
globalTimer = 0;
groundEnemy2Timer = 0;
groundEnemy3Timer = 400;
enemy31Timer = -500;
enemy32Timer = 0;
enemy38Timer = 0;
enemy39Timer = 44;
enemies = [];
Frame 1344
stop();
Frame 1355
stop();
Frame 1366
stop();
Frame 1377
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
_root.scoreText.text = score;
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
cityMC._y = cityMC._y + 2;
_root.platform1._y = _root.platform1._y - 2;
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
}
}
level = 6;
stopAllSounds();
if (_root.replayChapter == false) {
rememberStats();
}
if (_root.replayChapter == true) {
reloadStats();
_root.replayChapter = false;
}
bgimage.gotoAndStop(level);
_root.platform1._x = 376;
_root.platform1._y = 246;
_root.platform2._x = 376;
_root.platform2._y = 2000;
_root.platform3._x = 376;
_root.platform3._y = 2000;
_root.gamepaused = false;
Frame 1403
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
_root.play();
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
_root.stop();
}
}
};
Key.addListener(myPauseListener);
Instance of Symbol 1594 MovieClip in Frame 1404
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Frame 1407
_root.backgroundMusic.attachSound("6loop");
_root.backgroundMusic.start(0, 1000);
Frame 1580
function onEnterFrame() {
if (_root.gamepaused == false) {
if (((_root.platform1.hitTest(ship._x, ship._y, true) && (_root.invincible == false)) || (_root.platform2.hitTest(ship._x, ship._y, true) && (_root.invincible == false))) || (_root.platform3.hitTest(ship._x, ship._y, true) && (_root.invincible == false))) {
_root.afterDeath();
var _local11 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local11._x = _root.ship._x;
_local11._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
Key.removeListener(myPauseListener);
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (globalTimer < 2100) {
_root.platform1._y = _root.platform1._y - 2;
}
if ((globalTimer > 3050) && (globalTimer < 4950)) {
_root.platform2._y = _root.platform2._y - 2;
}
if ((globalTimer > 6300) && (globalTimer < 7800)) {
_root.platform3._y = _root.platform3._y - 2;
}
velocity = (shipspeed * 1.4) + 2;
if (pUstate == 0) {
_root.powerUpTag1.gotoAndStop("normal");
_root.powerUpTag2.gotoAndStop("normal");
_root.powerUpTag3.gotoAndStop("normal");
_root.powerUpTag4.gotoAndStop("normal");
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate == 1) {
_root.powerUpTag1.gotoAndStop("green");
} else {
_root.powerUpTag1.gotoAndStop("normal");
}
if (pUstate == 2) {
_root.powerUpTag2.gotoAndStop("green");
} else {
_root.powerUpTag2.gotoAndStop("normal");
}
if (pUstate == 3) {
_root.powerUpTag3.gotoAndStop("green");
} else {
_root.powerUpTag3.gotoAndStop("normal");
}
if (pUstate == 4) {
_root.powerUpTag4.gotoAndStop("green");
} else {
_root.powerUpTag4.gotoAndStop("normal");
}
if (pUstate == 5) {
_root.powerUpTag5.gotoAndStop("green");
} else {
_root.powerUpTag5.gotoAndStop("normal");
}
if (pUstate > 5) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
pUstate = 1;
}
_root.bombUnleashed = false;
if (shipspeed > 9) {
_root.updateScore(1000);
_root.powerUpTag6.gotoAndPlay("blink");
shipspeed = 9;
}
if (shipspeed < 1) {
shipspeed = 1;
}
if (missilepower > 9) {
_root.updateScore(2000);
_root.powerUpTag6.gotoAndPlay("blink");
missilepower = 9;
}
if (missilepower < 1) {
missilepower = 1;
}
if (firerate > 9) {
_root.updateScore(3000);
_root.powerUpTag6.gotoAndPlay("blink");
firerate = 9;
}
if (firerate < 1) {
firerate = 1;
}
if (bombs > 9) {
_root.updateScore(5000);
_root.powerUpTag6.gotoAndPlay("blink");
bombs = 9;
}
if (bombs < 0) {
bombs = 0;
}
if (lives > 9) {
_root.updateScore(10000);
_root.powerUpTag6.gotoAndPlay("blink");
lives = 9;
}
if ((lives == 9) && (_root.medal6 == false)) {
_root.medal6 = true;
_root.savefile.data.medal6 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (lives < 0) {
lives = 0;
}
if (torpedoState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
torpedoState = 7;
}
if (torpedoState < 0) {
torpedoState = 0;
}
if (sideState > 7) {
_root.updateScore(7000);
_root.powerUpTag6.gotoAndPlay("blink");
sideState = 7;
}
if (sideState < 0) {
sideState = 0;
}
_root.speedText.text = shipspeed;
_root.powerText.text = missilepower;
_root.rateText.text = firerate;
_root.bombsText.text = bombs;
_root.livesText.text = lives;
shootLimiter = shootLimiter + firerate;
bombLimiter = bombLimiter + 1;
torpedoLimiter = torpedoLimiter + torpedoState;
sideLimiter = sideLimiter + sideState;
if ((Key.isDown(39) && (_root.ship._x < 730)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x + velocity;
}
if ((Key.isDown(37) && (_root.ship._x > 30)) && (_root.cannotmove == false)) {
_root.ship._x = _root.ship._x - velocity;
}
if ((Key.isDown(38) && (_root.ship._y > 60)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y - velocity;
}
if ((Key.isDown(40) && (_root.ship._y < 475)) && (_root.cannotmove == false)) {
_root.ship._y = _root.ship._y + velocity;
}
if (Key.isDown(68) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local6 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6.gotoAndStop(missilepower);
_local6._x = _root.ship._x + 28;
_local6._y = _root.ship._y - 2;
}
if (Key.isDown(68) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local12 = _root.attachMovie("TorpRight1", "TorpRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local12._x = _root.ship._x + 18;
_local12._y = _root.ship._y + 15;
var _local10 = _root.attachMovie("TorpRight2", "TorpRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _root.ship._x + 18;
_local10._y = _root.ship._y - 13;
}
if (Key.isDown(68) && (sideLimiter > 50)) {
sideLimiter = 0;
var _local19 = _root.attachMovie("SideRight1", "SideRight1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local19._x = _root.ship._x + 8;
_local19._y = _root.ship._y - 18;
var _local7 = _root.attachMovie("SideRight2", "SideRight2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _root.ship._x + 8;
_local7._y = _root.ship._y + 14;
}
if (Key.isDown(65) && (shootLimiter > 22)) {
shootLimiter = 0;
var _local4 = _root.attachMovie("Missile2", "Missile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4.gotoAndStop(missilepower);
_local4._x = _root.ship._x - 20;
_local4._y = _root.ship._y - 2;
}
if (Key.isDown(65) && (torpedoLimiter > 120)) {
torpedoLimiter = 0;
var _local17 = _root.attachMovie("TorpLeft1", "TorpLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local17._x = _root.ship._x - 10;
_local17._y = _root.ship._y + 15;
var _local8 = _root.attachMovie("TorpLeft2", "TorpLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local8._x = _root.ship._x - 10;
_local8._y = _root.ship._y - 13;
}
if (Key.isDown(65) && (sideLimiter > 50)) {
sideLimiter = 0;
var _local13 = _root.attachMovie("SideLeft1", "SideLeft1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local13._x = _root.ship._x - 4;
_local13._y = _root.ship._y - 18;
var _local9 = _root.attachMovie("SideLeft2", "SideLeft2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local9._x = _root.ship._x - 4;
_local9._y = _root.ship._y + 14;
}
if (Key.isDown(83)) {
if (pUstate == 1) {
if (_root.shipspeed == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat1.gotoAndPlay("select");
}
shipspeed++;
pUstate = 0;
}
if (pUstate == 2) {
if (_root.missilepower == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat2.gotoAndPlay("select");
}
missilepower++;
pUstate = 0;
}
if (pUstate == 3) {
if (_root.firerate == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat3.gotoAndPlay("select");
}
firerate++;
pUstate = 0;
}
if (pUstate == 4) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
bombs++;
pUstate = 0;
}
if (pUstate == 5) {
if (_root.lives == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowLive");
_root.soundFX.start();
_root.deathStat5.gotoAndPlay("select");
}
lives++;
pUstate = 0;
}
}
if ((Key.isDown(87) && (bombLimiter > 22)) && (bombs > 0)) {
_root.bombUnleashed = true;
_root.deathStat4.gotoAndPlay("blink");
_root.bombMC.gotoAndPlay(2);
bombLimiter = 0;
bombs--;
if (_root.medal2 == false) {
_root.medal2 = true;
_root.savefile.data.medal2 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
}
globalTimer = globalTimer + 1;
if (globalTimer == 218) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 560;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 736;
enemies.push(_local15);
}
if (globalTimer == 318) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 572;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 748;
enemies.push(_local15);
}
if ((globalTimer == 233) || (globalTimer == 305)) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.turrettype = 2;
_local2._x = 66;
enemies.push(_local2);
}
if (globalTimer == 269) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.turrettype = 1;
_local2._x = 78;
enemies.push(_local2);
}
if (globalTimer == 522) {
var _local18 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = -5;
_local18._y = 450;
}
if (globalTimer == 552) {
var _local18 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = -5;
_local18._y = 394;
}
if (globalTimer == 630) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 222;
}
if (globalTimer == 660) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 166;
}
if (globalTimer == 824) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 160;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 336;
enemies.push(_local15);
}
if (globalTimer == 935) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._rotation = 180;
_local2.turrettype = 4;
_local2._x = 686;
enemies.push(_local2);
}
if (globalTimer == 1049) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._rotation = 180;
_local2.turrettype = 4;
_local2._x = 726;
enemies.push(_local2);
}
if ((globalTimer == 991) || (globalTimer == 1115)) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._rotation = 180;
_local2.turrettype = 3;
_local2._x = 714;
enemies.push(_local2);
}
if (globalTimer == 1298) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 84;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 260;
enemies.push(_local15);
}
if (globalTimer == 1340) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 242;
}
if (globalTimer == 1370) {
var _local18 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = 765;
_local18._y = 186;
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 464;
}
if (globalTimer == 1400) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 130;
var _local18 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = 765;
_local18._y = 408;
}
if (globalTimer == 1430) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 352;
}
if (globalTimer == 1644) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 268;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 444;
enemies.push(_local15);
}
if (globalTimer == 1823) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.bossHealth4.gotoAndPlay("show");
_root.boss4Show = true;
}
if ((globalTimer == 4800) || (globalTimer == 7430)) {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bossshow");
_root.soundFX.start();
_root.boss4Show = true;
}
if (globalTimer == 1890) {
_root.backgroundMusic.attachSound("boss1loop");
_root.backgroundMusic.start(0, 1000);
}
if (globalTimer == 4870) {
_root.backgroundMusic.attachSound("boss2loop");
_root.backgroundMusic.start(0, 1000);
}
if (globalTimer == 7500) {
_root.backgroundMusic.attachSound("boss3loop");
_root.backgroundMusic.start(0, 1000);
}
if (((globalTimer == 2020) || (globalTimer == 4990)) || (globalTimer == 7630)) {
var _local20 = _root.attachMovie("Boss6", "Boss6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(_local20);
}
if ((((((globalTimer == 2512) || (globalTimer == 5402)) || (globalTimer == 6202)) || (globalTimer == 8002)) || (globalTimer == 9002)) || (globalTimer == 10002)) {
_root.blackOutMC.gotoAndPlay(2);
}
if (globalTimer == 3180) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 92;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 268;
enemies.push(_local15);
}
if (globalTimer == 3190) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 332;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 508;
enemies.push(_local15);
}
if (globalTimer == 3184) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 572;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 748;
enemies.push(_local15);
}
if (((globalTimer == 3510) || (globalTimer == 3552)) || (globalTimer == 3595)) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 332;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 508;
enemies.push(_local15);
}
if (globalTimer == 3740) {
_root.erasePowerUps = false;
var _local5 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = -5;
_local5._y = 256;
_local5.speed = 3;
}
if (globalTimer == 3770) {
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = -5;
_local3._y = 200;
_local3.speed = 3;
}
if (globalTimer == 3800) {
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 144;
}
if (globalTimer == 3830) {
var _local18 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.erasePowerUps = true;
_local18._x = -5;
_local18._y = 88;
}
if (globalTimer == 3991) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.turrettype = 1;
_local2._x = 42;
enemies.push(_local2);
}
if (globalTimer == 3993) {
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._rotation = 180;
_local2.turrettype = 3;
_local2._x = 710;
enemies.push(_local2);
}
if (globalTimer == 4051) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.turrettype = 2;
_local2._x = 42;
enemies.push(_local2);
}
if (globalTimer == 4053) {
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._rotation = 180;
_local2.turrettype = 4;
_local2._x = 710;
enemies.push(_local2);
}
if (globalTimer == 4111) {
_root.soundFX.attachSound("butapp2");
_root.soundFX.start();
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2.turrettype = 1;
_local2._x = 42;
enemies.push(_local2);
}
if (globalTimer == 4113) {
var _local2 = _root.attachMovie("EnemyShip42", "EnemyShip42" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._rotation = 180;
_local2.turrettype = 3;
_local2._x = 710;
enemies.push(_local2);
}
if (globalTimer == 4310) {
_root.erasePowerUps = false;
var _local5 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = 765;
_local5._y = 256;
_local5.speed = -3;
}
if (globalTimer == 4340) {
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = 765;
_local3._y = 200;
_local3.speed = -3;
}
if (globalTimer == 4370) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 144;
}
if (globalTimer == 4400) {
var _local18 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.erasePowerUps = true;
_local18._x = 765;
_local18._y = 88;
}
if (globalTimer == 4394) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 592;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 768;
enemies.push(_local15);
}
if (globalTimer == 4432) {
var _local16 = _root.attachMovie("EnemyShip44", "EnemyShip44" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local16._x = 248;
enemies.push(_local16);
var _local15 = _root.attachMovie("EnemyShip45", "EnemyShip45" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local15._x = 424;
enemies.push(_local15);
}
if (globalTimer == 6900) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 266;
}
if (globalTimer == 6930) {
var _local18 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = 765;
_local18._y = 210;
}
if (globalTimer == 6960) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 154;
}
if (globalTimer == 6990) {
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = 765;
_local3._y = 98;
_local3.speed = -3;
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 334;
}
if (globalTimer == 7020) {
var _local18 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = 765;
_local18._y = 278;
}
if (globalTimer == 7050) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 222;
}
if (globalTimer == 7080) {
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = 765;
_local3._y = 166;
_local3.speed = -3;
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 402;
}
if (globalTimer == 7110) {
var _local18 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = 765;
_local18._y = 346;
}
if (globalTimer == 7140) {
var _local14 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = 765;
_local14._y = 290;
}
if (globalTimer == 7170) {
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = 765;
_local3._y = 234;
_local3.speed = -3;
}
if (globalTimer == 6885) {
_root.erasePowerUps = false;
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 300;
}
if (globalTimer == 6915) {
var _local18 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = -5;
_local18._y = 244;
}
if (globalTimer == 6945) {
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 188;
}
if (globalTimer == 6975) {
var _local5 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = -5;
_local5._y = 132;
_local5.speed = 3;
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 368;
}
if (globalTimer == 7005) {
var _local18 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = -5;
_local18._y = 312;
}
if (globalTimer == 7035) {
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 256;
}
if (globalTimer == 7065) {
var _local5 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = -5;
_local5._y = 200;
_local5.speed = 3;
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 436;
}
if (globalTimer == 7095) {
var _local18 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local18._x = -5;
_local18._y = 380;
}
if (globalTimer == 7125) {
var _local14 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local14._x = -5;
_local14._y = 324;
}
if (globalTimer == 7155) {
var _local5 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = -5;
_local5._y = 268;
_local5.speed = 3;
}
if (globalTimer == 7200) {
_root.erasePowerUps = true;
}
if ((globalTimer == 3030) || (globalTimer == 6630)) {
_root.backgroundMusic.attachSound("6loop");
_root.backgroundMusic.start(0, 1000);
}
if (_root.bossDead == true) {
bossDeadCounter = bossDeadCounter + 1;
}
if (bossDeadCounter == 50) {
if ((_root.difficulty == 0.5) && (_root.medal21 == false)) {
_root.medal21 = true;
_root.savefile.data.medal21 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 1) && (_root.medal24 == false)) {
_root.medal24 = true;
_root.savefile.data.medal24 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.difficulty == 2) && (_root.medal27 == false)) {
_root.medal27 = true;
_root.savefile.data.medal27 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
}
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
if (bossDeadCounter == 100) {
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (bossDeadCounter > 100) {
_root.ship._y = _root.ship._y - 30;
if (_root.ship._y < -30) {
_root.gamepaused = false;
_root.erasePowerUps = true;
Key.removeListener(myPauseListener);
_root.success.gotoAndPlay("begin");
}
}
}
}
stop();
_root.gamepaused = false;
Key.removeListener(myPauseListener);
var myPauseListener = new Object();
myPauseListener.onKeyUp = function () {
p = Key.getCode();
if (p == 80) {
if (_root.gamepaused == true) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(100);
}
_root.gamepaused = false;
} else if (_root.gamepaused == false) {
if (_root.musicplaying == true) {
_root.backgroundMusic.setVolume(15);
}
var _local2 = _root.attachMovie("Pauser", "Pauser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamepaused = true;
}
}
};
Key.addListener(myPauseListener);
_root.erasePowerUps = true;
_root.ship._visible = true;
_root.cannotshoot = false;
_root.cannotmove = false;
_root.invincible = false;
_root.gameoverStarted = false;
_root.boss4Show = false;
_root.bossDead = false;
_root.coming = 0;
var bossDeadCounter;
bossDeadCounter = 0;
var velocity;
var shootLimiter;
var bombLimiter;
var torpedoLimiter;
var torpedoState;
var sideLimiter;
var sideState;
var globalTimer;
var enemies;
shootLimiter = 0;
bombLimiter = 0;
torpedoLimiter = 0;
sideLimiter = 0;
globalTimer = 0;
enemies = [];
Frame 1587
stop();
Frame 1598
gotoAndPlay ("submit");
Symbol 46 Button
on (rollOver) {
arbu.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 50 Button
on (rollOver) {
bomb.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 56 MovieClip [gameover] Frame 1
stop();
Symbol 56 MovieClip [gameover] Frame 2
stopAllSounds();
_root.soundFX.attachSound("gocrash");
_root.soundFX.start();
_root.onEnterFrame = function () {
};
_root.gameoverStarted = true;
_root.onEnterFrame = function () {
};
Symbol 56 MovieClip [gameover] Frame 28
_root.soundFX.attachSound("missfail");
_root.soundFX.start();
goStats.finalScoreText.text = _root.score;
goStats.levelText.text = _root.level;
Symbol 56 MovieClip [gameover] Frame 44
function onEnterFrame() {
if (Key.isDown(65)) {
keypressed = 1;
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
keypressed = 2;
gotoAndPlay ("keypressed");
}
if (Key.isDown(83)) {
keypressed = 3;
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 56 MovieClip [gameover] Frame 45
function onEnterFrame() {
}
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 56 MovieClip [gameover] Frame 66
if (keypressed == 1) {
_root.gotoAndPlay("startover");
}
if (keypressed == 2) {
if (_root.level == 1) {
_root.gotoAndPlay("stage1");
}
if (_root.level == 2) {
_root.replayChapter = true;
_root.gotoAndPlay("stage2");
}
if (_root.level == 3) {
_root.replayChapter = true;
_root.gotoAndPlay("stage3");
}
if (_root.level == 4) {
_root.replayChapter = true;
_root.gotoAndPlay("stage4");
}
if (_root.level == 5) {
_root.replayChapter = true;
_root.gotoAndPlay("stage5");
}
if (_root.level == 6) {
_root.replayChapter = true;
_root.gotoAndPlay("stage6");
}
}
if (keypressed == 3) {
_root.gotoAndPlay("submit");
}
Symbol 60 MovieClip [ship] Frame 1
function onEnterFrame() {
}
stop();
_root.invincible = false;
_root.cannotmove = false;
Symbol 60 MovieClip [ship] Frame 2
function onEnterFrame() {
if (_root.gamepaused == true) {
this.stop();
} else if (_root.gamepaused == false) {
this.play();
}
}
_root.invincible = true;
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
_root.cannotmove = true;
Symbol 60 MovieClip [ship] Frame 8
if (_root.gameoverStarted == true) {
stop();
_root.ship._visible = false;
}
Symbol 60 MovieClip [ship] Frame 16
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 17
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 18
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 19
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 20
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 21
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 22
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 23
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 24
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 25
this._x = this._x + 15;
Symbol 60 MovieClip [ship] Frame 26
this._x = this._x + 12;
Symbol 60 MovieClip [ship] Frame 27
this._x = this._x + 8;
Symbol 60 MovieClip [ship] Frame 28
this._x = this._x + 4;
Symbol 60 MovieClip [ship] Frame 29
this._x = this._x + 1;
_root.cannotmove = false;
Symbol 60 MovieClip [ship] Frame 75
gotoAndStop (1);
Symbol 60 MovieClip [ship] Frame 77
function onEnterFrame() {
if (_root.gamepaused == true) {
this.stop();
} else if (_root.gamepaused == false) {
this.play();
}
}
_root.invincible = true;
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
_root.cannotmove = true;
Symbol 60 MovieClip [ship] Frame 83
if (_root.gameoverStarted == true) {
stop();
_root.ship._visible = false;
}
Symbol 60 MovieClip [ship] Frame 91
this._y = this._y - 30;
Symbol 60 MovieClip [ship] Frame 92
this._y = this._y - 30;
Symbol 60 MovieClip [ship] Frame 93
this._y = this._y - 20;
Symbol 60 MovieClip [ship] Frame 94
this._y = this._y - 20;
Symbol 60 MovieClip [ship] Frame 95
this._y = this._y - 20;
Symbol 60 MovieClip [ship] Frame 96
this._y = this._y - 20;
Symbol 60 MovieClip [ship] Frame 97
this._y = this._y - 20;
Symbol 60 MovieClip [ship] Frame 98
this._y = this._y - 20;
Symbol 60 MovieClip [ship] Frame 99
this._y = this._y - 15;
Symbol 60 MovieClip [ship] Frame 100
this._y = this._y - 15;
Symbol 60 MovieClip [ship] Frame 101
this._y = this._y - 15;
Symbol 60 MovieClip [ship] Frame 102
this._y = this._y - 12;
Symbol 60 MovieClip [ship] Frame 103
this._y = this._y - 8;
Symbol 60 MovieClip [ship] Frame 104
this._y = this._y - 4;
Symbol 60 MovieClip [ship] Frame 105
this._y = this._y - 1;
_root.cannotmove = false;
Symbol 60 MovieClip [ship] Frame 150
gotoAndStop (1);
Symbol 60 MovieClip [ship] Frame 152
function onEnterFrame() {
if (_root.gamepaused == true) {
this.stop();
} else if (_root.gamepaused == false) {
this.play();
}
}
_root.invincible = true;
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
_root.cannotmove = true;
Symbol 60 MovieClip [ship] Frame 158
if (_root.gameoverStarted == true) {
stop();
_root.ship._visible = false;
}
Symbol 60 MovieClip [ship] Frame 166
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 167
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 168
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 169
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 170
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 171
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 172
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 173
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 174
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 175
this._x = this._x - 15;
Symbol 60 MovieClip [ship] Frame 176
this._x = this._x - 12;
Symbol 60 MovieClip [ship] Frame 177
this._x = this._x - 8;
Symbol 60 MovieClip [ship] Frame 178
this._x = this._x - 4;
Symbol 60 MovieClip [ship] Frame 179
this._x = this._x - 1;
_root.cannotmove = false;
Symbol 60 MovieClip [ship] Frame 225
gotoAndStop (1);
Symbol 60 MovieClip [ship] Frame 227
function onEnterFrame() {
if (_root.gamepaused == true) {
this.stop();
} else if (_root.gamepaused == false) {
this.play();
}
}
_root.invincible = true;
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
_root.cannotmove = true;
Symbol 60 MovieClip [ship] Frame 233
if (_root.gameoverStarted == true) {
stop();
_root.ship._visible = false;
}
Symbol 60 MovieClip [ship] Frame 235
this._y = this._y + 20;
Symbol 60 MovieClip [ship] Frame 236
this._y = this._y + 20;
Symbol 60 MovieClip [ship] Frame 237
this._y = this._y + 20;
Symbol 60 MovieClip [ship] Frame 238
this._y = this._y + 20;
Symbol 60 MovieClip [ship] Frame 239
this._y = this._y + 20;
Symbol 60 MovieClip [ship] Frame 240
this._y = this._y + 15;
Symbol 60 MovieClip [ship] Frame 241
this._y = this._y + 15;
Symbol 60 MovieClip [ship] Frame 242
this._y = this._y + 15;
Symbol 60 MovieClip [ship] Frame 243
this._y = this._y + 15;
Symbol 60 MovieClip [ship] Frame 244
this._y = this._y + 15;
Symbol 60 MovieClip [ship] Frame 245
this._y = this._y + 12;
Symbol 60 MovieClip [ship] Frame 246
this._y = this._y + 8;
Symbol 60 MovieClip [ship] Frame 247
this._y = this._y + 4;
Symbol 60 MovieClip [ship] Frame 248
this._y = this._y + 1;
_root.cannotmove = false;
Symbol 60 MovieClip [ship] Frame 300
gotoAndStop (1);
Symbol 76 Button
on (rollOver) {
playbutt.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
gotoAndPlay ("afterLoad");
}
Symbol 80 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 80 MovieClip Frame 2
gotoAndPlay (1);
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 21
_root.play();
Symbol 1664 MovieClip [__Packages.EnemyShip] Frame 0
class EnemyShip extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip () {
super();
}
function onLoad() {
_x = 860;
if (_root.globalTimer > 0) {
_y = (Math.random() * 300) + 60;
speed = (Math.random() * 3) + 5;
} else {
_y = 260;
speed = 3;
}
shootTimer = 150;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if ((shootTimer > 175) && (_root.globalTimer > (2000 / _root.difficulty))) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 16;
_local4._y = _y - 2;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_root.globalTimer > 0) {
var _local5 = random(12);
if (_local5 == 4) {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
_root.firstblood = true;
removeMovieClip();
_root.updateScore(100);
}
}
Symbol 1665 MovieClip [__Packages.Bomb] Frame 0
class Bomb extends MovieClip
{
var speed, removeMovieClip, _x, hitTest;
function Bomb () {
super();
}
function onLoad() {
speed = -3;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship)) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
_root.bombs++;
removeMovieClip();
}
if (_x < 0) {
removeMovieClip();
}
}
}
}
Symbol 1666 MovieClip [__Packages.BombR] Frame 0
class BombR extends MovieClip
{
var speed, removeMovieClip, _x, hitTest;
function BombR () {
super();
}
function onLoad() {
speed = 3;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship)) {
if (_root.bombs == 9) {
_root.soundFX.attachSound("usePowMaxx");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("max");
} else {
_root.soundFX.attachSound("usePowerup");
_root.soundFX.start();
_root.deathStat4.gotoAndPlay("select");
}
_root.bombs++;
removeMovieClip();
}
if (_x > 780) {
removeMovieClip();
}
}
}
}
Symbol 1667 MovieClip [__Packages.Boss1] Frame 0
class Boss1 extends MovieClip
{
var health, yDirection, _x, speed, _y, shootTimer1, shootTimer2, xDirection, bossappear, removeMovieClip, hitTest, gotoAndPlay;
function Boss1 () {
super();
}
function onLoad() {
health = 400;
_root.bossHealth.bossBar.bossMeter._xscale = 100;
yDirection = 1;
_x = 840;
speed = 2;
_y = (Math.random() * 200) + 150;
shootTimer1 = 0;
shootTimer2 = 40;
xDirection = 2;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.bossHealth.bossBar.bossMeter._xscale = health / 4;
if (_root.bossHealth.bossBar.bossMeter._xscale < 0) {
_root.bossHealth.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - xDirection;
if ((xDirection == 2) && (_x < 570)) {
xDirection = -1;
bossappear = false;
}
if (((xDirection == -1) && (_x > 666)) && (bossappear == false)) {
xDirection = 2;
}
_y = _y + yDirection;
if ((yDirection == 1) && (_y > 350)) {
yDirection = -1;
} else if ((yDirection == -1) && (_y < 150)) {
yDirection = 1;
}
shootTimer1++;
if (shootTimer1 > 80) {
shootTimer1 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 62;
_local4._y = _y - 1;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 62;
_local4._y = _y - 23;
_local4.yDirection = -1;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 62;
_local4._y = _y + 21;
_local4.yDirection = 1;
}
shootTimer2++;
if (shootTimer2 > 80) {
shootTimer2 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 52;
_local4._y = _y - 81;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 52;
_local4._y = _y + 80;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 40;
_local3._y = _y;
_local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 40;
_local3._y = _y + 40;
_local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 40;
_local3._y = _y - 40;
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 20;
removeMovieClip();
_root.updateScore(30000);
_root.bossHealth.bossBar.bossMeter._xscale = 0;
_root.bossHealth.gotoAndPlay("hide");
_root.bossDead = true;
}
}
Symbol 1668 MovieClip [__Packages.Boss2A] Frame 0
class Boss2A extends MovieClip
{
var health, yDirection, _x, speed, _y, shootTimer, xDirection, bossappear, removeMovieClip, hitTest, gotoAndPlay;
function Boss2A () {
super();
}
function onLoad() {
health = 300;
_root.bossHealth.bossBar.bossMeter._xscale = 100;
yDirection = 1;
_x = 820;
speed = 2;
_y = (Math.random() * 200) + 150;
shootTimer = 0;
xDirection = 2;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.bossHealth.bossBar.bossMeter._xscale = health / 3;
if (_root.bossHealth.bossBar.bossMeter._xscale < 0) {
_root.bossHealth.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - xDirection;
if ((xDirection == 2) && (_x < 610)) {
xDirection = -1;
bossappear = false;
}
if (((xDirection == -1) && (_x > 668)) && (bossappear == false)) {
xDirection = 2;
}
_y = _y + yDirection;
if ((yDirection == 1) && (_y > 400)) {
yDirection = -1;
} else if ((yDirection == -1) && (_y < 100)) {
yDirection = 1;
}
shootTimer++;
if (shootTimer > 80) {
shootTimer = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local6 = _root.attachMovie("BossBomb1", "BossBomb1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 12;
_local6._y = _y + 40;
var _local4 = _root.attachMovie("BossBomb2", "BossBomb2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 12;
_local4._y = _y - 44;
var _local3 = _root.attachMovie("BossBomb3", "BossBomb3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 6;
_local3._y = _y - 2;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 50;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local5 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _root.ship._x;
_local5._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 50;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
if (_root.boss2Dead == true) {
_root.backgroundMusic.stop();
}
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 40;
_local4._y = _y;
_local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 40;
_local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y - 40;
var _local6 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x;
_local6._y = _y;
var _local5 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 50;
_local5._y = _y + 25;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y - 25;
_local3.speed = -3;
removeMovieClip();
_root.updateScore(30000);
_root.bossHealth.bossBar.bossMeter._xscale = 0;
_root.bossHealth.gotoAndPlay("hide");
_root.boss1Dead = true;
}
}
Symbol 1669 MovieClip [__Packages.Boss2B] Frame 0
class Boss2B extends MovieClip
{
var health, yDirection, _x, speed, _y, shootTimer, xDirection, bossappear, removeMovieClip, hitTest, gotoAndPlay;
function Boss2B () {
super();
}
function onLoad() {
health = 300;
_root.bossHealth2.bossBar.bossMeter._xscale = 100;
yDirection = -1;
_x = -80;
speed = 2;
_y = (Math.random() * 200) + 150;
shootTimer = 40;
xDirection = 2;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.bossHealth2.bossBar.bossMeter._xscale = health / 3;
if (_root.bossHealth2.bossBar.bossMeter._xscale < 0) {
_root.bossHealth2.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + xDirection;
if ((xDirection == 2) && (_x > 96)) {
xDirection = -1;
bossappear = false;
}
if (((xDirection == -1) && (_x < 32)) && (bossappear == false)) {
xDirection = 2;
}
_y = _y + yDirection;
if ((yDirection == 1) && (_y > 400)) {
yDirection = -1;
} else if ((yDirection == -1) && (_y < 100)) {
yDirection = 1;
}
shootTimer++;
if (shootTimer > 80) {
shootTimer = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local6 = _root.attachMovie("BossBomb4", "BossBomb4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 44;
_local6._y = _y + 40;
var _local5 = _root.attachMovie("BossBomb5", "BossBomb5" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 44;
_local5._y = _y - 44;
var _local4 = _root.attachMovie("BossBomb6", "BossBomb6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 50;
_local4._y = _y - 2;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 50;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 50;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
if (_root.boss1Dead == true) {
_root.backgroundMusic.stop();
}
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 40;
_local4._y = _y;
_local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 40;
_local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y - 40;
var _local6 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x;
_local6._y = _y;
var _local5 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 50;
_local5._y = _y + 25;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y - 25;
_local3.speed = 3;
removeMovieClip();
_root.updateScore(30000);
_root.bossHealth2.bossBar.bossMeter._xscale = 0;
_root.bossHealth2.gotoAndPlay("hide");
_root.boss2Dead = true;
}
}
Symbol 1670 MovieClip [__Packages.Boss3] Frame 0
class Boss3 extends MovieClip
{
var health, yDirection, _x, speed, _y, shootTimer1, shootTimer2, shootTimer3, shootTimer4, shootTimer5, xDirection, bossappear, removeMovieClip, hitTest, gotoAndPlay;
function Boss3 () {
super();
}
function onLoad() {
health = 1200;
_root.bossHealth2.bossBar.bossMeter._xscale = 100;
yDirection = -3;
_x = -100;
speed = 3;
_y = (Math.random() * 200) + 150;
shootTimer1 = 0;
shootTimer2 = 8;
shootTimer3 = 16;
shootTimer4 = 24;
shootTimer5 = 32;
xDirection = 3;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.bossHealth2.bossBar.bossMeter._xscale = health / 12;
if (_root.bossHealth2.bossBar.bossMeter._xscale < 0) {
_root.bossHealth2.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + xDirection;
if ((xDirection == 3) && (_x > 124)) {
xDirection = -3;
bossappear = false;
}
if (((xDirection == -3) && (_x < 74)) && (bossappear == false)) {
xDirection = 3;
}
_y = _y + yDirection;
if ((yDirection == 3) && (_y > 370)) {
yDirection = -3;
} else if ((yDirection == -3) && (_y < 130)) {
yDirection = 3;
}
shootTimer1++;
if (shootTimer1 > 40) {
shootTimer1 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 44;
_local4._y = _y - 72;
}
shootTimer2++;
if (shootTimer2 > 40) {
shootTimer2 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 44;
_local4._y = _y + 72;
}
shootTimer3++;
if (shootTimer3 > 40) {
shootTimer3 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 18;
_local4._y = _y + 2;
}
shootTimer4++;
if (shootTimer4 > 40) {
shootTimer4 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 31;
_local4._y = _y + 37;
}
shootTimer5++;
if (shootTimer5 > 40) {
shootTimer5 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 31;
_local4._y = _y - 35;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.bossDead = true;
_root.backgroundMusic.stop();
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 40;
_local4._y = _y;
_local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 40;
_local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y - 40;
var _local6 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x;
_local6._y = _y;
var _local5 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 50;
_local5._y = _y + 25;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y - 25;
_local3.speed = 3;
removeMovieClip();
_root.updateScore(50000);
_root.bossHealth2.bossBar.bossMeter._xscale = 0;
_root.bossHealth2.gotoAndPlay("hide");
}
}
Symbol 1671 MovieClip [__Packages.Boss4] Frame 0
class Boss4 extends MovieClip
{
var health, _x, _y, shootTimer1, shootTimer2, shootTimer3, shootTimer4, shootTimer5, shootLimit, movesTo, bossappear, removeMovieClip, hitTest, gotoAndPlay;
function Boss4 () {
super();
}
function onLoad() {
health = 2000;
_root.bossHealth4.bossBar.bossMeter._xscale = 100;
_x = 1000;
_y = 168;
if (_root.difficulty == 0.5) {
shootTimer1 = 48;
shootTimer2 = 36;
shootTimer3 = 24;
shootTimer4 = 12;
shootTimer5 = 0;
shootLimit = 60;
} else {
shootTimer1 = 24;
shootTimer2 = 18;
shootTimer3 = 12;
shootTimer4 = 6;
shootTimer5 = 0;
shootLimit = 30;
}
movesTo = 1;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.bossHealth4.bossBar.bossMeter._xscale = health / 20;
if (_root.bossHealth4.bossBar.bossMeter._xscale < 0) {
_root.bossHealth4.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_root.boss4X = _x;
_root.boss4Y = _y;
if (movesTo == 1) {
_root.addextraX = 0;
movement1();
}
if (movesTo == 2) {
_root.addextraX = 12;
movement2();
}
if (_x == -500) {
_x = -230;
_y = 380;
movesTo = 2;
}
if (_x == 1270) {
_x = 1000;
_y = 168;
movesTo = 1;
}
shootTimer1++;
if (shootTimer1 > shootLimit) {
shootTimer1 = 0;
var _local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 40;
_local3._y = _y;
if ((_local3._x < 760) && (_local3._x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer2++;
if (shootTimer2 > shootLimit) {
shootTimer2 = 0;
var _local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 1;
_local3._y = _y + 40;
if ((_local3._x < 760) && (_local3._x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer3++;
if (shootTimer3 > shootLimit) {
shootTimer3 = 0;
var _local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 41;
_local3._y = _y;
if ((_local3._x < 760) && (_local3._x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer4++;
if (shootTimer4 > shootLimit) {
shootTimer4 = 0;
var _local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 1;
_local3._y = _y - 40;
if ((_local3._x < 760) && (_local3._x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer5++;
if (shootTimer5 > shootLimit) {
shootTimer5 = 0;
var _local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 1;
_local3._y = _y;
if ((_local3._x < 760) && (_local3._x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 100;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 100;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function movement1() {
_x = _x - 3;
}
function movement2() {
_x = _x + 3;
}
function explode() {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 40;
_local5._y = _y;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 40;
_local5._y = _y + 40;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 40;
_local5._y = _y - 40;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 70;
_local5._y = _y - 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 70;
_local5._y = _y + 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 70;
_local5._y = _y - 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 70;
_local5._y = _y + 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 130;
_local5._y = _y + 30;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 130;
_local5._y = _y - 30;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 130;
_local5._y = _y + 30;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 130;
_local5._y = _y - 30;
if (_x > 360) {
var _local7 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _x;
_local7._y = _y;
var _local6 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 50;
_local6._y = _y + 50;
_local6 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x - 50;
_local6._y = _y - 50;
var _local4 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 50;
_local4._y = _y - 50;
_local4.speed = -3;
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y + 50;
_local3.speed = -3;
} else {
var _local7 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _x;
_local7._y = _y;
var _local6 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 50;
_local6._y = _y + 50;
_local6 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x - 50;
_local6._y = _y - 50;
var _local4 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 50;
_local4._y = _y - 50;
_local4.speed = 3;
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y + 50;
_local3.speed = 3;
}
removeMovieClip();
_root.updateScore(200000);
_root.bossHealth4.bossBar.bossMeter._xscale = 0;
_root.bossHealth4.gotoAndPlay("hide");
_root.bossDead = true;
}
}
Symbol 1672 MovieClip [__Packages.Boss4Part1] Frame 0
class Boss4Part1 extends MovieClip
{
var health, shootTimer, extraTimer, shootLimit, _x, _y, offsetX, offsetY, removeMovieClip, hitTest, gotoAndPlay;
function Boss4Part1 () {
super();
}
function onLoad() {
health = 150;
shootTimer = 0 + extraTimer;
if (_root.difficulty == 0.5) {
shootLimit = 60;
} else {
shootLimit = 30;
}
_x = -50;
_y = -50;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_x = (_root.boss4X + offsetX) + _root.addextraX;
_y = _root.boss4Y + offsetY;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.bossDead == true) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > shootLimit) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if ((_x < 760) && (_x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
_local4._x = _x;
_local4._y = _y;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 10;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(5000);
}
}
Symbol 1673 MovieClip [__Packages.Boss4Part4] Frame 0
class Boss4Part4 extends MovieClip
{
var health, shootTimer, extraTimer, shootLimit, _x, _y, offsetX, offsetY, removeMovieClip, hitTest, gotoAndPlay;
function Boss4Part4 () {
super();
}
function onLoad() {
health = 150;
shootTimer = 0 + extraTimer;
if (_root.difficulty == 0.5) {
shootLimit = 60;
} else {
shootLimit = 30;
}
_x = -50;
_y = -50;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_x = (_root.boss4X + offsetX) + _root.addextraX;
_y = _root.boss4Y + offsetY;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.bossDead == true) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > shootLimit) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if ((_x < 760) && (_x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
_local4._x = _x;
_local4._y = _y;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 10;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(5000);
}
}
Symbol 1674 MovieClip [__Packages.Boss4Part7] Frame 0
class Boss4Part7 extends MovieClip
{
var health, shootTimer, extraTimer, shootLimit, _x, _y, offsetX, offsetY, removeMovieClip, upordown, hitTest, gotoAndPlay;
function Boss4Part7 () {
super();
}
function onLoad() {
health = 150;
shootTimer = 0 + extraTimer;
if (_root.difficulty == 0.5) {
shootLimit = 60;
} else {
shootLimit = 30;
}
_x = -50;
_y = -50;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_x = (_root.boss4X + offsetX) + _root.addextraX;
_y = _root.boss4Y + offsetY;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.bossDead == true) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > shootLimit) {
shootTimer = 0;
var _local3 = _root.attachMovie("EnemyMissileV", "EnemyMissileV" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (upordown == 1) {
_local3.speed = 10;
} else {
_local3.speed = -10;
}
if ((_x < 760) && (_x > 0)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
_local3._x = _x;
_local3._y = _y;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 10;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(5000);
}
}
Symbol 1675 MovieClip [__Packages.BossBomb1] Frame 0
class BossBomb1 extends MovieClip
{
var yspeed, xspeed, addOnSpeed, removeMovieClip, _y, _x, hitTest;
function BossBomb1 () {
super();
}
function onLoad() {
yspeed = -5;
xspeed = -0.5;
if (_root.difficulty == 0.5) {
addOnSpeed = 0.6;
}
if (_root.difficulty == 1) {
addOnSpeed = 0.8;
}
if (_root.difficulty == 2) {
addOnSpeed = 1;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed - addOnSpeed;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1676 MovieClip [__Packages.BossBomb2] Frame 0
class BossBomb2 extends MovieClip
{
var yspeed, xspeed, addOnSpeed, removeMovieClip, _y, _x, hitTest;
function BossBomb2 () {
super();
}
function onLoad() {
yspeed = 5;
xspeed = -0.5;
if (_root.difficulty == 0.5) {
addOnSpeed = 0.6;
}
if (_root.difficulty == 1) {
addOnSpeed = 0.8;
}
if (_root.difficulty == 2) {
addOnSpeed = 1;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed - addOnSpeed;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1677 MovieClip [__Packages.BossBomb3] Frame 0
class BossBomb3 extends MovieClip
{
var xspeed, addOnSpeed, removeMovieClip, _x, hitTest, _y;
function BossBomb3 () {
super();
}
function onLoad() {
xspeed = -4;
if (_root.difficulty == 0.5) {
addOnSpeed = 0.6;
}
if (_root.difficulty == 1) {
addOnSpeed = 0.8;
}
if (_root.difficulty == 2) {
addOnSpeed = 1;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed - addOnSpeed;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1678 MovieClip [__Packages.BossBomb4] Frame 0
class BossBomb4 extends MovieClip
{
var yspeed, xspeed, addOnSpeed, removeMovieClip, _y, _x, hitTest;
function BossBomb4 () {
super();
}
function onLoad() {
yspeed = -5;
xspeed = 0.5;
if (_root.difficulty == 0.5) {
addOnSpeed = 0.6;
}
if (_root.difficulty == 1) {
addOnSpeed = 0.8;
}
if (_root.difficulty == 2) {
addOnSpeed = 1;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed + addOnSpeed;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1679 MovieClip [__Packages.BossBomb5] Frame 0
class BossBomb5 extends MovieClip
{
var yspeed, xspeed, addOnSpeed, removeMovieClip, _y, _x, hitTest;
function BossBomb5 () {
super();
}
function onLoad() {
yspeed = 5;
xspeed = 0.5;
if (_root.difficulty == 0.5) {
addOnSpeed = 0.6;
}
if (_root.difficulty == 1) {
addOnSpeed = 0.8;
}
if (_root.difficulty == 2) {
addOnSpeed = 1;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed + addOnSpeed;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1680 MovieClip [__Packages.BossBomb6] Frame 0
class BossBomb6 extends MovieClip
{
var xspeed, addOnSpeed, removeMovieClip, _x, hitTest, _y;
function BossBomb6 () {
super();
}
function onLoad() {
xspeed = 4;
if (_root.difficulty == 0.5) {
addOnSpeed = 0.6;
}
if (_root.difficulty == 1) {
addOnSpeed = 0.8;
}
if (_root.difficulty == 2) {
addOnSpeed = 1;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed + addOnSpeed;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1681 MovieClip [__Packages.CityBomb] Frame 0
class CityBomb extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function CityBomb () {
super();
}
function onLoad() {
yspeed = -6;
xspeed = -3;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed + 0.1;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_y > 475) {
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
}
}
}
}
Symbol 1682 MovieClip [__Packages.EnemyMissile] Frame 0
class EnemyMissile extends MovieClip
{
var speed, removeMovieClip, _x, yDirection, _y, hitTest;
function EnemyMissile () {
super();
}
function onLoad() {
speed = -10;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (yDirection) {
_y = _y + (yDirection * 5);
}
if (_root.level == 6) {
_y = _y - 2;
}
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
}
Symbol 1683 MovieClip [__Packages.EnemyMissile2] Frame 0
class EnemyMissile2 extends MovieClip
{
var removeMovieClip, _x, speed, yDirection, _y, hitTest;
function EnemyMissile2 () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (yDirection) {
_y = _y + (yDirection * 5);
}
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
}
Symbol 1684 MovieClip [__Packages.EnemyMissileM] Frame 0
class EnemyMissileM extends MovieClip
{
var speed, myRadians, myDegrees, rotation, exAng, removeMovieClip, _rotation, _y, _x, hitTest;
function EnemyMissileM () {
super();
}
function onLoad() {
speed = 5;
myRadians = (Math.PI/4);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = (myDegrees + 90) + exAng;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_rotation > 180) {
_y = _y + (speed * Math.cos((Math.PI/180) * rotation));
_x = _x - (speed * Math.sin((Math.PI/180) * rotation));
} else {
_y = _y - (speed * Math.cos((Math.PI/180) * rotation));
_x = _x + (speed * Math.sin((Math.PI/180) * rotation));
}
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
}
Symbol 1685 MovieClip [__Packages.EnemyMissileR] Frame 0
class EnemyMissileR extends MovieClip
{
var speed, removeMovieClip, _x, yDirection, _y, hitTest;
function EnemyMissileR () {
super();
}
function onLoad() {
speed = 10;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (yDirection) {
_y = _y + (yDirection * 5);
}
if (_root.level == 6) {
_y = _y - 2;
}
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
}
Symbol 1686 MovieClip [__Packages.EnemyMissileS] Frame 0
class EnemyMissileS extends MovieClip
{
var exAng, speed, myRadians, _y, _x, myDegrees, rotation, removeMovieClip, _rotation, hitTest;
function EnemyMissileS () {
super();
}
function onLoad() {
if (exAng == undefined) {
exAng = 0;
}
speed = 10;
myRadians = Math.atan2(_root.ship._y - _y, _root.ship._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = (myDegrees + 90) + exAng;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_rotation > 180) {
_y = _y + (speed * Math.cos((Math.PI/180) * rotation));
_x = _x - (speed * Math.sin((Math.PI/180) * rotation));
} else {
_y = _y - (speed * Math.cos((Math.PI/180) * rotation));
_x = _x + (speed * Math.sin((Math.PI/180) * rotation));
}
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
}
Symbol 1687 MovieClip [__Packages.EnemyMissileV] Frame 0
class EnemyMissileV extends MovieClip
{
var extraSpeed, removeMovieClip, _y, speed, _x, hitTest;
function EnemyMissileV () {
super();
}
function onLoad() {
if (extraSpeed == undefined) {
extraSpeed = 0;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y + speed;
_x = _x + extraSpeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 60)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1688 MovieClip [__Packages.EnemyShip2] Frame 0
class EnemyShip2 extends MovieClip
{
var _x, _y, speed, health, shootTimer, removeMovieClip, hitTest;
function EnemyShip2 () {
super();
}
function onLoad() {
_x = 860;
if (_root.globalTimer > 0) {
if ((_root.globalTimer < 2000) && (_root.difficulty != 2)) {
_y = (Math.random() * 300) + 100;
speed = (Math.random() * 2) + 3;
} else {
_y = (Math.random() * 300) + 100;
speed = (Math.random() * 2) + 5;
}
} else {
_y = 180;
speed = 2;
}
health = 3;
shootTimer = 120;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > 140) {
shootTimer = 0;
if (_root.globalTimer > 2000) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 36;
_local3._y = _y - 1;
}
if (_root.globalTimer > 0) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 36;
_local3._y = _y - 23;
_local3.yDirection = -1;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 36;
_local3._y = _y + 21;
_local3.yDirection = 1;
}
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_root.globalTimer > 0) {
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
_local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 20;
_local4._y = _y + 20;
}
removeMovieClip();
_root.updateScore(300);
}
}
Symbol 1689 MovieClip [__Packages.EnemyShip3] Frame 0
class EnemyShip3 extends MovieClip
{
var _x, _y, speed, health, bombTimer, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip3 () {
super();
}
function onLoad() {
_x = 860;
_y = (Math.random() * 200) + 100;
speed = 2.4;
health = 20;
bombTimer = 0;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
bombTimer++;
if (bombTimer > 65) {
bombTimer = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local4 = _root.attachMovie("CityBomb", "CityBomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 12;
_local4._y = _y + 30;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
if (_root.globalTimer < 2800) {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 30;
_local4._y = _y + 15;
}
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
if (_root.globalTimer < 2800) {
_local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 30;
_local4._y = _y + 15;
}
}
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1690 MovieClip [__Packages.EnemyShip4] Frame 0
class EnemyShip4 extends MovieClip
{
var _x, _y, speed, health, removeMovieClip, hitTest;
function EnemyShip4 () {
super();
}
function onLoad() {
_x = -100;
_y = (Math.random() * 300) + 60;
speed = 1;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 820) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(200);
}
}
Symbol 1691 MovieClip [__Packages.EnemyShip5] Frame 0
class EnemyShip5 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip5 () {
super();
}
function onLoad() {
_x = -100;
_y = (Math.random() * 410) + 60;
speed = 1.5;
shootTimer = 100;
if (_root.difficulty == 0.5) {
health = 40;
}
if (_root.difficulty == 1) {
health = 60;
}
if (_root.difficulty == 2) {
health = 70;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > 200) {
shootTimer = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 20;
_local3._y = _y - 20;
_local3.yDirection = -0.8;
_local3.speed = -2;
_local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 20;
_local3._y = _y + 20;
_local3.yDirection = 0.8;
_local3.speed = -2;
_local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 20;
_local3._y = _y + 20;
_local3.yDirection = 0.8;
_local3.speed = 4.6;
_local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 20;
_local3._y = _y - 20;
_local3.yDirection = -0.8;
_local3.speed = 4.6;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.speed = 3;
removeMovieClip();
_root.updateScore(3000);
}
}
Symbol 1692 MovieClip [__Packages.EnemyShip6] Frame 0
class EnemyShip6 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip6 () {
super();
}
function onLoad() {
_x = 860;
_y = (Math.random() * 410) + 60;
speed = -1.5;
shootTimer = 100;
if (_root.difficulty == 0.5) {
health = 40;
}
if (_root.difficulty == 1) {
health = 60;
}
if (_root.difficulty == 2) {
health = 70;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x < -40) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > 200) {
shootTimer = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 20;
_local3._y = _y - 20;
_local3.yDirection = -0.8;
_local3.speed = -4.6;
_local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 20;
_local3._y = _y + 20;
_local3.yDirection = 0.8;
_local3.speed = -4.6;
_local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 20;
_local3._y = _y + 20;
_local3.yDirection = 0.8;
_local3.speed = 2;
_local3 = _root.attachMovie("EnemyMissile2", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 20;
_local3._y = _y - 20;
_local3.yDirection = -0.8;
_local3.speed = 2;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 20;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.speed = -3;
removeMovieClip();
_root.updateScore(3000);
}
}
Symbol 1693 MovieClip [__Packages.EnemyShip7] Frame 0
class EnemyShip7 extends MovieClip
{
var _x, _y, speed, health, removeMovieClip, hitTest;
function EnemyShip7 () {
super();
}
function onLoad() {
_x = -40;
_y = (Math.random() * 410) + 60;
speed = 4;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(500);
}
}
Symbol 1694 MovieClip [__Packages.EnemyShip8] Frame 0
class EnemyShip8 extends MovieClip
{
var _x, _y, speed, health, removeMovieClip, hitTest;
function EnemyShip8 () {
super();
}
function onLoad() {
_x = 800;
_y = (Math.random() * 410) + 60;
speed = 4;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(500);
}
}
Symbol 1695 MovieClip [__Packages.EnemyShip9] Frame 0
class EnemyShip9 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip9 () {
super();
}
function onLoad() {
_x = 800;
_y = (Math.random() * 410) + 60;
speed = (Math.random() * 2) + 2;
shootTimer = 150;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer > 175) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 16;
_local4._y = _y - 2;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(300);
}
}
Symbol 1696 MovieClip [__Packages.EnemyShip10] Frame 0
class EnemyShip10 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip10 () {
super();
}
function onLoad() {
_x = -40;
_y = (Math.random() * 410) + 60;
speed = (Math.random() * 2) + 2;
shootTimer = 150;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer > 175) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 16;
_local4._y = _y - 2;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(300);
}
}
Symbol 1697 MovieClip [__Packages.Explosion] Frame 0
class Explosion extends MovieClip
{
var _totalframes, _currentframe, removeMovieClip;
function Explosion () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
removeMovieClip();
}
}
}
Symbol 1698 MovieClip [__Packages.GroundEnemy1] Frame 0
class GroundEnemy1 extends MovieClip
{
var _x, _y, speed, health, shootTimer, removeMovieClip, hitTest;
function GroundEnemy1 () {
super();
}
function onLoad() {
_x = 860;
_y = 464;
speed = 2;
health = 2;
shootTimer = 60;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
shootTimer++;
if ((shootTimer > 280) && (_root.globalTimer > 2400)) {
shootTimer = 0;
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 12;
_local3._y = _y - 40;
_local3.yDirection = -2;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(4);
if (_local6 == 2) {
var _local7 = random(10);
if (_local7 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
}
removeMovieClip();
_root.updateScore(300);
}
}
Symbol 1699 MovieClip [__Packages.EnemyShip11] Frame 0
class EnemyShip11 extends MovieClip
{
var _x, _y, speed, bombTimer, bombTimer2, bombTimer3, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip11 () {
super();
}
function onLoad() {
_x = 860;
_y = 70;
speed = 2.4;
bombTimer = 80;
bombTimer2 = 50;
bombTimer3 = 20;
if (_root.difficulty == 0.5) {
health = 100;
}
if (_root.difficulty == 1) {
health = 120;
}
if (_root.difficulty == 2) {
health = 130;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
bombTimer++;
if (bombTimer > 90) {
bombTimer = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local3 = _root.attachMovie("SkyBomb", "SkyBomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 64;
_local3._y = _y + 30;
}
bombTimer2++;
if (bombTimer2 > 90) {
bombTimer2 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local3 = _root.attachMovie("SkyBomb", "SkyBomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 6;
_local3._y = _y + 30;
}
bombTimer3++;
if (bombTimer3 > 90) {
bombTimer3 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local3 = _root.attachMovie("SkyBomb", "SkyBomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 52;
_local3._y = _y + 30;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 50;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 50;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(5000);
}
}
Symbol 1700 MovieClip [__Packages.EnemyShip12] Frame 0
class EnemyShip12 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip12 () {
super();
}
function onLoad() {
_x = -50;
_y = (Math.random() * 320) + 80;
speed = 2.8;
shootTimer = 80;
if (_root.difficulty == 0.5) {
health = 70;
}
if (_root.difficulty == 1) {
health = 90;
}
if (_root.difficulty == 2) {
health = 100;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer > 120) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 18;
_local4._y = _y - 2;
_local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 8;
_local4._y = _y + 21;
_local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 8;
_local4._y = _y - 25;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1701 MovieClip [__Packages.EnemyShip13] Frame 0
class EnemyShip13 extends MovieClip
{
var _x, _y, speed, health, removeMovieClip, hitTest;
function EnemyShip13 () {
super();
}
function onLoad() {
_x = 800;
_y = (Math.random() * 410) + 60;
speed = 30;
health = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(500);
}
}
Symbol 1702 MovieClip [__Packages.EnemyShip14] Frame 0
class EnemyShip14 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip14 () {
super();
}
function onLoad() {
_x = -40;
_y = (Math.random() * 400) + 70;
speed = (Math.random() * 2) + 2;
shootTimer = 120;
health = 19;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer > 140) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 30;
_local4._y = _y + 2;
_local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 30;
_local4._y = _y - 20;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(500);
}
}
Symbol 1703 MovieClip [__Packages.EnemyShip15] Frame 0
class EnemyShip15 extends MovieClip
{
var _x, _y, speed, shootTimer, shootTimer2, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip15 () {
super();
}
function onLoad() {
_x = -50;
_y = (Math.random() * 340) + 82;
speed = 2.8;
shootTimer = 74;
shootTimer2 = 74;
health = 120;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
shootTimer = shootTimer + 1;
if (shootTimer > 100) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 18;
_local4._y = _y - 2;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
shootTimer2 = shootTimer2 + 1;
if (shootTimer2 > 110) {
shootTimer2 = 10;
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 18;
_local4._y = _y - 2;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(3);
if (_local6 == 2) {
var _local5 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(3000);
}
}
Symbol 1704 MovieClip [__Packages.EnemyShip16] Frame 0
class EnemyShip16 extends MovieClip
{
var _x, _y, speed, yspeed, shootTimer, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip16 () {
super();
}
function onLoad() {
_x = 860;
_y = 80 + _root.enemy16extraY;
speed = 8;
yspeed = 0;
shootTimer = 120;
if (_root.difficulty == 2) {
health = 80;
} else {
health = 60;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
yspeed = yspeed + (0.05 * _root.enemy16ydir);
_x = _x - speed;
_y = _y + yspeed;
if (_x < -100) {
removeMovieClip();
}
shootTimer++;
if (shootTimer > 180) {
shootTimer = 150;
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 22;
_local4._y = _y + 16;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(3);
if (_local6 == 2) {
var _local5 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1705 MovieClip [__Packages.EnemyShip17] Frame 0
class EnemyShip17 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip17 () {
super();
}
function onLoad() {
_x = -40;
_y = (Math.random() * 410) + 66;
speed = (Math.random() * 2) + 4;
shootTimer = 160;
health = 10;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer > 180) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 36;
_local4._y = _y - 10;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(500);
}
}
Symbol 1706 MovieClip [__Packages.EnemyShip18] Frame 0
class EnemyShip18 extends MovieClip
{
var _x, _y, speed, health, myRadians, myDegrees, rotation, removeMovieClip, _rotation, hitTest;
function EnemyShip18 () {
super();
}
function onLoad() {
_x = -40;
_y = (Math.random() * 410) + 60;
speed = 30;
health = 1;
myRadians = Math.atan2(_root.ship._y - _y, _root.ship._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees + 90;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_rotation > 180) {
_y = _y + (speed * Math.cos((Math.PI/180) * rotation));
_x = _x - (speed * Math.sin((Math.PI/180) * rotation));
} else {
_y = _y - (speed * Math.cos((Math.PI/180) * rotation));
_x = _x + (speed * Math.sin((Math.PI/180) * rotation));
}
if ((_x > 800) || (_y < 30)) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(500);
}
}
Symbol 1707 MovieClip [__Packages.EnemyShip19] Frame 0
class EnemyShip19 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip19 () {
super();
}
function onLoad() {
_x = -80;
_y = (Math.random() * 340) + 98;
speed = 2.2;
shootTimer = 74;
health = 220;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
shootTimer = shootTimer + 1;
if (shootTimer > 100) {
shootTimer = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local6 = _root.attachMovie("BossBomb4", "BossBomb4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 16;
_local6._y = _y + 40;
var _local5 = _root.attachMovie("BossBomb5", "BossBomb5" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 16;
_local5._y = _y - 44;
var _local4 = _root.attachMovie("BossBomb6", "BossBomb6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 54;
_local4._y = _y - 32;
_local4 = _root.attachMovie("BossBomb6", "BossBomb6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 54;
_local4._y = _y + 26;
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 12;
_local3._y = _y;
_local3.speed = 3;
removeMovieClip();
_root.updateScore(5000);
}
}
Symbol 1708 MovieClip [__Packages.EnemyShip20] Frame 0
class EnemyShip20 extends MovieClip
{
var _y, _x, xdir, xdirInc, speed, shootTimer, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip20 () {
super();
}
function onLoad() {
_y = 536;
if ((_root.globalTimer < 2200) || (_root.globalTimer > 4200)) {
_x = 140;
xdir = -1;
xdirInc = 0.1;
} else {
_x = 570;
xdir = 1;
xdirInc = -0.1;
}
speed = 2;
shootTimer = 70;
if (_root.difficulty == 0.5) {
health = 110;
}
if (_root.difficulty == 1) {
health = 130;
}
if (_root.difficulty == 2) {
health = 150;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
xdir = xdir + xdirInc;
_x = _x + (xdir * 0.3);
_y = _y - speed;
if ((_x < -40) || (_x > 800)) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
shootTimer = shootTimer + 1;
if (shootTimer > 100) {
shootTimer = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = -45;
_local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = -30;
_local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = -15;
_local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 15;
_local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 30;
_local3 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 45;
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if ((_root.globalTimer < 2200) || (_root.globalTimer > 3200)) {
_local3.speed = -2;
} else {
_local3.speed = 2;
}
removeMovieClip();
_root.updateScore(4000);
}
}
Symbol 1709 MovieClip [__Packages.EnemyShip21] Frame 0
class EnemyShip21 extends MovieClip
{
var speed, _x, _y, health, shootTimer1, shootTimer2, shootTimer3, shootTimer4, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip21 () {
super();
}
function onLoad() {
if (speed > 0) {
_x = -40;
} else {
_x = 800;
}
_y = (Math.random() * 160) + 180;
if (_root.difficulty == 0.5) {
health = 120;
}
if (_root.difficulty == 1) {
health = 140;
}
if (_root.difficulty == 2) {
health = 160;
}
shootTimer1 = 30;
shootTimer2 = 20;
shootTimer3 = 10;
shootTimer4 = 0;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if ((_x > 820) || (_x < -60)) {
removeMovieClip();
}
shootTimer1++;
shootTimer2++;
shootTimer3++;
shootTimer4++;
if (shootTimer1 > 40) {
shootTimer1 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 28;
_local3._y = _y;
}
if (shootTimer2 > 40) {
shootTimer2 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissileV", "EnemyMissileV" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y - 28;
_local3.speed = -10;
}
if (shootTimer3 > 40) {
shootTimer3 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 28;
_local3._y = _y;
}
if (shootTimer4 > 40) {
shootTimer4 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissileV", "EnemyMissileV" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y + 28;
_local3.speed = 10;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (speed > 0) {
_local3.speed = 2;
} else {
_local3.speed = -2;
}
removeMovieClip();
_root.updateScore(5000);
}
}
Symbol 1710 MovieClip [__Packages.EnemyShip22] Frame 0
class EnemyShip22 extends MovieClip
{
var speed, _x, health, shootTimer1, shootTimer2, removeMovieClip, _y, hitTest, gotoAndPlay;
function EnemyShip22 () {
super();
}
function onLoad() {
if (speed > 0) {
_x = -60;
} else {
_x = 820;
}
if (_root.difficulty == 0.5) {
health = 100;
}
if (_root.difficulty == 1) {
health = 110;
}
if (_root.difficulty == 2) {
health = 120;
}
shootTimer1 = 35;
shootTimer2 = 0;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if ((_x > 830) || (_x < -70)) {
removeMovieClip();
}
shootTimer1++;
shootTimer2++;
if (shootTimer1 > 70) {
shootTimer1 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 48;
_local4._y = _y;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 48;
_local4._y = _y;
}
if (shootTimer2 > 70) {
shootTimer2 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (speed > 0) {
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
} else {
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
}
removeMovieClip();
_root.updateScore(4000);
}
}
Symbol 1711 MovieClip [__Packages.EnemyShip23] Frame 0
class EnemyShip23 extends MovieClip
{
var _y, _x, speed, health, removeMovieClip, hitTest;
function EnemyShip23 () {
super();
}
function onLoad() {
_y = 510;
_x = (Math.random() * 680) + 40;
speed = 1;
health = 11;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - speed;
if (_y < 200) {
speed = speed * 1.03;
}
if (_y < 32) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 15;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 45;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 75;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 105;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 135;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 165;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 195;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 225;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 255;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 285;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 315;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 345;
removeMovieClip();
_root.updateScore(200);
}
}
Symbol 1712 MovieClip [__Packages.EnemyShip24] Frame 0
class EnemyShip24 extends MovieClip
{
var speed, health, _x, removeMovieClip, hitTest, _y;
function EnemyShip24 () {
super();
}
function onLoad() {
if (_root.difficulty == 0.5) {
speed = 13;
}
if (_root.difficulty == 1) {
speed = 15;
}
if (_root.difficulty == 2) {
speed = 17;
}
health = 28;
_x = -20;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1713 MovieClip [__Packages.EnemyShip25] Frame 0
class EnemyShip25 extends MovieClip
{
var speed, health, _x, removeMovieClip, hitTest, _y;
function EnemyShip25 () {
super();
}
function onLoad() {
if (_root.difficulty == 0.5) {
speed = -13;
}
if (_root.difficulty == 1) {
speed = -15;
}
if (_root.difficulty == 2) {
speed = -17;
}
health = 28;
_x = 780;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x < -40) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1714 MovieClip [__Packages.EnemyShip26] Frame 0
class EnemyShip26 extends MovieClip
{
var _x, _y, speed, shootTimer1, shootTimer2, health, removeMovieClip, hitTest;
function EnemyShip26 () {
super();
}
function onLoad() {
_x = -40;
_y = (Math.random() * 284) + 120;
speed = (Math.random() * 3) + 3;
shootTimer1 = 80;
shootTimer2 = 86;
health = 20;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer1 = shootTimer1 + 1;
if (shootTimer1 > 100) {
shootTimer1 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local4 = _root.attachMovie("BossBomb6", "BossBomb6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 16;
_local4._y = _y + 8;
}
shootTimer2 = shootTimer2 + 1;
if (shootTimer2 > 100) {
shootTimer2 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local4 = _root.attachMovie("BossBomb6", "BossBomb6" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 16;
_local4._y = _y - 8;
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(1000);
}
}
Symbol 1715 MovieClip [__Packages.EnemyShip27] Frame 0
class EnemyShip27 extends MovieClip
{
var _x, _y, speed, shootTimer1, shootTimer2, health, removeMovieClip, hitTest;
function EnemyShip27 () {
super();
}
function onLoad() {
_x = 800;
_y = (Math.random() * 284) + 120;
speed = (Math.random() * 3) + 3;
shootTimer1 = 80;
shootTimer2 = 86;
health = 20;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -40) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer1 = shootTimer1 + 1;
if (shootTimer1 > 100) {
shootTimer1 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local3 = _root.attachMovie("BossBomb3", "BossBomb3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 16;
_local3._y = _y + 8;
}
shootTimer2 = shootTimer2 + 1;
if (shootTimer2 > 100) {
shootTimer2 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local3 = _root.attachMovie("BossBomb3", "BossBomb3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 16;
_local3._y = _y - 8;
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(1000);
}
}
Symbol 1716 MovieClip [__Packages.EnemyShip28] Frame 0
class EnemyShip28 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip28 () {
super();
}
function onLoad() {
_x = 790;
_y = (Math.random() * 416) + 56;
speed = (Math.random() * 2) + 4;
shootTimer = 0;
health = 12;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -30) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer == 20) {
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 12;
_local4._y = _y;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(1000);
}
}
Symbol 1717 MovieClip [__Packages.EnemyShip29] Frame 0
class EnemyShip29 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip29 () {
super();
}
function onLoad() {
_x = -30;
_y = (Math.random() * 416) + 56;
speed = (Math.random() * 2) + 4;
shootTimer = 0;
health = 12;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 790) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer == 20) {
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 12;
_local4._y = _y;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(1000);
}
}
Symbol 1718 MovieClip [__Packages.Missile] Frame 0
class Missile extends MovieClip
{
var speed, removeMovieClip, _x, _y, hitTest;
function Missile () {
super();
}
function onLoad() {
speed = 20;
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local4 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
removeMovieClip();
_root.enemies[_local3].health = _root.enemies[_local3].health - _root.missilepower;
if (_root.enemies[_local3].health > 0) {
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
_root.enemies[_local3].gotoAndPlay(2);
} else {
_root.enemies[_local3].explode();
}
}
}
if ((_x > 760) || (_x < 0)) {
removeMovieClip();
}
}
}
}
Symbol 1719 MovieClip [__Packages.Missile2] Frame 0
class Missile2 extends MovieClip
{
var speed, removeMovieClip, _x, _y, hitTest;
function Missile2 () {
super();
}
function onLoad() {
speed = 20;
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local4 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
removeMovieClip();
_root.enemies[_local3].health = _root.enemies[_local3].health - _root.missilepower;
if (_root.enemies[_local3].health > 0) {
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
_root.enemies[_local3].gotoAndPlay(2);
} else {
_root.enemies[_local3].explode();
}
}
}
if ((_x > 760) || (_x < 0)) {
removeMovieClip();
}
}
}
}
Symbol 1720 MovieClip [__Packages.PowerUp] Frame 0
class PowerUp extends MovieClip
{
var speed, removeMovieClip, _x, hitTest;
function PowerUp () {
super();
}
function onLoad() {
speed = -3;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship)) {
_root.soundFX.attachSound("powerupPick");
_root.soundFX.start();
removeMovieClip();
_root.pUstate++;
}
if (_x < 0) {
removeMovieClip();
}
}
}
}
Symbol 1721 MovieClip [__Packages.PowerUpR] Frame 0
class PowerUpR extends MovieClip
{
var speed, removeMovieClip, _x, hitTest;
function PowerUpR () {
super();
}
function onLoad() {
speed = 3;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship)) {
_root.soundFX.attachSound("powerupPick");
_root.soundFX.start();
removeMovieClip();
_root.pUstate++;
}
if (_x > 780) {
removeMovieClip();
}
}
}
}
Symbol 1722 MovieClip [__Packages.ShipExplosion] Frame 0
class ShipExplosion extends MovieClip
{
var _totalframes, _currentframe, removeMovieClip;
function ShipExplosion () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
removeMovieClip();
}
}
}
Symbol 1723 MovieClip [__Packages.SideLeft1] Frame 0
class SideLeft1 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function SideLeft1 () {
super();
}
function onLoad() {
yspeed = 20;
xspeed = 8;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x - xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local4 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
removeMovieClip();
_root.enemies[_local3].health = _root.enemies[_local3].health - (_root.sideState * 2);
if (_root.enemies[_local3].health > 0) {
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
_root.enemies[_local3].gotoAndPlay(2);
} else {
_root.enemies[_local3].explode();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss1Show == true) && (_y > 468)) && (_x > 580)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1724 MovieClip [__Packages.SideLeft2] Frame 0
class SideLeft2 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function SideLeft2 () {
super();
}
function onLoad() {
yspeed = 20;
xspeed = 8;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y + yspeed;
_x = _x - xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local4 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
removeMovieClip();
_root.enemies[_local3].health = _root.enemies[_local3].health - (_root.sideState * 2);
if (_root.enemies[_local3].health > 0) {
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
_root.enemies[_local3].gotoAndPlay(2);
} else {
_root.enemies[_local3].explode();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss1Show == true) && (_y > 468)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1725 MovieClip [__Packages.SideRight1] Frame 0
class SideRight1 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function SideRight1 () {
super();
}
function onLoad() {
yspeed = 20;
xspeed = 8;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local4 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
removeMovieClip();
_root.enemies[_local3].health = _root.enemies[_local3].health - (_root.sideState * 2);
if (_root.enemies[_local3].health > 0) {
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
_root.enemies[_local3].gotoAndPlay(2);
} else {
_root.enemies[_local3].explode();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss1Show == true) && (_y > 468)) && (_x > 580)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1726 MovieClip [__Packages.SideRight2] Frame 0
class SideRight2 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function SideRight2 () {
super();
}
function onLoad() {
yspeed = 20;
xspeed = 8;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y + yspeed;
_x = _x + xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local4 = _root.attachMovie("MissHitwall", "MissHitwall" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
removeMovieClip();
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
removeMovieClip();
_root.enemies[_local3].health = _root.enemies[_local3].health - (_root.sideState * 2);
if (_root.enemies[_local3].health > 0) {
_root.soundFX.attachSound("enemydamage");
_root.soundFX.start();
_root.enemies[_local3].gotoAndPlay(2);
} else {
_root.enemies[_local3].explode();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss1Show == true) && (_y > 468)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1727 MovieClip [__Packages.SideUp] Frame 0
class SideUp extends MovieClip
{
var removeMovieClip, _x, speed, hitTest;
function SideUp () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship)) {
if (_root.sideState == 0) {
_root.sideTag.gotoAndPlay("show");
}
_root.soundFX.attachSound("powerupPick");
_root.soundFX.start();
removeMovieClip();
_root.sideState++;
}
if ((_x < 0) || (_x > 760)) {
if (_root.erasePowerUps == true) {
removeMovieClip();
}
}
}
}
}
Symbol 1728 MovieClip [__Packages.SkyBomb] Frame 0
class SkyBomb extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function SkyBomb () {
super();
}
function onLoad() {
yspeed = -6;
xspeed = -3;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
xspeed = xspeed - 0.15;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < -10) || (_x > 780)) || (_y < 32)) || (_y > 510)) {
removeMovieClip();
}
}
}
}
Symbol 1729 MovieClip [__Packages.TorpedoUp] Frame 0
class TorpedoUp extends MovieClip
{
var removeMovieClip, _x, speed, hitTest;
function TorpedoUp () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship)) {
if (_root.torpedoState == 0) {
_root.missTag.gotoAndPlay("show");
}
_root.soundFX.attachSound("powerupPick");
_root.soundFX.start();
removeMovieClip();
_root.torpedoState++;
}
if ((_x < 0) || (_x > 760)) {
if (_root.erasePowerUps == true) {
removeMovieClip();
}
}
}
}
}
Symbol 1730 MovieClip [__Packages.TorpExplosion] Frame 0
class TorpExplosion extends MovieClip
{
var _totalframes, _currentframe, removeMovieClip;
function TorpExplosion () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
removeMovieClip();
}
}
}
Symbol 1731 MovieClip [__Packages.TorpLeft1] Frame 0
class TorpLeft1 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function TorpLeft1 () {
super();
}
function onLoad() {
yspeed = -4;
xspeed = -8;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
function onEnterFrame() {
if (_root.gamepaused == false) {
yspeed = yspeed + 0.05;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
}
for (var _local4 in _root.enemies) {
if (hitTest(_root.enemies[_local4])) {
_root.enemies[_local4].health = _root.enemies[_local4].health - 10;
if (_root.enemies[_local4].health > 0) {
_root.enemies[_local4].gotoAndPlay(2);
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
} else {
_root.enemies[_local4].explode();
removeMovieClip();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss2Show == true) && (_y > 468)) && (_x < 180)) {
removeMovieClip();
}
}
}
}
Symbol 1732 MovieClip [__Packages.TorpLeft2] Frame 0
class TorpLeft2 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function TorpLeft2 () {
super();
}
function onLoad() {
yspeed = -4;
xspeed = -8;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
yspeed = yspeed + 0.05;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y + yspeed;
_x = _x + xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
}
for (var _local4 in _root.enemies) {
if (hitTest(_root.enemies[_local4])) {
_root.enemies[_local4].health = _root.enemies[_local4].health - 10;
if (_root.enemies[_local4].health > 0) {
_root.enemies[_local4].gotoAndPlay(2);
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
} else {
_root.enemies[_local4].explode();
removeMovieClip();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1733 MovieClip [__Packages.TorpRight1] Frame 0
class TorpRight1 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function TorpRight1 () {
super();
}
function onLoad() {
yspeed = -4;
xspeed = 8;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
function onEnterFrame() {
if (_root.gamepaused == false) {
yspeed = yspeed + 0.05;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - yspeed;
_x = _x + xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
}
for (var _local4 in _root.enemies) {
if (hitTest(_root.enemies[_local4])) {
_root.enemies[_local4].health = _root.enemies[_local4].health - 10;
if (_root.enemies[_local4].health > 0) {
_root.enemies[_local4].gotoAndPlay(2);
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
} else {
_root.enemies[_local4].explode();
removeMovieClip();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss1Show == true) && (_y > 468)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1734 MovieClip [__Packages.TorpRight2] Frame 0
class TorpRight2 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, _x, hitTest;
function TorpRight2 () {
super();
}
function onLoad() {
yspeed = -4;
xspeed = 8;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
yspeed = yspeed + 0.05;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y + yspeed;
_x = _x + xspeed;
if ((_root.level == 6) && ((_root.platform1.hitTest(_x, _y, true) || (_root.platform2.hitTest(_x, _y, true))) || (_root.platform3.hitTest(_x, _y, true)))) {
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
}
for (var _local4 in _root.enemies) {
if (hitTest(_root.enemies[_local4])) {
_root.enemies[_local4].health = _root.enemies[_local4].health - 10;
if (_root.enemies[_local4].health > 0) {
_root.enemies[_local4].gotoAndPlay(2);
var _local3 = _root.attachMovie("torpExplosion", "torpExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
} else {
_root.enemies[_local4].explode();
removeMovieClip();
}
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1735 MovieClip [__Packages.GroundEnemy2] Frame 0
class GroundEnemy2 extends MovieClip
{
var _x, _y, speed, health, shootTimer1, shootTimer2, removeMovieClip, hitTest, gotoAndPlay;
function GroundEnemy2 () {
super();
}
function onLoad() {
_x = 864;
_y = 468;
speed = 2;
if (_root.difficulty == 0.5) {
health = 200;
}
if (_root.difficulty == 1) {
health = 220;
}
if (_root.difficulty == 2) {
health = 240;
}
shootTimer1 = 10;
shootTimer2 = 3000;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
shootTimer1++;
if (shootTimer1 > 50) {
shootTimer1 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local3 = _root.attachMovie("BossBomb3", "BossBomb3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 36;
_local3._y = _y - 14;
}
shootTimer2++;
if (shootTimer2 > 3120) {
shootTimer2 = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
var _local5 = _root.attachMovie("BossBomb7", "BossBomb7" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 50;
_local5._y = _y - 8;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 20;
_local5._y = _y;
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 20;
_local4._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 20;
_local4._y = _y;
_local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 20;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(8000);
}
}
Symbol 1736 MovieClip [__Packages.GroundEnemy3] Frame 0
class GroundEnemy3 extends MovieClip
{
var _x, _y, speed, health, shootTimer1, removeMovieClip, hitTest;
function GroundEnemy3 () {
super();
}
function onLoad() {
_x = -50;
_y = 468;
speed = 2;
if (_root.difficulty == 0.5) {
health = 40;
}
if (_root.difficulty == 1) {
health = 50;
}
if (_root.difficulty == 2) {
health = 60;
}
shootTimer1 = 0;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + speed;
if (_x > 800) {
removeMovieClip();
}
shootTimer1++;
if (shootTimer1 > 50) {
shootTimer1 = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 8;
_local3._y = _y - 4;
_local3.exAng = 225;
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x + 18;
_local4._y = _root.ship._y + 8;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(1000);
}
}
Symbol 1737 MovieClip [__Packages.EnemyShip31] Frame 0
class EnemyShip31 extends MovieClip
{
var _x, _y, speed, ydir, godown, health, shootTimer1, shootTimer2, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip31 () {
super();
}
function onLoad() {
_x = 860;
_y = (Math.random() * 200) + 100;
speed = 2.2;
ydir = -1.2;
godown = true;
if (_root.difficulty == 0.5) {
health = 230;
}
if (_root.difficulty == 1) {
health = 250;
}
if (_root.difficulty == 2) {
health = 270;
}
shootTimer1 = 0;
shootTimer2 = 0;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if ((_y < 330) && (godown == true)) {
_y = _y - ydir;
}
if ((_y > 98) && (godown == false)) {
_y = _y + ydir;
}
if (_y >= 330) {
godown = false;
}
if (_y <= 98) {
godown = true;
}
if (_x < -100) {
removeMovieClip();
}
shootTimer1++;
if (shootTimer1 > 40) {
shootTimer1 = 0;
var _local5 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 28;
_local5._y = _y - 48;
_local5 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 28;
_local5._y = _y + 46;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
shootTimer2++;
if (shootTimer2 > 100) {
shootTimer2 = 0;
var _local3 = _root.attachMovie("EnemyShip30", "EnemyShip30" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 10;
_local3._y = _y;
_root.enemies.push(_local3);
_root.soundFX.attachSound("bladesound");
_root.soundFX.start();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
var _local4 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
_local4.speed = -2;
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 30;
_local3._y = _y + 15;
_local3.speed = -2;
removeMovieClip();
_root.updateScore(10000);
}
}
Symbol 1738 MovieClip [__Packages.EnemyShip30] Frame 0
class EnemyShip30 extends MovieClip
{
var exAng, speed, myRadians, _y, _x, myDegrees, rotation, health, removeMovieClip, _rotation, hitTest;
function EnemyShip30 () {
super();
}
function onLoad() {
if (exAng == undefined) {
exAng = 0;
}
speed = 0;
myRadians = Math.atan2(_root.ship._y - _y, _root.ship._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = (myDegrees + 90) + exAng;
health = 50;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
speed = speed + 0.8;
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (health < 0) {
explode();
}
if (_rotation > 180) {
_y = _y + (speed * Math.cos((Math.PI/180) * rotation));
_x = _x - (speed * Math.sin((Math.PI/180) * rotation));
} else {
_y = _y - (speed * Math.cos((Math.PI/180) * rotation));
_x = _x + (speed * Math.sin((Math.PI/180) * rotation));
}
if (_root.bombUnleashed == true) {
explode();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(100);
}
}
Symbol 1739 MovieClip [__Packages.EnemyShip32] Frame 0
class EnemyShip32 extends MovieClip
{
var _x, _y, speed, health, shootTimer1, shootTimer2, shootTimer3, shootTimer4, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip32 () {
super();
}
function onLoad() {
_x = 800;
_y = (Math.random() * 260) + 100;
speed = 1.6;
if (_root.difficulty == 0.5) {
health = 300;
}
if (_root.difficulty == 1) {
health = 340;
}
if (_root.difficulty == 2) {
health = 380;
}
shootTimer1 = 0;
shootTimer2 = -13;
shootTimer3 = -26;
shootTimer4 = -39;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
shootTimer1++;
if (shootTimer1 > 52) {
shootTimer1 = 0;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y - 30;
_local3.exAng = 139;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 28;
_local3._y = _y;
_local3.exAng = 135;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y + 30;
_local3.exAng = 131;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
shootTimer2++;
if (shootTimer2 > 52) {
shootTimer2 = 0;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y - 30;
_local3.exAng = 145;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y + 30;
_local3.exAng = 125;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
shootTimer3++;
if (shootTimer3 > 52) {
shootTimer3 = 0;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y - 30;
_local3.exAng = 155;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y + 30;
_local3.exAng = 115;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
shootTimer4++;
if (shootTimer4 > 52) {
shootTimer4 = 0;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y - 30;
_local3.exAng = 165;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 22;
_local3._y = _y + 30;
_local3.exAng = 105;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 80;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(10);
if (_local6 == 5) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 30;
_local4._y = _y + 15;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
_local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 30;
_local4._y = _y + 15;
}
removeMovieClip();
_root.updateScore(12000);
}
}
Symbol 1740 MovieClip [__Packages.EnemyShip33] Frame 0
class EnemyShip33 extends MovieClip
{
var _x, _y, speed, health, shieldon, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip33 () {
super();
}
function onLoad() {
_x = -10;
_y = 62;
speed = 24;
health = 80;
shieldon = 0;
_root.shieldpart = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
speed = speed - 0.5;
_x = _x + speed;
if (speed < -1) {
speed = -1;
}
if (_x < -30) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 30;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
shieldon = shieldon + 1;
if (shieldon > 200) {
}
}
}
function explode() {
_root.shieldpart = false;
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
if (_root.shieldpos == 1) {
_root.soundFX.attachSound("shielddis");
_root.soundFX.start();
_root.shieldpos = 3;
} else {
_root.shieldpos = 0;
}
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1741 MovieClip [__Packages.EnemyShip34] Frame 0
class EnemyShip34 extends MovieClip
{
var _x, _y, speed, health, shieldon, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip34 () {
super();
}
function onLoad() {
_x = -10;
_y = 426;
speed = 24;
health = 80;
shieldon = 0;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
speed = speed - 0.5;
_x = _x + speed;
if (speed < -1) {
speed = -1;
}
if (_x < -30) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 30;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
shieldon = shieldon + 1;
if ((shieldon == 60) && (_root.shieldpart == true)) {
_root.soundFX.attachSound("shield");
_root.soundFX.start();
var _local3 = _root.attachMovie("EnemyShip35", "EnemyShip35" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y - 182;
_root.enemies.push(_local3);
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
if (_root.shieldpos == 1) {
_root.soundFX.attachSound("shielddis");
_root.soundFX.start();
_root.shieldpos = 2;
} else {
_root.shieldpos = 0;
}
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(2000);
}
}
Symbol 1742 MovieClip [__Packages.EnemyShip35] Frame 0
class EnemyShip35 extends MovieClip
{
var speed, removeMovieClip, gotoAndStop, _x, hitTest;
function EnemyShip35 () {
super();
}
function onLoad() {
speed = -1.5;
_root.shieldpos = 1;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.shieldpos == 0) {
removeMovieClip();
}
if (_root.shieldpos == 2) {
gotoAndStop(2);
}
if (_root.shieldpos == 3) {
gotoAndStop(3);
}
_x = _x + speed;
if (hitTest(_root.ship) && (_root.invincible == false)) {
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_x < -16) {
removeMovieClip();
}
}
}
}
Symbol 1743 MovieClip [__Packages.EnemyShip36] Frame 0
class EnemyShip36 extends MovieClip
{
var _x, _y, speed, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip36 () {
super();
}
function onLoad() {
_x = 820;
_y = (Math.random() * 320) + 70;
speed = 0;
health = 120;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
speed = speed + 0.08;
_x = _x - speed;
if (_x < -100) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(2);
if (_local6 == 0) {
var _local5 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(8000);
}
}
Symbol 1744 MovieClip [__Packages.EnemyShip37] Frame 0
class EnemyShip37 extends MovieClip
{
var _x, _y, speed, health, removeMovieClip, hitTest, gotoAndPlay;
function EnemyShip37 () {
super();
}
function onLoad() {
_x = -80;
_y = (Math.random() * 320) + 70;
speed = 0;
health = 120;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
speed = speed + 0.08;
_x = _x + speed;
if (_x > 840) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local6 = random(2);
if (_local6 == 0) {
var _local5 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
} else {
var _local4 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
removeMovieClip();
_root.updateScore(8000);
}
}
Symbol 1745 MovieClip [__Packages.EnemyShip38] Frame 0
class EnemyShip38 extends MovieClip
{
var _x, _y, speed, shootTimer1, shootTimer2, health, removeMovieClip, hitTest;
function EnemyShip38 () {
super();
}
function onLoad() {
_x = 820;
_y = (Math.random() * 320) + 70;
speed = (Math.random() * 2) + 2;
shootTimer1 = 80;
shootTimer2 = 100;
if (_root.difficulty == 0.5) {
health = 24;
}
if (_root.difficulty == 1) {
health = 28;
}
if (_root.difficulty == 2) {
health = 32;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -50) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local4 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _root.ship._x;
_local4._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer1 = shootTimer1 + 1;
if (shootTimer1 > 140) {
shootTimer1 = 0;
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 32;
_local3._y = _y + 20;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 32;
_local3._y = _y - 20;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
shootTimer2 = shootTimer2 + 1;
if (shootTimer2 > 140) {
shootTimer2 = 0;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 8;
_local3._y = _y;
_local3.exAng = 135;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(4000);
}
}
Symbol 1746 MovieClip [__Packages.EnemyShip39] Frame 0
class EnemyShip39 extends MovieClip
{
var _x, _y, speed, shootTimer, health, removeMovieClip, hitTest;
function EnemyShip39 () {
super();
}
function onLoad() {
_x = 820;
_y = (Math.random() * 320) + 70;
speed = (Math.random() * 2) + 3;
shootTimer = 120;
if (_root.difficulty == 0.5) {
health = 20;
}
if (_root.difficulty == 1) {
health = 24;
}
if (_root.difficulty == 2) {
health = 28;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x - speed;
if (_x < -50) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
explode();
}
shootTimer = shootTimer + 1;
if (shootTimer > 140) {
shootTimer = 0;
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 30;
_local4._y = _y;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.updateScore(4000);
}
}
Symbol 1747 MovieClip [__Packages.MissHitwall] Frame 0
class MissHitwall extends MovieClip
{
var _totalframes, _currentframe, removeMovieClip;
function MissHitwall () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
removeMovieClip();
}
}
}
Symbol 1748 MovieClip [__Packages.EnemyShip42] Frame 0
class EnemyShip42 extends MovieClip
{
var _y, speed, dissapear, shootTimer, health, removeMovieClip, hitTest, gotoAndPlay, turrettype, _x;
function EnemyShip42 () {
super();
}
function onLoad() {
_y = 488;
speed = 2;
dissapear = false;
shootTimer = 8;
if (_root.difficulty == 0.5) {
health = 130;
}
if (_root.difficulty == 1) {
health = 150;
}
if (_root.difficulty == 2) {
health = 180;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - speed;
if (_y == 80) {
dissapear = true;
_root.soundFX.attachSound("butdisapp2");
_root.soundFX.start();
}
if (_y < 70) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
explode();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 40;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
shootTimer = shootTimer + 1;
if ((shootTimer > (20 / _root.difficulty)) && (dissapear == false)) {
shootTimer = 0;
if (turrettype == 1) {
var _local4 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 46;
_local4._y = _y;
}
if (turrettype == 2) {
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 46;
_local4._y = _y;
}
if (turrettype == 3) {
var _local4 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 46;
_local4._y = _y;
}
if (turrettype == 4) {
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 46;
_local4._y = _y;
}
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 12;
_local3._y = _y;
removeMovieClip();
_root.updateScore(4000);
}
}
Symbol 1749 MovieClip [__Packages.EnemyShip44] Frame 0
class EnemyShip44 extends MovieClip
{
var _y, speed, dissapear, removeMovieClip, hitTest;
function EnemyShip44 () {
super();
}
function onLoad() {
_y = 488;
speed = 2;
dissapear = false;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - speed;
if (_y == 80) {
dissapear = true;
}
if (_y < 40) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
}
}
}
Symbol 1750 MovieClip [__Packages.EnemyShip45] Frame 0
class EnemyShip45 extends MovieClip
{
var _y, speed, dissapear, removeMovieClip, hitTest;
function EnemyShip45 () {
super();
}
function onLoad() {
_y = 488;
speed = 2;
dissapear = false;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - speed;
if (_y == 80) {
dissapear = true;
}
if (_y < 40) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
}
}
}
Symbol 1751 MovieClip [__Packages.BossBomb7] Frame 0
class BossBomb7 extends MovieClip
{
var xspeed, yspeed, removeMovieClip, _x, _y, hitTest;
function BossBomb7 () {
super();
}
function onLoad() {
xspeed = -1;
yspeed = -4;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
xspeed = xspeed * 1.16;
yspeed = yspeed * 1.08;
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_y < 250) {
explode();
}
}
}
function explode() {
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
_root.soundFX.attachSound("bulboom");
_root.soundFX.start();
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
var _local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 0;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 15;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 30;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 45;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 60;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 75;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 90;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 105;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 120;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 135;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 150;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 165;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 180;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 195;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 210;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 225;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 240;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 255;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 270;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 285;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 300;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 315;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 330;
_local3 = _root.attachMovie("EnemyMissileM", "EnemyMissileM" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3.exAng = 345;
removeMovieClip();
}
}
Symbol 1752 MovieClip [__Packages.EnemyShip40] Frame 0
class EnemyShip40 extends MovieClip
{
var gotoAndStop, shieldChance, speed, removeMovieClip, _x, hitTest;
function EnemyShip40 () {
super();
}
function onLoad() {
gotoAndStop(shieldChance);
if (_root.bossLeft == true) {
speed = -2;
} else {
speed = 2;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.bossDead == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship) && (_root.invincible == false)) {
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((_x < -10) && (_root.bossLeft == true)) {
removeMovieClip();
}
}
}
}
Symbol 1753 MovieClip [__Packages.Boss5] Frame 0
class Boss5 extends MovieClip
{
var health, _x, _y, shootTimer1, shootTimer2, shootLimit1, shootLimit2, shootTimer3, shootTimer4, shootTimer5, shootTimer6, shootLimit3, shootLimit4, shootLimit5, shootLimit6, shootLimit7, movesTo, bossappear, removeMovieClip, hitTest, gotoAndPlay;
function Boss5 () {
super();
}
function onLoad() {
health = 4000;
_root.bossHealth4.bossBar.bossMeter._xscale = 100;
_x = 956;
_y = 436;
if (_root.difficulty == 0.5) {
shootTimer1 = 0;
shootTimer2 = 10;
shootLimit1 = 40;
shootLimit2 = 80;
shootTimer3 = 0;
shootTimer4 = -16;
shootTimer5 = -32;
shootTimer6 = -48;
shootLimit3 = 64;
shootLimit4 = 64;
shootLimit5 = 64;
shootLimit6 = 64;
shootLimit7 = 128;
}
if (_root.difficulty == 1) {
shootTimer1 = 0;
shootTimer2 = 10;
shootLimit1 = 30;
shootLimit2 = 60;
shootTimer3 = 0;
shootTimer4 = -14;
shootTimer5 = -28;
shootTimer6 = -42;
shootLimit3 = 56;
shootLimit4 = 56;
shootLimit5 = 56;
shootLimit6 = 56;
shootLimit7 = 112;
}
if (_root.difficulty == 2) {
shootTimer1 = 0;
shootTimer2 = 10;
shootLimit1 = 20;
shootLimit2 = 40;
shootTimer3 = 0;
shootTimer4 = -10;
shootTimer5 = -20;
shootTimer6 = -30;
shootLimit3 = 40;
shootLimit4 = 40;
shootLimit5 = 40;
shootLimit6 = 40;
shootLimit7 = 80;
}
movesTo = -2;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
_root.bossHealth4.bossBar.bossMeter._xscale = health / 40;
if (_root.bossHealth4.bossBar.bossMeter._xscale < 0) {
_root.bossHealth4.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + movesTo;
if (_x == -200) {
_root.bossLeft = false;
movesTo = 2;
}
if ((_x == -140) && (movesTo == -2)) {
_root.soundFX.attachSound("shielddis");
_root.soundFX.start();
}
if ((_x == 940) && (movesTo == -2)) {
_root.soundFX.attachSound("shield");
_root.soundFX.start();
var _local7 = random(3) + 1;
var _local4 = _root.attachMovie("EnemyShip40", "EnemyShip40" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 116;
_local4._y = _y - 216;
_local4.shieldChance = _local7;
_root.enemies.push(_local4);
var _local3 = _root.attachMovie("EnemyShip41", "EnemyShip41" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 116;
_local3._y = _y - 216;
_local3.shieldChance = _local7;
_root.enemies.push(_local3);
var _local8 = random(3) + 1;
_local4 = _root.attachMovie("EnemyShip40", "EnemyShip40" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y - 216;
_local4.shieldChance = _local8;
_root.enemies.push(_local4);
_local3 = _root.attachMovie("EnemyShip41", "EnemyShip41" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y - 216;
_local3.shieldChance = _local8;
_root.enemies.push(_local3);
var _local9 = random(3) + 1;
_local4 = _root.attachMovie("EnemyShip40", "EnemyShip40" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 116;
_local4._y = _y - 216;
_local4.shieldChance = _local9;
_root.enemies.push(_local4);
_local3 = _root.attachMovie("EnemyShip41", "EnemyShip41" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 116;
_local3._y = _y - 216;
_local3.shieldChance = _local9;
_root.enemies.push(_local3);
}
if (_x == 960) {
_root.bossLeft = true;
movesTo = -2;
}
shootTimer1++;
if (shootTimer1 > shootLimit1) {
shootTimer1 = 0;
var _local10 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x - 78;
_local10._y = _y - 12;
_local10 = _root.attachMovie("EnemyMissileR", "EnemyMissileR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x + 78;
_local10._y = _y - 12;
if ((_x < 850) && (_x > -90)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer2++;
if (shootTimer2 > shootLimit2) {
shootTimer2 = 0;
var _local10 = _root.attachMovie("EnemyMissileV", "EnemyMissileV" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x - 58;
_local10._y = _y - 48;
_local10.speed = -10;
_local10.extraSpeed = movesTo;
_local10 = _root.attachMovie("EnemyMissileV", "EnemyMissileV" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x + 58;
_local10._y = _y - 48;
_local10.speed = -10;
_local10.extraSpeed = movesTo;
if ((_x < 850) && (_x > -90)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
if (movesTo == -2) {
shootTimer6++;
if (shootTimer6 > shootLimit7) {
shootTimer6 = 0;
var _local5 = _root.attachMovie("EnemyShip30", "EnemyShip30" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y - 12;
_root.enemies.push(_local5);
if ((_x > 0) && (_x < 760)) {
_root.soundFX.attachSound("bladesound");
_root.soundFX.start();
}
}
}
if (movesTo == 2) {
shootTimer3++;
if (shootTimer3 > shootLimit3) {
shootTimer3 = 0;
var _local10 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x + 116;
_local10._y = _y - 60;
if ((_x > -140) && (_x < 850)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer4++;
if (shootTimer4 > shootLimit4) {
shootTimer4 = 0;
var _local10 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x;
_local10._y = _y - 60;
if ((_x > 0) && (_x < 760)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer5++;
if (shootTimer5 > shootLimit5) {
shootTimer5 = 0;
var _local10 = _root.attachMovie("EnemyMissileS", "EnemyMissileS" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local10._x = _x - 116;
_local10._y = _y - 60;
if ((_x > 100) && (_x < 760)) {
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
}
}
shootTimer6++;
if (shootTimer6 > shootLimit6) {
shootTimer6 = 0;
var _local5 = _root.attachMovie("EnemyShip30", "EnemyShip30" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y - 12;
_root.enemies.push(_local5);
if ((_x > 0) && (_x < 760)) {
_root.soundFX.attachSound("bladesound");
_root.soundFX.start();
}
}
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 100;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local6 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _root.ship._x;
_local6._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 100;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.backgroundMusic.stop();
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 40;
_local5._y = _y;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 40;
_local5._y = _y + 40;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 40;
_local5._y = _y - 40;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 70;
_local5._y = _y - 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 70;
_local5._y = _y + 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 70;
_local5._y = _y - 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 70;
_local5._y = _y + 70;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 130;
_local5._y = _y + 30;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 130;
_local5._y = _y - 30;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 130;
_local5._y = _y + 30;
_local5 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 130;
_local5._y = _y - 30;
if (_x > 360) {
var _local7 = _root.attachMovie("Bomb", "Bomb" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _x;
_local7._y = _y;
var _local6 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 50;
_local6._y = _y + 30;
_local6 = _root.attachMovie("PowerUp", "PowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x - 50;
_local6._y = _y - 30;
var _local4 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 50;
_local4._y = _y - 30;
_local4.speed = -3;
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y + 30;
_local3.speed = -3;
} else {
var _local7 = _root.attachMovie("BombR", "BombR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _x;
_local7._y = _y;
var _local6 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 50;
_local6._y = _y + 30;
_local6 = _root.attachMovie("PowerUpR", "PowerUpR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x - 50;
_local6._y = _y - 30;
var _local4 = _root.attachMovie("TorpedoUp", "TorpedoUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 50;
_local4._y = _y - 30;
_local4.speed = 3;
var _local3 = _root.attachMovie("SideUp", "SideUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 50;
_local3._y = _y + 30;
_local3.speed = 3;
}
removeMovieClip();
_root.updateScore(500000);
_root.bossHealth4.bossBar.bossMeter._xscale = 0;
_root.bossHealth4.gotoAndPlay("hide");
_root.bossDead = true;
}
}
Symbol 1754 MovieClip [__Packages.EnemyShip41] Frame 0
class EnemyShip41 extends MovieClip
{
var gotoAndStop, shieldChance, speed, removeMovieClip, _x, hitTest;
function EnemyShip41 () {
super();
}
function onLoad() {
gotoAndStop(shieldChance);
if (_root.bossLeft == true) {
speed = -2;
} else {
speed = 2;
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
if (_root.bossDead == true) {
removeMovieClip();
}
_x = _x + speed;
if (hitTest(_root.ship) && (_root.invincible == false)) {
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((_x < -10) && (_root.bossLeft == true)) {
removeMovieClip();
}
}
}
}
Symbol 1755 MovieClip [__Packages.Boss6] Frame 0
class Boss6 extends MovieClip
{
var health, yDirection, _x, speed, _y, shootTimer, missileTimer, xDirection, bossappear, removeMovieClip, nanoX, nanoY, cloneX, cloneY, hitTest, gotoAndPlay;
function Boss6 () {
super();
}
function onLoad() {
_root.coming++;
if (_root.coming == 1) {
health = 4000;
_root.bossHealth4.bossBar.bossMeter._xscale = 100;
} else {
health = _root.bossHealth4.bossBar.bossMeter._xscale * 40;
}
yDirection = -3;
_x = (Math.random() * 400) + 100;
speed = 3;
_y = 520;
shootTimer = -8;
missileTimer = -16;
xDirection = 3;
bossappear = true;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if ((_root.globalTimer == 3000) || (_root.globalTimer == 6600)) {
bossappear = true;
_root.backgroundMusic.stop();
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
}
if (((_root.globalTimer > 3000) && (_root.globalTimer < 3200)) || ((_root.globalTimer > 6600) && (_root.globalTimer < 6800))) {
_y = _y + 30;
}
if (_y > 550) {
removeMovieClip();
}
if ((((((_root.globalTimer == 2513) || (_root.globalTimer == 5403)) || (_root.globalTimer == 6203)) || (_root.globalTimer == 8003)) || (_root.globalTimer == 9003)) || (_root.globalTimer == 10003)) {
nanoX = _root.ship._x;
nanoY = _root.ship._y;
cloneX = _x;
cloneY = _y;
_root.ship._x = -50;
_root.ship._y = -50;
_x = -150;
_y = -150;
}
if ((((((_root.globalTimer == 2514) || (_root.globalTimer == 5404)) || (_root.globalTimer == 6204)) || (_root.globalTimer == 8004)) || (_root.globalTimer == 9004)) || (_root.globalTimer == 10004)) {
_root.ship._x = cloneX;
_root.ship._y = cloneY;
_x = nanoX;
_y = nanoY;
}
_root.bossHealth4.bossBar.bossMeter._xscale = health / 40;
if (_root.bossHealth4.bossBar.bossMeter._xscale < 0) {
_root.bossHealth4.bossBar.bossMeter._xscale = 0;
}
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + xDirection;
if ((xDirection == 3) && (_x > 740)) {
xDirection = -3;
bossappear = false;
}
if ((xDirection == -3) && (_x < 20)) {
xDirection = 3;
}
_y = _y + yDirection;
if (((yDirection == 3) && (_y > 484)) && (bossappear == false)) {
yDirection = -3;
} else if ((yDirection == -3) && (_y < 50)) {
yDirection = 3;
bossappear = false;
}
shootTimer++;
if (shootTimer > 16) {
shootTimer = 0;
_root.soundFX.attachSound("enemybullet");
_root.soundFX.start();
if (_root.ship._x >= _x) {
var _local6 = _root.attachMovie("BossBullet", "BossBullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = _x + 28;
_local6._y = _y - 2;
_local6.xDirection = 1;
var _local4 = _root.attachMovie("BossSide", "BossSide" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 8;
_local4._y = _y - 18;
_local4.xDirection = 1;
_local4.yDirection = -1;
var _local5 = _root.attachMovie("BossSide2", "BossSide2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x + 8;
_local5._y = _y + 14;
_local5.xDirection = -1;
_local5.yDirection = -1;
}
if (_root.ship._x < _x) {
var _local6 = _root.attachMovie("BossBullet", "BossBullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._rotation = 180;
_local6._x = _x - 28;
_local6._y = _y - 2;
_local6.xDirection = -1;
var _local4 = _root.attachMovie("BossSide", "BossSide" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 4;
_local4._y = _y + 14;
_local4.xDirection = -1;
_local4.yDirection = 1;
var _local5 = _root.attachMovie("BossSide2", "BossSide2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x - 4;
_local5._y = _y - 18;
_local5.xDirection = 1;
_local5.yDirection = 1;
}
}
missileTimer++;
if (missileTimer > 32) {
missileTimer = 0;
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
if (_root.ship._x >= _x) {
var _local3 = _root.attachMovie("BossTorpedo", "BossTorpedo" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 18;
_local3._y = _y + 15;
_local3.yspeed = -4;
_local3.xspeed = 8;
_local3.yDirection = -1;
_local3 = _root.attachMovie("BossTorpedo", "BossTorpedo" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 18;
_local3._y = _y - 13;
_local3.yspeed = -4;
_local3.xspeed = 8;
_local3.yDirection = 1;
}
if (_root.ship._x < _x) {
var _local3 = _root.attachMovie("BossTorpedo", "BossTorpedo" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._rotation = 180;
_local3._x = _x - 10;
_local3._y = _y + 15;
_local3.yspeed = -4;
_local3.xspeed = -8;
_local3.yDirection = -1;
_local3 = _root.attachMovie("BossTorpedo", "BossTorpedo" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._rotation = 180;
_local3._x = _x - 10;
_local3._y = _y - 13;
_local3.yspeed = -4;
_local3.xspeed = -8;
_local3.yDirection = 1;
}
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
health = health - 60;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
_root.afterDeath();
_root.invincible = true;
var _local7 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _root.ship._x;
_local7._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if (_root.bombUnleashed == true) {
health = health - 120;
if (health > 0) {
gotoAndPlay(2);
} else {
explode();
}
}
}
}
function explode() {
_root.bossDead = true;
_root.backgroundMusic.stop();
_root.soundFX.attachSound("shipboom");
_root.soundFX.start();
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 10;
_local3._y = _y - 10;
_local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 10;
_local3._y = _y - 10;
_local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x - 10;
_local3._y = _y + 10;
_local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + 10;
_local3._y = _y + 10;
removeMovieClip();
_root.updateScore(1000000);
_root.bossHealth4.bossBar.bossMeter._xscale = 0;
_root.bossHealth4.gotoAndPlay("hide");
}
}
Symbol 1756 MovieClip [__Packages.BossBullet] Frame 0
class BossBullet extends MovieClip
{
var speed, removeMovieClip, _x, xDirection, hitTest, _y;
function BossBullet () {
super();
}
function onLoad() {
speed = 14;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_x = _x + (xDirection * speed);
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x < 0) || (_x > 760)) || (_y < 32)) || (_y > 500)) {
removeMovieClip();
}
}
}
}
Symbol 1757 MovieClip [__Packages.BossSide] Frame 0
class BossSide extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, yDirection, _x, xDirection, hitTest;
function BossSide () {
super();
}
function onLoad() {
yspeed = 10;
xspeed = 4;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y + (yDirection * yspeed);
_x = _x + (xDirection * xspeed);
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1758 MovieClip [__Packages.BossSide2] Frame 0
class BossSide2 extends MovieClip
{
var yspeed, xspeed, removeMovieClip, _y, yDirection, _x, xDirection, hitTest;
function BossSide2 () {
super();
}
function onLoad() {
yspeed = 10;
xspeed = 4;
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
_y = _y - (yDirection * yspeed);
_x = _x - (xDirection * xspeed);
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1759 MovieClip [__Packages.BossTorpedo] Frame 0
class BossTorpedo extends MovieClip
{
var removeMovieClip, yspeed, _x, xspeed, _y, yDirection, hitTest;
function BossTorpedo () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (_root.gamepaused == false) {
if (_root.gameoverStarted == true) {
removeMovieClip();
}
yspeed = yspeed + 0.05;
_x = _x + xspeed;
_y = _y + (yDirection * yspeed);
if (_root.bombUnleashed == true) {
removeMovieClip();
}
if (hitTest(_root.ship) && (_root.invincible == false)) {
removeMovieClip();
_root.afterDeath();
_root.invincible = true;
var _local3 = _root.attachMovie("shipExplosion", "shipExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship._x;
_local3._y = _root.ship._y;
_root.respawn();
if (_root.lives < 1) {
_root.gameover.gotoAndPlay("begin");
_root.gameover.getNextHighestDepth();
}
}
if ((((_x > 760) || (_x < 0)) || (_y > 505)) || (_y < 34)) {
removeMovieClip();
}
if (((_root.boss4Show == true) && (_y < 62)) && (_x > 580)) {
removeMovieClip();
}
}
}
}
Symbol 1760 MovieClip [__Packages.Pauser] Frame 0
class Pauser extends MovieClip
{
var _x, _y, removeMovieClip;
function Pauser () {
super();
}
function onEnterFrame() {
_x = -4;
_y = -4;
if (_root.gamepaused == false) {
removeMovieClip();
}
}
}
Symbol 1761 MovieClip [__Packages.Background] Frame 0
class Background extends MovieClip
{
var _x, _y;
function Background () {
super();
}
function updateBG() {
if ((_root.level == 1) || (_root.level == 5)) {
_x = _x - 1;
if (_x < -1032) {
_x = 0;
}
}
if (_root.level == 2) {
_y = _y + 1;
if (_y > 1108) {
_y = 308;
}
}
if (_root.level == 3) {
_x = _x + 1;
if (_x > 1032) {
_x = 0;
}
}
if (_root.level == 4) {
_y = _y - 1;
if (_y < -788) {
_y = 12;
}
}
if (_root.level == 6) {
_y = _y - 2;
if (_y < -788) {
_y = 12;
}
}
}
function onEnterFrame() {
if (_root.gamepaused == false) {
updateBG();
}
}
}
Symbol 1762 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 96 MovieClip [Background] Frame 1
#initclip 197
Object.registerClass("Background", Background);
#endinitclip
Symbol 103 MovieClip [EnemyShip] Frame 1
#initclip 100
Object.registerClass("EnemyShip", EnemyShip);
#endinitclip
Instance of Symbol 102 MovieClip in Symbol 103 MovieClip [EnemyShip] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 106 MovieClip [Bomb] Frame 1
#initclip 101
Object.registerClass("Bomb", Bomb);
#endinitclip
Symbol 107 MovieClip [BombR] Frame 1
#initclip 102
Object.registerClass("BombR", BombR);
#endinitclip
Symbol 118 MovieClip [Boss1] Frame 1
#initclip 103
Object.registerClass("Boss1", Boss1);
#endinitclip
stop();
Instance of Symbol 116 MovieClip in Symbol 118 MovieClip [Boss1] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 118 MovieClip [Boss1] Frame 2
play();
Symbol 118 MovieClip [Boss1] Frame 3
play();
Symbol 118 MovieClip [Boss1] Frame 4
gotoAndStop (1);
Symbol 129 MovieClip [Boss2A] Frame 1
#initclip 104
Object.registerClass("Boss2A", Boss2A);
#endinitclip
stop();
Instance of Symbol 127 MovieClip in Symbol 129 MovieClip [Boss2A] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 129 MovieClip [Boss2A] Frame 2
play();
Symbol 129 MovieClip [Boss2A] Frame 3
play();
Symbol 129 MovieClip [Boss2A] Frame 4
gotoAndStop (1);
Symbol 131 MovieClip [Boss2B] Frame 1
#initclip 105
Object.registerClass("Boss2B", Boss2B);
#endinitclip
stop();
Instance of Symbol 127 MovieClip in Symbol 131 MovieClip [Boss2B] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 131 MovieClip [Boss2B] Frame 2
play();
Symbol 131 MovieClip [Boss2B] Frame 3
play();
Symbol 131 MovieClip [Boss2B] Frame 4
gotoAndStop (1);
Symbol 142 MovieClip [Boss3] Frame 1
#initclip 106
Object.registerClass("Boss3", Boss3);
#endinitclip
stop();
Instance of Symbol 140 MovieClip in Symbol 142 MovieClip [Boss3] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 142 MovieClip [Boss3] Frame 2
play();
Symbol 142 MovieClip [Boss3] Frame 3
play();
Symbol 142 MovieClip [Boss3] Frame 4
gotoAndStop (1);
Symbol 146 MovieClip [Boss4] Frame 1
#initclip 107
Object.registerClass("Boss4", Boss4);
#endinitclip
stop();
Symbol 146 MovieClip [Boss4] Frame 2
play();
Symbol 146 MovieClip [Boss4] Frame 3
play();
Symbol 146 MovieClip [Boss4] Frame 4
gotoAndStop (1);
Symbol 150 MovieClip [Boss4Part1] Frame 1
#initclip 108
Object.registerClass("Boss4Part1", Boss4Part1);
#endinitclip
stop();
Symbol 150 MovieClip [Boss4Part1] Frame 2
play();
Symbol 150 MovieClip [Boss4Part1] Frame 3
play();
Symbol 150 MovieClip [Boss4Part1] Frame 4
gotoAndStop (1);
Symbol 151 MovieClip [Boss4Part4] Frame 1
#initclip 109
Object.registerClass("Boss4Part4", Boss4Part4);
#endinitclip
stop();
Symbol 151 MovieClip [Boss4Part4] Frame 2
play();
Symbol 151 MovieClip [Boss4Part4] Frame 3
play();
Symbol 151 MovieClip [Boss4Part4] Frame 4
gotoAndStop (1);
Symbol 152 MovieClip [Boss4Part7] Frame 1
#initclip 110
Object.registerClass("Boss4Part7", Boss4Part7);
#endinitclip
stop();
Symbol 152 MovieClip [Boss4Part7] Frame 2
play();
Symbol 152 MovieClip [Boss4Part7] Frame 3
play();
Symbol 152 MovieClip [Boss4Part7] Frame 4
gotoAndStop (1);
Symbol 155 MovieClip [BossBomb1] Frame 1
#initclip 111
Object.registerClass("BossBomb1", BossBomb1);
#endinitclip
Symbol 156 MovieClip [BossBomb2] Frame 1
#initclip 112
Object.registerClass("BossBomb2", BossBomb2);
#endinitclip
Symbol 157 MovieClip [BossBomb3] Frame 1
#initclip 113
Object.registerClass("BossBomb3", BossBomb3);
#endinitclip
Symbol 158 MovieClip [BossBomb4] Frame 1
#initclip 114
Object.registerClass("BossBomb4", BossBomb4);
#endinitclip
Symbol 159 MovieClip [BossBomb5] Frame 1
#initclip 115
Object.registerClass("BossBomb5", BossBomb5);
#endinitclip
Symbol 160 MovieClip [BossBomb6] Frame 1
#initclip 116
Object.registerClass("BossBomb6", BossBomb6);
#endinitclip
Symbol 163 MovieClip [CityBomb] Frame 1
#initclip 117
Object.registerClass("CityBomb", CityBomb);
#endinitclip
Symbol 165 MovieClip [EnemyMissile] Frame 1
#initclip 118
Object.registerClass("EnemyMissile", EnemyMissile);
#endinitclip
Symbol 166 MovieClip [EnemyMissile2] Frame 1
#initclip 119
Object.registerClass("EnemyMissile2", EnemyMissile2);
#endinitclip
Symbol 167 MovieClip [EnemyMissileM] Frame 1
#initclip 120
Object.registerClass("EnemyMissileM", EnemyMissileM);
#endinitclip
Symbol 168 MovieClip [EnemyMissileR] Frame 1
#initclip 121
Object.registerClass("EnemyMissileR", EnemyMissileR);
#endinitclip
Symbol 169 MovieClip [EnemyMissileS] Frame 1
#initclip 122
Object.registerClass("EnemyMissileS", EnemyMissileS);
#endinitclip
Symbol 170 MovieClip [EnemyMissileV] Frame 1
#initclip 123
Object.registerClass("EnemyMissileV", EnemyMissileV);
#endinitclip
Symbol 181 MovieClip [EnemyShip2] Frame 1
#initclip 124
Object.registerClass("EnemyShip2", EnemyShip2);
#endinitclip
stop();
Instance of Symbol 179 MovieClip in Symbol 181 MovieClip [EnemyShip2] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 181 MovieClip [EnemyShip2] Frame 2
play();
Symbol 181 MovieClip [EnemyShip2] Frame 3
play();
Symbol 181 MovieClip [EnemyShip2] Frame 4
gotoAndStop (1);
Symbol 192 MovieClip [EnemyShip3] Frame 1
#initclip 125
Object.registerClass("EnemyShip3", EnemyShip3);
#endinitclip
stop();
Instance of Symbol 190 MovieClip in Symbol 192 MovieClip [EnemyShip3] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 192 MovieClip [EnemyShip3] Frame 2
play();
Symbol 192 MovieClip [EnemyShip3] Frame 3
play();
Symbol 192 MovieClip [EnemyShip3] Frame 4
gotoAndStop (1);
Symbol 197 MovieClip [EnemyShip4] Frame 1
#initclip 126
Object.registerClass("EnemyShip4", EnemyShip4);
#endinitclip
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip [EnemyShip4] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 201 MovieClip [EnemyShip5] Frame 1
#initclip 127
Object.registerClass("EnemyShip5", EnemyShip5);
#endinitclip
stop();
Symbol 201 MovieClip [EnemyShip5] Frame 2
play();
Symbol 201 MovieClip [EnemyShip5] Frame 3
play();
Symbol 201 MovieClip [EnemyShip5] Frame 4
gotoAndStop (1);
Symbol 202 MovieClip [EnemyShip6] Frame 1
#initclip 128
Object.registerClass("EnemyShip6", EnemyShip6);
#endinitclip
stop();
Symbol 202 MovieClip [EnemyShip6] Frame 2
play();
Symbol 202 MovieClip [EnemyShip6] Frame 3
play();
Symbol 202 MovieClip [EnemyShip6] Frame 4
gotoAndStop (1);
Symbol 207 MovieClip [EnemyShip7] Frame 1
#initclip 129
Object.registerClass("EnemyShip7", EnemyShip7);
#endinitclip
Instance of Symbol 206 MovieClip in Symbol 207 MovieClip [EnemyShip7] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 208 MovieClip [EnemyShip8] Frame 1
#initclip 130
Object.registerClass("EnemyShip8", EnemyShip8);
#endinitclip
Instance of Symbol 206 MovieClip in Symbol 208 MovieClip [EnemyShip8] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 213 MovieClip [EnemyShip9] Frame 1
#initclip 131
Object.registerClass("EnemyShip9", EnemyShip9);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 213 MovieClip [EnemyShip9] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 217 MovieClip [EnemyShip10] Frame 1
#initclip 132
Object.registerClass("EnemyShip10", EnemyShip10);
#endinitclip
Instance of Symbol 216 MovieClip in Symbol 217 MovieClip [EnemyShip10] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 226 MovieClip [Explosion] Frame 1
#initclip 133
Object.registerClass("Explosion", Explosion);
#endinitclip
Symbol 231 MovieClip [GroundEnemy1] Frame 1
#initclip 134
Object.registerClass("GroundEnemy1", GroundEnemy1);
#endinitclip
stop();
Instance of Symbol 229 MovieClip in Symbol 231 MovieClip [GroundEnemy1] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 231 MovieClip [GroundEnemy1] Frame 2
play();
Symbol 231 MovieClip [GroundEnemy1] Frame 3
play();
Symbol 231 MovieClip [GroundEnemy1] Frame 4
gotoAndStop (1);
Symbol 242 MovieClip [EnemyShip11] Frame 1
#initclip 135
Object.registerClass("EnemyShip11", EnemyShip11);
#endinitclip
stop();
Instance of Symbol 240 MovieClip in Symbol 242 MovieClip [EnemyShip11] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 242 MovieClip [EnemyShip11] Frame 2
play();
Symbol 242 MovieClip [EnemyShip11] Frame 3
play();
Symbol 242 MovieClip [EnemyShip11] Frame 4
gotoAndStop (1);
Symbol 251 MovieClip [EnemyShip12] Frame 1
#initclip 136
Object.registerClass("EnemyShip12", EnemyShip12);
#endinitclip
stop();
Instance of Symbol 249 MovieClip in Symbol 251 MovieClip [EnemyShip12] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 251 MovieClip [EnemyShip12] Frame 2
play();
Symbol 251 MovieClip [EnemyShip12] Frame 3
play();
Symbol 251 MovieClip [EnemyShip12] Frame 4
gotoAndStop (1);
Symbol 255 MovieClip [EnemyShip13] Frame 1
#initclip 137
Object.registerClass("EnemyShip13", EnemyShip13);
#endinitclip
Instance of Symbol 254 MovieClip in Symbol 255 MovieClip [EnemyShip13] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 264 MovieClip [EnemyShip14] Frame 1
#initclip 138
Object.registerClass("EnemyShip14", EnemyShip14);
#endinitclip
stop();
Instance of Symbol 262 MovieClip in Symbol 264 MovieClip [EnemyShip14] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 264 MovieClip [EnemyShip14] Frame 2
play();
Symbol 264 MovieClip [EnemyShip14] Frame 3
play();
Symbol 264 MovieClip [EnemyShip14] Frame 4
gotoAndStop (1);
Symbol 270 MovieClip [EnemyShip15] Frame 1
#initclip 139
Object.registerClass("EnemyShip15", EnemyShip15);
#endinitclip
stop();
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip [EnemyShip15] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 270 MovieClip [EnemyShip15] Frame 2
play();
Symbol 270 MovieClip [EnemyShip15] Frame 3
play();
Symbol 270 MovieClip [EnemyShip15] Frame 4
gotoAndStop (1);
Symbol 276 MovieClip [EnemyShip16] Frame 1
#initclip 140
Object.registerClass("EnemyShip16", EnemyShip16);
#endinitclip
stop();
Instance of Symbol 274 MovieClip in Symbol 276 MovieClip [EnemyShip16] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 276 MovieClip [EnemyShip16] Frame 2
play();
Symbol 276 MovieClip [EnemyShip16] Frame 3
play();
Symbol 276 MovieClip [EnemyShip16] Frame 4
gotoAndStop (1);
Symbol 282 MovieClip [EnemyShip17] Frame 1
#initclip 141
Object.registerClass("EnemyShip17", EnemyShip17);
#endinitclip
stop();
Instance of Symbol 280 MovieClip in Symbol 282 MovieClip [EnemyShip17] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 282 MovieClip [EnemyShip17] Frame 2
play();
Symbol 282 MovieClip [EnemyShip17] Frame 3
play();
Symbol 282 MovieClip [EnemyShip17] Frame 4
gotoAndStop (1);
Symbol 286 MovieClip [EnemyShip18] Frame 1
#initclip 142
Object.registerClass("EnemyShip18", EnemyShip18);
#endinitclip
Instance of Symbol 285 MovieClip in Symbol 286 MovieClip [EnemyShip18] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 297 MovieClip [EnemyShip19] Frame 1
#initclip 143
Object.registerClass("EnemyShip19", EnemyShip19);
#endinitclip
stop();
Instance of Symbol 295 MovieClip in Symbol 297 MovieClip [EnemyShip19] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 297 MovieClip [EnemyShip19] Frame 2
play();
Symbol 297 MovieClip [EnemyShip19] Frame 3
play();
Symbol 297 MovieClip [EnemyShip19] Frame 4
gotoAndStop (1);
Symbol 301 MovieClip [EnemyShip20] Frame 1
#initclip 144
Object.registerClass("EnemyShip20", EnemyShip20);
#endinitclip
stop();
Symbol 301 MovieClip [EnemyShip20] Frame 2
play();
Symbol 301 MovieClip [EnemyShip20] Frame 3
play();
Symbol 301 MovieClip [EnemyShip20] Frame 4
gotoAndStop (1);
Symbol 305 MovieClip [EnemyShip21] Frame 1
#initclip 145
Object.registerClass("EnemyShip21", EnemyShip21);
#endinitclip
stop();
Symbol 305 MovieClip [EnemyShip21] Frame 2
play();
Symbol 305 MovieClip [EnemyShip21] Frame 3
play();
Symbol 305 MovieClip [EnemyShip21] Frame 4
gotoAndStop (1);
Symbol 309 MovieClip [EnemyShip22] Frame 1
#initclip 146
Object.registerClass("EnemyShip22", EnemyShip22);
#endinitclip
stop();
Symbol 309 MovieClip [EnemyShip22] Frame 2
play();
Symbol 309 MovieClip [EnemyShip22] Frame 3
play();
Symbol 309 MovieClip [EnemyShip22] Frame 4
gotoAndStop (1);
Symbol 315 MovieClip [EnemyShip23] Frame 1
#initclip 147
Object.registerClass("EnemyShip23", EnemyShip23);
#endinitclip
stop();
Instance of Symbol 313 MovieClip in Symbol 315 MovieClip [EnemyShip23] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 315 MovieClip [EnemyShip23] Frame 2
play();
Symbol 315 MovieClip [EnemyShip23] Frame 3
play();
Symbol 315 MovieClip [EnemyShip23] Frame 4
gotoAndStop (1);
Symbol 319 MovieClip [EnemyShip24] Frame 1
#initclip 148
Object.registerClass("EnemyShip24", EnemyShip24);
#endinitclip
stop();
Symbol 319 MovieClip [EnemyShip24] Frame 2
play();
Symbol 319 MovieClip [EnemyShip24] Frame 3
play();
Symbol 319 MovieClip [EnemyShip24] Frame 4
gotoAndStop (1);
Symbol 321 MovieClip [EnemyShip25] Frame 1
#initclip 149
Object.registerClass("EnemyShip25", EnemyShip25);
#endinitclip
stop();
Symbol 321 MovieClip [EnemyShip25] Frame 2
play();
Symbol 321 MovieClip [EnemyShip25] Frame 3
play();
Symbol 321 MovieClip [EnemyShip25] Frame 4
gotoAndStop (1);
Symbol 330 MovieClip [EnemyShip26] Frame 1
#initclip 150
Object.registerClass("EnemyShip26", EnemyShip26);
#endinitclip
stop();
Instance of Symbol 328 MovieClip in Symbol 330 MovieClip [EnemyShip26] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 330 MovieClip [EnemyShip26] Frame 2
play();
Symbol 330 MovieClip [EnemyShip26] Frame 3
play();
Symbol 330 MovieClip [EnemyShip26] Frame 4
gotoAndStop (1);
Symbol 339 MovieClip [EnemyShip27] Frame 1
#initclip 151
Object.registerClass("EnemyShip27", EnemyShip27);
#endinitclip
stop();
Instance of Symbol 337 MovieClip in Symbol 339 MovieClip [EnemyShip27] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 339 MovieClip [EnemyShip27] Frame 2
play();
Symbol 339 MovieClip [EnemyShip27] Frame 3
play();
Symbol 339 MovieClip [EnemyShip27] Frame 4
gotoAndStop (1);
Symbol 345 MovieClip [EnemyShip28] Frame 1
#initclip 152
Object.registerClass("EnemyShip28", EnemyShip28);
#endinitclip
stop();
Instance of Symbol 343 MovieClip in Symbol 345 MovieClip [EnemyShip28] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 345 MovieClip [EnemyShip28] Frame 2
play();
Symbol 345 MovieClip [EnemyShip28] Frame 3
play();
Symbol 345 MovieClip [EnemyShip28] Frame 4
gotoAndStop (1);
Symbol 351 MovieClip [EnemyShip29] Frame 1
#initclip 153
Object.registerClass("EnemyShip29", EnemyShip29);
#endinitclip
stop();
Instance of Symbol 349 MovieClip in Symbol 351 MovieClip [EnemyShip29] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 351 MovieClip [EnemyShip29] Frame 2
play();
Symbol 351 MovieClip [EnemyShip29] Frame 3
play();
Symbol 351 MovieClip [EnemyShip29] Frame 4
gotoAndStop (1);
Symbol 361 MovieClip [Missile] Frame 1
#initclip 154
Object.registerClass("Missile", Missile);
#endinitclip
Symbol 369 MovieClip [Missile2] Frame 1
#initclip 155
Object.registerClass("Missile2", Missile2);
#endinitclip
Symbol 372 MovieClip [PowerUp] Frame 1
#initclip 156
Object.registerClass("PowerUp", PowerUp);
#endinitclip
Symbol 373 MovieClip [PowerUpR] Frame 1
#initclip 157
Object.registerClass("PowerUpR", PowerUpR);
#endinitclip
Symbol 382 MovieClip [ShipExplosion] Frame 1
#initclip 158
Object.registerClass("ShipExplosion", ShipExplosion);
#endinitclip
Symbol 384 MovieClip [SideLeft1] Frame 1
#initclip 159
Object.registerClass("SideLeft1", SideLeft1);
#endinitclip
Symbol 386 MovieClip [SideLeft2] Frame 1
#initclip 160
Object.registerClass("SideLeft2", SideLeft2);
#endinitclip
Symbol 387 MovieClip [SideRight1] Frame 1
#initclip 161
Object.registerClass("SideRight1", SideRight1);
#endinitclip
Symbol 388 MovieClip [SideRight2] Frame 1
#initclip 162
Object.registerClass("SideRight2", SideRight2);
#endinitclip
Symbol 391 MovieClip [SideUp] Frame 1
#initclip 163
Object.registerClass("SideUp", SideUp);
#endinitclip
Symbol 394 MovieClip [SkyBomb] Frame 1
#initclip 164
Object.registerClass("SkyBomb", SkyBomb);
#endinitclip
Symbol 397 MovieClip [TorpedoUp] Frame 1
#initclip 165
Object.registerClass("TorpedoUp", TorpedoUp);
#endinitclip
Symbol 404 MovieClip [TorpExplosion] Frame 1
#initclip 166
Object.registerClass("TorpExplosion", TorpExplosion);
#endinitclip
Symbol 407 MovieClip [TorpLeft1] Frame 1
#initclip 167
Object.registerClass("TorpLeft1", TorpLeft1);
#endinitclip
Symbol 408 MovieClip [TorpLeft2] Frame 1
#initclip 168
Object.registerClass("TorpLeft2", TorpLeft2);
#endinitclip
Symbol 411 MovieClip [TorpRight1] Frame 1
#initclip 169
Object.registerClass("TorpRight1", TorpRight1);
#endinitclip
Symbol 412 MovieClip [TorpRight2] Frame 1
#initclip 170
Object.registerClass("TorpRight2", TorpRight2);
#endinitclip
Symbol 417 MovieClip [GroundEnemy2] Frame 1
#initclip 171
Object.registerClass("GroundEnemy2", GroundEnemy2);
#endinitclip
stop();
Instance of Symbol 415 MovieClip in Symbol 417 MovieClip [GroundEnemy2] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 417 MovieClip [GroundEnemy2] Frame 2
play();
Symbol 417 MovieClip [GroundEnemy2] Frame 3
play();
Symbol 417 MovieClip [GroundEnemy2] Frame 4
gotoAndStop (1);
Symbol 422 MovieClip [GroundEnemy3] Frame 1
#initclip 172
Object.registerClass("GroundEnemy3", GroundEnemy3);
#endinitclip
stop();
Instance of Symbol 420 MovieClip in Symbol 422 MovieClip [GroundEnemy3] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 422 MovieClip [GroundEnemy3] Frame 2
play();
Symbol 422 MovieClip [GroundEnemy3] Frame 3
play();
Symbol 422 MovieClip [GroundEnemy3] Frame 4
gotoAndStop (1);
Symbol 433 MovieClip [EnemyShip31] Frame 1
#initclip 173
Object.registerClass("EnemyShip31", EnemyShip31);
#endinitclip
stop();
Instance of Symbol 431 MovieClip in Symbol 433 MovieClip [EnemyShip31] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 433 MovieClip [EnemyShip31] Frame 2
play();
Symbol 433 MovieClip [EnemyShip31] Frame 3
play();
Symbol 433 MovieClip [EnemyShip31] Frame 4
gotoAndStop (1);
Symbol 439 MovieClip [EnemyShip30] Frame 1
#initclip 174
Object.registerClass("EnemyShip30", EnemyShip30);
#endinitclip
stop();
Instance of Symbol 437 MovieClip in Symbol 439 MovieClip [EnemyShip30] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 439 MovieClip [EnemyShip30] Frame 2
play();
Symbol 439 MovieClip [EnemyShip30] Frame 3
play();
Symbol 439 MovieClip [EnemyShip30] Frame 4
gotoAndStop (1);
Symbol 450 MovieClip [EnemyShip32] Frame 1
#initclip 175
Object.registerClass("EnemyShip32", EnemyShip32);
#endinitclip
stop();
Instance of Symbol 448 MovieClip in Symbol 450 MovieClip [EnemyShip32] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 450 MovieClip [EnemyShip32] Frame 2
play();
Symbol 450 MovieClip [EnemyShip32] Frame 3
play();
Symbol 450 MovieClip [EnemyShip32] Frame 4
gotoAndStop (1);
Symbol 454 MovieClip [EnemyShip33] Frame 1
#initclip 176
Object.registerClass("EnemyShip33", EnemyShip33);
#endinitclip
stop();
Symbol 454 MovieClip [EnemyShip33] Frame 2
play();
Symbol 454 MovieClip [EnemyShip33] Frame 3
play();
Symbol 454 MovieClip [EnemyShip33] Frame 4
gotoAndStop (1);
Symbol 458 MovieClip [EnemyShip34] Frame 1
#initclip 177
Object.registerClass("EnemyShip34", EnemyShip34);
#endinitclip
stop();
Symbol 458 MovieClip [EnemyShip34] Frame 2
play();
Symbol 458 MovieClip [EnemyShip34] Frame 3
play();
Symbol 458 MovieClip [EnemyShip34] Frame 4
gotoAndStop (1);
Symbol 465 MovieClip [EnemyShip35] Frame 1
#initclip 178
Object.registerClass("EnemyShip35", EnemyShip35);
#endinitclip
stop();
Instance of Symbol 461 MovieClip in Symbol 465 MovieClip [EnemyShip35] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 465 MovieClip [EnemyShip35] Frame 2
stop();
Instance of Symbol 464 MovieClip in Symbol 465 MovieClip [EnemyShip35] Frame 2
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 465 MovieClip [EnemyShip35] Frame 3
stop();
Symbol 471 MovieClip [EnemyShip36] Frame 1
#initclip 179
Object.registerClass("EnemyShip36", EnemyShip36);
#endinitclip
stop();
Instance of Symbol 469 MovieClip in Symbol 471 MovieClip [EnemyShip36] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 471 MovieClip [EnemyShip36] Frame 2
play();
Symbol 471 MovieClip [EnemyShip36] Frame 3
play();
Symbol 471 MovieClip [EnemyShip36] Frame 4
gotoAndStop (1);
Symbol 473 MovieClip [EnemyShip37] Frame 1
#initclip 180
Object.registerClass("EnemyShip37", EnemyShip37);
#endinitclip
stop();
Instance of Symbol 469 MovieClip in Symbol 473 MovieClip [EnemyShip37] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 473 MovieClip [EnemyShip37] Frame 2
play();
Symbol 473 MovieClip [EnemyShip37] Frame 3
play();
Symbol 473 MovieClip [EnemyShip37] Frame 4
gotoAndStop (1);
Symbol 482 MovieClip [EnemyShip38] Frame 1
#initclip 181
Object.registerClass("EnemyShip38", EnemyShip38);
#endinitclip
stop();
Instance of Symbol 480 MovieClip in Symbol 482 MovieClip [EnemyShip38] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 482 MovieClip [EnemyShip38] Frame 2
play();
Symbol 482 MovieClip [EnemyShip38] Frame 3
play();
Symbol 482 MovieClip [EnemyShip38] Frame 4
gotoAndStop (1);
Symbol 490 MovieClip [EnemyShip39] Frame 1
#initclip 182
Object.registerClass("EnemyShip39", EnemyShip39);
#endinitclip
stop();
Instance of Symbol 488 MovieClip in Symbol 490 MovieClip [EnemyShip39] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 490 MovieClip [EnemyShip39] Frame 2
play();
Symbol 490 MovieClip [EnemyShip39] Frame 3
play();
Symbol 490 MovieClip [EnemyShip39] Frame 4
gotoAndStop (1);
Symbol 495 MovieClip [MissHitwall] Frame 1
#initclip 183
Object.registerClass("MissHitwall", MissHitwall);
#endinitclip
Symbol 501 MovieClip [EnemyShip42] Frame 1
#initclip 184
Object.registerClass("EnemyShip42", EnemyShip42);
#endinitclip
stop();
Instance of Symbol 499 MovieClip "thing" in Symbol 501 MovieClip [EnemyShip42] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
if (_parent.dissapear == true) {
this.play();
}
if ((this._currentframe == 8) && (_parent.dissapear == false)) {
this.stop();
}
if ((this._currentframe == 15) && (_parent.dissapear == true)) {
this.stop();
}
}
Symbol 501 MovieClip [EnemyShip42] Frame 2
play();
Symbol 501 MovieClip [EnemyShip42] Frame 3
play();
Symbol 501 MovieClip [EnemyShip42] Frame 4
gotoAndStop (1);
Symbol 520 MovieClip Frame 9
_root.soundFX.attachSound("doorboom");
_root.soundFX.start();
Symbol 521 MovieClip [EnemyShip44] Frame 1
#initclip 185
Object.registerClass("EnemyShip44", EnemyShip44);
#endinitclip
Instance of Symbol 520 MovieClip in Symbol 521 MovieClip [EnemyShip44] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
if ((this._currentframe == 18) && (_parent.dissapear == true)) {
this.stop();
}
}
Symbol 539 MovieClip [EnemyShip45] Frame 1
#initclip 186
Object.registerClass("EnemyShip45", EnemyShip45);
#endinitclip
Instance of Symbol 538 MovieClip in Symbol 539 MovieClip [EnemyShip45] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
if ((this._currentframe == 18) && (_parent.dissapear == true)) {
this.stop();
}
}
Symbol 540 MovieClip [BossBomb7] Frame 1
#initclip 187
Object.registerClass("BossBomb7", BossBomb7);
#endinitclip
Symbol 551 MovieClip [EnemyShip40] Frame 1
#initclip 188
Object.registerClass("EnemyShip40", EnemyShip40);
#endinitclip
stop();
Instance of Symbol 544 MovieClip in Symbol 551 MovieClip [EnemyShip40] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 551 MovieClip [EnemyShip40] Frame 2
stop();
Instance of Symbol 547 MovieClip in Symbol 551 MovieClip [EnemyShip40] Frame 2
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 551 MovieClip [EnemyShip40] Frame 3
stop();
Instance of Symbol 550 MovieClip in Symbol 551 MovieClip [EnemyShip40] Frame 3
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 557 MovieClip [Boss5] Frame 1
#initclip 189
Object.registerClass("Boss5", Boss5);
#endinitclip
stop();
Instance of Symbol 555 MovieClip in Symbol 557 MovieClip [Boss5] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 557 MovieClip [Boss5] Frame 2
play();
Symbol 557 MovieClip [Boss5] Frame 3
play();
Symbol 557 MovieClip [Boss5] Frame 4
gotoAndStop (1);
Symbol 564 MovieClip [EnemyShip41] Frame 1
#initclip 190
Object.registerClass("EnemyShip41", EnemyShip41);
#endinitclip
stop();
Instance of Symbol 560 MovieClip in Symbol 564 MovieClip [EnemyShip41] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 564 MovieClip [EnemyShip41] Frame 2
stop();
Instance of Symbol 563 MovieClip in Symbol 564 MovieClip [EnemyShip41] Frame 2
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 564 MovieClip [EnemyShip41] Frame 3
stop();
Symbol 568 MovieClip [Boss6] Frame 1
#initclip 191
Object.registerClass("Boss6", Boss6);
#endinitclip
stop();
Symbol 568 MovieClip [Boss6] Frame 2
play();
Symbol 568 MovieClip [Boss6] Frame 3
play();
Symbol 568 MovieClip [Boss6] Frame 4
gotoAndStop (1);
Symbol 570 MovieClip [BossBullet] Frame 1
#initclip 192
Object.registerClass("BossBullet", BossBullet);
#endinitclip
Symbol 572 MovieClip [BossSide] Frame 1
#initclip 193
Object.registerClass("BossSide", BossSide);
#endinitclip
Symbol 574 MovieClip [BossSide2] Frame 1
#initclip 194
Object.registerClass("BossSide2", BossSide2);
#endinitclip
Symbol 576 MovieClip [BossTorpedo] Frame 1
#initclip 195
Object.registerClass("BossTorpedo", BossTorpedo);
#endinitclip
Symbol 579 MovieClip [Pauser] Frame 1
#initclip 196
Object.registerClass("Pauser", Pauser);
#endinitclip
Symbol 612 MovieClip Frame 1
stop();
Symbol 624 Button
on (rollOver) {
arc.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 626 MovieClip Frame 3
function onEnterFrame() {
rrrbg._y = rrrbg._y - 1;
}
Symbol 626 MovieClip Frame 22
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 626 MovieClip Frame 196
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 626 MovieClip Frame 216
function onEnterFrame() {
}
Symbol 626 MovieClip Frame 220
_root.play();
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 27
gotoAndStop (1);
Symbol 631 MovieClip Frame 53
gotoAndStop (1);
Symbol 645 Button
on (rollOver) {
rrr.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.ratherrandomreality.com", "_blank");
}
Symbol 650 Button
on (rollOver) {
rrrt.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.ratherrandomreality.com", "_blank");
}
Symbol 654 MovieClip Frame 2
function onEnterFrame() {
rrrbg._y = rrrbg._y - 1;
}
Symbol 654 MovieClip Frame 4
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
Symbol 654 MovieClip Frame 8
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
Symbol 654 MovieClip Frame 22
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 654 MovieClip Frame 49
_root.soundFX = new Sound();
_root.soundFX.attachSound("bombfalls");
_root.soundFX.start();
Symbol 654 MovieClip Frame 65
_root.soundFX = new Sound();
_root.soundFX.attachSound("gocrash");
_root.soundFX.start();
Symbol 654 MovieClip Frame 151
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 654 MovieClip Frame 168
function onEnterFrame() {
}
Symbol 654 MovieClip Frame 174
_root.play();
Symbol 683 MovieClip Frame 11
stop();
Symbol 683 MovieClip Frame 23
stop();
Symbol 683 MovieClip Frame 35
stop();
Symbol 683 MovieClip Frame 47
stop();
Symbol 683 MovieClip Frame 59
stop();
Symbol 683 MovieClip Frame 71
stop();
Symbol 683 MovieClip Frame 83
stop();
Symbol 683 MovieClip Frame 95
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 3
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
stop();
Symbol 691 MovieClip Frame 3
stop();
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 2
stop();
Symbol 695 MovieClip Frame 3
stop();
Instance of Symbol 697 MovieClip "c1" in Symbol 701 MovieClip Frame 1
on (rollOver) {
_root.diffBar.c1.useHandCursor = false;
if (_root.diffBar.easyBut._currentframe == 3) {
}
if (_root.diffBar.easyBut._currentframe == 1) {
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
_root.diffBar.easyBut.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.diffBar.easyBut._currentframe == 3) {
}
if (_root.diffBar.easyBut._currentframe == 2) {
_root.diffBar.easyBut.gotoAndStop(1);
}
}
on (dragOut) {
if (_root.diffBar.easyBut._currentframe == 3) {
}
if (_root.diffBar.easyBut._currentframe == 2) {
_root.diffBar.easyBut.gotoAndStop(1);
}
}
on (press) {
if (_root.difficulty != 0.5) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.diffBar.easyBut.gotoAndStop(3);
_root.diffBar.normBut.gotoAndStop(1);
_root.diffBar.hardBut.gotoAndStop(1);
_root.difficulty = 0.5;
if (_root.multi == 1) {
_root.diffBar.diffExp.gotoAndPlay("x1");
}
if (_root.multi == 2) {
_root.diffBar.diffExp.gotoAndPlay("x2");
}
if (_root.multi == 3) {
_root.diffBar.diffExp.gotoAndPlay("x3");
}
if (_root.multi == 4) {
_root.diffBar.diffExp.gotoAndPlay("x4");
}
}
}
Instance of Symbol 699 MovieClip "c2" in Symbol 701 MovieClip Frame 1
on (rollOver) {
_root.diffBar.c2.useHandCursor = false;
if (_root.diffBar.normBut._currentframe == 3) {
}
if (_root.diffBar.normBut._currentframe == 1) {
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
_root.diffBar.normBut.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.diffBar.normBut._currentframe == 3) {
}
if (_root.diffBar.normBut._currentframe == 2) {
_root.diffBar.normBut.gotoAndStop(1);
}
}
on (dragOut) {
if (_root.diffBar.normBut._currentframe == 3) {
}
if (_root.diffBar.normBut._currentframe == 2) {
_root.diffBar.normBut.gotoAndStop(1);
}
}
on (press) {
if (_root.difficulty != 1) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.diffBar.easyBut.gotoAndStop(1);
_root.diffBar.normBut.gotoAndStop(3);
_root.diffBar.hardBut.gotoAndStop(1);
_root.difficulty = 1;
if (_root.multi == 1) {
_root.diffBar.diffExp.gotoAndPlay("x2");
}
if (_root.multi == 2) {
_root.diffBar.diffExp.gotoAndPlay("x4");
}
if (_root.multi == 3) {
_root.diffBar.diffExp.gotoAndPlay("x6");
}
if (_root.multi == 4) {
_root.diffBar.diffExp.gotoAndPlay("x8");
}
}
}
Instance of Symbol 700 MovieClip "c3" in Symbol 701 MovieClip Frame 1
on (rollOver) {
_root.diffBar.c3.useHandCursor = false;
if (_root.diffBar.hardBut._currentframe == 3) {
}
if (_root.diffBar.hardBut._currentframe == 1) {
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
_root.diffBar.hardBut.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.diffBar.hardBut._currentframe == 3) {
}
if (_root.diffBar.hardBut._currentframe == 2) {
_root.diffBar.hardBut.gotoAndStop(1);
}
}
on (dragOut) {
if (_root.diffBar.hardBut._currentframe == 3) {
}
if (_root.diffBar.hardBut._currentframe == 2) {
_root.diffBar.hardBut.gotoAndStop(1);
}
}
on (press) {
if (_root.difficulty != 2) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.diffBar.easyBut.gotoAndStop(1);
_root.diffBar.normBut.gotoAndStop(1);
_root.diffBar.hardBut.gotoAndStop(3);
_root.difficulty = 2;
if (_root.multi == 1) {
_root.diffBar.diffExp.gotoAndPlay("x4");
}
if (_root.multi == 2) {
_root.diffBar.diffExp.gotoAndPlay("x8");
}
if (_root.multi == 3) {
_root.diffBar.diffExp.gotoAndPlay("x12");
}
if (_root.multi == 4) {
_root.diffBar.diffExp.gotoAndPlay("x16");
}
}
}
Symbol 715 Button
on (rollOver) {
newgame.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.goto = 1;
gotoAndPlay ("gotoPlace");
}
Symbol 719 Button
on (rollOver) {
highsc.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.goto = 2;
gotoAndPlay ("gotoPlace");
}
Symbol 723 Button
on (rollOver) {
moreg.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 727 Button
on (rollOver) {
animb.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.goto = 3;
gotoAndPlay ("gotoPlace");
}
Symbol 731 Button
on (rollOver) {
cred.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.goto = 4;
gotoAndPlay ("gotoPlace");
}
Symbol 735 Button
on (rollOver) {
spons.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 738 Button
on (rollOver) {
hrat.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.ratherrandomreality.com", "_blank");
}
Symbol 740 Button
on (rollOver) {
bomb.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 744 Button
on (rollOver) {
addt.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com/free_website_games.html", "_blank");
}
Symbol 755 Button
on (rollOver) {
aacb.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.ratherrandomreality.com", "_blank");
}
Symbol 759 Button
on (rollOver) {
cbbut.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://coffee-break.newgrounds.com", "_blank");
}
Symbol 763 Button
on (rollOver) {
thbut.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://thewallfly.newgrounds.com", "_blank");
}
Symbol 767 Button
on (rollOver) {
hdbut.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://hades.newgrounds.com", "_blank");
}
Symbol 771 Button
on (rollOver) {
drbut.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://dr-slump.newgrounds.com", "_blank");
}
Symbol 782 Button
on (rollOver) {
mm.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
gotoAndPlay ("cToMain");
}
Symbol 788 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 791 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
stop();
Symbol 794 Button
on (rollOver) {
m10tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 797 Button
on (rollOver) {
m10tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
stop();
Symbol 800 Button
on (rollOver) {
m2tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 803 Button
on (rollOver) {
m2tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 2
stop();
Symbol 806 Button
on (rollOver) {
m3tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 809 Button
on (rollOver) {
m3tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 2
stop();
Symbol 812 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 815 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 816 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 2
stop();
Symbol 818 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 821 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 2
stop();
Symbol 824 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 827 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 2
stop();
Symbol 830 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 833 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 2
stop();
Symbol 836 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 839 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 2
stop();
Symbol 842 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 845 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 846 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 2
stop();
Symbol 848 Button
on (rollOver) {
m2tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 851 Button
on (rollOver) {
m2tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 2
stop();
Symbol 854 Button
on (rollOver) {
m3tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 857 Button
on (rollOver) {
m3tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
stop();
Symbol 860 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 863 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 864 MovieClip Frame 1
stop();
Symbol 864 MovieClip Frame 2
stop();
Symbol 866 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 869 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 870 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 2
stop();
Symbol 872 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 875 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 876 MovieClip Frame 1
stop();
Symbol 876 MovieClip Frame 2
stop();
Symbol 878 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 881 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 882 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 2
stop();
Symbol 884 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 887 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 888 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 2
stop();
Symbol 890 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 893 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 894 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 2
stop();
Symbol 896 Button
on (rollOver) {
m10tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 899 Button
on (rollOver) {
m10tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 900 MovieClip Frame 1
stop();
Symbol 900 MovieClip Frame 2
stop();
Symbol 902 Button
on (rollOver) {
m2tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 905 Button
on (rollOver) {
m2tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 906 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 2
stop();
Symbol 908 Button
on (rollOver) {
m3tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 911 Button
on (rollOver) {
m3tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 912 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 2
stop();
Symbol 914 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 917 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 918 MovieClip Frame 1
stop();
Symbol 918 MovieClip Frame 2
stop();
Symbol 920 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 923 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 2
stop();
Symbol 926 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 929 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 930 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 2
stop();
Symbol 932 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 935 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 936 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 2
stop();
Symbol 938 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 941 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 942 MovieClip Frame 1
stop();
Symbol 942 MovieClip Frame 2
stop();
Symbol 944 Button
on (rollOver) {
m1tag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 947 Button
on (rollOver) {
m1tag2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
Symbol 948 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 2
stop();
Symbol 960 Button
on (rollOver) {
mm.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
stopAllSounds();
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
gotoAndPlay ("butclick");
}
Symbol 962 MovieClip Frame 1
if (_root.medal1 == false) {
m1icon.gotoAndStop(1);
} else {
m1icon.gotoAndStop(2);
}
if (_root.medal2 == false) {
m2icon.gotoAndStop(1);
} else {
m2icon.gotoAndStop(2);
}
if (_root.medal3 == false) {
m3icon.gotoAndStop(1);
} else {
m3icon.gotoAndStop(2);
}
if (_root.medal4 == false) {
m4icon.gotoAndStop(1);
} else {
m4icon.gotoAndStop(2);
}
if (_root.medal5 == false) {
m5icon.gotoAndStop(1);
} else {
m5icon.gotoAndStop(2);
}
if (_root.medal6 == false) {
m6icon.gotoAndStop(1);
} else {
m6icon.gotoAndStop(2);
}
if (_root.medal7 == false) {
m7icon.gotoAndStop(1);
} else {
m7icon.gotoAndStop(2);
}
if (_root.medal8 == false) {
m8icon.gotoAndStop(1);
} else {
m8icon.gotoAndStop(2);
}
if (_root.medal9 == false) {
m9icon.gotoAndStop(1);
} else {
m9icon.gotoAndStop(2);
}
if (_root.medal10 == false) {
m10icon.gotoAndStop(1);
} else {
m10icon.gotoAndStop(2);
}
if (_root.medal11 == false) {
m11icon.gotoAndStop(1);
} else {
m11icon.gotoAndStop(2);
}
if (_root.medal12 == false) {
m12icon.gotoAndStop(1);
} else {
m12icon.gotoAndStop(2);
}
if (_root.medal13 == false) {
m13icon.gotoAndStop(1);
} else {
m13icon.gotoAndStop(2);
}
if (_root.medal14 == false) {
m14icon.gotoAndStop(1);
} else {
m14icon.gotoAndStop(2);
}
if (_root.medal15 == false) {
m15icon.gotoAndStop(1);
} else {
m15icon.gotoAndStop(2);
}
if (_root.medal16 == false) {
m16icon.gotoAndStop(1);
} else {
m16icon.gotoAndStop(2);
}
if (_root.medal17 == false) {
m17icon.gotoAndStop(1);
} else {
m17icon.gotoAndStop(2);
}
if (_root.medal18 == false) {
m18icon.gotoAndStop(1);
} else {
m18icon.gotoAndStop(2);
}
if (_root.medal19 == false) {
m19icon.gotoAndStop(1);
} else {
m19icon.gotoAndStop(2);
}
if (_root.medal20 == false) {
m20icon.gotoAndStop(1);
} else {
m20icon.gotoAndStop(2);
}
if (_root.medal21 == false) {
m21icon.gotoAndStop(1);
} else {
m21icon.gotoAndStop(2);
}
if (_root.medal22 == false) {
m22icon.gotoAndStop(1);
} else {
m22icon.gotoAndStop(2);
}
if (_root.medal23 == false) {
m23icon.gotoAndStop(1);
} else {
m23icon.gotoAndStop(2);
}
if (_root.medal24 == false) {
m24icon.gotoAndStop(1);
} else {
m24icon.gotoAndStop(2);
}
if (_root.medal25 == false) {
m25icon.gotoAndStop(1);
} else {
m25icon.gotoAndStop(2);
}
if (_root.medal26 == false) {
m26icon.gotoAndStop(1);
} else {
m26icon.gotoAndStop(2);
}
if (_root.medal27 == false) {
m27icon.gotoAndStop(1);
} else {
m27icon.gotoAndStop(2);
}
Instance of Symbol 792 MovieClip "m1icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 798 MovieClip "m10icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 804 MovieClip "m2icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 810 MovieClip "m3icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 816 MovieClip "m4icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 822 MovieClip "m5icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 828 MovieClip "m6icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 834 MovieClip "m7icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 840 MovieClip "m8icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 846 MovieClip "m9icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 852 MovieClip "m11icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 858 MovieClip "m12icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 864 MovieClip "m13icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 870 MovieClip "m14icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 876 MovieClip "m15icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 882 MovieClip "m16icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 888 MovieClip "m17icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 894 MovieClip "m18icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 900 MovieClip "m19icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 906 MovieClip "m20icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 912 MovieClip "m21icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 918 MovieClip "m22icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 924 MovieClip "m23icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 930 MovieClip "m24icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 936 MovieClip "m25icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 942 MovieClip "m26icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 948 MovieClip "m27icon" in Symbol 962 MovieClip Frame 1
/* no clip actions */
Symbol 962 MovieClip Frame 2
function onEnterFrame() {
medbg._y = medbg._y - 1;
if (medbg._y < -254) {
medbg._y = 546;
}
}
Symbol 962 MovieClip Frame 3
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 962 MovieClip Frame 14
_root.backgroundMusic = new Sound();
_root.backgroundMusic.attachSound("medloop");
_root.backgroundMusic.setVolume(70);
_root.backgroundMusic.start(0, 1000);
Symbol 962 MovieClip Frame 19
stop();
Symbol 962 MovieClip Frame 38
function onEnterFrame() {
}
_root.gotoAndPlay("backtomm");
Symbol 969 Button
on (rollOver) {
test.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
if (_root.submithit == false) {
_root.submithit = true;
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
var md = new md5();
x = new LoadVars();
x.n = newName.toLowerCase();
x.s = _root.score;
md5val = x.s + 1518;
x.k = md.hash("" + md5val);
x.m = 1;
if (_root.difficulty == 0.5) {
m = 1;
}
if (_root.difficulty == 1) {
m = 2;
}
if (_root.difficulty == 2) {
m = 3;
}
x.sendAndLoad("http://hiscore.arcadebomb.com/nanobeast_submit.php", x, "POST");
gotoAndPlay (2);
}
}
Symbol 980 Button
on (rollOver) {
sees.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://hiscore.arcadebomb.com/nanobeast.php", "_blank");
}
Symbol 985 Button
on (rollOver) {
clo.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
if (_root.lookatscores == true) {
if (_root.hitclose == false) {
_root.hitclose = true;
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_root.gotoAndPlay("afterhs");
}
}
if (_root.lookatscores == false) {
if (_root.hitclose == false) {
_root.hitclose = true;
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
_parent.gotoAndPlay("afterclose");
}
}
}
Symbol 990 Button
on (rollOver) {
mb1.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 1022 MovieClip Frame 5
var c = new LoadVars();
var i = new LoadVars();
c.m = 1;
c.sendAndLoad("http://hiscore.arcadebomb.com/nanobeast_get.php", i, "POST");
i.onLoad = function () {
trace(i);
name1 = i.name1;
score1 = i.score1;
name2 = i.name2;
score2 = i.score2;
name3 = i.name3;
score3 = i.score3;
name4 = i.name4;
score4 = i.score4;
name5 = i.name5;
score5 = i.score5;
name6 = i.name6;
score6 = i.score6;
name7 = i.name7;
score7 = i.score7;
name8 = i.name8;
score8 = i.score8;
name9 = i.name9;
score9 = i.score9;
name10 = i.name10;
score10 = i.score10;
};
stop();
Symbol 1025 MovieClip Frame 1
stop();
scoreText.text = _root.score;
Symbol 1025 MovieClip Frame 20
stop();
Symbol 1025 MovieClip Frame 29
_root.gotoAndPlay("aftersubmit");
Symbol 1031 MovieClip Frame 1
stop();
Symbol 1031 MovieClip Frame 28
if (_root.level == 0) {
_root.gotoAndPlay("afterA1");
}
if (_root.level == 1) {
_root.gotoAndPlay("afterA2");
}
if (_root.level == 2) {
_root.gotoAndPlay("afterA3");
}
if (_root.level == 3) {
_root.gotoAndPlay("afterA4");
}
if (_root.level == 4) {
_root.gotoAndPlay("afterA5");
}
if (_root.level == 5) {
_root.gotoAndPlay("afterA6");
}
if (_root.level == 6) {
_root.gotoAndPlay("afterA7");
}
Symbol 1078 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(65) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
if (Key.isDown(68) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
}
skippressed = false;
Symbol 1078 MovieClip Frame 679
function onEnterFrame() {
}
Symbol 1078 MovieClip Frame 705
stopAllSounds();
_root.cutscene1 = true;
_root.gotoAndPlay("afterA1");
Symbol 1094 MovieClip Frame 273
stop();
Symbol 1095 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1095 MovieClip Frame 17
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1095 MovieClip Frame 18
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1095 MovieClip Frame 48
_root.gotoAndPlay("afterTip1");
Symbol 1103 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 18
stop();
Symbol 1103 MovieClip Frame 53
_root.boss1Show = false;
Symbol 1103 MovieClip Frame 71
stop();
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 2
stop();
Symbol 1108 MovieClip Frame 3
stop();
Symbol 1108 MovieClip Frame 4
stop();
Symbol 1108 MovieClip Frame 5
stop();
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 2
stop();
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 2
stop();
Symbol 1114 MovieClip Frame 1
stop();
Symbol 1114 MovieClip Frame 2
stop();
Symbol 1116 MovieClip Frame 1
stop();
Symbol 1116 MovieClip Frame 2
stop();
Symbol 1118 MovieClip Frame 1
stop();
Symbol 1118 MovieClip Frame 2
stop();
Symbol 1120 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 10
gotoAndStop (1);
Symbol 1125 MovieClip Frame 19
gotoAndStop (1);
Symbol 1125 MovieClip Frame 28
gotoAndStop (1);
Symbol 1129 MovieClip Frame 1
stop();
Symbol 1129 MovieClip Frame 10
gotoAndStop (1);
Symbol 1129 MovieClip Frame 19
gotoAndStop (1);
Symbol 1129 MovieClip Frame 28
gotoAndStop (1);
Symbol 1133 MovieClip Frame 1
stop();
Symbol 1133 MovieClip Frame 10
gotoAndStop (1);
Symbol 1133 MovieClip Frame 19
gotoAndStop (1);
Symbol 1133 MovieClip Frame 28
gotoAndStop (1);
Symbol 1137 MovieClip Frame 1
stop();
Symbol 1137 MovieClip Frame 10
gotoAndStop (1);
Symbol 1137 MovieClip Frame 19
gotoAndStop (1);
Symbol 1137 MovieClip Frame 28
gotoAndStop (1);
Symbol 1141 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 9
gotoAndStop (1);
Symbol 1141 MovieClip Frame 18
gotoAndStop (1);
Symbol 1141 MovieClip Frame 27
gotoAndStop (1);
Symbol 1153 MovieClip Frame 181
stop();
Symbol 1159 MovieClip Frame 1
stop();
Symbol 1159 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("throwbomb");
_root.soundFX.start();
Symbol 1179 MovieClip Frame 9
stop();
if (_root.level == 1) {
gotoAndPlay ("level1show");
}
if (_root.level == 2) {
gotoAndPlay ("level2show");
}
if (_root.level == 3) {
gotoAndPlay ("level3show");
}
if (_root.level == 4) {
gotoAndPlay ("level4show");
}
if (_root.level == 5) {
gotoAndPlay ("level5show");
}
if (_root.level == 6) {
gotoAndPlay ("level6show");
}
Symbol 1179 MovieClip Frame 52
stop();
Symbol 1179 MovieClip Frame 107
stop();
Symbol 1179 MovieClip Frame 162
stop();
Symbol 1179 MovieClip Frame 223
stop();
Symbol 1179 MovieClip Frame 297
stop();
Symbol 1179 MovieClip Frame 352
stop();
Symbol 1180 MovieClip Frame 1
stop();
Symbol 1180 MovieClip Frame 2
_root.onEnterFrame = function () {
};
_root.gameoverStarted = true;
Symbol 1180 MovieClip Frame 28
_root.soundFX.attachSound("missacc");
_root.soundFX.start();
chStats.scoreText.text = _root.score;
chStats.levelText.text = _root.level;
Symbol 1180 MovieClip Frame 44
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1180 MovieClip Frame 45
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1180 MovieClip Frame 62
if (_root.level == 1) {
_root.gotoAndPlay("A2");
}
if (_root.level == 2) {
_root.gotoAndPlay("A3");
}
if (_root.level == 3) {
_root.gotoAndPlay("A4");
}
if (_root.level == 4) {
_root.gotoAndPlay("A5");
}
if (_root.level == 5) {
_root.gotoAndPlay("A6");
}
if (_root.level == 6) {
_root.gotoAndPlay("A7");
}
Symbol 1184 MovieClip Frame 1
if (_root.medal1 == false) {
m1icon.gotoAndStop(1);
} else {
m1icon.gotoAndStop(2);
}
if (_root.medal2 == false) {
m2icon.gotoAndStop(1);
} else {
m2icon.gotoAndStop(2);
}
if (_root.medal3 == false) {
m3icon.gotoAndStop(1);
} else {
m3icon.gotoAndStop(2);
}
if (_root.medal4 == false) {
m4icon.gotoAndStop(1);
} else {
m4icon.gotoAndStop(2);
}
if (_root.medal5 == false) {
m5icon.gotoAndStop(1);
} else {
m5icon.gotoAndStop(2);
}
if (_root.medal6 == false) {
m6icon.gotoAndStop(1);
} else {
m6icon.gotoAndStop(2);
}
if (_root.medal7 == false) {
m7icon.gotoAndStop(1);
} else {
m7icon.gotoAndStop(2);
}
if (_root.medal8 == false) {
m8icon.gotoAndStop(1);
} else {
m8icon.gotoAndStop(2);
}
if (_root.medal9 == false) {
m9icon.gotoAndStop(1);
} else {
m9icon.gotoAndStop(2);
}
if (_root.medal10 == false) {
m10icon.gotoAndStop(1);
} else {
m10icon.gotoAndStop(2);
}
if (_root.medal11 == false) {
m11icon.gotoAndStop(1);
} else {
m11icon.gotoAndStop(2);
}
if (_root.medal12 == false) {
m12icon.gotoAndStop(1);
} else {
m12icon.gotoAndStop(2);
}
if (_root.medal13 == false) {
m13icon.gotoAndStop(1);
} else {
m13icon.gotoAndStop(2);
}
if (_root.medal14 == false) {
m14icon.gotoAndStop(1);
} else {
m14icon.gotoAndStop(2);
}
if (_root.medal15 == false) {
m15icon.gotoAndStop(1);
} else {
m15icon.gotoAndStop(2);
}
if (_root.medal16 == false) {
m16icon.gotoAndStop(1);
} else {
m16icon.gotoAndStop(2);
}
if (_root.medal17 == false) {
m17icon.gotoAndStop(1);
} else {
m17icon.gotoAndStop(2);
}
if (_root.medal18 == false) {
m18icon.gotoAndStop(1);
} else {
m18icon.gotoAndStop(2);
}
if (_root.medal19 == false) {
m19icon.gotoAndStop(1);
} else {
m19icon.gotoAndStop(2);
}
if (_root.medal20 == false) {
m20icon.gotoAndStop(1);
} else {
m20icon.gotoAndStop(2);
}
if (_root.medal21 == false) {
m21icon.gotoAndStop(1);
} else {
m21icon.gotoAndStop(2);
}
if (_root.medal22 == false) {
m22icon.gotoAndStop(1);
} else {
m22icon.gotoAndStop(2);
}
if (_root.medal23 == false) {
m23icon.gotoAndStop(1);
} else {
m23icon.gotoAndStop(2);
}
if (_root.medal24 == false) {
m24icon.gotoAndStop(1);
} else {
m24icon.gotoAndStop(2);
}
if (_root.medal25 == false) {
m25icon.gotoAndStop(1);
} else {
m25icon.gotoAndStop(2);
}
if (_root.medal26 == false) {
m26icon.gotoAndStop(1);
} else {
m26icon.gotoAndStop(2);
}
if (_root.medal27 == false) {
m27icon.gotoAndStop(1);
} else {
m27icon.gotoAndStop(2);
}
Instance of Symbol 792 MovieClip "m1icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 798 MovieClip "m10icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 804 MovieClip "m2icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 810 MovieClip "m3icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 816 MovieClip "m4icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 822 MovieClip "m5icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 828 MovieClip "m6icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 834 MovieClip "m7icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 840 MovieClip "m8icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 846 MovieClip "m9icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 852 MovieClip "m11icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 858 MovieClip "m12icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 864 MovieClip "m13icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 870 MovieClip "m14icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 876 MovieClip "m15icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 882 MovieClip "m16icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 888 MovieClip "m17icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 894 MovieClip "m18icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 900 MovieClip "m19icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 906 MovieClip "m20icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 912 MovieClip "m21icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 918 MovieClip "m22icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 924 MovieClip "m23icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 930 MovieClip "m24icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 936 MovieClip "m25icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 942 MovieClip "m26icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 948 MovieClip "m27icon" in Symbol 1184 MovieClip Frame 1
/* no clip actions */
Symbol 1184 MovieClip Frame 2
Symbol 1184 MovieClip Frame 3
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1184 MovieClip Frame 19
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypress");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypress");
}
}
stop();
Symbol 1184 MovieClip Frame 20
function onEnterFrame() {
}
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1184 MovieClip Frame 38
_root.play();
Symbol 1254 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(65) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
if (Key.isDown(68) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
}
skippressed = false;
Symbol 1254 MovieClip Frame 1469
function onEnterFrame() {
}
Symbol 1254 MovieClip Frame 1495
stopAllSounds();
_root.cutscene2 = true;
_root.gotoAndPlay("afterA2");
Symbol 1258 MovieClip Frame 371
stop();
Symbol 1259 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1259 MovieClip Frame 17
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1259 MovieClip Frame 18
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1259 MovieClip Frame 48
_root.gotoAndPlay("afterTip2");
Symbol 1265 MovieClip Frame 1
stop();
Symbol 1265 MovieClip Frame 33
stop();
Symbol 1269 MovieClip Frame 1
stop();
Symbol 1269 MovieClip Frame 18
stop();
Symbol 1269 MovieClip Frame 53
_root.boss2Show = false;
Symbol 1269 MovieClip Frame 71
stop();
Symbol 1278 MovieClip Frame 109
stop();
Symbol 1316 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(65) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
if (Key.isDown(68) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
}
skippressed = false;
Symbol 1316 MovieClip Frame 886
function onEnterFrame() {
}
Symbol 1316 MovieClip Frame 912
stopAllSounds();
_root.cutscene3 = true;
_root.gotoAndPlay("afterA3");
Symbol 1325 Button
on (rollOver) {
ared.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound("powerupPick");
rolloverSound.start(0, 1);
}
on (release) {
clickSound = new Sound();
clickSound.attachSound("usePowerup");
clickSound.start(0, 1);
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 1326 MovieClip Frame 325
stop();
Symbol 1327 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1327 MovieClip Frame 17
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1327 MovieClip Frame 18
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1327 MovieClip Frame 48
_root.gotoAndPlay("afterTip3");
Symbol 1336 MovieClip Frame 146
stop();
Symbol 1447 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(65) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
if (Key.isDown(68) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
}
skippressed = false;
Symbol 1447 MovieClip Frame 1004
function onEnterFrame() {
}
Symbol 1447 MovieClip Frame 1030
stopAllSounds();
_root.cutscene4 = true;
_root.gotoAndPlay("afterA4");
Symbol 1451 MovieClip Frame 257
stop();
Symbol 1452 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1452 MovieClip Frame 17
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1452 MovieClip Frame 18
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1452 MovieClip Frame 48
_root.gotoAndPlay("afterTip4");
Symbol 1455 MovieClip Frame 1
stop();
Symbol 1455 MovieClip Frame 33
stop();
Symbol 1466 MovieClip Frame 142
stop();
Symbol 1470 MovieClip Frame 1
stop();
Symbol 1470 MovieClip Frame 18
stop();
Symbol 1470 MovieClip Frame 53
_root.boss4Show = false;
Symbol 1470 MovieClip Frame 71
stop();
Symbol 1522 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(65) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
if (Key.isDown(68) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
}
skippressed = false;
Symbol 1522 MovieClip Frame 243
livshow.text = _root.lives;
Symbol 1522 MovieClip Frame 1565
function onEnterFrame() {
}
Symbol 1522 MovieClip Frame 1591
stopAllSounds();
_root.cutscene5 = true;
_root.gotoAndPlay("afterA5");
Symbol 1526 MovieClip Frame 154
stop();
Symbol 1527 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1527 MovieClip Frame 17
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1527 MovieClip Frame 18
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1527 MovieClip Frame 48
_root.gotoAndPlay("afterTip5");
Symbol 1538 MovieClip Frame 177
stop();
Symbol 1568 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(65) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
if (Key.isDown(68) && (skippressed == false)) {
skippressed = true;
stopAllSounds();
screenfader.gotoAndPlay("fade");
}
}
skippressed = false;
Symbol 1568 MovieClip Frame 1494
function onEnterFrame() {
}
Symbol 1568 MovieClip Frame 1520
stopAllSounds();
if ((((((_root.cutscene1 == true) && (_root.cutscene2 == true)) && (_root.cutscene3 == true)) && (_root.cutscene4 == true)) && (_root.cutscene5 == true)) && (_root.medal4 == false)) {
_root.medal4 = true;
_root.savefile.data.medal4 = true;
_root.savefile.flush();
_root.medals++;
_root.savefile.data.medals++;
_root.savefile.flush();
if ((_root.medals > 8) && (_root.medals < 18)) {
_root.multi = 2;
_root.savefile.data.multi = 2;
_root.savefile.flush();
}
if ((_root.medals > 17) && (_root.medals < 27)) {
_root.multi = 3;
_root.savefile.data.multi = 3;
_root.savefile.flush();
}
if (_root.medals == 27) {
_root.multi = 4;
_root.savefile.data.multi = 4;
_root.savefile.flush();
}
}
_root.gotoAndPlay("afterA6");
Symbol 1572 MovieClip Frame 325
stop();
Symbol 1573 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("butapp");
_root.soundFX.start();
Symbol 1573 MovieClip Frame 17
function onEnterFrame() {
if (Key.isDown(65)) {
gotoAndPlay ("keypressed");
}
if (Key.isDown(68)) {
gotoAndPlay ("keypressed");
}
}
stop();
Symbol 1573 MovieClip Frame 18
function onEnterFrame() {
}
stopAllSounds();
_root.soundFX = new Sound();
_root.soundFX.attachSound("bullet");
_root.soundFX.start();
_root.soundFX = new Sound();
_root.soundFX.attachSound("butdisapp");
_root.soundFX.start();
Symbol 1573 MovieClip Frame 48
_root.gotoAndPlay("afterTip6");
Symbol 1579 MovieClip Frame 1
stop();
Symbol 1579 MovieClip Frame 2
_root.soundFX = new Sound();
_root.soundFX.attachSound("trickery");
_root.soundFX.start();
Symbol 1594 MovieClip Frame 177
stop();
Instance of Symbol 544 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Instance of Symbol 560 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Instance of Symbol 547 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Instance of Symbol 563 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Instance of Symbol 550 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Instance of Symbol 461 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Instance of Symbol 461 MovieClip in Symbol 1654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
this.gotoAndStop(_currentframe);
} else {
play();
}
}
Symbol 1663 MovieClip Frame 1
function onEnterFrame() {
finalmm._x = finalmm._x + 1;
if (finalmm._x > 652) {
finalmm._x = -380;
}
}
finalmm._x = -380;
Symbol 1663 MovieClip Frame 64
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 73
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 111
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 120
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 172
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 181
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 210
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 219
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 275
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 284
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 309
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 318
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 358
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 367
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 419
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 428
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 470
_root.soundFX.attachSound("bombfalls");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 479
_root.soundFX.attachSound("bulboom");
_root.soundFX.volume(20);
_root.soundFX.start();
_root.soundFX.attachSound("enemybullet");
_root.soundFX.volume(20);
_root.soundFX.start();
Symbol 1663 MovieClip Frame 3113
function onEnterFrame() {
}
stopAllSounds();
_root.gotoAndPlay("afterA7");