[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (276 B)
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 (8 B)
stop();
Frame 3 (19 B)
stop();
hp2 = 50;
Frame 4 (50 B)
stop();
stopAllSounds();
starfield.movestars();
Frame 5 (6.57 KiB) ● ●
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});
}
}
mySounda = new Sound();
mySounda.attachSound("a");
mySounda.start(0, 999);
stop();
var lives = 20;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 100], [30, "f1", 200], [50, "f1", 300], [70, "f1", 400], [90, "f1", 500], [110, "f2", 600], [130, "f1", 700], [140, "f3", 600], [150, "f4", 500], [170, "f2", 400], [190, "f1", 300], [210, "f1", 200], [230, "f1", 100], [240, "f3", 250], [250, "f5", 450], [270, "f4", 150], [290, "f1", 550], [310, "f2", 700], [330, "f1", 100], [340, "f4", 200], [350, "f2", 400], [370, "f1", 300], [390, "f2", 200], [10, "f1", 700], [430, "f2", 600], [440, "f4", 200], [450, "f4", 333], [470, "f6", 200], [490, "f5", 400], [10, "f1", 100], [530, "f2", 650], [540, "f2", 300], [550, "f1", 350], [570, "f4", 700], [590, "f1", 50], [10, "f2", 450], [630, "f1", 100], [640, "poweruptrishot", 100], [650, "f7", 100], [670, "f2", 100], [690, "f1", 100], [10, "f4", 100], [730, "f7", 222], [740, "f2", 100], [750, "f4", 400], [770, "f1", 300], [790, "f4", 600], [10, "f1", 100], [830, "f2", 555], [840, "f3", 200], [850, "f3", 432], [870, "f3", 123], [890, "f1", 345], [10, "f2", 567], [930, "f1", 456], [940, "f2", 55], [950, "f7", 200], [970, "f6", 400], [990, "f4", 600], [10, "f4", 400], [1030, "f4", 200], [1040, "f4", 500], [1050, "f1", 100], [1070, "f5", 510], [1090, "f3", 300], [10, "f5", 200], [1130, "f6", 500], [1140, "f5", 100], [1150, "f4", 200], [1170, "f7", 600], [1190, "f2", 300], [10, "f4", 500], [1230, "f4", 200], [1240, "f1", 100], [1250, "f3", 300], [1270, "f3", 700], [1290, "f3", 500], [10, "f2", 100], [1330, "f3", 200], [1340, "f3", 300], [1350, "f7", 100], [1370, "f2", 600], [1390, "f5", 500], [10, "f4", 400], [1140, "f2", 500], [1440, "f2", 340], [1450, "f1", 220], [1480, "f1", 530], [1510, "f3", 250], [1555, "lv1boss", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 (6.05 KiB) ● ●
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 = 25;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen2", "mainscreen2", 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("wingame2", "wingame2", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 25;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 50], [30, "f2", 210], [50, "f1", 320], [70, "f2", 150], [95, "f4", 250], [110, "f5", 400], [150, "f6", 280], [170, "f7", 10], [190, "f7", 50], [210, "f7", 450], [230, "f7", 100], [250, "f4", 300], [270, "f7", 350], [300, "f2", 150], [320, "f8", 250], [370, "f4", 300], [390, "f2", 200], [400, "f7", 400], [410, "fs", 300], [430, "f5", 0], [440, "f4", 450], [450, "f6", 150], [470, "f4", 0], [470, "f8", 250], [475, "f2", 500], [480, "f7", 550], [500, "f2", 150], [510, "f3", 500], [515, "f4", 550], [520, "f6", 150], [550, "f3", 250], [570, "f8", 550], [600, "f7", 150], [620, "fs", 150], [640, "f3", 150], [640, "f5", 350], [670, "f3", 300], [700, "f1", 150], [720, "f3", 111], [742, "f4", 345], [761, "f6", 500], [780, "f8", 100], [800, "fs", 200], [820, "f3", 200], [830, "poweruptrishot", 115], [850, "f1", 345], [860, "f3", 421], [888, "f6", 170], [900, "f5", 550], [920, "f1", 300], [940, "f1", 100], [960, "f8", 200], [980, "f7", 300], [1000, "f1", 500], [1050, "f9", 150], [1070, "f6", 200], [1090, "f6", 250], [1111, "f5", 300], [1130, "f5", 500], [1150, "f5", 100], [1190, "f8", 350], [1220, "f9", 100], [1250, "f9", 200], [1270, "f6", 4000], [1300, "lv2boss", 250]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 7 (7.84 KiB) ● ●
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("lasermarisa", "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 = 30;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen3", "mainscreen3", 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("wingame3", "wingame3", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 30;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 100], [30, "f2", 200], [50, "f1", 300], [70, "f1", 400], [90, "f2", 500], [110, "f2", 600], [130, "f1", 700], [140, "f3", 600], [150, "f4", 500], [170, "f2", 400], [190, "f1", 300], [210, "f1", 200], [230, "f1", 100], [240, "f3", 250], [250, "f5", 450], [270, "f4", 150], [290, "f1", 550], [310, "f2", 700], [330, "f1", 100], [340, "f4", 200], [350, "f2", 400], [370, "f1", 300], [390, "f2", 200], [410, "f1", 700], [430, "f2", 600], [440, "f4", 200], [450, "f4", 333], [470, "f6", 200], [490, "f5", 400], [510, "f1", 100], [530, "f2", 650], [540, "powerupmarisa", 300], [550, "f1", 350], [570, "f4", 700], [590, "f1", 50], [610, "f2", 450], [630, "f1", 100], [640, "f1", 100], [650, "f7", 100], [670, "f2", 100], [690, "f1", 100], [710, "f4", 100], [730, "f7", 222], [740, "f2", 100], [750, "f4", 400], [770, "f1", 300], [790, "f4", 600], [810, "f1", 100], [830, "f2", 555], [840, "f3", 200], [850, "f3", 432], [870, "f3", 123], [890, "f1", 345], [910, "f2", 567], [930, "f1", 456], [940, "f2", 55], [950, "f7", 200], [970, "f6", 400], [990, "f4", 600], [1010, "f4", 400], [1030, "f4", 200], [1040, "f4", 500], [1050, "f1", 100], [1070, "f5", 510], [1090, "f3", 300], [1110, "f5", 200], [1130, "f6", 500], [1140, "f5", 100], [1150, "f4", 200], [1170, "f7", 600], [1190, "f2", 300], [1210, "f4", 500], [1230, "f4", 200], [1240, "f1", 100], [1250, "f3", 300], [1270, "f3", 700], [1290, "f3", 500], [1310, "f2", 100], [1330, "f3", 200], [1340, "f3", 300], [1350, "f7", 100], [1370, "f2", 600], [1390, "f5", 500], [1410, "f4", 400], [1140, "f2", 500], [1440, "f2", 340], [1450, "f1", 220], [1480, "f1", 530], [1510, "powerupmarisa", 250], [1520, "f1", 100], [1530, "f2", 200], [1550, "f1", 300], [1570, "f1", 400], [1590, "f2", 500], [1610, "f2", 600], [1630, "f1", 700], [1640, "f3", 600], [1650, "f4", 500], [1670, "f2", 400], [1690, "f1", 300], [1710, "f1", 200], [1730, "f1", 100], [1740, "f3", 250], [1750, "f5", 450], [1770, "f4", 1750], [1790, "f1", 550], [1810, "f2", 700], [1830, "f1", 100], [1840, "f4", 200], [1850, "f2", 400], [1870, "f1", 300], [1890, "f2", 200], [190, "f1", 700], [1930, "f2", 600], [1940, "f4", 200], [1950, "f4", 333], [1970, "f6", 200], [1990, "f5", 400], [2010, "f1", 100], [2130, "f2", 650], [2140, "f2", 300], [2150, "f1", 350], [2170, "f4", 700], [2190, "f1", 50], [2210, "f2", 450], [2230, "f1", 100], [2240, "f1", 100], [2250, "f7", 100], [2270, "f2", 100], [2290, "f1", 100], [2310, "f4", 100], [2330, "f7", 222], [740, "f2", 100], [750, "f4", 400], [770, "f1", 300], [790, "f4", 600], [10, "f1", 100], [2330, "powerupmarisa", 555], [2340, "f3", 200], [2350, "f3", 432], [2370, "f3", 123], [2390, "f1", 345], [240, "f2", 567], [2430, "f1", 456], [2440, "f2", 55], [2450, "f7", 200], [2470, "f6", 400], [2490, "f4", 600], [2510, "f4", 400], [2530, "f4", 200], [2540, "f4", 500], [2550, "f1", 100], [2570, "f5", 510], [2590, "f3", 300], [2610, "f5", 200], [2630, "f6", 500], [2640, "f5", 100], [2650, "f4", 200], [2670, "f7", 600], [2690, "f2", 300], [2710, "f4", 500], [2730, "f4", 200], [2740, "f1", 100], [2750, "f3", 300], [2770, "f3", 700], [2790, "f3", 500], [2810, "f2", 100], [2830, "f3", 200], [2840, "f3", 300], [2850, "f7", 100], [2870, "f2", 600], [2890, "f5", 500], [2910, "f4", 400], [2940, "f2", 500], [2940, "f2", 340], [2950, "f1", 220], [2980, "f1", 530], [3010, "f3", 250], [3055, "bossmccombine", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 8 (7.85 KiB) ● ●
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("lasermarisa", "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 = 40;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen4", "mainscreen4", 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("wingame4", "wingame4", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 40;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 100], [30, "f2", 200], [50, "f1", 300], [70, "f1", 400], [90, "f2", 500], [110, "f2", 600], [130, "f1", 700], [140, "f3", 600], [150, "f4", 500], [170, "f2", 400], [190, "f1", 300], [210, "f1", 200], [230, "f1", 100], [240, "f3", 250], [250, "f5", 450], [270, "f4", 150], [290, "f1", 550], [310, "f2", 700], [330, "f1", 100], [340, "powerupmarisa", 200], [350, "f2", 400], [370, "f1", 300], [390, "f2", 200], [410, "f1", 700], [430, "f2", 600], [440, "f4", 200], [450, "f4", 333], [470, "f6", 200], [490, "f5", 400], [510, "f1", 100], [530, "f2", 650], [540, "f2", 300], [550, "f1", 350], [570, "f4", 700], [590, "f1", 50], [610, "f2", 450], [630, "f1", 100], [640, "f1", 100], [650, "f7", 100], [670, "f2", 100], [690, "f1", 100], [710, "f4", 100], [730, "f7", 222], [740, "f2", 100], [750, "f4", 400], [770, "f1", 300], [790, "f4", 600], [810, "f1", 100], [830, "f2", 555], [840, "f3", 200], [850, "f3", 432], [870, "f3", 123], [890, "f1", 345], [910, "f2", 567], [930, "f1", 456], [940, "f2", 55], [950, "f7", 200], [970, "f6", 400], [990, "f4", 600], [1010, "f4", 400], [1030, "f4", 200], [1040, "f4", 500], [1050, "f1", 100], [1070, "f5", 510], [1090, "f3", 300], [1110, "f5", 200], [1130, "f6", 500], [1140, "f5", 100], [1150, "f4", 200], [1170, "f7", 600], [1190, "f2", 300], [1210, "f4", 500], [1230, "f4", 200], [1240, "f1", 100], [1250, "f3", 300], [1270, "f3", 700], [1290, "powerupmarisa", 500], [1310, "f2", 100], [1330, "f3", 200], [1340, "f3", 300], [1350, "f7", 100], [1370, "f2", 600], [1390, "f5", 500], [1410, "f4", 400], [1140, "f2", 500], [1440, "f2", 340], [1450, "f1", 220], [1480, "f1", 530], [1510, "f3", 250], [1520, "f1", 100], [1530, "f2", 200], [1550, "f1", 300], [1570, "f1", 400], [1590, "f2", 500], [1610, "f2", 600], [1630, "f1", 700], [1640, "f3", 600], [1650, "f4", 500], [1670, "f2", 400], [1690, "f1", 300], [1710, "f1", 200], [1730, "f1", 100], [1740, "f3", 250], [1750, "f5", 450], [1770, "f4", 1750], [1790, "f1", 550], [1810, "f2", 700], [1830, "f1", 100], [1840, "f4", 200], [1850, "powerupmarisa", 400], [1870, "f1", 300], [1890, "f2", 200], [190, "f1", 700], [1930, "f2", 600], [1940, "f4", 200], [1950, "f4", 333], [1970, "f6", 200], [1990, "f5", 400], [2010, "f1", 100], [2130, "f2", 650], [2140, "f2", 300], [2150, "f1", 350], [2170, "f4", 700], [2190, "f1", 50], [2210, "f2", 450], [2230, "f1", 100], [2240, "f1", 100], [2250, "f7", 100], [2270, "f2", 100], [2290, "f1", 100], [2310, "f4", 100], [2330, "f7", 222], [740, "f2", 100], [750, "f4", 400], [770, "f1", 300], [790, "f4", 600], [10, "f1", 100], [2330, "f2", 555], [2340, "f3", 200], [2350, "f3", 432], [2370, "f3", 123], [2390, "f1", 345], [240, "f2", 567], [2430, "powerupmarisa", 456], [2440, "f2", 55], [2450, "f7", 200], [2470, "f6", 400], [2490, "f4", 600], [2510, "f4", 400], [2530, "f4", 200], [2540, "f4", 500], [2550, "f1", 100], [2570, "f5", 510], [2590, "f3", 300], [2610, "f5", 200], [2630, "f6", 500], [2640, "f5", 100], [2650, "f4", 200], [2670, "f7", 600], [2690, "f2", 300], [2710, "f4", 500], [2730, "f4", 200], [2740, "f1", 100], [2750, "f3", 300], [2770, "f3", 700], [2790, "f3", 500], [2810, "f2", 100], [2830, "f3", 200], [2840, "f3", 300], [2850, "f7", 100], [2870, "f2", 600], [2890, "f5", 500], [2910, "f4", 400], [2940, "f2", 500], [2940, "f2", 340], [2950, "f1", 220], [2980, "f1", 530], [3010, "f3", 250], [3055, "bossweegee", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 9 (8 B)
stop();
Frame 10 (11.9 KiB) ● ●
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("lasermarisa", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("laserrightmarisa", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("laserrightmarisa2", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("laserleftmarisa", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship._x, _y:ship._y});
weapons.push("weapons" + weaponcount);
weaponcount++;
this.attachMovie("laserleftmarisa2", "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 = 50;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen4a", "mainscreen4a", 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("wingame4a", "wingame4a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 50;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f7", 100], [20, "f8", 350], [30, "f9", 500], [40, "f7", 500], [50, "f8", 100], [60, "f9", 350], [75, "f7", 200], [70, "f1", 200], [80, "f2", 600], [90, "f3", 300], [95, "f1", 100], [105, "f2", 600], [120, "f2", 200], [130, "f1", 100], [140, "f1", 400], [150, "f3", 200], [170, "f2", 200], [170, "f3", 200], [170, "f1", 200], [170, "f1", 200], [180, "f1", 200], [180, "f4", 200], [180, "f2", 400], [180, "f5", 300], [190, "f1", 250], [190, "f6", 350], [190, "f1", 50], [190, "f2", 75], [200, "f4", 600], [205, "f3", 300], [210, "f2", 650], [220, "f3", 400], [225, "f5", 200], [230, "f4", 333], [240, "f5", 210], [250, "f2", 130], [270, "f6", 450], [275, "f2", 555], [285, "f3", 287], [290, "f3", 201], [300, "f4", 520], [310, "f6", 690], [320, "f5", 200], [330, "f5", 300], [350, "f5", 100], [350, "f5", 400], [360, "f5", 50], [360, "f5", 650], [370, "f5", 500], [420, "f5", 10], [420, "f5", 690], [460, "f5", 40], [460, "f5", 660], [500, "f5", 70], [500, "f5", 630], [540, "f5", 100], [540, "f5", 600], [580, "f5", 130], [580, "f5", 570], [620, "f5", 160], [620, "f5", 540], [660, "f5", 190], [660, "f5", 510], [700, "f5", 220], [700, "f5", 480], [740, "f5", 250], [740, "f5", 450], [780, "f5", 280], [780, "f5", 420], [820, "f5", 310], [820, "powerupmarisa", 340], [860, "f5", 420], [860, "f5", 280], [900, "f5", 450], [900, "f5", 250], [940, "f5", 480], [940, "f5", 220], [980, "f5", 510], [980, "f5", 190], [1020, "f5", 540], [1020, "f5", 160], [1060, "f5", 570], [1060, "f5", 130], [1100, "f5", 600], [1100, "f5", 100], [1140, "f5", 630], [1140, "f5", 70], [1180, "f5", 660], [1180, "f5", 40], [1220, "f5", 10], [1220, "f5", 690], [1220, "f5", 60], [1220, "f5", 110], [1220, "f5", 160], [1220, "f5", 210], [1220, "f5", 260], [1220, "f5", 300], [1220, "f5", 350], [1220, "f5", 400], [1220, "f5", 450], [1220, "f5", 500], [1220, "f5", 550], [1220, "f5", 600], [1220, "f5", 640], [1400, "f5", 20], [1400, "f5", 70], [1400, "f5", 120], [1400, "f5", 170], [1400, "f5", 220], [1400, "f5", 270], [1400, "f5", 320], [1400, "f5", 370], [1400, "f5", 420], [1400, "f5", 470], [1400, "f5", 520], [1400, "f5", 570], [1500, "fs", 670], [1500, "f5", 620], [1500, "f5", 570], [1500, "f5", 520], [1500, "f5", 470], [1500, "f5", 420], [1500, "f5", 370], [1500, "f5", 320], [1500, "f5", 270], [1500, "f5", 220], [1500, "f5", 170], [1500, "f5", 120], [1500, "f5", 70], [1500, "f5", 20], [1700, "f1", 600], [1700, "f2", 640], [1750, "f2", 350], [1750, "f1", 500], [1800, "f1", 250], [1800, "f3", 200], [1888, "f4", 650], [1888, "f2", 500], [1920, "f1", 200], [1920, "f3", 550], [1950, "f4", 100], [1950, "f2", 350], [2000, "f6", 400], [2000, "f1", 680], [2020, "f2", 100], [2020, "f6", 340], [2100, "powerupmarisa", 650], [2120, "f1", 200], [2170, "f3", 150], [2222, "fs", 600], [2250, "f1", 400], [2250, "f6", 27], [2300, "f4", 140], [2350, "f2", 150], [2400, "f1", 300], [2480, "g3", 50], [2490, "powerupmarisa", 100], [2500, "g3", 150], [2510, "g3", 200], [2520, "g3", 250], [2530, "g3", 300], [2540, "g3", 350], [2550, "g3", 750], [2560, "g3", 700], [2570, "g3", 650], [2580, "g3", 600], [2590, "g3", 550], [2600, "g3", 500], [2610, "g3", 450], [2620, "g4", 100], [2630, "f2", 200], [2650, "f1", 300], [2670, "f1", 400], [2690, "f2", 500], [2710, "f2", 600], [2730, "g1", 700], [2740, "f3", 600], [2750, "f4", 500], [2770, "f2", 400], [2790, "f1", 300], [2810, "g4", 200], [2830, "f1", 100], [2840, "f3", 250], [2850, "f5", 450], [2870, "f4", 150], [2890, "f1", 550], [2910, "g1", 700], [2930, "f1", 100], [2940, "f4", 200], [2950, "f2", 400], [2970, "g4", 300], [2990, "f2", 200], [3010, "f1", 700], [3030, "f2", 600], [3040, "g1", 200], [3050, "f4", 333], [3070, "g1", 200], [3090, "f5", 400], [3110, "f1", 100], [3130, "f2", 650], [3140, "f2", 300], [3150, "g5", 350], [3170, "f4", 700], [3190, "g4", 50], [3210, "f2", 450], [3230, "f1", 100], [3240, "f1", 100], [3250, "f7", 100], [3270, "f2", 100], [3290, "g5", 100], [3310, "f4", 100], [3333, "f7", 222], [3340, "f2", 100], [3350, "f4", 400], [3370, "g4", 300], [3390, "powerupmarisa", 600], [3410, "f1", 100], [3430, "f2", 555], [3440, "g4", 200], [3450, "f3", 432], [3470, "f3", 123], [3490, "f1", 345], [3510, "f2", 567], [3530, "f1", 456], [3540, "f2", 55], [3550, "f7", 200], [3570, "f6", 400], [3590, "f4", 600], [3610, "f4", 400], [3630, "f4", 200], [3640, "f4", 500], [3650, "f1", 100], [3670, "f5", 510], [3690, "g2", 300], [3710, "f5", 200], [3730, "g4", 500], [3740, "f5", 100], [3750, "f4", 200], [3770, "f7", 600], [3790, "f2", 300], [3810, "f4", 500], [3830, "g2", 200], [3840, "g5", 100], [3850, "f3", 300], [3870, "f3", 700], [3890, "f3", 500], [3910, "f2", 100], [3930, "f3", 200], [3940, "f3", 300], [3950, "g3", 5], [3970, "f2", 600], [3990, "f5", 500], [4010, "g4", 400], [4030, "g2", 500], [4040, "f2", 340], [4050, "f1", 220], [4080, "g4", 530], [4110, "g1", 250], [4115, "f2", 450], [4120, "g5", 100], [4130, "f2", 200], [4150, "f1", 300], [4170, "f1", 400], [4190, "f2", 500], [4210, "f2", 600], [4230, "f1", 700], [4240, "f3", 600], [4250, "f4", 500], [4270, "f2", 400], [4290, "g5", 300], [4310, "f1", 200], [4330, "g5", 100], [4340, "f3", 250], [4350, "f5", 450], [4370, "g2", 1750], [4390, "g4", 550], [4410, "g4", 700], [4430, "g5", 100], [4444, "g2", 200], [4450, "g5", 400], [4470, "g4", 300], [4490, "f2", 200], [4590, "f1", 700], [4530, "f2", 600], [4540, "f4", 200], [4550, "f4", 333], [4570, "f6", 200], [4590, "f5", 400], [4610, "f1", 100], [4630, "f2", 650], [4640, "g1", 300], [4650, "powerupmarisa", 350], [4670, "f4", 700], [4690, "g4", 50], [4610, "f2", 450], [4635, "g2", 505], [4636, "g2", 5], [4645, "g2", 405], [4646, "g2", 105], [4650, "g2", 305], [4651, "g2", 205], [4655, "g2", 205], [4656, "g2", 305], [4660, "g2", 105], [4661, "g2", 405], [4665, "g2", 5], [4668, "g2", 505], [4670, "g2", 100], [4680, "f1", 100], [4690, "f7", 100], [4700, "f2", 100], [4710, "g5", 100], [4720, "f4", 100], [4730, "f7", 222], [4740, "f2", 100], [4750, "f4", 400], [4770, "g4", 300], [4790, "f4", 600], [4810, "f1", 100], [4830, "f2", 555], [4840, "f3", 200], [4850, "f3", 432], [4870, "f3", 123], [4890, "f1", 345], [4940, "f2", 567], [4930, "g4", 456], [4940, "g2", 55], [4950, "f7", 200], [4970, "f6", 400], [4990, "f4", 600], [5010, "f4", 400], [5030, "f4", 200], [5040, "g3", 5], [5050, "f1", 100], [5070, "f5", 510], [5090, "f3", 300], [5110, "g2", 200], [5130, "f6", 500], [5140, "f5", 100], [5150, "f4", 200], [5170, "f7", 600], [5190, "f2", 300], [5210, "f4", 500], [5230, "g4", 200], [5240, "f1", 100], [5250, "f3", 300], [5270, "g3", 5], [5290, "g1", 500], [5310, "g5", 100], [5330, "g5", 200], [5340, "g5", 300], [5350, "f7", 100], [5370, "f2", 600], [5390, "f5", 500], [5410, "f4", 400], [5440, "g5", 500], [5440, "g3", 5], [5450, "f1", 220], [5480, "g4", 530], [5530, "g3", 250], [5555, "cirnofrozen", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 11 (18 B)
stop();
a1 = 50;
Instance of Symbol 683 MovieClip [q1] "q1" in Frame 11 (102 B)
onClipEvent (load) {
if (hitTest(_root.e1)) {
_root.health._xscale = _root.health._xscale - 1;
}
}
Instance of Symbol 857 MovieClip "e1" in Frame 11 (91 B)
onClipEvent (enterFrame) {
if (_root.q1.hitTest(this)) {
_root.a1 = _root.a1 - 500;
}
}
Instance of Symbol 858 MovieClip "a1" in Frame 11 (119 B)
onClipEvent (enterFrame) {
this._xscale = _root.hp;
if (_root.a1 <= 0) {
_root.a1 = 0;
_root.nextFrame();
}
}
Frame 12 (6.38 KiB) ● ●
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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie("ship", "ship", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", 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 loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 55;
lives2 = 49;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen5", "mainscreen5", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
respawnship2();
} else {
this.attachMovie("wingame5", "wingame5", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 55;
var lives2 = 49;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "lvfinalboss", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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);
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(39)) {
ship._x = Math.min(Stage.width - (ship._width / 2), ship._x + 7);
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(38)) {
ship._y = Math.max(0, ship._y - 7);
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship._y = Math.min(Stage.height - ship._height, ship._y + 7);
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
MovieClip.prototype.placeInSpace = function (id) {
var _local3 = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * _local3;
this[id]._y = this[id].y * _local3;
this[id]._xscale = (this[id]._yscale = 1000 / this[id].z);
};
MovieClip.prototype.randomPlace = function (id) {
var _local3 = this.rmin + ((this.rmax - this.rmin) * Math.random());
var _local2 = (Math.PI*2) * Math.random();
this[id].x = _local3 * Math.cos(_local2);
this[id].y = _local3 * Math.sin(_local2);
this[id].z = this.zmin + ((this.zmax - this.zmin) * Math.random());
};
Instance of Symbol 863 MovieClip "field" in Frame 12 (426 B)
onClipEvent (load) {
this.count = 50;
this.speed = 5;
this.focaldistance = 25;
this.rmin = 50;
this.rmax = 1000;
this.zmin = 10;
this.zmax = 300;
var i = 0;
while (i < this.count) {
this.attachMovie("dot", i, i);
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < this.count) {
if (((this[i].z = this[i].z - this.speed)) <= 0) {
this.randomPlace(i);
}
this.placeInSpace(i);
i++;
}
}
Frame 13 (6.66 KiB) ● ●
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer1a", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship1a._x, _y:ship1a._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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives2 = 15;
score = 0;
currentlevel = 1;
resetlevel();
respawnship2();
}
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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship2();
} else {
this.attachMovie("wingame1a", "wingame1a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
mySoundz = new Sound();
mySoundz.attachSound("a");
mySoundz.start(0, 999);
stop();
var lives2 = 15;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 100], [30, "f1", 200], [50, "f1", 300], [70, "f1", 400], [90, "f1", 500], [110, "f2", 600], [130, "f1", 700], [140, "f3", 600], [150, "f4z", 500], [170, "f2", 400], [190, "f1", 300], [210, "f1", 200], [230, "f1", 100], [240, "f3", 250], [250, "f5", 450], [270, "f4z", 150], [290, "f1", 550], [310, "f2", 700], [330, "f1", 100], [340, "f4z", 200], [350, "f2", 400], [370, "f1", 300], [390, "f2", 200], [10, "f1", 700], [430, "f2", 600], [440, "f4z", 200], [450, "f4z", 333], [470, "f6z", 200], [490, "f5", 400], [10, "f1", 100], [530, "f2", 650], [540, "f2", 300], [550, "f1", 350], [570, "f4z", 700], [590, "f1", 50], [10, "f2", 450], [630, "f1", 100], [640, "f2", 100], [650, "f7z", 100], [670, "f2", 100], [690, "f1", 100], [10, "f4z", 100], [730, "f7z", 222], [740, "f2", 100], [750, "f4z", 400], [770, "f1", 300], [790, "f4z", 600], [10, "f1", 100], [830, "f2", 555], [840, "f3", 200], [850, "f3", 432], [870, "f3", 123], [890, "f1", 345], [10, "f2", 567], [930, "f1", 456], [940, "f2", 55], [950, "f7z", 200], [970, "f6z", 400], [990, "f4z", 600], [10, "f4z", 400], [1030, "f4z", 200], [1040, "f4z", 500], [1050, "f1", 100], [1070, "f5", 510], [1090, "f3", 300], [10, "f5", 200], [1130, "f6z", 500], [1140, "f5", 100], [1150, "f4z", 200], [1170, "f7z", 600], [1190, "f2", 300], [10, "f4z", 500], [1230, "f4z", 200], [1240, "f1", 100], [1250, "f3", 300], [1270, "f3", 700], [1290, "f3", 500], [10, "f2", 100], [1330, "f3", 200], [1340, "f3", 300], [1350, "f7z", 100], [1370, "f2", 600], [1390, "f5", 500], [10, "f4z", 400], [1140, "f2", 500], [1440, "f2", 340], [1450, "f1", 220], [1480, "f1", 530], [1510, "f3", 250], [1555, "lv1bossz", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
var cooldowntime = 16;
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)) {
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(39)) {
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(38)) {
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
Frame 14 (6.16 KiB) ● ●
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer1a", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship1a._x, _y:ship1a._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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 20;
lives2 = 20;
score = 0;
currentlevel = 1;
resetlevel();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen2v2", "mainscreen2v2", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship2();
} else {
this.attachMovie("wingame2a", "wingame2a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives2 = 20;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 50], [30, "f2", 210], [50, "f1", 320], [70, "f2", 150], [95, "f4z", 250], [110, "f5", 400], [150, "f6z", 280], [170, "f7z", 10], [190, "f7z", 50], [210, "f7z", 450], [230, "f7z", 100], [250, "f4z", 300], [270, "f7z", 350], [300, "f2", 150], [320, "f8z", 250], [370, "f4z", 300], [390, "f2", 200], [400, "f7z", 400], [410, "fs", 300], [430, "f5", 0], [440, "f4z", 450], [450, "f6z", 150], [470, "f4z", 0], [470, "f8z", 250], [475, "f2", 500], [480, "f7z", 550], [500, "f2", 150], [510, "f3", 500], [515, "f4z", 550], [520, "f6z", 150], [550, "f3", 250], [570, "f8z", 550], [600, "f7z", 150], [620, "fs", 150], [640, "f3", 150], [640, "f5", 350], [670, "f3", 300], [700, "f1", 150], [720, "f3", 111], [742, "f4z", 345], [761, "f6z", 500], [780, "f8z", 100], [800, "fs", 200], [820, "f3", 200], [830, "f3", 115], [850, "f1", 345], [860, "f3", 421], [888, "f6z", 170], [900, "f5", 550], [920, "f1", 300], [940, "f1", 100], [960, "f8z", 200], [980, "f7z", 300], [1000, "f1", 500], [1050, "f9z", 150], [1070, "f6z", 200], [1090, "f6z", 250], [1111, "f5", 300], [1130, "f5", 500], [1150, "f5", 100], [1190, "f8z", 350], [1220, "f9z", 100], [1250, "f9z", 200], [1270, "f6z", 4000], [1300, "lv2bossz", 250]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
var cooldowntime = 16;
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)) {
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(39)) {
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(38)) {
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
Frame 15 (8.18 KiB) ● ●
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer1a", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship1a._x, _y:ship1a._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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 25;
lives2 = 25;
score = 0;
currentlevel = 1;
resetlevel();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen3v2", "mainscreen3v2", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship2();
} else {
this.attachMovie("wingame3a", "wingame3a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives2 = 25;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 100], [30, "f2", 200], [50, "f1", 300], [70, "f1", 400], [90, "f2", 500], [110, "f2", 600], [130, "f1", 700], [140, "f3", 600], [150, "f4z", 500], [170, "f2", 400], [190, "f1", 300], [210, "f1", 200], [230, "f1", 100], [240, "f3", 250], [250, "f5", 450], [270, "f4z", 150], [290, "f1", 550], [310, "f2", 700], [330, "f1", 100], [340, "f4z", 200], [350, "f2", 400], [370, "f1", 300], [390, "f2", 200], [410, "f1", 700], [430, "f2", 600], [440, "f4z", 200], [450, "f4z", 333], [470, "f6z", 200], [490, "f5", 400], [510, "f1", 100], [530, "f2", 650], [540, "f5", 300], [550, "f1", 350], [570, "f4z", 700], [590, "f1", 50], [610, "f2", 450], [630, "f1", 100], [640, "f1", 100], [650, "f7z", 100], [670, "f2", 100], [690, "f1", 100], [710, "f4z", 100], [730, "f7z", 222], [740, "f2", 100], [750, "f4z", 400], [770, "f1", 300], [790, "f4z", 600], [810, "f1", 100], [830, "f2", 555], [840, "f3", 200], [850, "f3", 432], [870, "f3", 123], [890, "f1", 345], [910, "f2", 567], [930, "f1", 456], [940, "f2", 55], [950, "f7z", 200], [970, "f6z", 400], [990, "f4z", 600], [1010, "f4z", 400], [1030, "f4z", 200], [1040, "f4z", 500], [1050, "f1", 100], [1070, "f5", 510], [1090, "f3", 300], [1110, "f5", 200], [1130, "f6z", 500], [1140, "f5", 100], [1150, "f4z", 200], [1170, "f7z", 600], [1190, "f2", 300], [1210, "f4z", 500], [1230, "f4z", 200], [1240, "f1", 100], [1250, "f3", 300], [1270, "f3", 700], [1290, "f3", 500], [1310, "f2", 100], [1330, "f3", 200], [1340, "f3", 300], [1350, "f7z", 100], [1370, "f2", 600], [1390, "f5", 500], [1410, "f4z", 400], [1140, "f2", 500], [1440, "f2", 340], [1450, "f1", 220], [1480, "f1", 530], [1510, "f3", 250], [1520, "f1", 100], [1530, "f2", 200], [1550, "f1", 300], [1570, "f1", 400], [1590, "f2", 500], [1610, "f2", 600], [1630, "f1", 700], [1640, "f3", 600], [1650, "f4z", 500], [1670, "f2", 400], [1690, "f1", 300], [1710, "f1", 200], [1730, "f1", 100], [1740, "f3", 250], [1750, "f5", 450], [1770, "f4z", 1750], [1790, "f1", 550], [1810, "f2", 700], [1830, "f1", 100], [1840, "f4z", 200], [1850, "f2", 400], [1870, "f1", 300], [1890, "f2", 200], [1900, "f1", 700], [1930, "f2", 600], [1940, "f4z", 200], [1950, "f4z", 333], [1970, "f6z", 200], [1990, "f5", 400], [2010, "f1", 100], [2130, "f2", 650], [2140, "f2", 300], [2150, "f1", 350], [2170, "f4z", 700], [2190, "f1", 50], [2210, "f2", 450], [2230, "f1", 100], [2240, "f1", 100], [2250, "f7z", 100], [2270, "f2", 100], [2290, "f1", 100], [2310, "f4z", 100], [2330, "f2", 555], [2340, "f3", 200], [2350, "f3", 432], [2370, "f3", 123], [2390, "f1", 345], [2400, "f2", 567], [2430, "f1", 456], [2440, "f2", 55], [2450, "f7z", 200], [2470, "f6z", 400], [2490, "f4z", 600], [2510, "f4z", 400], [2530, "f4z", 200], [2540, "f4z", 500], [2550, "f1", 100], [2570, "f5", 510], [2590, "f3", 300], [2610, "f5", 200], [2630, "f6z", 500], [2640, "f5", 100], [2650, "f4z", 200], [2670, "f7z", 600], [2690, "f2", 300], [2710, "f4z", 500], [2730, "f4z", 200], [2740, "f1", 100], [2750, "f3", 300], [2770, "f3", 700], [2790, "f3", 500], [2810, "f2", 100], [2830, "f3", 200], [2840, "f3", 300], [2850, "f7z", 100], [2870, "f2", 600], [2890, "f5", 500], [2910, "f4z", 400], [2940, "f2", 500], [2940, "f2", 340], [2950, "f1", 220], [2980, "f1", 530], [3010, "f3", 250], [3055, "bossmccombinez", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
var cooldowntime = 16;
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)) {
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(39)) {
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(38)) {
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
Frame 16 (8.18 KiB) ● ●
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer1a", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship1a._x, _y:ship1a._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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 35;
lives2 = 35;
score = 0;
currentlevel = 1;
resetlevel();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen4v2", "mainscreen4v2", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship2();
} else {
this.attachMovie("wingame4b", "wingame4b", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives2 = 35;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f1", 100], [30, "f2", 200], [50, "f1", 300], [70, "f1", 400], [90, "f2", 500], [110, "f2", 600], [130, "f1", 700], [140, "f3", 600], [150, "f4z", 500], [170, "f2", 400], [190, "f1", 300], [210, "f1", 200], [230, "f1", 100], [240, "f3", 250], [250, "f5", 450], [270, "f4z", 150], [290, "f1", 550], [310, "f2", 700], [330, "f1", 100], [340, "f3", 200], [350, "f2", 400], [370, "f1", 300], [390, "f2", 200], [410, "f1", 700], [430, "f2", 600], [440, "f4z", 200], [450, "f4z", 333], [470, "f6z", 200], [490, "f5", 400], [510, "f1", 100], [530, "f2", 650], [540, "f2", 300], [550, "f1", 350], [570, "f4z", 700], [590, "f1", 50], [610, "f2", 450], [630, "f1", 100], [640, "f1", 100], [650, "f7z", 100], [670, "f2", 100], [690, "f1", 100], [710, "f4z", 100], [730, "f7z", 222], [740, "f2", 100], [750, "f4z", 400], [770, "f1", 300], [790, "f4z", 600], [810, "f1", 100], [830, "f2", 555], [840, "f3", 200], [850, "f3", 432], [870, "f3", 123], [890, "f1", 345], [910, "f2", 567], [930, "f1", 456], [940, "f2", 55], [950, "f7z", 200], [970, "f6z", 400], [990, "f4z", 600], [1010, "f4z", 400], [1030, "f4z", 200], [1040, "f4z", 500], [1050, "f1", 100], [1070, "f5", 510], [1090, "f3", 300], [1110, "f5", 200], [1130, "f6z", 500], [1140, "f5", 100], [1150, "f4z", 200], [1170, "f7z", 600], [1190, "f2", 300], [1210, "f4z", 500], [1230, "f4z", 200], [1240, "f1", 100], [1250, "f3", 300], [1270, "f3", 700], [1290, "f2", 500], [1310, "f2", 100], [1330, "f3", 200], [1340, "f3", 300], [1350, "f7z", 100], [1370, "f2", 600], [1390, "f5", 500], [1410, "f4z", 400], [1140, "f2", 500], [1440, "f2", 340], [1450, "f1", 220], [1480, "f1", 530], [1510, "f3", 250], [1520, "f1", 100], [1530, "f2", 200], [1550, "f1", 300], [1570, "f1", 400], [1590, "f2", 500], [1610, "f2", 600], [1630, "f1", 700], [1640, "f3", 600], [1650, "f4z", 500], [1670, "f2", 400], [1690, "f1", 300], [1710, "f1", 200], [1730, "f1", 100], [1740, "f3", 250], [1750, "f5", 450], [1770, "f4z", 1750], [1790, "f1", 550], [1810, "f2", 700], [1830, "f1", 100], [1840, "f4z", 200], [1850, "f2", 400], [1870, "f1", 300], [1890, "f2", 200], [1900, "f1", 700], [1930, "f2", 600], [1940, "f4z", 200], [1950, "f4z", 333], [1970, "f6z", 200], [1990, "f5", 400], [2010, "f1", 100], [2130, "f2", 650], [2140, "f2", 300], [2150, "f1", 350], [2170, "f4z", 700], [2190, "f1", 50], [2210, "f2", 450], [2230, "f1", 100], [2240, "f1", 100], [2250, "f7z", 100], [2270, "f2", 100], [2290, "f1", 100], [2310, "f4z", 100], [2330, "f2", 555], [2340, "f3", 200], [2350, "f3", 432], [2370, "f3", 123], [2390, "f1", 345], [2400, "f2", 567], [2430, "f1", 456], [2440, "f2", 55], [2450, "f7z", 200], [2470, "f6z", 400], [2490, "f4z", 600], [2510, "f4z", 400], [2530, "f4z", 200], [2540, "f4z", 500], [2550, "f1", 100], [2570, "f5", 510], [2590, "f3", 300], [2610, "f5", 200], [2630, "f6z", 500], [2640, "f5", 100], [2650, "f4z", 200], [2670, "f7z", 600], [2690, "f2", 300], [2710, "f4z", 500], [2730, "f4z", 200], [2740, "f1", 100], [2750, "f3", 300], [2770, "f3", 700], [2790, "f3", 500], [2810, "f2", 100], [2830, "f3", 200], [2840, "f3", 300], [2850, "f7z", 100], [2870, "f2", 600], [2890, "f5", 500], [2910, "f4z", 400], [2940, "f2", 500], [2940, "f2", 340], [2950, "f1", 220], [2980, "f1", 530], [3010, "f3", 250], [3055, "bossweegeez", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
var cooldowntime = 16;
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)) {
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(39)) {
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(38)) {
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
Frame 17 (8 B)
stop();
Frame 18 (11.64 KiB) ● ●
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer1a", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship1a._x, _y:ship1a._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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 39;
lives2 = 39;
score = 0;
currentlevel = 1;
resetlevel();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen4av2", "mainscreen4av2", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship2();
} else {
this.attachMovie("wingame4c", "wingame4c", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives2 = 39;
var score = 0;
var level0enemies = [];
var level1enemies = [[10, "f7z", 100], [20, "f8z", 350], [30, "f9z", 500], [40, "f7z", 500], [50, "f8z", 100], [60, "f9", 350], [75, "f7z", 200], [70, "f1", 200], [80, "f2", 600], [90, "f3", 300], [95, "f1", 100], [105, "f2", 600], [120, "f2", 200], [130, "f1", 100], [140, "f1", 400], [150, "f3", 200], [170, "f2", 200], [170, "f3", 200], [170, "f1", 200], [170, "f1", 200], [180, "f1", 200], [180, "f4z", 200], [180, "f2", 400], [180, "f5", 300], [190, "f1", 250], [190, "f6z", 350], [190, "f1", 50], [190, "f2", 75], [200, "f4z", 600], [205, "f3", 300], [210, "f2", 650], [220, "f3", 400], [225, "f5", 200], [230, "f4z", 333], [240, "f5", 210], [250, "f2", 130], [270, "f6z", 450], [275, "f2", 555], [285, "f3", 287], [290, "f3", 201], [300, "f4z", 520], [310, "f6z", 690], [320, "f5", 200], [330, "f5", 300], [350, "f5", 100], [350, "f5", 400], [360, "f5", 50], [360, "f5", 650], [370, "f5", 500], [420, "f5", 10], [420, "f5", 690], [460, "f5", 40], [460, "f5", 660], [500, "f5", 70], [500, "f5", 630], [540, "f5", 100], [540, "f5", 600], [580, "f5", 130], [580, "f5", 570], [620, "f5", 160], [620, "f5", 540], [660, "f5", 190], [660, "f5", 510], [700, "f5", 220], [700, "f5", 480], [740, "f5", 250], [740, "f5", 450], [780, "f5", 280], [780, "f5", 420], [820, "f5", 310], [860, "f5", 420], [860, "f5", 280], [900, "f5", 450], [900, "f5", 250], [940, "f5", 480], [940, "f5", 220], [980, "f5", 510], [980, "f5", 190], [1020, "f5", 540], [1020, "f5", 160], [1060, "f5", 570], [1060, "f5", 130], [1100, "f5", 600], [1100, "f5", 100], [1140, "f5", 630], [1140, "f5", 70], [1180, "f5", 660], [1180, "f5", 40], [1220, "f5", 10], [1220, "f5", 690], [1220, "f5", 60], [1220, "f5", 110], [1220, "f5", 160], [1220, "f5", 210], [1220, "f5", 260], [1220, "f5", 300], [1220, "f5", 350], [1220, "f5", 400], [1220, "f5", 450], [1220, "f5", 500], [1220, "f5", 550], [1220, "f5", 600], [1220, "f5", 640], [1400, "f5", 20], [1400, "f5", 70], [1400, "f5", 120], [1400, "f5", 170], [1400, "f5", 220], [1400, "f5", 270], [1400, "f5", 320], [1400, "f5", 370], [1400, "f5", 420], [1400, "f5", 470], [1400, "f5", 520], [1400, "f5", 570], [1500, "fs", 670], [1500, "f5", 620], [1500, "f5", 570], [1500, "f5", 520], [1500, "f5", 470], [1500, "f5", 420], [1500, "f5", 370], [1500, "f5", 320], [1500, "f5", 270], [1500, "f5", 220], [1500, "f5", 170], [1500, "f5", 120], [1500, "f5", 70], [1500, "f5", 20], [1700, "f1", 600], [1700, "f2", 640], [1750, "f2", 350], [1750, "f1", 500], [1800, "f1", 250], [1800, "f3", 200], [1888, "f4z", 650], [1888, "f2", 500], [1920, "f1", 200], [1920, "f3", 550], [1950, "f4z", 100], [1950, "f2", 350], [2000, "f6z", 400], [2000, "f1", 680], [2020, "f2", 100], [2020, "f6z", 340], [2100, "f1", 650], [2120, "f1", 200], [2170, "f3", 150], [2222, "fs", 600], [2250, "f1", 400], [2250, "f6z", 27], [2300, "f4z", 140], [2350, "f2", 150], [2400, "f1", 300], [2480, "g3", 50], [2490, "g3", 100], [2500, "g3", 150], [2510, "g3", 200], [2520, "g3", 250], [2530, "g3", 300], [2540, "g3", 350], [2550, "g3", 750], [2560, "g3", 700], [2570, "g3", 650], [2580, "g3", 600], [2590, "g3", 550], [2600, "g3", 500], [2610, "g3", 450], [2620, "g4z", 100], [2630, "f2", 200], [2650, "f1", 300], [2670, "f1", 400], [2690, "f2", 500], [2710, "f2", 600], [2730, "g1", 700], [2740, "f3", 600], [2750, "f4z", 500], [2770, "f2", 400], [2790, "f1", 300], [2810, "g4z", 200], [2830, "f1", 100], [2840, "f3", 250], [2850, "f5", 450], [2870, "f4z", 150], [2890, "f1", 550], [2910, "g1", 700], [2930, "f1", 100], [2940, "f4z", 200], [2950, "f2", 400], [2970, "g4z", 300], [2990, "f2", 200], [3010, "f1", 700], [3030, "f2", 600], [3040, "g1", 200], [3050, "f4z", 333], [3070, "g1", 200], [3090, "f5", 400], [3110, "f1", 100], [3130, "f2", 650], [3140, "f2", 300], [3150, "g5z", 350], [3170, "f4z", 700], [3190, "g4z", 50], [3210, "f2", 450], [3230, "f1", 100], [3240, "f1", 100], [3250, "f7z", 100], [3270, "f2", 100], [3290, "g5z", 100], [3310, "f4z", 100], [3333, "f7z", 222], [3340, "f2", 100], [3350, "f4z", 400], [3370, "g4z", 300], [3390, "f4z", 600], [3410, "f1", 100], [3430, "f2", 555], [3440, "g4z", 200], [3450, "f3", 432], [3470, "f3", 123], [3490, "f1", 345], [3510, "f2", 567], [3530, "f1", 456], [3540, "f2", 55], [3550, "f7z", 200], [3570, "f6", 400], [3590, "f4z", 600], [3610, "f4z", 400], [3630, "f4z", 200], [3640, "f4", 500], [3650, "f1", 100], [3670, "f5", 510], [3690, "g2", 300], [3710, "f5", 200], [3730, "g4z", 500], [3740, "f5", 100], [3750, "f4z", 200], [3770, "f7", 600], [3790, "f2", 300], [3810, "f4z", 500], [3830, "g2", 200], [3840, "g5z", 100], [3850, "f3", 300], [3870, "f3", 700], [3890, "f3", 500], [3910, "f2", 100], [3930, "f3", 200], [3940, "f3", 300], [3950, "g3", 5], [3970, "f2", 600], [3990, "f5", 500], [4010, "g4z", 400], [4030, "g2", 500], [4040, "f2", 340], [4050, "f1", 220], [4080, "g4z", 530], [4110, "g1", 250], [4115, "f2", 450], [4120, "g5z", 100], [4130, "f2", 200], [4150, "f1", 300], [4170, "f1", 400], [4190, "f2", 500], [4210, "f2", 600], [4230, "f1", 700], [4240, "f3", 600], [4250, "f4z", 500], [4270, "f2", 400], [4290, "g5z", 300], [4310, "f1", 200], [4330, "g5z", 100], [4340, "f3", 250], [4350, "f5", 450], [4370, "g2", 1750], [4390, "g4z", 550], [4410, "g4z", 700], [4430, "g5z", 100], [4444, "g2", 200], [4450, "g5z", 400], [4470, "g4z", 300], [4490, "f2", 200], [4590, "f1", 700], [4530, "f2", 600], [4540, "f4z", 200], [4550, "f4z", 333], [4570, "f6z", 200], [4590, "f5", 400], [4610, "f1", 100], [4630, "f2", 650], [4640, "g1", 300], [4650, "f1", 350], [4670, "f4z", 700], [4690, "g4z", 50], [4610, "f2", 450], [4635, "g2", 505], [4636, "g2", 5], [4645, "g2", 405], [4646, "g2", 105], [4650, "g2", 305], [4651, "g2", 205], [4655, "g2", 205], [4656, "g2", 305], [4660, "g2", 105], [4661, "g2", 405], [4665, "g2", 5], [4668, "g2", 505], [4670, "g2", 100], [4680, "f1", 100], [4690, "f7z", 100], [4700, "f2", 100], [4710, "g5z", 100], [4720, "f4z", 100], [4730, "f7z", 222], [4740, "f2", 100], [4750, "f4z", 400], [4770, "g4z", 300], [4790, "f4z", 600], [4810, "f1", 100], [4830, "f2", 555], [4840, "f3", 200], [4850, "f3", 432], [4870, "f3", 123], [4890, "f1", 345], [4940, "f2", 567], [4930, "g4z", 456], [4940, "g2", 55], [4950, "f7z", 200], [4970, "f6z", 400], [4990, "f4z", 600], [5010, "f4z", 400], [5030, "f4z", 200], [5040, "g3", 5], [5050, "f1", 100], [5070, "f5", 510], [5090, "f3", 300], [5110, "g2", 200], [5130, "f6z", 500], [5140, "f5", 100], [5150, "f4z", 200], [5170, "f7z", 600], [5190, "f2", 300], [5210, "f4z", 500], [5230, "g4z", 200], [5240, "f1", 100], [5250, "f3", 300], [5270, "g3", 5], [5290, "g1", 500], [5310, "g5z", 100], [5330, "g5z", 200], [5340, "g5z", 300], [5350, "f7z", 100], [5370, "f2", 600], [5390, "f5", 500], [5410, "f4z", 400], [5440, "g5z", 500], [5440, "g3", 5], [5450, "f1", 220], [5480, "g4z", 530], [5530, "g3", 250], [5555, "cirnofrozenz", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
var cooldowntime = 16;
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)) {
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(39)) {
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(38)) {
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
Frame 19 (18 B)
stop();
b1 = 50;
Instance of Symbol 683 MovieClip [q1] "r1" in Frame 19 (102 B)
onClipEvent (load) {
if (hitTest(_root.f1)) {
_root.health._xscale = _root.health._xscale - 1;
}
}
Instance of Symbol 857 MovieClip "f1" in Frame 19 (91 B)
onClipEvent (enterFrame) {
if (_root.r1.hitTest(this)) {
_root.b1 = _root.b1 - 500;
}
}
Instance of Symbol 858 MovieClip "b1" in Frame 19 (119 B)
onClipEvent (enterFrame) {
this._xscale = _root.hp;
if (_root.b1 <= 0) {
_root.b1 = 0;
_root.nextFrame();
}
}
Frame 20 (6.39 KiB) ● ●
function shootweapon() {
if (currentweapon == "singlelazer") {
this.attachMovie("lazer1a", "weapons" + weaponcount, this.getNextHighestDepth(), {_x:ship1a._x, _y:ship1a._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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie("ship", "ship", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", 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 loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 45;
lives2 = 49;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreen5a", "mainscreen5a", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
respawnship2();
} else {
this.attachMovie("wingame5a", "wingame5a", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 45;
var lives2 = 49;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "lvfinalboss", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
var cooldowntime = 16;
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)) {
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
ship._x = Math.min(Stage.width - (ship._width / 2), ship._x + 7);
}
if (Key.isDown(39)) {
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
ship._x = Math.max(ship._width / 2, ship._x - 7);
}
if (Key.isDown(38)) {
ship1a._y = Math.max(0, ship1a._y - 7);
ship._y = Math.max(0, ship._y - 7);
}
if (Key.isDown(40)) {
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
ship._y = Math.min(Stage.height - ship._height, ship._y + 7);
}
starfield.movestars();
}
};
MovieClip.prototype.placeInSpace = function (id) {
var _local3 = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * _local3;
this[id]._y = this[id].y * _local3;
this[id]._xscale = (this[id]._yscale = 1000 / this[id].z);
};
MovieClip.prototype.randomPlace = function (id) {
var _local3 = this.rmin + ((this.rmax - this.rmin) * Math.random());
var _local2 = (Math.PI*2) * Math.random();
this[id].x = _local3 * Math.cos(_local2);
this[id].y = _local3 * Math.sin(_local2);
this[id].z = this.zmin + ((this.zmax - this.zmin) * Math.random());
};
Instance of Symbol 863 MovieClip "field" in Frame 20 (426 B)
onClipEvent (load) {
this.count = 50;
this.speed = 5;
this.focaldistance = 25;
this.rmin = 50;
this.rmax = 1000;
this.zmin = 10;
this.zmax = 300;
var i = 0;
while (i < this.count) {
this.attachMovie("dot", i, i);
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < this.count) {
if (((this[i].z = this[i].z - this.speed)) <= 0) {
this.randomPlace(i);
}
this.placeInSpace(i);
i++;
}
}
Frame 21 (5.14 KiB) ● ●
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 = 100;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreenboss1", "mainscreenboss1", 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("wingameboss1", "wingameoss1", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
mySounda = new Sound();
mySounda.attachSound("a");
mySounda.start(0, 999);
stop();
var lives = 100;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "lv1boss2", 350]];
var level2enemies = [[1, "lv2boss2", 350]];
var level3enemies = [[1, "bossmccombine2", 350]];
var level4enemies = [[1, "bossweegee2", 350]];
var totallevels = 4;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 22 (6.4 KiB) ● ●
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 hitship2() {
if (ship1a._currentframe == 1) {
currentweapon2 = "singlelazer2";
ship1a.gotoAndPlay("shiphit2");
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie("ship", "ship", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height - 50});
}
function respawnship2() {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
this.attachMovie("ship1a", "ship1a", 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 loselife2() {
if (lives2 > 0) {
lives2--;
respawnship2();
} else {
if (ship1a != undefined) {
removeMovieClip(ship1a);
}
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 (ship1a != undefined) {
ship1a.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie("showlevel", "showlevel", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
function newgame() {
lives = 75;
lives2 = 9001;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
respawnship2();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreenboss2", "mainscreenboss2", 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++;
lives2++;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
respawnship2();
} else {
this.attachMovie("wingameboss2", "wingameboss2", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 75;
var lives2 = 9001;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "lvfinalboss2", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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);
ship1a._x = Math.min(Stage.width - (ship1a._width / 2), ship1a._x + 7);
}
if (Key.isDown(39)) {
ship._x = Math.min(Stage.width - (ship._width / 2), ship._x + 7);
ship1a._x = Math.max(ship1a._width / 2, ship1a._x - 7);
}
if (Key.isDown(38)) {
ship._y = Math.max(0, ship._y - 7);
ship1a._y = Math.max(0, ship1a._y - 7);
}
if (Key.isDown(40)) {
ship._y = Math.min(Stage.height - ship._height, ship._y + 7);
ship1a._y = Math.min(Stage.height - ship1a._height, ship1a._y + 7);
}
starfield.movestars();
}
};
MovieClip.prototype.placeInSpace = function (id) {
var _local3 = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * _local3;
this[id]._y = this[id].y * _local3;
this[id]._xscale = (this[id]._yscale = 1000 / this[id].z);
};
MovieClip.prototype.randomPlace = function (id) {
var _local3 = this.rmin + ((this.rmax - this.rmin) * Math.random());
var _local2 = (Math.PI*2) * Math.random();
this[id].x = _local3 * Math.cos(_local2);
this[id].y = _local3 * Math.sin(_local2);
this[id].z = this.zmin + ((this.zmax - this.zmin) * Math.random());
};
Instance of Symbol 863 MovieClip "field" in Frame 22 (426 B)
onClipEvent (load) {
this.count = 50;
this.speed = 5;
this.focaldistance = 25;
this.rmin = 50;
this.rmax = 1000;
this.zmin = 10;
this.zmax = 300;
var i = 0;
while (i < this.count) {
this.attachMovie("dot", i, i);
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < this.count) {
if (((this[i].z = this[i].z - this.speed)) <= 0) {
this.randomPlace(i);
}
this.placeInSpace(i);
i++;
}
}
Frame 23 (4.92 KiB) ●
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 = 85;
score = 0;
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie("mainscreenweegee", "mainscreenweegee", 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("wingame5", "wingame5", this.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 3});
}
}
stop();
var lives = 85;
var score = 0;
var level0enemies = [];
var level1enemies = [[1, "bossweegee2", 350]];
var totallevels = 1;
var currentweapon = "singlelazer";
var currentlevel = 1;
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 24 (32 B)
stop();
starfield.movestars();
Frame 25 (8 B)
stop();
Symbol 10 MovieClip Frame 90 (17 B)
gotoAndPlay (1);
Symbol 11 MovieClip [star3] Frame 1 (203 B)
newspeedandsize = (Math.random() * 5) + 1;
speed = newspeedandsize;
_width = newspeedandsize;
_height = newspeedandsize;
_y = (Math.random() * Stage.height);
_x = (Math.random() * Stage.width);
Symbol 18 Button (70 B)
on (press) {
_parent.gotoAndPlay("start");
this.removeMovieClip();
}
Symbol 23 MovieClip [losegame] Frame 1 (17 B)
stopAllSounds();
Symbol 23 MovieClip [losegame] Frame 2 (8 B)
stop();
Symbol 27 MovieClip [db7] Frame 1 (266 B)
function enemyaction() {
_y = (_y + 0);
_x = (_x + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 28 MovieClip [db6] Frame 1 (266 B)
function enemyaction() {
_y = (_y - 5);
_x = (_x + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 29 MovieClip [db5] Frame 1 (266 B)
function enemyaction() {
_y = (_y - 5);
_x = (_x - 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 30 MovieClip [db4] Frame 1 (266 B)
function enemyaction() {
_y = (_y + 0);
_x = (_x - 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 31 MovieClip [db3] Frame 1 (266 B)
function enemyaction() {
_y = (_y + 5);
_x = (_x - 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 32 MovieClip [db2] Frame 1 (266 B)
function enemyaction() {
_y = (_y + 5);
_x = (_x + 0);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 34 MovieClip [db1] Frame 1 (266 B)
function enemyaction() {
_y = (_y + 5);
_x = (_x + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 38 MovieClip Frame 160 (17 B)
gotoAndPlay (1);
Symbol 41 MovieClip [weegeebullet5] Frame 1 (536 B)
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 42 MovieClip [weegeebullet4] Frame 1 (536 B)
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 43 MovieClip [weegeebullet3] Frame 1 (536 B)
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 44 MovieClip [weegeebullet2] Frame 1 (536 B)
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 45 MovieClip [weegeebullet1] Frame 1 (535 B)
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 93 MovieClip Frame 180 (17 B)
gotoAndPlay (1);
Symbol 113 MovieClip [9] Frame 13 (28 B)
_parent._parent.winlevel();
Symbol 128 MovieClip Frame 13 (28 B)
_parent._parent.winlevel();
Symbol 129 MovieClip [bossweegee] Frame 1 (17 B)
stopAllSounds();
Symbol 129 MovieClip [bossweegee] Frame 297 (1.21 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(300);
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 + 2);
} else {
_x = (_x - 2);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 40;
guncooldown = 100;
guncooldown2 = 150;
guncooldown3 = 200;
guncooldown4 = 250;
guncooldown5 = 300;
_y = 200;
Symbol 129 MovieClip [bossweegee] Frame 300 (8 B)
stop();
Symbol 129 MovieClip [bossweegee] Frame 302 (1.21 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(300);
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 + 2);
} else {
_x = (_x - 2);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 60;
guncooldown = 50;
guncooldown2 = 75;
guncooldown3 = 100;
guncooldown4 = 125;
guncooldown5 = 150;
_y = 200;
Symbol 129 MovieClip [bossweegee] Frame 305 (8 B)
stop();
Symbol 129 MovieClip [bossweegee] Frame 307 (2.16 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100000);
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 = 200;
_parent.insertenemy("db1", _x - 142, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 200;
_parent.insertenemy("db2", _x - 142, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 200;
_parent.insertenemy("db3", _x - 142, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 200;
_parent.insertenemy("db4", _x - 142, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 200;
_parent.insertenemy("db5", _x - 142, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 200;
_parent.insertenemy("db6", _x - 142, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 200;
_parent.insertenemy("db7", _x - 142, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 155;
guncooldown = 25;
guncooldown2 = 40;
guncooldown3 = 55;
guncooldown4 = 70;
guncooldown5 = 85;
guncooldown6 = 200;
guncooldown7 = 200;
guncooldown8 = 200;
guncooldown9 = 200;
guncooldown10 = 200;
guncooldown11 = 200;
guncooldown12 = 200;
_y = 200;
Symbol 129 MovieClip [bossweegee] Frame 310 (8 B)
stop();
Symbol 134 MovieClip [eyebullet] Frame 1 (535 B)
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 137 MovieClip [asteroidbulletmc] Frame 1 (243 B)
function enemyaction() {
_y = (_y + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 139 MovieClip [asteroidbulletKC2] Frame 1 (262 B)
function enemyaction() {
_y = (_y - 15);
_x = (_x - 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 142 MovieClip [asteroidbulletKoG2] Frame 1 (262 B)
function enemyaction() {
_y = (_y - 15);
_x = (_x + 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 145 MovieClip [asteroidbulletwhite] Frame 1 (243 B)
function enemyaction() {
_y = (_y - 15);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 151 MovieClip [bossmccombine] Frame 1 (17 B)
stopAllSounds();
Symbol 151 MovieClip [bossmccombine] Frame 2 (1.33 KiB) ●
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 (hitareabossmc.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareabossmc.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 75;
guncooldown = 15;
guncooldown2 = 17;
guncooldown3 = 19;
guncooldown4 = 21;
guncooldown5 = 105;
_y = 0;
Symbol 151 MovieClip [bossmccombine] Frame 5 (8 B)
stop();
Symbol 155 Button (68 B)
on (press) {
_parent.gotoAndPlay("lv2");
this.removeMovieClip();
}
Symbol 157 MovieClip [wingame] Frame 1 (381 B)
Nonoba.api.NonobaAPI.SubmitScore("scorea1f", _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 158 MovieClip [boss???] Frame 1 (17 B)
stopAllSounds();
Symbol 158 MovieClip [boss???] Frame 2 (793 B)
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 170 MovieClip Frame 60 (17 B)
gotoAndPlay (1);
Symbol 174 MovieClip [poweruptrishot] Frame 1 (307 B)
function takedamage(strength) {
_parent.removeenemy(_name);
}
function enemyaction() {
_y = (_y + 2);
if (hitareat.hitTest(_parent.ship.hitarea)) {
_parent.currentweapon = "trishot";
_parent.removeenemy(_name);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
Symbol 177 MovieClip [mainscreen] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 179 MovieClip Frame 60 (17 B)
gotoAndPlay (1);
Symbol 180 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 182 MovieClip [m1] Frame 1 (17 B)
stopAllSounds();
Symbol 182 MovieClip [m1] Frame 2 (672 B)
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 182 MovieClip [m1] Frame 5 (8 B)
stop();
Symbol 186 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 189 MovieClip [f3] Frame 1 (751 B)
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 (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
moveright = true;
maxdist = 70;
startx = _x;
Symbol 189 MovieClip [f3] Frame 4 (8 B)
stop();
Symbol 192 MovieClip [lazer] Frame 1 (1.86 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 193 MovieClip [lazerright] Frame 1 (1.88 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 195 MovieClip [lazerleft] Frame 1 (1.88 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 201 MovieClip [ship] Frame 1 (67 B)
stop();
if (warmedup == undefined) {
gotoAndPlay ("warmup");
}
Symbol 201 MovieClip [ship] Frame 2 (8 B)
play();
Symbol 201 MovieClip [ship] Frame 13 (20 B)
_parent.loselife();
Symbol 201 MovieClip [ship] Frame 75 (14 B)
warmedup = 1;
Symbol 202 MovieClip [f1] Frame 1 (751 B)
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 (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
moveright = true;
maxdist = 20;
startx = _x;
Symbol 202 MovieClip [f1] Frame 4 (8 B)
stop();
Symbol 203 MovieClip [f2] Frame 1 (751 B)
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 + 7);
if (_x > (startx + maxdist)) {
moveright = false;
}
} else {
_x = (_x - 7);
if (_x < (startx - maxdist)) {
moveright = true;
}
}
_y = (_y + 7);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
moveright = true;
maxdist = 50;
startx = _x;
Symbol 203 MovieClip [f2] Frame 4 (8 B)
stop();
Symbol 204 MovieClip [ship3] Frame 1 (67 B)
stop();
if (warmedup == undefined) {
gotoAndPlay ("warmup");
}
Symbol 207 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 208 MovieClip [f4] Frame 1 (725 B)
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("foelaser1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 50;
Symbol 208 MovieClip [f4] Frame 4 (8 B)
stop();
Symbol 211 MovieClip Frame 20 (17 B)
gotoAndPlay (1);
Symbol 212 MovieClip [foelaser1] Frame 1 (317 B)
function enemyaction() {
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 213 MovieClip [f5] Frame 1 (713 B)
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 = 30;
_parent.insertenemy("foelaser1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = _x;
} else {
_x = _x;
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 30;
Symbol 213 MovieClip [f5] Frame 4 (8 B)
stop();
Symbol 214 MovieClip [f6] Frame 1 (725 B)
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 = 60;
_parent.insertenemy("foelaser1", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 3);
} else {
_x = (_x - 3);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 60;
Symbol 214 MovieClip [f6] Frame 4 (8 B)
stop();
Symbol 217 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 218 MovieClip [fs] Frame 1 (597 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (_parent.ship._x > _x) {
_x = _x;
} else {
_x = _x;
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 20;
guncooldown = 30;
Symbol 218 MovieClip [fs] Frame 4 (8 B)
stop();
Symbol 221 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 222 MovieClip [f7] Frame 1 (876 B)
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 = 35;
_parent.insertenemy("foelaser1", _x + 15, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy("foelaser2", _x - 15, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 35;
guncooldown2 = 35;
Symbol 222 MovieClip [f7] Frame 4 (8 B)
stop();
Symbol 223 MovieClip [foelaser2] Frame 1 (317 B)
function enemyaction() {
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 224 MovieClip [f8] Frame 1 (876 B)
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 = 35;
_parent.insertenemy("foelaser1", _x + 15, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy("foelaser2", _x - 15, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 55;
guncooldown2 = 55;
Symbol 224 MovieClip [f8] Frame 4 (8 B)
stop();
Symbol 225 MovieClip [f9] Frame 1 (876 B)
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 = 35;
_parent.insertenemy("foelaser1", _x + 15, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy("foelaser2", _x - 15, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 25;
guncooldown2 = 25;
Symbol 225 MovieClip [f9] Frame 4 (8 B)
stop();
Symbol 230 MovieClip Frame 40 (17 B)
gotoAndPlay (1);
Symbol 238 MovieClip Frame 8 (8 B)
stop();
Symbol 249 MovieClip Frame 13 (28 B)
_parent._parent.winlevel();
Symbol 250 MovieClip [lv1boss] Frame 325 (955 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay ("explodev2");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 50, _y + 20);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy("foelaser3", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareaboss.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareaboss.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 20;
guncooldown2 = 20;
guncooldown3 = 20;
_y = 5;
Symbol 250 MovieClip [lv1boss] Frame 328 (8 B)
stop();
Symbol 250 MovieClip [lv1boss] Frame 329 (289 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 250 MovieClip [lv1boss] Frame 463 (741 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodev3");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamagev2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 20, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 20, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareabossv2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 30;
guncooldown = 20;
guncooldown2 = 20;
_y = 5;
Symbol 250 MovieClip [lv1boss] Frame 466 (8 B)
stop();
Symbol 253 MovieClip [mainscreen2] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 254 MovieClip [foelaser3] Frame 1 (317 B)
function enemyaction() {
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 272 MovieClip Frame 13 (28 B)
_parent._parent.winlevel();
Symbol 275 MovieClip [lv2boss] Frame 415 (957 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay ("explodev2");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 50, _y + 20);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy("foelaser3", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareaboss3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareaboss3.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 30;
guncooldown = 20;
guncooldown2 = 20;
guncooldown3 = 20;
_y = 5;
Symbol 275 MovieClip [lv2boss] Frame 418 (8 B)
stop();
Symbol 275 MovieClip [lv2boss] Frame 419 (289 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 275 MovieClip [lv2boss] Frame 615 (820 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodev3");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamagev2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 20, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 20, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareabossv2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareabossv2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 40;
guncooldown = 20;
guncooldown2 = 20;
_y = 5;
Symbol 275 MovieClip [lv2boss] Frame 618 (8 B)
stop();
Symbol 280 MovieClip [ship1a] Frame 1 (68 B)
stop();
if (warmedup == undefined) {
gotoAndPlay ("warmup2");
}
Symbol 280 MovieClip [ship1a] Frame 2 (8 B)
play();
Symbol 280 MovieClip [ship1a] Frame 13 (21 B)
_parent.loselife2();
Symbol 280 MovieClip [ship1a] Frame 75 (14 B)
warmedup = 1;
Symbol 285 MovieClip [lazer1a] Frame 1 (1.86 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 = 2;
Symbol 290 MovieClip Frame 165 (17 B)
gotoAndPlay (1);
Symbol 322 MovieClip Frame 15 (17 B)
gotoAndPlay (1);
Symbol 329 MovieClip Frame 15 (17 B)
gotoAndPlay (1);
Symbol 333 MovieClip Frame 110 (17 B)
gotoAndPlay (1);
Symbol 342 MovieClip Frame 20 (17 B)
gotoAndPlay (1);
Symbol 360 MovieClip Frame 51 (8 B)
stop();
Symbol 363 MovieClip Frame 51 (8 B)
stop();
Symbol 373 MovieClip Frame 1 (28 B)
_parent._parent.winlevel();
Symbol 374 MovieClip [lvfinalboss] Frame 1 (17 B)
stopAllSounds();
Symbol 374 MovieClip [lvfinalboss] Frame 2 (939 B)
mySound3 = new Sound();
mySound3.attachSound("Xanadu");
mySound3.start(0, 999);
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t1");
} else {
_parent.addpoints(100);
gotoAndPlay ("a1");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 4 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 6 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t2");
} else {
_parent.addpoints(100);
gotoAndPlay ("a2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 8 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 10 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t3");
} else {
_parent.addpoints(100);
gotoAndPlay ("a3");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 12 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 14 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t4");
} else {
_parent.addpoints(100);
gotoAndPlay ("a4");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 16 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 18 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t5");
} else {
_parent.addpoints(100);
gotoAndPlay ("a5");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 20 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 22 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t6");
} else {
_parent.addpoints(100);
gotoAndPlay ("a6");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 24 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 26 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t7");
} else {
_parent.addpoints(100);
gotoAndPlay ("a7");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 28 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 30 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t8");
} else {
_parent.addpoints(100);
gotoAndPlay ("a8");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 32 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 34 (855 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t9");
} else {
_parent.addpoints(100);
gotoAndPlay ("a9");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 36 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 38 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t10");
} else {
_parent.addpoints(100);
gotoAndPlay ("a10");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 40 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 42 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t11");
} else {
_parent.addpoints(100);
gotoAndPlay ("a11");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 44 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 46 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t12");
} else {
_parent.addpoints(100);
gotoAndPlay ("a12");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 48 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 50 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t13");
} else {
_parent.addpoints(100);
gotoAndPlay ("a13");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 52 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 54 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t14");
} else {
_parent.addpoints(100);
gotoAndPlay ("a14");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 56 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 58 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t15");
} else {
_parent.addpoints(100);
gotoAndPlay ("a15");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 60 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 62 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t16");
} else {
_parent.addpoints(100);
gotoAndPlay ("a16");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 64 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 66 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t17");
} else {
_parent.addpoints(100);
gotoAndPlay ("a17");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 68 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 70 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t18");
} else {
_parent.addpoints(100);
gotoAndPlay ("a18");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 72 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 74 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t19");
} else {
_parent.addpoints(100);
gotoAndPlay ("a19");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 76 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 78 (857 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t20");
} else {
_parent.addpoints(100);
gotoAndPlay ("a20");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 5;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 80 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 82 (202 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 179 (77 B)
mySound2 = new Sound();
mySound2.attachSound("pillars");
mySound2.start();
Symbol 374 MovieClip [lvfinalboss] Frame 447 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n1");
} else {
_parent.addpoints(100);
gotoAndPlay ("b1");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 449 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 451 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n2");
} else {
_parent.addpoints(100);
gotoAndPlay ("b2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 453 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 455 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n3");
} else {
_parent.addpoints(100);
gotoAndPlay ("b3");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 457 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 459 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n4");
} else {
_parent.addpoints(100);
gotoAndPlay ("b4");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 461 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 463 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n5");
} else {
_parent.addpoints(100);
gotoAndPlay ("b5");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 465 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 467 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n6");
} else {
_parent.addpoints(100);
gotoAndPlay ("b6");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 469 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 471 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n7");
} else {
_parent.addpoints(100);
gotoAndPlay ("b7");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 473 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 475 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n8");
} else {
_parent.addpoints(100);
gotoAndPlay ("b8");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 477 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 479 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n9");
} else {
_parent.addpoints(100);
gotoAndPlay ("b9");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 481 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 483 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n10");
} else {
_parent.addpoints(100);
gotoAndPlay ("b10");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 485 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 487 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n11");
} else {
_parent.addpoints(100);
gotoAndPlay ("b11");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 489 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 491 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n12");
} else {
_parent.addpoints(100);
gotoAndPlay ("b12");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 493 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 495 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n13");
} else {
_parent.addpoints(100);
gotoAndPlay ("b13");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 497 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 499 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n14");
} else {
_parent.addpoints(100);
gotoAndPlay ("b14");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 501 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 503 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n15");
} else {
_parent.addpoints(100);
gotoAndPlay ("b15");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 505 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 507 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n16");
} else {
_parent.addpoints(100);
gotoAndPlay ("b16");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 509 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 511 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n17");
} else {
_parent.addpoints(100);
gotoAndPlay ("b17");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 513 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 515 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n18");
} else {
_parent.addpoints(100);
gotoAndPlay ("b18");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 517 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 519 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n19");
} else {
_parent.addpoints(100);
gotoAndPlay ("b19");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 521 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 523 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n20");
} else {
_parent.addpoints(100);
gotoAndPlay ("b20");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 525 (8 B)
stop();
Symbol 374 MovieClip [lvfinalboss] Frame 527 (202 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 374 MovieClip [lvfinalboss] Frame 597 (17 B)
stopAllSounds();
Symbol 374 MovieClip [lvfinalboss] Frame 718 (17 B)
stopAllSounds();
Symbol 374 MovieClip [lvfinalboss] Frame 750 (8 B)
stop();
Symbol 380 MovieClip Frame 11 (17 B)
gotoAndPlay (1);
Symbol 381 MovieClip [xlaser1] Frame 1 (609 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 382 MovieClip [xlaser2] Frame 1 (613 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 5;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 383 MovieClip [xlaser3] Frame 1 (316 B)
function enemyaction() {
_y = (_y + 5);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 387 MovieClip Frame 68 (17 B)
gotoAndPlay (1);
Symbol 388 MovieClip [xlaser4] Frame 1 (609 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 396 MovieClip Frame 16 (17 B)
gotoAndPlay (1);
Symbol 397 MovieClip [xlaser5] Frame 1 (613 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 5;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 402 Button (68 B)
on (press) {
_parent.gotoAndPlay("lv3");
this.removeMovieClip();
}
Symbol 404 MovieClip [wingame2] Frame 1 (381 B)
Nonoba.api.NonobaAPI.SubmitScore("scorea2i", _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 407 Button (68 B)
on (press) {
_parent.gotoAndPlay("lv4");
this.removeMovieClip();
}
Symbol 409 MovieClip [wingame3] Frame 1 (399 B)
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorea3v", _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 412 Button (68 B)
on (press) {
_parent.gotoAndPlay("lv5");
this.removeMovieClip();
}
Symbol 414 MovieClip [wingame4] Frame 1 (399 B)
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorea4e", _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 419 MovieClip [wingame5] Frame 1 (446 B)
Nonoba.api.NonobaAPI.AwardAchievement("lv5finished", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + 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 422 MovieClip [mainscreen3] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 425 MovieClip [mainscreen4] Frame 1 (77 B)
mySoundw = new Sound();
mySoundw.attachSound("a");
mySoundw.start(0, 999);
Symbol 425 MovieClip [mainscreen4] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 428 MovieClip [mainscreen5] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 431 Button (73 B)
on (press) {
_parent.gotoAndPlay("cutscene");
this.removeMovieClip();
}
Symbol 433 MovieClip [wingame4a] Frame 1 (381 B)
Nonoba.api.NonobaAPI.SubmitScore("scorea5s", _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 436 MovieClip [mainscreen4a] Frame 1 (472 B)
stopAllSounds();
Nonoba.api.NonobaAPI.AwardAchievement("lv1through4complete", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + 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 436 MovieClip [mainscreen4a] Frame 2 (77 B)
mySoundy = new Sound();
mySoundy.attachSound("b");
mySoundy.start(0, 999);
Symbol 436 MovieClip [mainscreen4a] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 442 MovieClip Frame 120 (28 B)
_parent._parent.winlevel();
Symbol 445 MovieClip [cirnofrozen] Frame 1 (465 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
moveright = true;
maxdist = 20;
startx = _x;
_y = 99;
Symbol 445 MovieClip [cirnofrozen] Frame 4 (8 B)
stop();
Symbol 446 MovieClip [g1] Frame 1 (753 B)
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 + 15);
if (_x > (startx + maxdist)) {
moveright = false;
}
} else {
_x = (_x - 15);
if (_x < (startx - maxdist)) {
moveright = true;
}
}
_y = (_y + 4);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 1;
moveright = true;
maxdist = 20;
startx = _x;
Symbol 446 MovieClip [g1] Frame 4 (8 B)
stop();
Symbol 448 MovieClip [g2] Frame 1 (536 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
_y = (_y + 10);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 55555;
maxdist = 20;
startx = _x;
Symbol 448 MovieClip [g2] Frame 4 (8 B)
stop();
Symbol 450 MovieClip Frame 60 (17 B)
gotoAndPlay (1);
Symbol 451 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 452 MovieClip [g3] Frame 1 (879 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (moveup) {
_y = (_y + 5);
if (_y > (starty + maxdist)) {
moveup = false;
}
} else {
_y = (_y - 5);
if (_y < (starty - maxdist)) {
moveup = true;
}
}
guncooldown--;
if (guncooldown == 0) {
guncooldown = 5;
_parent.insertenemy("foelaser1", _x, _y + 20);
}
_x = (_x + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_x > Stage.width) {
_parent.removeenemy(_name);
}
}
stop();
health = 5;
moveup = true;
maxdist = 20;
starty = _y + 700;
guncooldown = 5;
Symbol 452 MovieClip [g3] Frame 4 (8 B)
stop();
Symbol 453 MovieClip [foelaser4] Frame 1 (336 B)
function enemyaction() {
_x = (_x + 10);
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 454 MovieClip [foelaser5] Frame 1 (336 B)
function enemyaction() {
_x = (_x - 10);
_y = (_y + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 457 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 458 MovieClip [g4] Frame 1 (825 B)
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 = 70;
_parent.insertenemy("foelaser1", _x, _y + 20);
_parent.insertenemy("foelaser4", _x, _y + 20);
_parent.insertenemy("foelaser5", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 5;
guncooldown = 70;
Symbol 458 MovieClip [g4] Frame 4 (8 B)
stop();
Symbol 461 MovieClip Frame 5 (17 B)
gotoAndPlay (1);
Symbol 462 MovieClip Frame 13 (44 B)
_parent._parent.removeenemy(_parent._name);
Symbol 464 MovieClip Frame 20 (8 B)
stop();
Symbol 465 MovieClip [g5] Frame 1 (720 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndPlay ("qa");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 55;
_parent.insertenemy("foelaser6", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 55;
Symbol 465 MovieClip [g5] Frame 4 (8 B)
stop();
Symbol 465 MovieClip [g5] Frame 27 (727 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndStop ("explode2");
} else {
_parent.addpoints(20);
gotoAndPlay ("takedamage2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy("foelaser7", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 4;
guncooldown = 30;
Symbol 465 MovieClip [g5] Frame 30 (8 B)
stop();
Symbol 466 MovieClip [foelaser6] Frame 1 (609 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 3;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 467 MovieClip [foelaser7] Frame 1 (609 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
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) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 470 MovieClip [mainscreen2v2] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 473 MovieClip [mainscreen3v2] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 476 MovieClip [mainscreen4v2] Frame 1 (77 B)
mySoundb = new Sound();
mySoundb.attachSound("a");
mySoundb.start(0, 999);
Symbol 476 MovieClip [mainscreen4v2] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 479 MovieClip [mainscreen4av2] Frame 1 (472 B)
stopAllSounds();
Nonoba.api.NonobaAPI.AwardAchievement("lv1athroughthe4acom", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + 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 479 MovieClip [mainscreen4av2] Frame 2 (77 B)
mySounde = new Sound();
mySounde.attachSound("b");
mySounde.start(0, 999);
Symbol 479 MovieClip [mainscreen4av2] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 482 MovieClip [mainscreen5a] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 485 Button (69 B)
on (press) {
_parent.gotoAndPlay("lv2a");
this.removeMovieClip();
}
Symbol 487 MovieClip [wingame1a] Frame 1 (381 B)
Nonoba.api.NonobaAPI.SubmitScore("scorec1s", _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 490 Button (69 B)
on (press) {
_parent.gotoAndPlay("lv3a");
this.removeMovieClip();
}
Symbol 492 MovieClip [wingame2a] Frame 1 (381 B)
Nonoba.api.NonobaAPI.SubmitScore("scorec2e", _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 495 Button (69 B)
on (press) {
_parent.gotoAndPlay("lv4a");
this.removeMovieClip();
}
Symbol 497 MovieClip [wingame3a] Frame 1 (399 B)
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorec3n", _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 500 Button (69 B)
on (press) {
_parent.gotoAndPlay("lv5b");
this.removeMovieClip();
}
Symbol 502 MovieClip [wingame4b] Frame 1 (399 B)
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore("scorec4i", _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 505 Button (74 B)
on (press) {
_parent.gotoAndPlay("cutscene2");
this.removeMovieClip();
}
Symbol 507 MovieClip [wingame4c] Frame 1 (381 B)
Nonoba.api.NonobaAPI.SubmitScore("scorec5n", _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 511 MovieClip [wingame5a] Frame 1 (450 B)
Nonoba.api.NonobaAPI.AwardAchievement("lv5aandfinished", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + 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 512 MovieClip [g5z] Frame 1 (723 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndPlay ("qa");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 55;
_parent.insertenemy("foelaser6a", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 55;
Symbol 512 MovieClip [g5z] Frame 4 (8 B)
stop();
Symbol 512 MovieClip [g5z] Frame 27 (730 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndStop ("explode2");
} else {
_parent.addpoints(20);
gotoAndPlay ("takedamage2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy("foelaser7a", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 4;
guncooldown = 30;
Symbol 512 MovieClip [g5z] Frame 30 (8 B)
stop();
Symbol 513 MovieClip [foelaser6a] Frame 1 (613 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 3;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 514 MovieClip [g4z] Frame 1 (827 B)
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 = 70;
_parent.insertenemy("foelaser1", _x, _y + 20);
_parent.insertenemy("foelaser4", _x, _y + 20);
_parent.insertenemy("foelaser5", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 5;
guncooldown = 70;
Symbol 514 MovieClip [g4z] Frame 4 (8 B)
stop();
Symbol 515 MovieClip [f4z] Frame 1 (727 B)
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("foelaser1", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 50;
Symbol 515 MovieClip [f4z] Frame 4 (8 B)
stop();
Symbol 516 MovieClip [f6z] Frame 1 (727 B)
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 = 60;
_parent.insertenemy("foelaser1", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 3);
} else {
_x = (_x - 3);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 2;
guncooldown = 60;
Symbol 516 MovieClip [f6z] Frame 4 (8 B)
stop();
Symbol 517 MovieClip [f7z] Frame 1 (878 B)
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 = 35;
_parent.insertenemy("foelaser1", _x + 15, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy("foelaser2", _x - 15, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 35;
guncooldown2 = 35;
Symbol 517 MovieClip [f7z] Frame 4 (8 B)
stop();
Symbol 518 MovieClip [f8z] Frame 1 (878 B)
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 = 35;
_parent.insertenemy("foelaser1", _x + 15, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy("foelaser2", _x - 15, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 4);
} else {
_x = (_x - 4);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 55;
guncooldown2 = 55;
Symbol 518 MovieClip [f8z] Frame 4 (8 B)
stop();
Symbol 519 MovieClip [f9z] Frame 1 (878 B)
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 = 35;
_parent.insertenemy("foelaser1", _x + 15, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy("foelaser2", _x - 15, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + 2);
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitarea2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 3;
guncooldown = 25;
guncooldown2 = 25;
Symbol 519 MovieClip [f9z] Frame 4 (8 B)
stop();
Symbol 524 MovieClip [lv1bossz] Frame 325 (957 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay ("explodev2");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 50, _y + 20);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy("foelaser3", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareaboss.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareaboss.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 20;
guncooldown2 = 20;
guncooldown3 = 20;
_y = 5;
Symbol 524 MovieClip [lv1bossz] Frame 328 (8 B)
stop();
Symbol 524 MovieClip [lv1bossz] Frame 329 (291 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 524 MovieClip [lv1bossz] Frame 463 (743 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodev3");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamagev2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 20, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 20, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareabossv2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 30;
guncooldown = 20;
guncooldown2 = 20;
_y = 5;
Symbol 524 MovieClip [lv1bossz] Frame 466 (8 B)
stop();
Symbol 528 MovieClip [lv2bossz] Frame 415 (959 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay ("explodev2");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 50, _y + 20);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy("foelaser3", _x, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareaboss3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareaboss3.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 30;
guncooldown = 20;
guncooldown2 = 20;
guncooldown3 = 20;
_y = 5;
Symbol 528 MovieClip [lv2bossz] Frame 418 (8 B)
stop();
Symbol 528 MovieClip [lv2bossz] Frame 419 (291 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 528 MovieClip [lv2bossz] Frame 615 (822 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodev3");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamagev2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 20, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 20, _y + 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareabossv2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareabossv2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 40;
guncooldown = 20;
guncooldown2 = 20;
_y = 5;
Symbol 528 MovieClip [lv2bossz] Frame 618 (8 B)
stop();
Symbol 542 MovieClip [bossweegeez] Frame 1 (17 B)
stopAllSounds();
Symbol 542 MovieClip [bossweegeez] Frame 297 (1.16 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(300);
gotoAndStop ("explodepre");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
guncooldown4--;
guncooldown5--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("r1", _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 150;
_parent.insertenemy("r2", _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 200;
_parent.insertenemy("r3", _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 250;
_parent.insertenemy("r4", _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 300;
_parent.insertenemy("r5", _x, _y);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 40;
guncooldown = 100;
guncooldown2 = 150;
guncooldown3 = 200;
guncooldown4 = 250;
guncooldown5 = 300;
_y = 200;
Symbol 542 MovieClip [bossweegeez] Frame 300 (8 B)
stop();
Symbol 542 MovieClip [bossweegeez] Frame 302 (1.16 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(300);
gotoAndStop ("explodepre2");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage2");
}
}
function enemyaction() {
guncooldown--;
guncooldown2--;
guncooldown3--;
guncooldown4--;
guncooldown5--;
if (guncooldown == 0) {
guncooldown = 50;
_parent.insertenemy("r1", _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 75;
_parent.insertenemy("r2", _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 100;
_parent.insertenemy("r3", _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 125;
_parent.insertenemy("r4", _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 150;
_parent.insertenemy("r5", _x, _y);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 60;
guncooldown = 50;
guncooldown2 = 75;
guncooldown3 = 100;
guncooldown4 = 125;
guncooldown5 = 150;
_y = 200;
Symbol 542 MovieClip [bossweegeez] Frame 305 (8 B)
stop();
Symbol 542 MovieClip [bossweegeez] Frame 307 (2.1 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100000);
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("r1", _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 40;
_parent.insertenemy("wr2", _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 55;
_parent.insertenemy("r3", _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 70;
_parent.insertenemy("r4", _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 85;
_parent.insertenemy("r5", _x, _y);
}
if (guncooldown6 == 0) {
guncooldown6 = 200;
_parent.insertenemy("s1", _x - 142, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 200;
_parent.insertenemy("s2", _x - 142, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 200;
_parent.insertenemy("s3", _x - 142, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 200;
_parent.insertenemy("s4", _x - 142, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 200;
_parent.insertenemy("s5", _x - 142, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 200;
_parent.insertenemy("s6", _x - 142, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 200;
_parent.insertenemy("s7", _x - 142, _y);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 155;
guncooldown = 25;
guncooldown2 = 40;
guncooldown3 = 55;
guncooldown4 = 70;
guncooldown5 = 85;
guncooldown6 = 200;
guncooldown7 = 200;
guncooldown8 = 200;
guncooldown9 = 200;
guncooldown10 = 200;
guncooldown11 = 200;
guncooldown12 = 200;
_y = 200;
Symbol 542 MovieClip [bossweegeez] Frame 310 (8 B)
stop();
Symbol 543 MovieClip [bossmccombinez] Frame 1 (17 B)
stopAllSounds();
Symbol 543 MovieClip [bossmccombinez] Frame 2 (1.28 KiB) ●
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("qqq4", _x, _y + 50);
}
if (guncooldown2 == 0) {
guncooldown2 = 17;
_parent.insertenemy("qqq3", _x - 60, _y - 10);
}
if (guncooldown3 == 0) {
guncooldown3 = 19;
_parent.insertenemy("qqq2", _x + 60, _y - 10);
}
if (guncooldown4 == 0) {
guncooldown4 = 21;
_parent.insertenemy("qqq1", _x, _y - 50);
}
if (guncooldown5 == 0) {
guncooldown5 = 105;
_parent.insertenemy("qqq5", _x, _y - 20);
}
if (_parent.ship1a._x > _x) {
_x = (_x + 3);
} else {
_x = (_x - 3);
}
if (_parent.ship1a._y > _y) {
_y = (_y + 3);
} else {
_y = (_y - 3);
}
if (hitareabossmc.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareabossmc.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 75;
guncooldown = 15;
guncooldown2 = 17;
guncooldown3 = 19;
guncooldown4 = 21;
guncooldown5 = 105;
_y = 0;
Symbol 543 MovieClip [bossmccombinez] Frame 5 (8 B)
stop();
Symbol 550 MovieClip Frame 365 (28 B)
_parent._parent.winlevel();
Symbol 552 MovieClip [cirnofrozenz] Frame 1 (465 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100);
gotoAndStop ("explode");
} else {
_parent.addpoints(10);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
if (hitarea2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
health = 9;
moveright = true;
maxdist = 20;
startx = _x;
_y = 99;
Symbol 552 MovieClip [cirnofrozenz] Frame 4 (8 B)
stop();
Symbol 553 MovieClip [qqq1] Frame 1 (247 B)
function enemyaction() {
_y = (_y - 15);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 554 MovieClip [qqq2] Frame 1 (266 B)
function enemyaction() {
_y = (_y - 15);
_x = (_x + 15);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 555 MovieClip [qqq3] Frame 1 (266 B)
function enemyaction() {
_y = (_y - 15);
_x = (_x - 15);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 556 MovieClip [qqq4] Frame 1 (247 B)
function enemyaction() {
_y = (_y + 15);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 557 MovieClip [qqq5] Frame 1 (543 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 5;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 558 MovieClip [r1] Frame 1 (543 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 5;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 559 MovieClip [r2] Frame 1 (544 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 10;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 560 MovieClip [r3] Frame 1 (544 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 15;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 561 MovieClip [r4] Frame 1 (544 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 20;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 562 MovieClip [r5] Frame 1 (544 B)
function enemyaction() {
_x = (_x + xmov);
_y = (_y + ymov);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
movespeed = 25;
xdist = _parent.ship1a._x - _x;
ydist = _parent.ship1a._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / 3.141593) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
Symbol 563 MovieClip [s1] Frame 1 (270 B)
function enemyaction() {
_y = (_y + 5);
_x = (_x + 5);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 564 MovieClip [s2] Frame 1 (270 B)
function enemyaction() {
_y = (_y + 5);
_x = (_x + 0);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 565 MovieClip [s3] Frame 1 (270 B)
function enemyaction() {
_y = (_y + 5);
_x = (_x - 5);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 566 MovieClip [s4] Frame 1 (270 B)
function enemyaction() {
_y = (_y + 0);
_x = (_x - 5);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 567 MovieClip [s5] Frame 1 (270 B)
function enemyaction() {
_y = (_y - 5);
_x = (_x - 5);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 568 MovieClip [s6] Frame 1 (270 B)
function enemyaction() {
_y = (_y - 5);
_x = (_x + 5);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 569 MovieClip [s7] Frame 1 (270 B)
function enemyaction() {
_y = (_y + 0);
_x = (_x + 5);
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 572 MovieClip [mainscreenboss1] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 575 Button (75 B)
on (press) {
_parent.gotoAndPlay("finalfinal");
this.removeMovieClip();
}
Symbol 577 MovieClip [wingameboss1] Frame 1 (17 B)
stopAllSounds();
Symbol 586 MovieClip Frame 15 (17 B)
gotoAndPlay (1);
Symbol 590 MovieClip Frame 55 (36 B)
gotoAndPlay (1);
gotoAndPlay (1);
Symbol 592 MovieClip [wingameboss2] Frame 1 (453 B)
Nonoba.api.NonobaAPI.AwardAchievement("lvbossmodesuperfin", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + 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 595 MovieClip [mainscreenboss2] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 602 MovieClip [lvfinalboss2] Frame 1 (17 B)
stopAllSounds();
Symbol 602 MovieClip [lvfinalboss2] Frame 2 (940 B)
mySound3 = new Sound();
mySound3.attachSound("Xanadu");
mySound3.start(0, 999);
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t1");
} else {
_parent.addpoints(100);
gotoAndPlay ("a1");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 4 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 6 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t2");
} else {
_parent.addpoints(100);
gotoAndPlay ("a2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 8 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 10 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t3");
} else {
_parent.addpoints(100);
gotoAndPlay ("a3");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 12 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 14 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t4");
} else {
_parent.addpoints(100);
gotoAndPlay ("a4");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 16 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 18 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t5");
} else {
_parent.addpoints(100);
gotoAndPlay ("a5");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 20 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 22 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t6");
} else {
_parent.addpoints(100);
gotoAndPlay ("a6");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 24 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 26 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t7");
} else {
_parent.addpoints(100);
gotoAndPlay ("a7");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 28 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 30 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t8");
} else {
_parent.addpoints(100);
gotoAndPlay ("a8");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 32 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 34 (856 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t9");
} else {
_parent.addpoints(100);
gotoAndPlay ("a9");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 36 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 38 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t10");
} else {
_parent.addpoints(100);
gotoAndPlay ("a10");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 40 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 42 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t11");
} else {
_parent.addpoints(100);
gotoAndPlay ("a11");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 44 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 46 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t12");
} else {
_parent.addpoints(100);
gotoAndPlay ("a12");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 48 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 50 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t13");
} else {
_parent.addpoints(100);
gotoAndPlay ("a13");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 52 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 54 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t14");
} else {
_parent.addpoints(100);
gotoAndPlay ("a14");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 56 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 58 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t15");
} else {
_parent.addpoints(100);
gotoAndPlay ("a15");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 60 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 62 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t16");
} else {
_parent.addpoints(100);
gotoAndPlay ("a16");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 64 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 66 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t17");
} else {
_parent.addpoints(100);
gotoAndPlay ("a17");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 68 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 70 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t18");
} else {
_parent.addpoints(100);
gotoAndPlay ("a18");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 72 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 74 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t19");
} else {
_parent.addpoints(100);
gotoAndPlay ("a19");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 76 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 78 (858 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("t20");
} else {
_parent.addpoints(100);
gotoAndPlay ("a20");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 80 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 82 (202 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 179 (77 B)
mySound2 = new Sound();
mySound2.attachSound("pillars");
mySound2.start();
Symbol 602 MovieClip [lvfinalboss2] Frame 447 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n1");
} else {
_parent.addpoints(100);
gotoAndPlay ("b1");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 449 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 451 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n2");
} else {
_parent.addpoints(100);
gotoAndPlay ("b2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 453 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 455 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n3");
} else {
_parent.addpoints(100);
gotoAndPlay ("b3");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 457 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 459 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n4");
} else {
_parent.addpoints(100);
gotoAndPlay ("b4");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 461 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 463 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n5");
} else {
_parent.addpoints(100);
gotoAndPlay ("b5");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 465 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 467 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n6");
} else {
_parent.addpoints(100);
gotoAndPlay ("b6");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 469 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 471 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n7");
} else {
_parent.addpoints(100);
gotoAndPlay ("b7");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 473 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 475 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n8");
} else {
_parent.addpoints(100);
gotoAndPlay ("b8");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 477 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 479 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n9");
} else {
_parent.addpoints(100);
gotoAndPlay ("b9");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 481 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 483 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n10");
} else {
_parent.addpoints(100);
gotoAndPlay ("b10");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 485 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 487 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n11");
} else {
_parent.addpoints(100);
gotoAndPlay ("b11");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 489 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 491 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n12");
} else {
_parent.addpoints(100);
gotoAndPlay ("b12");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 493 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 495 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n13");
} else {
_parent.addpoints(100);
gotoAndPlay ("b13");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 497 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 499 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n14");
} else {
_parent.addpoints(100);
gotoAndPlay ("b14");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 501 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 503 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n15");
} else {
_parent.addpoints(100);
gotoAndPlay ("b15");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 10;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 505 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 507 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n16");
} else {
_parent.addpoints(100);
gotoAndPlay ("b16");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 509 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 511 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n17");
} else {
_parent.addpoints(100);
gotoAndPlay ("b17");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 513 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 515 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n18");
} else {
_parent.addpoints(100);
gotoAndPlay ("b18");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 517 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 519 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n19");
} else {
_parent.addpoints(100);
gotoAndPlay ("b19");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 521 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 523 (1.12 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("n20");
} else {
_parent.addpoints(100);
gotoAndPlay ("b20");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 20;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 525 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 527 (220 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
}
health = 10000;
guncooldown = 10000000 /* 0x989680 */;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 835 (2.03 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("nn1");
} else {
_parent.addpoints(100);
gotoAndPlay ("bb1");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
guncooldown6--;
if (guncooldown6 == 0) {
guncooldown6 = 150;
_parent.insertenemy("xlaserlaser1", _x + 140, _y + 250);
}
guncooldown7--;
if (guncooldown7 == 0) {
guncooldown7 = 150;
_parent.insertenemy("xlaserlaser2", _x + 140, _y + 240);
}
guncooldown8--;
if (guncooldown8 == 0) {
guncooldown8 = 150;
_parent.insertenemy("xlaserlaser3", _x + 140, _y + 240);
}
guncooldown9--;
if (guncooldown9 == 0) {
guncooldown9 = 150;
_parent.insertenemy("xlaserlaser4", _x - 140, _y + 240);
}
guncooldown10--;
if (guncooldown10 == 0) {
guncooldown10 = 150;
_parent.insertenemy("xlaserlaser5", _x - 140, _y + 240);
}
guncooldown11--;
if (guncooldown11 == 0) {
guncooldown11 = 150;
_parent.insertenemy("xlaserlaser6", _x - 140, _y + 240);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 55;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
guncooldown6 = 150;
guncooldown7 = 150;
guncooldown8 = 150;
guncooldown9 = 150;
guncooldown10 = 150;
guncooldown11 = 150;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 837 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 839 (2.03 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("nn2");
} else {
_parent.addpoints(100);
gotoAndPlay ("bb2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
guncooldown6--;
if (guncooldown6 == 0) {
guncooldown6 = 150;
_parent.insertenemy("xlaserlaser1", _x + 140, _y + 250);
}
guncooldown7--;
if (guncooldown7 == 0) {
guncooldown7 = 150;
_parent.insertenemy("xlaserlaser2", _x + 140, _y + 240);
}
guncooldown8--;
if (guncooldown8 == 0) {
guncooldown8 = 150;
_parent.insertenemy("xlaserlaser3", _x + 140, _y + 240);
}
guncooldown9--;
if (guncooldown9 == 0) {
guncooldown9 = 150;
_parent.insertenemy("xlaserlaser4", _x - 140, _y + 240);
}
guncooldown10--;
if (guncooldown10 == 0) {
guncooldown10 = 150;
_parent.insertenemy("xlaserlaser5", _x - 140, _y + 240);
}
guncooldown11--;
if (guncooldown11 == 0) {
guncooldown11 = 150;
_parent.insertenemy("xlaserlaser6", _x - 140, _y + 240);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 55;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
guncooldown6 = 150;
guncooldown7 = 150;
guncooldown8 = 150;
guncooldown9 = 150;
guncooldown10 = 150;
guncooldown11 = 150;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 841 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 843 (2.03 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("nn3");
} else {
_parent.addpoints(100);
gotoAndPlay ("bb3");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
guncooldown6--;
if (guncooldown6 == 0) {
guncooldown6 = 150;
_parent.insertenemy("xlaserlaser1", _x + 140, _y + 250);
}
guncooldown7--;
if (guncooldown7 == 0) {
guncooldown7 = 150;
_parent.insertenemy("xlaserlaser2", _x + 140, _y + 240);
}
guncooldown8--;
if (guncooldown8 == 0) {
guncooldown8 = 150;
_parent.insertenemy("xlaserlaser3", _x + 140, _y + 240);
}
guncooldown9--;
if (guncooldown9 == 0) {
guncooldown9 = 150;
_parent.insertenemy("xlaserlaser4", _x - 140, _y + 240);
}
guncooldown10--;
if (guncooldown10 == 0) {
guncooldown10 = 150;
_parent.insertenemy("xlaserlaser5", _x - 140, _y + 240);
}
guncooldown11--;
if (guncooldown11 == 0) {
guncooldown11 = 150;
_parent.insertenemy("xlaserlaser6", _x - 140, _y + 240);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 55;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
guncooldown6 = 150;
guncooldown7 = 150;
guncooldown8 = 150;
guncooldown9 = 150;
guncooldown10 = 150;
guncooldown11 = 150;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 845 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 847 (2.03 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("nn4");
} else {
_parent.addpoints(100);
gotoAndPlay ("bb4");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
guncooldown6--;
if (guncooldown6 == 0) {
guncooldown6 = 150;
_parent.insertenemy("xlaserlaser1", _x + 140, _y + 250);
}
guncooldown7--;
if (guncooldown7 == 0) {
guncooldown7 = 150;
_parent.insertenemy("xlaserlaser2", _x + 140, _y + 240);
}
guncooldown8--;
if (guncooldown8 == 0) {
guncooldown8 = 150;
_parent.insertenemy("xlaserlaser3", _x + 140, _y + 240);
}
guncooldown9--;
if (guncooldown9 == 0) {
guncooldown9 = 150;
_parent.insertenemy("xlaserlaser4", _x - 140, _y + 240);
}
guncooldown10--;
if (guncooldown10 == 0) {
guncooldown10 = 150;
_parent.insertenemy("xlaserlaser5", _x - 140, _y + 240);
}
guncooldown11--;
if (guncooldown11 == 0) {
guncooldown11 = 150;
_parent.insertenemy("xlaserlaser6", _x - 140, _y + 240);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 55;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
guncooldown6 = 150;
guncooldown7 = 150;
guncooldown8 = 150;
guncooldown9 = 150;
guncooldown10 = 150;
guncooldown11 = 150;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 849 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 851 (2.03 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(5000);
gotoAndPlay ("nn5");
} else {
_parent.addpoints(100);
gotoAndPlay ("bb5");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 100;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 100;
_parent.insertenemy("xlaser2", _x - 80, _y + 200);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy("xlaser3", _x, _y + 200);
}
guncooldown4--;
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy("xlaser4", _x - 250, _y + 150);
}
guncooldown5--;
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy("xlaser5", _x + 250, _y + 150);
}
guncooldown6--;
if (guncooldown6 == 0) {
guncooldown6 = 150;
_parent.insertenemy("xlaserlaser1", _x + 140, _y + 250);
}
guncooldown7--;
if (guncooldown7 == 0) {
guncooldown7 = 150;
_parent.insertenemy("xlaserlaser2", _x + 140, _y + 240);
}
guncooldown8--;
if (guncooldown8 == 0) {
guncooldown8 = 150;
_parent.insertenemy("xlaserlaser3", _x + 140, _y + 240);
}
guncooldown9--;
if (guncooldown9 == 0) {
guncooldown9 = 150;
_parent.insertenemy("xlaserlaser4", _x - 140, _y + 240);
}
guncooldown10--;
if (guncooldown10 == 0) {
guncooldown10 = 150;
_parent.insertenemy("xlaserlaser5", _x - 140, _y + 240);
}
guncooldown11--;
if (guncooldown11 == 0) {
guncooldown11 = 150;
_parent.insertenemy("xlaserlaser6", _x - 140, _y + 240);
}
if (hitareafinal.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareafinal.hitTest(_parent.ship1a.hitarea)) {
_parent.hitship2();
}
}
stop();
health = 55;
guncooldown = 100;
guncooldown2 = 100;
guncooldown3 = 50;
guncooldown4 = 75;
guncooldown5 = 75;
guncooldown6 = 150;
guncooldown7 = 150;
guncooldown8 = 150;
guncooldown9 = 150;
guncooldown10 = 150;
guncooldown11 = 150;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 853 (8 B)
stop();
Symbol 602 MovieClip [lvfinalboss2] Frame 855 (286 B)
mySound3 = new Sound();
mySound3.attachSound("Xanadu");
mySound3.start(0, 999);
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("xlaser1", _x + 80, _y + 200);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 602 MovieClip [lvfinalboss2] Frame 925 (17 B)
stopAllSounds();
Symbol 602 MovieClip [lvfinalboss2] Frame 1046 (17 B)
stopAllSounds();
Symbol 602 MovieClip [lvfinalboss2] Frame 1078 (8 B)
stop();
Symbol 629 MovieClip Frame 13 (17 B)
gotoAndPlay (1);
Symbol 634 MovieClip [bossweegee2] Frame 1 (17 B)
stopAllSounds();
Symbol 634 MovieClip [bossweegee2] Frame 297 (1.21 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(300);
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 + 2);
} else {
_x = (_x - 2);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 25;
guncooldown = 100;
guncooldown2 = 150;
guncooldown3 = 200;
guncooldown4 = 250;
guncooldown5 = 300;
_y = 200;
Symbol 634 MovieClip [bossweegee2] Frame 300 (8 B)
stop();
Symbol 634 MovieClip [bossweegee2] Frame 302 (1.21 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(300);
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 + 2);
} else {
_x = (_x - 2);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 55;
guncooldown = 50;
guncooldown2 = 75;
guncooldown3 = 100;
guncooldown4 = 125;
guncooldown5 = 150;
_y = 200;
Symbol 634 MovieClip [bossweegee2] Frame 305 (8 B)
stop();
Symbol 634 MovieClip [bossweegee2] Frame 307 (2.17 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100000);
gotoAndPlay ("weegeeintervention");
} 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 = 200;
_parent.insertenemy("db1", _x - 142, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 200;
_parent.insertenemy("db2", _x - 142, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 200;
_parent.insertenemy("db3", _x - 142, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 200;
_parent.insertenemy("db4", _x - 142, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 200;
_parent.insertenemy("db5", _x - 142, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 200;
_parent.insertenemy("db6", _x - 142, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 200;
_parent.insertenemy("db7", _x - 142, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 105;
guncooldown = 25;
guncooldown2 = 40;
guncooldown3 = 55;
guncooldown4 = 70;
guncooldown5 = 85;
guncooldown6 = 200;
guncooldown7 = 200;
guncooldown8 = 200;
guncooldown9 = 200;
guncooldown10 = 200;
guncooldown11 = 200;
guncooldown12 = 200;
_y = 200;
Symbol 634 MovieClip [bossweegee2] Frame 310 (8 B)
stop();
Symbol 634 MovieClip [bossweegee2] Frame 311 (321 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000000 /* 0x989680 */;
_parent.insertenemy("weegeebullet1", _x, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000000 /* 0x989680 */;
_y = 200;
Symbol 634 MovieClip [bossweegee2] Frame 694 (17 B)
stopAllSounds();
Symbol 634 MovieClip [bossweegee2] Frame 695 (2.17 KiB) ●
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(100000);
gotoAndStop ("defeated");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamage4");
}
}
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 = 200;
_parent.insertenemy("dbz1a", _x - 142, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 200;
_parent.insertenemy("dbz2a", _x - 142, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 200;
_parent.insertenemy("dbz3a", _x - 142, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 200;
_parent.insertenemy("dbz4a", _x - 142, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 200;
_parent.insertenemy("dbz5a", _x - 142, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 200;
_parent.insertenemy("dbz6a", _x - 142, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 200;
_parent.insertenemy("dbz7a", _x - 142, _y);
}
if (_parent.ship._x > _x) {
_x = (_x + 7);
} else {
_x = (_x - 7);
}
if (hitareameegee.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareameegee.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 255;
guncooldown = 12;
guncooldown2 = 20;
guncooldown3 = 27;
guncooldown4 = 35;
guncooldown5 = 42;
guncooldown6 = 100;
guncooldown7 = 100;
guncooldown8 = 100;
guncooldown9 = 100;
guncooldown10 = 100;
guncooldown11 = 100;
guncooldown12 = 100;
_y = 200;
Symbol 634 MovieClip [bossweegee2] Frame 698 (8 B)
stop();
Symbol 640 MovieClip [dbz1a] Frame 1 (268 B)
function enemyaction() {
_y = (_y + 10);
_x = (_x + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 641 MovieClip [dbz2a] Frame 1 (267 B)
function enemyaction() {
_y = (_y + 10);
_x = (_x + 0);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 642 MovieClip [dbz3a] Frame 1 (268 B)
function enemyaction() {
_y = (_y + 10);
_x = (_x - 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 643 MovieClip [dbz4a] Frame 1 (267 B)
function enemyaction() {
_y = (_y + 0);
_x = (_x - 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 644 MovieClip [dbz5a] Frame 1 (268 B)
function enemyaction() {
_y = (_y - 10);
_x = (_x - 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 645 MovieClip [dbz6a] Frame 1 (268 B)
function enemyaction() {
_y = (_y - 10);
_x = (_x + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 646 MovieClip [dbz7a] Frame 1 (267 B)
function enemyaction() {
_y = (_y + 0);
_x = (_x + 10);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if ((((_y > Stage.height) || (_y < -100)) || (_x > Stage.width)) || (_x < -300)) {
_parent.removeenemy(_name);
}
}
Symbol 651 MovieClip [lv1boss2] Frame 325 (955 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay ("explodev2");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 50, _y + 20);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy("foelaser3", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareaboss.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareaboss.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 40;
guncooldown = 20;
guncooldown2 = 20;
guncooldown3 = 20;
_y = 5;
Symbol 651 MovieClip [lv1boss2] Frame 328 (8 B)
stop();
Symbol 651 MovieClip [lv1boss2] Frame 329 (289 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 651 MovieClip [lv1boss2] Frame 463 (741 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodev3");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamagev2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 20, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 20, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareabossv2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 60;
guncooldown = 20;
guncooldown2 = 20;
_y = 5;
Symbol 651 MovieClip [lv1boss2] Frame 466 (8 B)
stop();
Symbol 655 MovieClip [lv2boss2] Frame 415 (957 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay ("explodev2");
} else {
_parent.addpoints(100);
gotoAndPlay ("takedamage");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 50, _y + 20);
}
guncooldown3--;
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy("foelaser3", _x, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareaboss3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareaboss3.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 60;
guncooldown = 15;
guncooldown2 = 15;
guncooldown3 = 15;
_y = 5;
Symbol 655 MovieClip [lv2boss2] Frame 418 (8 B)
stop();
Symbol 655 MovieClip [lv2boss2] Frame 419 (289 B)
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 10000;
_parent.insertenemy("foelaser1", _x + 50, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
health = 10000;
guncooldown = 10000;
_y = 5;
Symbol 655 MovieClip [lv2boss2] Frame 615 (820 B)
function takedamage(strength) {
health = health - strength;
if (health <= 0) {
_parent.addpoints(3000);
gotoAndStop ("explodev3");
} else {
_parent.addpoints(300);
gotoAndPlay ("takedamagev2");
}
}
function enemyaction() {
guncooldown--;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy("foelaser1", _x + 20, _y + 20);
}
guncooldown2--;
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy("foelaser2", _x - 20, _y + 20);
}
if (_parent.ship._x > _x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
if (hitareabossv2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareabossv2.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 80;
guncooldown = 10;
guncooldown2 = 10;
_y = 5;
Symbol 655 MovieClip [lv2boss2] Frame 618 (8 B)
stop();
Symbol 656 MovieClip [bossmccombine2] Frame 1 (17 B)
stopAllSounds();
Symbol 656 MovieClip [bossmccombine2] Frame 2 (1.33 KiB) ●
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 (hitareabossmc.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareabossmc.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
}
stop();
health = 155;
guncooldown = 15;
guncooldown2 = 17;
guncooldown3 = 19;
guncooldown4 = 21;
guncooldown5 = 105;
_y = 0;
Symbol 656 MovieClip [bossmccombine2] Frame 5 (8 B)
stop();
Symbol 657 MovieClip [xlaserlaser1] Frame 1 (316 B)
function enemyaction() {
_y = (_y + 4);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 658 MovieClip [xlaserlaser2] Frame 1 (334 B)
function enemyaction() {
_x = (_x - 2);
_y = (_y + 4);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 659 MovieClip [xlaserlaser3] Frame 1 (334 B)
function enemyaction() {
_x = (_x - 4);
_y = (_y + 4);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 660 MovieClip [xlaserlaser4] Frame 1 (316 B)
function enemyaction() {
_y = (_y + 4);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 661 MovieClip [xlaserlaser5] Frame 1 (334 B)
function enemyaction() {
_x = (_x + 2);
_y = (_y + 4);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 662 MovieClip [xlaserlaser6] Frame 1 (334 B)
function enemyaction() {
_x = (_x + 4);
_y = (_y + 4);
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship1a.hitarea2)) {
_parent.hitship2();
}
if ((((_y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
_parent.removeenemy(_name);
}
}
Symbol 664 MovieClip [lasermarisa] Frame 1 (1.86 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 = 2;
Symbol 666 MovieClip [laserleftmarisa] Frame 1 (1.88 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 = 2;
Symbol 668 MovieClip [laserrightmarisa] Frame 1 (1.88 KiB) ●
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 = 2;
Symbol 670 MovieClip [laserleftmarisa2] Frame 1 (1.88 KiB) ●
function weaponaction() {
_y = (_y - 20);
_x = (_x - 10);
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 = 2;
Symbol 672 MovieClip [laserrightmarisa2] Frame 1 (1.88 KiB) ●
function weaponaction() {
_y = (_y - 20);
_x = (_x + 10);
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]) + ".hitarea2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossv2"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareaboss3"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareabossmc"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareameegee"))) {
eval ("_parent." + _parent.enemies[curenemy]).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval (("_parent." + _parent.enemies[curenemy]) + ".hitareafinal"))) {
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 = 2;
Symbol 676 MovieClip [powerupmarisa] Frame 1 (307 B)
function takedamage(strength) {
_parent.removeenemy(_name);
}
function enemyaction() {
_y = (_y + 2);
if (hitareat.hitTest(_parent.ship.hitarea)) {
_parent.currentweapon = "trishot";
_parent.removeenemy(_name);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
Symbol 679 MovieClip [mainscreenweegee] Frame 80 (80 B)
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
Symbol 683 MovieClip [q1] Frame 1245 (8 B)
stop();
Symbol 684 MovieClip [starfield] Frame 1 (756 B)
function movestars() {
starcount = 1;
while (starcount <= stars) {
eval ("star3" + starcount)._y = eval ("star3" + starcount)._y + eval ("star3" + starcount).speed;
if (eval ("star3" + starcount)._y > Stage.height) {
newspeedandsize = (Math.random() * 4) + 1;
eval ("sta23" + starcount).speed = newspeedandsize;
eval ("star3" + starcount)._width = newspeedandsize;
eval ("star3" + starcount)._height = newspeedandsize;
eval ("star3" + starcount)._y = -newspeedandsize;
eval ("star3" + starcount)._x = Math.random() * Stage.width;
}
starcount++;
}
}
stars = 25;
starcount = 1;
while (starcount <= stars) {
this.attachMovie("star3", "star3" + starcount, this.getNextHighestDepth());
starcount++;
}
Symbol 944 MovieClip [__Packages.Nonoba.api.NonobaAPI] Frame 0 (3.39 KiB) ●
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 GetUsername(callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUsername)) {
api.GetUsername(callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUsername(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 945 MovieClip [__Packages.mx.utils.Delegate] Frame 0 (458 B)
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 728 MovieClip Frame 21 (17 B)
gotoAndPlay (1);
Symbol 737 MovieClip Frame 8 (17 B)
gotoAndPlay (1);
Symbol 749 MovieClip Frame 21 (17 B)
gotoAndPlay (1);
Symbol 751 Button (40 B)
on (release) {
gotoAndStop ("start");
}
Symbol 753 Button (42 B)
on (release) {
gotoAndStop ("credits");
}
Symbol 755 Button (41 B)
on (release) {
gotoAndStop ("meegee");
}
Symbol 757 Button (43 B)
on (release) {
gotoAndStop ("bossmode");
}
Symbol 759 Button (38 B)
on (release) {
gotoAndStop ("lv1");
}
Symbol 761 Button (39 B)
on (release) {
gotoAndStop ("lv1a");
}
Symbol 783 Button (39 B)
on (release) {
gotoAndStop ("lv5a");
}
Symbol 811 MovieClip Frame 11 (17 B)
gotoAndPlay (1);
Symbol 815 MovieClip Frame 30 (17 B)
gotoAndPlay (1);
Symbol 818 MovieClip Frame 65 (8 B)
stop();
Symbol 819 MovieClip Frame 65 (8 B)
stop();
Symbol 835 MovieClip Frame 86 (8 B)
stop();
Symbol 855 MovieClip Frame 1245 (8 B)
stop();
Symbol 857 MovieClip Frame 500 (8 B)
stop();
Symbol 874 Button (39 B)
on (release) {
gotoAndStop ("lv5c");
}
Symbol 915 MovieClip Frame 1245 (8 B)
stop();
Symbol 924 Button (40 B)
on (release) {
gotoAndStop ("start");
}