Frame 1
function Screen() {
mc = this.attachMovie("_lscreen", "screen", MCDepth);
score = 0;
mc._x = 5;
mc._y = 61;
mc._xscale = 80;
mc._yscale = 80;
screenWidth = 640;
screenHeight = 342;
num = 0;
shotBehaviours = new Array();
moveSpeed = 2;
shotBehaviours[0] = new phaserObj();
shotBehaviours[1] = new plasmaObj();
shotBehaviours[2] = new missileObj();
shotBehaviours[3] = new diamondShotObj();
shotBehaviours[4] = new BallShotObj();
shotBehaviours[5] = new greenShotObj();
shotBehaviours[10] = new fireObj();
shotBehaviours[11] = new lightningObj();
weaponDesc = new Array("PHASER", "PLASMA", "MISSILE");
weaponDesc[10] = "FLAME";
}
function Sprite() {
this.huh = true;
}
function Ship(playerNumber) {
this.UPkey = keyMap[3];
this.DOWNkey = keyMap[2];
this.LEFTkey = keyMap[1];
this.RIGHTkey = keyMap[0];
this.SHOOTkey1 = keyMap[4];
this.SHOOTkey2 = keyMap[5];
this.shotDisplX = 18;
this.shotDisplY = 3;
this.foregroundNum = 0;
this.lives = 2;
this.cont = "player";
this.continues = 2;
this.armour = 30;
this.shipWidth = 40;
this.shipHeight = 20;
this.speed = 10;
this.smartBombs = 2;
this.maxHp = 1;
this.hp = this.maxHp;
this.armour = 0;
this.ramDam = 100;
this.shotType = 0;
this.weaponLevel = 0;
this.gui = _root.gui;
this.weaponExperience = 0;
this.experienceBarriar = new Array(2, 3, 4, 5, 6, 7);
}
function shotDescObj(power, angle, scale, yDisc) {
this.power = power;
this.angle = angle;
this.scale = scale;
this.yDisc = yDisc;
}
function diamondShotObj() {
this.coolDown = 8;
this.speed = 10;
this.clipName = "shot4";
}
function BallShotObj() {
this.coolDown = 7;
this.speed = 6;
this.clipName = "shot5";
}
function greenShotObj() {
this.coolDown = 7;
this.speed = 13;
this.clipName = "shot6";
}
function plasmaObj() {
this.coolDown = 5;
this.damageType = "plasma";
this.speed = 20;
this.clipName = "shot2";
this.levels = new Array();
this.levels[0] = new Array();
this.levels[0][0] = new shotDescObj(9, 0, 100, 0);
this.levels[1] = new Array();
this.levels[1][0] = new shotDescObj(9, 0, 100, -5);
this.levels[1][1] = new shotDescObj(9, 0, 100, 5);
this.levels[2] = new Array();
this.levels[2][0] = new shotDescObj(15, 0, 120, -8);
this.levels[2][1] = new shotDescObj(15, 0, 120, 8);
this.levels[3] = new Array();
this.levels[3][0] = new shotDescObj(15, 0, 120, -12);
this.levels[3][1] = new shotDescObj(15, 0, 120, 0);
this.levels[3][2] = new shotDescObj(15, 0, 120, 12);
this.levels[4] = new Array();
this.levels[4][0] = new shotDescObj(15, 0, 100, -16);
this.levels[4][1] = new shotDescObj(15, 0, 100, -6);
this.levels[4][2] = new shotDescObj(15, 0, 100, 6);
this.levels[4][3] = new shotDescObj(15, 0, 100, 16);
this.levels[5] = new Array();
this.levels[5][0] = new shotDescObj(24, 0, 120, -18);
this.levels[5][1] = new shotDescObj(24, 0, 120, -6);
this.levels[5][2] = new shotDescObj(24, 0, 120, 6);
this.levels[5][3] = new shotDescObj(24, 0, 120, 18);
this.levels[6] = new Array();
this.levels[6][0] = new shotDescObj(110, 0, 200, 0);
}
function phaserObj() {
this.damageType = "phaser";
this.coolDown = 6;
this.speed = 20;
this.clipName = "shot1";
this.levels = new Array();
this.levels[0] = new Array();
this.levels[0][0] = new shotDescObj(10, 0, 100, 0);
this.levels[1] = new Array();
this.levels[1][0] = new shotDescObj(10, 0, 100, -5);
this.levels[1][1] = new shotDescObj(10, 0, 100, 5);
this.levels[2] = new Array();
this.levels[2][0] = new shotDescObj(10, 0, 100, -5);
this.levels[2][1] = new shotDescObj(10, 0, 100, 5);
this.levels[2][2] = new shotDescObj(10, 180, 100, 0);
this.levels[3] = new Array();
this.levels[3][0] = new shotDescObj(10, -25, 100, -10);
this.levels[3][1] = new shotDescObj(10, 0, 100, -5);
this.levels[3][2] = new shotDescObj(10, 0, 100, 5);
this.levels[3][3] = new shotDescObj(10, 25, 100, 10);
this.levels[3][4] = new shotDescObj(10, 180, 100, 0);
this.levels[4] = new Array();
this.levels[4][0] = new shotDescObj(10, -25, 100, -10);
this.levels[4][1] = new shotDescObj(15, 0, 100, -5);
this.levels[4][2] = new shotDescObj(15, 0, 100, 5);
this.levels[4][3] = new shotDescObj(10, 25, 100, 10);
this.levels[4][4] = new shotDescObj(15, 180, 100, 0);
this.levels[5] = new Array();
this.levels[5][0] = new shotDescObj(10, -25, 120, -10);
this.levels[5][1] = new shotDescObj(25, 0, 120, -5);
this.levels[5][2] = new shotDescObj(25, 0, 120, 5);
this.levels[5][3] = new shotDescObj(10, 25, 120, 10);
this.levels[5][4] = new shotDescObj(10, 90, 100, 0);
this.levels[5][5] = new shotDescObj(10, -90, 100, 0);
this.levels[5][6] = new shotDescObj(15, 180, 100, 0);
this.levels[6] = new Array();
this.levels[6][0] = new shotDescObj(15, -25, 120, -10);
this.levels[6][1] = new shotDescObj(35, 0, 130, -5);
this.levels[6][2] = new shotDescObj(35, 0, 130, 5);
this.levels[6][3] = new shotDescObj(15, 25, 120, 10);
this.levels[6][4] = new shotDescObj(15, 90, 120, 0);
this.levels[6][5] = new shotDescObj(15, -90, 120, 0);
this.levels[6][6] = new shotDescObj(20, 180, 130, 0);
}
function fireObj() {
this.damageType = "fire";
this.cooldown = 3;
this.speed = 10;
this.clipName = new Array();
this.clipName[0] = "fire0";
this.clipName[1] = "fire1";
this.clipName[2] = "fire2";
this.clipName[3] = "fire3";
this.clipName[4] = "fire3";
this.clipName[5] = "fire4";
this.clipName[6] = "fire4";
this.power = new Array();
this.power[0] = 1;
this.power[1] = 2;
this.power[2] = 3;
this.power[3] = 4;
this.power[4] = 5;
this.power[5] = 6;
this.power[6] = 7;
}
function lightningObj() {
this.damageType = "fire";
this.cooldown = 2;
this.speed = 30;
this.clipName = new Array();
this.clipName[0] = "lightning0";
this.clipName[1] = "lightning1";
this.clipName[2] = "lightning2";
this.clipName[3] = "lightning3";
this.clipName[4] = "lightning4";
this.power = new Array();
this.power[0] = 2;
this.power[1] = 6;
this.power[2] = 8;
this.power[3] = 11;
this.power[4] = 14;
}
function missileObj() {
this.damageType = "missile";
this.coolDown = 10;
this.speed = 14;
this.clipName = "shot3";
this.levels = new Array();
this.levels[0] = new Array();
this.levels[0][0] = new shotDescObj(18, 0, 100, 0);
this.levels[1] = new Array();
this.levels[1][0] = new shotDescObj(18, 0, 100, -7);
this.levels[1][1] = new shotDescObj(18, 0, 100, 7);
this.levels[2] = new Array();
this.levels[2][0] = new shotDescObj(18, 0, 100, -10);
this.levels[2][1] = new shotDescObj(18, 0, 100, 10);
this.levels[2][2] = new shotDescObj(18, 0, 100, 0);
this.levels[3] = new Array();
this.levels[3][0] = new shotDescObj(32, 0, 120, -12);
this.levels[3][1] = new shotDescObj(32, 0, 120, 12);
this.levels[3][2] = new shotDescObj(32, 0, 120, 0);
this.levels[4] = new Array();
this.levels[4][0] = new shotDescObj(34, 0, 120, -10);
this.levels[4][1] = new shotDescObj(34, 0, 120, 10);
this.levels[4][2] = new shotDescObj(18, 25, 100, 15);
this.levels[4][3] = new shotDescObj(18, -25, 100, -15);
this.levels[5] = new Array();
this.levels[5][0] = new shotDescObj(40, 0, 130, -10);
this.levels[5][1] = new shotDescObj(40, 0, 130, 10);
this.levels[5][2] = new shotDescObj(32, 25, 120, 15);
this.levels[5][3] = new shotDescObj(32, -25, 120, -15);
this.levels[6] = new Array();
this.levels[6][0] = new shotDescObj(90, 0, 180, 0);
this.levels[6][2] = new shotDescObj(44, 25, 130, 15);
this.levels[6][1] = new shotDescObj(44, -25, 130, -15);
}
function Shot(shotType, x, y, power, angle, whoShot, scale) {
var shotObj = shotBehaviours[shotType];
if (whoShot == "player") {
var n = 0;
while (playerHasShotArray[n] == whoShot) {
n++;
}
playerHasShotArray[n] = whoShot;
playerShotsArray[n] = this;
this.mc = mc.attachMovie("_l" + shotObj.clipName, "shotP" + n, playerShotDepth + n);
} else {
var n = 0;
while (comHasShotArray[n] == whoShot) {
n++;
}
comHasShotArray[n] = whoShot;
comShotsArray[n] = this;
this.mc = mc.attachMovie("_l" + shotObj.clipName, "shot" + n, comShotDepth + n);
}
this.shotType = shotType;
this.arrayNum = n;
this.whoShot = whoShot;
this.hittable = true;
this.mc._xscale = scale;
this.mc._yscale = scale;
this.mc._rotation = angle;
this.mc.myObject = this;
this.speed = shotObj.speed;
this.power = power;
this.xSpeed = this.speed * Math.cos(angle * PiRads);
this.ySpeed = this.speed * Math.sin(angle * PiRads);
this.mc._x = x + this.xSpeed;
this.mc._y = y + this.ySpeed;
this.mc.onEnterFrame = doShotStuff;
}
function Bomb(x, y, whoShot, power) {
var n = 0;
while (playerHasShotArray[n] == whoShot) {
n++;
}
playerHasShotArray[n] = whoShot;
playerShotsArray[n] = this;
this.mc = mc.attachMovie("_lBomb", "shotP" + n, playerShotDepth + n);
this.shotType = shotType;
this.arrayNum = n;
this.whoShot = whoShot;
this.hittable = true;
this.mc.myObject = this;
this.power = power;
this.xSpeed = 4;
this.ySpeed = 2;
this.mc._x = x + this.xSpeed;
this.mc._y = (y + this.ySpeed) + 10;
this.mc.onEnterFrame = doBombStuff;
}
function FlameShot(shotType, level, ySpeed, x, y, angle, whoShot) {
var shotObj = shotBehaviours[shotType];
if (whoShot == "player") {
var n = 0;
while (playerHasShotArray[n] == whoShot) {
n++;
}
playerHasShotArray[n] = whoShot;
playerShotsArray[n] = this;
this.mc = mc.attachMovie("_l" + shotObj.clipName[level], "shotP" + n, playerShotDepth + n);
} else {
var n = 0;
while (comHasShotArray[n] == whoShot) {
n++;
}
comHasShotArray[n] = whoShot;
comShotsArray[n] = this;
this.mc = mc.attachMovie("_l" + clipName, "shot" + n, comShotDepth + n);
}
this.shotType = shotType;
this.arrayNum = n;
this.whoShot = whoShot;
this.hittable = true;
this.mc._x = x;
this.mc._y = y;
this.mc._xscale = scale;
this.mc._yscale = scale;
this.mc._rotation = angle;
this.mc.myObject = this;
this.speed = shotObj.speed;
this.power = shotObj.power[level];
this.xSpeed = this.speed * Math.cos(angle * PiRads);
this.ySpeed = (this.speed * Math.sin(angle * PiRads)) + ySpeed;
this.mc.onEnterFrame = doShotStuff;
}
function PowerUp(x, y, level) {
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.arrayNum = n;
var ty = Math.random();
if (ty < 0.04) {
this.powerType = 0;
} else if (ty < 0.27) {
this.powerType = 1;
} else if (ty < 0.37) {
this.powerType = 3;
} else {
this.powerType = 2;
}
this.mc = mc.attachMovie("_lpowerUp" + this.powerType, "enemy" + n, powerUpDepth + n);
if (this.powerType == 2) {
this.pt = Math.ceil(Math.random() * 4);
this.mc.mc.gotoAndStop(this.pt);
}
this.mc.myObject = this;
this.mc._x = x;
this.mc._y = y;
this.powerUp = true;
this.hittable = true;
this.level = level;
this.hp = 1000000000 /* 0x3B9ACA00 */;
this.mc.speed = moveSpeed;
this.mc.onEnterFrame = function () {
this._x = this._x - this.speed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + ((170 - this._y) / 1000);
if (this._x < -20) {
deleteEnemy(this.myObject);
}
if ((this.myObject.powerType == 2) && ((this.changeCount++) > 70)) {
this.changeCount = 0;
this.myObject.pt = Math.ceil(Math.random() * 4);
this.mc.gotoAndStop(this.myObject.pt);
}
};
}
function Enemy() {
}
function FlyingEnemy() {
}
function GroupFlyer(attackGroup, num, clipName) {
this.clipName = clipName;
this.attackGroup = attackGroup;
this.groupNum = num;
this.high = attackGroup.high;
this.action = attackGroup.formation;
this.level = attackGroup.level;
}
function SingleFlyer(clipName, level, action, powerUp, high) {
this.clipName = clipName;
this.high = high;
this.level = level;
this.action = action;
this.givePowerUp = powerUp;
}
function ClusterBomb(num, level, x, y, action, xSpeed, ySpeed) {
this.level = level;
this.action = action;
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.arrayNum = n;
this.hittable = true;
this.mc = mc.attachMovie("_lclusterBomb" + num, "enemy" + n, 2950 + n);
this.mc.myObject = this;
this.mc.xSpeed = xSpeed;
this.mc.ySpeed = ySpeed;
this.mc._x = x;
this.mc._y = y;
this.mc.onEnterFrame = action;
}
function missile(num, level, x, y, action, xSpeed, ySpeed) {
this.level = level;
this.action = action;
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.arrayNum = n;
this.hittable = true;
this.mc = mc.attachMovie("_lmissile" + num, "enemy" + n, 2950 + n);
this.mc.myObject = this;
this.formSeq = -1;
this.mc.xSpeed = xSpeed;
this.mc.ySpeed = ySpeed;
this.mc._x = x;
this.mc._y = y;
this.mc.onEnterFrame = action;
}
function EnemyGroup() {
}
function EGroup(high, level, numMinions, formation, powerUp, myNum, delay, buildAction) {
this.high = high;
this.level = level;
this.numMinions = numMinions;
this.formation = formation;
this.buildAction = buildAction;
this.givePowerUp = powerUp;
this.myNum = myNum;
this.delay = delay;
}
function GroundEnemy(level, clipName, powerUp, action, high) {
this.level = level;
this.clipName = clipName;
this.givePowerUp = powerUp;
this.action = action;
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.mc = mc.attachMovie("_l" + this.clipName, "enemy" + n, enemyDepth + n);
this.mc.myObject = this;
if (high) {
this.x = (this.mc._x = screenWidth + this.mc._width);
} else {
this.x = (this.mc._x = -this.mc._width);
}
this.mc._y = (this.y = screenHeight);
this.arrayNum = n;
this.hittable = true;
this.shotCount = 0;
this.mc.onEnterFrame = this.action;
}
function BossEnemy(clipNum, numComp, level, action) {
this.clipNum = clipNum;
this.numComp = numComp;
this.level = level;
this.action = action;
this.formSeq = -1;
this.experience = 300 * level;
this.score = 500 * level;
}
function BossComponent(boss, num) {
this.boss = boss;
this.num = num;
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.mc = boss.mc.attachMovie((("_lboss" + boss.clipNum) + "Comp") + num, "enemy" + n, n);
this.mc.myObject = this;
this.hittable = true;
this.ArrayNum = n;
this.x = boss.mc._x;
this.y = boss.mc._y;
this.isBoss = true;
}
function Foreground(clipName, reversable, speed) {
var n = 0;
while (sceneryArray[n].ident == "scenery") {
n++;
}
this.mc = mc.attachMovie("_l" + clipName, clipName + n, foregroundDepth + n);
this.mc._y = screenHeight;
this.mc.speed = speed;
this.mc._x = this.mc._width + screenWidth;
this.mc.myObject = this;
this.num = n;
sceneryArray[n] = this;
this.ident = "scenery";
if (reversable) {
if (Math.random() > 0.5) {
this.mc._xscale = -100;
}
}
this.mc.onEnterFrame = function () {
this._x = this._x - this.speed;
if (this._x < (-this._width)) {
delete sceneryArray[this.myObject.num];
delete this.myObject;
removeMovieClip(this);
}
};
}
function BackgroundA(clipName) {
var n = 0;
while (sceneryArray[n].ident == "scenery") {
n++;
}
this.mc = mc.attachMovie("_l" + clipName, clipName + n, backGroundDepth + n);
this.num = n;
sceneryArray[n] = this;
this.ident = "scenery";
if (gameLevel < 5) {
this.mc.onEnterFrame = function () {
if (((count % 65) == 3) && (count < 2100)) {
this._x = this._x - 1;
}
};
} else {
this.mc.onEnterFrame = function () {
if (((count % 15) == 2) && (count < 2800)) {
this._x = this._x - 0.5;
}
};
}
}
function BackgroundB(clipName, side, speed) {
var n = 0;
while (sceneryArray[n].ident == "scenery") {
n++;
}
this.mc = mc.attachMovie("_l" + clipName, clipName + n, backGroundDepth + n);
this.num = n;
this.mc.speed = speed;
if (side == "right") {
this.mc._x = this.mc._width;
}
sceneryArray[n] = this;
this.ident = "scenery";
this.mc.onEnterFrame = function () {
this._x = this._x - this.speed;
if (this._x <= (-this._width)) {
this._x = this._width - this.speed;
}
};
}
function makeForeGroundMaker(clipType, frequency, speed) {
sceneryMaker = createEmptyMovieClip("sceneryCl", foreGroundMakerDepth);
sceneryMaker.clipType = clipType;
sceneryMaker.frequency = frequency;
sceneryMaker.c = -frequency;
sceneryMaker.speed = speed;
sceneryMaker.sArray = new Array();
sceneryMaker.onEnterFrame = function () {
if ((count - this.c) > this.frequency) {
this.c = count;
var scene = new ForeGround(this.clipType + Math.ceil(Math.random() * 3), true, this.speed);
}
};
var startPiece = ((screenWidth / speed) / frequency);
var startSpace = (screenWidth / startPiece);
var i = 0;
while (i < startPiece) {
var scene = new ForeGround(sceneryMaker.clipType + Math.ceil(Math.random() * 3), true, speed);
scene.mc._x = startSpace * i;
i++;
}
}
function makeEGroup(high, level, numMinions, formation, powerUp, myNum, delay, buildAction) {
var eg = new EGroup(high, level, numMinions, formation, powerUp, myNum, delay, buildAction);
eg.init();
}
function makeGroundEnemy(enemyType, level, clipName, powerUp, action, high, notUsed, buildAction) {
var t = new GroundEnemy(level, clipName, powerUp, action, high);
}
function makeFlyingEnemy(enemyType, level, clipName, powerUp, action, high, notUsed, buildAction) {
var t = new SingleFlyer(clipName, level, action, powerUp, high);
t.init();
}
function makeBoss(clipNum, numComp, level, action, notUsed, high, delay, buildAction) {
var b = new BossEnemy(clipNum, numComp, level, action);
b.init();
}
function setWayPoint(clipNum, numComp, level, action, notUsed, high, delay, buildAction) {
trace("wayPointSet");
startPoint = count;
}
function makeHoppers() {
var myObj = this.myObject;
if (((myObj.count++) % myObj.delay) == 0) {
if (myObj.minionsBuilt < myObj.numMinions) {
var clipName = ("hopper" + Math.ceil(Math.random() * 3));
var hopper = new GroupFlyer(myObj, myObj.minionsBuilt, clipName);
hopper.init();
myObj.minionsBuilt++;
} else {
removeMovieClip(this);
}
}
}
function makefJars() {
var myObj = this.myObject;
if (((myObj.count++) % myObj.delay) == 0) {
if (myObj.minionsBuilt < myObj.numMinions) {
var clipName = ("flyingJar" + Math.ceil(Math.random() * 3));
var hopper = new GroupFlyer(myObj, myObj.minionsBuilt, clipName);
hopper.init();
myObj.minionsBuilt++;
} else {
removeMovieClip(this);
}
}
}
function makePlanes() {
var myObj = this.myObject;
if (myObj.count > myObj.delay) {
myObj.count = 0;
if (myObj.minionsBuilt < myObj.numMinions) {
if (!myObj.givePowerUp) {
var clipName = "plane1";
} else {
var clipName = "plane2";
}
var plane = new GroupFlyer(myObj, myObj.minionsBuilt, clipName);
plane.init();
myObj.minionsBuilt++;
} else {
removeMovieClip(this);
}
} else {
myObj.count++;
}
}
function makeRockets() {
var myObj = this.myObject;
var clipName = "rocket1";
if (myObj.count > myObj.delay) {
myObj.count = 0;
if (myObj.minionsBuilt < myObj.numMinions) {
var rocket = new GroupFlyer(myObj, myObj.minionsBuilt, clipName);
rocket.init();
rocket.ramDam = 20 * myObj.level;
rocket.score = 60 * myObj.level;
rocket.experience = 5 * myObj.level;
myObj.minionsBuilt++;
} else {
removeMovieClip(this);
}
} else {
myObj.count++;
}
}
function makeRocks() {
var myObj = this.myObject;
var clipName = ("rock" + Math.ceil(Math.random() * 2));
if (myObj.count > myObj.delay) {
myObj.count = 0;
if (myObj.minionsBuilt < myObj.numMinions) {
var rock = new GroupFlyer(myObj, myObj.minionsBuilt, clipName);
rock.init();
myObj.minionsBuilt++;
} else {
removeMovieClip(this);
}
} else {
myObj.count++;
}
}
function driftIn() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
if (myObj.high) {
this._x = (myObj.x = 400);
} else {
this._x = (myObj.x = 200);
}
this._y = (myObj.y = -30);
myObj.xSpeed = 0.5;
myObj.ySpeed = 5.2;
} else if (myObj.formSeq == 0) {
if ((this.myObject.shotCount++) > 30) {
myObj.doShot("atPlayer", 0);
this.myObject.shotCount = 0;
}
if (myObj.ySpeed > 0) {
this._x = this._x + myObj.xSpeed;
this._y = this._y + myObj.ySpeed;
myObj.x = this._x;
myObj.y = this._y;
myObj.ySpeed = myObj.ySpeed - 0.05;
myObj.xSpeed = myObj.xSpeed + 0.02;
} else {
myObj.formSeq = 1;
myObj.ySpeed = 0;
myObj.xSpeed = 3;
var i = 150;
while (i <= 210) {
myObj.doShot(i, 1);
i = i + 15;
}
}
} else {
if (this._x > (screenWidth + 70)) {
deleteEnemy(myObj);
} else {
myObj.ySpeed = myObj.ySpeed - 0.001;
this._x = this._x + myObj.xSpeed;
myObj.x = this._x;
this._y = this._y + myObj.ySpeed;
myObj.y = this._y;
}
if ((this.myObject.shotCount++) > 40) {
var i = 150;
while (i <= 210) {
myObj.doShot(i, 1);
i = i + 15;
}
this.myObject.shotCount = 0;
}
}
}
}
function snake() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
this.shotWait = int(30 + (Math.random() * 10));
this.ySpeed = 0;
this._x = (myObj.x = screenWidth + this._width);
if (myObj.high) {
this._y = (myObj.y = 50);
myObj.formSeq = 0;
} else {
this._y = (myObj.y = 300);
myObj.formSeq = 2;
}
} else if (myObj.formSeq == 0) {
this.ySpeed = this.ySpeed + 0.3;
this._x = this._x - 6;
myObj.x = this._x;
this._y = this._y + this.ySpeed;
myObj.y = this._y;
if (this._y > 170) {
myObj.formSeq = 1;
}
} else if (myObj.formSeq == 1) {
this.ySpeed = this.ySpeed - 0.3;
this._x = this._x - 6;
myObj.x = this._x;
this._y = this._y + this.ySpeed;
myObj.y = this._y;
if (this.ySpeed <= 0) {
myObj.formSeq = 2;
myObj.doShot("atPlayer", 0);
}
} else if (myObj.formSeq == 2) {
this.ySpeed = this.ySpeed - 0.3;
this._x = this._x - 6;
myObj.x = this._x;
this._y = this._y + this.ySpeed;
myObj.y = this._y;
if (this._y < 170) {
myObj.formSeq = 3;
}
} else {
this.ySpeed = this.ySpeed + 0.3;
this._x = this._x - 6;
myObj.x = this._x;
this._y = this._y + this.ySpeed;
myObj.y = this._y;
if (this.ySpeed >= 0) {
myObj.formSeq = 0;
myObj.doShot("atPlayer", 0);
}
}
if (this._x < (-this._width)) {
deleteEnemy(myObj);
}
}
}
function flyBackAndForth() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
this.shotWait = int(40 + (Math.random() * 10));
this._xscale = -100;
myObj.formSeq = 0;
this._x = (myObj.x = -this._width);
if (myObj.high) {
this._y = (myObj.y = 50);
myObj.ySpeed = 1.4;
} else {
this._y = (myObj.y = 300);
myObj.ySpeed = -1.4;
}
this.xspeed = 130;
} else if (myObj.formSeq == 0) {
this._x = this._x + (((this.xspeed = this.xspeed - 0.9)) / 10);
this._y = this._y + myObj.ySpeed;
myObj.x = this._x;
myObj.y = this._y;
if ((myObj.shotCount++) > this.shotWait) {
myObj.shotCount = 0;
myObj.doShot("atPlayer", 0);
}
if (this._x > ((screenWidth + this._width) + 20)) {
myObj.formSeq = 1;
this._xscale = 100;
}
} else {
this._x = this._x - 15;
this._y = this._y + myObj.ySpeed;
myObj.x = this._x;
myObj.y = this._y;
if ((myObj.shotCount++) > this.shotWait) {
myObj.shotCount = 0;
var i = 150;
while (i < 240) {
myObj.doShot(i, 1);
i = i + 30;
}
}
if (this._x < ((-this._width) - 20)) {
deleteEnemy(myObj);
}
}
}
}
function loopBack() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = -20);
myObj.xSpeed = 15;
if (myObj.high) {
this._y = (myObj.y = 50);
myObj.ySpeed = 3;
} else {
this._y = (myObj.y = 300);
myObj.ySpeed = -3;
}
} else if (myObj.formSeq == 0) {
if (myObj.xSpeed > 0) {
this._x = this._x + myObj.xSpeed;
this._y = this._y + myObj.ySpeed;
myObj.x = this._x;
myObj.y = this._y;
myObj.xSpeed = myObj.xSpeed - 0.2;
} else {
myObj.formSeq = 1;
myObj.xSpeed = 0;
myObj.doShot("atPlayer", 0);
}
} else if (this._x < -70) {
deleteEnemy(myObj);
} else {
myObj.xSpeed = myObj.xSpeed - 0.2;
this._x = this._x + myObj.xSpeed;
myObj.x = this._x;
}
}
}
function ambushFromTop() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._y = (myObj.y = (-this._height) / 2);
this._x = (myObj.x = 450);
if (myObj.high) {
myObj.ySpeed = 7;
} else {
myObj.ySpeed = 11;
}
} else if (myObj.formSeq == 0) {
this._y = this._y + myObj.ySpeed;
myObj.y = this._y;
if (((myObj.ySpeed = myObj.ySpeed - 0.2)) < 0) {
myObj.ySpeed = 0;
myObj.formSeq = 1;
var i = 120;
while (i < 270) {
myObj.doShot(i, 0);
i = i + 30;
}
}
} else if (this._x > (screenWidth + 70)) {
deleteEnemy(myObj);
} else {
this._x = this._x + 1;
myObj.x = this._x;
if ((this.myObject.shotCount++) > 40) {
this.myObject.shotCount = 0;
var i = 120;
while (i < 270) {
myObj.doShot(i, 0);
i = i + 30;
}
}
}
}
}
function ambushFromBottom() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._y = (myObj.y = (screenHeight + (this._height / 2)) + 10);
this._x = (myObj.x = 450);
if (myObj.high) {
myObj.ySpeed = -7;
} else {
myObj.ySpeed = -11;
}
} else if (myObj.formSeq == 0) {
this._y = this._y + myObj.ySpeed;
myObj.y = this._y;
if (((myObj.ySpeed = myObj.ySpeed + 0.2)) > 0) {
myObj.ySpeed = 0;
myObj.formSeq = 1;
var i = 120;
while (i < 270) {
myObj.doShot(i, 0);
i = i + 30;
}
}
} else if (this._x > (screenWidth + 70)) {
deleteEnemy(myObj);
} else {
this._x = this._x + 1;
myObj.x = this._x;
if ((this.myObject.shotCount++) > 40) {
this.myObject.shotCount = 0;
var i = 120;
while (i < 270) {
myObj.doShot(i, 0);
i = i + 30;
}
}
}
}
}
function curveBack() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
this.shotWait = int(40 + (Math.random() * 10));
myObj.formSeq = 0;
this._x = (myObj.x = 640);
if (myObj.high) {
this._y = (myObj.y = -30);
myObj.ySpeed = 17;
} else {
this._y = (myObj.y = screenHeight + 30);
myObj.ySpeed = -17;
}
} else {
if (this._x < -70) {
deleteEnemy(myObj);
} else {
this._x = this._x - 7;
myObj.x = this._x;
this._y = this._y + myObj.ySpeed;
myObj.y = this._y;
if ((myObj.shotCount++) > this.shotWait) {
myObj.shotCount = 0;
myObj.doShot("atPlayer", 0);
}
}
myObj.ySpeed = myObj.ySpeed * 0.95;
}
}
}
function speedSlow() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
var depDist = (screenHeight / (myObj.attackGroup.numMinions + 1));
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + 20);
this._y = (myObj.y = depDist + (depDist * myObj.groupNum));
this.xSpeed = -7;
} else if (myObj.formSeq == 0) {
if (this.xSpeed > 0) {
this.xSpeed = 0;
myObj.formSeq = 1;
myObj.doShot("atPlayer", 0);
}
this._x = this._x + this.xSpeed;
myObj.x = this._x;
this.xSpeed = this.xSpeed + 0.2;
} else {
if (this.xSpeed < -5) {
this.xSpeed = -5;
myObj.formSeq = 0;
}
this._x = this._x + this.xSpeed;
myObj.x = this._x;
this.xSpeed = this.xSpeed - 0.2;
}
if (this._x < -30) {
deleteEnemy(myObj);
}
}
}
function flyAcross() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + 20);
this._y = (myObj.y = 25 + (Math.random() * 350));
myObj.xSpeed = 18;
myObj.ySpeed = (200 - this._y) / (((screenWidth + 20) + 50) / myObj.xSpeed);
} else if (this._x < -70) {
deleteEnemy(myObj);
} else {
this._x = this._x - myObj.xSpeed;
myObj.x = this._x;
this._y = this._y + myObj.ySpeed;
myObj.y = this._y;
}
}
}
function flyAcrossAndShoot() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + 20);
this._y = (myObj.y = 25 + (Math.random() * 350));
myObj.xSpeed = 16;
myObj.ySpeed = (200 - this._y) / (((screenWidth + 20) + 50) / myObj.xSpeed);
} else if (this._x < -70) {
deleteEnemy(myObj);
} else {
if (Math.random() < 0.02) {
myObj.doShot("atPlayer", 0);
}
this._x = this._x - myObj.xSpeed;
myObj.x = this._x;
this._y = this._y + myObj.ySpeed;
myObj.y = this._y;
}
}
}
function Zform() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + 20);
if (myObj.high) {
this._y = (myObj.y = 50);
} else {
this._y = (myObj.y = 300);
}
} else if (myObj.formSeq == 0) {
if (this._x < 130) {
myObj.formSeq = 1;
myObj.doShot("atPlayer", 0);
} else {
this._x = this._x - myObj.speed;
myObj.x = this._x;
}
} else if (myObj.formSeq == 1) {
if (this._x > 500) {
myObj.formSeq = 2;
myObj.doShot("atPlayer", 0);
} else {
this._x = this._x + (myObj.speed / 1.2);
myObj.x = this._x;
if (myObj.high) {
this._y = this._y + (myObj.speed / 2);
} else {
this._y = this._y - (myObj.speed / 2);
}
myObj.y = this._y;
}
} else if (myObj.formSeq == 2) {
if (this._x < -70) {
deleteEnemy(myObj);
} else {
this._x = this._x - myObj.speed;
myObj.x = this._x;
}
}
}
}
function boatAction() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = 0;
myObj.doShot("atPlayer", 0);
}
if (this.up) {
if ((this.count++) < 5) {
this._y = this._y - 0.5;
myObj.y = this._y;
} else {
this.count = 0;
this.up = false;
}
} else if ((this.count++) < 5) {
this._y = this._y + 0.5;
myObj.y = this._y;
} else {
this.count = 0;
this.up = true;
}
if ((this._x < -60) && (myObj.speed < moveSpeed)) {
deleteEnemy(myObj);
} else if ((this._x > (screenWidth + 60)) && (myObj.speed > moveSpeed)) {
deleteEnemy(myObj);
} else {
this._x = (myObj.x = myObj.x - (moveSpeed - myObj.speed));
}
}
}
function genAction() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = 0;
myObj.doShot("atPlayer", 0);
}
if ((this._x < -60) && (myObj.speed < moveSpeed)) {
deleteEnemy(myObj);
} else if ((this._x > (screenWidth + 60)) && (myObj.speed > moveSpeed)) {
deleteEnemy(myObj);
} else {
this._x = (myObj.x = myObj.x - (moveSpeed - myObj.speed));
}
}
}
function tankAction() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
var angle = myObj.getAngle(this._parent._parent.player);
if ((this._y + myObj.shotDisplY) > this._parent._parent.player.y) {
if ((angle < this.gun._rotation) && (this.gun._rotation > -176)) {
this.gun._rotation = this.gun._rotation - 3;
} else if ((angle > this.gun._rotation) && (this.gun._rotation < -4)) {
this.gun._rotation = this.gun._rotation + 3;
}
}
if ((myObj.shotCount++) > 50) {
myObj.shotCount = 0;
myObj.doShot(this.gun._rotation, 0);
}
if (this._x < -30) {
deleteEnemy(myObj);
} else {
this._x = (myObj.x = myObj.x - (moveSpeed - myObj.speed));
}
}
}
function mortarAction() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > 30) {
myObj.shotCount = 0;
myObj.doShot(-135, 0);
this.mc.play();
}
if (this._x < -30) {
deleteEnemy(myObj);
} else {
this._x = (myObj.x = myObj.x - (moveSpeed - myObj.speed));
}
}
}
function mineLayerAction() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._y = (myObj.y = 50);
this._x = (myObj.x = screenWidth + 40);
} else if (myObj.formSeq == 0) {
if (this._x < -50) {
deleteEnemy(myObj);
} else {
this._x = this._x - 3;
myObj.x = this._x;
}
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 30)) + 10;
var cl = new ClusterBomb(1, myObj.level, myObj.x + myObj.shotDisplX, myObj.y + myObj.shotDisplY, justGravity2, 0, 1);
}
}
}
}
function slouchAcross() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + 40);
if (myObj.high) {
this._y = (myObj.y = 50 + (Math.random() * 120));
} else {
this._y = (myObj.y = 200 + (Math.random() * 120));
}
this.xSpeed = -2;
} else if (myObj.formSeq == 0) {
if ((myObj.shotCount++) > 45) {
if (Math.random() > 0.4) {
myObj.shotCount = (-(Math.random() * 45)) + 10;
myObj.doShot("atPlayer", 0);
} else {
var i = 120;
while (i < 270) {
myObj.doShot(i, 1);
i = i + 30;
}
myObj.shotCount = (-(Math.random() * 45)) + 10;
}
}
this._x = this._x + this.xSpeed;
myObj.x = this._x;
}
if (this._x < -30) {
deleteEnemy(myObj);
}
}
}
function justGravity() {
if (this.myObject.hittable) {
this.myObject.checkForBeingHit();
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + 0.3;
if ((this.ySpeed > 0) && (Math.random() > 0.95)) {
this.myObject.x = this._x;
this.myObject.y = this._y;
this.gotoAndPlay("beingDestroyed");
var i = 0;
while (i <= 360) {
this.myObject.doShot(i, 0);
i = i + 45;
}
delete this.onEnterFrame;
}
}
}
function justGravity2() {
if (this.myObject.hittable) {
this.myObject.checkForBeingHit();
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.ySpeed = this.ySpeed + 0.3;
if ((this._y > 150) && (Math.random() > 0.85)) {
this.myObject.x = this._x;
this.myObject.y = this._y;
this.gotoAndPlay("beingDestroyed");
var i = 0;
while (i <= 360) {
this.myObject.doShot(i, 0);
i = i + 45;
}
delete this.onEnterFrame;
}
}
}
function upAndDown() {
var myObj = this.myObject;
if (myObj.hittable) {
this.myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
this._y = this._y + this.ySpeed;
this._x = this._x + this.xSpeed;
if (this._y < -40) {
this._yscale = this._yscale * -1;
myObj.formSeq = 0;
this._x = player.x;
}
} else if (myObj.formSeq == 0) {
this._y = this._y - this.ySpeed;
this._x = this._x + this.xSpeed;
if (this._y >= screenHeight) {
this.gotoAndPlay("beingDestroyed");
delete this.onEnterFrame;
}
}
}
}
function boss5Fly() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = 520);
this._y = (myObj.y = 256);
this.xSpeed = -2;
} else if (myObj.formSeq == 0) {
if ((myObj.shotCount++) > 45) {
myObj.shotCount = (-(Math.random() * 45)) + 10;
myObj.doShot("atPlayer", 0);
}
this._x = this._x + this.xSpeed;
myObj.x = this._x;
}
if (this._x < -30) {
deleteEnemy(myObj);
}
}
}
function BflyFromTop() {
var myObj = this.myObject;
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + (this._width / 2));
this._y = (myObj.y = (-this._height) / 2);
} else if (myObj.formSeq == 0) {
if (this._x < 450) {
myObj.formSeq = 1;
this.down = true;
this.ySpeed = 1.5;
} else {
this._x = this._x - 2;
myObj.x = this._x;
this._y = this._y + 1.5;
myObj.y = this._y;
}
} else {
if (this.down) {
this.ySpeed = this.ySpeed - 0.1;
if (this.ySpeed < -2.6) {
this.down = false;
}
} else {
this.ySpeed = this.ySpeed + 0.1;
if (this.ySpeed > 2.6) {
this.down = true;
}
}
this._y = this._y + this.ySpeed;
myObj.y = this._y;
}
}
function submarineAction() {
var myObj = this.myObject;
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + (this._width / 2));
this._y = (myObj.y = screenHeight + this._height);
this.up = true;
} else if (myObj.formSeq == 0) {
if (this._x > 465) {
this._x = this._x - 1;
myObj.x = this._x;
} else if (this.left) {
if ((this.countX++) < 25) {
this._x = this._x - 0.5;
myObj.x = this._x;
} else {
this.countX = 0;
this.left = false;
}
} else if ((this.countX++) < 25) {
this._x = this._x + 0.5;
myObj.x = this._x;
} else {
this.countX = 0;
this.left = true;
}
if (this._y > screenHeight) {
this._y = this._y - 0.5;
myObj.y = this._y;
} else if (this.up) {
if ((this.count++) < 25) {
if ((this.count % 5) == 1) {
this._y = this._y - 0.5;
myObj.y = this._y;
}
} else {
this.count = 0;
this.up = false;
}
} else if ((this.count++) < 25) {
if ((this.count % 5) == 1) {
this._y = this._y + 0.5;
myObj.y = this._y;
}
} else {
this.count = 0;
this.up = true;
}
}
}
function moveLeftAndRight() {
var myObj = this.myObject;
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + (this._width / 2));
this._y = (myObj.y = screenHeight);
} else if (myObj.formSeq == 0) {
this._x = this._x - 2;
myObj.x = this._x;
if (this._x < 450) {
myObj.formSeq = 1;
}
} else if (myObj.formSeq == 1) {
this._x = this._x + 1;
myObj.x = this._x;
var i = 0;
while (i < 5) {
this["wheel" + i]._rotation = this["wheel" + i]._rotation + 3;
i++;
}
if (this._x > (screenWidth - (this._width / 2))) {
myObj.formSeq = 0;
}
} else {
this._x = this._x - levelsBGSpeed[gameLevel];
}
}
function boss5Move() {
var myObj = this.myObject;
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = screenWidth + this._width);
this._y = (myObj.y = 176);
} else if (myObj.formSeq == 0) {
this._x = this._x - 2;
myObj.x = this._x;
if (this._x < 612) {
myObj.formSeq = 1;
}
} else if (myObj.formSeq == 1) {
}
}
function rotateAndShoot() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
var angle = myObj.getAngle(player);
if (angle < 0) {
angle = angle + 360;
}
var rot = this.gun._rotation;
if (rot < 0) {
rot = rot + 360;
}
if (angle < (rot - myObj.rotateSpeed)) {
this.gun._rotation = this.gun._rotation - myObj.rotateSpeed;
} else if (angle > (rot + myObj.rotateSpeed)) {
this.gun._rotation = this.gun._rotation + myObj.rotateSpeed;
}
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = 0;
myObj.doShot(this.gun._rotation, 0);
}
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
}
}
function passive() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
}
}
function pSingleAtPlayer() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = 0;
myObj.doShot("atPlayer", 0);
}
}
}
function likeMortar() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 20)) + 10;
myObj.doShot(myObj.sAngle, 0);
}
}
}
function pMultipleBigSpread() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = 0;
var i = 120;
while (i < 270) {
myObj.doShot(i, 0);
i = i + 30;
}
}
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
}
}
function pMultipleTightSpread() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 30)) + 10;
var i = 170;
while (i <= 190) {
myObj.doShot(i, 0);
i = i + 10;
}
}
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
}
}
function b2ClusterChimney() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 30)) + 10;
var cl = new ClusterBomb(1, 1, myObj.boss.x + myObj.shotDisplX, myObj.boss.y + myObj.shotDisplY, justGravity, -5, -10);
}
}
}
function b3Head() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount1++) > myObj.shotWait1) {
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
myObj.shotCount1 = (-(Math.random() * 20)) + 10;
myObj.doShot("atPlayer", 0);
}
if ((myObj.shotCount2++) > myObj.shotWait2) {
this.smoke.play();
myObj.shotCount2 = (-(Math.random() * 20)) + 10;
var m = new missile(1, 1, myObj.boss.x + myObj.shotDisplX2, myObj.boss.y + myObj.shotDisplY2, upAndDown, 0, -12);
}
}
}
function b3TriShot() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 20)) + 10;
myObj.doShot(170, 0);
myObj.doShot(200, 0);
myObj.doShot(225, 0);
}
}
}
function planeEngine() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 20)) + 10;
this.fire.gotoAndPlay("flare");
this.fire.onEnterFrame = function () {
if (this.hArea.hitTest(player.mc.hArea)) {
var mis = new Object();
mis.power = 200;
mis.shotType = 10;
player.doHit(mis);
player.upDateHP();
}
};
}
}
}
function boss5Eye() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == 1) {
if ((this.shotCount++) > 48) {
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
myObj.formSeq = 0;
this.shotCount = (Math.random() * 40) + 10;
myObj.doShot(170, 1);
myObj.doShot(200, 1);
myObj.doShot(225, 1);
} else if ((this.shotCount % 10) == 0) {
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
myObj.doShot("atPlayer", 0);
}
} else if ((this.shotCount++) > 80) {
myObj.formSeq = 1;
this.shotCount = 0;
}
}
}
function boss5Ear() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == 1) {
if ((this.shotCount++) > 48) {
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
myObj.formSeq = 0;
this.shotCount = (Math.random() * 40) + 10;
myObj.doShot(150, 0);
myObj.doShot(165, 1);
myObj.doShot(180, 0);
myObj.doShot(195, 1);
myObj.doShot(210, 0);
myObj.doShot(225, 1);
myObj.doShot(240, 0);
} else if ((this.shotCount % 15) == 0) {
myObj.x = myObj.boss.x;
myObj.y = myObj.boss.y;
myObj.doShot("atPlayer", 0);
}
} else if ((this.shotCount++) > 50) {
myObj.formSeq = 1;
this.shotCount = 0;
}
}
}
function b5Mouth() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if ((myObj.shotCount++) > myObj.shotWait) {
myObj.shotCount = (-(Math.random() * 40)) + 10;
var clipName = ("hopper" + Math.ceil(Math.random() * 3));
var sf = new SingleFlyer(clipName, 4, boss5Fly, true, null);
sf.init();
}
}
}
function b5Hand() {
var myObj = this.myObject;
if (myObj.hittable) {
myObj.checkForBeingHit();
if (myObj.formSeq == -1) {
myObj.formSeq = 0;
this._x = (myObj.x = 425);
this._y = (myObj.y = 440);
} else if (myObj.formSeq == 0) {
if ((this.count++) > 120) {
myObj.formSeq = 1;
this.ySpeed = 6;
}
} else if (myObj.formSeq == 1) {
if (this._y < 285) {
myObj.formSeq = 2;
} else {
this._x = this._x - 3;
myObj.x = this._x;
this._y = this._y - this.ySpeed;
myObj.y = this._y;
this.ySpeed = this.ySpeed - 0.1;
}
} else if (myObj.formSeq == 2) {
if (this._x < -90) {
myObj.formSeq = -1;
this.count = Math.random() * 30;
} else {
this._x = this._x - 2.5;
myObj.x = this._x;
this._y = this._y + 0.2;
myObj.y = this._y;
}
}
}
}
function removeEnemyShot() {
var i = 0;
while (i < comShotsArray.length) {
comShotsArray[i].explode();
i++;
}
}
function smartBomb() {
removeEnemyShot();
var i = 0;
while (i < enemiesArray.length) {
var en = enemiesArray[i];
en.hp = en.hp - (gameLevel * 40);
if (!en.isBoss) {
if (en.hittable) {
en.destroyMe();
}
} else if (en.hp > 0) {
en.mc.gotoAndPlay("beingDamaged");
} else if (en.hittable) {
en.destroyMe();
}
i++;
}
gui.gui.sBombs = player.smartBombs;
}
function doSmartBomb() {
if (canSmartBomb && (player.smartBombs > 0)) {
var sb = mc.attachMovie("_lsBomb", "smartBomb", sBombDepth);
canSmartBomb = false;
player.smartBombs--;
sb._x = player.mc._x;
sb._y = player.mc._y;
}
}
function toggleSound() {
if (soundOn) {
stopAllSounds();
intro.stop();
main.stop();
gui.gui.soundLight.gotoAndStop(2);
} else {
main = new Sound();
main.attachSound("_lmain");
main.start(0, 100000);
gui.gui.soundLight.gotoAndStop(1);
}
soundOn = !soundOn;
}
function totalStart() {
player.mc.onEnterFrame = doShipStuff;
canSmartBomb = true;
}
function finishLevel() {
canSmartBomb = false;
enemyGroup2.removeMovieClip();
enemyGroup1.removeMovieClip();
enemyGroup0.removeMovieClip();
var csa = comShotsArray;
var i = 0;
while (i < csa.length) {
csa[i].explode();
i++;
}
var ea = enemiesArray;
var i = 0;
while (i < ea.length) {
ea[i].destroyMe();
i++;
}
delete actions;
}
function fadeOut() {
bars.gotoAndPlay("slowIn");
gui.fadeOut.gotoAndPlay("fadeOut");
delete player.mc.onEnterFrame;
}
function removeLevel() {
enemyGroup3.removeMovieClip();
enemyGroup2.removeMovieClip();
enemyGroup1.removeMovieClip();
enemyGroup0.removeMovieClip();
var i = 1;
while (i < 5) {
this["b" + i].mc.removeMovieClip();
delete this["b" + i];
i++;
}
gertrude.mc.removeMovieClip();
delete gertrude;
var csa = comShotsArray;
var i = 0;
while (i < csa.length) {
csa[i].mc.removeMovieClip();
delete csa[i];
i++;
}
var ea = enemiesArray;
var i = 0;
while (i < ea.length) {
ea[i].mc.removeMovieClip();
delete ea[i];
i++;
}
var psa = playerShotsArray;
var i = 0;
while (i < psa.length) {
psa[i].mc.removeMovieClip();
delete psa[i];
i++;
}
sceneryMaker.removeMovieClip();
var i = 0;
while (i < sceneryArray.length) {
sceneryArray[i].mc.removeMovieClip();
delete sceneryArray[i];
i++;
}
sceneryArray = new Array();
playerHasShotArray = new Array();
playerShotsArray = new Array();
comHasShotArray = new Array();
comShotsArray = new Array();
enemiesConfArray = new Array();
enemiesArray = new Array();
mc._visible = false;
gui._visible = false;
}
function restartLevel() {
if (player.lives > 0) {
gui.fadeOut.gotoAndStop(1);
removeLevel();
player.lives--;
if (player.smartBombs < 2) {
player.smartBombs = 2;
}
if (player.weaponLevel >= gameLevel) {
player.weaponLevel--;
player.weaponExperience = player.experienceBarriar[player.weaponLevel] - 1;
gui.gui.powerGauge.levelDown();
if (soundOn) {
trace("leve down!");
var ld = new Sound();
ld.attachSound("_llevelDown");
ld.start();
}
} else {
player.weaponExperience = 0;
gui.gui.powerGauge.gotoMark(0, player.experienceBarriar[player.weaponLevel]);
}
playLevel();
} else if (player.continues > 0) {
event = 2;
doNextEvent();
} else {
event = 3;
doNextEvent();
}
}
function nextLevel() {
startPoint = 0;
gameLevel++;
event = 0;
doNextEvent();
}
function levelEndScreens() {
miscScreens._visible = true;
miscScreens.gotoAndStop("afterScreen" + gameLevel);
miscScreens.screen.lBonus = (player.lives * gameLevel) * 1000;
miscScreens.screen.sBombsBonus = (player.smartBombs * gameLevel) * 1000;
trace("miscScreens.screen.sBombsBonus " + miscScreens.screen.sBombsBonus);
miscScreens.screen.cBonus = player.continues * 100000;
if (player.hp > 10) {
miscScreens.screen.sBonus = gameLevel * 10000;
} else {
miscScreens.screen.sBonus = 0;
}
ub = new Sound(miscScreens);
ub.attachSound("_lupBeat");
if (!soundOn) {
ub.setVolume(0);
} else {
ub.setVolume(100);
}
if (gameLevel < 5) {
ub.onSoundComplete = nextLevel;
ub.start(0, 1);
} else {
ub.start(0, 2000);
}
removeLevel();
}
function useContinue() {
score = 0;
player.lives = 2;
player.continues--;
player.smartBombs = 2;
player.weaponLevel = gameLevel - 1;
player.weaponExperience = 0;
player.shotType = 0;
player.doExperience(0);
gui.gui.powerGauge.divisions.gotoAndStop(player.experienceBarriar[player.weaponLevel] - 1);
gui.gui.powerGauge.gotoMark(0, player.weaponLevel + 3);
event = 0;
doNextEvent();
}
function playLevel() {
mc._visible = true;
gui._visible = true;
ub.stop();
count = startPoint;
player.init();
player.shooting = false;
player.x = 100;
player.y = 150;
player.mc._x = 100;
player.mc._y = 150;
player.shootTime = 0;
gui.gui.lives = player.lives;
gui.gui.sBombs = player.smartBombs;
gui.gui.face.gotoAndPlay(1);
actions = new Array();
player.cooldown = shotBehaviours[player.shotType].cooldown;
if (gameLevel == 1) {
actions = level1Actions;
makeForeGroundMaker("tree", 60, moveSpeed);
gertrude = new BackgroundA("BG1a");
b1 = new BackgroundB("bg1b", "left", levelsBGSpeed[gameLevel]);
b2 = new BackgroundB("bg1b", "right", levelsBGSpeed[gameLevel]);
} else if (gameLevel == 3) {
actions = level3Actions;
gertrude = new BackgroundA("BG3a");
b1 = new BackgroundB("bg3b", "left", 0.5);
b2 = new BackgroundB("bg3b", "right", 0.5);
b3 = new BackgroundB("bg3c", "left", levelsBGSpeed[gameLevel]);
b4 = new BackgroundB("bg3c", "right", levelsBGSpeed[gameLevel]);
} else if (gameLevel == 5) {
actions = level5Actions;
gertrude = new BackgroundA(("BG" + gameLevel) + "a");
b3 = new BackgroundB("bg5c", "left", 0.5);
b2 = new BackgroundB(("bg" + gameLevel) + "b", "right", levelsBGSpeed[gameLevel]);
} else {
actions = this[("level" + gameLevel) + "Actions"];
gertrude = new BackgroundA(("BG" + gameLevel) + "a");
b1 = new BackgroundB(("bg" + gameLevel) + "b", "left", levelsBGSpeed[gameLevel]);
b2 = new BackgroundB(("bg" + gameLevel) + "b", "right", levelsBGSpeed[gameLevel]);
}
if (soundOn) {
soundOn = true;
main = new Sound();
main.attachSound("_lmain");
main.start(0, 100000);
} else {
gui.gui.soundLight.gotoAndStop(2);
}
gui.fadeOut.gotoAndPlay("getReady");
}
function prescreenChange() {
if (!prescreenChanged) {
prescreenChanged = true;
doNextEvent();
Key.removeListener(this);
ub.stop();
}
}
function doNextEvent() {
if (event == 0) {
removeLevel();
miscScreens._visible = true;
miscScreens.gotoAndStop("prescreen" + gameLevel);
event = 1;
ub = new Sound(miscScreens);
ub.attachSound("_lupBeat");
if (!soundOn) {
ub.setVolume(0);
} else {
ub.setVolume(100);
}
ub.onSoundComplete = prescreenChange;
ub.start(0, 2);
prescreenChanged = false;
this.onKeyDown = prescreenChange;
Key.addListener(this);
} else if (event == 1) {
miscScreens.gotoAndStop(1);
miscScreens._visible = false;
gui.fadeOut.gotoAndStop(1);
playLevel();
bars.gotoAndPlay("out");
} else if (event == 2) {
removeLevel();
startPoint = 0;
miscScreens._visible = true;
miscScreens.gotoAndStop("continue");
if (player.continues > 1) {
miscScreens.screen.continues = (("(" + player.continues) + " continues left") + ")";
} else {
miscScreens.screen.continues = "(1 continue left)";
}
contSound = new Sound();
contSound.attachSound("_lcontinue");
if (soundOn) {
contSound.setVolume(100);
} else {
contSound.setVolume(0);
}
contSound.start(0, 2000);
event = 3;
} else {
removeLevel();
miscScreens._visible = true;
miscScreens.gotoAndStop("gameover");
mc.removeMovieClip();
delete player;
}
}
function showKey(theKey, val) {
if ((val > 64) && (val < 91)) {
theKey.keyVal = alphabet[val - 65];
} else {
switch (val) {
case 9 :
theKey.keyVal = "Tab";
break;
case 13 :
theKey.keyVal = "Enter";
break;
case 16 :
theKey.keyVal = "Shift";
break;
case 17 :
theKey.keyVal = "Ctrl";
break;
case 32 :
theKey.keyVal = "Space";
break;
case 37 :
theKey.keyVal = "Left";
break;
case 38 :
theKey.keyVal = "Up";
break;
case 39 :
theKey.keyVal = "Right";
break;
case 40 :
theKey.keyVal = "Down";
break;
case 186 :
theKey.keyVal = ";";
break;
case 188 :
theKey.keyVal = "<";
break;
case 190 :
theKey.keyVal = ">";
break;
case 191 :
theKey.keyVal = "/";
break;
case 192 :
theKey.keyVal = "'";
break;
case 219 :
theKey.keyVal = "[";
break;
case 220 :
theKey.keyVal = "\\";
break;
case 221 :
theKey.keyVal = "]";
break;
case 222 :
theKey.keyVal = "#";
}
}
if (theKey.key0.textWidth > 56) {
var scale = ((100 / theKey.key0.textWidth) * 56);
theKey.key0._xScale = scale;
theKey.key1._xScale = scale;
} else {
theKey.key0._xScale = 100;
theKey.key1._xScale = 100;
}
}
function keySelect() {
var sc = miscScreens.startScreen;
var i = 0;
while (i < 6) {
sc["keyVal" + i].key0.autoSize = "center";
sc["keyVal" + i].key1.autoSize = "center";
showKey(sc["keyVal" + i], keyMap[i]);
sc["keyButton" + i].onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop("over");
if (soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
sc["keyButton" + i].num = i;
sc["keyButton" + i].onRollOut = (sc["keyButton" + i].onDragOut = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop(1);
}
});
sc["keyButton" + i].onRelease = function () {
if (this._parent._parent._parent.buttonsActive) {
if (soundOn) {
var ck = new Sound();
ck.attachSound("_ltryChangeKey");
ck.start();
}
this._parent._parent._parent.buttonsActive = false;
this.onKeyDown = function () {
Key.removeListener(this);
var k = Key.getCode();
if (validKeys[k]) {
this.gotoAndPlay("validate");
validKeys[keyMap[this.num]] = true;
validKeys[k] = false;
keyMap[this.num] = k;
this._parent._parent._parent.showKey(this._parent["keyVal" + this.num], k);
if (soundOn) {
var ck = new Sound();
ck.attachSound("_lvalidKey");
ck.start();
}
} else {
if (soundOn) {
var ck = new Sound();
ck.attachSound("_linvalidKey");
ck.start();
}
this.gotoAndPlay("invalid");
}
};
Key.addListener(this);
this.gotoAndStop("changing");
}
};
i++;
}
}
function displayStart() {
stopAllSounds();
miscScreens.gotoAndStop("startScreen");
keySelect();
if (soundOn) {
miscScreens.startScreen.soundToggle.soundStatus = "TURN SOUND OFF";
} else {
miscScreens.startScreen.soundToggle.soundStatus = "TURN SOUND ON";
}
miscScreens.startScreen.soundToggle.onRelease = function () {
if (this._parent._parent._parent.buttonsActive) {
soundOn = !soundOn;
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
if (soundOn) {
this.soundStatus = "TURN SOUND OFF";
} else {
this.soundStatus = "TURN SOUND ON";
}
this._parent.soundStars.gotoAndPlay("over");
}
};
buttonsActive = true;
}
stop();
Function.prototype.extend = function (superClass) {
this.prototype.__proto__ = superClass.prototype;
this.prototype.__constructor__ = superClass;
ASSetPropFlags(this.prototype, ["__constructor__"], 1);
};
ASSetPropFlags(Function.prototype, ["extend"], 1);
MovieClip.prototype.mcExtends = function (superClass) {
if (typeof(superClass) == "function") {
this.__proto__ = superClass.prototype;
if (typeof(this.attachMovie) == "undefined") {
var o = this.__proto__;
var p = o.__proto__.__proto__;
while (p != null) {
p = p.__proto__;
o = o.__proto__;
}
o.__proto__ = MovieClip.prototype;
}
arguments.splice(0, 1);
superClass.apply(this, arguments);
} else {
trace("mcExtends: Incorrect superClass type or path - " + typeof(superClass));
}
};
ASSetPropFlags(MovieClip.prototype, ["mcExtends"], 1);
_root.num = 0;
PiRads = (Math.PI/180);
Ship.extend(Sprite);
Ship.prototype.init = function () {
this.hittable = true;
this.mc = mc.attachMovie("_lship1", "playerShip", playerDepth);
if (this.hp < 1000) {
this.hp = this.maxHp;
this.mc.shield._visible = false;
}
this.mc.myObject = this;
};
Shot.extend(Sprite);
Bomb.extend(Shot);
PowerUp.extend(Enemy);
Enemy.extend(Sprite);
FlyingEnemy.prototype.init = function () {
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.mc = mc.attachMovie("_l" + this.clipName, "enemy" + n, enemyDepth + n);
this.mc.myObject = this;
this.mc._x = -100;
this.arrayNum = n;
this.hittable = true;
this.shotCount = 0;
this.formSeq = -1;
this.mc.onEnterFrame = this.action;
};
FlyingEnemy.extend(enemy);
GroupFlyer.extend(FlyingEnemy);
SingleFlyer.extend(FlyingEnemy);
ClusterBomb.extend(Enemy);
missile.extend(Enemy);
EnemyGroup.prototype.init = function () {
this.minionArray = new Array();
this.minionsBuilt = (this.minionsDestroyed = 0);
this.mc = createEmptyMovieClip("enemyGroup" + this.myNum, this.myNum + enemyGroupMakerDepth);
this.mc.myObject = this;
this.mc.onEnterFrame = this.buildAction;
this.count = this.delay;
};
EGroup.extend(EnemyGroup);
GroundEnemy.extend(Enemy);
BossEnemy.prototype.init = function () {
var n = 0;
while (enemiesConfArray[n] == "enemy") {
n++;
}
enemiesConfArray[n] = "enemy";
enemiesArray[n] = this;
this.mc = mc.attachMovie("_lboss" + this.clipNum, "enemy" + n, bossDepth + n);
this.mc._x = -1000;
this.mc.myObject = this;
this.arrayNum = n;
this.compDestroyed = 0;
this.components = new Array();
var i = 0;
while (i < this.numComp) {
this.components[i] = new BossComponent(this, i);
i++;
}
this.mc.onEnterFrame = this.action;
};
BossEnemy.extend(enemy);
BossComponent.extend(Enemy);
deleteShot = function (obj) {
obj.mc.removeMovieClip();
if (obj.whoShot == "player") {
delete playerHasShotArray[obj.arrayNum];
delete playerShotsArray[obj.arrayNum];
} else {
delete comHasShotArray[obj.arrayNum];
delete comShotsArray[obj.arrayNum];
}
delete obj;
};
deleteEnemy = function (obj) {
obj.mc.removeMovieClip();
delete enemiesConfArray[obj.arrayNum];
delete enemiesArray[obj.arrayNum];
delete obj;
};
Sprite.prototype.getAngle = function (obj) {
return(Math.atan2((obj.y - this.y) - this.shotDisplY, (obj.x - this.x) - this.shotDisplX) / PiRads);
};
Sprite.prototype.doHit = function (missile) {
var damage = missile.power;
damage = damage - (((damage / 2) / 100) * this.armour);
this.hp = this.hp - damage;
if (this.hp > 0) {
this.mc.gotoAndPlay("beingDamaged");
} else if (this.hittable) {
this.destroyMe();
}
if (missile.shotType < 10) {
missile.explode();
}
};
Shot.prototype.explode = function () {
delete this.mc.onEnterFrame;
this.hittable = false;
this.mc.gotoAndPlay("explode");
};
Bomb.prototype.explode = function () {
delete this.mc.onEnterFrame;
if (!this.beenHit) {
this.beenHit = true;
this.mc.gotoAndPlay("explode");
}
};
BossComponent.prototype.destroyMe = function () {
if (this.hittable) {
this.hittable = false;
this.mc.gotoAndPlay("beingDestroyed");
score = score + this.score;
delete this.boss.components[this.num];
if (((++this.boss.compDestroyed) == this.boss.numComp) || (this.vital)) {
var i = 0;
while (i < this.boss.components.length) {
this.boss.components[i].hittable = false;
this.boss.components[i].mc.gotoAndPlay("beingDestroyed");
delete this.boss.components[i];
i++;
}
score = score + this.boss.score;
this.boss.mc.gotoAndPlay("beingDestroyed");
gui.gui.face.gotoAndPlay("happy");
}
}
};
BossEnemy.prototype.destroyMe = function () {
};
Enemy.prototype.destroyMe = function () {
this.hittable = false;
this.mc.gotoAndPlay("beingDestroyed");
score = score + (this.score * 100);
var ag = this.attackGroup;
if (ag != undefined) {
ag.minionsDestroyed++;
if (ag.minionsDestroyed == ag.numMinions) {
if (ag.givePowerUp) {
var s = new PowerUp(this.x + this.shotDisplX, this.y + this.shotDisplY, ag.level);
}
delete this.ag;
}
} else if (this.cont == "player") {
} else if (this.givePowerUp) {
var s = new PowerUp(this.x + this.shotDisplX, this.y + this.shotDisplY, this.level);
}
};
Enemy.prototype.checkForBeingHit = function () {
var psa = playerShotsArray;
var i = 0;
while (i < psa.length) {
if (psa[i].hittable) {
if (this.mc.hArea.hitTest(psa[i].mc)) {
this.doHit(psa[i]);
}
}
i++;
}
};
Enemy.prototype.doShot = function (direction, i) {
if (direction == "atPlayer") {
var angle = this.getAngle(player);
} else {
var angle = direction;
}
var s = new shot(this.shotType[i], this.x + this.shotDisplX, this.y + this.shotDisplY, this.shotPower[i], angle, "com", 100);
};
Ship.prototype.doHit = function (missile) {
var damage = missile.power;
damage = damage - (((damage / 2) / 100) * this.armour);
this.hp = this.hp - damage;
if (this.hp > 0) {
gui.gui.face.gotoAndPlay("hit");
this.mc.shield.gotoAndPlay(2);
this.hp = 1;
} else if (this.hittable) {
this.destroyMe();
}
if (missile.shotType < 10) {
missile.explode();
}
};
Ship.prototype.doExperience = function (ex) {
this.weaponExperience = this.weaponExperience + ex;
gui.gui.powerGauge.colours.gotoAndStop(weaponDesc[this.shotType]);
gui.gui.weaponT = weaponDesc[this.shotType];
if (this.weaponLevel < this.experienceBarriar.length) {
gui.gui.powerGauge.gotoMark(this.weaponExperience, this.experienceBarriar[this.weaponLevel]);
if (this.weaponExperience >= this.experienceBarriar[this.weaponLevel]) {
if (soundOn) {
pu = new Sound();
pu.attachSound("_lcoinIn");
pu.start();
}
this.weaponLevel++;
this.weaponExperience = 0;
this.mc.levelUpLight.gotoAndPlay(2);
this.mc.darkener.gotoAndPlay(2);
this.hp = 9999999 /* 0x98967F */;
this.mc.shield._visible = true;
this.mc.shield.gotoAndStop(1);
gui.gui.face.gotoAndPlay("happy");
if (this.hp > 10) {
score = score + (10000 * this.weaponLevel);
}
}
} else {
if (soundOn) {
pu = new Sound();
pu.attachSound("_lcoinIn");
pu.start();
}
this.mc.levelUpLight.gotoAndPlay(2);
this.mc.darkener.gotoAndPlay(2);
this.hp = 9999999 /* 0x98967F */;
this.mc.gotoAndStop(1);
this.mc.shield._visible = true;
this.mc.shield.gotoAndStop(1);
score = score + 15000;
}
};
Ship.prototype.destroyMe = function () {
this.hittable = false;
gui.gui.face.gotoAndPlay("destroyed");
delete this.mc.onEnterFrame;
canSmartBomb = false;
this.mc.gotoAndPlay("beingDestroyed");
if (this.lives <= 0) {
bars.gotoAndPlay("slowIn");
}
};
Ship.prototype.checkForBeingHit = function () {
var csa = comShotsArray;
var i = 0;
while (i < csa.length) {
if (csa[i].hittable) {
if (this.mc.hArea.hitTest(csa[i].mc)) {
this.doHit(csa[i]);
this.upDateHP();
}
}
i++;
}
var ea = enemiesArray;
var i = 0;
while (i < ea.length) {
if (ea[i].hittable) {
if (this.mc.hArea.hitTest(ea[i].mc.hArea)) {
this.doRam(ea[i]);
this.upDateHP();
}
}
i++;
}
};
Ship.prototype.doRam = function (obj) {
if (obj.powerUp && (this.hittable)) {
if ((obj.hitCount++) > 0) {
obj.hittable = false;
if (obj.powerType == 0) {
this.lives++;
gui.gui.lives = this.lives;
gui.gui.face.gotoAndPlay("happy");
} else if (obj.powerType == 1) {
score = score + (10000 * obj.level);
} else if (obj.powerType == 3) {
this.smartBombs++;
gui.gui.sBombs = this.smartBombs;
gui.gui.face.gotoAndPlay("happy");
} else {
if (obj.pt < 4) {
this.shotType = obj.pt - 1;
} else {
this.shotType = obj.pt + 6;
}
this.doExperience(1);
this.cooldown = shotBehaviours[this.shotType].cooldown;
gui.gui.powerGauge.colours.gotoAndStop(this.shotType + 1);
}
delete obj.mc.onEnterFrame;
obj.mc.play();
}
} else {
if (!obj.isBoss) {
obj.destroyMe();
} else {
var damage = this.ramDam;
damage = damage - (((damage / 2) / 100) * obj.armour);
obj.hp = obj.hp - damage;
if (obj.hp > 0) {
obj.mc.play();
} else if (obj.hittable) {
obj.destroyMe();
}
}
this.hp = this.hp - 10;
if (this.hp > 0) {
this.mc.shield.gotoAndPlay(2);
this.hp = 1;
gui.gui.face.gotoAndPlay("hit");
} else if (this.hittable) {
this.destroyMe();
}
}
};
Ship.prototype.doUp = function () {
if (this.y > (this.shipHeight / 2)) {
this.y = this.y - this.speed;
this.mc._y = this.y;
if (this.shotType == 4) {
var i = 0;
while (i <= playerShotsArray.length) {
playerShotsArray[i].mc._y = playerShotsArray[i].mc._y - (this.speed / 1.5);
i++;
}
}
} else {
this.y = (this.mc._y = this.shipHeight / 2);
}
};
Ship.prototype.doDown = function () {
if ((this.y + this.speed) < (screenHeight - 20)) {
this.y = this.y + this.speed;
this.mc._y = this.y;
if (this.shotType == 4) {
var i = 0;
while (i <= playerShotsArray.length) {
playerShotsArray[i].mc._y = playerShotsArray[i].mc._y + (this.speed / 1.5);
i++;
}
}
} else {
this.y = (this.mc._y = screenHeight - (this.shipHeight / 2));
}
};
Ship.prototype.doLeft = function () {
if (this.x > (this.shipWidth / 2)) {
this.x = this.x - this.speed;
this.mc._x = this.x;
if (this.shotType > 2) {
var i = 0;
while (i <= playerShotsArray.length) {
playerShotsArray[i].mc._x = playerShotsArray[i].mc._x - this.speed;
i++;
}
}
}
};
Ship.prototype.doRight = function () {
if (this.x < (screenWidth - (this.shipWidth / 2))) {
if (this.shotType > 2) {
var i = 0;
while (i <= playerShotsArray.length) {
playerShotsArray[i].mc._x = playerShotsArray[i].mc._x + this.speed;
i++;
}
}
this.x = this.x + this.speed;
this.mc._x = this.x;
}
};
Ship.prototype.doShot = function (whoShot) {
var shotType = shotBehaviours[this.shotType];
if (this.shotType < 10) {
var weapArray = shotType.levels[this.weaponLevel];
var i = 0;
while (i < weapArray.length) {
var s = new shot(this.shotType, this.x + this.shotDisplX, (this.y + weapArray[i].yDisc) + this.shotDisplY, weapArray[i].power, weapArray[i].angle, whoShot, weapArray[i].scale);
i++;
}
if ((this.shotType == 2) && ((++this.bombCount) > 1)) {
this.bombCount = 0;
var b = new bomb(this.x + this.shotDisplX, (this.y + weapArray[i].yDisc) + this.shotDisplY, whoShot, (this.weaponLevel + 1) * 15);
}
} else {
this.flaming = true;
var s = new FlameShot(this.shotType, this.weaponLevel, 0, this.x + this.shotDisplX, this.y + this.shotDisplY, 0, whoShot);
}
if (soundOn) {
var shotSound = new Sound();
shotSound.attachSound("_lshotSound" + this.shotType);
shotSound.start();
}
};
Ship.prototype.doMissile = function () {
trace("missile!");
};
Ship.prototype.doSmartBomb = function () {
trace("smart bomb!");
};
level1Actions = new Array();
level1Actions[73] = new Array(makeEGroup, true, 1, 6, zForm, true, 1, 15, makeHoppers);
level1Actions[180] = new Array(makeEGroup, false, 1, 6, zForm, true, 2, 15, makeHoppers);
level1Actions[260] = new Array(makeGroundEnemy, Mortar, 1, "mortar1", false, mortarAction, true, null, null);
level1Actions[310] = new Array(makeGroundEnemy, Tank, 1, "tank1", false, tankAction, true, null, null);
level1Actions[380] = new Array(makeEGroup, false, 1, 8, flyAcross, true, 2, 30, makeRockets);
level1Actions[440] = new Array(makeFlyingEnemy, SingleFlyer, 1, "gunPlatform1", true, ambushFromTop, true, null, null);
level1Actions[580] = new Array(makeGroundEnemy, Tank, 1, "tank2", true, tankAction, true, null, null);
level1Actions[710] = new Array(makeGroundEnemy, Mortar, 1, "mortar1", false, mortarAction, true, null, null);
level1Actions[711] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level1Actions[770] = new Array(makeFlyingEnemy, SingleFlyer, 1, "gunPlatform1", true, ambushFromTop, true, null, null);
level1Actions[870] = new Array(makeGroundEnemy, Mortar, 1, "mortar1", false, mortarAction, true, null, null);
level1Actions[945] = new Array(makeFlyingEnemy, SingleFlyer, 1, "gunPlatform1", true, ambushFromTop, false, null, null);
level1Actions[1040] = new Array(makeGroundEnemy, Mortar, 1, "mortar1", false, mortarAction, true, null, null);
level1Actions[1140] = new Array(makeEGroup, false, 1, 5, loopBack, false, 2, 40, makeHoppers);
level1Actions[1230] = new Array(makeGroundEnemy, Tank, 1, "tank1", false, tankAction, true, null, null);
level1Actions[1391] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level1Actions[1420] = new Array(makeEGroup, false, 1, 4, driftIn, false, 1, 70, makeHoppers);
level1Actions[1500] = new Array(makeGroundEnemy, Mortar, 1, "mortar1", false, mortarAction, true, null, null);
level1Actions[1680] = new Array(makeEGroup, false, 1, 6, snake, true, 2, 25, makeHoppers);
level1Actions[1730] = new Array(makeGroundEnemy, Tank, 1, "tank1", false, tankAction, true, null, null);
level1Actions[1800] = new Array(makeEGroup, false, 1, 5, flyAcross, true, 1, 20, makeRockets);
level1Actions[1890] = new Array(makeGroundEnemy, Tank, 1, "tank1", false, tankAction, true, null, null);
level1Actions[1950] = new Array(makeFlyingEnemy, SingleFlyer, 1, "gunPlatform1", true, ambushFromTop, true, null, null);
level1Actions[2000] = new Array(makeGroundEnemy, Mortar, 1, "mortar1", false, mortarAction, true, null, null);
level1Actions[2060] = new Array(makeEGroup, true, 1, 6, zForm, true, 1, 20, makeHoppers);
level1Actions[2160] = new Array(makeEGroup, false, 1, 6, zForm, true, 2, 20, makeHoppers);
level1Actions[2240] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level1Actions[2380] = new Array(makeEGroup, false, 1, 20, flyAcross, true, 1, 50, makeRockets);
level1Actions[2440] = new Array(makeBoss, 1, 4, 2, BflyFromTop, null, null, null, null);
level2Actions = new Array();
level2Actions[43] = new Array(makeEGroup, true, 1, 6, snake, true, 1, 25, makeHoppers);
level2Actions[200] = new Array(makeEGroup, false, 1, 6, snake, true, 2, 25, makeHoppers);
level2Actions[380] = new Array(makeGroundEnemy, boat, 1, "boat1", false, boatAction, false, null, null);
level2Actions[480] = new Array(makeGroundEnemy, Mortar, 1, "boat1", false, boatAction, false, null, null);
level2Actions[560] = new Array(makeFlyingEnemy, SingleFlyer, 1, "gunPlatform1", true, ambushFromTop, false, null, null);
level2Actions[690] = new Array(makeEGroup, false, 1, 4, flyBackAndForth, false, 2, 30, makePlanes);
level2Actions[759] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level2Actions[760] = new Array(makeGroundEnemy, Mortar, 1, "boat2", true, boatAction, true, null, null);
level2Actions[930] = new Array(makeGroundEnemy, Mortar, 1, "hoverCraft1", false, boatAction, false, null, null);
level2Actions[1010] = new Array(makeEGroup, false, 1, 7, flyAcross, true, 2, 20, makeRockets);
level2Actions[1115] = new Array(makeFlyingEnemy, SingleFlyer, 2, "gunPlatform1", true, ambushFromTop, false, null, null);
level2Actions[1230] = new Array(makeGroundEnemy, boat, 1, "hoverCraft1", false, boatAction, false, null, null);
level2Actions[1270] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level2Actions[1340] = new Array(makeEGroup, true, 1, 4, snake, true, 1, 30, makePlanes);
level2Actions[1415] = new Array(makeFlyingEnemy, SingleFlyer, 2, "gunPlatform1", true, ambushFromTop, false, null, null);
level2Actions[1480] = new Array(makeEGroup, false, 1, 4, snake, true, 2, 30, makePlanes);
level2Actions[1600] = new Array(makeGroundEnemy, Mortar, 1, "boat2", false, boatAction, true, null, null);
level2Actions[1690] = new Array(makeEGroup, true, 1, 5, loopBack, false, 2, 40, makeHoppers);
level2Actions[1810] = new Array(makeGroundEnemy, Mortar, 1, "boat2", false, boatAction, true, null, null);
level2Actions[1811] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level2Actions[1880] = new Array(makeGroundEnemy, Mortar, 1, "hoverCraft1", false, boatAction, false, null, null);
level2Actions[1960] = new Array(makeGroundEnemy, Mortar, 1, "boat1", false, boatAction, false, null, null);
level2Actions[2050] = new Array(makeEGroup, true, 2, 4, driftIn, false, 2, 70, makeHoppers);
level2Actions[2100] = new Array(makeGroundEnemy, Mortar, 1, "hoverCraft1", false, boatAction, false, null, null);
level2Actions[2150] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level2Actions[2200] = new Array(makeEGroup, true, 2, 6, speedSlow, true, 1, 2, makeHoppers);
level2Actions[2300] = new Array(makeGroundEnemy, Mortar, 1, "boat2", false, boatAction, true, null, null);
level2Actions[2390] = new Array(makeEGroup, true, 2, 6, speedSlow, true, 2, 2, makeHoppers);
level2Actions[2500] = new Array(makeFlyingEnemy, SingleFlyer, 2, "gunPlatform1", true, driftIn, false, null, null);
level2Actions[2570] = new Array(makeFlyingEnemy, SingleFlyer, 2, "gunPlatform1", true, ambushFromTop, false, null, null);
level2Actions[2650] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level2Actions[2700] = new Array(makeEGroup, false, 2, 20, flyAcross, true, 1, 40, makeRockets);
level2Actions[2750] = new Array(makeBoss, 2, 4, 3, submarineAction, true, 1, 20, makeHoppers);
level3Actions = new Array();
level3Actions[45] = new Array(makeEGroup, true, 1, 5, ambushFromTop, true, 1, 70, makefJars);
level3Actions[34] = new Array(makeEGroup, false, 1, 5, ambushFromTop, true, 2, 70, makefJars);
level3Actions[360] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[370] = new Array(makeGroundEnemy, Tank, 3, "tank2", true, tankAction, true, null, null);
level3Actions[490] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[535] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", false, driftIn, false, null, null);
level3Actions[580] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[630] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[700] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", true, genAction, true, null, null);
level3Actions[701] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level3Actions[749] = new Array(makeGroundEnemy, Tank, 3, "tank1", false, tankAction, true, null, null);
level3Actions[750] = new Array(makeEGroup, true, 2, 4, zForm, true, 1, 30, makefJars);
level3Actions[890] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[950] = new Array(makeEGroup, false, 2, 4, zForm, true, 2, 30, makefJars);
level3Actions[1000] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", false, ambushFromTop, false, null, null);
level3Actions[1040] = new Array(makeGroundEnemy, Tank, 3, "tank2", true, tankAction, true, null, null);
level3Actions[1150] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[1201] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level3Actions[1210] = new Array(makeGroundEnemy, Tank, 3, "tank1", false, tankAction, true, null, null);
level3Actions[1220] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", true, ambushFromTop, false, null, null);
level3Actions[1270] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level3Actions[1330] = new Array(makeEGroup, true, 2, 7, flyAcross, true, 2, 20, makePlanes);
level3Actions[1335] = new Array(makeGroundEnemy, Tank, 3, "tank1", false, tankAction, true, null, null);
level3Actions[1410] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[1510] = new Array(makeEGroup, true, 2, 4, flyBackAndForth, true, 1, 30, makePlanes);
level3Actions[1511] = new Array(makeGroundEnemy, Tank, 3, "tank1", false, tankAction, true, null, null);
level3Actions[1610] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[1660] = new Array(makeEGroup, false, 2, 4, flyBackAndForth, false, 2, 30, makePlanes);
level3Actions[1760] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level3Actions[1780] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[1910] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level3Actions[1975] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", true, ambushFromTop, false, null, null);
level3Actions[2040] = new Array(makeEGroup, true, 2, 5, ambushFromTop, true, 2, 70, makefJars);
level3Actions[2080] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", true, genAction, true, null, null);
level3Actions[2150] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[2200] = new Array(makeGroundEnemy, Mortar, 3, "mortar1", false, mortarAction, true, null, null);
level3Actions[2255] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", true, ambushFromTop, false, null, null);
level3Actions[2320] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[2325] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level3Actions[2330] = new Array(makeEGroup, true, 2, 6, snake, true, 1, 25, makeHoppers);
level3Actions[2420] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[2470] = new Array(makeEGroup, false, 2, 6, snake, true, 2, 25, makeHoppers);
level3Actions[2535] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", true, driftIn, false, null, null);
level3Actions[2540] = new Array(makeGroundEnemy, rTank, 2, "robotTank1", false, genAction, true, null, null);
level3Actions[2670] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level3Actions[2700] = new Array(makeEGroup, true, 1, 6, speedSlow, true, 1, 2, makeHoppers);
level3Actions[2780] = new Array(makeEGroup, true, 1, 6, speedSlow, true, 1, 2, makeHoppers);
level3Actions[2840] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", true, driftIn, false, null, null);
level3Actions[2850] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level3Actions[2900] = new Array(makeBoss, 3, 3, 4, moveLeftAndRight, true, 1, 20, makeHoppers);
level3Actions[2930] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level3Actions[3090] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level3Actions[3290] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level3Actions[3490] = new Array(makeGroundEnemy, rTank, 3, "robotTank1", false, genAction, true, null, null);
level4Actions = new Array();
level4Actions[3] = new Array(makeEGroup, true, 3, 6, zForm, true, 1, 20, makefJars);
level4Actions[135] = new Array(makeEGroup, false, 3, 6, zForm, true, 2, 20, makefJars);
level4Actions[220] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip1", false, driftIn, false, null, null);
level4Actions[299] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip2", false, ambushFromBottom, false, null, null);
level4Actions[300] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip2", false, ambushFromtop, false, null, null);
level4Actions[380] = new Array(makeEGroup, true, 2, 4, curveBack, false, 1, 30, makefJars);
level4Actions[420] = new Array(makeFlyingEnemy, SingleFlyer, 3, "mineLayer", true, mineLayerAction, true, null, null);
level4Actions[540] = new Array(makeEGroup, false, 2, 4, curveBack, false, 2, 30, makefJars);
level4Actions[590] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip1", true, snake, false, null, null);
level4Actions[620] = new Array(makeEGroup, false, 3, 12, flyAcross, true, 1, 25, makeRockets);
level4Actions[640] = new Array(makeFlyingEnemy, SingleFlyer, 3, "mineLayer", true, mineLayerAction, true, null, null);
level4Actions[690] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip1", true, driftIn, false, null, null);
level4Actions[691] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level4Actions[750] = new Array(makeEGroup, true, 2, 5, speedSlow, true, 2, 2, makeHoppers);
level4Actions[900] = new Array(makeEGroup, true, 2, 5, speedSlow, true, 2, 2, makeHoppers);
level4Actions[820] = new Array(makeEGroup, true, 3, 4, flyBackAndForth, true, 1, 30, makePlanes);
level4Actions[940] = new Array(makeEGroup, false, 3, 4, flyBackAndForth, false, 2, 30, makePlanes);
level4Actions[1080] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip2", false, loopBack, true, null, null);
level4Actions[1090] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip2", false, loopBack, false, null, null);
level4Actions[1220] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip2", false, loopBack, true, null, null);
level4Actions[1230] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip2", false, loopBack, false, null, null);
level4Actions[1231] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level4Actions[1330] = new Array(makeEGroup, true, 3, 6, speedSlow, true, 1, 2, makefJars);
level4Actions[1380] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip1", false, snake, true, null, null);
level4Actions[1450] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip1", false, snake, false, null, null);
level4Actions[1490] = new Array(makeEGroup, true, 3, 6, speedSlow, true, 1, 2, makefJars);
level4Actions[1550] = new Array(makeFlyingEnemy, SingleFlyer, 3, "mineLayer", true, mineLayerAction, true, null, null);
level4Actions[1580] = new Array(makeEGroup, true, 3, 4, flyBackAndForth, true, 1, 30, makePlanes);
level4Actions[1680] = new Array(makeEGroup, false, 3, 4, flyBackAndForth, false, 2, 30, makePlanes);
level4Actions[1750] = new Array(makeFlyingEnemy, SingleFlyer, 3, "mineLayer", true, mineLayerAction, true, null, null);
level4Actions[1760] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level4Actions[1800] = new Array(makeEGroup, true, 3, 6, ambushFromBottom, true, 1, 20, makefJars);
level4Actions[1801] = new Array(makeEGroup, true, 3, 6, ambushFromtop, true, 2, 20, makefJars);
level4Actions[1850] = new Array(makeFlyingEnemy, SingleFlyer, 3, "mineLayer", true, mineLayerAction, true, null, null);
level4Actions[1950] = new Array(makeEGroup, false, 3, 10, flyAcross, true, 1, 25, makePlanes);
level4Actions[2080] = new Array(makeFlyingEnemy, SingleFlyer, 3, "gunPlatform1", true, slouchAcross, false, null, null);
level4Actions[2140] = new Array(makeFlyingEnemy, SingleFlyer, 3, "spaceShip1", true, driftIn, true, null, null);
level4Actions[2290] = new Array(makeEGroup, true, 2, 10, flyAcrossAndShoot, true, 1, 20, makePlanes);
level4Actions[2305] = new Array(makeEGroup, false, 2, 10, flyAcrossAndShoot, false, 2, 20, makePlanes);
level4Actions[2560] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level4Actions[2590] = new Array(makeEGroup, false, 3, 20, flyAcross, true, 1, 65, makeRockets);
level4Actions[2660] = new Array(makeBoss, 4, 4, 3, BflyFromTop, true, 1, 2, makeHoppers);
level5Actions = new Array();
level5Actions[50] = new Array(makeEGroup, true, 4, 6, zForm, true, 1, 20, makeHoppers);
level5Actions[175] = new Array(makeEGroup, false, 4, 6, zForm, true, 2, 20, makeHoppers);
level5Actions[270] = new Array(makeEGroup, false, 2, 24, flyAcross, true, 1, 10, makeRocks);
level5Actions[499] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip3", false, ambushFromBottom, false, null, null);
level5Actions[500] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip3", false, ambushFromtop, false, null, null);
level5Actions[650] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, driftIn, true, null, null);
level5Actions[721] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, driftIn, false, null, null);
level5Actions[750] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level5Actions[814] = new Array(makeEGroup, false, 4, 5, ambushFromTop, true, 1, 70, makefJars);
level5Actions[815] = new Array(makeEGroup, false, 4, 5, ambushFromBottom, true, 2, 70, makefJars);
level5Actions[891] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip3", false, slouchAcross, true, null, null);
level5Actions[975] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip3", false, slouchAcross, true, null, null);
level5Actions[1100] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level5Actions[1150] = new Array(makeEGroup, false, 2, 12, flyAcross, true, 1, 40, makeRocks);
level5Actions[1300] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip4", false, slouchAcross, true, null, null);
level5Actions[1321] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip4", false, slouchAcross, false, null, null);
level5Actions[1480] = new Array(makeEGroup, true, 5, 7, driftIn, true, 3, 40, makeHoppers);
level5Actions[1500] = new Array(makeEGroup, false, 5, 7, driftIn, true, 2, 40, makeHoppers);
level5Actions[1530] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level5Actions[1591] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip1", true, slouchAcross, false, null, null);
level5Actions[1651] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip1", true, slouchAcross, false, null, null);
level5Actions[1750] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, flyBackAndForth, false, null, null);
level5Actions[1780] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, flyBackAndForth, true, null, null);
level5Actions[1810] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, flyBackAndForth, false, null, null);
level5Actions[1840] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, flyBackAndForth, true, null, null);
level5Actions[1900] = new Array(makeEGroup, false, 5, 6, speedSlow, true, 3, 1, makeHoppers);
level5Actions[2050] = new Array(makeEGroup, false, 5, 6, speedSlow, true, 2, 1, makeHoppers);
level5Actions[2100] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level5Actions[2140] = new Array(makeEGroup, false, 4, 20, flyAcrossAndShoot, true, 1, 30, makefJars);
level5Actions[2200] = new Array(makeEGroup, true, 3, 6, ambushFromBottom, true, 3, 20, makefJars);
level5Actions[2201] = new Array(makeEGroup, true, 3, 6, ambushFromtop, true, 2, 20, makefJars);
level5Actions[2300] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip3", false, slouchAcross, true, null, null);
level5Actions[2340] = new Array(makeFlyingEnemy, SingleFlyer, 5, "spaceShip3", false, slouchAcross, false, null, null);
level5Actions[2400] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, loopBack, false, null, null);
level5Actions[2401] = new Array(makeFlyingEnemy, SingleFlyer, 4, "spaceShip2", false, loopBack, true, null, null);
level5Actions[2450] = new Array(makeEGroup, true, 4, 6, snake, true, 1, 20, makeHoppers);
level5Actions[2575] = new Array(makeEGroup, false, 4, 6, snake, true, 2, 20, makeHoppers);
level5Actions[2730] = new Array(setWayPoint, Tank, 1, "tank2", true, tankAction, true, null, null);
level5Actions[2731] = new Array(makeEGroup, false, 2, 6, flyAcross, true, 1, 30, makeRocks);
level5Actions[2781] = new Array(makeBoss, 5, 4, 6, boss5Move, true, 1, 2, makeHoppers);
level5Actions[2850] = new Array(makeFlyingEnemy, SingleFlyer, 5, "boss5Hand", false, b5Hand, false, null, null);
doShotStuff = function () {
this._x = this._x + this.myObject.xSpeed;
this._y = this._y + this.myObject.ySpeed;
this.myObject.doHitCheck();
if ((((this._x < -20) || (this._x > 650)) || (this._y < -20)) || (this._y > 400)) {
deleteShot(this.myObject);
}
};
doBombStuff = function () {
if (this.myObject.ySpeed < 11) {
this.myObject.ySpeed = this.myObject.ySpeed + 0.5;
this._rotation = this.myObject.ySpeed * 5;
}
this._x = this._x + this.myObject.xSpeed;
this._y = this._y + this.myObject.ySpeed;
this.myObject.doHitCheck();
if (((this._x < -20) || (this._x > 650)) || (this._y < -20)) {
deleteShot(this.myObject);
}
if (this._y > 340) {
if (gameLevel == 2) {
this._y = 345;
this.myObject.explode();
} else if (gameLevel < 4) {
this._y = 335;
this.myObject.explode();
} else {
deleteShot(this.myObject);
}
}
};
doShipStuff = function () {
if (actions[++count] != undefined) {
var ta = actions[count];
ta[0](ta[1], ta[2], ta[3], ta[4], ta[5], ta[6], ta[7], ta[8]);
}
gui.count = count;
var myObj = this.myObject;
if (Key.isDown(myObj.UPkey)) {
myObj.doUp();
}
if (Key.isDown(myObj.DOWNkey)) {
myObj.doDown();
}
if (Key.isDown(myObj.LEFTkey)) {
myObj.doLeft();
}
if (Key.isDown(myObj.RIGHTkey)) {
myObj.doRight();
}
if (Key.isDown(myObj.SHOOTkey2)) {
doSmartBomb();
}
if (Key.isDown(myObj.SHOOTkey1) && ((count - myObj.shootTime) > myObj.coolDown)) {
myObj.doShot("player");
myObj.shootTime = count;
}
if (myObj.hittable) {
myObj.checkForBeingHit();
}
};
miscScreens.theLevel = 5;
screenS = 80;
levelsBGSpeed = new Array(null, 0.5, 1, 2, 2, 1);
startFunction = function () {
if (buttonsActive) {
event = 0;
gameLevel = 1;
Screen();
player = new Ship(1);
if (weaponL > 0) {
player.weaponExperience = player.experienceBarriar[weaponL - 1];
} else {
player.weaponExperience = 0;
}
bars.gotoAndPlay("in");
startPoint = 0;
doNextEvent();
}
};
stop();
MCDepth = 1;
foreGroundMakerDepth = 2;
guiDepth = 20000;
miscScreensDepth = 20001;
barsDepth = 20002;
backGroundDepth = 0;
foregroundDepth = 1000;
enemyGroupMakerDepth = 1500;
enemyDepth = 4950;
playerDepth = 5600;
bossDepth = 5500;
playerShotDepth = 6000;
comShotDepth = 6550;
powerUpDepth = 6950;
sBombDepth = 7000;
gui.swapDepths(guiDepth);
gui._xscale = 80;
gui._yscale = 80;
miscScreens.swapDepths(miscScreensDepth);
bars.swapDepths(barsDepth);
soundOn = true;
keyMap = new Array(39, 37, 40, 38, 17, 16);
alphabet = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
validKeys = new Array();
var i = 65;
while (i < 91) {
validKeys[i] = true;
i++;
}
validKeys[9] = true;
validKeys[13] = true;
validKeys[16] = true;
validKeys[17] = true;
validKeys[32] = true;
validKeys[37] = true;
validKeys[38] = true;
validKeys[39] = true;
validKeys[40] = true;
validKeys[186] = true;
validKeys[188] = true;
validKeys[190] = true;
validKeys[191] = true;
validKeys[192] = true;
validKeys[219] = true;
validKeys[220] = true;
validKeys[221] = true;
validKeys[222] = true;
var i = 0;
while (i < keyMap.length) {
validKeys[keyMap[i]] = false;
i++;
}
displayStart();
XML.prototype.ignoreWhite = true;
sendNewScore = function (userName) {
fromSubmit = true;
scoresXML = new XML();
scoresXML.onLoad = populateScores;
addScorexml = new LoadVars();
addScorexml.uname = userName;
addScorexml.score = score;
trace("doing Send \n " + addScorexml.toString());
addScorexml.sendAndLoad("http://www.utterlysuperb.com/php/addScore.php?game=alphaforce", scoresXML);
};
gotoHighScores = function () {
getScores(1);
miscScreens.gotoAndStop("leaderBoard");
};
getScores = function (sRank) {
scoresXML = new XML();
scoresXML.onLoad = populateScores;
scoresXML.load("http://www.utterlysuperb.com/php/getScores.php?game=alphaforce&sRank=" + sRank);
miscScreens.lBoard.statusInd.gotoAndStop("connecting");
if (soundOn) {
morse = new Sound();
morse.attachSound("_lmorse");
morse.start();
}
};
populateScores = function (success) {
if (fromSubmit) {
fromSubmit = false;
stopAllSounds();
miscScreens.gotoAndStop("leaderBoard");
bars.gotoAndPlay("out");
if (soundOn) {
morse = new Sound();
morse.attachSound("_lmorse");
morse.start();
}
}
debug = debug + "\n trying to populate scores \n ";
if (success == false) {
miscScreens.lBoard.debug = miscScreens.lBoard.debug + "\n The XML file failed to load";
miscScreens.lBoard.statusInd.gotoAndStop("error");
return(undefined);
}
if (this.status != 0) {
miscScreens.lBoard.debug = miscScreens.lBoard.debug + ("\n The XML document was invalid. Error: " + this.status);
miscScreens.lBoard.debug = miscScreens.lBoard.debug + scoresXML.toString();
miscScreens.lBoard.statusInd.gotoAndStop("error");
return(undefined);
}
if (this.firstChild.nodeName.toLowerCase() != "scoreschunk") {
miscScreens.lBoard.debug = miscScreens.lBoard.debug + ((("\n First node wasn't the expect <scoresChunk> node. It was " + this.firstChild.nodeName.toLowerCase()) + " : ") + this.toString());
miscScreens.lBoard.statusInd.gotoAndStop("error");
return(undefined);
}
miscScreens.lBoard.statusInd.gotoAndStop("connected");
scoresXML = this.firstChild.childNodes;
var i = 0;
while (i < scoresXML.length) {
if (scoresXML[i].nodeName.toLowerCase() == "iscore") {
var cNodeName;
var cNodeValue;
iScoreNodeXML = scoresXML[i].childNodes;
var z = 0;
while (z < iScoreNodeXML.length) {
cNodeName = iScoreNodeXML[z].nodeName.toLowerCase();
cNodeValue = iScoreNodeXML[z].firstChild.nodeValue;
if (cNodeName == "name") {
miscScreens.lBoard["score" + i].name.text = cNodeValue;
} else if (cNodeName == "score") {
miscScreens.lBoard["score" + i].score.text = cNodeValue;
} else if (cNodeName == "rank") {
miscScreens.lBoard["score" + i].rank.text = cNodeValue;
} else if (cNodeName == "date") {
miscScreens.lBoard["score" + i].date.text = cNodeValue;
}
z++;
}
}
i++;
}
};
Symbol 609 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 2
play();
Symbol 609 MovieClip Frame 41
stop();
this._parent._parent.totalStart();
Symbol 609 MovieClip Frame 42
play();
this.volume = 100;
this.onEnterFrame = function () {
this.volume = this.volume - 3;
this._parent._parent.main.setVolume(this.volume);
};
Symbol 609 MovieClip Frame 73
stop();
delete this.onEnterFrame;
this._parent._parent.main.stop();
this._parent._parent.main.setVolume(100);
this._parent._parent.levelEndScreens();
Symbol 609 MovieClip Frame 74
play();
this.volume = 100;
this.onEnterFrame = function () {
this.volume = this.volume - 3;
this._parent._parent.main.setVolume(this.volume);
};
Symbol 609 MovieClip Frame 105
stop();
delete this.onEnterFrame;
this._parent._parent.main.stop();
this._parent._parent.main.setVolume(100);
this._parent._parent.restartLevel();
Symbol 615 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 2
stop();
Symbol 615 MovieClip Frame 3
stop();
Symbol 615 MovieClip Frame 4
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 2
play();
Symbol 634 MovieClip Frame 12
this._parent.levelUp();
Symbol 636 MovieClip Frame 1
function gotoMark(mark, divs) {
if (thisRoot.player.weaponLevel < 6) {
mask.dest = (180 / divs) * mark;
mask.speed = (mask.dest - mask._x) / 10;
mask.count = 0;
mask.onEnterFrame = function () {
this._x = this._x + this.speed;
if ((++this.count) == 10) {
this._x = this.dest;
delete this.onEnterFrame;
if (this._x == 180) {
flash.gotoAndPlay(2);
}
this._parent._parent.wLevel = thisRoot.player.weaponLevel + 1;
}
};
} else {
flash.gotoAndPlay(2);
}
}
function levelUp() {
if (thisRoot.player.weaponLevel < 6) {
mask._x = 0;
var divNum = (thisRoot.player.experienceBarriar[thisRoot.player.weaponLevel] - 1);
divisions.gotoAndStop(divNum);
}
}
function levelDown() {
mask.speed = (-mask._x) / 10;
mask.count = 0;
mask.onEnterFrame = function () {
this._x = this._x + this.speed;
if ((++this.count) == 10) {
this._x = 180;
this.count = 0;
this._parent._parent.wLevel = this._parent.thisRoot.player.weaponLevel + 1;
var eb = this._parent.thisRoot.player.experienceBarriar[this._parent.thisRoot.player.weaponLevel];
this._parent.divisions.gotoAndStop(eb - 1);
this.dest = (180 / eb) * (eb - 1);
trace(this.dest);
this.speed = (this.dest - this._x) / 10;
this.onEnterFrame = function () {
this._x = this._x + this.speed;
if ((++this.count) == 10) {
delete this.onEnterFrame;
}
};
}
};
}
thisRoot = this._parent._parent._parent;
Symbol 644 Button
on (release) {
stopAllSounds();
_parent._parent.event = 3;
_parent._parent.doNextEvent();
_parent._parent.bars.gotoAndPlay("slowIn");
}
Symbol 649 Button
on (release) {
_parent._parent.toggleSound();
}
Symbol 652 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 70));
Symbol 685 MovieClip Frame 10
stop();
Symbol 685 MovieClip Frame 27
gotoAndStop (10);
Symbol 685 MovieClip Frame 47
gotoAndStop (10);
Symbol 685 MovieClip Frame 64
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
stop();
Symbol 698 MovieClip Frame 3
stop();
Symbol 698 MovieClip Frame 4
play();
Symbol 698 MovieClip Frame 11
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 698 MovieClip Frame 12
play();
Symbol 698 MovieClip Frame 19
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 2
stop();
Symbol 707 MovieClip Frame 3
stop();
Symbol 707 MovieClip Frame 4
play();
Symbol 707 MovieClip Frame 11
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 707 MovieClip Frame 12
play();
Symbol 707 MovieClip Frame 19
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 717 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 2
stop();
Symbol 717 MovieClip Frame 3
stop();
Symbol 717 MovieClip Frame 4
play();
Symbol 717 MovieClip Frame 11
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 717 MovieClip Frame 12
play();
Symbol 717 MovieClip Frame 19
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 729 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 2
stop();
Symbol 735 Button
on (release) {
getURL ("mailto:sam.bellman@gmail.com", "_blank");
}
Symbol 743 Button
on (release) {
gotoAndStop (2);
}
Symbol 751 Button
on (release) {
gotoAndStop (1);
}
Symbol 755 Button
on (release) {
getURL ("http://www.prosonica.co.uk", "_blank");
}
Symbol 759 Button
on (release) {
getURL ("http://groups.msn.com/dediosmusic", "_blank");
}
Symbol 760 MovieClip Frame 1
stop();
music.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
contact.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
Symbol 760 MovieClip Frame 2
stop();
prosonica.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
dedios.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
back.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
Symbol 768 MovieClip Frame 1
this._rotation = Math.random() * 360;
this._xscale = (this._yscale = 50 + (Math.random() * 30));
Symbol 768 MovieClip Frame 11
stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 772 MovieClip Frame 2
play();
Symbol 772 MovieClip Frame 10
stop();
Symbol 780 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 2
Symbol 780 MovieClip Frame 6
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 2
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 2
stop();
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 2
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 829 MovieClip Frame 14
this.shieldBonus = this.sBonus;
this._parent._parent.score = this._parent._parent.score + this.sBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 829 MovieClip Frame 29
this.sbBonus = this.sBombsBonus;
this._parent._parent.score = this._parent._parent.score + this.sbBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 829 MovieClip Frame 43
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
stop();
Symbol 829 MovieClip Frame 174
stop();
Symbol 836 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 1
gotoAndStop(Math.ceil(Math.random() * 6));
Symbol 856 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 856 MovieClip Frame 14
this.shieldBonus = this.sBonus;
this._parent._parent.score = this._parent._parent.score + this.sBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 856 MovieClip Frame 29
this.sbBonus = this.sBombsBonus;
this._parent._parent.score = this._parent._parent.score + this.sbBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 856 MovieClip Frame 43
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
stop();
Symbol 856 MovieClip Frame 44
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
Symbol 856 MovieClip Frame 145
stop();
Symbol 875 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 875 MovieClip Frame 14
this.shieldBonus = this.sBonus;
this._parent._parent.score = this._parent._parent.score + this.sBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 875 MovieClip Frame 29
this.sbBonus = this.sBombsBonus;
this._parent._parent.score = this._parent._parent.score + this.sbBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 875 MovieClip Frame 43
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
stop();
Symbol 875 MovieClip Frame 44
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
Symbol 875 MovieClip Frame 143
this._parent._parent.nextLevel();
stop();
Symbol 897 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 897 MovieClip Frame 14
this.shieldBonus = this.sBonus;
this._parent._parent.score = this._parent._parent.score + this.sBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 897 MovieClip Frame 29
this.sbBonus = this.sBombsBonus;
this._parent._parent.score = this._parent._parent.score + this.sbBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 897 MovieClip Frame 43
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
stop();
Symbol 897 MovieClip Frame 44
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
Symbol 897 MovieClip Frame 144
this._parent._parent.nextLevel();
stop();
Symbol 950 MovieClip Frame 1
submit.onRelease = function () {
_root.gameover = 1;
};
stop();
Symbol 950 MovieClip Frame 2
stop();
Symbol 954 Button
on (release) {
_parent._parent.bars.gotoAndPlay("out");
_parent._parent.displayStart();
}
Symbol 955 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 955 MovieClip Frame 14
this.shieldBonus = this.sBonus;
this._parent._parent.score = this._parent._parent.score + this.sBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 955 MovieClip Frame 29
this.sbBonus = this.sBombsBonus;
this._parent._parent.score = this._parent._parent.score + this.sbBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 955 MovieClip Frame 43
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
Symbol 955 MovieClip Frame 58
this.contBonus = this.cBonus;
this._parent._parent.score = this._parent._parent.score + this.cBonus;
this.tScore = this._parent._parent.score;
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lching");
explode.start();
}
stop();
this.onKeyDown = function () {
this.gotoAndPlay("continue");
Key.removeListener(this);
};
Key.addListener(this);
Symbol 955 MovieClip Frame 59
play();
Symbol 955 MovieClip Frame 64
endShip.midX = [0, 20, -10, 5, -20];
endShip.midY = [-100, -120, -115, -105, -130];
endShip.posNo = 0;
endShip.xSpeed = 0;
endShip.ySpeed = 5;
endShip.onEnterFrame = function () {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.xSpeed = this.xSpeed + ((this.midX[this.posNo] - this._x) / 70);
this.xSpeed = this.xSpeed * 0.8;
this.ySpeed = this.ySpeed + ((this.midY[this.posNo] - this._y) / 70);
this.ySpeed = this.ySpeed * 0.8;
if (Math.random() > 0.9) {
this.posNo = Math.floor(Math.random() * 5);
}
};
Symbol 955 MovieClip Frame 76
finalScore.endScore = "YOUR FINAL SCORE IS \n" + this._parent._parent.score;
Symbol 955 MovieClip Frame 93
stop();
Symbol 358 MovieClip Frame 28
gotoAndPlay (12);
Symbol 976 Button
on (release) {
_parent._parent.contSound.stop();
_parent._parent.doNextEvent();
}
Symbol 1019 MovieClip Frame 1
if (this._parent._parent.soundOn) {
this.explode = new sound(this);
this.explode.attachSound("_lgameOver");
this.explode.start();
}
endScore = "YOUR FINAL SCORE IS: \n" + this._parent._parent.score;
Symbol 1019 MovieClip Frame 100
this.explode = new sound(this);
this.explode.attachSound("_llongExplosion");
if (this._parent._parent.soundOn) {
this.explode.setVolume(100);
} else {
this.explode.setVolume(0);
}
this.explode.start();
Symbol 1019 MovieClip Frame 130
stop();
Symbol 1019 MovieClip Frame 174
this._parent._parent.bars.gotoAndPlay("out");
this._parent._parent.displayStart();
stop();
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 2
stop();
Symbol 1025 MovieClip Frame 3
stop();
Symbol 1043 MovieClip Frame 1
stop();
Symbol 1043 MovieClip Frame 2
stop();
Symbol 1043 MovieClip Frame 3
stop();
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 2
stop();
Symbol 1056 MovieClip Frame 3
stop();
Symbol 1060 MovieClip Frame 1
sRank = 1;
rankUp.symb = "<";
rankUp.onRelease = function () {
sRank = sRank + 10;
_parent._parent.getScores(sRank);
};
rankDown.symb = ">";
rankDown.onRelease = function () {
sRank = sRank - 10;
if (sRank < 1) {
sRank = 1;
}
_parent._parent.getScores(sRank);
};
exit.onRelease = function () {
_parent._parent.displayStart();
};
Symbol 1061 MovieClip Frame 2
stop();
startScreen.creditsText.gotoAndStop(1);
startScreen.creditsText._visible = false;
startScreen.controlsButton._visible = false;
startScreen.startStars._xscale = (startScreen.startStars._yscale = 130);
startScreen.startButton.onRelease = _parent.startFunction;
startScreen.startButton.onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop("over");
startScreen.startStars.gotoAndPlay("over");
if (this._parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
startScreen.startButton.onRollOut = (startScreen.startButton.onDragOut = (startScreen.startButton.onPress = function () {
this.gotoAndStop(1);
}));
startScreen.creditsButton.onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop("over");
startScreen.creditsStars.gotoAndPlay("over");
if (this._parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
startScreen.creditsButton.onRollOut = (startScreen.creditsButton.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.creditsButton.onRelease = function () {
if (this._parent._parent._parent.buttonsActive) {
this._parent.cText._visible = false;
var i = 0;
while (i < 6) {
this._parent["keyButton" + i]._visible = false;
this._parent["keyVal" + i]._visible = false;
i++;
}
this._visible = false;
this._parent.creditsText._visible = true;
this._parent.controlsButton._visible = true;
}
};
startScreen.soundToggle.onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
if (this._parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
this.gotoAndStop("over");
startScreen.soundStars.gotoAndPlay("over");
}
};
startScreen.soundToggle.onRollOut = (startScreen.soundToggle.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.controlsButton.onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop("over");
startScreen.creditsStars.gotoAndPlay("over");
if (this._parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
startScreen.controlsButton.onRollOut = (startScreen.controlsButton.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.controlsButton.onRelease = function () {
if (this._parent._parent._parent.buttonsActive) {
this._parent.cText._visible = true;
var i = 0;
while (i < 6) {
this._parent["keyButton" + i]._visible = true;
this._parent["keyVal" + i]._visible = true;
i++;
}
this._visible = false;
this._parent.creditsText._visible = false;
this._parent.creditsButton._visible = true;
}
};
startScreen.highScoresButton.onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop("over");
startScreen.highScoresStars.gotoAndPlay("over");
if (this._parent._parent._parent.soundOn) {
var ck = new Sound();
ck.attachSound("_lsoundT");
ck.start();
}
}
};
startScreen.highScoresButton.onRollOut = (startScreen.highScoresButton.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.highScoresButton.onRelease = function () {
if (this._parent._parent._parent.buttonsActive) {
this._parent._parent._parent.gotoHighScores();
}
};
Symbol 1061 MovieClip Frame 4
stop();
Symbol 1061 MovieClip Frame 5
stop();
Symbol 1061 MovieClip Frame 6
stop();
Symbol 1061 MovieClip Frame 7
stop();
Symbol 1061 MovieClip Frame 8
stop();
Symbol 1061 MovieClip Frame 9
stop();
Symbol 1061 MovieClip Frame 10
stop();
Symbol 1061 MovieClip Frame 11
stop();
Symbol 1061 MovieClip Frame 12
stop();
Symbol 1061 MovieClip Frame 13
stop();
Symbol 1061 MovieClip Frame 14
stop();
Symbol 1061 MovieClip Frame 15
stop();
Symbol 1061 MovieClip Frame 16
stop();
Symbol 1063 MovieClip Frame 1
stop();
Symbol 1063 MovieClip Frame 2
play();
Symbol 1063 MovieClip Frame 6
stop();
Symbol 1063 MovieClip Frame 7
play();
Symbol 1063 MovieClip Frame 11
stop();
Symbol 1063 MovieClip Frame 12
play();
Symbol 1063 MovieClip Frame 40
stop();
Symbol 967 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "alphaforce";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype == 2) {
_root.is_a_challenge = 1;
} else {
_root.is_a_challenge = 0;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score == 0) {
this.prequestvars.score = -1;
} else {
this.prequestvars.score = _root.score;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 36 MovieClip [_lrock2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 36 MovieClip [_lrock2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 20 * mo.level;
mo.armour = 8 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
}
Symbol 36 MovieClip [_lrock2] Frame 2
play();
Symbol 36 MovieClip [_lrock2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 36 MovieClip [_lrock2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 36 MovieClip [_lrock2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 45 MovieClip [_lrock1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 45 MovieClip [_lrock1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 15 * mo.level;
mo.armour = 8 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
}
Symbol 45 MovieClip [_lrock1] Frame 2
play();
Symbol 45 MovieClip [_lrock1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 45 MovieClip [_lrock1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 45 MovieClip [_lrock1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 55 MovieClip [_lhopper3] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 55 MovieClip [_lhopper3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = (9 + Math.random()) * mo.level;
mo.armour = 5 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 2;
mo.shotDisplX = -14;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 55 MovieClip [_lhopper3] Frame 2
play();
Symbol 55 MovieClip [_lhopper3] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 55 MovieClip [_lhopper3] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 55 MovieClip [_lhopper3] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 58 MovieClip [_lhopper2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 58 MovieClip [_lhopper2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = (9 + Math.random()) * mo.level;
mo.armour = 5 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 8;
mo.shotDisplX = -15;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 58 MovieClip [_lhopper2] Frame 2
play();
Symbol 58 MovieClip [_lhopper2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 58 MovieClip [_lhopper2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 58 MovieClip [_lhopper2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 75 MovieClip [_lspaceShip3] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 75 MovieClip [_lspaceShip3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 50 * mo.level;
mo.armour = 20 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotDisplY = 4;
mo.shotDisplX = -14;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
}
Symbol 75 MovieClip [_lspaceShip3] Frame 2
play();
Symbol 75 MovieClip [_lspaceShip3] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 75 MovieClip [_lspaceShip3] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 75 MovieClip [_lspaceShip3] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 83 MovieClip [_lspaceShip4] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 83 MovieClip [_lspaceShip4] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 40 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotDisplY = 15;
mo.shotDisplX = -35;
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
mo.shotType = new Array(3, 2);
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
}
Symbol 83 MovieClip [_lspaceShip4] Frame 2
play();
Symbol 83 MovieClip [_lspaceShip4] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 83 MovieClip [_lspaceShip4] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 83 MovieClip [_lspaceShip4] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 91 MovieClip [_lspaceShip2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 91 MovieClip [_lspaceShip2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 40 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotDisplY = -13.7;
mo.shotDisplX = 7.8;
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
}
Symbol 91 MovieClip [_lspaceShip2] Frame 2
play();
Symbol 91 MovieClip [_lspaceShip2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 91 MovieClip [_lspaceShip2] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 91 MovieClip [_lspaceShip2] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 99 MovieClip [_lspaceShip1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 99 MovieClip [_lspaceShip1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 40 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = -13;
mo.shotDisplX = -30;
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 70 * mo.level;
mo.shotType = new Array(3, 2);
mo.shotPower = new Array(mo.level * 10, mo.level * 15);
}
Symbol 99 MovieClip [_lspaceShip1] Frame 2
play();
Symbol 99 MovieClip [_lspaceShip1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 99 MovieClip [_lspaceShip1] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 99 MovieClip [_lspaceShip1] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 107 MovieClip [_lmineLayer] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 107 MovieClip [_lmineLayer] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 50 * mo.level;
mo.armour = 15 * mo.level;
mo.weakness = "none";
mo.resistant = "fire";
mo.shotDisplX = 61;
mo.shotDisplY = 12;
mo.shotWait = 30;
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
mo.shotType = new Array(3, 2);
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
}
Symbol 107 MovieClip [_lmineLayer] Frame 2
play();
Symbol 107 MovieClip [_lmineLayer] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 107 MovieClip [_lmineLayer] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 107 MovieClip [_lmineLayer] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 124 MovieClip [_lgunPlatform1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 124 MovieClip [_lgunPlatform1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 50 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotDisplY = -5;
mo.shotDisplX = -58;
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
mo.shotType = new Array(3, 4);
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
}
Symbol 124 MovieClip [_lgunPlatform1] Frame 2
play();
Symbol 124 MovieClip [_lgunPlatform1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 124 MovieClip [_lgunPlatform1] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 124 MovieClip [_lgunPlatform1] Frame 19
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 127 MovieClip [_lrocket1] Frame 1
stop();
Symbol 127 MovieClip [_lrocket1] Frame 2
play();
Symbol 127 MovieClip [_lrocket1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 127 MovieClip [_lrocket1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 127 MovieClip [_lrocket1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 137 MovieClip [_lboat2] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 137 MovieClip [_lboat2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = 1;
mo.shotWait = 45;
mo.shotType = new Array(3, 0);
mo.shotDisplY = -33;
mo.shotDisplX = 37;
mo.shotPower = new Array(mo.level * 12, mo.level * 15);
mo.ramDam = 10 * mo.level;
mo.hp = 50 * mo.level;
mo.armour = 20 * mo.level;
mo.weakness = "missile";
mo.resistant = "phaser";
mo.score = 100 * mo.level;
mo.experience = 80 * mo.level;
}
Symbol 137 MovieClip [_lboat2] Frame 2
play();
Symbol 137 MovieClip [_lboat2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 137 MovieClip [_lboat2] Frame 4
play();
Symbol 137 MovieClip [_lboat2] Frame 11
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 140 MovieClip [_lboat1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 140 MovieClip [_lboat1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = 6;
mo.shotWait = 45;
mo.shotType = new Array(4, 2);
mo.shotDisplY = -12;
mo.shotDisplX = 26;
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
mo.ramDam = 10 * mo.level;
mo.hp = 30 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "plasma";
mo.resistant = "none";
mo.score = 70 * mo.level;
mo.experience = 40 * mo.level;
}
Symbol 140 MovieClip [_lboat1] Frame 2
play();
Symbol 140 MovieClip [_lboat1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 140 MovieClip [_lboat1] Frame 4
play();
Symbol 140 MovieClip [_lboat1] Frame 11
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 144 MovieClip [_lhoverCraft1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 144 MovieClip [_lhoverCraft1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = 4;
mo.shotType = new Array(3, 2);
mo.shotDisplX = -5.3;
mo.shotDisplY = -30;
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
mo.shotWait = 30;
mo.ramDam = 20 * mo.level;
mo.hp = 30 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "missile";
mo.resistant = "none";
mo.score = 100 * mo.level;
mo.experience = 100 * mo.level;
}
Symbol 144 MovieClip [_lhoverCraft1] Frame 2
play();
Symbol 144 MovieClip [_lhoverCraft1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 144 MovieClip [_lhoverCraft1] Frame 4
play();
Symbol 144 MovieClip [_lhoverCraft1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 147 MovieClip [_lplane2] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 147 MovieClip [_lplane2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 4 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 8;
mo.shotDisplX = -5.5;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 65 * mo.level;
mo.experience = 25 * mo.level;
mo.shotType = new Array(3, 4);
mo.shotPower = new Array(mo.level * 7, mo.level * 10);
}
Symbol 147 MovieClip [_lplane2] Frame 2
play();
Symbol 147 MovieClip [_lplane2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 147 MovieClip [_lplane2] Frame 4
play();
Symbol 147 MovieClip [_lplane2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 150 MovieClip [_lplane1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 150 MovieClip [_lplane1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 2 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 8;
mo.shotDisplX = -5.5;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 60 * mo.level;
mo.experience = 20 * mo.level;
mo.shotType = new Array(3, 4);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 150 MovieClip [_lplane1] Frame 2
play();
Symbol 150 MovieClip [_lplane1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 150 MovieClip [_lplane1] Frame 4
play();
Symbol 150 MovieClip [_lplane1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 153 MovieClip [_lflyingJar3] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 153 MovieClip [_lflyingJar3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 5.7;
mo.shotDisplX = -9.5;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 0);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 153 MovieClip [_lflyingJar3] Frame 2
play();
Symbol 153 MovieClip [_lflyingJar3] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 153 MovieClip [_lflyingJar3] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 153 MovieClip [_lflyingJar3] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 156 MovieClip [_lflyingJar2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 156 MovieClip [_lflyingJar2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 7.1;
mo.shotDisplX = -11;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 0);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 156 MovieClip [_lflyingJar2] Frame 2
play();
Symbol 156 MovieClip [_lflyingJar2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 156 MovieClip [_lflyingJar2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 156 MovieClip [_lflyingJar2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 160 MovieClip [_lclusterBomb1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 160 MovieClip [_lclusterBomb1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 5 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.ramDam = 30 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 10, mo.level * 8);
}
Symbol 160 MovieClip [_lclusterBomb1] Frame 2
play();
Symbol 160 MovieClip [_lclusterBomb1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 160 MovieClip [_lclusterBomb1] Frame 4
play();
Symbol 160 MovieClip [_lclusterBomb1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 163 MovieClip [_lflyingJar1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 163 MovieClip [_lflyingJar1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 7.1;
mo.shotDisplX = -11;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 0);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 163 MovieClip [_lflyingJar1] Frame 2
play();
Symbol 163 MovieClip [_lflyingJar1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 163 MovieClip [_lflyingJar1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 163 MovieClip [_lflyingJar1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 166 MovieClip [_lhopper1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 166 MovieClip [_lhopper1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = (8 + (Math.random() * 2)) * mo.level;
mo.armour = 5 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.shotDisplY = 7.1;
mo.shotDisplX = -11;
mo.ramDam = 10 * mo.level;
mo.speed = 8;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 5, mo.level * 8);
}
Symbol 166 MovieClip [_lhopper1] Frame 2
play();
Symbol 166 MovieClip [_lhopper1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 166 MovieClip [_lhopper1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 166 MovieClip [_lhopper1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
play();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
play();
Symbol 186 MovieClip Frame 6
if (this._parent.myObject.hp < 100) {
this._visible = false;
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
play();
Symbol 190 MovieClip [_lship1] Frame 1
stop();
Symbol 190 MovieClip [_lship1] Frame 2
play();
Symbol 190 MovieClip [_lship1] Frame 5
this.myObject.hp = 1;
gotoAndStop (1);
Symbol 190 MovieClip [_lship1] Frame 6
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 190 MovieClip [_lship1] Frame 12
this._parent._parent.gui.fadeOut.gotoAndPlay("dieFadeOut");
this.removeMovieClip();
Symbol 201 MovieClip [_lshot4] Frame 1
stop();
Symbol 201 MovieClip [_lshot4] Frame 2
play();
Symbol 201 MovieClip [_lshot4] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 209 MovieClip [_lBomb] Frame 1
stop();
Symbol 209 MovieClip [_lBomb] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 209 MovieClip [_lBomb] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 217 MovieClip [_lshot3] Frame 1
stop();
Symbol 217 MovieClip [_lshot3] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 217 MovieClip [_lshot3] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 228 MovieClip [_lfire4] Frame 28
this._parent._parent.deleteShot(this.myObject);
Symbol 229 MovieClip [_lfire3] Frame 28
this._parent._parent.deleteShot(this.myObject);
Symbol 230 MovieClip [_lfire2] Frame 26
this._parent._parent.deleteShot(this.myObject);
Symbol 231 MovieClip [_lfire1] Frame 24
this._parent._parent.deleteShot(this.myObject);
Symbol 232 MovieClip [_lfire0] Frame 22
this._parent._parent.deleteShot(this.myObject);
Symbol 235 MovieClip [_lshot2] Frame 1
stop();
Symbol 235 MovieClip [_lshot2] Frame 2
play();
Symbol 235 MovieClip [_lshot2] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 247 MovieClip [_lshot6] Frame 1
stop();
Symbol 247 MovieClip [_lshot6] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 247 MovieClip [_lshot6] Frame 7
this._parent._parent.deleteShot(this.myObject);
Symbol 250 MovieClip [_lshot5] Frame 1
stop();
Symbol 250 MovieClip [_lshot5] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 250 MovieClip [_lshot5] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 256 MovieClip [_lshot1] Frame 1
stop();
Symbol 256 MovieClip [_lshot1] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 256 MovieClip [_lshot1] Frame 7
this._parent._parent.deleteShot(this.myObject);
Symbol 260 MovieClip [_lpowerUp3] Frame 1
stop();
Symbol 260 MovieClip [_lpowerUp3] Frame 2
play();
Symbol 260 MovieClip [_lpowerUp3] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 270 MovieClip [_lpowerUp2] Frame 1
stop();
Symbol 270 MovieClip [_lpowerUp2] Frame 2
play();
Symbol 270 MovieClip [_lpowerUp2] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 273 MovieClip [_lpowerUp1] Frame 1
stop();
Symbol 273 MovieClip [_lpowerUp1] Frame 2
play();
Symbol 273 MovieClip [_lpowerUp1] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 276 MovieClip [_lpowerUp0] Frame 1
stop();
Symbol 276 MovieClip [_lpowerUp0] Frame 2
play();
Symbol 276 MovieClip [_lpowerUp0] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 331 MovieClip [_ltank2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 331 MovieClip [_ltank2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = 1;
mo.shotType = new Array(4, 2);
mo.shotDisplY = -29;
mo.shotPower = new Array(mo.level * 10, mo.level * 16);
mo.ramDam = 25 * mo.level;
mo.hp = 45 * mo.level;
mo.armour = 15 * mo.level;
mo.weakness = "missile";
mo.resistant = "fire";
mo.score = 100 * mo.level;
mo.experience = 30 * mo.level;
}
Symbol 331 MovieClip [_ltank2] Frame 2
play();
Symbol 331 MovieClip [_ltank2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 331 MovieClip [_ltank2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 331 MovieClip [_ltank2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 338 MovieClip [_lmortar1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 338 MovieClip [_lmortar1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = 0;
mo.shotType = new Array(2, 2);
mo.shotDisplY = -26;
mo.shotDisplX = -14;
mo.shotPower = new Array(mo.level * 15, mo.level * 15);
mo.ramDam = 5 * mo.level;
mo.hp = 15 * mo.level;
mo.armour = 5 * mo.level;
mo.weakness = "fire";
mo.resistant = "none";
mo.score = 70 * mo.level;
mo.experience = 15 * mo.level;
}
Symbol 338 MovieClip [_lmortar1] Frame 2
play();
Symbol 338 MovieClip [_lmortar1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 338 MovieClip [_lmortar1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 338 MovieClip [_lmortar1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 345 MovieClip [_lrobotTank1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 345 MovieClip [_lrobotTank1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = this._parent._parent._parent.moveSpeed - 1.5;
mo.shotType = new Array(3, 2);
mo.shotWait = 45;
mo.shotDisplY = -46;
mo.shotDisplX = -6;
mo.shotPower = new Array(mo.level * 10, mo.level * 15);
mo.ramDam = 20 * mo.level;
mo.hp = 40 * mo.level;
mo.armour = 15 * mo.level;
mo.weakness = "missile";
mo.resistant = "fire";
mo.score = 80 * mo.level;
mo.experience = 20 * mo.level;
}
Symbol 345 MovieClip [_lrobotTank1] Frame 2
play();
Symbol 345 MovieClip [_lrobotTank1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 345 MovieClip [_lrobotTank1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 345 MovieClip [_lrobotTank1] Frame 14
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 346 MovieClip [_ltank1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 24 MovieClip "hArea" in Symbol 346 MovieClip [_ltank1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.speed = 1;
mo.shotType = new Array(4, 2);
mo.shotDisplY = -29;
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
mo.ramDam = 20 * mo.level;
mo.hp = 40 * mo.level;
mo.armour = 10 * mo.level;
mo.weakness = "missile";
mo.resistant = "fire";
mo.score = 80 * mo.level;
mo.experience = 20 * mo.level;
}
Symbol 346 MovieClip [_ltank1] Frame 2
play();
Symbol 346 MovieClip [_ltank1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 346 MovieClip [_ltank1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 346 MovieClip [_ltank1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 359 MovieClip Frame 18
_root.theScreen.deleteShot(this.myObject);
Symbol 360 MovieClip [_lboss2] Frame 1
stop();
Symbol 360 MovieClip [_lboss2] Frame 2
delete this.onEnterFrame;
this._parent._parent.finishLevel();
play();
Symbol 360 MovieClip [_lboss2] Frame 3
play();
Symbol 360 MovieClip [_lboss2] Frame 21
this._parent._parent.fadeOut();
Symbol 360 MovieClip [_lboss2] Frame 33
stop();
this._parent._parent.deleteEnemy(this.myObject);
Symbol 373 MovieClip [_lboss3] Frame 1
stop();
Symbol 373 MovieClip [_lboss3] Frame 2
play();
Symbol 373 MovieClip [_lboss3] Frame 3
this.myObject.formSeq = 2;
this._parent._parent.finishLevel();
Symbol 373 MovieClip [_lboss3] Frame 27
this._parent._parent.fadeOut();
Symbol 373 MovieClip [_lboss3] Frame 53
stop();
this._parent._parent.deleteEnemy(this.myObject);
Symbol 384 MovieClip [_lboss4] Frame 1
stop();
Symbol 384 MovieClip [_lboss4] Frame 2
stop();
if (this._parent._parent.soundOn) {
this.explode = new sound(this);
this.explode.attachSound("_lrumble");
this.explode.start(0, 500);
}
this.notExploded = true;
this.ySpeed = 1.5;
this._parent._parent.finishLevel();
this.onEnterFrame = function () {
this._y = this._y + this.ySpeed;
this._x = this._x - 1;
if ((this._y >= 400) && (this.notExploded)) {
this.gotoAndPlay("boom");
this.explode.stop();
if (this._parent._parent.soundOn) {
this.explode = new sound(this);
this.explode.attachSound("_llongExplosion");
this.explode.start();
}
this.ySpeed = 0.5;
this.notExploded = false;
this._y = 342;
}
};
Symbol 384 MovieClip [_lboss4] Frame 3
stop();
Symbol 384 MovieClip [_lboss4] Frame 4
play();
Symbol 384 MovieClip [_lboss4] Frame 38
stop();
this._parent._parent.fadeOut();
this.explode.stop();
delete this.explode;
this._parent._parent.deleteEnemy(this.myObject);
Symbol 399 MovieClip [_lboss1] Frame 1
stop();
Symbol 399 MovieClip [_lboss1] Frame 2
stop();
if (this._parent._parent.soundOn) {
this.explode = new sound(this);
this.explode.attachSound("_lrumble");
this.explode.start(0, 500);
}
this.notExploded = true;
this.ySpeed = 1.4;
this._parent._parent.finishLevel();
this.onEnterFrame = function () {
this._y = this._y + this.ySpeed;
this._x = this._x + 0.3;
if ((this._y >= 280) && (this.notExploded)) {
this.gotoAndPlay("boom");
this.explode.stop();
if (this._parent._parent.soundOn) {
this.explode = new sound(this);
this.explode.attachSound("_llongExplosion");
this.explode.start();
}
this.ySpeed = 0.5;
this.notExploded = false;
}
};
Symbol 399 MovieClip [_lboss1] Frame 3
stop();
Symbol 399 MovieClip [_lboss1] Frame 4
play();
Symbol 399 MovieClip [_lboss1] Frame 38
stop();
this._parent._parent.fadeOut();
this.explode.stop();
delete this.explode;
this._parent._parent.deleteEnemy(this.myObject);
Symbol 403 MovieClip [_lboss1Comp1] Frame 1
stop();
Instance of Symbol 402 MovieClip "gun" in Symbol 403 MovieClip [_lboss1Comp1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 200 * mo.boss.level;
mo.armour = 20 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(2, 0);
mo.shotPower = new Array(40 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y;
mo.shotDisplX = this._x - 30;
mo.vital = false;
mo.shotWait = 50;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.pSingleAtPlayer;
mo.mc.onEnterFrame = mo.action;
}
Symbol 403 MovieClip [_lboss1Comp1] Frame 2
play();
Symbol 403 MovieClip [_lboss1Comp1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 403 MovieClip [_lboss1Comp1] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 402 MovieClip "gun" in Symbol 403 MovieClip [_lboss1Comp1] Frame 5
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 50 * mo.boss.level;
mo.armour = 20 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(2, 0);
mo.shotPower = new Array(40 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y;
mo.shotDisplX = this._x;
mo.vital = false;
mo.shotWait = 50;
mo.rotateSpeed = 3;
mo.action = this._parent._parent._parent.rotateAndShoot;
mo.mc.onEnterFrame = mo.action;
}
Symbol 403 MovieClip [_lboss1Comp1] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 407 MovieClip [_lboss1Comp0] Frame 1
stop();
Instance of Symbol 406 MovieClip "gun" in Symbol 407 MovieClip [_lboss1Comp0] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(1, 0);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y;
mo.shotDisplX = this._x;
mo.vital = true;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.passive;
mo.mc.onEnterFrame = mo.action;
}
Symbol 407 MovieClip [_lboss1Comp0] Frame 2
play();
Symbol 407 MovieClip [_lboss1Comp0] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 407 MovieClip [_lboss1Comp0] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 407 MovieClip [_lboss1Comp0] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 411 MovieClip [_lboss1Comp2] Frame 1
stop();
Instance of Symbol 410 MovieClip "gun" in Symbol 411 MovieClip [_lboss1Comp2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 150 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(3, 0);
mo.shotPower = new Array(20 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y;
mo.shotDisplX = this._x - 10;
mo.vital = false;
mo.shotWait = 45;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.pMultipleTightSpread;
mo.mc.onEnterFrame = mo.action;
}
Symbol 411 MovieClip [_lboss1Comp2] Frame 2
play();
Symbol 411 MovieClip [_lboss1Comp2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 411 MovieClip [_lboss1Comp2] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 411 MovieClip [_lboss1Comp2] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 420 MovieClip [_lboss1Comp3] Frame 1
stop();
Instance of Symbol 414 MovieClip "gun" in Symbol 420 MovieClip [_lboss1Comp3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 150 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(10 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y + 3;
mo.shotDisplX = this._x - 50;
mo.vital = false;
mo.shotWait = 50;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.pMultipleBigSpread;
mo.mc.onEnterFrame = mo.action;
}
Symbol 420 MovieClip [_lboss1Comp3] Frame 2
play();
Symbol 420 MovieClip [_lboss1Comp3] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 420 MovieClip [_lboss1Comp3] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 420 MovieClip [_lboss1Comp3] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 430 MovieClip [_lboss3Comp2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 430 MovieClip [_lboss3Comp2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "fire";
mo.shotType = new Array(4, 4);
mo.shotPower = new Array(15 * mo.boss.level, 10 * mo.boss.level);
mo.shotDisplY = -67;
mo.shotDisplX = -44;
mo.vital = false;
mo.shotWait = 40;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.b3TriShot;
mo.mc.onEnterFrame = mo.action;
}
Symbol 430 MovieClip [_lboss3Comp2] Frame 2
play();
Symbol 430 MovieClip [_lboss3Comp2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 430 MovieClip [_lboss3Comp2] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 430 MovieClip [_lboss3Comp2] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 440 MovieClip [_lboss3Comp1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 440 MovieClip [_lboss3Comp1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "fire";
mo.shotType = new Array(5, 5);
mo.shotPower = new Array(20 * mo.boss.level, 10 * mo.boss.level);
mo.shotDisplY = -128;
mo.shotDisplX = -82;
mo.vital = false;
mo.shotWait = 50;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -168;
mo.action = this._parent._parent._parent._parent.likeMortar;
mo.mc.onEnterFrame = mo.action;
}
Symbol 440 MovieClip [_lboss3Comp1] Frame 2
play();
Symbol 440 MovieClip [_lboss3Comp1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 440 MovieClip [_lboss3Comp1] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 440 MovieClip [_lboss3Comp1] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 447 MovieClip Frame 1
stop();
Symbol 457 MovieClip [_lboss3Comp0] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 457 MovieClip [_lboss3Comp0] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 20 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "fire";
mo.shotType = new Array(3, 0);
mo.shotPower = new Array(15 * mo.boss.level, 10 * mo.boss.level);
mo.shotDisplY = -189;
mo.shotDisplX = -67;
mo.shotDisplY2 = this._y - 65;
mo.shotDisplX2 = this._x + 17;
mo.vital = true;
mo.shotWait1 = 50;
mo.shotWait2 = 70;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.b3Head;
mo.mc.onEnterFrame = mo.action;
}
Symbol 457 MovieClip [_lboss3Comp0] Frame 2
play();
Symbol 457 MovieClip [_lboss3Comp0] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 457 MovieClip [_lboss3Comp0] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 457 MovieClip [_lboss3Comp0] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 467 MovieClip [_lboss2Comp3] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 467 MovieClip [_lboss2Comp3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(3, 0);
mo.shotPower = new Array(15 * mo.boss.level, 10 * mo.boss.level);
mo.shotDisplY = this._y - 55;
mo.shotDisplX = this._x - 10;
mo.vital = true;
mo.shotWait = 40;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.pSingleAtPlayer;
mo.mc.onEnterFrame = mo.action;
}
Symbol 467 MovieClip [_lboss2Comp3] Frame 2
play();
Symbol 467 MovieClip [_lboss2Comp3] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 467 MovieClip [_lboss2Comp3] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 467 MovieClip [_lboss2Comp3] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 477 MovieClip [_lboss2Comp2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 477 MovieClip [_lboss2Comp2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(1, 0);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 50;
mo.shotDisplX = this._x - 10;
mo.vital = false;
mo.shotWait = 50;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.b2ClusterChimney;
mo.mc.onEnterFrame = mo.action;
}
Symbol 477 MovieClip [_lboss2Comp2] Frame 2
play();
Symbol 477 MovieClip [_lboss2Comp2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 477 MovieClip [_lboss2Comp2] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 477 MovieClip [_lboss2Comp2] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 487 MovieClip [_lboss2Comp1] Frame 1
stop();
Instance of Symbol 480 MovieClip in Symbol 487 MovieClip [_lboss2Comp1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(4, 2);
mo.shotPower = new Array(15 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 10;
mo.shotDisplX = this._x - 35;
mo.vital = false;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.pMultipleTightSpread;
mo.mc.onEnterFrame = mo.action;
}
Symbol 487 MovieClip [_lboss2Comp1] Frame 2
play();
Symbol 487 MovieClip [_lboss2Comp1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 487 MovieClip [_lboss2Comp1] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 480 MovieClip in Symbol 487 MovieClip [_lboss2Comp1] Frame 5
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(4, 2);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 10;
mo.shotDisplX = this._x - 35;
mo.vital = false;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.action = this._parent._parent._parent._parent.pMultipleTightSpread;
mo.mc.onEnterFrame = mo.action;
}
Symbol 487 MovieClip [_lboss2Comp1] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 497 MovieClip [_lboss4comp3] Frame 1
stop();
Instance of Symbol 490 MovieClip in Symbol 497 MovieClip [_lboss4comp3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(4, 4);
mo.shotPower = new Array(5 * mo.boss.level, 5 * mo.boss.level);
mo.shotDisplX = 10;
mo.shotDisplY = -68;
mo.vital = false;
mo.shotWait = 20;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.pSingleAtPlayer;
mo.mc.onEnterFrame = mo.action;
}
Symbol 497 MovieClip [_lboss4comp3] Frame 3
play();
Symbol 497 MovieClip [_lboss4comp3] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 497 MovieClip [_lboss4comp3] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 497 MovieClip [_lboss4comp3] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 501 MovieClip [_lboss4comp2] Frame 1
stop();
Instance of Symbol 500 MovieClip in Symbol 501 MovieClip [_lboss4comp2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(3, 3);
mo.shotPower = new Array(15 * mo.boss.level, 10 * mo.boss.level);
mo.shotDisplX = -75;
mo.shotDisplY = -47;
mo.vital = false;
mo.shotWait = 32;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.pSingleAtPlayer;
mo.mc.onEnterFrame = mo.action;
}
Symbol 501 MovieClip [_lboss4comp2] Frame 3
play();
Symbol 501 MovieClip [_lboss4comp2] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 501 MovieClip [_lboss4comp2] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 501 MovieClip [_lboss4comp2] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 505 MovieClip [_lboss4comp0] Frame 1
stop();
Instance of Symbol 504 MovieClip in Symbol 505 MovieClip [_lboss4comp0] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(4, 4);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = 28;
mo.shotDisplX = -124;
mo.vital = false;
mo.shotWait = 50;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.pMultipleBigSpread;
mo.mc.onEnterFrame = mo.action;
}
Symbol 505 MovieClip [_lboss4comp0] Frame 3
play();
Symbol 505 MovieClip [_lboss4comp0] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 505 MovieClip [_lboss4comp0] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 505 MovieClip [_lboss4comp0] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
play();
Symbol 516 MovieClip Frame 76
delete this.onEnterFrame;
Symbol 517 MovieClip [_lboss4comp1] Frame 1
stop();
Instance of Symbol 508 MovieClip in Symbol 517 MovieClip [_lboss4comp1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(2, 2);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 17;
mo.shotDisplX = this._x - 17;
mo.vital = false;
mo.shotWait = 180;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.planeEngine;
mo.mc.onEnterFrame = mo.action;
}
Symbol 517 MovieClip [_lboss4comp1] Frame 3
play();
Symbol 517 MovieClip [_lboss4comp1] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 517 MovieClip [_lboss4comp1] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 517 MovieClip [_lboss4comp1] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 521 MovieClip [_lboss2comp0] Frame 1
stop();
Instance of Symbol 520 MovieClip in Symbol 521 MovieClip [_lboss2comp0] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(2, 2);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 17;
mo.shotDisplX = this._x - 17;
mo.vital = false;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.likeMortar;
mo.mc.onEnterFrame = mo.action;
}
Symbol 521 MovieClip [_lboss2comp0] Frame 2
play();
Symbol 521 MovieClip [_lboss2comp0] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 521 MovieClip [_lboss2comp0] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 521 MovieClip [_lboss2comp0] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 527 MovieClip [_lmissile1] Frame 1
stop();
Instance of Symbol 524 MovieClip "hArea" in Symbol 527 MovieClip [_lmissile1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 10 * mo.level;
mo.armour = 5 * mo.level;
mo.weakness = "none";
mo.resistant = "none";
mo.ramDam = 40 * mo.level;
mo.score = 50 * mo.level;
mo.experience = 10 * mo.level;
mo.shotType = new Array(4, 3);
mo.shotPower = new Array(mo.level * 10, mo.level * 8);
}
Symbol 527 MovieClip [_lmissile1] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 527 MovieClip [_lmissile1] Frame 9
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 542 MovieClip [_lsBomb] Frame 12
if (this._parent._parent.soundOn) {
this.explode = new sound(this);
this.explode.attachSound("_llongExplosion");
this.explode.start();
}
Symbol 542 MovieClip [_lsBomb] Frame 13
this._parent._parent.smartBomb();
Symbol 542 MovieClip [_lsBomb] Frame 17
this._parent._parent.smartBomb();
Symbol 542 MovieClip [_lsBomb] Frame 22
this._parent._parent.smartBomb();
Symbol 542 MovieClip [_lsBomb] Frame 28
stop();
this._parent._parent.canSmartBomb = true;
this.removeMovieClip();
Symbol 552 MovieClip [_lboss5] Frame 1
stop();
Symbol 552 MovieClip [_lboss5] Frame 2
play();
trace("beingDestroyed!");
Symbol 552 MovieClip [_lboss5] Frame 3
this.myObject.formSeq = 2;
this._parent._parent.finishLevel();
trace("boom!");
Symbol 552 MovieClip [_lboss5] Frame 27
this._parent._parent.fadeOut();
Symbol 552 MovieClip [_lboss5] Frame 53
stop();
this._parent._parent.deleteEnemy(this.myObject);
Symbol 562 MovieClip [_lboss5Comp1] Frame 1
stop();
Instance of Symbol 555 MovieClip in Symbol 562 MovieClip [_lboss5Comp1] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(3, 4);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = -59;
mo.shotDisplX = -152;
mo.vital = false;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.boss5Eye;
mo.mc.onEnterFrame = mo.action;
}
Symbol 562 MovieClip [_lboss5Comp1] Frame 3
play();
Symbol 562 MovieClip [_lboss5Comp1] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 562 MovieClip [_lboss5Comp1] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 562 MovieClip [_lboss5Comp1] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 572 MovieClip [_lboss5Comp0] Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 572 MovieClip [_lboss5Comp0] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(4, 2);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = 9;
mo.shotDisplX = -52;
mo.vital = false;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.boss5Ear;
mo.mc.onEnterFrame = mo.action;
}
Symbol 572 MovieClip [_lboss5Comp0] Frame 3
play();
Symbol 572 MovieClip [_lboss5Comp0] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 572 MovieClip [_lboss5Comp0] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 572 MovieClip [_lboss5Comp0] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Instance of Symbol 575 MovieClip in Symbol 583 MovieClip [_lboss5Comp3] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 25 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(2, 2);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 17;
mo.shotDisplX = this._x - 17;
mo.vital = false;
mo.shotWait = 110;
mo.shotCount = -100;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.b5Mouth;
mo.mc.onEnterFrame = mo.action;
}
Symbol 583 MovieClip [_lboss5Comp3] Frame 2
stop();
Symbol 583 MovieClip [_lboss5Comp3] Frame 3
play();
Symbol 583 MovieClip [_lboss5Comp3] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 583 MovieClip [_lboss5Comp3] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 583 MovieClip [_lboss5Comp3] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 593 MovieClip [_lboss5Comp2] Frame 1
stop();
Instance of Symbol 586 MovieClip in Symbol 593 MovieClip [_lboss5Comp2] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.hp = 250 * mo.boss.level;
mo.armour = 10 * mo.boss.level;
mo.weakness = "none";
mo.resistant = "none";
mo.shotType = new Array(2, 2);
mo.shotPower = new Array(25 * mo.boss.level, 20 * mo.boss.level);
mo.shotDisplY = this._y - 17;
mo.shotDisplX = this._x - 17;
mo.vital = false;
mo.shotWait = 30;
mo.rotateSpeed = 3;
mo.score = 100 * mo.boss.level;
mo.experience = 50 * mo.boss.level;
mo.sAngle = -135;
mo.action = this._parent._parent._parent._parent.likeMortar;
mo.mc.onEnterFrame = mo.action;
}
Symbol 593 MovieClip [_lboss5Comp2] Frame 3
play();
Symbol 593 MovieClip [_lboss5Comp2] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 593 MovieClip [_lboss5Comp2] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 593 MovieClip [_lboss5Comp2] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 602 MovieClip [_lboss5Hand] Frame 1
stop();
Instance of Symbol 24 MovieClip "hArea" in Symbol 602 MovieClip [_lboss5Hand] Frame 1
onClipEvent (load) {
var mo = this._parent.myObject;
mo.isBoss = true;
mo.hp = 130 * mo.level;
mo.armour = 40 * mo.level;
mo.weakness = "none";
mo.resistant = "fire";
mo.shotDisplX = 61;
mo.shotDisplY = 12;
mo.shotWait = 30;
mo.ramDam = 15 * mo.level;
mo.speed = 8;
mo.score = 200 * mo.level;
mo.experience = 40 * mo.level;
mo.shotType = new Array(3, 2);
mo.shotPower = new Array(mo.level * 8, mo.level * 15);
this._parent.swapDepths(6900);
}
Symbol 602 MovieClip [_lboss5Hand] Frame 3
play();
Symbol 602 MovieClip [_lboss5Hand] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 602 MovieClip [_lboss5Hand] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 602 MovieClip [_lboss5Hand] Frame 16
this._parent._parent.deleteEnemy(this.myobject);
stop();