Frame 1
var MochiAd = {showPreloaderAd:function (options) {
var _local1 = this;
var _local2 = options;
var DEFAULTS = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
var clip = _local2.clip;
var ad_msec = _local2.ad_msec;
delete _local2.ad_msec;
var ad_timeout = _local2.ad_timeout;
delete _local2.ad_timeout;
var fadeout_time = _local2.fadeout_time;
delete _local2.fadeout_time;
if (!MochiAd.load(_local2)) {
return(null);
}
clip.stop();
var mc = clip._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var wh = MochiAd._getRes(_local2);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = _local2.color;
delete _local2.color;
var bar_background = _local2.background;
delete _local2.background;
var bar_outline = _local2.outline;
delete _local2.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local3 = bar.createEmptyMovieClip("_inside", 2);
_local3.beginFill(bar_color);
_local3.moveTo(0, 0);
_local3.lineTo(w - 20, 0);
_local3.lineTo(w - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
return(undefined);
}, showTimedAd:function (options) {
var _local1 = this;
var _local2 = options;
var DEFAULTS = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
var clip = _local2.clip;
var ad_msec = _local2.ad_msec;
delete _local2.ad_msec;
var ad_timeout = _local2.ad_timeout;
delete _local2.ad_timeout;
var fadeout_time = _local2.fadeout_time;
delete _local2.fadeout_time;
if (!MochiAd.load(_local2)) {
return(null);
}
clip.stop();
var mc = clip._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var wh = MochiAd._getRes(_local2);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
return(undefined);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = "1.3";
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(false);
}
if (clip._mochiad_loaded) {
return(false);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
if (clip._url.indexOf("http") != 0) {
_local1.no_page = true;
}
var server = _local2.server;
delete _local2.server;
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}};
MochiAd.showPreloaderAd({id:"e32b3e471968b6fc", res:"522x340"});
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Frame 2
function URLValidate() {
gotoAndPlay ("game");
clearInterval(meInt);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
meInt = setInterval(URLValidate, 2000);
if (_url.substr(0, 4) == "http") {
__com_mochibot__("5e361f40", this, 10301, true);
}
Frame 26
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) {
var _local1 = this;
_local1.UPkey = keyMap[3];
_local1.DOWNkey = keyMap[2];
_local1.LEFTkey = keyMap[1];
_local1.RIGHTkey = keyMap[0];
_local1.SHOOTkey1 = keyMap[4];
_local1.SHOOTkey2 = keyMap[5];
_local1.shotDisplX = 18;
_local1.shotDisplY = 3;
_local1.foregroundNum = 0;
_local1.lives = 2;
_local1.cont = "player";
_local1.continues = 2;
_local1.armour = 30;
_local1.shipWidth = 40;
_local1.shipHeight = 20;
_local1.speed = 10;
_local1.smartBombs = 2;
_local1.maxHp = 1;
_local1.hp = _local1.maxHp;
_local1.armour = 0;
_local1.ramDam = 100;
_local1.shotType = 0;
_local1.weaponLevel = 0;
_local1.gui = _root.gui;
_local1.weaponExperience = 0;
_local1.experienceBarriar = new Array(2, 3, 4, 5, 6, 7);
}
function shotDescObj(power, angle, scale, yDisc) {
var _local1 = this;
_local1.power = power;
_local1.angle = angle;
_local1.scale = scale;
_local1.yDisc = yDisc;
}
function diamondShotObj() {
var _local1 = this;
_local1.coolDown = 8;
_local1.speed = 10;
_local1.clipName = "shot4";
}
function BallShotObj() {
var _local1 = this;
_local1.coolDown = 7;
_local1.speed = 6;
_local1.clipName = "shot5";
}
function greenShotObj() {
var _local1 = this;
_local1.coolDown = 7;
_local1.speed = 13;
_local1.clipName = "shot6";
}
function plasmaObj() {
var _local1 = this;
_local1.coolDown = 5;
_local1.damageType = "plasma";
_local1.speed = 20;
_local1.clipName = "shot2";
_local1.levels = new Array();
_local1.levels[0] = new Array();
_local1.levels[0][0] = new shotDescObj(9, 0, 100, 0);
_local1.levels[1] = new Array();
_local1.levels[1][0] = new shotDescObj(9, 0, 100, -5);
_local1.levels[1][1] = new shotDescObj(9, 0, 100, 5);
_local1.levels[2] = new Array();
_local1.levels[2][0] = new shotDescObj(15, 0, 120, -8);
_local1.levels[2][1] = new shotDescObj(15, 0, 120, 8);
_local1.levels[3] = new Array();
_local1.levels[3][0] = new shotDescObj(15, 0, 120, -12);
_local1.levels[3][1] = new shotDescObj(15, 0, 120, 0);
_local1.levels[3][2] = new shotDescObj(15, 0, 120, 12);
_local1.levels[4] = new Array();
_local1.levels[4][0] = new shotDescObj(15, 0, 100, -16);
_local1.levels[4][1] = new shotDescObj(15, 0, 100, -6);
_local1.levels[4][2] = new shotDescObj(15, 0, 100, 6);
_local1.levels[4][3] = new shotDescObj(15, 0, 100, 16);
_local1.levels[5] = new Array();
_local1.levels[5][0] = new shotDescObj(24, 0, 120, -18);
_local1.levels[5][1] = new shotDescObj(24, 0, 120, -6);
_local1.levels[5][2] = new shotDescObj(24, 0, 120, 6);
_local1.levels[5][3] = new shotDescObj(24, 0, 120, 18);
_local1.levels[6] = new Array();
_local1.levels[6][0] = new shotDescObj(110, 0, 200, 0);
}
function phaserObj() {
var _local1 = this;
_local1.damageType = "phaser";
_local1.coolDown = 6;
_local1.speed = 20;
_local1.clipName = "shot1";
_local1.levels = new Array();
_local1.levels[0] = new Array();
_local1.levels[0][0] = new shotDescObj(10, 0, 100, 0);
_local1.levels[1] = new Array();
_local1.levels[1][0] = new shotDescObj(10, 0, 100, -5);
_local1.levels[1][1] = new shotDescObj(10, 0, 100, 5);
_local1.levels[2] = new Array();
_local1.levels[2][0] = new shotDescObj(10, 0, 100, -5);
_local1.levels[2][1] = new shotDescObj(10, 0, 100, 5);
_local1.levels[2][2] = new shotDescObj(10, 180, 100, 0);
_local1.levels[3] = new Array();
_local1.levels[3][0] = new shotDescObj(10, -25, 100, -10);
_local1.levels[3][1] = new shotDescObj(10, 0, 100, -5);
_local1.levels[3][2] = new shotDescObj(10, 0, 100, 5);
_local1.levels[3][3] = new shotDescObj(10, 25, 100, 10);
_local1.levels[3][4] = new shotDescObj(10, 180, 100, 0);
_local1.levels[4] = new Array();
_local1.levels[4][0] = new shotDescObj(10, -25, 100, -10);
_local1.levels[4][1] = new shotDescObj(15, 0, 100, -5);
_local1.levels[4][2] = new shotDescObj(15, 0, 100, 5);
_local1.levels[4][3] = new shotDescObj(10, 25, 100, 10);
_local1.levels[4][4] = new shotDescObj(15, 180, 100, 0);
_local1.levels[5] = new Array();
_local1.levels[5][0] = new shotDescObj(10, -25, 120, -10);
_local1.levels[5][1] = new shotDescObj(25, 0, 120, -5);
_local1.levels[5][2] = new shotDescObj(25, 0, 120, 5);
_local1.levels[5][3] = new shotDescObj(10, 25, 120, 10);
_local1.levels[5][4] = new shotDescObj(10, 90, 100, 0);
_local1.levels[5][5] = new shotDescObj(10, -90, 100, 0);
_local1.levels[5][6] = new shotDescObj(15, 180, 100, 0);
_local1.levels[6] = new Array();
_local1.levels[6][0] = new shotDescObj(15, -25, 120, -10);
_local1.levels[6][1] = new shotDescObj(35, 0, 130, -5);
_local1.levels[6][2] = new shotDescObj(35, 0, 130, 5);
_local1.levels[6][3] = new shotDescObj(15, 25, 120, 10);
_local1.levels[6][4] = new shotDescObj(15, 90, 120, 0);
_local1.levels[6][5] = new shotDescObj(15, -90, 120, 0);
_local1.levels[6][6] = new shotDescObj(20, 180, 130, 0);
}
function fireObj() {
var _local1 = this;
_local1.damageType = "fire";
_local1.cooldown = 3;
_local1.speed = 10;
_local1.clipName = new Array();
_local1.clipName[0] = "fire0";
_local1.clipName[1] = "fire1";
_local1.clipName[2] = "fire2";
_local1.clipName[3] = "fire3";
_local1.clipName[4] = "fire3";
_local1.clipName[5] = "fire4";
_local1.clipName[6] = "fire4";
_local1.power = new Array();
_local1.power[0] = 1;
_local1.power[1] = 2;
_local1.power[2] = 3;
_local1.power[3] = 4;
_local1.power[4] = 5;
_local1.power[5] = 6;
_local1.power[6] = 7;
}
function lightningObj() {
var _local1 = this;
_local1.damageType = "fire";
_local1.cooldown = 2;
_local1.speed = 30;
_local1.clipName = new Array();
_local1.clipName[0] = "lightning0";
_local1.clipName[1] = "lightning1";
_local1.clipName[2] = "lightning2";
_local1.clipName[3] = "lightning3";
_local1.clipName[4] = "lightning4";
_local1.power = new Array();
_local1.power[0] = 2;
_local1.power[1] = 6;
_local1.power[2] = 8;
_local1.power[3] = 11;
_local1.power[4] = 14;
}
function missileObj() {
var _local1 = this;
_local1.damageType = "missile";
_local1.coolDown = 10;
_local1.speed = 14;
_local1.clipName = "shot3";
_local1.levels = new Array();
_local1.levels[0] = new Array();
_local1.levels[0][0] = new shotDescObj(18, 0, 100, 0);
_local1.levels[1] = new Array();
_local1.levels[1][0] = new shotDescObj(18, 0, 100, -7);
_local1.levels[1][1] = new shotDescObj(18, 0, 100, 7);
_local1.levels[2] = new Array();
_local1.levels[2][0] = new shotDescObj(18, 0, 100, -10);
_local1.levels[2][1] = new shotDescObj(18, 0, 100, 10);
_local1.levels[2][2] = new shotDescObj(18, 0, 100, 0);
_local1.levels[3] = new Array();
_local1.levels[3][0] = new shotDescObj(32, 0, 120, -12);
_local1.levels[3][1] = new shotDescObj(32, 0, 120, 12);
_local1.levels[3][2] = new shotDescObj(32, 0, 120, 0);
_local1.levels[4] = new Array();
_local1.levels[4][0] = new shotDescObj(34, 0, 120, -10);
_local1.levels[4][1] = new shotDescObj(34, 0, 120, 10);
_local1.levels[4][2] = new shotDescObj(18, 25, 100, 15);
_local1.levels[4][3] = new shotDescObj(18, -25, 100, -15);
_local1.levels[5] = new Array();
_local1.levels[5][0] = new shotDescObj(40, 0, 130, -10);
_local1.levels[5][1] = new shotDescObj(40, 0, 130, 10);
_local1.levels[5][2] = new shotDescObj(32, 25, 120, 15);
_local1.levels[5][3] = new shotDescObj(32, -25, 120, -15);
_local1.levels[6] = new Array();
_local1.levels[6][0] = new shotDescObj(90, 0, 180, 0);
_local1.levels[6][2] = new shotDescObj(44, 25, 130, 15);
_local1.levels[6][1] = new shotDescObj(44, -25, 130, -15);
}
function Shot(shotType, x, y, power, angle, whoShot, scale) {
var _local1 = this;
var _local3 = whoShot;
var shotObj = shotBehaviours[shotType];
if (_local3 == "player") {
var _local2 = 0;
while (playerHasShotArray[_local2] == _local3) {
_local2++;
}
playerHasShotArray[_local2] = _local3;
playerShotsArray[_local2] = _local1;
_local1.mc = mc.attachMovie("_l" + shotObj.clipName, "shotP" + _local2, playerShotDepth + _local2);
} else {
var _local2 = 0;
while (comHasShotArray[_local2] == _local3) {
_local2++;
}
comHasShotArray[_local2] = _local3;
comShotsArray[_local2] = _local1;
_local1.mc = mc.attachMovie("_l" + shotObj.clipName, "shot" + _local2, comShotDepth + _local2);
}
_local1.shotType = shotType;
_local1.arrayNum = _local2;
_local1.whoShot = _local3;
_local1.hittable = true;
_local1.mc._xscale = scale;
_local1.mc._yscale = scale;
_local1.mc._rotation = angle;
_local1.mc.myObject = _local1;
_local1.speed = shotObj.speed;
_local1.power = power;
_local1.xSpeed = _local1.speed * Math.cos(angle * PiRads);
_local1.ySpeed = _local1.speed * Math.sin(angle * PiRads);
_local1.mc._x = x + _local1.xSpeed;
_local1.mc._y = y + _local1.ySpeed;
_local1.mc.onEnterFrame = doShotStuff;
}
function Bomb(x, y, whoShot, power) {
var _local2 = this;
var _local3 = whoShot;
var _local1 = 0;
while (playerHasShotArray[_local1] == _local3) {
_local1++;
}
playerHasShotArray[_local1] = _local3;
playerShotsArray[_local1] = _local2;
_local2.mc = mc.attachMovie("_lBomb", "shotP" + _local1, playerShotDepth + _local1);
_local2.shotType = shotType;
_local2.arrayNum = _local1;
_local2.whoShot = _local3;
_local2.hittable = true;
_local2.mc.myObject = _local2;
_local2.power = power;
_local2.xSpeed = 4;
_local2.ySpeed = 2;
_local2.mc._x = x + _local2.xSpeed;
_local2.mc._y = (y + _local2.ySpeed) + 10;
_local2.mc.onEnterFrame = doBombStuff;
}
function FlameShot(shotType, level, ySpeed, x, y, angle, whoShot) {
var _local1 = this;
var _local3 = whoShot;
var shotObj = shotBehaviours[shotType];
if (_local3 == "player") {
var _local2 = 0;
while (playerHasShotArray[_local2] == _local3) {
_local2++;
}
playerHasShotArray[_local2] = _local3;
playerShotsArray[_local2] = _local1;
_local1.mc = mc.attachMovie("_l" + shotObj.clipName[level], "shotP" + _local2, playerShotDepth + _local2);
} else {
var _local2 = 0;
while (comHasShotArray[_local2] == _local3) {
_local2++;
}
comHasShotArray[_local2] = _local3;
comShotsArray[_local2] = _local1;
_local1.mc = mc.attachMovie("_l" + clipName, "shot" + _local2, comShotDepth + _local2);
}
_local1.shotType = shotType;
_local1.arrayNum = _local2;
_local1.whoShot = _local3;
_local1.hittable = true;
_local1.mc._x = x;
_local1.mc._y = y;
_local1.mc._xscale = scale;
_local1.mc._yscale = scale;
_local1.mc._rotation = angle;
_local1.mc.myObject = _local1;
_local1.speed = shotObj.speed;
_local1.power = shotObj.power[level];
_local1.xSpeed = _local1.speed * Math.cos(angle * PiRads);
_local1.ySpeed = (_local1.speed * Math.sin(angle * PiRads)) + ySpeed;
_local1.mc.onEnterFrame = doShotStuff;
}
function PowerUp(x, y, level) {
var _local1 = this;
var _local2 = 0;
while (enemiesConfArray[_local2] == "enemy") {
_local2++;
}
enemiesConfArray[_local2] = "enemy";
enemiesArray[_local2] = _local1;
_local1.arrayNum = _local2;
var _local3 = Math.random();
if (_local3 < 0.04) {
_local1.powerType = 0;
} else if (_local3 < 0.27) {
_local1.powerType = 1;
} else if (_local3 < 0.37) {
_local1.powerType = 3;
} else {
_local1.powerType = 2;
}
_local1.mc = mc.attachMovie("_lpowerUp" + _local1.powerType, "enemy" + _local2, powerUpDepth + _local2);
if (_local1.powerType == 2) {
_local1.pt = Math.ceil(Math.random() * 4);
_local1.mc.mc.gotoAndStop(_local1.pt);
}
_local1.mc.myObject = _local1;
_local1.mc._x = x;
_local1.mc._y = y;
_local1.powerUp = true;
_local1.hittable = true;
_local1.level = level;
_local1.hp = 1000000000 /* 0x3B9ACA00 */;
_local1.mc.speed = moveSpeed;
_local1.mc.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - _local1.speed;
_local1._y = _local1._y + _local1.ySpeed;
_local1.ySpeed = _local1.ySpeed + ((170 - _local1._y) / 1000);
if (_local1._x < -20) {
deleteEnemy(_local1.myObject);
}
if ((_local1.myObject.powerType == 2) && ((_local1.changeCount++) > 70)) {
_local1.changeCount = 0;
_local1.myObject.pt = Math.ceil(Math.random() * 4);
_local1.mc.gotoAndStop(_local1.myObject.pt);
}
};
}
function Enemy() {
}
function FlyingEnemy() {
}
function GroupFlyer(attackGroup, num, clipName) {
var _local1 = this;
var _local2 = attackGroup;
_local1.clipName = clipName;
_local1.attackGroup = _local2;
_local1.groupNum = num;
_local1.high = _local2.high;
_local1.action = _local2.formation;
_local1.level = _local2.level;
}
function SingleFlyer(clipName, level, action, powerUp, high) {
var _local1 = this;
_local1.clipName = clipName;
_local1.high = high;
_local1.level = level;
_local1.action = action;
_local1.givePowerUp = powerUp;
}
function ClusterBomb(num, level, x, y, action, xSpeed, ySpeed) {
var _local2 = this;
_local2.level = level;
_local2.action = action;
var _local1 = 0;
while (enemiesConfArray[_local1] == "enemy") {
_local1++;
}
enemiesConfArray[_local1] = "enemy";
enemiesArray[_local1] = _local2;
_local2.arrayNum = _local1;
_local2.hittable = true;
_local2.mc = mc.attachMovie("_lclusterBomb" + num, "enemy" + _local1, 2950 + _local1);
_local2.mc.myObject = _local2;
_local2.mc.xSpeed = xSpeed;
_local2.mc.ySpeed = ySpeed;
_local2.mc._x = x;
_local2.mc._y = y;
_local2.mc.onEnterFrame = action;
}
function missile(num, level, x, y, action, xSpeed, ySpeed) {
var _local2 = this;
_local2.level = level;
_local2.action = action;
var _local1 = 0;
while (enemiesConfArray[_local1] == "enemy") {
_local1++;
}
enemiesConfArray[_local1] = "enemy";
enemiesArray[_local1] = _local2;
_local2.arrayNum = _local1;
_local2.hittable = true;
_local2.mc = mc.attachMovie("_lmissile" + num, "enemy" + _local1, 2950 + _local1);
_local2.mc.myObject = _local2;
_local2.formSeq = -1;
_local2.mc.xSpeed = xSpeed;
_local2.mc.ySpeed = ySpeed;
_local2.mc._x = x;
_local2.mc._y = y;
_local2.mc.onEnterFrame = action;
}
function EnemyGroup() {
}
function EGroup(high, level, numMinions, formation, powerUp, myNum, delay, buildAction) {
var _local1 = this;
_local1.high = high;
_local1.level = level;
_local1.numMinions = numMinions;
_local1.formation = formation;
_local1.buildAction = buildAction;
_local1.givePowerUp = powerUp;
_local1.myNum = myNum;
_local1.delay = delay;
}
function GroundEnemy(level, clipName, powerUp, action, high) {
var _local1 = this;
_local1.level = level;
_local1.clipName = clipName;
_local1.givePowerUp = powerUp;
_local1.action = action;
var _local2 = 0;
while (enemiesConfArray[_local2] == "enemy") {
_local2++;
}
enemiesConfArray[_local2] = "enemy";
enemiesArray[_local2] = _local1;
_local1.mc = mc.attachMovie("_l" + _local1.clipName, "enemy" + _local2, enemyDepth + _local2);
_local1.mc.myObject = _local1;
if (high) {
_local1.x = (_local1.mc._x = screenWidth + _local1.mc._width);
} else {
_local1.x = (_local1.mc._x = -_local1.mc._width);
}
_local1.mc._y = (_local1.y = screenHeight);
_local1.arrayNum = _local2;
_local1.hittable = true;
_local1.shotCount = 0;
_local1.mc.onEnterFrame = _local1.action;
}
function BossEnemy(clipNum, numComp, level, action) {
var _local1 = this;
var _local2 = level;
_local1.clipNum = clipNum;
_local1.numComp = numComp;
_local1.level = _local2;
_local1.action = action;
_local1.formSeq = -1;
_local1.experience = 300 * _local2;
_local1.score = 500 * _local2;
}
function BossComponent(boss, num) {
var _local2 = this;
var _local3 = boss;
_local2.boss = _local3;
_local2.num = num;
var _local1 = 0;
while (enemiesConfArray[_local1] == "enemy") {
_local1++;
}
enemiesConfArray[_local1] = "enemy";
enemiesArray[_local1] = _local2;
_local2.mc = _local3.mc.attachMovie((("_lboss" + _local3.clipNum) + "Comp") + num, "enemy" + _local1, _local1);
_local2.mc.myObject = _local2;
_local2.hittable = true;
_local2.ArrayNum = _local1;
_local2.x = _local3.mc._x;
_local2.y = _local3.mc._y;
_local2.isBoss = true;
}
function Foreground(clipName, reversable, speed) {
var _local1 = this;
var _local2 = 0;
while (sceneryArray[_local2].ident == "scenery") {
_local2++;
}
_local1.mc = mc.attachMovie("_l" + clipName, clipName + _local2, foregroundDepth + _local2);
_local1.mc._y = screenHeight;
_local1.mc.speed = speed;
_local1.mc._x = _local1.mc._width + screenWidth;
_local1.mc.myObject = _local1;
_local1.num = _local2;
sceneryArray[_local2] = _local1;
_local1.ident = "scenery";
if (reversable) {
if (Math.random() > 0.5) {
_local1.mc._xscale = -100;
}
}
_local1.mc.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - _local1.speed;
if (_local1._x < (-_local1._width)) {
delete sceneryArray[_local1.myObject.num];
delete _local1.myObject;
removeMovieClip(_local1);
}
};
}
function BackgroundA(clipName) {
var _local2 = this;
var _local1 = 0;
while (sceneryArray[_local1].ident == "scenery") {
_local1++;
}
_local2.mc = mc.attachMovie("_l" + clipName, clipName + _local1, backGroundDepth + _local1);
_local2.num = _local1;
sceneryArray[_local1] = _local2;
_local2.ident = "scenery";
if (gameLevel < 5) {
_local2.mc.onEnterFrame = function () {
if (((count % 65) == 3) && (count < 2100)) {
this._x = this._x - 1;
}
};
} else {
_local2.mc.onEnterFrame = function () {
if (((count % 15) == 2) && (count < 2800)) {
this._x = this._x - 0.5;
}
};
}
}
function BackgroundB(clipName, side, speed) {
var _local2 = this;
var _local1 = 0;
while (sceneryArray[_local1].ident == "scenery") {
_local1++;
}
_local2.mc = mc.attachMovie("_l" + clipName, clipName + _local1, backGroundDepth + _local1);
_local2.num = _local1;
_local2.mc.speed = speed;
if (side == "right") {
_local2.mc._x = _local2.mc._width;
}
sceneryArray[_local1] = _local2;
_local2.ident = "scenery";
_local2.mc.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - _local1.speed;
if (_local1._x <= (-_local1._width)) {
_local1._x = _local1._width - _local1.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 () {
var _local1 = this;
if ((count - _local1.c) > _local1.frequency) {
_local1.c = count;
var scene = new ForeGround(_local1.clipType + Math.ceil(Math.random() * 3), true, _local1.speed);
}
};
var _local3 = (screenWidth / speed) / frequency;
var startSpace = (screenWidth / _local3);
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = new ForeGround(sceneryMaker.clipType + Math.ceil(Math.random() * 3), true, speed);
_local2.mc._x = startSpace * _local1;
_local1++;
}
}
function makeEGroup(high, level, numMinions, formation, powerUp, myNum, delay, buildAction) {
var _local1 = new EGroup(high, level, numMinions, formation, powerUp, myNum, delay, buildAction);
_local1.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 _local1 = new SingleFlyer(clipName, level, action, powerUp, high);
_local1.init();
}
function makeBoss(clipNum, numComp, level, action, notUsed, high, delay, buildAction) {
var _local1 = new BossEnemy(clipNum, numComp, level, action);
_local1.init();
}
function setWayPoint(clipNum, numComp, level, action, notUsed, high, delay, buildAction) {
trace("wayPointSet");
startPoint = count;
}
function makeHoppers() {
var _local1 = this.myObject;
if (((_local1.count++) % _local1.delay) == 0) {
if (_local1.minionsBuilt < _local1.numMinions) {
var _local3 = "hopper" + Math.ceil(Math.random() * 3);
var _local2 = new GroupFlyer(_local1, _local1.minionsBuilt, _local3);
_local2.init();
_local1.minionsBuilt++;
} else {
removeMovieClip(this);
}
}
}
function makefJars() {
var _local1 = this.myObject;
if (((_local1.count++) % _local1.delay) == 0) {
if (_local1.minionsBuilt < _local1.numMinions) {
var _local3 = "flyingJar" + Math.ceil(Math.random() * 3);
var _local2 = new GroupFlyer(_local1, _local1.minionsBuilt, _local3);
_local2.init();
_local1.minionsBuilt++;
} else {
removeMovieClip(this);
}
}
}
function makePlanes() {
var _local1 = this.myObject;
if (_local1.count > _local1.delay) {
_local1.count = 0;
if (_local1.minionsBuilt < _local1.numMinions) {
if (!_local1.givePowerUp) {
var _local3 = "plane1";
} else {
var _local3 = "plane2";
}
var _local2 = new GroupFlyer(_local1, _local1.minionsBuilt, _local3);
_local2.init();
_local1.minionsBuilt++;
} else {
removeMovieClip(this);
}
} else {
_local1.count++;
}
}
function makeRockets() {
var _local1 = this.myObject;
var _local3 = "rocket1";
if (_local1.count > _local1.delay) {
_local1.count = 0;
if (_local1.minionsBuilt < _local1.numMinions) {
var _local2 = new GroupFlyer(_local1, _local1.minionsBuilt, _local3);
_local2.init();
_local2.ramDam = 20 * _local1.level;
_local2.score = 60 * _local1.level;
_local2.experience = 5 * _local1.level;
_local1.minionsBuilt++;
} else {
removeMovieClip(this);
}
} else {
_local1.count++;
}
}
function makeRocks() {
var _local1 = this.myObject;
var _local2 = "rock" + Math.ceil(Math.random() * 2);
if (_local1.count > _local1.delay) {
_local1.count = 0;
if (_local1.minionsBuilt < _local1.numMinions) {
var _local3 = new GroupFlyer(_local1, _local1.minionsBuilt, _local2);
_local3.init();
_local1.minionsBuilt++;
} else {
removeMovieClip(this);
}
} else {
_local1.count++;
}
}
function driftIn() {
var _local3 = this;
var _local1 = _local3.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
if (_local1.high) {
_local3._x = (_local1.x = 400);
} else {
_local3._x = (_local1.x = 200);
}
_local3._y = (_local1.y = -30);
_local1.xSpeed = 0.5;
_local1.ySpeed = 5.2;
} else if (_local1.formSeq == 0) {
if ((_local3.myObject.shotCount++) > 30) {
_local1.doShot("atPlayer", 0);
_local3.myObject.shotCount = 0;
}
if (_local1.ySpeed > 0) {
_local3._x = _local3._x + _local1.xSpeed;
_local3._y = _local3._y + _local1.ySpeed;
_local1.x = _local3._x;
_local1.y = _local3._y;
_local1.ySpeed = _local1.ySpeed - 0.05;
_local1.xSpeed = _local1.xSpeed + 0.02;
} else {
_local1.formSeq = 1;
_local1.ySpeed = 0;
_local1.xSpeed = 3;
var _local2 = 150;
while (_local2 <= 210) {
_local1.doShot(_local2, 1);
_local2 = _local2 + 15;
}
}
} else {
if (_local3._x > (screenWidth + 70)) {
deleteEnemy(_local1);
} else {
_local1.ySpeed = _local1.ySpeed - 0.001;
_local3._x = _local3._x + _local1.xSpeed;
_local1.x = _local3._x;
_local3._y = _local3._y + _local1.ySpeed;
_local1.y = _local3._y;
}
if ((_local3.myObject.shotCount++) > 40) {
var _local2 = 150;
while (_local2 <= 210) {
_local1.doShot(_local2, 1);
_local2 = _local2 + 15;
}
_local3.myObject.shotCount = 0;
}
}
}
}
function snake() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
if (_local2.formSeq == -1) {
_local1.shotWait = int(30 + (Math.random() * 10));
_local1.ySpeed = 0;
_local1._x = (_local2.x = screenWidth + _local1._width);
if (_local2.high) {
_local1._y = (_local2.y = 50);
_local2.formSeq = 0;
} else {
_local1._y = (_local2.y = 300);
_local2.formSeq = 2;
}
} else if (_local2.formSeq == 0) {
_local1.ySpeed = _local1.ySpeed + 0.3;
_local1._x = _local1._x - 6;
_local2.x = _local1._x;
_local1._y = _local1._y + _local1.ySpeed;
_local2.y = _local1._y;
if (_local1._y > 170) {
_local2.formSeq = 1;
}
} else if (_local2.formSeq == 1) {
_local1.ySpeed = _local1.ySpeed - 0.3;
_local1._x = _local1._x - 6;
_local2.x = _local1._x;
_local1._y = _local1._y + _local1.ySpeed;
_local2.y = _local1._y;
if (_local1.ySpeed <= 0) {
_local2.formSeq = 2;
_local2.doShot("atPlayer", 0);
}
} else if (_local2.formSeq == 2) {
_local1.ySpeed = _local1.ySpeed - 0.3;
_local1._x = _local1._x - 6;
_local2.x = _local1._x;
_local1._y = _local1._y + _local1.ySpeed;
_local2.y = _local1._y;
if (_local1._y < 170) {
_local2.formSeq = 3;
}
} else {
_local1.ySpeed = _local1.ySpeed + 0.3;
_local1._x = _local1._x - 6;
_local2.x = _local1._x;
_local1._y = _local1._y + _local1.ySpeed;
_local2.y = _local1._y;
if (_local1.ySpeed >= 0) {
_local2.formSeq = 0;
_local2.doShot("atPlayer", 0);
}
}
if (_local1._x < (-_local1._width)) {
deleteEnemy(_local2);
}
}
}
function flyBackAndForth() {
var _local3 = this;
var _local1 = _local3.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local3.shotWait = int(40 + (Math.random() * 10));
_local3._xscale = -100;
_local1.formSeq = 0;
_local3._x = (_local1.x = -_local3._width);
if (_local1.high) {
_local3._y = (_local1.y = 50);
_local1.ySpeed = 1.4;
} else {
_local3._y = (_local1.y = 300);
_local1.ySpeed = -1.4;
}
_local3.xspeed = 130;
} else if (_local1.formSeq == 0) {
_local3._x = _local3._x + (((_local3.xspeed = _local3.xspeed - 0.9)) / 10);
_local3._y = _local3._y + _local1.ySpeed;
_local1.x = _local3._x;
_local1.y = _local3._y;
if ((_local1.shotCount++) > _local3.shotWait) {
_local1.shotCount = 0;
_local1.doShot("atPlayer", 0);
}
if (_local3._x > ((screenWidth + _local3._width) + 20)) {
_local1.formSeq = 1;
_local3._xscale = 100;
}
} else {
_local3._x = _local3._x - 15;
_local3._y = _local3._y + _local1.ySpeed;
_local1.x = _local3._x;
_local1.y = _local3._y;
if ((_local1.shotCount++) > _local3.shotWait) {
_local1.shotCount = 0;
var _local2 = 150;
while (_local2 < 240) {
_local1.doShot(_local2, 1);
_local2 = _local2 + 30;
}
}
if (_local3._x < ((-_local3._width) - 20)) {
deleteEnemy(_local1);
}
}
}
}
function loopBack() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._x = (_local1.x = -20);
_local1.xSpeed = 15;
if (_local1.high) {
_local2._y = (_local1.y = 50);
_local1.ySpeed = 3;
} else {
_local2._y = (_local1.y = 300);
_local1.ySpeed = -3;
}
} else if (_local1.formSeq == 0) {
if (_local1.xSpeed > 0) {
_local2._x = _local2._x + _local1.xSpeed;
_local2._y = _local2._y + _local1.ySpeed;
_local1.x = _local2._x;
_local1.y = _local2._y;
_local1.xSpeed = _local1.xSpeed - 0.2;
} else {
_local1.formSeq = 1;
_local1.xSpeed = 0;
_local1.doShot("atPlayer", 0);
}
} else if (_local2._x < -70) {
deleteEnemy(_local1);
} else {
_local1.xSpeed = _local1.xSpeed - 0.2;
_local2._x = _local2._x + _local1.xSpeed;
_local1.x = _local2._x;
}
}
}
function ambushFromTop() {
var _local3 = this;
var _local1 = _local3.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local3._y = (_local1.y = (-_local3._height) / 2);
_local3._x = (_local1.x = 450);
if (_local1.high) {
_local1.ySpeed = 7;
} else {
_local1.ySpeed = 11;
}
} else if (_local1.formSeq == 0) {
_local3._y = _local3._y + _local1.ySpeed;
_local1.y = _local3._y;
if (((_local1.ySpeed = _local1.ySpeed - 0.2)) < 0) {
_local1.ySpeed = 0;
_local1.formSeq = 1;
var _local2 = 120;
while (_local2 < 270) {
_local1.doShot(_local2, 0);
_local2 = _local2 + 30;
}
}
} else if (_local3._x > (screenWidth + 70)) {
deleteEnemy(_local1);
} else {
_local3._x = _local3._x + 1;
_local1.x = _local3._x;
if ((_local3.myObject.shotCount++) > 40) {
_local3.myObject.shotCount = 0;
var _local2 = 120;
while (_local2 < 270) {
_local1.doShot(_local2, 0);
_local2 = _local2 + 30;
}
}
}
}
}
function ambushFromBottom() {
var _local3 = this;
var _local1 = _local3.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local3._y = (_local1.y = (screenHeight + (_local3._height / 2)) + 10);
_local3._x = (_local1.x = 450);
if (_local1.high) {
_local1.ySpeed = -7;
} else {
_local1.ySpeed = -11;
}
} else if (_local1.formSeq == 0) {
_local3._y = _local3._y + _local1.ySpeed;
_local1.y = _local3._y;
if (((_local1.ySpeed = _local1.ySpeed + 0.2)) > 0) {
_local1.ySpeed = 0;
_local1.formSeq = 1;
var _local2 = 120;
while (_local2 < 270) {
_local1.doShot(_local2, 0);
_local2 = _local2 + 30;
}
}
} else if (_local3._x > (screenWidth + 70)) {
deleteEnemy(_local1);
} else {
_local3._x = _local3._x + 1;
_local1.x = _local3._x;
if ((_local3.myObject.shotCount++) > 40) {
_local3.myObject.shotCount = 0;
var _local2 = 120;
while (_local2 < 270) {
_local1.doShot(_local2, 0);
_local2 = _local2 + 30;
}
}
}
}
}
function curveBack() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local2.shotWait = int(40 + (Math.random() * 10));
_local1.formSeq = 0;
_local2._x = (_local1.x = 640);
if (_local1.high) {
_local2._y = (_local1.y = -30);
_local1.ySpeed = 17;
} else {
_local2._y = (_local1.y = screenHeight + 30);
_local1.ySpeed = -17;
}
} else {
if (_local2._x < -70) {
deleteEnemy(_local1);
} else {
_local2._x = _local2._x - 7;
_local1.x = _local2._x;
_local2._y = _local2._y + _local1.ySpeed;
_local1.y = _local2._y;
if ((_local1.shotCount++) > _local2.shotWait) {
_local1.shotCount = 0;
_local1.doShot("atPlayer", 0);
}
}
_local1.ySpeed = _local1.ySpeed * 0.95;
}
}
}
function speedSlow() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
if (_local2.formSeq == -1) {
var _local3 = screenHeight / (_local2.attackGroup.numMinions + 1);
_local2.formSeq = 0;
_local1._x = (_local2.x = screenWidth + 20);
_local1._y = (_local2.y = _local3 + (_local3 * _local2.groupNum));
_local1.xSpeed = -7;
} else if (_local2.formSeq == 0) {
if (_local1.xSpeed > 0) {
_local1.xSpeed = 0;
_local2.formSeq = 1;
_local2.doShot("atPlayer", 0);
}
_local1._x = _local1._x + _local1.xSpeed;
_local2.x = _local1._x;
_local1.xSpeed = _local1.xSpeed + 0.2;
} else {
if (_local1.xSpeed < -5) {
_local1.xSpeed = -5;
_local2.formSeq = 0;
}
_local1._x = _local1._x + _local1.xSpeed;
_local2.x = _local1._x;
_local1.xSpeed = _local1.xSpeed - 0.2;
}
if (_local1._x < -30) {
deleteEnemy(_local2);
}
}
}
function flyAcross() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._x = (_local1.x = screenWidth + 20);
_local2._y = (_local1.y = 25 + (Math.random() * 350));
_local1.xSpeed = 18;
_local1.ySpeed = (200 - _local2._y) / (((screenWidth + 20) + 50) / _local1.xSpeed);
} else if (_local2._x < -70) {
deleteEnemy(_local1);
} else {
_local2._x = _local2._x - _local1.xSpeed;
_local1.x = _local2._x;
_local2._y = _local2._y + _local1.ySpeed;
_local1.y = _local2._y;
}
}
}
function flyAcrossAndShoot() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._x = (_local1.x = screenWidth + 20);
_local2._y = (_local1.y = 25 + (Math.random() * 350));
_local1.xSpeed = 16;
_local1.ySpeed = (200 - _local2._y) / (((screenWidth + 20) + 50) / _local1.xSpeed);
} else if (_local2._x < -70) {
deleteEnemy(_local1);
} else {
if (Math.random() < 0.02) {
_local1.doShot("atPlayer", 0);
}
_local2._x = _local2._x - _local1.xSpeed;
_local1.x = _local2._x;
_local2._y = _local2._y + _local1.ySpeed;
_local1.y = _local2._y;
}
}
}
function Zform() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._x = (_local1.x = screenWidth + 20);
if (_local1.high) {
_local2._y = (_local1.y = 50);
} else {
_local2._y = (_local1.y = 300);
}
} else if (_local1.formSeq == 0) {
if (_local2._x < 130) {
_local1.formSeq = 1;
_local1.doShot("atPlayer", 0);
} else {
_local2._x = _local2._x - _local1.speed;
_local1.x = _local2._x;
}
} else if (_local1.formSeq == 1) {
if (_local2._x > 500) {
_local1.formSeq = 2;
_local1.doShot("atPlayer", 0);
} else {
_local2._x = _local2._x + (_local1.speed / 1.2);
_local1.x = _local2._x;
if (_local1.high) {
_local2._y = _local2._y + (_local1.speed / 2);
} else {
_local2._y = _local2._y - (_local1.speed / 2);
}
_local1.y = _local2._y;
}
} else if (_local1.formSeq == 2) {
if (_local2._x < -70) {
deleteEnemy(_local1);
} else {
_local2._x = _local2._x - _local1.speed;
_local1.x = _local2._x;
}
}
}
}
function boatAction() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = 0;
_local1.doShot("atPlayer", 0);
}
if (_local2.up) {
if ((_local2.count++) < 5) {
_local2._y = _local2._y - 0.5;
_local1.y = _local2._y;
} else {
_local2.count = 0;
_local2.up = false;
}
} else if ((_local2.count++) < 5) {
_local2._y = _local2._y + 0.5;
_local1.y = _local2._y;
} else {
_local2.count = 0;
_local2.up = true;
}
if ((_local2._x < -60) && (_local1.speed < moveSpeed)) {
deleteEnemy(_local1);
} else if ((_local2._x > (screenWidth + 60)) && (_local1.speed > moveSpeed)) {
deleteEnemy(_local1);
} else {
_local2._x = (_local1.x = _local1.x - (moveSpeed - _local1.speed));
}
}
}
function genAction() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = 0;
_local1.doShot("atPlayer", 0);
}
if ((_local2._x < -60) && (_local1.speed < moveSpeed)) {
deleteEnemy(_local1);
} else if ((_local2._x > (screenWidth + 60)) && (_local1.speed > moveSpeed)) {
deleteEnemy(_local1);
} else {
_local2._x = (_local1.x = _local1.x - (moveSpeed - _local1.speed));
}
}
}
function tankAction() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
var _local3 = _local2.getAngle(_local1._parent._parent.player);
if ((_local1._y + _local2.shotDisplY) > _local1._parent._parent.player.y) {
if ((_local3 < _local1.gun._rotation) && (_local1.gun._rotation > -176)) {
_local1.gun._rotation = _local1.gun._rotation - 3;
} else if ((_local3 > _local1.gun._rotation) && (_local1.gun._rotation < -4)) {
_local1.gun._rotation = _local1.gun._rotation + 3;
}
}
if ((_local2.shotCount++) > 50) {
_local2.shotCount = 0;
_local2.doShot(_local1.gun._rotation, 0);
}
if (_local1._x < -30) {
deleteEnemy(_local2);
} else {
_local1._x = (_local2.x = _local2.x - (moveSpeed - _local2.speed));
}
}
}
function mortarAction() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if ((_local1.shotCount++) > 30) {
_local1.shotCount = 0;
_local1.doShot(-135, 0);
_local2.mc.play();
}
if (_local2._x < -30) {
deleteEnemy(_local1);
} else {
_local2._x = (_local1.x = _local1.x - (moveSpeed - _local1.speed));
}
}
}
function mineLayerAction() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._y = (_local1.y = 50);
_local2._x = (_local1.x = screenWidth + 40);
} else if (_local1.formSeq == 0) {
if (_local2._x < -50) {
deleteEnemy(_local1);
} else {
_local2._x = _local2._x - 3;
_local1.x = _local2._x;
}
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = (-(Math.random() * 30)) + 10;
var cl = new ClusterBomb(1, _local1.level, _local1.x + _local1.shotDisplX, _local1.y + _local1.shotDisplY, justGravity2, 0, 1);
}
}
}
}
function slouchAcross() {
var _local3 = this;
var _local2 = _local3.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
if (_local2.formSeq == -1) {
_local2.formSeq = 0;
_local3._x = (_local2.x = screenWidth + 40);
if (_local2.high) {
_local3._y = (_local2.y = 50 + (Math.random() * 120));
} else {
_local3._y = (_local2.y = 200 + (Math.random() * 120));
}
_local3.xSpeed = -2;
} else if (_local2.formSeq == 0) {
if ((_local2.shotCount++) > 45) {
if (Math.random() > 0.4) {
_local2.shotCount = (-(Math.random() * 45)) + 10;
_local2.doShot("atPlayer", 0);
} else {
var _local1 = 120;
while (_local1 < 270) {
_local2.doShot(_local1, 1);
_local1 = _local1 + 30;
}
_local2.shotCount = (-(Math.random() * 45)) + 10;
}
}
_local3._x = _local3._x + _local3.xSpeed;
_local2.x = _local3._x;
}
if (_local3._x < -30) {
deleteEnemy(_local2);
}
}
}
function justGravity() {
var _local2 = this;
if (_local2.myObject.hittable) {
_local2.myObject.checkForBeingHit();
_local2._x = _local2._x + _local2.xSpeed;
_local2._y = _local2._y + _local2.ySpeed;
_local2.ySpeed = _local2.ySpeed + 0.3;
if ((_local2.ySpeed > 0) && (Math.random() > 0.95)) {
_local2.myObject.x = _local2._x;
_local2.myObject.y = _local2._y;
_local2.gotoAndPlay("beingDestroyed");
var _local1 = 0;
while (_local1 <= 360) {
_local2.myObject.doShot(_local1, 0);
_local1 = _local1 + 45;
}
delete _local2.onEnterFrame;
}
}
}
function justGravity2() {
var _local2 = this;
if (_local2.myObject.hittable) {
_local2.myObject.checkForBeingHit();
_local2._x = _local2._x + _local2.xSpeed;
_local2._y = _local2._y + _local2.ySpeed;
_local2.ySpeed = _local2.ySpeed + 0.3;
if ((_local2._y > 150) && (Math.random() > 0.85)) {
_local2.myObject.x = _local2._x;
_local2.myObject.y = _local2._y;
_local2.gotoAndPlay("beingDestroyed");
var _local1 = 0;
while (_local1 <= 360) {
_local2.myObject.doShot(_local1, 0);
_local1 = _local1 + 45;
}
delete _local2.onEnterFrame;
}
}
}
function upAndDown() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.hittable) {
_local1.myObj.checkForBeingHit();
if (_local2.formSeq == -1) {
_local1._y = _local1._y + _local1.ySpeed;
_local1._x = _local1._x + _local1.xSpeed;
if (_local1._y < -40) {
_local1._yscale = _local1._yscale * -1;
_local2.formSeq = 0;
_local1._x = player.x;
}
} else if (_local2.formSeq == 0) {
_local1._y = _local1._y - _local1.ySpeed;
_local1._x = _local1._x + _local1.xSpeed;
if (_local1._y >= screenHeight) {
_local1.gotoAndPlay("beingDestroyed");
delete _local1.onEnterFrame;
}
}
}
}
function boss5Fly() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._x = (_local1.x = 520);
_local2._y = (_local1.y = 256);
_local2.xSpeed = -2;
} else if (_local1.formSeq == 0) {
if ((_local1.shotCount++) > 45) {
_local1.shotCount = (-(Math.random() * 45)) + 10;
_local1.doShot("atPlayer", 0);
}
_local2._x = _local2._x + _local2.xSpeed;
_local1.x = _local2._x;
}
if (_local2._x < -30) {
deleteEnemy(_local1);
}
}
}
function BflyFromTop() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.formSeq == -1) {
_local2.formSeq = 0;
_local1._x = (_local2.x = screenWidth + (_local1._width / 2));
_local1._y = (_local2.y = (-_local1._height) / 2);
} else if (_local2.formSeq == 0) {
if (_local1._x < 450) {
_local2.formSeq = 1;
_local1.down = true;
_local1.ySpeed = 1.5;
} else {
_local1._x = _local1._x - 2;
_local2.x = _local1._x;
_local1._y = _local1._y + 1.5;
_local2.y = _local1._y;
}
} else {
if (_local1.down) {
_local1.ySpeed = _local1.ySpeed - 0.1;
if (_local1.ySpeed < -2.6) {
_local1.down = false;
}
} else {
_local1.ySpeed = _local1.ySpeed + 0.1;
if (_local1.ySpeed > 2.6) {
_local1.down = true;
}
}
_local1._y = _local1._y + _local1.ySpeed;
_local2.y = _local1._y;
}
}
function submarineAction() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.formSeq == -1) {
_local2.formSeq = 0;
_local1._x = (_local2.x = screenWidth + (_local1._width / 2));
_local1._y = (_local2.y = screenHeight + _local1._height);
_local1.up = true;
} else if (_local2.formSeq == 0) {
if (_local1._x > 465) {
_local1._x = _local1._x - 1;
_local2.x = _local1._x;
} else if (_local1.left) {
if ((_local1.countX++) < 25) {
_local1._x = _local1._x - 0.5;
_local2.x = _local1._x;
} else {
_local1.countX = 0;
_local1.left = false;
}
} else if ((_local1.countX++) < 25) {
_local1._x = _local1._x + 0.5;
_local2.x = _local1._x;
} else {
_local1.countX = 0;
_local1.left = true;
}
if (_local1._y > screenHeight) {
_local1._y = _local1._y - 0.5;
_local2.y = _local1._y;
} else if (_local1.up) {
if ((_local1.count++) < 25) {
if ((_local1.count % 5) == 1) {
_local1._y = _local1._y - 0.5;
_local2.y = _local1._y;
}
} else {
_local1.count = 0;
_local1.up = false;
}
} else if ((_local1.count++) < 25) {
if ((_local1.count % 5) == 1) {
_local1._y = _local1._y + 0.5;
_local2.y = _local1._y;
}
} else {
_local1.count = 0;
_local1.up = true;
}
}
}
function moveLeftAndRight() {
var _local2 = this;
var _local3 = _local2.myObject;
if (_local3.formSeq == -1) {
_local3.formSeq = 0;
_local2._x = (_local3.x = screenWidth + (_local2._width / 2));
_local2._y = (_local3.y = screenHeight);
} else if (_local3.formSeq == 0) {
_local2._x = _local2._x - 2;
_local3.x = _local2._x;
if (_local2._x < 450) {
_local3.formSeq = 1;
}
} else if (_local3.formSeq == 1) {
_local2._x = _local2._x + 1;
_local3.x = _local2._x;
var _local1 = 0;
while (_local1 < 5) {
_local2["wheel" + _local1]._rotation = _local2["wheel" + _local1]._rotation + 3;
_local1++;
}
if (_local2._x > (screenWidth - (_local2._width / 2))) {
_local3.formSeq = 0;
}
} else {
_local2._x = _local2._x - levelsBGSpeed[gameLevel];
}
}
function boss5Move() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.formSeq == -1) {
_local1.formSeq = 0;
_local2._x = (_local1.x = screenWidth + _local2._width);
_local2._y = (_local1.y = 176);
} else if (_local1.formSeq == 0) {
_local2._x = _local2._x - 2;
_local1.x = _local2._x;
if (_local2._x < 612) {
_local1.formSeq = 1;
}
} else if (_local1.formSeq == 1) {
}
}
function rotateAndShoot() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
var _local3 = _local1.getAngle(player);
if (_local3 < 0) {
_local3 = _local3 + 360;
}
var _local2 = this.gun._rotation;
if (_local2 < 0) {
_local2 = _local2 + 360;
}
if (_local3 < (_local2 - _local1.rotateSpeed)) {
this.gun._rotation = this.gun._rotation - _local1.rotateSpeed;
} else if (_local3 > (_local2 + _local1.rotateSpeed)) {
this.gun._rotation = this.gun._rotation + _local1.rotateSpeed;
}
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = 0;
_local1.doShot(this.gun._rotation, 0);
}
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
}
}
function passive() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
}
}
function pSingleAtPlayer() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = 0;
_local1.doShot("atPlayer", 0);
}
}
}
function likeMortar() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = (-(Math.random() * 20)) + 10;
_local1.doShot(_local1.sAngle, 0);
}
}
}
function pMultipleBigSpread() {
var _local2 = this.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
if ((_local2.shotCount++) > _local2.shotWait) {
_local2.shotCount = 0;
var _local1 = 120;
while (_local1 < 270) {
_local2.doShot(_local1, 0);
_local1 = _local1 + 30;
}
}
_local2.x = _local2.boss.x;
_local2.y = _local2.boss.y;
}
}
function pMultipleTightSpread() {
var _local2 = this.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
if ((_local2.shotCount++) > _local2.shotWait) {
_local2.shotCount = (-(Math.random() * 30)) + 10;
var _local1 = 170;
while (_local1 <= 190) {
_local2.doShot(_local1, 0);
_local1 = _local1 + 10;
}
}
_local2.x = _local2.boss.x;
_local2.y = _local2.boss.y;
}
}
function b2ClusterChimney() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = (-(Math.random() * 30)) + 10;
var cl = new ClusterBomb(1, 1, _local1.boss.x + _local1.shotDisplX, _local1.boss.y + _local1.shotDisplY, justGravity, -5, -10);
}
}
}
function b3Head() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if ((_local1.shotCount1++) > _local1.shotWait1) {
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
_local1.shotCount1 = (-(Math.random() * 20)) + 10;
_local1.doShot("atPlayer", 0);
}
if ((_local1.shotCount2++) > _local1.shotWait2) {
this.smoke.play();
_local1.shotCount2 = (-(Math.random() * 20)) + 10;
var m = new missile(1, 1, _local1.boss.x + _local1.shotDisplX2, _local1.boss.y + _local1.shotDisplY2, upAndDown, 0, -12);
}
}
}
function b3TriShot() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = (-(Math.random() * 20)) + 10;
_local1.doShot(170, 0);
_local1.doShot(200, 0);
_local1.doShot(225, 0);
}
}
}
function planeEngine() {
var _local3 = this;
var _local1 = _local3.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = (-(Math.random() * 20)) + 10;
_local3.fire.gotoAndPlay("flare");
_local3.fire.onEnterFrame = function () {
if (this.hArea.hitTest(player.mc.hArea)) {
var _local1 = new Object();
_local1.power = 200;
_local1.shotType = 10;
player.doHit(_local1);
player.upDateHP();
}
};
}
}
}
function boss5Eye() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == 1) {
if ((_local2.shotCount++) > 48) {
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
_local1.formSeq = 0;
_local2.shotCount = (Math.random() * 40) + 10;
_local1.doShot(170, 1);
_local1.doShot(200, 1);
_local1.doShot(225, 1);
} else if ((_local2.shotCount % 10) == 0) {
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
_local1.doShot("atPlayer", 0);
}
} else if ((_local2.shotCount++) > 80) {
_local1.formSeq = 1;
_local2.shotCount = 0;
}
}
}
function boss5Ear() {
var _local2 = this;
var _local1 = _local2.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if (_local1.formSeq == 1) {
if ((_local2.shotCount++) > 48) {
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
_local1.formSeq = 0;
_local2.shotCount = (Math.random() * 40) + 10;
_local1.doShot(150, 0);
_local1.doShot(165, 1);
_local1.doShot(180, 0);
_local1.doShot(195, 1);
_local1.doShot(210, 0);
_local1.doShot(225, 1);
_local1.doShot(240, 0);
} else if ((_local2.shotCount % 15) == 0) {
_local1.x = _local1.boss.x;
_local1.y = _local1.boss.y;
_local1.doShot("atPlayer", 0);
}
} else if ((_local2.shotCount++) > 50) {
_local1.formSeq = 1;
_local2.shotCount = 0;
}
}
}
function b5Mouth() {
var _local1 = this.myObject;
if (_local1.hittable) {
_local1.checkForBeingHit();
if ((_local1.shotCount++) > _local1.shotWait) {
_local1.shotCount = (-(Math.random() * 40)) + 10;
var _local3 = "hopper" + Math.ceil(Math.random() * 3);
var _local2 = new SingleFlyer(_local3, 4, boss5Fly, true, null);
_local2.init();
}
}
}
function b5Hand() {
var _local1 = this;
var _local2 = _local1.myObject;
if (_local2.hittable) {
_local2.checkForBeingHit();
if (_local2.formSeq == -1) {
_local2.formSeq = 0;
_local1._x = (_local2.x = 425);
_local1._y = (_local2.y = 440);
} else if (_local2.formSeq == 0) {
if ((_local1.count++) > 120) {
_local2.formSeq = 1;
_local1.ySpeed = 6;
}
} else if (_local2.formSeq == 1) {
if (_local1._y < 285) {
_local2.formSeq = 2;
} else {
_local1._x = _local1._x - 3;
_local2.x = _local1._x;
_local1._y = _local1._y - _local1.ySpeed;
_local2.y = _local1._y;
_local1.ySpeed = _local1.ySpeed - 0.1;
}
} else if (_local2.formSeq == 2) {
if (_local1._x < -90) {
_local2.formSeq = -1;
_local1.count = Math.random() * 30;
} else {
_local1._x = _local1._x - 2.5;
_local2.x = _local1._x;
_local1._y = _local1._y + 0.2;
_local2.y = _local1._y;
}
}
}
}
function removeEnemyShot() {
var _local1 = 0;
while (_local1 < comShotsArray.length) {
comShotsArray[_local1].explode();
_local1++;
}
}
function smartBomb() {
removeEnemyShot();
var _local2 = 0;
while (_local2 < enemiesArray.length) {
var _local1 = enemiesArray[_local2];
_local1.hp = _local1.hp - (gameLevel * 40);
if (!_local1.isBoss) {
if (_local1.hittable) {
_local1.destroyMe();
}
} else if (_local1.hp > 0) {
_local1.mc.gotoAndPlay("beingDamaged");
} else if (_local1.hittable) {
_local1.destroyMe();
}
_local2++;
}
gui.gui.sBombs = player.smartBombs;
}
function doSmartBomb() {
if (canSmartBomb && (player.smartBombs > 0)) {
var _local1 = mc.attachMovie("_lsBomb", "smartBomb", sBombDepth);
canSmartBomb = false;
player.smartBombs--;
_local1._x = player.mc._x;
_local1._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 _local2 = comShotsArray;
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].explode();
_local1++;
}
var _local3 = enemiesArray;
_local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1].destroyMe();
_local1++;
}
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 _local1 = 1;
while (_local1 < 5) {
this["b" + _local1].mc.removeMovieClip();
delete this["b" + _local1];
_local1++;
}
gertrude.mc.removeMovieClip();
delete gertrude;
var _local3 = comShotsArray;
_local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1].mc.removeMovieClip();
delete _local3[_local1];
_local1++;
}
var ea = enemiesArray;
_local1 = 0;
while (_local1 < ea.length) {
ea[_local1].mc.removeMovieClip();
delete ea[_local1];
_local1++;
}
var _local2 = playerShotsArray;
_local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].mc.removeMovieClip();
delete _local2[_local1];
_local1++;
}
sceneryMaker.removeMovieClip();
_local1 = 0;
while (_local1 < sceneryArray.length) {
sceneryArray[_local1].mc.removeMovieClip();
delete sceneryArray[_local1];
_local1++;
}
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 _local1 = new Sound();
_local1.attachSound("_llevelDown");
_local1.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) {
var _local1 = theKey;
var _local2 = val;
if ((_local2 > 64) && (_local2 < 91)) {
_local1.keyVal = alphabet[_local2 - 65];
} else {
switch (_local2) {
case 9 :
_local1.keyVal = "Tab";
break;
case 13 :
_local1.keyVal = "Enter";
break;
case 16 :
_local1.keyVal = "Shift";
break;
case 17 :
_local1.keyVal = "Ctrl";
break;
case 32 :
_local1.keyVal = "Space";
break;
case 37 :
_local1.keyVal = "Left";
break;
case 38 :
_local1.keyVal = "Up";
break;
case 39 :
_local1.keyVal = "Right";
break;
case 40 :
_local1.keyVal = "Down";
break;
case 186 :
_local1.keyVal = ";";
break;
case 188 :
_local1.keyVal = "<";
break;
case 190 :
_local1.keyVal = ">";
break;
case 191 :
_local1.keyVal = "/";
break;
case 192 :
_local1.keyVal = "'";
break;
case 219 :
_local1.keyVal = "[";
break;
case 220 :
_local1.keyVal = "\\";
break;
case 221 :
_local1.keyVal = "]";
break;
case 222 :
_local1.keyVal = "#";
}
}
if (_local1.key0.textWidth > 56) {
var _local3 = (100 / _local1.key0.textWidth) * 56;
_local1.key0._xScale = _local3;
_local1.key1._xScale = _local3;
} else {
_local1.key0._xScale = 100;
_local1.key1._xScale = 100;
}
}
function keySelect() {
var _local1 = this;
var _local3 = miscScreens.startScreen;
var _local2 = 0;
while (_local2 < 6) {
_local3["keyVal" + _local2].key0.autoSize = "center";
_local3["keyVal" + _local2].key1.autoSize = "center";
showKey(_local3["keyVal" + _local2], keyMap[_local2]);
_local3["keyButton" + _local2].onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop("over");
if (soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
_local3["keyButton" + _local2].num = _local2;
_local3["keyButton" + _local2].onRollOut = (_local3["keyButton" + _local2].onDragOut = function () {
if (this._parent._parent._parent.buttonsActive) {
this.gotoAndStop(1);
}
});
_local3["keyButton" + _local2].onRelease = function () {
var _local1 = this;
if (_local1._parent._parent._parent.buttonsActive) {
if (soundOn) {
var _local3 = new Sound();
_local3.attachSound("_ltryChangeKey");
_local3.start();
}
_local1._parent._parent._parent.buttonsActive = false;
_local1.onKeyDown = function () {
var _local1 = this;
Key.removeListener(_local1);
var _local2 = Key.getCode();
if (validKeys[_local2]) {
_local1.gotoAndPlay("validate");
validKeys[keyMap[_local1.num]] = true;
validKeys[_local2] = false;
keyMap[_local1.num] = _local2;
_local1._parent._parent._parent.showKey(_local1._parent["keyVal" + _local1.num], _local2);
if (soundOn) {
var _local3 = new Sound();
_local3.attachSound("_lvalidKey");
_local3.start();
}
} else {
if (soundOn) {
var _local3 = new Sound();
_local3.attachSound("_linvalidKey");
_local3.start();
}
_local1.gotoAndPlay("invalid");
}
};
Key.addListener(_local1);
_local1.gotoAndStop("changing");
}
};
_local2++;
}
}
function displayStart() {
var _local2 = this;
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 () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
soundOn = !soundOn;
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
if (soundOn) {
_local2.soundStatus = "TURN SOUND OFF";
} else {
_local2.soundStatus = "TURN SOUND ON";
}
_local2._parent.soundStars.gotoAndPlay("over");
}
};
buttonsActive = true;
}
function doLBButtons() {
var _local2 = this;
var _local1 = miscScreens.lBoard;
if (_local1.sRank > 10) {
_local1.rankDown.onRelease = function () {
var _local1 = this;
_local1._parent.sRank = _local1._parent.sRank - 10;
if (_local1._parent.sRank < 1) {
_local1._parent.sRank = 1;
}
_local1._parent._parent._parent.getScores(_local1._parent.sRank);
};
} else {
delete _local1.rankDown.onRelease;
}
if (_local1.score9.name.text != "") {
_local1.rankUp.onRelease = function () {
var _local1 = this;
_local1._parent.sRank = _local1._parent.sRank + 10;
_local1._parent._parent._parent.getScores(_local1._parent.sRank);
};
} else {
delete _local1.rankUp.onRelease;
}
}
stop();
Function.prototype.extend = function (superClass) {
var _local1 = this;
_local1.prototype.__proto__ = superClass.prototype;
_local1.prototype.__constructor__ = superClass;
ASSetPropFlags(_local1.prototype, ["__constructor__"], 1);
};
ASSetPropFlags(Function.prototype, ["extend"], 1);
MovieClip.prototype.mcExtends = function (superClass) {
var _local3 = this;
if (typeof(superClass) == "function") {
_local3.__proto__ = superClass.prototype;
if (typeof(_local3.attachMovie) == "undefined") {
var _local2 = _local3.__proto__;
var _local1 = _local2.__proto__.__proto__;
while (_local1 != null) {
_local1 = _local1.__proto__;
_local2 = _local2.__proto__;
}
_local2.__proto__ = MovieClip.prototype;
}
arguments.splice(0, 1);
superClass.apply(_local3, 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 () {
var _local1 = this;
_local1.hittable = true;
_local1.mc = mc.attachMovie("_lship1", "playerShip", playerDepth);
if (_local1.hp < 1000) {
_local1.hp = _local1.maxHp;
_local1.mc.shield._visible = false;
}
_local1.mc.myObject = _local1;
};
Shot.extend(Sprite);
Bomb.extend(Shot);
PowerUp.extend(Enemy);
Enemy.extend(Sprite);
FlyingEnemy.prototype.init = function () {
var _local2 = this;
var _local1 = 0;
while (enemiesConfArray[_local1] == "enemy") {
_local1++;
}
enemiesConfArray[_local1] = "enemy";
enemiesArray[_local1] = _local2;
_local2.mc = mc.attachMovie("_l" + _local2.clipName, "enemy" + _local1, enemyDepth + _local1);
_local2.mc.myObject = _local2;
_local2.mc._x = -100;
_local2.arrayNum = _local1;
_local2.hittable = true;
_local2.shotCount = 0;
_local2.formSeq = -1;
_local2.mc.onEnterFrame = _local2.action;
};
FlyingEnemy.extend(enemy);
GroupFlyer.extend(FlyingEnemy);
SingleFlyer.extend(FlyingEnemy);
ClusterBomb.extend(Enemy);
missile.extend(Enemy);
EnemyGroup.prototype.init = function () {
var _local1 = this;
_local1.minionArray = new Array();
_local1.minionsBuilt = (_local1.minionsDestroyed = 0);
_local1.mc = createEmptyMovieClip("enemyGroup" + _local1.myNum, _local1.myNum + enemyGroupMakerDepth);
_local1.mc.myObject = _local1;
_local1.mc.onEnterFrame = _local1.buildAction;
_local1.count = _local1.delay;
};
EGroup.extend(EnemyGroup);
GroundEnemy.extend(Enemy);
BossEnemy.prototype.init = function () {
var _local2 = this;
var _local3 = 0;
while (enemiesConfArray[_local3] == "enemy") {
_local3++;
}
enemiesConfArray[_local3] = "enemy";
enemiesArray[_local3] = _local2;
_local2.mc = mc.attachMovie("_lboss" + _local2.clipNum, "enemy" + _local3, bossDepth + _local3);
_local2.mc._x = -1000;
_local2.mc.myObject = _local2;
_local2.arrayNum = _local3;
_local2.compDestroyed = 0;
_local2.components = new Array();
var _local1 = 0;
while (_local1 < _local2.numComp) {
_local2.components[_local1] = new BossComponent(_local2, _local1);
_local1++;
}
_local2.mc.onEnterFrame = _local2.action;
};
BossEnemy.extend(enemy);
BossComponent.extend(Enemy);
deleteShot = function (obj) {
var _local1 = obj;
_local1.mc.removeMovieClip();
if (_local1.whoShot == "player") {
delete playerHasShotArray[_local1.arrayNum];
delete playerShotsArray[_local1.arrayNum];
} else {
delete comHasShotArray[_local1.arrayNum];
delete comShotsArray[_local1.arrayNum];
}
};
deleteEnemy = function (obj) {
var _local1 = obj;
_local1.mc.removeMovieClip();
delete enemiesConfArray[_local1.arrayNum];
delete enemiesArray[_local1.arrayNum];
};
Sprite.prototype.getAngle = function (obj) {
var _local1 = this;
return(Math.atan2((obj.y - _local1.y) - _local1.shotDisplY, (obj.x - _local1.x) - _local1.shotDisplX) / PiRads);
};
Sprite.prototype.doHit = function (missile) {
var _local1 = this;
var _local3 = missile;
var _local2 = _local3.power;
_local2 = _local2 - (((_local2 / 2) / 100) * _local1.armour);
_local1.hp = _local1.hp - _local2;
if (_local1.hp > 0) {
_local1.mc.gotoAndPlay("beingDamaged");
} else if (_local1.hittable) {
_local1.destroyMe();
}
if (_local3.shotType < 10) {
_local3.explode();
}
};
Shot.prototype.explode = function () {
var _local1 = this;
delete _local1.mc.onEnterFrame;
_local1.hittable = false;
_local1.mc.gotoAndPlay("explode");
};
Bomb.prototype.explode = function () {
var _local1 = this;
delete _local1.mc.onEnterFrame;
if (!_local1.beenHit) {
_local1.beenHit = true;
_local1.mc.gotoAndPlay("explode");
}
};
BossComponent.prototype.destroyMe = function () {
var _local2 = this;
if (_local2.hittable) {
_local2.hittable = false;
_local2.mc.gotoAndPlay("beingDestroyed");
score = score + _local2.score;
delete _local2.boss.components[_local2.num];
if (((++_local2.boss.compDestroyed) == _local2.boss.numComp) || (_local2.vital)) {
var _local1 = 0;
while (_local1 < _local2.boss.components.length) {
_local2.boss.components[_local1].hittable = false;
_local2.boss.components[_local1].mc.gotoAndPlay("beingDestroyed");
delete _local2.boss.components[_local1];
_local1++;
}
score = score + _local2.boss.score;
_local2.boss.mc.gotoAndPlay("beingDestroyed");
gui.gui.face.gotoAndPlay("happy");
}
}
};
BossEnemy.prototype.destroyMe = function () {
};
Enemy.prototype.destroyMe = function () {
var _local1 = this;
_local1.hittable = false;
_local1.mc.gotoAndPlay("beingDestroyed");
score = score + (_local1.score * 100);
var _local2 = _local1.attackGroup;
if (_local2 != undefined) {
_local2.minionsDestroyed++;
if (_local2.minionsDestroyed == _local2.numMinions) {
if (_local2.givePowerUp) {
var s = new PowerUp(_local1.x + _local1.shotDisplX, _local1.y + _local1.shotDisplY, _local2.level);
}
delete _local1.ag;
}
} else if (_local1.cont == "player") {
} else if (_local1.givePowerUp) {
var s = new PowerUp(_local1.x + _local1.shotDisplX, _local1.y + _local1.shotDisplY, _local1.level);
}
};
Enemy.prototype.checkForBeingHit = function () {
var _local3 = this;
var _local2 = playerShotsArray;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].hittable) {
if (_local3.mc.hArea.hitTest(_local2[_local1].mc)) {
_local3.doHit(_local2[_local1]);
}
}
_local1++;
}
};
Enemy.prototype.doShot = function (direction, i) {
var _local1 = this;
if (direction == "atPlayer") {
var _local2 = _local1.getAngle(player);
} else {
var _local2 = direction;
}
var s = new shot(_local1.shotType[i], _local1.x + _local1.shotDisplX, _local1.y + _local1.shotDisplY, _local1.shotPower[i], _local2, "com", 100);
};
Ship.prototype.doHit = function (missile) {
var _local1 = this;
var _local3 = missile;
var _local2 = _local3.power;
_local2 = _local2 - (((_local2 / 2) / 100) * _local1.armour);
_local1.hp = _local1.hp - _local2;
if (_local1.hp > 0) {
gui.gui.face.gotoAndPlay("hit");
_local1.mc.shield.gotoAndPlay(2);
_local1.hp = 1;
} else if (_local1.hittable) {
_local1.destroyMe();
}
if (_local3.shotType < 10) {
_local3.explode();
}
};
Ship.prototype.doExperience = function (ex) {
var _local1 = this;
_local1.weaponExperience = _local1.weaponExperience + ex;
gui.gui.powerGauge.colours.gotoAndStop(weaponDesc[_local1.shotType]);
gui.gui.weaponT = weaponDesc[_local1.shotType];
if (_local1.weaponLevel < _local1.experienceBarriar.length) {
gui.gui.powerGauge.gotoMark(_local1.weaponExperience, _local1.experienceBarriar[_local1.weaponLevel]);
if (_local1.weaponExperience >= _local1.experienceBarriar[_local1.weaponLevel]) {
if (soundOn) {
pu = new Sound();
pu.attachSound("_lcoinIn");
pu.start();
}
_local1.weaponLevel++;
_local1.weaponExperience = 0;
_local1.mc.levelUpLight.gotoAndPlay(2);
_local1.mc.darkener.gotoAndPlay(2);
_local1.hp = 9999999 /* 0x98967F */;
_local1.mc.shield._visible = true;
_local1.mc.shield.gotoAndStop(1);
gui.gui.face.gotoAndPlay("happy");
if (_local1.hp > 10) {
score = score + (10000 * _local1.weaponLevel);
}
}
} else {
if (soundOn) {
pu = new Sound();
pu.attachSound("_lcoinIn");
pu.start();
}
_local1.mc.levelUpLight.gotoAndPlay(2);
_local1.mc.darkener.gotoAndPlay(2);
_local1.hp = 9999999 /* 0x98967F */;
_local1.mc.gotoAndStop(1);
_local1.mc.shield._visible = true;
_local1.mc.shield.gotoAndStop(1);
score = score + 15000;
}
};
Ship.prototype.destroyMe = function () {
var _local1 = this;
_local1.hittable = false;
gui.gui.face.gotoAndPlay("destroyed");
delete _local1.mc.onEnterFrame;
canSmartBomb = false;
_local1.mc.gotoAndPlay("beingDestroyed");
if (_local1.lives <= 0) {
bars.gotoAndPlay("slowIn");
}
};
Ship.prototype.checkForBeingHit = function () {
var _local2 = this;
var _local3 = comShotsArray;
var _local1 = 0;
while (_local1 < _local3.length) {
if (_local3[_local1].hittable) {
if (_local2.mc.hArea.hitTest(_local3[_local1].mc)) {
_local2.doHit(_local3[_local1]);
_local2.upDateHP();
}
}
_local1++;
}
var ea = enemiesArray;
_local1 = 0;
while (_local1 < ea.length) {
if (ea[_local1].hittable) {
if (_local2.mc.hArea.hitTest(ea[_local1].mc.hArea)) {
_local2.doRam(ea[_local1]);
_local2.upDateHP();
}
}
_local1++;
}
};
Ship.prototype.doRam = function (obj) {
var _local1 = obj;
var _local2 = this;
if (_local1.powerUp && (_local2.hittable)) {
if ((_local1.hitCount++) > 0) {
_local1.hittable = false;
if (_local1.powerType == 0) {
_local2.lives++;
gui.gui.lives = _local2.lives;
gui.gui.face.gotoAndPlay("happy");
} else if (_local1.powerType == 1) {
score = score + (10000 * _local1.level);
} else if (_local1.powerType == 3) {
_local2.smartBombs++;
gui.gui.sBombs = _local2.smartBombs;
gui.gui.face.gotoAndPlay("happy");
} else {
if (_local1.pt < 4) {
_local2.shotType = _local1.pt - 1;
} else {
_local2.shotType = _local1.pt + 6;
}
_local2.doExperience(1);
_local2.cooldown = shotBehaviours[_local2.shotType].cooldown;
gui.gui.powerGauge.colours.gotoAndStop(_local2.shotType + 1);
}
delete _local1.mc.onEnterFrame;
_local1.mc.play();
}
} else {
if (!_local1.isBoss) {
_local1.destroyMe();
} else {
var _local3 = _local2.ramDam;
_local3 = _local3 - (((_local3 / 2) / 100) * _local1.armour);
_local1.hp = _local1.hp - _local3;
if (_local1.hp > 0) {
_local1.mc.play();
} else if (_local1.hittable) {
_local1.destroyMe();
}
}
_local2.hp = _local2.hp - 10;
if (_local2.hp > 0) {
_local2.mc.shield.gotoAndPlay(2);
_local2.hp = 1;
gui.gui.face.gotoAndPlay("hit");
} else if (_local2.hittable) {
_local2.destroyMe();
}
}
};
Ship.prototype.doUp = function () {
var _local2 = this;
if (_local2.y > (_local2.shipHeight / 2)) {
_local2.y = _local2.y - _local2.speed;
_local2.mc._y = _local2.y;
if (_local2.shotType == 4) {
var _local1 = 0;
while (_local1 <= playerShotsArray.length) {
playerShotsArray[_local1].mc._y = playerShotsArray[_local1].mc._y - (_local2.speed / 1.5);
_local1++;
}
}
} else {
_local2.y = (_local2.mc._y = _local2.shipHeight / 2);
}
};
Ship.prototype.doDown = function () {
var _local2 = this;
if ((_local2.y + _local2.speed) < (screenHeight - 20)) {
_local2.y = _local2.y + _local2.speed;
_local2.mc._y = _local2.y;
if (_local2.shotType == 4) {
var _local1 = 0;
while (_local1 <= playerShotsArray.length) {
playerShotsArray[_local1].mc._y = playerShotsArray[_local1].mc._y + (_local2.speed / 1.5);
_local1++;
}
}
} else {
_local2.y = (_local2.mc._y = screenHeight - (_local2.shipHeight / 2));
}
};
Ship.prototype.doLeft = function () {
var _local2 = this;
if (_local2.x > (_local2.shipWidth / 2)) {
_local2.x = _local2.x - _local2.speed;
_local2.mc._x = _local2.x;
if (_local2.shotType > 2) {
var _local1 = 0;
while (_local1 <= playerShotsArray.length) {
playerShotsArray[_local1].mc._x = playerShotsArray[_local1].mc._x - _local2.speed;
_local1++;
}
}
}
};
Ship.prototype.doRight = function () {
var _local2 = this;
if (_local2.x < (screenWidth - (_local2.shipWidth / 2))) {
if (_local2.shotType > 2) {
var _local1 = 0;
while (_local1 <= playerShotsArray.length) {
playerShotsArray[_local1].mc._x = playerShotsArray[_local1].mc._x + _local2.speed;
_local1++;
}
}
_local2.x = _local2.x + _local2.speed;
_local2.mc._x = _local2.x;
}
};
Ship.prototype.doShot = function (whoShot) {
var _local1 = this;
var shotType = shotBehaviours[_local1.shotType];
if (_local1.shotType < 10) {
var _local3 = shotType.levels[_local1.weaponLevel];
var _local2 = 0;
while (_local2 < _local3.length) {
var s = new shot(_local1.shotType, _local1.x + _local1.shotDisplX, (_local1.y + _local3[_local2].yDisc) + _local1.shotDisplY, _local3[_local2].power, _local3[_local2].angle, whoShot, _local3[_local2].scale);
_local2++;
}
if ((_local1.shotType == 2) && ((++_local1.bombCount) > 1)) {
_local1.bombCount = 0;
var b = new bomb(_local1.x + _local1.shotDisplX, (_local1.y + _local3[_local2].yDisc) + _local1.shotDisplY, whoShot, (_local1.weaponLevel + 1) * 15);
}
} else {
_local1.flaming = true;
var s = new FlameShot(_local1.shotType, _local1.weaponLevel, 0, _local1.x + _local1.shotDisplX, _local1.y + _local1.shotDisplY, 0, whoShot);
}
if (soundOn) {
var shotSound = new Sound();
shotSound.attachSound("_lshotSound" + _local1.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 () {
var _local1 = this;
_local1._x = _local1._x + _local1.myObject.xSpeed;
_local1._y = _local1._y + _local1.myObject.ySpeed;
_local1.myObject.doHitCheck();
if ((((_local1._x < -20) || (_local1._x > 650)) || (_local1._y < -20)) || (_local1._y > 400)) {
deleteShot(_local1.myObject);
}
};
doBombStuff = function () {
var _local1 = this;
if (_local1.myObject.ySpeed < 11) {
_local1.myObject.ySpeed = _local1.myObject.ySpeed + 0.5;
_local1._rotation = _local1.myObject.ySpeed * 5;
}
_local1._x = _local1._x + _local1.myObject.xSpeed;
_local1._y = _local1._y + _local1.myObject.ySpeed;
_local1.myObject.doHitCheck();
if (((_local1._x < -20) || (_local1._x > 650)) || (_local1._y < -20)) {
deleteShot(_local1.myObject);
}
if (_local1._y > 340) {
if (gameLevel == 2) {
_local1._y = 345;
_local1.myObject.explode();
} else if (gameLevel < 4) {
_local1._y = 335;
_local1.myObject.explode();
} else {
deleteShot(_local1.myObject);
}
}
};
doShipStuff = function () {
if (actions[++count] != undefined) {
var _local2 = actions[count];
_local2[0](_local2[1], _local2[2], _local2[3], _local2[4], _local2[5], _local2[6], _local2[7], _local2[8]);
}
gui.count = count;
var _local1 = this.myObject;
if (Key.isDown(_local1.UPkey)) {
_local1.doUp();
}
if (Key.isDown(_local1.DOWNkey)) {
_local1.doDown();
}
if (Key.isDown(_local1.LEFTkey)) {
_local1.doLeft();
}
if (Key.isDown(_local1.RIGHTkey)) {
_local1.doRight();
}
if (Key.isDown(_local1.SHOOTkey2)) {
doSmartBomb();
}
if (Key.isDown(_local1.SHOOTkey1) && ((count - _local1.shootTime) > _local1.coolDown)) {
_local1.doShot("player");
_local1.shootTime = count;
}
if (_local1.hittable) {
_local1.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 = sendSuccess;
addScorexml = new LoadVars();
addScorexml.uname = userName;
addScorexml.score = score;
trace("doing Send \n " + addScorexml.toString());
addScorexml.sendAndLoad("http://www.utterlysuperb.com/php/justAddScore.php?game=aforce", scoresXML);
};
gotoHighScores = function () {
getScores(1);
miscScreens.gotoAndStop("leaderBoard");
};
getScores = function (sRank) {
scoresXML = new XML();
scoresXML.onLoad = populateScores;
scoresXML.load("http://www.utterlysuperb.com/php/getScoresXML.php?game=aforce&sRank=" + sRank);
miscScreens.lBoard.statusInd.gotoAndStop("connecting");
if (soundOn) {
morse = new Sound();
morse.attachSound("_lmorse");
morse.start();
}
};
sendSuccess = function () {
stopAllSounds();
miscScreens.gotoAndStop("leaderBoard");
bars.gotoAndPlay("out");
if (soundOn) {
morse = new Sound();
morse.attachSound("_lmorse");
morse.start();
}
getScores(1);
};
populateScores = function (success) {
if (fromSubmit) {
fromSubmit = false;
}
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");
} else 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");
} else 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");
} else {
miscScreens.lBoard.statusInd.gotoAndStop("connected");
scoresXML = this.firstChild.childNodes;
var _local1 = 0;
while (_local1 < scoresXML.length) {
if (scoresXML[_local1].nodeName.toLowerCase() == "iscore") {
var cNodeName;
var _local3;
iScoreNodeXML = scoresXML[_local1].childNodes;
var _local2 = 0;
while (_local2 < iScoreNodeXML.length) {
cNodeName = iScoreNodeXML[_local2].nodeName.toLowerCase();
_local3 = iScoreNodeXML[_local2].firstChild.nodeValue;
if (cNodeName == "name") {
miscScreens.lBoard["score" + _local1].name.text = _local3;
} else if (cNodeName == "score") {
miscScreens.lBoard["score" + _local1].score.text = _local3;
} else if (cNodeName == "rank") {
miscScreens.lBoard["score" + _local1].rank.text = _local3;
} else if (cNodeName == "date") {
miscScreens.lBoard["score" + _local1].date.text = _local3;
}
_local2++;
}
}
_local1++;
}
doLBButtons();
}
};
Symbol 98 MovieClip [_lboat1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 98 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 98 MovieClip [_lboat1] Frame 2
play();
Symbol 98 MovieClip [_lboat1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 98 MovieClip [_lboat1] Frame 4
play();
Symbol 98 MovieClip [_lboat1] Frame 11
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 107 MovieClip [_lboat2] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 107 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 107 MovieClip [_lboat2] Frame 2
play();
Symbol 107 MovieClip [_lboat2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 107 MovieClip [_lboat2] Frame 4
play();
Symbol 107 MovieClip [_lboat2] Frame 11
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 119 MovieClip [_lBomb] Frame 1
stop();
Symbol 119 MovieClip [_lBomb] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 119 MovieClip [_lBomb] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 132 MovieClip Frame 18
_root.theScreen.deleteShot(this.myObject);
Symbol 142 MovieClip Frame 28
gotoAndPlay (12);
Symbol 156 MovieClip [_lboss1] Frame 1
stop();
Symbol 156 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 () {
var _local1 = this;
_local1._y = _local1._y + _local1.ySpeed;
_local1._x = _local1._x + 0.3;
if ((_local1._y >= 280) && (_local1.notExploded)) {
_local1.gotoAndPlay("boom");
_local1.explode.stop();
if (_local1._parent._parent.soundOn) {
_local1.explode = new sound(_local1);
_local1.explode.attachSound("_llongExplosion");
_local1.explode.start();
}
_local1.ySpeed = 0.5;
_local1.notExploded = false;
}
};
Symbol 156 MovieClip [_lboss1] Frame 3
stop();
Symbol 156 MovieClip [_lboss1] Frame 4
play();
Symbol 156 MovieClip [_lboss1] Frame 38
stop();
this._parent._parent.fadeOut();
this.explode.stop();
delete this.explode;
this._parent._parent.deleteEnemy(this.myObject);
Symbol 160 MovieClip [_lboss1Comp0] Frame 1
stop();
Instance of Symbol 159 MovieClip "gun" in Symbol 160 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 160 MovieClip [_lboss1Comp0] Frame 2
play();
Symbol 160 MovieClip [_lboss1Comp0] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 160 MovieClip [_lboss1Comp0] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 160 MovieClip [_lboss1Comp0] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 164 MovieClip [_lboss1Comp1] Frame 1
stop();
Instance of Symbol 163 MovieClip "gun" in Symbol 164 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 164 MovieClip [_lboss1Comp1] Frame 2
play();
Symbol 164 MovieClip [_lboss1Comp1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 164 MovieClip [_lboss1Comp1] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 163 MovieClip "gun" in Symbol 164 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 164 MovieClip [_lboss1Comp1] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 168 MovieClip [_lboss1Comp2] Frame 1
stop();
Instance of Symbol 167 MovieClip "gun" in Symbol 168 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 168 MovieClip [_lboss1Comp2] Frame 2
play();
Symbol 168 MovieClip [_lboss1Comp2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 168 MovieClip [_lboss1Comp2] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 168 MovieClip [_lboss1Comp2] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 177 MovieClip [_lboss1Comp3] Frame 1
stop();
Instance of Symbol 171 MovieClip "gun" in Symbol 177 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 177 MovieClip [_lboss1Comp3] Frame 2
play();
Symbol 177 MovieClip [_lboss1Comp3] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 177 MovieClip [_lboss1Comp3] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 177 MovieClip [_lboss1Comp3] Frame 11
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 180 MovieClip [_lboss2] Frame 1
stop();
Symbol 180 MovieClip [_lboss2] Frame 2
delete this.onEnterFrame;
this._parent._parent.finishLevel();
play();
Symbol 180 MovieClip [_lboss2] Frame 3
play();
Symbol 180 MovieClip [_lboss2] Frame 21
this._parent._parent.fadeOut();
Symbol 180 MovieClip [_lboss2] Frame 33
stop();
this._parent._parent.deleteEnemy(this.myObject);
Symbol 191 MovieClip [_lboss2comp0] Frame 1
stop();
Instance of Symbol 183 MovieClip in Symbol 191 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 191 MovieClip [_lboss2comp0] Frame 2
play();
Symbol 191 MovieClip [_lboss2comp0] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 191 MovieClip [_lboss2comp0] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 191 MovieClip [_lboss2comp0] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 201 MovieClip [_lboss2Comp1] Frame 1
stop();
Instance of Symbol 194 MovieClip in Symbol 201 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 201 MovieClip [_lboss2Comp1] Frame 2
play();
Symbol 201 MovieClip [_lboss2Comp1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 201 MovieClip [_lboss2Comp1] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 194 MovieClip in Symbol 201 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 201 MovieClip [_lboss2Comp1] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 211 MovieClip [_lboss2Comp2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 211 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 211 MovieClip [_lboss2Comp2] Frame 2
play();
Symbol 211 MovieClip [_lboss2Comp2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 211 MovieClip [_lboss2Comp2] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 211 MovieClip [_lboss2Comp2] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 221 MovieClip [_lboss2Comp3] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 221 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 221 MovieClip [_lboss2Comp3] Frame 2
play();
Symbol 221 MovieClip [_lboss2Comp3] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 221 MovieClip [_lboss2Comp3] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 221 MovieClip [_lboss2Comp3] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 233 MovieClip [_lboss3] Frame 1
stop();
Symbol 233 MovieClip [_lboss3] Frame 2
play();
Symbol 233 MovieClip [_lboss3] Frame 3
this.myObject.formSeq = 2;
this._parent._parent.finishLevel();
Symbol 233 MovieClip [_lboss3] Frame 27
this._parent._parent.fadeOut();
Symbol 233 MovieClip [_lboss3] Frame 53
stop();
this._parent._parent.deleteEnemy(this.myObject);
Symbol 240 MovieClip Frame 1
stop();
Symbol 250 MovieClip [_lboss3Comp0] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 250 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 250 MovieClip [_lboss3Comp0] Frame 2
play();
Symbol 250 MovieClip [_lboss3Comp0] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 250 MovieClip [_lboss3Comp0] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 250 MovieClip [_lboss3Comp0] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 260 MovieClip [_lboss3Comp1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 260 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 260 MovieClip [_lboss3Comp1] Frame 2
play();
Symbol 260 MovieClip [_lboss3Comp1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 260 MovieClip [_lboss3Comp1] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 260 MovieClip [_lboss3Comp1] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 270 MovieClip [_lboss3Comp2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 270 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 270 MovieClip [_lboss3Comp2] Frame 2
play();
Symbol 270 MovieClip [_lboss3Comp2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 270 MovieClip [_lboss3Comp2] Frame 5
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 270 MovieClip [_lboss3Comp2] Frame 12
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 281 MovieClip [_lboss4] Frame 1
stop();
Symbol 281 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 () {
var _local1 = this;
_local1._y = _local1._y + _local1.ySpeed;
_local1._x = _local1._x - 1;
if ((_local1._y >= 400) && (_local1.notExploded)) {
_local1.gotoAndPlay("boom");
_local1.explode.stop();
if (_local1._parent._parent.soundOn) {
_local1.explode = new sound(_local1);
_local1.explode.attachSound("_llongExplosion");
_local1.explode.start();
}
_local1.ySpeed = 0.5;
_local1.notExploded = false;
_local1._y = 342;
}
};
Symbol 281 MovieClip [_lboss4] Frame 3
stop();
Symbol 281 MovieClip [_lboss4] Frame 4
play();
Symbol 281 MovieClip [_lboss4] Frame 38
stop();
this._parent._parent.fadeOut();
this.explode.stop();
delete this.explode;
this._parent._parent.deleteEnemy(this.myObject);
Symbol 291 MovieClip [_lboss5] Frame 1
stop();
Symbol 291 MovieClip [_lboss5] Frame 2
play();
trace("beingDestroyed!");
Symbol 291 MovieClip [_lboss5] Frame 3
this.myObject.formSeq = 2;
this._parent._parent.finishLevel();
trace("boom!");
Symbol 291 MovieClip [_lboss5] Frame 27
this._parent._parent.fadeOut();
Symbol 291 MovieClip [_lboss5] Frame 53
stop();
this._parent._parent.deleteEnemy(this.myObject);
Symbol 300 MovieClip [_lboss5Hand] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 300 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 300 MovieClip [_lboss5Hand] Frame 3
play();
Symbol 300 MovieClip [_lboss5Hand] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 300 MovieClip [_lboss5Hand] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 300 MovieClip [_lboss5Hand] Frame 16
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 304 MovieClip [_lclusterBomb1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 304 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 304 MovieClip [_lclusterBomb1] Frame 2
play();
Symbol 304 MovieClip [_lclusterBomb1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 304 MovieClip [_lclusterBomb1] Frame 4
play();
Symbol 304 MovieClip [_lclusterBomb1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 305 MovieClip [_lfire0] Frame 22
this._parent._parent.deleteShot(this.myObject);
Symbol 306 MovieClip [_lfire1] Frame 24
this._parent._parent.deleteShot(this.myObject);
Symbol 307 MovieClip [_lfire2] Frame 26
this._parent._parent.deleteShot(this.myObject);
Symbol 308 MovieClip [_lfire3] Frame 28
this._parent._parent.deleteShot(this.myObject);
Symbol 309 MovieClip [_lfire4] Frame 28
this._parent._parent.deleteShot(this.myObject);
Symbol 312 MovieClip [_lflyingJar1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 312 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 312 MovieClip [_lflyingJar1] Frame 2
play();
Symbol 312 MovieClip [_lflyingJar1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 312 MovieClip [_lflyingJar1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 312 MovieClip [_lflyingJar1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 315 MovieClip [_lflyingJar2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 315 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 315 MovieClip [_lflyingJar2] Frame 2
play();
Symbol 315 MovieClip [_lflyingJar2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 315 MovieClip [_lflyingJar2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 315 MovieClip [_lflyingJar2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 318 MovieClip [_lflyingJar3] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 318 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 318 MovieClip [_lflyingJar3] Frame 2
play();
Symbol 318 MovieClip [_lflyingJar3] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 318 MovieClip [_lflyingJar3] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 318 MovieClip [_lflyingJar3] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 340 MovieClip [_lgunPlatform1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 340 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 340 MovieClip [_lgunPlatform1] Frame 2
play();
Symbol 340 MovieClip [_lgunPlatform1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 340 MovieClip [_lgunPlatform1] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 340 MovieClip [_lgunPlatform1] Frame 19
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 343 MovieClip [_lhopper1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 343 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 343 MovieClip [_lhopper1] Frame 2
play();
Symbol 343 MovieClip [_lhopper1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 343 MovieClip [_lhopper1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 343 MovieClip [_lhopper1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 346 MovieClip [_lhopper2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 346 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 346 MovieClip [_lhopper2] Frame 2
play();
Symbol 346 MovieClip [_lhopper2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 346 MovieClip [_lhopper2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 346 MovieClip [_lhopper2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 349 MovieClip [_lhopper3] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 349 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 349 MovieClip [_lhopper3] Frame 2
play();
Symbol 349 MovieClip [_lhopper3] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 349 MovieClip [_lhopper3] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 349 MovieClip [_lhopper3] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 352 MovieClip [_lhoverCraft1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 352 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 352 MovieClip [_lhoverCraft1] Frame 2
play();
Symbol 352 MovieClip [_lhoverCraft1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 352 MovieClip [_lhoverCraft1] Frame 4
play();
Symbol 352 MovieClip [_lhoverCraft1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 360 MovieClip [_lmineLayer] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 360 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 360 MovieClip [_lmineLayer] Frame 2
play();
Symbol 360 MovieClip [_lmineLayer] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 360 MovieClip [_lmineLayer] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 360 MovieClip [_lmineLayer] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 366 MovieClip [_lmissile1] Frame 1
stop();
Instance of Symbol 363 MovieClip "hArea" in Symbol 366 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 366 MovieClip [_lmissile1] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 366 MovieClip [_lmissile1] Frame 9
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 373 MovieClip [_lmortar1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 373 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 373 MovieClip [_lmortar1] Frame 2
play();
Symbol 373 MovieClip [_lmortar1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 373 MovieClip [_lmortar1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 373 MovieClip [_lmortar1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 376 MovieClip [_lplane1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 376 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 376 MovieClip [_lplane1] Frame 2
play();
Symbol 376 MovieClip [_lplane1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 376 MovieClip [_lplane1] Frame 4
play();
Symbol 376 MovieClip [_lplane1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 379 MovieClip [_lplane2] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 379 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 379 MovieClip [_lplane2] Frame 2
play();
Symbol 379 MovieClip [_lplane2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 379 MovieClip [_lplane2] Frame 4
play();
Symbol 379 MovieClip [_lplane2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 383 MovieClip [_lpowerUp0] Frame 1
stop();
Symbol 383 MovieClip [_lpowerUp0] Frame 2
play();
Symbol 383 MovieClip [_lpowerUp0] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 386 MovieClip [_lpowerUp1] Frame 1
stop();
Symbol 386 MovieClip [_lpowerUp1] Frame 2
play();
Symbol 386 MovieClip [_lpowerUp1] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 396 MovieClip [_lpowerUp2] Frame 1
stop();
Symbol 396 MovieClip [_lpowerUp2] Frame 2
play();
Symbol 396 MovieClip [_lpowerUp2] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 399 MovieClip [_lpowerUp3] Frame 1
stop();
Symbol 399 MovieClip [_lpowerUp3] Frame 2
play();
Symbol 399 MovieClip [_lpowerUp3] Frame 8
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 406 MovieClip [_lrobotTank1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 406 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 406 MovieClip [_lrobotTank1] Frame 2
play();
Symbol 406 MovieClip [_lrobotTank1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 406 MovieClip [_lrobotTank1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 406 MovieClip [_lrobotTank1] Frame 14
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 410 MovieClip [_lrock1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 410 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 410 MovieClip [_lrock1] Frame 2
play();
Symbol 410 MovieClip [_lrock1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 410 MovieClip [_lrock1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 410 MovieClip [_lrock1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 419 MovieClip [_lrock2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 419 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 419 MovieClip [_lrock2] Frame 2
play();
Symbol 419 MovieClip [_lrock2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 419 MovieClip [_lrock2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 419 MovieClip [_lrock2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 422 MovieClip [_lrocket1] Frame 1
stop();
Symbol 422 MovieClip [_lrocket1] Frame 2
play();
Symbol 422 MovieClip [_lrocket1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 422 MovieClip [_lrocket1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 422 MovieClip [_lrocket1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 441 MovieClip [_lsBomb] Frame 12
if (this._parent._parent.soundOn) {
this.explode = new Sound(this);
this.explode.attachSound("_llongExplosion");
this.explode.start();
}
Symbol 441 MovieClip [_lsBomb] Frame 13
this._parent._parent.smartBomb();
Symbol 441 MovieClip [_lsBomb] Frame 17
this._parent._parent.smartBomb();
Symbol 441 MovieClip [_lsBomb] Frame 22
this._parent._parent.smartBomb();
Symbol 441 MovieClip [_lsBomb] Frame 28
stop();
this._parent._parent.canSmartBomb = true;
this.removeMovieClip();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
play();
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
play();
Symbol 463 MovieClip Frame 6
if (this._parent.myObject.hp < 100) {
this._visible = false;
}
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
play();
Symbol 467 MovieClip [_lship1] Frame 1
stop();
Symbol 467 MovieClip [_lship1] Frame 2
play();
Symbol 467 MovieClip [_lship1] Frame 5
this.myObject.hp = 1;
gotoAndStop (1);
Symbol 467 MovieClip [_lship1] Frame 6
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 467 MovieClip [_lship1] Frame 12
this._parent._parent.gui.fadeOut.gotoAndPlay("dieFadeOut");
this.removeMovieClip();
Symbol 473 MovieClip [_lshot1] Frame 1
stop();
Symbol 473 MovieClip [_lshot1] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 473 MovieClip [_lshot1] Frame 7
this._parent._parent.deleteShot(this.myObject);
Symbol 484 MovieClip [_lshot2] Frame 1
stop();
Symbol 484 MovieClip [_lshot2] Frame 2
play();
Symbol 484 MovieClip [_lshot2] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 488 MovieClip [_lshot3] Frame 1
stop();
Symbol 488 MovieClip [_lshot3] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 488 MovieClip [_lshot3] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 491 MovieClip [_lshot4] Frame 1
stop();
Symbol 491 MovieClip [_lshot4] Frame 2
play();
Symbol 491 MovieClip [_lshot4] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 494 MovieClip [_lshot5] Frame 1
stop();
Symbol 494 MovieClip [_lshot5] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 494 MovieClip [_lshot5] Frame 6
this._parent._parent.deleteShot(this.myObject);
Symbol 506 MovieClip [_lshot6] Frame 1
stop();
Symbol 506 MovieClip [_lshot6] Frame 2
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 506 MovieClip [_lshot6] Frame 7
this._parent._parent.deleteShot(this.myObject);
Symbol 514 MovieClip [_lspaceShip1] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 514 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 514 MovieClip [_lspaceShip1] Frame 2
play();
Symbol 514 MovieClip [_lspaceShip1] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 514 MovieClip [_lspaceShip1] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 514 MovieClip [_lspaceShip1] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 522 MovieClip [_lspaceShip2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 522 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 522 MovieClip [_lspaceShip2] Frame 2
play();
Symbol 522 MovieClip [_lspaceShip2] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 522 MovieClip [_lspaceShip2] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 522 MovieClip [_lspaceShip2] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 530 MovieClip [_lspaceShip3] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 530 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 530 MovieClip [_lspaceShip3] Frame 2
play();
Symbol 530 MovieClip [_lspaceShip3] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 530 MovieClip [_lspaceShip3] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 530 MovieClip [_lspaceShip3] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 538 MovieClip [_lspaceShip4] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 538 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 538 MovieClip [_lspaceShip4] Frame 2
play();
Symbol 538 MovieClip [_lspaceShip4] Frame 4
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 538 MovieClip [_lspaceShip4] Frame 5
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 538 MovieClip [_lspaceShip4] Frame 15
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 544 MovieClip [_ltank1] Frame 1
stop();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Instance of Symbol 84 MovieClip "hArea" in Symbol 544 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 544 MovieClip [_ltank1] Frame 2
play();
Symbol 544 MovieClip [_ltank1] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 544 MovieClip [_ltank1] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 544 MovieClip [_ltank1] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 547 MovieClip [_ltank2] Frame 1
stop();
Instance of Symbol 84 MovieClip "hArea" in Symbol 547 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 547 MovieClip [_ltank2] Frame 2
play();
Symbol 547 MovieClip [_ltank2] Frame 3
if (this.myObject.hittable) {
gotoAndStop (1);
}
Symbol 547 MovieClip [_ltank2] Frame 4
play();
if (this._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 547 MovieClip [_ltank2] Frame 10
this._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 566 MovieClip [_lboss5Comp0] Frame 1
stop();
Instance of Symbol 559 MovieClip in Symbol 566 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 566 MovieClip [_lboss5Comp0] Frame 3
play();
Symbol 566 MovieClip [_lboss5Comp0] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 566 MovieClip [_lboss5Comp0] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 566 MovieClip [_lboss5Comp0] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 576 MovieClip [_lboss5Comp1] Frame 1
stop();
Instance of Symbol 569 MovieClip in Symbol 576 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 576 MovieClip [_lboss5Comp1] Frame 3
play();
Symbol 576 MovieClip [_lboss5Comp1] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 576 MovieClip [_lboss5Comp1] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 576 MovieClip [_lboss5Comp1] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 586 MovieClip [_lboss5Comp2] Frame 1
stop();
Instance of Symbol 579 MovieClip in Symbol 586 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 586 MovieClip [_lboss5Comp2] Frame 3
play();
Symbol 586 MovieClip [_lboss5Comp2] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 586 MovieClip [_lboss5Comp2] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 586 MovieClip [_lboss5Comp2] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Instance of Symbol 589 MovieClip in Symbol 597 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 597 MovieClip [_lboss5Comp3] Frame 2
stop();
Symbol 597 MovieClip [_lboss5Comp3] Frame 3
play();
Symbol 597 MovieClip [_lboss5Comp3] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 597 MovieClip [_lboss5Comp3] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 597 MovieClip [_lboss5Comp3] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 601 MovieClip [_lboss4comp0] Frame 1
stop();
Instance of Symbol 600 MovieClip in Symbol 601 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 601 MovieClip [_lboss4comp0] Frame 3
play();
Symbol 601 MovieClip [_lboss4comp0] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 601 MovieClip [_lboss4comp0] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 601 MovieClip [_lboss4comp0] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 2
play();
Symbol 612 MovieClip Frame 76
delete this.onEnterFrame;
Symbol 613 MovieClip [_lboss4comp1] Frame 1
stop();
Instance of Symbol 604 MovieClip in Symbol 613 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 613 MovieClip [_lboss4comp1] Frame 3
play();
Symbol 613 MovieClip [_lboss4comp1] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 613 MovieClip [_lboss4comp1] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 613 MovieClip [_lboss4comp1] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 617 MovieClip [_lboss4comp2] Frame 1
stop();
Instance of Symbol 616 MovieClip in Symbol 617 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 617 MovieClip [_lboss4comp2] Frame 3
play();
Symbol 617 MovieClip [_lboss4comp2] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 617 MovieClip [_lboss4comp2] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 617 MovieClip [_lboss4comp2] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 621 MovieClip [_lboss4comp3] Frame 1
stop();
Instance of Symbol 620 MovieClip in Symbol 621 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 621 MovieClip [_lboss4comp3] Frame 3
play();
Symbol 621 MovieClip [_lboss4comp3] Frame 5
if (this.myObject.hittable) {
gotoAndStop (2);
}
Symbol 621 MovieClip [_lboss4comp3] Frame 6
play();
if (this._parent._parent._parent.soundOn) {
var explode = new Sound(this);
explode.attachSound("_lexplosion1");
explode.start();
}
Symbol 621 MovieClip [_lboss4comp3] Frame 13
this._parent._parent._parent.deleteEnemy(this.myobject);
stop();
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 2
play();
Symbol 627 MovieClip Frame 41
stop();
this._parent._parent.totalStart();
Symbol 627 MovieClip Frame 42
play();
this.volume = 100;
this.onEnterFrame = function () {
var _local1 = this;
_local1.volume = _local1.volume - 3;
_local1._parent._parent.main.setVolume(_local1.volume);
};
Symbol 627 MovieClip Frame 73
stop();
delete this.onEnterFrame;
this._parent._parent.main.stop();
this._parent._parent.main.setVolume(100);
this._parent._parent.levelEndScreens();
Symbol 627 MovieClip Frame 74
play();
this.volume = 100;
this.onEnterFrame = function () {
var _local1 = this;
_local1.volume = _local1.volume - 3;
_local1._parent._parent.main.setVolume(_local1.volume);
};
Symbol 627 MovieClip Frame 105
stop();
delete this.onEnterFrame;
this._parent._parent.main.stop();
this._parent._parent.main.setVolume(100);
this._parent._parent.restartLevel();
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 4
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 2
play();
Symbol 652 MovieClip Frame 12
this._parent.levelUp();
Symbol 654 MovieClip Frame 1
function gotoMark(mark, divs) {
var _local1 = this;
if (thisRoot.player.weaponLevel < 6) {
mask.dest = (180 / divs) * mark;
mask.speed = (mask.dest - mask._x) / 10;
mask.count = 0;
mask.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + _local1.speed;
if ((++_local1.count) == 10) {
_local1._x = _local1.dest;
delete _local1.onEnterFrame;
if (_local1._x == 180) {
flash.gotoAndPlay(2);
}
_local1._parent._parent.wLevel = thisRoot.player.weaponLevel + 1;
}
};
} else {
flash.gotoAndPlay(2);
}
}
function levelUp() {
if (thisRoot.player.weaponLevel < 6) {
mask._x = 0;
var _local1 = thisRoot.player.experienceBarriar[thisRoot.player.weaponLevel] - 1;
divisions.gotoAndStop(_local1);
}
}
function levelDown() {
var _local1 = this;
mask.speed = (-mask._x) / 10;
mask.count = 0;
mask.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + _local1.speed;
if ((++_local1.count) == 10) {
_local1._x = 180;
_local1.count = 0;
_local1._parent._parent.wLevel = _local1._parent.thisRoot.player.weaponLevel + 1;
var _local2 = _local1._parent.thisRoot.player.experienceBarriar[_local1._parent.thisRoot.player.weaponLevel];
_local1._parent.divisions.gotoAndStop(_local2 - 1);
_local1.dest = (180 / _local2) * (_local2 - 1);
trace(_local1.dest);
_local1.speed = (_local1.dest - _local1._x) / 10;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + _local1.speed;
if ((++_local1.count) == 10) {
delete _local1.onEnterFrame;
}
};
}
};
}
thisRoot = this._parent._parent._parent;
Symbol 662 Button
on (release) {
stopAllSounds();
_parent._parent.event = 3;
_parent._parent.doNextEvent();
_parent._parent.bars.gotoAndPlay("slowIn");
}
Symbol 667 Button
on (release) {
_parent._parent.toggleSound();
}
Symbol 670 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 70));
Symbol 703 MovieClip Frame 10
stop();
Symbol 703 MovieClip Frame 27
gotoAndStop ("normal");
Symbol 703 MovieClip Frame 47
gotoAndStop ("normal");
Symbol 703 MovieClip Frame 64
stop();
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 2
stop();
Symbol 716 MovieClip Frame 3
stop();
Symbol 716 MovieClip Frame 4
play();
Symbol 716 MovieClip Frame 11
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 716 MovieClip Frame 12
play();
Symbol 716 MovieClip Frame 19
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 2
stop();
Symbol 725 MovieClip Frame 3
stop();
Symbol 725 MovieClip Frame 4
play();
Symbol 725 MovieClip Frame 11
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 725 MovieClip Frame 12
play();
Symbol 725 MovieClip Frame 19
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 735 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 2
stop();
Symbol 735 MovieClip Frame 3
stop();
Symbol 735 MovieClip Frame 4
play();
Symbol 735 MovieClip Frame 11
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 735 MovieClip Frame 12
play();
Symbol 735 MovieClip Frame 19
gotoAndStop (1);
this._parent._parent._parent.buttonsActive = true;
Symbol 747 MovieClip Frame 1
stop();
Symbol 747 MovieClip Frame 2
stop();
Symbol 755 Button
on (release) {
gotoAndStop (2);
}
Symbol 763 Button
on (release) {
getURL ("http://www.utterlysuperb.com", "_blank");
}
Symbol 771 Button
on (release) {
gotoAndStop (1);
}
Symbol 775 Button
on (release) {
getURL ("http://www.prosonica.co.uk", "_blank");
}
Symbol 779 Button
on (release) {
getURL ("http://groups.msn.com/dediosmusic", "_blank");
}
Symbol 780 MovieClip Frame 1
stop();
music.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
contact.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
Symbol 780 MovieClip Frame 2
stop();
prosonica.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
dedios.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
back.onRollOver = function () {
if (_parent._parent._parent.buttonsActive) {
if (_parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
Symbol 788 MovieClip Frame 1
this._rotation = Math.random() * 360;
this._xscale = (this._yscale = 50 + (Math.random() * 30));
Symbol 788 MovieClip Frame 11
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
play();
Symbol 792 MovieClip Frame 10
stop();
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 2
Symbol 800 MovieClip Frame 6
stop();
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 2
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 2
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 2
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 2
stop();
Symbol 831 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 852 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 852 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 852 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 852 MovieClip Frame 174
stop();
Symbol 859 MovieClip Frame 1
stop();
Symbol 867 MovieClip Frame 1
gotoAndStop(Math.ceil(Math.random() * 6));
Symbol 879 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 879 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 879 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 879 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 879 MovieClip Frame 44
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
Symbol 879 MovieClip Frame 145
stop();
Symbol 898 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 898 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 898 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 898 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 898 MovieClip Frame 44
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
Symbol 898 MovieClip Frame 143
this._parent._parent.nextLevel();
stop();
Symbol 920 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 920 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 920 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 920 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 920 MovieClip Frame 44
this.livesBonus = this.lBonus;
this._parent._parent.score = this._parent._parent.score + this.lBonus;
this.tScore = this._parent._parent.score;
Symbol 920 MovieClip Frame 144
this._parent._parent.nextLevel();
stop();
Symbol 973 MovieClip Frame 1
submit.onRelease = function () {
var _local1 = _parent;
if ((_local1.username != "YOUR USERNAME") && (_local1.username != "")) {
_local1._parent._parent.sendNewScore(_local1.username);
_local1.exit._visible = false;
gotoAndStop (2);
}
};
stop();
Symbol 973 MovieClip Frame 2
stop();
Symbol 977 Button
on (release) {
_parent._parent.bars.gotoAndPlay("out");
_parent._parent.displayStart();
}
Symbol 978 MovieClip Frame 1
this.shieldBonus = "";
this.sbBonus = "";
this.livesBonus = "";
this.tScore = this._parent._parent.score;
Symbol 978 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 978 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 978 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 978 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 978 MovieClip Frame 59
play();
Symbol 978 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 () {
var _local1 = this;
_local1._x = _local1._x + _local1.xSpeed;
_local1._y = _local1._y + _local1.ySpeed;
_local1.xSpeed = _local1.xSpeed + ((_local1.midX[_local1.posNo] - _local1._x) / 70);
_local1.xSpeed = _local1.xSpeed * 0.8;
_local1.ySpeed = _local1.ySpeed + ((_local1.midY[_local1.posNo] - _local1._y) / 70);
_local1.ySpeed = _local1.ySpeed * 0.8;
if (Math.random() > 0.9) {
_local1.posNo = Math.floor(Math.random() * 5);
}
};
Symbol 978 MovieClip Frame 76
finalScore.endScore = "YOUR FINAL SCORE IS \n" + this._parent._parent.score;
Symbol 978 MovieClip Frame 93
stop();
Symbol 993 Button
on (release) {
_parent._parent.contSound.stop();
_parent._parent.useContinue();
}
Symbol 999 Button
on (release) {
_parent._parent.contSound.stop();
_parent._parent.doNextEvent();
}
Symbol 1042 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 1042 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 1042 MovieClip Frame 130
stop();
Symbol 1042 MovieClip Frame 174
this._parent._parent.bars.gotoAndPlay("out");
this._parent._parent.displayStart();
stop();
Symbol 1048 MovieClip Frame 1
stop();
Symbol 1048 MovieClip Frame 2
stop();
Symbol 1048 MovieClip Frame 3
stop();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 2
stop();
Symbol 1069 MovieClip Frame 3
stop();
Symbol 1069 MovieClip Frame 4
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 2
stop();
Symbol 1082 MovieClip Frame 3
stop();
Symbol 1086 MovieClip Frame 1
this.sRank = 1;
rankUp.symb = "<";
rankDown.symb = ">";
exit.onRelease = function () {
_parent._parent.displayStart();
};
Symbol 1087 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 () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
_local2.gotoAndStop("over");
startScreen.startStars.gotoAndPlay("over");
if (_local2._parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
startScreen.startButton.onRollOut = (startScreen.startButton.onDragOut = (startScreen.startButton.onPress = function () {
this.gotoAndStop(1);
}));
startScreen.creditsButton.onRollOver = function () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
_local2.gotoAndStop("over");
startScreen.creditsStars.gotoAndPlay("over");
if (_local2._parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
startScreen.creditsButton.onRollOut = (startScreen.creditsButton.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.creditsButton.onRelease = function () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
_local2._parent.cText._visible = false;
var _local1 = 0;
while (_local1 < 6) {
_local2._parent["keyButton" + _local1]._visible = false;
_local2._parent["keyVal" + _local1]._visible = false;
_local1++;
}
_local2._visible = false;
_local2._parent.creditsText._visible = true;
_local2._parent.controlsButton._visible = true;
}
};
startScreen.soundToggle.onRollOver = function () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
if (_local2._parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
_local2.gotoAndStop("over");
startScreen.soundStars.gotoAndPlay("over");
}
};
startScreen.soundToggle.onRollOut = (startScreen.soundToggle.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.controlsButton.onRollOver = function () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
_local2.gotoAndStop("over");
startScreen.creditsStars.gotoAndPlay("over");
if (_local2._parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
startScreen.controlsButton.onRollOut = (startScreen.controlsButton.onDragOut = function () {
this.gotoAndStop(1);
});
startScreen.controlsButton.onRelease = function () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
_local2._parent.cText._visible = true;
var _local1 = 0;
while (_local1 < 6) {
_local2._parent["keyButton" + _local1]._visible = true;
_local2._parent["keyVal" + _local1]._visible = true;
_local1++;
}
_local2._visible = false;
_local2._parent.creditsText._visible = false;
_local2._parent.creditsButton._visible = true;
}
};
startScreen.highScoresButton.onRollOver = function () {
var _local2 = this;
if (_local2._parent._parent._parent.buttonsActive) {
_local2.gotoAndStop("over");
startScreen.highScoresStars.gotoAndPlay("over");
if (_local2._parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.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();
}
};
startScreen.happinesssamButton.onRelease = function () {
getURL ("http://www.utterlysuperb.com", "_blank");
};
startScreen.happinesssamButton.onRollOver = function () {
if (this._parent._parent._parent.buttonsActive) {
startScreen.happinesssamStars.gotoAndPlay("over");
if (this._parent._parent._parent.soundOn) {
var _local1 = new Sound();
_local1.attachSound("_lsoundT");
_local1.start();
}
}
};
Symbol 1087 MovieClip Frame 4
stop();
Symbol 1087 MovieClip Frame 5
stop();
Symbol 1087 MovieClip Frame 6
stop();
Symbol 1087 MovieClip Frame 7
stop();
Symbol 1087 MovieClip Frame 8
stop();
Symbol 1087 MovieClip Frame 9
stop();
Symbol 1087 MovieClip Frame 10
stop();
Symbol 1087 MovieClip Frame 11
stop();
Symbol 1087 MovieClip Frame 12
stop();
Symbol 1087 MovieClip Frame 13
stop();
Symbol 1087 MovieClip Frame 14
stop();
Symbol 1087 MovieClip Frame 15
stop();
Symbol 1087 MovieClip Frame 16
stop();
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1089 MovieClip Frame 2
play();
Symbol 1089 MovieClip Frame 6
stop();
Symbol 1089 MovieClip Frame 7
play();
Symbol 1089 MovieClip Frame 11
stop();
Symbol 1089 MovieClip Frame 12
play();
Symbol 1089 MovieClip Frame 40
stop();