Frame 1
stop();
stopAllSounds();
this.onEnterFrame = function () {
loaded = int((getBytesLoaded() / getBytesTotal()) * 100);
percent = loaded + "%";
_root.balk._xscale = loaded;
if (getBytesLoaded() == getBytesTotal()) {
delete this.onEnterFrame;
nextFrame();
}
};
Frame 2
stop();
Frame 3
stop();
m1._visible = true;
m2._visible = false;
p1._visible = false;
p2._visible = false;
p3._visible = false;
Instance of Symbol 643 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.time == 5) {
_root.speedz = 9;
_root.intervaln = 30;
}
if (_root.time == 10) {
_root.intervalz = 10;
}
if (_root.time == 0) {
_root.gotoAndPlay(11);
}
}
Frame 4
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
} else if (currentweapon == "trishot") {
this.attachMovie("lazerleft", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("lazer", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("lazerright", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, "enemy" + enemycount, this.getNextHighestDepth(), {_x:xpos, _y:ypos});
enemies.push("enemy" + enemycount);
enemycount++;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
enemysearch++;
}
eval (enemyid).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
weaponsearch++;
}
eval (weaponid).removeMovieClip();
}
function addpoints(points) {
score = score + points;
}
function hitship() {
if (ship._currentframe == 1) {
currentweapon = "singlelazer";
ship.gotoAndPlay("shiphit");
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie("ship", "ship", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife() {
if (lives > 0) {
lives--;
respawnship();
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
eval (enemies[enemyloop]).removeMovieClip();
enemyloop++;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
eval (weapons[weaponloop]).removeMovieClip();
weaponloop++;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = new Array().concat(eval (("level" + currentlevel) + "enemies"));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 75;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen", "mainscreen", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie("losegame", "losegame", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
function winlevel() {
currentlevel++;
lives++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie("wingame", "wingame", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 75;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "enemyship0", 50], [30, "enemyship3", 210], [50, "enemyship3", 320], [70, "poweruptrishot", 150], [95, "enemyship3", 250], [110, "enemyship3", 400], [150, "enemyship3", 280], [170, "enemyship3", 10], [190, "enemyship3", 50], [210, "enemyship3", 450], [230, "enemyship3", 100], [250, "enemyship3", 300], [270, "enemyship3", 350], [300, "enemyship3", 150], [320, "enemyship3", 250], [370, "enemyship3", 300], [390, "enemyship3", 200], [400, "enemyship3", 400], [410, "enemyship3", 300], [430, "enemyship3", 0], [430, "enemyship3", 50], [430, "enemyship3", 100], [430, "enemyship3", 150], [430, "enemyship3", 200], [430, "enemyship3", 250], [430, "enemyship3", 350], [430, "enemyship3", 400], [430, "enemyship3", 450], [430, "enemyship3", 500], [430, "enemyship3", 550], [470, "enemyship3", 0], [470, "enemyship3", 50], [470, "enemyship3", 100], [470, "enemyship3", 200], [470, "enemyship3", 250], [470, "poweruplevelup", 300], [470, "enemyship3", 350], [470, "enemyship3", 400], [470, "enemyship3", 450], [470, "enemyship3", 500], [470, "enemyship3", 550], [500, "enemyship3", 0], [500, "enemyship3", 50], [500, "enemyship3", 100], [500, "enemyship3", 150], [500, "enemyship3", 200], [500, "enemyship3", 250], [500, "enemyship3", 300], [500, "enemyship3", 350], [500, "enemyship3", 450], [500, "enemyship3", 500], [500, "enemyship3", 550], [520, "enemyship3", 150], [550, "enemyship3", 250], [570, "enemyship3", 550], [600, "enemyship3", 150], [620, "enemyship3", 150], [640, "poweruptrishot", 150], [640, "enemyship3", 350], [670, "enemyship3", 300], [700, "enemyship3", 150], [720, "enemyship3", 111], [742, "enemyship3", 345], [761, "enemyship3", 500], [780, "enemyship3", 100], [800, "enemyship3", 200], [820, "enemyship3", 200], [830, "enemyship3", 115], [850, "enemyship3", 345], [860, "enemyship3", 421], [888, "enemyship3", 170], [900, "enemyship3", 550], [920, "enemyship3", 300], [940, "enemyship3", 100], [960, "enemyship3", 200], [980, "enemyship3", 300], [1000, "lv1boss", 250]];
var level2enemies = [[10, "enemyship3", 50], [30, "enemyship3", 210], [50, "enemyship1", 320], [70, "poweruptrishot", 150], [95, "enemyship1", 250], [110, "enemyship3", 400], [150, "enemyship1", 280], [170, "enemyship3", 10], [190, "enemyship1", 50], [210, "enemyship3", 450], [230, "enemyship3", 100], [250, "enemyship3", 300], [270, "enemyship3", 350], [300, "enemyship3", 150], [320, "enemyship3", 250], [370, "enemyship3", 300], [390, "enemyship3", 200], [400, "enemyship1", 400], [410, "enemyship3", 300], [430, "enemyship3", 0], [440, "enemyship3", 450], [450, "enemyship3", 150], [470, "enemyship1", 0], [470, "enemyship3", 250], [475, "enemyship3", 500], [480, "enemyship3", 550], [500, "enemyship3", 150], [510, "enemyship1", 500], [515, "enemyship3", 550], [520, "enemyship1", 150], [550, "enemyship1", 250], [570, "enemyship3", 550], [600, "enemyship3", 150], [620, "enemyship3", 150], [640, "enemyship3", 150], [640, "enemyship3", 350], [670, "enemyship1", 300], [700, "enemyship3", 150], [720, "enemyship1", 111], [742, "enemyship3", 345], [761, "enemyship3", 500], [780, "enemyship1", 100], [800, "enemyship1", 200], [820, "enemyship1", 200], [830, "poweruptrishot", 115], [850, "poweruplevelup", 345], [860, "enemyship1", 421], [888, "enemyship3", 170], [900, "enemyship1", 550], [920, "enemyship3", 300], [940, "enemyship1", 100], [960, "enemyship1", 200], [980, "enemyship3", 300], [1000, "enemyship3", 500], [1050, "enemyship1", 150], [1070, "enemyship3", 200], [1090, "enemyship3", 250], [1111, "enemyship1", 300], [1130, "enemyship3", 500], [1150, "enemyship3", 100], [1190, "enemyship1", 350], [1220, "enemyship3", 100], [1250, "enemyship1", 200], [1270, "enemyship3", 4000], [1300, "lv2boss", 250]];
var level3enemies = [[10, "enemyship1", 50], [30, "enemyship1", 210], [50, "enemyship1", 320], [70, "enemyship1", 150], [95, "enemyship1", 250], [110, "enemyship3", 400], [150, "enemyship1", 280], [170, "enemyship3", 10], [190, "enemyship1", 50], [210, "enemyship3", 450], [230, "enemyship3", 100], [250, "enemyship1", 300], [270, "enemyship3", 350], [300, "enemyship1", 150], [320, "enemyship3", 250], [370, "enemyship1", 300], [390, "enemyship3", 200], [400, "enemyship1", 400], [410, "enemyship3", 300], [430, "enemyship1", 0], [440, "enemyship1", 450], [450, "poweruptrishot", 150], [470, "enemyship1", 0], [470, "enemyship1", 250], [475, "enemyship3", 500], [480, "enemyship3", 550], [500, "enemyship1", 150], [510, "enemyship1", 500], [515, "enemyship1", 550], [520, "enemyship1", 150], [550, "enemyship1", 250], [570, "enemyship3", 550], [600, "enemyship3", 150], [620, "enemyship3", 150], [640, "enemyship1", 150], [640, "enemyship1", 350], [670, "enemyship1", 300], [700, "enemyship1", 150], [720, "enemyship1", 111], [742, "enemyship3", 345], [761, "enemyship3", 500], [780, "enemyship1", 100], [800, "enemyship1", 200], [820, "enemyship1", 200], [830, "poweruptrishot", 115], [850, "enemyship1", 345], [860, "enemyship1", 421], [888, "enemyship3", 170], [900, "enemyship1", 550], [920, "enemyship3", 300], [940, "enemyship1", 100], [960, "enemyship1", 200], [980, "enemyship1", 300], [1000, "enemyship3", 500], [1050, "enemyship1", 150], [1070, "enemyship1", 200], [1090, "enemyship1", 250], [1111, "enemyship1", 300], [1130, "enemyship1", 500], [1150, "enemyship3", 100], [1190, "enemyship1", 350], [1220, "enemyship3", 100], [1250, "enemyship1", 200], [1270, "enemyship3", 400], [1290, "enemyship1", 150], [1300, "poweruplevelup", 250], [1333, "enemyship3", 55], [1350, "enemyship1", 200], [1400, "enemyship3", 243], [1450, "enemyship3", 222], [1470, "enemyship1", 512], [1500, "enemyship1", 487], [1525, "enemyship3", 165], [1550, "enemyship1", 185], [1575, "enemyship3", 444], [1600, "enemyship1", 523], [1620, "enemyship3", 100], [1640, "enemyship1", 223], [1655, "enemyship3", 478], [1670, "enemyship1", 200], [1685, "enemyship3", 500], [1700, "enemyship1", 300], [1702, "enemyship3", 500], [1715, "mcgillicutty1", 300]];
var level4enemies = [[1, "enemyship0", 50], [30, "enemyship1", 210], [50, "enemyship1", 320], [70, "enemyship4", 150], [95, "enemyship1", 250], [110, "enemyship4", 400], [150, "enemyship4", 280], [170, "enemyship3", 10], [190, "enemyship1", 50], [210, "enemyship4", 450], [230, "enemyship3", 100], [250, "enemyship1", 300], [270, "enemyship3", 350], [300, "enemyship4", 150], [320, "enemyship3", 250], [370, "enemyship4", 300], [390, "enemyship3", 200], [400, "enemyship4", 400], [410, "enemyship3", 300], [430, "enemyship1", 0], [440, "enemyship1", 450], [450, "poweruptrishot", 150], [470, "enemyship1", 0], [470, "enemyship1", 250], [475, "enemyship4", 500], [480, "enemyship3", 550], [500, "enemyship1", 150], [510, "poweruplevelup", 500], [515, "enemyship1", 550], [520, "enemyship1", 150], [550, "enemyship1", 250], [570, "enemyship3", 550], [600, "enemyship4", 150], [620, "poweruptrishot", 150], [640, "enemyship4", 150], [640, "enemyship1", 350], [670, "enemyship1", 300], [700, "enemyship1", 150], [720, "enemyship1", 111], [742, "enemyship3", 345], [761, "enemyship3", 500], [780, "enemyship1", 100], [800, "enemyship1", 200], [820, "enemyship1", 200], [830, "enemyship4", 115], [850, "enemyship1", 345], [860, "enemyship4", 421], [888, "enemyship3", 170], [900, "enemyship1", 550], [920, "enemyship3", 300], [940, "enemyship1", 100], [960, "enemyship1", 200], [980, "enemyship1", 300], [1000, "enemyship3", 500], [1050, "enemyship1", 150], [1070, "enemyship1", 200], [1090, "enemyship1", 250], [1111, "enemyship1", 300], [1130, "enemyship1", 500], [1150, "enemyship3", 100], [1190, "enemyship1", 350], [1220, "enemyship3", 100], [1250, "enemyship1", 200], [1270, "enemyship3", 400], [1290, "enemyship4", 150], [1300, "enemyship1", 250], [1333, "enemyship1", 55], [1350, "enemyship4", 200], [1400, "enemyship3", 243], [1450, "enemyship4", 222], [1470, "enemyship3", 512], [1500, "enemyship4", 487], [1525, "enemyship4", 165], [1550, "enemyship3", 185], [1575, "enemyship4", 444], [1600, "enemyship1", 523], [1620, "enemyship1", 100], [1640, "enemyship4", 223], [1655, "enemyship3", 478], [1670, "enemyship3", 200], [1685, "enemyship4", 500], [1700, "enemyship3", 300], [1702, "enemyship4", 500], [1710, "enemyship3", 515], [1730, "enemyship3", 333], [1750, "enemyship3", 200], [1777, "enemyship3", 100], [1795, "enemyship3", 300], [1805, "enemyship3", 200], [1820, "enemyship3", 335], [1840, "enemyship3", 500], [1860, "enemyship3", 400], [1888, "enemyship3", 125], [1900, "enemyship3", 525], [1920, "enemyship3", 312], [1940, "enemyship3", 359], [1960, "enemyship3", 200], [1980, "enemyship3", 100], [2000, "lv4boss", 300]];
var level5enemies = [[1, "enemyship1", 50], [30, "enemyship1", 210], [50, "enemyship1", 320], [70, "enemyship4", 150], [95, "enemyship1", 250], [110, "enemyship4", 400], [150, "enemyship4", 280], [170, "enemyship3", 10], [190, "enemyship1", 50], [210, "enemyship4", 450], [230, "enemyship3", 100], [250, "enemyship1", 300], [270, "enemyship3", 350], [300, "enemyship4", 150], [320, "enemyship3", 250], [370, "enemyship4", 300], [390, "enemyship3", 200], [400, "enemyship4", 400], [410, "enemyship3", 300], [430, "enemyship1", 0], [440, "enemyship1", 450], [450, "poweruptrishot", 150], [470, "enemyship1", 0], [470, "enemyship1", 250], [475, "enemyship4", 500], [480, "enemyship3", 550], [500, "enemyship1", 150], [510, "enemyship1", 500], [515, "enemyship1", 550], [520, "enemyship1", 150], [550, "enemyship1", 250], [570, "enemyship3", 550], [600, "enemyship4", 150], [620, "poweruplevelup", 150], [640, "enemyship4", 150], [640, "enemyship1", 350], [670, "enemyship1", 300], [700, "enemyship1", 150], [720, "enemyship1", 111], [742, "enemyship3", 345], [761, "enemyship3", 500], [780, "enemyship1", 100], [800, "enemyship1", 200], [820, "enemyship1", 200], [830, "enemyship4", 115], [850, "enemyship1", 345], [860, "enemyship4", 421], [888, "enemyship3", 170], [900, "enemyship1", 550], [920, "enemyship3", 300], [940, "enemyship1", 100], [960, "enemyship1", 200], [980, "enemyship1", 300], [1000, "enemyship3", 500], [1050, "enemyship1", 150], [1070, "enemyship1", 200], [1090, "enemyship1", 250], [1111, "enemyship1", 300], [1130, "enemyship1", 500], [1150, "enemyship3", 100], [1190, "enemyship1", 350], [1220, "enemyship3", 100], [1250, "enemyship1", 200], [1270, "enemyship3", 400], [1290, "enemyship4", 150], [1300, "enemyship1", 250], [1333, "enemyship1", 55], [1350, "enemyship4", 200], [1400, "enemyship3", 243], [1450, "enemyship4", 222], [1470, "enemyship3", 512], [1500, "enemyship4", 487], [1525, "enemyship4", 165], [1550, "enemyship3", 185], [1575, "enemyship4", 444], [1600, "enemyship1", 523], [1620, "enemyship1", 100], [1640, "poweruptrishot", 223], [1655, "enemyship3", 478], [1670, "enemyship3", 200], [1685, "enemyship4", 500], [1700, "enemyship3", 300], [1702, "enemyship4", 500], [1710, "enemyship3", 515], [1730, "enemyship3", 333], [1750, "enemyship3", 200], [1777, "enemyship3", 100], [1795, "enemyship3", 300], [1805, "enemyship3", 200], [1820, "enemyship3", 335], [1840, "enemyship3", 500], [1860, "enemyship3", 400], [1888, "enemyship3", 125], [1900, "enemyship3", 525], [1920, "enemyship3", 312], [1940, "enemyship3", 359], [1960, "enemyship3", 200], [1980, "enemyship3", 100], [2005, "enemyship3", 300], [2020, "enemyship3", 200], [2040, "enemyship3", 300], [2060, "enemyship3", 100], [2080, "enemyship3", 200], [2111, "enemyship3", 300], [2125, "enemyship3", 100], [2145, "enemyship3", 200], [2170, "enemyship3", 400], [2190, "enemyship3", 500], [2205, "enemyship3", 150], [2222, "enemyship3", 170], [2235, "enemyship3", 399], [2250, "enemyship3", 283], [2280, "enemyship3", 400], [2305, "enemyship3", 200], [2330, "enemyship3", 150], [2350, "enemyship3", 350], [2400, "enemyship3", 450], [2440, "enemyship3", 200], [2460, "enemyship3", 400], [2480, "enemyship3", 100], [2500, "mcgillicutty2", 300], [2500, "nublet1", 20], [2500, "nublet1", 40], [2500, "nublet1", 60], [2500, "nublet1", 80], [2500, "nublet1", 100], [2500, "nublet1", 120], [2500, "nublet1", 140], [2500, "nublet1", 160], [2500, "nublet1", 180], [2500, "nublet1", 200], [2500, "nublet1", 220], [2500, "nublet1", 240], [2500, "nublet1", 260], [2500, "nublet1", 280], [2500, "nublet1", 300], [2500, "nublet1", 320], [2500, "nublet1", 340], [2500, "nublet1", 360], [2500, "nublet1", 380], [2500, "nublet1", 400], [2500, "nublet1", 420], [2500, "nublet1", 440], [2500, "nublet1", 460], [2500, "nublet1", 480], [2500, "nublet1", 500], [2500, "nublet1", 520], [2500, "nublet1", 540], [2500, "nublet1", 560], [2500, "nublet1", 580], [2500, "nublet2", 20], [2500, "nublet2", 40], [2500, "nublet2", 60], [2500, "nublet2", 80], [2500, "nublet2", 100], [2500, "nublet2", 120], [2500, "nublet2", 140], [2500, "nublet2", 160], [2500, "nublet2", 180], [2500, "nublet2", 200], [2500, "nublet2", 220], [2500, "nublet2", 240], [2500, "nublet2", 260], [2500, "nublet2", 280], [2500, "nublet2", 300], [2500, "nublet2", 320], [2500, "nublet2", 340], [2500, "nublet2", 360], [2500, "nublet2", 380], [2500, "nublet2", 400], [2500, "nublet2", 420], [2500, "nublet2", 440], [2500, "nublet2", 460], [2500, "nublet2", 480], [2500, "nublet2", 500], [2500, "nublet2", 520], [2500, "nublet2", 540], [2500, "nublet2", 560], [2500, "nublet2", 580], [2500, "nublet3", 20], [2500, "nublet3", 40], [2500, "nublet3", 60], [2500, "nublet3", 80], [2500, "nublet3", 100], [2500, "nublet3", 120], [2500, "nublet3", 140], [2500, "nublet3", 160], [2500, "nublet3", 180], [2500, "nublet3", 200], [2500, "nublet3", 220], [2500, "nublet3", 240], [2500, "nublet3", 260], [2500, "nublet3", 280], [2500, "nublet3", 300], [2500, "nublet3", 320], [2500, "nublet3", 340], [2500, "nublet3", 360], [2500, "nublet3", 380], [2500, "nublet3", 400], [2500, "nublet3", 420], [2500, "nublet3", 440], [2500, "nublet3", 460], [2500, "nublet3", 480], [2500, "nublet3", 500], [2500, "nublet3", 520], [2500, "nublet3", 540], [2500, "nublet3", 560], [2500, "nublet3", 580]];
var level6enemies = [[1, "enemyship0a", 50], [30, "enemyship1a", 210], [50, "enemyship1a", 320], [70, "enemyship4a", 150], [95, "enemyship1a", 250], [110, "enemyship4a", 400], [150, "enemyship4a", 280], [170, "enemyship3a", 10], [190, "enemyship1a", 50], [210, "enemyship4a", 450], [230, "enemyship3a", 100], [250, "enemyship1a", 300], [270, "enemyship3a", 350], [300, "enemyship4a", 150], [320, "enemyship3a", 250], [370, "enemyship4a", 300], [390, "enemyship3a", 200], [400, "enemyship4a", 400], [410, "enemyship3a", 300], [430, "enemyship1a", 0], [440, "enemyship1a", 450], [450, "poweruptrishot", 150], [470, "enemyship1a", 0], [470, "enemyship1a", 250], [475, "enemyship4a", 500], [480, "enemyship3a", 550], [500, "enemyship1a", 150], [510, "enemyship1a", 500], [515, "enemyship1a", 550], [520, "enemyship1a", 150], [550, "enemyship1a", 250], [570, "enemyship3a", 550], [600, "enemyship4a", 150], [620, "enemyship1a", 150], [640, "enemyship4a", 150], [640, "enemyship1a", 350], [670, "enemyship1a", 300], [700, "enemyship1a", 150], [720, "enemyship1a", 111], [742, "enemyship3a", 345], [761, "enemyship3a", 500], [780, "enemyship1a", 100], [800, "enemyship1a", 200], [820, "enemyship1a", 200], [830, "enemyship4a", 115], [850, "poweruptrishot", 345], [860, "enemyship4a", 421], [888, "enemyship3a", 170], [900, "enemyship1a", 550], [920, "enemyship3a", 300], [940, "enemyship1a", 100], [960, "enemyship1a", 200], [980, "enemyship1a", 300], [1000, "enemyship3a", 500], [1050, "enemyship1a", 150], [1070, "enemyship1a", 200], [1090, "enemyship1a", 250], [1111, "enemyship1a", 300], [1130, "enemyship1a", 500], [1150, "enemyship3a", 100], [1190, "enemyship1a", 350], [1220, "enemyship3a", 100], [1250, "enemyship1a", 200], [1270, "enemyship3a", 400], [1290, "poweruplevelup", 150], [1300, "enemyship1a", 250], [1333, "enemyship1a", 55], [1350, "enemyship4a", 200], [1400, "enemyship3a", 243], [1450, "enemyship4a", 222], [1470, "enemyship3a", 512], [1500, "enemyship4a", 487], [1525, "enemyship4a", 165], [1550, "enemyship3a", 185], [1575, "enemyship4a", 444], [1600, "enemyship1a", 523], [1620, "enemyship1a", 100], [1640, "poweruptrishot", 223], [1655, "enemyship3a", 478], [1670, "enemyship3a", 200], [1685, "enemyship4a", 500], [1700, "enemyship3a", 300], [1702, "enemyship4a", 500], [1710, "enemyship3a", 515], [1730, "enemyship3a", 333], [1750, "enemyship3a", 200], [1777, "enemyship3a", 100], [1795, "enemyship3a", 300], [1805, "enemyship1a", 200], [1820, "enemyship3a", 335], [1840, "enemyship1a", 500], [1860, "enemyship4a", 400], [1888, "enemyship4a", 125], [1900, "enemyship1a", 525], [1920, "enemyship3a", 312], [1940, "enemyship4a", 359], [1960, "enemyship1a", 200], [1980, "enemyship4a", 100], [2005, "enemyship1a", 300], [2020, "enemyship3a", 200], [2040, "enemyship4a", 300], [2060, "enemyship4a", 100], [2080, "enemyship1a", 200], [2111, "enemyship4a", 300], [2125, "poweruptrishot", 100], [2145, "enemyship3a", 200], [2170, "enemyship3a", 400], [2190, "enemyship4a", 500], [2205, "enemyship1a", 150], [2222, "enemyship4a", 170], [2235, "enemyship3a", 399], [2250, "enemyship1a", 283], [2280, "enemyship3a", 400], [2305, "enemyship4a", 200], [2330, "enemyship4a", 150], [2350, "enemyship3a", 350], [2400, "enemyship1a", 450], [2440, "enemyship3a", 200], [2460, "enemyship4a", 400], [2480, "enemyship1a", 100], [2520, "enemyship3a", 300], [2540, "enemyship1a", 300], [2560, "enemyship3a", 300], [2580, "enemyship4a", 300], [2600, "enemyship3a", 300], [2620, "lv6boss", 300]];
var level7enemies = [[10, "enemyship1a", 50], [30, "enemyship1a", 210], [50, "enemyship1a", 320], [70, "enemyship4a", 150], [95, "enemyship1a", 250], [110, "enemyship4a", 400], [150, "enemyship4a", 280], [170, "enemyship3a", 10], [190, "enemyship5a", 50], [210, "enemyship4a", 450], [230, "enemyship3a", 100], [250, "enemyship1a", 300], [270, "enemyship3a", 350], [300, "enemyship4a", 150], [320, "enemyship3a", 250], [370, "enemyship5a", 300], [390, "enemyship3a", 200], [400, "enemyship4a", 400], [410, "enemyship3a", 300], [430, "enemyship1a", 0], [440, "enemyship1a", 450], [450, "poweruptrishot", 150], [470, "enemyship1a", 0], [470, "enemyship1a", 250], [475, "enemyship5a", 500], [480, "enemyship3a", 550], [500, "enemyship5a", 150], [510, "enemyship1a", 500], [515, "poweruplevelup", 550], [520, "enemyship1a", 150], [550, "enemyship1a", 250], [570, "enemyship3a", 550], [600, "enemyship4a", 150], [620, "enemyship5a", 150], [640, "enemyship4a", 150], [640, "enemyship1a", 350], [670, "enemyship1a", 300], [700, "enemyship1a", 150], [720, "enemyship1a", 111], [742, "enemyship3a", 345], [761, "enemyship3a", 500], [780, "enemyship1a", 100], [800, "enemyship1a", 200], [820, "poweruptrishot", 200], [830, "enemyship4a", 115], [850, "enemyship1a", 345], [860, "enemyship4a", 421], [888, "enemyship3a", 170], [900, "enemyship5a", 550], [920, "enemyship3a", 300], [940, "enemyship1a", 100], [960, "enemyship1a", 200], [980, "enemyship1a", 300], [1000, "enemyship3a", 500], [1050, "enemyship1a", 150], [1070, "enemyship1a", 200], [1090, "enemyship1a", 250], [1111, "enemyship1a", 300], [1130, "poweruptrishot", 500], [1150, "enemyship3a", 100], [1190, "enemyship1a", 350], [1220, "enemyship3a", 100], [1250, "enemyship1a", 200], [1270, "enemyship3a", 400], [1290, "enemyship4a", 150], [1300, "enemyship1a", 250], [1333, "enemyship1a", 55], [1350, "enemyship4a", 200], [1400, "enemyship3a", 243], [1450, "enemyship4a", 222], [1470, "enemyship5a", 512], [1500, "enemyship4a", 487], [1525, "enemyship5a", 165], [1550, "enemyship3a", 185], [1575, "enemyship4a", 444], [1600, "enemyship1a", 523], [1620, "enemyship5a", 100], [1640, "poweruptrishot", 223], [1655, "enemyship3a", 478], [1670, "enemyship3a", 200], [1685, "enemyship4a", 500], [1700, "enemyship3a", 300], [1702, "enemyship4a", 500], [1710, "enemyship3a", 515], [1730, "enemyship3a", 333], [1750, "enemyship5a", 200], [1777, "enemyship3a", 100], [1795, "enemyship3a", 300], [1805, "enemyship1a", 200], [1820, "enemyship3a", 335], [1840, "enemyship1a", 500], [1860, "enemyship4a", 400], [1888, "enemyship4a", 125], [1900, "enemyship5a", 525], [1920, "enemyship3a", 312], [1940, "enemyship5a", 359], [1960, "enemyship1a", 200], [1980, "enemyship4a", 100], [2005, "enemyship1a", 300], [2020, "enemyship5a", 200], [2040, "enemyship4a", 300], [2060, "enemyship5a", 100], [2080, "enemyship4a", 200], [2111, "enemyship4a", 300], [2125, "poweruptrishot", 100], [2145, "enemyship4a", 200], [2170, "enemyship3a", 400], [2190, "enemyship4a", 500], [2205, "enemyship1a", 150], [2222, "enemyship4a", 170], [2235, "enemyship3a", 399], [2250, "enemyship1a", 283], [2280, "enemyship3a", 400], [2305, "enemyship4a", 200], [2330, "enemyship4a", 150], [2350, "enemyship4a", 350], [2400, "enemyship1a", 450], [2440, "enemyship3a", 200], [2460, "enemyship4a", 400], [2480, "enemyship1a", 100], [2520, "enemyship3a", 300], [2540, "enemyship1a", 300], [2560, "enemyship3a", 300], [2580, "enemyship4a", 300], [2600, "enemyship3a", 300], [2620, "enemyship3a", 300], [2640, "enemyship3a", 312], [2670, "enemyship1a", 100], [2690, "enemyship3a", 150], [2715, "enemyship1a", 200], [2730, "enemyship3a", 300], [2750, "enemyship3a", 400], [2777, "enemyship1a", 100], [2785, "enemyship5a", 250], [2800, "enemyship5a", 350], [2820, "enemyship5a", 50], [2850, "enemyship5a", 190], [2870, "enemyship5a", 455], [2890, "enemyship5a", 123], [2915, "enemyship5a", 525], [2925, "enemyship5a", 234], [2950, "enemyship5a", 394], [3000, "mcgillicutty3", 300], [3000, "KC Managra", 300], [3000, "KoG", 300]];
var level8enemies = [[50, "texts", 250], [400, "boss???", 50], [500, "enemyship2", 100], [600, "enemyship2", 400], [700, "enemyship2", 200], [800, "enemyship2", 300], [900, "enemyship2", 500], [1000, "enemyship2", 100], [1100, "enemyship2", 400], [1200, "enemyship2", 200], [1300, "enemyship2", 300], [1400, "enemyship2", 500], [1500, "enemyship2", 100], [1600, "enemyship2", 400], [1700, "enemyship2", 200], [1800, "enemyship2", 300], [1900, "enemyship2", 500], [2000, "enemyship2", 100], [2100, "enemyship2", 400], [2200, "enemyship2", 200], [2300, "enemyship2", 300], [2400, "enemyship2", 500], [2500, "enemyship2", 100], [2600, "enemyship2", 400], [2700, "enemyship2", 200], [2800, "enemyship2", 300], [2900, "enemyship2", 500], [3000, "enemyship2", 100], [3100, "enemyship2", 400], [3200, "enemyship2", 200], [3300, "enemyship2", 300], [3400, "enemyship2", 500], [3500, "enemyship2", 100], [3600, "enemyship2", 400], [3700, "enemyship2", 200], [3800, "enemyship2", 300], [3900, "enemyship2", 500], [4000, "enemyship2", 100], [4100, "enemyship2", 400], [4200, "enemyship2", 200], [4300, "enemyship2", 300], [4400, "enemyship2", 500], [4500, "enemyship2", 100], [4600, "enemyship2", 400], [4700, "enemyship2", 200], [4800, "enemyship2", 300], [4900, "enemyship2", 500], [5000, "enemyship2", 100], [5100, "enemyship2", 400], [5200, "enemyship2", 200], [5300, "enemyship2", 300], [5400, "enemyship2", 500], [5500, "enemyship2", 100], [5600, "enemyship2", 400], [5700, "enemyship2", 200], [5800, "enemyship2", 300], [5900, "enemyship2", 500], [6000, "enemyship2", 100], [6100, "enemyship2", 400], [6200, "enemyship2", 200], [6300, "enemyship2", 300], [6400, "enemyship2", 500], [6500, "enemyship2", 100], [6600, "enemyship2", 400], [6700, "enemyship2", 200], [6800, "enemyship2", 300], [6900, "enemyship2", 500], [7000, "enemyship2", 100], [7100, "enemyship2", 400], [7200, "enemyship2", 200], [7300, "enemyship2", 300], [7400, "enemyship2", 500], [7500, "enemyship2", 100], [7600, "enemyship2", 400], [7700, "enemyship2", 200], [7800, "enemyship2", 300], [7900, "enemyship2", 500], [8000, "enemyship2", 100], [8100, "enemyship2", 400], [8200, "enemyship2", 200], [8300, "enemyship2", 300], [8400, "enemyship2", 500], [8500, "enemyship2", 100], [8600, "enemyship2", 400], [8700, "enemyship2", 200], [8800, "enemyship2", 300], [8900, "enemyship2", 500], [9000, "enemyship2", 100], [9100, "enemyship2", 400], [9200, "enemyship2", 200], [9300, "enemyship2", 300], [9400, "enemyship2", 500], [9500, "enemyship2", 100], [9600, "enemyship2", 400], [9700, "enemyship2", 200], [9800, "enemyship2", 300], [9900, "enemyship2", 500], [10000, "enemyship2", 100], [10100, "enemyship2", 400], [10200, "enemyship2", 200], [10300, "enemyship2", 300], [10400, "enemyship2", 500], [10500, "enemyship2", 100], [10600, "enemyship2", 400], [10700, "enemyship2", 200], [10800, "enemyship2", 300], [10900, "enemyship2", 500], [11000, "enemyship2", 100], [11100, "enemyship2", 400], [11200, "enemyship2", 200], [11300, "enemyship2", 300], [11400, "enemyship2", 500], [11500, "enemyship2", 100], [11600, "enemyship2", 400], [11700, "enemyship2", 200], [11800, "enemyship2", 300], [11900, "enemyship2", 500], [12000, "enemyship2", 100], [12100, "enemyship2", 400], [12200, "enemyship2", 200], [12300, "enemyship2", 300], [12400, "enemyship2", 500], [12500, "enemyship2", 100], [12600, "enemyship2", 400], [12700, "enemyship2", 200], [12800, "enemyship2", 300], [12900, "enemyship2", 500], [13000, "enemyship2", 100], [13100, "enemyship2", 400], [13200, "enemyship2", 200], [13300, "enemyship2", 300], [13400, "enemyship2", 500], [13500, "enemyship2", 100], [13600, "enemyship2", 400], [13700, "enemyship2", 200], [13800, "enemyship2", 300], [13900, "enemyship2", 500], [14000, "enemyship2", 100], [14100, "enemyship2", 400], [14200, "enemyship2", 200], [14300, "enemyship2", 300], [14400, "enemyship2", 500], [14500, "enemyship2", 100], [14600, "enemyship2", 400], [14700, "enemyship2", 200], [14800, "enemyship2", 300], [14900, "enemyship2", 500], [15000, "enemyship2", 100], [15100, "enemyship2", 400], [15200, "enemyship2", 200], [15300, "enemyship2", 300], [15400, "enemyship2", 500], [15500, "enemyship2", 100], [15600, "enemyship2", 400], [15700, "enemyship2", 200], [15800, "enemyship2", 300], [15900, "enemyship2", 500], [16000, "enemyship2", 100], [16100, "enemyship2", 400], [16200, "enemyship2", 200], [16300, "enemyship2", 300], [16400, "enemyship2", 500], [16500, "enemyship2", 100], [16600, "enemyship2", 400], [16700, "enemyship2", 200], [16800, "enemyship2", 300], [16900, "enemyship2", 500], [17000, "enemyship2", 100], [17100, "enemyship2", 400], [17200, "enemyship2", 200], [17300, "enemyship2", 300], [17400, "enemyship2", 500], [17500, "enemyship2", 100], [17600, "enemyship2", 400], [17700, "enemyship2", 200], [17800, "enemyship2", 300], [17900, "enemyship2", 500], [18000, "enemyship2", 100], [18100, "enemyship2", 400], [18200, "enemyship2", 200], [18300, "enemyship2", 300], [18400, "enemyship2", 500], [18500, "enemyship2", 100], [18600, "enemyship2", 400], [18700, "enemyship2", 200], [18800, "enemyship2", 300], [18900, "enemyship2", 500], [19000, "enemyship2", 100], [19100, "enemyship2", 400], [19200, "enemyship2", 200], [19300, "enemyship2", 300], [19400, "enemyship2", 500], [19500, "enemyship2", 100], [19600, "enemyship2", 400], [19700, "enemyship2", 200], [19800, "enemyship2", 300], [19900, "enemyship2", 500], [20900, "enemyship2", 500]];
var level9enemies = [[50, "hardwin", 300]];
var totallevels = 9;
var currentweapon = "singlelazer";
var currentlevel = 0;
var cooldowntime = 8;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(86)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
levelposition++;
while ((currentenemies[0][0] <= levelposition) && (currentenemies.length > 0)) {
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
eval (enemies[enemysearch]).enemyaction();
enemysearch++;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
eval (weapons[weaponsearch]).weaponaction();
weaponsearch++;
}
if (Key.isDown(32)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x = Math.max(ship._width / 2, ship._x - 7);
}
if (Key.isDown(39)) {
ship._x = Math.min(Stage.width - (ship._width / 2), ship._x + 7);
}
if (Key.isDown(38)) {
ship._y = Math.max(0, ship._y - 7);
}
if (Key.isDown(40)) {
ship._y = Math.min(Stage.height - ship._height, ship._y + 7);
}
starfield.movestars();
}
};
Frame 5
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
} else if (currentweapon == "trishot") {
this.attachMovie("lazerleft", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("lazer", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("lazerright", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, "enemy" + enemycount, this.getNextHighestDepth(), {_x:xpos, _y:ypos});
enemies.push("enemy" + enemycount);
enemycount++;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
enemysearch++;
}
eval (enemyid).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
weaponsearch++;
}
eval (weaponid).removeMovieClip();
}
function addpoints(points) {
score = score + points;
}
function hitship() {
if (ship._currentframe == 1) {
currentweapon = "singlelazer";
ship.gotoAndPlay("shiphit");
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie("ship", "ship", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife() {
if (lives > 0) {
lives--;
respawnship();
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
eval (enemies[enemyloop]).removeMovieClip();
enemyloop++;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
eval (weapons[weaponloop]).removeMovieClip();
weaponloop++;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = new Array().concat(eval (("level" + currentlevel) + "enemies"));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 20;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen", "mainscreen", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie("losegame", "losegame", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
function winlevel() {
currentlevel++;
lives++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie("wingame", "wingame", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 20;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "upsound", 1], [50, "lv1bossv3", 250]];
var level2enemies = [[50, "lv2bossv2", 250]];
var level3enemies = [[50, "mcgillicutty1v3", 300], [50, "nublet1", 100], [50, "nublet2", 500], [50, "nublet3", 200], [50, "nublet4", 400], [50, "nublet5", 300]];
var level4enemies = [[50, "lv4bossv2", 300]];
var level5enemies = [[50, "mcgillicutty2v3", 300], [50, "nublet1", 20], [50, "nublet1", 40], [50, "nublet1", 60], [50, "nublet1", 80], [50, "nublet1", 100], [50, "nublet1", 120], [50, "nublet1", 140], [50, "nublet1", 160], [50, "nublet1", 180], [50, "nublet1", 200], [50, "nublet1", 220], [50, "nublet1", 240], [50, "nublet1", 260], [50, "nublet1", 280], [50, "nublet1", 300], [50, "nublet1", 320], [50, "nublet1", 340], [50, "nublet1", 360], [50, "nublet1", 380], [50, "nublet1", 400], [50, "nublet1", 420], [50, "nublet1", 440], [50, "nublet1", 460], [50, "nublet1", 480], [50, "nublet1", 500], [50, "nublet1", 520], [50, "nublet1", 540], [50, "nublet1", 560], [50, "nublet1", 580], [50, "nublet2", 20], [50, "nublet2", 40], [50, "nublet2", 60], [50, "nublet2", 80], [50, "nublet2", 100], [50, "nublet2", 120], [50, "nublet2", 140], [50, "nublet2", 160], [50, "nublet2", 180], [50, "nublet2", 200], [50, "nublet2", 220], [50, "nublet2", 240], [50, "nublet2", 260], [50, "nublet2", 280], [50, "nublet2", 300], [50, "nublet2", 320], [50, "nublet2", 340], [50, "nublet2", 360], [50, "nublet2", 380], [50, "nublet2", 400], [50, "nublet2", 420], [50, "nublet2", 440], [50, "nublet2", 460], [50, "nublet2", 480], [50, "nublet2", 500], [50, "nublet2", 520], [50, "nublet2", 540], [50, "nublet2", 560], [50, "nublet2", 580], [50, "nublet3", 20], [50, "nublet3", 40], [50, "nublet3", 60], [50, "nublet3", 80], [50, "nublet3", 100], [50, "nublet3", 120], [50, "nublet3", 140], [50, "nublet3", 160], [50, "nublet3", 180], [50, "nublet3", 200], [50, "nublet3", 220], [50, "nublet3", 240], [50, "nublet3", 260], [50, "nublet3", 280], [50, "nublet3", 300], [50, "nublet3", 320], [50, "nublet3", 340], [50, "nublet3", 360], [50, "nublet3", 380], [50, "nublet3", 400], [50, "nublet3", 420], [50, "nublet3", 440], [50, "nublet3", 460], [50, "nublet3", 480], [50, "nublet3", 500], [50, "nublet3", 520], [50, "nublet3", 540], [50, "nublet3", 560], [50, "nublet3", 580], [50, "nublet4", 20], [50, "nublet4", 40], [50, "nublet4", 60], [50, "nublet4", 80], [50, "nublet4", 100], [50, "nublet4", 120], [50, "nublet4", 140], [50, "nublet4", 160], [50, "nublet4", 180], [50, "nublet4", 200], [50, "nublet4", 220], [50, "nublet4", 240], [50, "nublet4", 260], [50, "nublet4", 280], [50, "nublet4", 300], [50, "nublet4", 320], [50, "nublet4", 340], [50, "nublet4", 360], [50, "nublet4", 380], [50, "nublet4", 400], [50, "nublet4", 420], [50, "nublet4", 440], [50, "nublet4", 460], [50, "nublet4", 480], [50, "nublet4", 500], [50, "nublet4", 520], [50, "nublet4", 540], [50, "nublet4", 560], [50, "nublet4", 580], [50, "nublet5", 20], [50, "nublet5", 40], [50, "nublet5", 60], [50, "nublet5", 80], [50, "nublet5", 100], [50, "nublet5", 120], [50, "nublet5", 140], [50, "nublet5", 160], [50, "nublet5", 180], [50, "nublet5", 200], [50, "nublet5", 220], [50, "nublet5", 240], [50, "nublet5", 260], [50, "nublet5", 280], [50, "nublet5", 300], [50, "nublet5", 320], [50, "nublet5", 340], [50, "nublet5", 360], [50, "nublet5", 380], [50, "nublet5", 400], [50, "nublet5", 420], [50, "nublet5", 440], [50, "nublet5", 460], [50, "nublet5", 480], [50, "nublet5", 500], [50, "nublet5", 520], [50, "nublet5", 540], [50, "nublet5", 560], [50, "nublet5", 580]];
var level6enemies = [[50, "lv6bossv2", 300]];
var level7enemies = [[50, "enemyship5a", 100], [150, "enemyship5a", 100], [250, "enemyship5a", 500], [350, "enemyship5a", 100], [450, "enemyship5a", 200], [550, "enemyship5a", 100], [650, "enemyship5a", 400], [750, "enemyship5a", 100], [850, "enemyship5a", 300], [1000, "mcgillicutty3v2", 300], [1000, "KC Managra", 300], [1000, "KoG", 300], [1400, "nublet1", 100], [1800, "nublet2", 400], [2200, "nublet3", 200], [2600, "nublet4", 300], [3000, "nublet5", 500], [3400, "nublet1", 100], [3800, "nublet2", 400], [4200, "nublet3", 200], [4600, "nublet4", 300], [5000, "nublet5", 500], [5400, "nublet1", 100], [5800, "nublet2", 400], [6200, "nublet3", 200], [6600, "nublet4", 300], [7000, "nublet5", 500], [7400, "nublet1", 100], [7800, "nublet2", 400], [8200, "nublet3", 200], [8600, "nublet4", 300], [9000, "nublet5", 500], [9400, "nublet1", 100], [9800, "nublet2", 400], [10200, "nublet3", 200], [10600, "nublet4", 300], [11000, "nublet5", 500], [11400, "nublet1", 100], [11800, "nublet2", 400], [12200, "nublet3", 200], [12600, "nublet4", 300], [13000, "nublet5", 500], [13400, "nublet1", 100], [13800, "nublet2", 400], [14200, "nublet3", 200], [14600, "nublet4", 300], [15000, "nublet5", 500], [15400, "nublet1", 100], [15800, "nublet2", 400], [16200, "nublet3", 200], [16600, "nublet4", 300], [17000, "nublet5", 500], [17400, "nublet1", 100], [17800, "nublet2", 400], [18200, "nublet3", 200], [18600, "nublet4", 300], [19000, "nublet5", 500], [19400, "nublet1", 100], [19800, "nublet2", 400], [20200, "nublet3", 200], [20600, "nublet4", 300], [21000, "nublet5", 500]];
var level8enemies = [[50, "bossmccombine", 300]];
var level9enemies = [[50, "texts", 250], [400, "boss???2", 50], [500, "enemyship2a", 100], [600, "enemyship2a", 400], [700, "enemyship2a", 200], [800, "enemyship2a", 300], [900, "enemyship2a", 500], [1000, "enemyship2a", 100], [1100, "enemyship2a", 400], [1200, "enemyship2a", 200], [1300, "enemyship2a", 300], [1400, "enemyship2a", 500], [1500, "enemyship2a", 100], [1600, "enemyship2a", 400], [1700, "enemyship2a", 200], [1800, "enemyship2a", 300], [1900, "enemyship2a", 500], [2000, "enemyship2a", 100], [2100, "enemyship2a", 400], [2200, "enemyship2a", 200], [2300, "enemyship2a", 300], [2400, "enemyship2a", 500], [2500, "enemyship2a", 100], [2600, "enemyship2a", 400], [2700, "enemyship2a", 200], [2800, "enemyship2a", 300], [2900, "enemyship2a", 500], [3000, "enemyship2a", 100], [3100, "enemyship2a", 400], [3200, "enemyship2a", 200], [3300, "enemyship2a", 300], [3400, "enemyship2a", 500], [3500, "enemyship2a", 100], [3600, "enemyship2a", 400], [3700, "enemyship2a", 200], [3800, "enemyship2a", 300], [3900, "enemyship2a", 500], [4000, "enemyship2a", 100], [4100, "enemyship2a", 400], [4200, "enemyship2a", 200], [4300, "enemyship2a", 300], [4400, "enemyship2a", 500], [4500, "enemyship2a", 100], [4600, "enemyship2a", 400], [4700, "enemyship2a", 200], [4800, "enemyship2a", 300], [4900, "enemyship2a", 500], [5000, "enemyship2a", 100], [5100, "enemyship2a", 400], [5200, "enemyship2a", 200], [5300, "enemyship2a", 300], [5400, "enemyship2a", 500], [5500, "enemyship2a", 100], [5600, "enemyship2a", 400], [5700, "enemyship2a", 200], [5800, "enemyship2a", 300], [5900, "enemyship2a", 500], [6000, "enemyship2a", 100], [6100, "enemyship2a", 400], [6200, "enemyship2a", 200], [6300, "enemyship2a", 300], [6400, "enemyship2a", 500], [6500, "enemyship2a", 100], [6600, "enemyship2a", 400], [6700, "enemyship2a", 200], [6800, "enemyship2a", 300], [6900, "enemyship2a", 500], [7000, "enemyship2a", 100], [7100, "enemyship2a", 400], [7200, "enemyship2a", 200], [7300, "enemyship2a", 300], [7400, "enemyship2a", 500], [7500, "enemyship2a", 100], [7600, "enemyship2a", 400], [7700, "enemyship2a", 200], [7800, "enemyship2a", 300], [7900, "enemyship2a", 500], [8000, "enemyship2a", 100], [8100, "enemyship2a", 400], [8200, "enemyship2a", 200], [8300, "enemyship2a", 300], [8400, "enemyship2a", 500], [8500, "enemyship2a", 100], [8600, "enemyship2a", 400], [8700, "enemyship2a", 200], [8800, "enemyship2a", 300], [8900, "enemyship2a", 500], [9000, "enemyship2a", 100], [9100, "enemyship2a", 400], [9200, "enemyship2a", 200], [9300, "enemyship2a", 300], [9400, "enemyship2a", 500], [9500, "enemyship2a", 100], [9600, "enemyship2a", 400], [9700, "enemyship2a", 200], [9800, "enemyship2a", 300], [9900, "enemyship2a", 500], [10000, "enemyship2a", 100], [10100, "enemyship2a", 400], [10200, "enemyship2a", 200], [10300, "enemyship2a", 300], [10400, "enemyship2a", 500], [10500, "enemyship2a", 100], [10600, "enemyship2a", 400], [10700, "enemyship2a", 200], [10800, "enemyship2a", 300], [10900, "enemyship2a", 500], [11000, "enemyship2a", 100], [11100, "enemyship2a", 400], [11200, "enemyship2a", 200], [11300, "enemyship2a", 300], [11400, "enemyship2a", 500], [11500, "enemyship2a", 100], [11600, "enemyship2a", 400], [11700, "enemyship2a", 200], [11800, "enemyship2a", 300], [11900, "enemyship2a", 500], [12000, "enemyship2a", 100], [12100, "enemyship2a", 400], [12200, "enemyship2a", 200], [12300, "enemyship2a", 300], [12400, "enemyship2a", 500], [12500, "enemyship2a", 100], [12600, "enemyship2a", 400], [12700, "enemyship2a", 200], [12800, "enemyship2a", 300], [12900, "enemyship2a", 500], [13000, "enemyship2a", 100], [13100, "enemyship2a", 400], [13200, "enemyship2a", 200], [13300, "enemyship2a", 300], [13400, "enemyship2a", 500], [13500, "enemyship2a", 100], [13600, "enemyship2a", 400], [13700, "enemyship2a", 200], [13800, "enemyship2a", 300], [13900, "enemyship2a", 500], [14000, "enemyship2a", 100], [14100, "enemyship2a", 400], [14200, "enemyship2a", 200], [14300, "enemyship2a", 300], [14400, "enemyship2a", 500], [14500, "enemyship2a", 100], [14600, "enemyship2a", 400], [14700, "enemyship2a", 200], [14800, "enemyship2a", 300], [14900, "enemyship2a", 500], [15000, "enemyship2a", 100], [15100, "enemyship2a", 400], [15200, "enemyship2a", 200], [15300, "enemyship2a", 300], [15400, "enemyship2a", 500], [15500, "enemyship2a", 100], [15600, "enemyship2a", 400], [15700, "enemyship2a", 200], [15800, "enemyship2a", 300], [15900, "enemyship2a", 500], [16000, "enemyship2a", 100], [16100, "enemyship2a", 400], [16200, "enemyship2a", 200], [16300, "enemyship2a", 300], [16400, "enemyship2a", 500], [16500, "enemyship2a", 100], [16600, "enemyship2a", 400], [16700, "enemyship2a", 200], [16800, "enemyship2a", 300], [16900, "enemyship2a", 500], [17000, "enemyship2a", 100], [17100, "enemyship2a", 400], [17200, "enemyship2a", 200], [17300, "enemyship2a", 300], [17400, "enemyship2a", 500], [17500, "enemyship2a", 100], [17600, "enemyship2a", 400], [17700, "enemyship2a", 200], [17800, "enemyship2a", 300], [17900, "enemyship2a", 500], [18000, "enemyship2a", 100], [18100, "enemyship2a", 400], [18200, "enemyship2a", 200], [18300, "enemyship2a", 300], [18400, "enemyship2a", 500], [18500, "enemyship2a", 100], [18600, "enemyship2a", 400], [18700, "enemyship2a", 200], [18800, "enemyship2a", 300], [18900, "enemyship2a", 500], [19000, "enemyship2a", 100], [19100, "enemyship2a", 400], [19200, "enemyship2a", 200], [19300, "enemyship2a", 300], [19400, "enemyship2a", 500], [19500, "enemyship2a", 100], [19600, "enemyship2a", 400], [19700, "enemyship2a", 200], [19800, "enemyship2a", 300], [19900, "enemyship2a", 500], [20000, "enemyship2a", 500]];
var level10enemies = [[50, "bosswinEX", 300]];
var totallevels = 10;
var currentweapon = "singlelazer";
var currentlevel = 0;
var cooldowntime = 8;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(86)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
levelposition++;
while ((currentenemies[0][0] <= levelposition) && (currentenemies.length > 0)) {
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
eval (enemies[enemysearch]).enemyaction();
enemysearch++;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
eval (weapons[weaponsearch]).weaponaction();
weaponsearch++;
}
if (Key.isDown(32)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x = Math.max(ship._width / 2, ship._x - 7);
}
if (Key.isDown(39)) {
ship._x = Math.min(Stage.width - (ship._width / 2), ship._x + 7);
}
if (Key.isDown(38)) {
ship._y = Math.max(0, ship._y - 7);
}
if (Key.isDown(40)) {
ship._y = Math.min(Stage.height - ship._height, ship._y + 7);
}
starfield.movestars();
}
};
Frame 6
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
} else if (currentweapon == "trishot") {
this.attachMovie("lazerleft", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("lazer", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("lazerright", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, "enemy" + enemycount, this.getNextHighestDepth(), {_x:xpos, _y:ypos});
enemies.push("enemy" + enemycount);
enemycount++;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
enemysearch++;
}
eval (enemyid).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
weaponsearch++;
}
eval (weaponid).removeMovieClip();
}
function addpoints(points) {
score = score + points;
}
function hitship() {
if (ship._currentframe == 1) {
currentweapon = "singlelazer";
ship.gotoAndPlay("shiphit");
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie("ship", "ship", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife() {
if (lives > 0) {
lives--;
respawnship();
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
eval (enemies[enemyloop]).removeMovieClip();
enemyloop++;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
eval (weapons[weaponloop]).removeMovieClip();
weaponloop++;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = new Array().concat(eval (("level" + currentlevel) + "enemies"));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 55;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen", "mainscreen", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie("losegame", "losegame", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
function winlevel() {
currentlevel++;
lives++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie("wingame", "wingame", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 55;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "upsound", 1], [50, "bossweegee", 300]];
var level2enemies = [[50, "weewin", 250]];
var totallevels = 2;
var currentweapon = "singlelazer";
var currentlevel = 0;
var cooldowntime = 5;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(86)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
levelposition++;
while ((currentenemies[0][0] <= levelposition) && (currentenemies.length > 0)) {
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
eval (enemies[enemysearch]).enemyaction();
enemysearch++;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
eval (weapons[weaponsearch]).weaponaction();
weaponsearch++;
}
if (Key.isDown(32)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(38)) {
ship._x = Math.max(ship._width / 2, ship._x - 7);
}
if (Key.isDown(37)) {
ship._x = Math.min(Stage.width - (ship._width / 2), ship._x + 7);
}
if (Key.isDown(40)) {
ship._y = Math.max(0, ship._y - 7);
}
if (Key.isDown(39)) {
ship._y = Math.min(Stage.height - ship._height, ship._y + 7);
}
starfield.movestars();
}
};
Frame 7
stop();
Frame 8
stop();
Symbol 3 MovieClip [asteroidbulletwhite] Frame 1
function enemyaction() {
_y = (_y - 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 6 MovieClip [asteroidbulletKoG2] Frame 1
function enemyaction() {
_y = (_y - 15);
_x = (_x + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 9 MovieClip [asteroidbulletKC2] Frame 1
function enemyaction() {
_y = (_y - 15);
_x = (_x - 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 58 MovieClip Frame 40
gotoAndPlay (1);
Symbol 83 MovieClip Frame 21
gotoAndPlay (19);
Symbol 92 MovieClip [hitarea] Frame 1
Symbol 106 MovieClip Frame 180
gotoAndPlay (1);
Symbol 129 MovieClip [9] Frame 13
_parent._parent.winlevel();
Symbol 130 MovieClip [bossmccombine] Frame 1
stopAllSounds();
Symbol 130 MovieClip [bossmccombine] Frame 596
stopAllSounds();
Symbol 130 MovieClip [bossmccombine] Frame 597
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(55555);
gotoAndStop ("explode");
} else {
_parent.addpoints(555);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
guncooldown4--;
guncooldown5--;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy("asteroidbulletmc", _x, _y + 50);
}
if (guncooldown2 == 0) {
guncooldown2 = 17;
_parent.insertenemy("asteroidbulletKC2", _x - 60, _y - 10);
}
if (guncooldown3 == 0) {
guncooldown3 = 19;
_parent.insertenemy("asteroidbulletKoG2", _x + 60, _y - 10);
}
if (guncooldown4 == 0) {
guncooldown4 = 21;
_parent.insertenemy("asteroidbulletwhite", _x, _y - 50);
}
if (guncooldown5 == 0) {
guncooldown5 = 105;
_parent.insertenemy("eyebullet", _x, _y - 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 3);
} else {
_x = (_x - 3);
}
if (_parent.ship._y > _y) {
_y = (_y + 3);
} else {
_y = (_y - 3);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 155;
guncooldown = 15;
guncooldown2 = 17;
guncooldown3 = 19;
guncooldown4 = 21;
guncooldown5 = 105;
_y = 0;
Symbol 130 MovieClip [bossmccombine] Frame 600
stop();
Symbol 136 MovieClip [enemyboulder2] Frame 1
function takedamage(strength) {
_parent.addpoints(50);
gotoAndPlay ("explode");
}
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
stop();
xmov = (Math.random() * 4) - 2;
if (xmov <= 0) {
xmov = xmov - 1;
} else {
xmov = xmov + 1;
}
ymov = (Math.random() * 4) - 2;
if (ymov <= 0) {
ymov = ymov - 1;
} else {
ymov = ymov + 1;
}
_rotation = (Math.random() * 360);
Symbol 136 MovieClip [enemyboulder2] Frame 5
_parent.removeenemy(_name);
Symbol 139 MovieClip [enemyboulder1] Frame 1
stopAllSounds();
Symbol 139 MovieClip [enemyboulder1] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(50);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
xmov = (Math.random() * 4) - 2;
ymov = 8;
_rotation = (Math.random() * 360);
health = 2;
Symbol 139 MovieClip [enemyboulder1] Frame 3
_parent.insertenemy("enemyboulder2", _x, _y);
_parent.insertenemy("enemyboulder2", _x, _y);
_parent.insertenemy("enemyboulder2", _x, _y);
_parent.removeenemy(_name);
Symbol 139 MovieClip [enemyboulder1] Frame 5
stop();
Symbol 144 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 146 MovieClip [enemyship2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(150);
gotoAndStop ("explode");
} else {
_parent.addpoints(30);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy("enemylazer2", _x, _y);
}
_y = (_y + 3);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
guncooldown = 50;
Symbol 146 MovieClip [enemyship2] Frame 4
stop();
Symbol 148 MovieClip Frame 60
gotoAndPlay (1);
Symbol 149 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 150 MovieClip [enemyship3] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (moveright) {
_x = (_x + 5);
if (_x > (startx + maxdist)) {
moveright = false;
}
} else {
_x = (_x - 5);
if (_x < (startx - maxdist)) {
moveright = true;
}
}
_y = (_y + 4);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
moveright = true;
maxdist = 70;
startx = _x;
Symbol 150 MovieClip [enemyship3] Frame 4
stop();
Symbol 154 MovieClip Frame 200
gotoAndPlay (1);
Symbol 156 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 157 MovieClip [enemyship4] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("enemylazer1", _x, _y + 20);
_parent.insertenemy("enemylazer3", _x, _y + 20);
_parent.insertenemy("enemylazer4", _x, _y + 20);
}
_y = (_y + 3);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 50;
Symbol 157 MovieClip [enemyship4] Frame 4
stop();
Symbol 162 MovieClip [boss???] Frame 1
stopAllSounds();
Symbol 162 MovieClip [boss???] Frame 2
function multiplehittests(weapon, weaponstrength) {
seg = 1;
while (seg <= segments) {
if (eval ("segment" + seg) != undefined) {
if (eval (("segment" + seg) + ".hitarea").hitTest(eval ("_level0." + weapon))) {
eval ("segment" + seg).takedamage(weaponstrength);
return(1);
}
}
seg++;
}
return(0);
}
function enemyaction() {
dead = true;
seg = 1;
while (seg <= segments) {
if (eval ("segment" + seg) != undefined) {
dead = false;
eval ("segment" + seg).segmentaction();
}
seg++;
}
if (dead) {
_parent.winlevel();
}
}
stop();
segments = 2;
multiplehitareas = true;
seg = 1;
while (seg < segments) {
this.attachMovie("enemyboss2segment", "segment" + seg, this.getNextHighestDepth(), {_x:0, _y:0});
seg++;
}
Symbol 164 MovieClip [enemybosslevel1explosion] Frame 13
_parent._parent.winlevel();
Symbol 170 MovieClip [mcgillicutty1] Frame 1
stopAllSounds();
Symbol 170 MovieClip [mcgillicutty1] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 25;
guncooldown = 20;
_y = 20;
Symbol 170 MovieClip [mcgillicutty1] Frame 5
stop();
Symbol 176 MovieClip Frame 60
gotoAndPlay (1);
Symbol 180 MovieClip [poweruptrishot] Frame 1
function takedamage(strength) {
_parent.removeenemy(_name);
}
function enemyaction() {
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.currentweapon = "trishot";
_parent.removeenemy(_name);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
Symbol 183 MovieClip [poweruplevelup] Frame 1
function takedamage(strength) {
_parent.removeenemy(_name);
}
function enemyaction() {
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.lives++;
_parent.removeenemy(_name);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
Symbol 187 MovieClip Frame 1
gotoAndPlay (2);
Symbol 187 MovieClip Frame 40
gotoAndPlay (41);
Symbol 187 MovieClip Frame 80
gotoAndPlay (2);
Symbol 188 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 190 MovieClip [enemyship1] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 50;
Symbol 190 MovieClip [enemyship1] Frame 4
stop();
Symbol 194 MovieClip [ship] Frame 1
stop();
if (warmedup == undefined) {
gotoAndPlay ("warmup");
}
Symbol 194 MovieClip [ship] Frame 2
play();
Symbol 194 MovieClip [ship] Frame 13
_parent.loselife();
Symbol 194 MovieClip [ship] Frame 75
warmedup = 1;
Symbol 203 MovieClip Frame 90
gotoAndPlay (1);
Symbol 204 MovieClip [star] Frame 1
newspeedandsize = (Math.random() * 5) + 1;
speed = newspeedandsize;
_width = newspeedandsize;
_height = newspeedandsize;
_y = (Math.random() * Stage.height);
_x = (Math.random() * Stage.width);
Symbol 205 MovieClip Frame 20
gotoAndPlay (1);
Symbol 206 MovieClip [enemylazer2] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 16;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 207 MovieClip [enemylazer4] Frame 1
function enemyaction() {
_x = (_x - 10);
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 208 MovieClip [enemylazer3] Frame 1
function enemyaction() {
_x = (_x + 10);
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 209 MovieClip [enemylazer1] Frame 1
function enemyaction() {
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 211 MovieClip [lazerleft] Frame 1
function weaponaction() {
_y = (_y - 20);
_x = (_x - 20);
if ((_y + _height) < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!eval ("_parent." + _parent.enemies[curenemy]).multiplehitareas) {
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitarea"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else if (eval ("_parent." + _parent.enemies[curenemy]).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
curenemy++;
}
}
weaponstrength = 1;
Symbol 213 MovieClip [lazerright] Frame 1
function weaponaction() {
_y = (_y - 20);
_x = (_x + 20);
if ((_y + _height) < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!eval ("_parent." + _parent.enemies[curenemy]).multiplehitareas) {
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitarea"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else if (eval ("_parent." + _parent.enemies[curenemy]).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
curenemy++;
}
}
weaponstrength = 1;
Symbol 216 MovieClip [lazer] Frame 1
function weaponaction() {
_y = (_y - 20);
if ((_y + _height) < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!eval ("_parent." + _parent.enemies[curenemy]).multiplehitareas) {
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitarea"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else if (eval ("_parent." + _parent.enemies[curenemy]).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
curenemy++;
}
}
weaponstrength = 1;
Symbol 220 MovieClip [showlevel] Frame 1
counter = 0;
onEnterFrame = function () {
counter++;
if (counter > 90) {
removeMovieClip(this);
}
};
Symbol 231 MovieClip Frame 720
gotoAndPlay (1);
Symbol 237 Button
on (press) {
_parent.newgame();
this.removeMovieClip();
}
Symbol 251 MovieClip [losegame] Frame 1
stopAllSounds();
Symbol 254 Button
on (press) {
_parent.newgame();
this.removeMovieClip();
}
Symbol 255 MovieClip [mainscreen] Frame 1
onEnterFrame = function () {
if (Key.isDown(17)) {
_parent.newgame();
this.removeMovieClip();
}
};
Symbol 284 MovieClip [enemyboss2segment] Frame 1
function segmentaction() {
lastrotation = _rotation;
nextsegment = _name.substr(7, _name.length - 7);
if (eval ("_parent.segment" + (parseInt(nextsegment) - 1)) == undefined) {
this.gotoAndStop("createhead");
} else {
_rotation = eval ("_parent.segment" + (parseInt(nextsegment) - 1)).lastrotation;
rotationinradians = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._rotation * Math.PI) / 180;
_x = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._x - (Math.cos(rotationinradians) * segdistance));
_y = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._y - (Math.sin(rotationinradians) * segdistance));
}
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(30);
removeMovieClip(this);
} else {
_parent._parent.addpoints(5);
gotoAndPlay ("bodydamage");
}
}
stop();
segdistance = 30;
lastrotation = 0;
health = 2;
Symbol 284 MovieClip [enemyboss2segment] Frame 2
play();
Symbol 284 MovieClip [enemyboss2segment] Frame 3
function segmentaction() {
lastrotation = _rotation;
nextsegment = _name.substr(7, _name.length - 7);
if (eval ("_parent.segment" + (parseInt(nextsegment) - 1)) == undefined) {
this.gotoAndStop("createhead");
} else {
_rotation = eval ("_parent.segment" + (parseInt(nextsegment) - 1)).lastrotation;
rotationinradians = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._rotation * Math.PI) / 180;
_x = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._x - (Math.cos(rotationinradians) * segdistance));
_y = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._y - (Math.sin(rotationinradians) * segdistance));
}
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(30);
removeMovieClip(this);
} else {
_parent._parent.addpoints(5);
gotoAndPlay ("bodydamage");
}
}
stop();
segdistance = 30;
lastrotation = 0;
Symbol 284 MovieClip [enemyboss2segment] Frame 5
function segmentaction() {
lastrotation = _rotation;
xdist = _level0.ship._x - _x;
ydist = _level0.ship._y - _y;
anglechange = ((Math.atan2(ydist, xdist) / Math.PI) * 180) - _rotation;
if (Math.abs(anglechange) > 180) {
anglechange = anglechange * -1;
}
anglechange = Math.min(rotationspeed, Math.max(-rotationspeed, anglechange));
_rotation = (_rotation + anglechange);
rotationinradians = (_rotation * Math.PI) / 180;
_x = (_x + (Math.cos(rotationinradians) * movespeed));
_y = (_y + (Math.sin(rotationinradians) * movespeed));
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(100000);
gotoAndPlay ("explode");
} else {
_parent._parent.addpoints(100);
gotoAndPlay ("headdamage");
}
}
stop();
movespeed = 6;
rotationspeed = 2.5;
lastrotation = 0;
health = 150;
Symbol 284 MovieClip [enemyboss2segment] Frame 7
function segmentaction() {
lastrotation = _rotation;
xdist = _level0.ship._x - _x;
ydist = _level0.ship._y - _y;
anglechange = ((Math.atan2(ydist, xdist) / Math.PI) * 180) - _rotation;
if (Math.abs(anglechange) > 180) {
anglechange = anglechange * -1;
}
anglechange = Math.min(rotationspeed, Math.max(-rotationspeed, anglechange));
_rotation = (_rotation + anglechange);
rotationinradians = (_rotation * Math.PI) / 180;
_x = (_x + (Math.cos(rotationinradians) * movespeed));
_y = (_y + (Math.sin(rotationinradians) * movespeed));
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(100);
gotoAndPlay ("explode");
} else {
_parent._parent.addpoints(10);
gotoAndPlay ("headdamage");
}
}
stop();
movespeed = 6;
rotationspeed = 2.5;
lastrotation = 0;
Symbol 284 MovieClip [enemyboss2segment] Frame 145
removeMovieClip(this);
Symbol 288 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 291 MovieClip [KC Managra] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(25000);
gotoAndStop ("explode");
} else {
_parent.addpoints(1000);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("asteroidbulletKC", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 450;
guncooldown = 18;
_y = 100;
Symbol 291 MovieClip [KC Managra] Frame 4
stop();
Symbol 300 MovieClip [textboxes] Frame 1
function enemyaction() {
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 300 MovieClip [textboxes] Frame 291
stop();
Symbol 303 MovieClip Frame 55
gotoAndPlay (1);
Symbol 304 MovieClip Frame 55
gotoAndPlay (1);
Symbol 307 MovieClip Frame 1
gotoAndPlay (2);
Symbol 307 MovieClip Frame 40
gotoAndPlay (41);
Symbol 307 MovieClip Frame 80
gotoAndPlay (2);
Symbol 309 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 312 MovieClip [KoG] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(55555);
gotoAndStop ("explode");
} else {
_parent.addpoints(555);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 25;
_parent.insertenemy("asteroidbulletKoG", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (_parent.ship._y > _y) {
_y = (_y + 1);
} else {
_y = (_y - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 555;
guncooldown = 24;
_y = 180;
Symbol 312 MovieClip [KoG] Frame 4
stop();
Symbol 314 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 317 MovieClip [lv1boss] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 10;
guncooldown = 40;
_y = 80;
Symbol 317 MovieClip [lv1boss] Frame 4
stop();
Symbol 319 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 320 MovieClip [lv2boss] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1500);
gotoAndStop ("explode");
} else {
_parent.addpoints(150);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 15;
guncooldown = 30;
_y = 80;
Symbol 320 MovieClip [lv2boss] Frame 4
stop();
Symbol 321 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 322 MovieClip [enemyship0] Frame 1
stopAllSounds();
Symbol 322 MovieClip [enemyship0] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (moveright) {
_x = (_x + 5);
if (_x > (startx + maxdist)) {
moveright = false;
}
} else {
_x = (_x - 5);
if (_x < (startx - maxdist)) {
moveright = true;
}
}
_y = (_y + 4);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
moveright = true;
maxdist = 70;
startx = _x;
Symbol 322 MovieClip [enemyship0] Frame 5
stop();
Symbol 323 MovieClip [lv4boss] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(2000);
gotoAndStop ("explode");
} else {
_parent.addpoints(200);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 30;
guncooldown = 20;
_y = 80;
Symbol 323 MovieClip [lv4boss] Frame 4
stop();
Symbol 327 MovieClip [mcgillicutty2] Frame 1
stopAllSounds();
Symbol 327 MovieClip [mcgillicutty2] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 50;
guncooldown = 15;
_y = 20;
Symbol 327 MovieClip [mcgillicutty2] Frame 5
stop();
Symbol 332 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 336 MovieClip [nublet1] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 2;
guncooldown = 40;
_y = 200;
Symbol 336 MovieClip [nublet1] Frame 4
stop();
Symbol 340 MovieClip [nublet2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 2;
guncooldown = 40;
_y = 250;
Symbol 340 MovieClip [nublet2] Frame 4
stop();
Symbol 344 MovieClip [nublet3] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 2;
guncooldown = 40;
_y = 300;
Symbol 344 MovieClip [nublet3] Frame 4
stop();
Symbol 347 MovieClip [asteroidbulletmc] Frame 1
function enemyaction() {
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 348 MovieClip [asteroidbulletKC] Frame 1
function enemyaction() {
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 350 MovieClip [asteroidbulletKoG] Frame 1
function enemyaction() {
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 354 MovieClip Frame 1
gotoAndPlay (2);
Symbol 354 MovieClip Frame 40
gotoAndPlay (41);
Symbol 354 MovieClip Frame 80
gotoAndPlay (2);
Symbol 355 MovieClip [enemyship1explosion] Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 357 MovieClip [enemyship1a] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(700);
gotoAndStop ("explode");
} else {
_parent.addpoints(30);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 4;
guncooldown = 50;
Symbol 357 MovieClip [enemyship1a] Frame 4
stop();
Symbol 360 MovieClip Frame 60
gotoAndPlay (1);
Symbol 361 MovieClip [enemyship3explosion] Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 363 MovieClip [enemyship3a] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(500);
gotoAndStop ("explode");
} else {
_parent.addpoints(20);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (moveright) {
_x = (_x + 5);
if (_x > (startx + maxdist)) {
moveright = false;
}
} else {
_x = (_x - 5);
if (_x < (startx - maxdist)) {
moveright = true;
}
}
_y = (_y + 4);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
moveright = true;
maxdist = 70;
startx = _x;
Symbol 363 MovieClip [enemyship3a] Frame 4
stop();
Symbol 367 MovieClip Frame 200
gotoAndPlay (1);
Symbol 369 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 370 MovieClip [enemyship4a] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(50);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("enemylazer1", _x, _y + 20);
_parent.insertenemy("enemylazer3", _x, _y + 20);
_parent.insertenemy("enemylazer4", _x, _y + 20);
}
_y = (_y + 3);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 7;
guncooldown = 50;
Symbol 370 MovieClip [enemyship4a] Frame 4
stop();
Symbol 372 MovieClip [enemyship0a] Frame 1
stopAllSounds();
Symbol 372 MovieClip [enemyship0a] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (moveright) {
_x = (_x + 5);
if (_x > (startx + maxdist)) {
moveright = false;
}
} else {
_x = (_x - 5);
if (_x < (startx - maxdist)) {
moveright = true;
}
}
_y = (_y + 4);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
moveright = true;
maxdist = 70;
startx = _x;
Symbol 372 MovieClip [enemyship0a] Frame 5
stop();
Symbol 374 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 375 MovieClip [lv6boss] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explode");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 12;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 55;
guncooldown = 12;
_y = 120;
Symbol 375 MovieClip [lv6boss] Frame 4
stop();
Symbol 378 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 381 MovieClip [enemyship5a] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(10000);
gotoAndStop ("explode");
} else {
_parent.addpoints(1000);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("centersnowflake", _x, _y + 20);
_parent.insertenemy("leftsnowflake", _x, _y + 20);
_parent.insertenemy("rightsnowflake", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
_y = (_y + 3);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 10;
Symbol 381 MovieClip [enemyship5a] Frame 4
stop();
Symbol 384 MovieClip [centersnowflake] Frame 1
function enemyaction() {
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 384 MovieClip [centersnowflake] Frame 13
gotoAndPlay (1);
Symbol 385 MovieClip [leftsnowflake] Frame 1
function enemyaction() {
_x = (_x + 15);
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 385 MovieClip [leftsnowflake] Frame 13
gotoAndPlay (1);
Symbol 386 MovieClip [rightsnowflake] Frame 1
function enemyaction() {
_x = (_x - 15);
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 386 MovieClip [rightsnowflake] Frame 13
gotoAndPlay (1);
Symbol 391 MovieClip [mcgillicutty3] Frame 1
stopAllSounds();
Symbol 391 MovieClip [mcgillicutty3] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(10000);
gotoAndStop ("explode");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 100;
guncooldown = 10;
_y = 20;
Symbol 391 MovieClip [mcgillicutty3] Frame 5
stop();
Symbol 394 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 396 MovieClip [easywin] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scoreeasy", _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 396 MovieClip [easywin] Frame 2
Nonoba.api.NonobaAPI.AwardAchievement("wineasy", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 396 MovieClip [easywin] Frame 3
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 396 MovieClip [easywin] Frame 6
stop();
Symbol 399 MovieClip [mediumwin] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scoremed", _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 399 MovieClip [mediumwin] Frame 2
Nonoba.api.NonobaAPI.AwardAchievement("winmed", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 399 MovieClip [mediumwin] Frame 3
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 399 MovieClip [mediumwin] Frame 6
stop();
Symbol 405 MovieClip [hardwin] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorehard", _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 405 MovieClip [hardwin] Frame 2
Nonoba.api.NonobaAPI.AwardAchievement("winhard", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 405 MovieClip [hardwin] Frame 3
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 405 MovieClip [hardwin] Frame 6
stop();
Symbol 410 MovieClip [lunaticwin] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorelun", _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 410 MovieClip [lunaticwin] Frame 2
Nonoba.api.NonobaAPI.AwardAchievement("winlun", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 410 MovieClip [lunaticwin] Frame 3
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 410 MovieClip [lunaticwin] Frame 6
stop();
Symbol 415 MovieClip [bosswin] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scoreboss", _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 415 MovieClip [bosswin] Frame 2
Nonoba.api.NonobaAPI.AwardAchievement("winboss", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 415 MovieClip [bosswin] Frame 3
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 415 MovieClip [bosswin] Frame 6
stop();
Symbol 416 MovieClip [lv1bossv2] Frame 1
stopAllSounds();
Symbol 416 MovieClip [lv1bossv2] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 10;
guncooldown = 40;
_y = 80;
Symbol 416 MovieClip [lv1bossv2] Frame 5
stop();
Symbol 427 MovieClip [texts] Frame 1
stopAllSounds();
Symbol 427 MovieClip [texts] Frame 331
stop();
Symbol 431 MovieClip [mcgillicutty1v2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 25;
guncooldown = 20;
_y = 20;
Symbol 431 MovieClip [mcgillicutty1v2] Frame 4
stop();
Symbol 435 MovieClip [mcgillicutty2v2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 50;
guncooldown = 15;
_y = 20;
Symbol 435 MovieClip [mcgillicutty2v2] Frame 4
stop();
Symbol 443 MovieClip Frame 13
_parent._parent.removeenemy(_parent._name);
Symbol 444 MovieClip [enemyship2a] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(150);
gotoAndStop ("explode");
} else {
_parent.addpoints(30);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy("enemylazer2", _x, _y);
}
_y = (_y + 3);
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 25;
Symbol 444 MovieClip [enemyship2a] Frame 4
stop();
Symbol 445 MovieClip [boss???2] Frame 1
stopAllSounds();
Symbol 445 MovieClip [boss???2] Frame 2
function multiplehittests(weapon, weaponstrength) {
seg = 1;
while (seg <= segments) {
if (eval ("segment" + seg) != undefined) {
if (eval (("segment" + seg) + ".hitarea").hitTest(eval ("_level0." + weapon))) {
eval ("segment" + seg).takedamage(weaponstrength);
return(1);
}
}
seg++;
}
return(0);
}
function enemyaction() {
dead = true;
seg = 1;
while (seg <= segments) {
if (eval ("segment" + seg) != undefined) {
dead = false;
eval ("segment" + seg).segmentaction();
}
seg++;
}
if (dead) {
_parent.winlevel();
}
}
stop();
segments = 2;
multiplehitareas = true;
seg = 1;
while (seg < segments) {
this.attachMovie("enemyboss3segment", "segment" + seg, this.getNextHighestDepth(), {_x:0, _y:0});
seg++;
}
Symbol 446 MovieClip [enemyboss3segment] Frame 1
function segmentaction() {
lastrotation = _rotation;
nextsegment = _name.substr(7, _name.length - 7);
if (eval ("_parent.segment" + (parseInt(nextsegment) - 1)) == undefined) {
this.gotoAndStop("createhead");
} else {
_rotation = eval ("_parent.segment" + (parseInt(nextsegment) - 1)).lastrotation;
rotationinradians = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._rotation * Math.PI) / 180;
_x = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._x - (Math.cos(rotationinradians) * segdistance));
_y = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._y - (Math.sin(rotationinradians) * segdistance));
}
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(30);
removeMovieClip(this);
} else {
_parent._parent.addpoints(5);
gotoAndPlay ("bodydamage");
}
}
stop();
segdistance = 30;
lastrotation = 0;
health = 2;
Symbol 446 MovieClip [enemyboss3segment] Frame 2
play();
Symbol 446 MovieClip [enemyboss3segment] Frame 3
function segmentaction() {
lastrotation = _rotation;
nextsegment = _name.substr(7, _name.length - 7);
if (eval ("_parent.segment" + (parseInt(nextsegment) - 1)) == undefined) {
this.gotoAndStop("createhead");
} else {
_rotation = eval ("_parent.segment" + (parseInt(nextsegment) - 1)).lastrotation;
rotationinradians = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._rotation * Math.PI) / 180;
_x = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._x - (Math.cos(rotationinradians) * segdistance));
_y = (eval ("_parent.segment" + (parseInt(nextsegment) - 1))._y - (Math.sin(rotationinradians) * segdistance));
}
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(30);
removeMovieClip(this);
} else {
_parent._parent.addpoints(5);
gotoAndPlay ("bodydamage");
}
}
stop();
segdistance = 30;
lastrotation = 0;
Symbol 446 MovieClip [enemyboss3segment] Frame 5
function segmentaction() {
lastrotation = _rotation;
xdist = _level0.ship._x - _x;
ydist = _level0.ship._y - _y;
anglechange = ((Math.atan2(ydist, xdist) / Math.PI) * 180) - _rotation;
if (Math.abs(anglechange) > 180) {
anglechange = anglechange * -1;
}
anglechange = Math.min(rotationspeed, Math.max(-rotationspeed, anglechange));
_rotation = (_rotation + anglechange);
rotationinradians = (_rotation * Math.PI) / 180;
_x = (_x + (Math.cos(rotationinradians) * movespeed));
_y = (_y + (Math.sin(rotationinradians) * movespeed));
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(100000);
gotoAndPlay ("explode");
} else {
_parent._parent.addpoints(100);
gotoAndPlay ("headdamage");
}
}
stop();
movespeed = 7;
rotationspeed = 3;
lastrotation = 0;
health = 300;
Symbol 446 MovieClip [enemyboss3segment] Frame 7
function segmentaction() {
lastrotation = _rotation;
xdist = _level0.ship._x - _x;
ydist = _level0.ship._y - _y;
anglechange = ((Math.atan2(ydist, xdist) / Math.PI) * 180) - _rotation;
if (Math.abs(anglechange) > 180) {
anglechange = anglechange * -1;
}
anglechange = Math.min(rotationspeed, Math.max(-rotationspeed, anglechange));
_rotation = (_rotation + anglechange);
rotationinradians = (_rotation * Math.PI) / 180;
_x = (_x + (Math.cos(rotationinradians) * movespeed));
_y = (_y + (Math.sin(rotationinradians) * movespeed));
if (hitarea.hitTest(_parent._parent.ship.hitarea)) {
_parent._parent.hitship();
}
}
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent._parent.addpoints(100);
gotoAndPlay ("explode");
} else {
_parent._parent.addpoints(10);
gotoAndPlay ("headdamage");
}
}
stop();
movespeed = 6;
rotationspeed = 2.5;
lastrotation = 0;
Symbol 446 MovieClip [enemyboss3segment] Frame 145
removeMovieClip(this);
Symbol 447 MovieClip Frame 60
gotoAndPlay (1);
Symbol 449 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 450 MovieClip [lv1bossv3] Frame 1
stopAllSounds();
Symbol 450 MovieClip [lv1bossv3] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 20;
guncooldown = 40;
_y = 80;
Symbol 450 MovieClip [lv1bossv3] Frame 5
stop();
Symbol 453 MovieClip Frame 1
gotoAndPlay (2);
Symbol 453 MovieClip Frame 40
gotoAndPlay (41);
Symbol 453 MovieClip Frame 80
gotoAndPlay (2);
Symbol 455 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 456 MovieClip [lv2bossv2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1500);
gotoAndStop ("explode");
} else {
_parent.addpoints(150);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 30;
guncooldown = 30;
_y = 80;
Symbol 456 MovieClip [lv2bossv2] Frame 4
stop();
Symbol 460 MovieClip [mcgillicutty1v3] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 50;
guncooldown = 20;
_y = 20;
Symbol 460 MovieClip [mcgillicutty1v3] Frame 4
stop();
Symbol 462 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 463 MovieClip [lv4bossv2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(2000);
gotoAndStop ("explode");
} else {
_parent.addpoints(200);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 60;
guncooldown = 20;
_y = 80;
Symbol 463 MovieClip [lv4bossv2] Frame 4
stop();
Symbol 467 MovieClip [mcgillicutty2v3] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 100;
guncooldown = 15;
_y = 20;
Symbol 467 MovieClip [mcgillicutty2v3] Frame 4
stop();
Symbol 471 MovieClip [nublet4] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 2;
guncooldown = 40;
_y = 350;
Symbol 471 MovieClip [nublet4] Frame 4
stop();
Symbol 475 MovieClip [nublet5] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 2;
guncooldown = 40;
_y = 400;
Symbol 475 MovieClip [nublet5] Frame 4
stop();
Symbol 478 MovieClip Frame 200
gotoAndPlay (1);
Symbol 480 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 481 MovieClip [lv6bossv2] Frame 1
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explode");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
if (guncooldown == 0) {
guncooldown = 12;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("enemylazer4", _x + 120, _y + 20);
}
if (guncooldown3 == 0) {
guncooldown3 = 30;
_parent.insertenemy("enemylazer3", _x - 70, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 110;
guncooldown = 12;
guncooldown2 = 20;
guncooldown3 = 30;
_y = 120;
Symbol 481 MovieClip [lv6bossv2] Frame 4
stop();
Symbol 485 MovieClip [mcgillicutty3v2] Frame 1
stopAllSounds();
Symbol 485 MovieClip [mcgillicutty3v2] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(10000);
gotoAndStop ("explode");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10;
_parent.insertenemy("asteroidbulletmc", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 200;
guncooldown = 10;
_y = 20;
Symbol 485 MovieClip [mcgillicutty3v2] Frame 5
stop();
Symbol 494 MovieClip [bosswinEX] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorebossex", _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 494 MovieClip [bosswinEX] Frame 2
Nonoba.api.NonobaAPI.AwardAchievement("winbossex", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 494 MovieClip [bosswinEX] Frame 3
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 494 MovieClip [bosswinEX] Frame 6
stop();
Symbol 499 MovieClip [eyebullet] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 5;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 536 MovieClip Frame 13
_parent._parent.winlevel();
Symbol 538 MovieClip [bossweegee] Frame 1
stopAllSounds();
Symbol 538 MovieClip [bossweegee] Frame 297
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodepre");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
guncooldown4--;
guncooldown5--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("weegeebullet1", _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 150;
_parent.insertenemy("weegeebullet2", _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 200;
_parent.insertenemy("weegeebullet3", _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 250;
_parent.insertenemy("weegeebullet4", _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 300;
_parent.insertenemy("weegeebullet5", _x, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 55;
guncooldown = 100;
guncooldown2 = 150;
guncooldown3 = 200;
guncooldown4 = 250;
guncooldown5 = 300;
_y = 200;
Symbol 538 MovieClip [bossweegee] Frame 300
stop();
Symbol 538 MovieClip [bossweegee] Frame 302
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodepre2");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage2");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
guncooldown4--;
guncooldown5--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("weegeebullet1", _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 75;
_parent.insertenemy("weegeebullet2", _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 100;
_parent.insertenemy("weegeebullet3", _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 125;
_parent.insertenemy("weegeebullet4", _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 150;
_parent.insertenemy("weegeebullet5", _x, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 105;
guncooldown = 50;
guncooldown2 = 75;
guncooldown3 = 100;
guncooldown4 = 125;
guncooldown5 = 150;
_y = 200;
Symbol 538 MovieClip [bossweegee] Frame 305
stop();
Symbol 538 MovieClip [bossweegee] Frame 307
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(2775);
gotoAndStop ("explode");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage3");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
guncooldown4--;
guncooldown5--;
guncooldown6--;
guncooldown7--;
guncooldown8--;
guncooldown9--;
guncooldown10--;
guncooldown11--;
guncooldown12--;
if (guncooldown == 0) {
guncooldown = 25;
_parent.insertenemy("weegeebullet1", _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 40;
_parent.insertenemy("weegeebullet2", _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 55;
_parent.insertenemy("weegeebullet3", _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 70;
_parent.insertenemy("weegeebullet4", _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 85;
_parent.insertenemy("weegeebullet5", _x, _y);
}
if (guncooldown6 == 0) {
guncooldown6 = 150;
_parent.insertenemy("db1", _x - 142, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 150;
_parent.insertenemy("db2", _x - 142, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 150;
_parent.insertenemy("db3", _x - 142, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 150;
_parent.insertenemy("db4", _x - 142, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 150;
_parent.insertenemy("db5", _x - 142, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 150;
_parent.insertenemy("db6", _x - 142, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 150;
_parent.insertenemy("db7", _x - 142, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 155;
guncooldown = 25;
guncooldown2 = 40;
guncooldown3 = 55;
guncooldown4 = 70;
guncooldown5 = 85;
guncooldown6 = 150;
guncooldown7 = 150;
guncooldown8 = 150;
guncooldown9 = 150;
guncooldown10 = 150;
guncooldown11 = 150;
guncooldown12 = 150;
_y = 200;
Symbol 538 MovieClip [bossweegee] Frame 310
stop();
Symbol 542 MovieClip Frame 120
gotoAndPlay (1);
Symbol 543 MovieClip [weegeebullet1] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 5;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 544 MovieClip [weegeebullet2] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 10;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 545 MovieClip [weegeebullet3] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 15;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 546 MovieClip [weegeebullet4] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 20;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 547 MovieClip [weegeebullet5] Frame 1
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 25;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 552 MovieClip [db1] Frame 1
function enemyaction() {
_y = (_y + 5);
_x = (_x + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 554 MovieClip [db2] Frame 1
function enemyaction() {
_y = (_y + 5);
_x = (_x + 0);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 556 MovieClip [db3] Frame 1
function enemyaction() {
_y = (_y + 5);
_x = (_x - 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 558 MovieClip [db4] Frame 1
function enemyaction() {
_y = (_y + 0);
_x = (_x - 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 560 MovieClip [db5] Frame 1
function enemyaction() {
_y = (_y - 5);
_x = (_x - 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 562 MovieClip [db6] Frame 1
function enemyaction() {
_y = (_y - 5);
_x = (_x + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 564 MovieClip [db7] Frame 1
function enemyaction() {
_y = (_y + 0);
_x = (_x + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
Symbol 568 MovieClip [weewin] Frame 1
stopAllSounds();
Nonoba.api.NonobaAPI.AwardAchievement("winwee", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 568 MovieClip [weewin] Frame 2
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(325);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5000000000;
_parent.insertenemy("enemylazer1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
guncooldown = 5000000000;
Symbol 568 MovieClip [weewin] Frame 5
stop();
Symbol 571 MovieClip [upsound] Frame 2
stop();
Symbol 572 MovieClip [starfield] Frame 1
function movestars() {
starcount = 1;
while (starcount <= stars) {
eval ("star" + starcount)._y = eval ("star" + starcount)._y + eval ("star" + starcount).speed;
if (eval ("star" + starcount)._y > Stage.height) {
newspeedandsize = (Math.random() * 4) + 1;
eval ("star" + starcount).speed = newspeedandsize;
eval ("star" + starcount)._width = newspeedandsize;
eval ("star" + starcount)._height = newspeedandsize;
eval ("star" + starcount)._y = -newspeedandsize;
eval ("star" + starcount)._x = Math.random() * Stage.width;
}
starcount++;
}
}
stars = 20;
starcount = 1;
while (starcount <= stars) {
this.attachMovie("star", "star" + starcount, this.getNextHighestDepth());
starcount++;
}
Symbol 581 MovieClip Frame 90
gotoAndPlay (1);
Symbol 674 MovieClip [__Packages.Nonoba.api.NonobaAPI] Frame 0
class Nonoba.api.NonobaAPI
{
static var api;
function NonobaAPI () {
throw new Error("ERROR!: You cannot create an instance of the NonobaAPI class!");
}
static function SubmitScore(key, score, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SubmitScore)) {
api.SubmitScore(key, score, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SubmitScore(key, score, callback);
});
}
}
static function AwardAchievement(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, 0);
}
return(undefined);
}
if (api && (api.AwardAchievement)) {
api.AwardAchievement(key, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.AwardAchievement(key, callback);
});
}
}
static function SetUserData(key, value, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SetUserData)) {
api.SetUserData(key, value, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SetUserData(key, value, callback);
});
}
}
static function GetUserData(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUserData)) {
api.GetUserData(key, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUserData(key, callback);
});
}
}
static function Init(container) {
function emptyCache() {
var _local1 = 0;
while (_local1 < Nonoba.api.NonobaAPI.cachedRequests.length) {
Nonoba.api.NonobaAPI.cachedRequests[_local1]();
_local1++;
}
Nonoba.api.NonobaAPI.cachedRequests = [];
}
if (isInited) {
throw new Error("NonobaAPI can not be re-initialized!");
}
isInited = true;
var _local3 = _root.nonoba$apicodeas2;
if (!_local3) {
failed = true;
emptyCache();
}
System.security.allowDomain("*");
container = container || _root;
api = container.createEmptyMovieClip("___NonobaAPI__loader", container.getNextHighestDepth());
var _local5 = new MovieClipLoader();
_local5.addListener({onLoadComplete:function () {
var loadTimer = setInterval(mx.utils.Delegate.create(Nonoba.api.NonobaAPI, function () {
if (!(Nonoba.api.NonobaAPI.api.SubmitScore === undefined)) {
clearInterval(loadTimer);
emptyCache();
}
}), 500);
}, onLoadError:function () {
Nonoba.api.NonobaAPI.failed = true;
emptyCache();
}});
_local5.loadClip(_local3, api);
}
static var SUCCESS = "SUCCESS";
static var NOT_LOGGED_IN = "user not logged in";
static var ERROR = "error";
static var isInited = false;
static var loading = false;
static var cachedRequests = [];
static var failed = false;
}
Symbol 675 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 617 MovieClip Frame 21
gotoAndPlay (1);
Symbol 626 MovieClip Frame 8
gotoAndPlay (1);
Symbol 638 MovieClip Frame 21
gotoAndPlay (1);
Symbol 640 Button
on (release) {
gotoAndPlay (2);
}
Symbol 643 MovieClip Frame 24
_root.time--;
Symbol 645 Button
on (release) {
gotoAndPlay (7);
}
Symbol 648 Button
on (release) {
gotoAndPlay (6);
}
Symbol 650 Button
on (release) {
gotoAndPlay (5);
}
Symbol 651 Button
on (release) {
gotoAndPlay (4);
}
Symbol 659 Button
on (release) {
gotoAndPlay (3);
}