Frame 1
this.preloader._width = 0;
this.onEnterFrame = function () {
tbytes = getBytesTotal();
bloaded = getBytesLoaded();
if (bloaded <= tbytes) {
_root.counter.numberValue = (bloaded / tbytes) * 100;
}
if (bloaded == tbytes) {
gotoAndPlay (5);
kill();
}
};
this.obg.onRelease = function () {
getURL ("http://www.outbreakgames.com", "_blank", "GET");
};
kill = function () {
delete this.onEnterFrame;
delete this.counter;
};
stop();
Frame 5
_global.pause = true;
_global.pauseDeploy = true;
_global.sound_effect_volume = 50;
_global.sound_music_volume = 30;
_global.kills = 0;
_global.vision = 0;
_global.funds = 400;
_global.score = 0;
_global.movie_x = 640;
_global.movie_y = 480;
_global.levels = new Array();
var listener = new Object();
listener.onKeyDown = function () {
var _local2 = Key.getCode();
if (_local2 == 80) {
if (_global.pause == false) {
_global.pause = true;
_global.pauseDeploy = true;
} else {
_global.pause = false;
_global.pauseDeploy = false;
}
}
};
Key.addListener(listener);
_root.createEmptyMovieClip("sound_music_mc", -10);
_root.createEmptyMovieClip("sound_effect_mc", -11);
sound_effect = new Sound(_root.sound_effect_mc);
sound_effect.setVolume(_global.sound_effect_volume);
var path_mainbeat = ["mainbeat", "mainbeat", "mainbeat", "intrigue", "intrigue2"];
var path_intrigue = ["mainbeat", "mainbeat", "intrigue", "intrigue2", "heavy"];
var path_intrigue2 = ["mainbeat", "intrigue", "intrigue2", "heavy"];
var path_heavy = ["heavy", "heavy", "groove", "intrigue2"];
var path_groove = ["heavy", "groove", "intrigue", "intrigue"];
var loop_current = "mainbeat";
var loop_next = "";
sound_music = new Sound(_root.sound_music_mc);
sound_music.attachSound("music_mainbeat");
sound_music.setVolume(_global.sound_music_volume);
sound_music.onSoundComplete = function () {
_root.loop_current = _root["path_" + _root.loop_current][random(_root["path_" + _root.loop_current].length)];
sound_music.attachSound("music_" + _root.loop_current);
sound_music.start();
};
sound_music.start();
_root.attachMovie("mainMenu", "mainMenu", 4);
init = function () {
_root.attachMovie("skilldb", "skilldb", -8);
_root.attachMovie("upgradeGenerator", "upgradeGenerator", -7);
_root.attachMovie("healthCaller", "healthCaller", -6);
_root.attachMovie("upgradecaller", "upgradecaller", -5);
_root.attachMovie("badguysender", "badguysender", -4);
_root.attachMovie("healthRegen", "healthRegen", -3);
_root.attachMovie("energyRegen", "energyRegen", -2);
_root.attachMovie("hitDetector", "hitDetector", -1);
_root.attachMovie("backGround", "backGround", 1);
_root.createEmptyMovieClip("stage", 2);
_root.stage.attachMovie("Turret", "Turret", _root.stage.getNextHighestDepth());
_root.stage.Turret._x = _global.movie_x / 2;
_root.stage.Turret._y = _global.movie_y / 2;
_root.attachMovie("messageBoard", "messageBoard", 11);
_root.attachMovie("energyMeter", "energyMeter", 4);
_root.energyMeter._x = 11;
_root.energyMeter._y = 453;
_root.attachMovie("healthMeter", "healthMeter", 5);
_root.healthMeter._x = 11;
_root.healthMeter._y = 438;
_root.attachMovie("level_menu", "level_menu", 6);
_root.createEmptyMovieClip("store", 7);
_root.attachMovie("skillbar", "skillbar", 8);
_root.skillbar._height = _root.skillbar._height * 0.7;
_root.skillbar._width = _root.skillbar._width * 0.7;
_root.skillbar._y = (_global.movie_y - 5) - _root.skillbar._height;
_root.skillbar._x = (_global.movie_x / 2) - (_root.skillbar._width / 2);
_root.attachMovie("scoreboard", "scoreboard", 9);
};
toolTip = function (overObject_f, toolTip_id_f) {
if ((overObject_f != undefined) && (toolTip_id_f != undefined)) {
var _local3 = toolTip_id_f;
this.createEmptyMovieClip("toolTip" + _local3, this.getNextHighestDepth());
this["toolTip" + _local3].mousex = _root._xmouse;
this["toolTip" + _local3].mousey = _root._ymouse;
this["toolTip" + _local3].counter = 0;
this["toolTip" + _local3].maxCounter = 20;
this["toolTip" + _local3].counterComplete = false;
this["toolTip" + _local3].toolTip_id = toolTip_id_f;
this["toolTip" + _local3].overObject = overObject_f;
this["toolTip" + _local3].mouseClick = false;
this["toolTip" + _local3].mouseListener = new Object();
this["toolTip" + _local3].mouseListener.mother = this["toolTip" + _local3];
this["toolTip" + _local3].mouseListener.onMouseDown = function () {
this.mother.mouseClick = true;
};
Mouse.addListener(this["toolTip" + _local3].mouseListener);
this["toolTip" + _local3].onEnterFrame = function () {
if (Orion.mouseOn(this.overObject) && (this.mouseClick == false)) {
if ((this.counter >= this.maxCounter) && (this.counterComplete == false)) {
_root.skillDetail(this.toolTip_id);
this.counterComplete = true;
} else {
this.counter++;
}
} else {
_root["skillDetail" + this.toolTip_id].kill();
this.removeMovieClip();
delete this.onEnterFrame;
}
};
}
};
skillDetail = function (skill_id_f) {
var _local4;
var _local3 = skill_id_f;
i = 0;
while (i <= _global.skilldb.maxSkills) {
if (skill_id_f == _global.skilldb[i].id) {
_local4 = i;
break;
}
i++;
}
this["skillDetail" + _local3].removeMovieClip();
this.attachMovie("skillDetail", "skillDetail" + _local3, this.getNextHighestDepth());
this["skillDetail" + _local3]._x = this._xmouse;
if (this._ymouse > (_global.movie_y - this["skillDetail" + _local3]._height)) {
this["skillDetail" + _local3]._y = _global.movie_y - this["skillDetail" + _local3]._height;
} else {
this["skillDetail" + _local3]._y = this._ymouse;
}
this["skillDetail" + _local3].cost.text = _global.skilldb[_local4].cost;
this["skillDetail" + _local3].reuse.text = _global.skilldb[_local4].reuse;
this["skillDetail" + _local3].skillname.text = _global.skilldb[_local4].skillname;
this["skillDetail" + _local3].skilldescription.text = _global.skilldb[_local4].skilldescription;
this["skillDetail" + _local3]._alpha = 0;
this["skillDetail" + _local3].onEnterFrame = function () {
if (this._alpha >= 100) {
} else {
this._alpha = this._alpha + 8;
}
};
this["skillDetail" + _local3].kill = function () {
this.removeMovieClip();
delete this.onEnterFrame;
};
};
_global.skills = FlashCookie.skills;
if (_global.skills == undefined) {
_global.skills = [1];
}
_global.funds = FlashCookie.funds;
if (_global.funds == undefined) {
_global.funds = 400;
}
_global.levels = FlashCookie.levels;
if (_global.levels == undefined) {
_global.levels = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
_root.saveGame = function () {
FlashCookie.__set__funds(_global.funds);
FlashCookie.__set__skills(_global.skills);
FlashCookie.__set__levels(_global.levels);
FlashCookie.write();
};
startLevel = function (level_f) {
_root.level.removeMovieClip();
_root.attachMovie(level_f, "level", 100);
_global.pause = false;
_global.pauseDeploy = false;
_root.skillbar.activate();
_global.health = _global.maxHealth;
_global.energy = _global.maxEnergy;
_root.stage.Turret._x = 320;
_root.stage.Turret._y = 240;
};
stop();
Symbol 9 MovieClip [vector_storerectangle] Frame 1
stop();
Symbol 41 MovieClip [menuControls] Frame 1
_root.menuControls.mainMenu.onRelease = function () {
_root.menuControls._alpha = 0;
_root.mainMenu._alpha = 100;
removeMovieClip(_root.menuControls);
};
Symbol 61 MovieClip Frame 1
attachMovie("wearline", "wearline", this.getNextHighestDepth());
this.wearline._x = random(40) + 10;
this.wearline._y = random(30) * -1;
this.wearline._xscale = random(40) + 60;
i = 1;
while (i < 8) {
attachMovie("graphic_brownrust", "dirt" + i, this.getNextHighestDepth());
this["dirt" + i]._xscale = random(20) + 40;
this["dirt" + i]._yscale = random(20) + 40;
this["dirt" + i]._alpha = 20;
this["dirt" + i]._rotation = random(180);
this["dirt" + i]._y = random(500) + 65;
this["dirt" + i]._x = 20;
i++;
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 63 MovieClip Frame 1
var go = false;
var nsspeed = 12;
var onnum = 0;
var prevnum = 0;
var pos = true;
var posArray = [-60, -120, -180, -240, -300, -360, -420, -480, -540, -600, -660];
this.ns._y = posArray[0];
onEnterFrame = function () {
if (go) {
this.ns.gotoAndStop(2);
if (pos) {
this.ns._y = this.ns._y - nsspeed;
if (this.ns._y < -600) {
this._parent._parent.carry(this._parent._name);
}
if (this.ns._y <= -660) {
this.ns._y = this.ns._y + 600;
}
i = 0;
while (i < posArray.length) {
if ((this.ns._y <= posArray[i]) && (this.ns._y > posArray[i + 1])) {
prevnum = onnum;
onnum = i;
}
i++;
}
if (onnum != prevnum) {
this.ns._y = posArray[onnum];
this.go = false;
}
}
} else {
this.ns.gotoAndStop(1);
}
};
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
var maxFrames = 40;
var currentFrame = 1;
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this._parent._parent.speed > 0) {
currentFrame = currentFrame + speed;
if (currentFrame < 1) {
currentFrame = 1;
}
if (currentFrame > maxFrames) {
currentFrame = 1;
}
this.legs_move.gotoAndStop(Math.floor(currentFrame));
} else {
this.legs_move.stop();
}
}
};
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
_root.mainMenu.play.onRelease = function () {
_root.init();
delete this.particleGen.onEnterFrame;
this.particleGen.removeMovieClip();
this.particleGen2.removeMovieClip();
this.removeMovieClip();
};
_root.mainMenu.controls.onRelease = function () {
this._alpha = 0;
_root.attachMovie("menuControls", "menuControls", _root.getNextHighestDepth());
};
this.createEmptyMovieClip("particleGen2", this.getNextHighestDepth());
this.createEmptyMovieClip("particleGen", this.getNextHighestDepth());
this.attachMovie("gamenamedesign", "gamenamedesign", this.getNextHighestDepth());
this.particleGen.counter = 0;
this.particleGen.counterMax = 30;
this.particleGen.onEnterFrame = function () {
if (this.counter >= this.counterMax) {
i = 0;
while (i < 8) {
this.id = this.getNextHighestDepth();
this.attachMovie("particle", "particle" + this.id, this.getNextHighestDepth());
this["particle" + this.id].magnitude = 10;
this["particle" + this.id]._x = 420 - random(200);
this["particle" + this.id]._y = 178 - random(8);
this["particle" + this.id].rotation_radian = Trig.getAngle(350, 174, this["particle" + this.id]._x, this["particle" + this.id]._y);
this["particle" + this.id].counter = 0;
this["particle" + this.id].counterMax = 170;
this["particle" + this.id].onEnterFrame = function () {
if (this.counter >= this.counterMax) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
this.counter++;
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
};
this.counter = 0;
i++;
}
} else {
this.counter++;
}
};
this.particleGen2.counter = 0;
this.particleGen2.counterMax = 30;
this.particleGen2.onEnterFrame = function () {
if (this.counter >= this.counterMax) {
i = 0;
while (i < 5) {
this.id = this.getNextHighestDepth();
this.attachMovie("particle", "particle" + this.id, this.getNextHighestDepth());
this["particle" + this.id].rotation_radian = random(360) * (Math.PI/180);
this["particle" + this.id].magnitude = 4;
this["particle" + this.id]._x = 350;
this["particle" + this.id]._y = 175;
this["particle" + this.id].counter = 0;
this["particle" + this.id].counterMax = 190;
this["particle" + this.id].onEnterFrame = function () {
if (this.counter >= this.counterMax) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
this.counter++;
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
};
this.counter = 0;
i++;
}
} else {
this.counter++;
}
};
Symbol 108 MovieClip Frame 1
var c_number = 0;
var numberValue = 0;
carry = function (digit_f) {
if (digit_f == "ones") {
this.tens.na.go = true;
}
};
this.ones.digitPos = "ones";
this.tens.digitPos = "tens";
this.hundreds.digitPos = "hundreds";
var fullNumber = 0;
onEnterFrame = function () {
fullNumber = ones.na.onnum + (tens.na.onnum * 10);
if (fullNumber < numberValue) {
this.ones.na.go = true;
}
};
Symbol 664 MovieClip [__Packages.Trig] Frame 0
class Trig
{
function Trig () {
}
static function getAngle(xFrom, yFrom, xTo, yTo) {
var _local1;
if ((xFrom == xTo) && (yFrom == yTo)) {
_local1 = null;
} else {
var _local3 = xTo - xFrom;
var _local2 = yTo - yFrom;
_local1 = Math.atan2(_local2, _local3);
}
return(_local1);
}
static function objectDistance(object1_f, object2_f) {
return(Math.sqrt(((object2_f._x - object1_f._x) * (object2_f._x - object1_f._x)) + ((object2_f._y - object1_f._y) * (object2_f._y - object1_f._y))));
}
static function trueRadian(radian) {
var _local1;
if (radian > Math.PI) {
_local1 = radian;
while (_local1 > Math.PI) {
_local1 = _local1 - (Math.PI*2);
}
radian = _local1;
}
if (radian < -3.14159265358979) {
_local1 = radian;
while (_local1 < -3.14159265358979) {
_local1 = _local1 + (Math.PI*2);
}
radian = _local1;
}
return(radian);
}
static function positiveRadian(radian) {
radian = trueRadian(radian);
radian = ((radian < 0) ? (radian + (Math.PI*2)) : (radian));
return(radian);
}
static function cWiseRadian(radian1, radian2) {
var _local3;
radian1 = positiveRadian(radian1);
radian2 = positiveRadian(radian2);
if (radian2 >= radian1) {
_local3 = (Math.PI*2) - (radian1 + ((Math.PI*2) - radian2));
} else {
_local3 = ((Math.PI*2) - radian1) + radian2;
}
return(_local3);
}
static function ccWiseRadian(radian1, radian2) {
var _local3;
radian1 = positiveRadian(radian1);
radian2 = positiveRadian(radian2);
if (radian2 >= radian1) {
_local3 = radian1 + ((Math.PI*2) - radian2);
} else {
_local3 = (Math.PI*2) - (radian1 + ((Math.PI*2) - radian2));
}
return(_local3);
}
static function rotationDirection(radian1, radian2) {
var _local4;
var _local5;
var _local3;
radian1 = positiveRadian(radian1);
radian2 = positiveRadian(radian2);
if (radian2 >= radian1) {
_local4 = Math.abs(cWiseRadian(radian2, radian1));
_local5 = Math.abs(ccWiseRadian(radian2, radian1));
if (_local4 < _local5) {
_local3 = -1;
} else {
_local3 = 1;
}
} else {
_local4 = Math.abs(cWiseRadian(radian1, radian2));
_local5 = Math.abs(ccWiseRadian(radian1, radian2));
if (_local4 < _local5) {
_local3 = 1;
} else {
_local3 = -1;
}
}
return(_local3);
}
static function regularNormal(vector, angle) {
var _local1;
var _local6;
var _local3;
var _local4;
var _local2;
angle = trueRadian(angle);
_local2 = trueRadian(vector + Math.PI);
_local1 = positiveRadian(angle + (Math.PI/2));
_local6 = rotationDirection(_local2, _local1);
if (_local6 > 0) {
_local3 = Math.abs(cWiseRadian(_local2, _local1));
} else {
_local3 = Math.abs(ccWiseRadian(_local2, _local1));
}
if (_local3 < (Math.PI/2)) {
_local4 = trueRadian(_local1);
} else {
_local4 = trueRadian(_local1 + Math.PI);
}
return(_local4);
}
static function inverseNormal(vector, angle) {
var _local1;
_local1 = trueRadian(regularNormal(vector, angle) + Math.PI);
return(_local1);
}
static function aoi(vector, angle) {
var _local2;
var _local1;
var _local4;
var _local3;
_local2 = positiveRadian(vector + Math.PI);
_local1 = positiveRadian(regularNormal(vector, angle));
_local4 = rotationDirection(_local2, _local1);
if (_local4 > 0) {
_local3 = Math.abs(cWiseRadian(_local2, _local1));
} else {
_local3 = Math.abs(ccWiseRadian(_local2, _local1));
}
return(aoi);
}
static function vor(vector, angle) {
var _local3;
var _local1;
var _local5;
var _local4;
var _local2;
_local3 = positiveRadian(vector + Math.PI);
_local1 = positiveRadian(regularNormal(vector, angle));
_local5 = rotationDirection(_local3, _local1);
if (_local5 > 0) {
_local4 = Math.abs(cWiseRadian(_local3, _local1));
_local2 = _local1 + _local4;
} else {
_local4 = Math.abs(ccWiseRadian(_local3, _local1));
_local2 = _local1 - _local4;
}
if (_local3 == (_local1 - (Math.PI/2))) {
_local2 = _local3;
}
_local2 = trueRadian(_local2);
return(_local2);
}
}
Symbol 665 MovieClip [__Packages.Orion] Frame 0
class Orion
{
function Orion () {
}
static function mouseOn(Object_f) {
var _local2 = false;
if ((Object_f._xmouse >= 0) && (Object_f._ymouse >= 0)) {
if ((Object_f._xmouse <= Object_f._width) && (Object_f._ymouse <= Object_f._height)) {
_local2 = true;
}
}
return(_local2);
}
}
Symbol 666 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root.level, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[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]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 667 MovieClip [__Packages.FlashCookie] Frame 0
class FlashCookie
{
static var fCookie;
function FlashCookie () {
}
static function get skills() {
fCookie = SharedObject.getLocal("bwData");
return(fCookie.data.skills);
}
static function set skills(skills_f) {
fCookie = SharedObject.getLocal("bwData");
fCookie.data.skills = skills_f;
//return(skills);
}
static function get levels() {
fCookie = SharedObject.getLocal("bwData");
return(fCookie.data.levels);
}
static function set levels(levels_f) {
fCookie = SharedObject.getLocal("bwData");
fCookie.data.levels = levels_f;
//return(levels);
}
static function get funds() {
fCookie = SharedObject.getLocal("bwData");
return(fCookie.data.funds);
}
static function set funds(funds_f) {
fCookie = SharedObject.getLocal("bwData");
fCookie.data.funds = funds_f;
//return(funds);
}
static function write() {
fCookie.flush();
return(true);
}
}
Symbol 127 MovieClip [bullet_acidspit] Frame 1
_root.hitDetector.bulletArray.push("shell" + this.id);
explosion = function (objectHit_f) {
this.id = objectHit_f.getNextHighestDepth();
objectHit_f.attachMovie("acidspit", "acidspit" + this.id, objectHit_f.getNextHighestDepth());
objectHit_f.damageResistance = objectHit_f.damageResistance + 0;
this.sound = new Sound(_root.sound_effect_mc);
this.sound.attachSound("sound_splaqt");
this.sound.start();
objectHit_f["acidspit" + this.id].createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.resizeFactor = (random(30) + 70) * 0.01;
objectHit_f["acidspit" + this.id]._height = objectHit_f["acidspit" + this.id]._height * this.resizeFactor;
objectHit_f["acidspit" + this.id]._width = objectHit_f["acidspit" + this.id]._width * this.resizeFactor;
this.polarityXFactor = ((random(2) == 1) ? -1 : 1);
this.polarityYFactor = ((random(2) == 1) ? -1 : 1);
objectHit_f["acidspit" + this.id]._x = random(Math.floor(objectHit_f._width * 0.3)) * this.polarityXFactor;
objectHit_f["acidspit" + this.id]._y = random(Math.floor(objectHit_f._height * 0.2)) * this.polarityXFactor;
objectHit_f["acidspit" + this.id]._rotation = random(360);
objectHit_f["acidspit" + this.id].activate_mc.counter = 0;
objectHit_f["acidspit" + this.id].activate_mc.maxCounter = 300;
objectHit_f["acidspit" + this.id].activate_mc.objectHit_f = objectHit_f;
objectHit_f["acidspit" + this.id].activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
this.objectHit_f.health = this.objectHit_f.health - 0.01;
if ((this.counter >= this.maxCounter) || (this.objectHit_f.health <= 0)) {
this._parent._alpha = this._parent._alpha - 5;
if (this._parent._alpha <= 0) {
if (this.objectHit_f.health > 0) {
}
this.removeMovieClip();
delete this.onEnterFrame;
}
} else {
this.counter++;
}
}
};
this.removeMovieClip();
this._parent.kill = true;
};
stop();
Symbol 131 MovieClip Frame 3
stop();
Symbol 132 MovieClip [bullet_badguy_red] Frame 1
_root.hitDetector.badguy_bulletArray.push("badguy_shell" + this.id);
stop();
Symbol 132 MovieClip [bullet_badguy_red] Frame 3
damage = this._parent.damage;
_global.health = _global.health - (damage * _root.stage.Turret.damageMod);
_root.stage.Turret.damageIndicator = true;
Symbol 132 MovieClip [bullet_badguy_red] Frame 4
this._parent._visible = false;
this._parent.speed = 0;
this.effect_id = _root.stage.getNextHighestDepth();
_root.stage.createEmptyMovieClip("effect" + this.effect_id, this.effect_id);
_root.stage["effect" + this.effect_id].counter = 0;
_root.stage["effect" + this.effect_id].maxCounter = 40;
_root.stage["effect" + this.effect_id].onEnterFrame = function () {
this.counter++;
_root.stage.Turret._rotation = _root.stage.Turret._rotation + 16;
if ((this.counter >= this.maxCounter) || (_global.health <= 0)) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
this.removeMovieClip();
stop();
Symbol 134 MovieClip [bullet_beetlebullet] Frame 1
stop();
Symbol 134 MovieClip [bullet_beetlebullet] Frame 2
stop();
Symbol 134 MovieClip [bullet_beetlebullet] Frame 3
removeMovieClip(this);
stop();
Symbol 136 MovieClip [icebullet] Frame 1
_root.hitDetector.bulletArray.push("shell" + this.id);
explosion = function (objectHit_f) {
if (objectHit_f.frozen != true) {
this.id = _root.stage.getNextHighestDepth();
_root.stage.attachMovie("icecube", "icecube" + this.id, _root.stage.getNextHighestDepth());
_root.stage["icecube" + this.id]._x = objectHit_f._x;
_root.stage["icecube" + this.id]._y = objectHit_f._y;
_root.stage["icecube" + this.id]._width = objectHit_f._width * 0.7;
_root.stage["icecube" + this.id]._height = objectHit_f._height * 0.7;
objectHit_f.iceDefense = 0.75;
if ((objectHit_f.damageMod - objectHit_f.iceDefense) < 0) {
objectHit_f.iceDefense = objectHit_f.damageMod;
}
objectHit_f.damageMod = objectHit_f.damageMod - objectHit_f.iceDefense;
objectHit_f.speed = 0;
objectHit_f.frozen = true;
objectHit_f.badguy.stop();
objectHit_f.badguyminer.stop();
objectHit_f.badguypincher.stop();
objectHit_f.badguyflyer.stop();
this.sound = new Sound(_root.sound_effect_mc);
this.sound.attachSound("sound_crackle");
this.sound.start();
_root.stage["icecube" + this.id].createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
_root.stage["icecube" + this.id].activate_mc.counter = 0;
_root.stage["icecube" + this.id].activate_mc.maxCounter = 240;
_root.stage["icecube" + this.id].activate_mc.objectHit_f = objectHit_f;
_root.stage["icecube" + this.id].activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
this.objectHit_f.speed = 0;
this._parent._x = this.objectHit_f._x;
this._parent._y = this.objectHit_f._y;
if (this._parent.getDepth < this.objectHit_f) {
this._parent.swapDepths(this.objectHit_f);
}
if ((this.counter >= this.maxCounter) || (this.objectHit_f.health <= 0)) {
this._parent._alpha = this._parent._alpha - 5;
if (this._parent._alpha <= 0) {
if (this.objectHit_f.health > 0) {
this.objectHit_f.badguy.play();
this.objectHit_f.badguyminer.play();
this.objectHit_f.badguypincher.play();
this.objectHit_f.badguyflyer.play();
this.objectHit_f.speed = 1;
this.objectHit_f.frozen = false;
this.objectHit_f.damageMod = this.objectHit_f.damageMod + this.objectHit_f.iceDefense;
this.objectHit_f.effectResistance = false;
}
this.removeMovieClip();
delete this.onEnterFrame;
}
} else {
this.counter++;
}
}
};
}
this.removeMovieClip();
this._parent.kill = true;
};
stop();
Symbol 138 MovieClip [bullet1] Frame 1
stop();
Symbol 138 MovieClip [bullet1] Frame 2
stop();
Symbol 138 MovieClip [bullet1] Frame 3
removeMovieClip(this);
stop();
Symbol 140 MovieClip [bullet2] Frame 1
stop();
Symbol 140 MovieClip [bullet2] Frame 3
damage = 8;
_global.health = _global.health - damage;
_root.stage.Turret.damageIndicator = true;
removeMovieClip(this);
stop();
Symbol 219 MovieClip Frame 31
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 221 MovieClip [combustionbullet] Frame 1
_root.hitDetector.bulletArray.push("shell" + this.id);
explosion = function (objectHit_f) {
_root.stage.createEmptyMovieClip("topClip", _root.stage.getNextHighestDepth());
this._parent.swapDepths(_root.stage.topClip);
_root.stage.topClip.removeMovieClip();
this.sound = new Sound(_root.sound_effect_mc);
this.sound.attachSound("sound_boom");
this.sound.start();
this.damage = 4;
this.effect_threshold = 50;
this._parent.magnitude = 0;
h = 0;
while (h < _root.hitDetector.badGuyArray.length) {
if (_root.stage[_root.hitDetector.badGuyArray[h]].health > 0) {
this.distance = Trig.objectDistance(_root.stage[_root.hitDetector.badGuyArray[h]], objectHit_f);
if (this.distance <= this.effect_threshold) {
this.damageMod = this.damage;
_root.stage[_root.hitDetector.badGuyArray[h]].health = _root.stage[_root.hitDetector.badGuyArray[h]].health - (this.damageMod * _root.stage[_root.hitDetector.badGuyArray[h]].damageMod);
}
}
h++;
}
this.gotoAndPlay(2);
};
stop();
Symbol 221 MovieClip [combustionbullet] Frame 29
this.removeMovieClip();
this._parent.kill = true;
Symbol 223 MovieClip [drillerbullet] Frame 1
stop();
Symbol 223 MovieClip [drillerbullet] Frame 2
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.bulletArray.push("shell" + _root.hitDetector.bulletcounter);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("drillerbullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = this._x;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 13;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 0.3;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = this._parent._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = this._parent._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = this._parent._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = this._parent._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 80;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
_root.hitDetector.bulletcounter++;
removeMovieClip(this);
stop();
Symbol 225 MovieClip [minebullet] Frame 1
_root.hitDetector.bulletArray.push("shell" + this.id);
explosion = function (objectHit_f) {
_root.stage.createEmptyMovieClip("topClip", _root.stage.getNextHighestDepth());
this._parent.swapDepths(_root.stage.topClip);
_root.stage.topClip.removeMovieClip();
this.sound = new Sound(_root.sound_effect_mc);
this.sound.attachSound("sound_boom");
this.sound.start();
this.damage = 4;
this.effect_threshold = 70;
h = 0;
while (h < _root.hitDetector.badGuyArray.length) {
if (_root.stage[_root.hitDetector.badGuyArray[h]].health > 0) {
this.distance = Trig.objectDistance(_root.stage[_root.hitDetector.badGuyArray[h]], this._parent);
if (this.distance <= this.effect_threshold) {
this.damageMod = this.damage;
_root.stage[_root.hitDetector.badGuyArray[h]].health = _root.stage[_root.hitDetector.badGuyArray[h]].health - this.damageMod;
if (_root.stage[_root.hitDetector.badGuyArray[h]].health <= 0) {
_root.stage[_root.hitDetector.badGuyArray[h]].speed = 0;
_root.stage[_root.hitDetector.badGuyArray[h]]._alpha = 100;
_root.stage[_root.hitDetector.badGuyArray[h]].badguyflyer.gotoAndPlay("blood");
_root.stage[_root.hitDetector.badGuyArray[h]].badguypincher.gotoAndPlay("blood");
_root.stage[_root.hitDetector.badGuyArray[h]].badguy.gotoAndPlay("blood");
_root.stage[_root.hitDetector.badGuyArray[h]].badguyminer.gotoAndPlay("blood");
_global.score = _global.score + _root.stage[_root.hitDetector.badGuyArray[h]].score;
_global.funds = _global.funds + _root.stage[_root.hitDetector.badGuyArray[h]].funds;
}
}
}
h++;
}
this.gotoAndPlay(2);
};
stop();
Symbol 225 MovieClip [minebullet] Frame 29
this.removeMovieClip();
this._parent.kill = true;
Symbol 227 MovieClip [needlebullet] Frame 1
stop();
Symbol 227 MovieClip [needlebullet] Frame 2
stop();
Symbol 227 MovieClip [needlebullet] Frame 3
removeMovieClip(this);
stop();
Symbol 229 MovieClip [stingerbullet] Frame 1
stop();
Symbol 229 MovieClip [stingerbullet] Frame 2
stop();
Symbol 229 MovieClip [stingerbullet] Frame 3
removeMovieClip(this);
stop();
Symbol 231 MovieClip [zapbullet] Frame 1
stop();
Symbol 231 MovieClip [zapbullet] Frame 2
stop();
Symbol 231 MovieClip [zapbullet] Frame 3
removeMovieClip(this);
stop();
Symbol 239 MovieClip Frame 10
stop();
Symbol 246 MovieClip [badguy] Frame 1
this.legs.speed = 2.8;
this._parent.onTop = false;
this._parent.solid = true;
stop();
Symbol 246 MovieClip [badguy] Frame 49
gotoAndPlay (1);
Symbol 246 MovieClip [badguy] Frame 50
var counter = 0;
var countermax = 120;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
this.onTop = false;
Symbol 246 MovieClip [badguy] Frame 74
counter++;
Symbol 246 MovieClip [badguy] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 246 MovieClip [badguy] Frame 87
this._parent.kill = true;
removeMovieClip(this);
stop();
Symbol 246 MovieClip [badguy] Frame 117
maxDamage = 20;
mitigation = Trig.objectDistance(this._parent, _root.stage.Turret) - 60;
if (mitigation < 0) {
mitigation = 0;
}
if ((maxDamage - mitigation) < 0) {
damage = 0;
} else {
_root.stage.Turret.damageIndicator = true;
damage = maxDamage - mitigation;
}
_global.health = _global.health - damage;
this._parent.health = 0;
this._parent.dead = true;
this._parent.score = 0;
this._parent.funds = 0;
this._parent.onTop = true;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_boom");
this.sfx_sound.start();
this._parent.solid = false;
Symbol 246 MovieClip [badguy] Frame 147
this._parent.kill = true;
this._parent.dead = false;
removeMovieClip(this);
Symbol 255 MovieClip [badguyannoyer] Frame 1
this.legs.speed = 2.8;
this._parent.onTop = true;
this._parent.solid = false;
attachMovie("skill_badguy_confuse", "skill1", this.getNextHighestDepth());
confuse = function (target_f) {
this.skill1.activate(target_f);
};
attachMovie("skill_badguy_skillTap", "skill2", this.getNextHighestDepth());
skillTap = function (target_f) {
this.skill2.activate(target_f);
};
attachMovie("skill_badguy_prick", "skill3", this.getNextHighestDepth());
prick = function (target_f) {
this.skill3.activate(target_f);
};
stop();
Symbol 255 MovieClip [badguyannoyer] Frame 49
gotoAndPlay (1);
Symbol 255 MovieClip [badguyannoyer] Frame 50
var counter = 0;
var countermax = 120;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
this._parent.onTop = false;
this.onTop = false;
Symbol 255 MovieClip [badguyannoyer] Frame 74
counter++;
Symbol 255 MovieClip [badguyannoyer] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 255 MovieClip [badguyannoyer] Frame 87
this._parent.kill = true;
removeMovieClip(this);
stop();
Symbol 264 MovieClip [badguyblack_boss] Frame 1
this.legs.speed = 2;
this._parent.onTop = false;
this._parent.solid = true;
attachMovie("skill_badguy_rhinobump", "skill1", this.getNextHighestDepth());
attachMovie("skill_badguy_bulletshield", "skill2", this.getNextHighestDepth());
attachMovie("skill_badguy_speedboost", "skill3", this.getNextHighestDepth());
attachMovie("skill_badguy_playergravity", "skill4", this.getNextHighestDepth());
fire = function () {
this.skill1.activate();
};
shield = function () {
this.skill2.activate();
};
speedboost = function () {
this.skill3.activate();
};
playergravity = function () {
this.skill4.activate();
};
stop();
Symbol 264 MovieClip [badguyblack_boss] Frame 49
gotoAndPlay (1);
Symbol 264 MovieClip [badguyblack_boss] Frame 50
var counter = 0;
var countermax = 120;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
Symbol 264 MovieClip [badguyblack_boss] Frame 74
counter++;
Symbol 264 MovieClip [badguyblack_boss] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 264 MovieClip [badguyblack_boss] Frame 87
this._parent.kill = true;
this.removeMovieClip();
stop();
Symbol 276 MovieClip Frame 2
if (this._parent._parent.damageIndicator != true) {
gotoAndPlay(this._currentframe - 1);
} else {
play();
}
Symbol 276 MovieClip Frame 13
this._parent._parent.damageIndicator = false;
this.gotoAndPlay(1);
Symbol 276 MovieClip Frame 14
this.flying = true;
Symbol 276 MovieClip Frame 24
if (this.flying == true) {
this.gotoAndPlay(this._currentframe - 2);
}
Symbol 283 MovieClip [badguyflyer] Frame 1
this.legs.speed = 1.6;
this._parent.onTop = false;
this._parent.solid = true;
Symbol 283 MovieClip [badguyflyer] Frame 30
gotoAndPlay (1);
Symbol 283 MovieClip [badguyflyer] Frame 31
Symbol 283 MovieClip [badguyflyer] Frame 40
gotoAndPlay ("fire");
Symbol 283 MovieClip [badguyflyer] Frame 50
var counter = 0;
var countermax = 60;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
this._parent.onTop = false;
Symbol 283 MovieClip [badguyflyer] Frame 74
counter++;
Symbol 283 MovieClip [badguyflyer] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 283 MovieClip [badguyflyer] Frame 87
this._parent.kill = true;
removeMovieClip(this);
stop();
Symbol 283 MovieClip [badguyflyer] Frame 88
this.flyer.body.gotoAndPlay("fly");
this.flyer.legs.speed = 0.2;
this._parent.onTop = true;
this._parent.solid = false;
Symbol 283 MovieClip [badguyflyer] Frame 102
gotoAndPlay(this._currentframe - 1);
this._parent.flying = true;
Symbol 283 MovieClip [badguyflyer] Frame 104
this.flyer.body.flying = false;
this._parent.solid = true;
Symbol 283 MovieClip [badguyflyer] Frame 124
this._parent.flying = false;
gotoAndPlay (1);
Symbol 283 MovieClip [badguyflyer] Frame 125
maxDamage = 20;
mitigation = Trig.objectDistance(this._parent, _root.Turret) - 33;
if (mitigation < 0) {
mitigation = 0;
}
if ((maxDamage - mitigation) < 0) {
damage = 0;
} else {
damage = maxDamage - mitigation;
}
_root.healthCaller.healthBar._width = _root.healthCaller.healthBar._width - damage;
this._parent.health = 0;
this._parent.onTop = true;
Symbol 283 MovieClip [badguyflyer] Frame 148
this._parent.kill = true;
removeMovieClip(this);
Symbol 289 MovieClip Frame 2
if (this._parent._parent.damageIndicator != true) {
gotoAndPlay(this._currentframe - 1);
} else {
play();
}
Symbol 289 MovieClip Frame 13
this._parent._parent.damageIndicator = false;
Symbol 291 MovieClip [badguyhealer] Frame 1
this.legs.speed = 2;
this._parent.onTop = false;
this._parent.solid = true;
attachMovie("skill_badguy_heal", "skill1", this.getNextHighestDepth());
heal = function (target_f) {
this.skill1.activate(target_f);
};
stop();
Symbol 291 MovieClip [badguyhealer] Frame 49
gotoAndPlay (1);
Symbol 291 MovieClip [badguyhealer] Frame 50
var counter = 0;
var countermax = 120;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
this.onTop = false;
Symbol 291 MovieClip [badguyhealer] Frame 74
counter++;
Symbol 291 MovieClip [badguyhealer] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 291 MovieClip [badguyhealer] Frame 87
this._parent.kill = true;
this.removeMovieClip();
stop();
Symbol 297 MovieClip [badguyminer] Frame 1
this.legs.speed = 2.8;
this._parent.onTop = false;
this._parent.solid = false;
stop();
Symbol 297 MovieClip [badguyminer] Frame 49
gotoAndPlay (1);
Symbol 297 MovieClip [badguyminer] Frame 50
var counter = 0;
var countermax = 120;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
this.onTop = false;
Symbol 297 MovieClip [badguyminer] Frame 74
counter++;
Symbol 297 MovieClip [badguyminer] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 297 MovieClip [badguyminer] Frame 87
this._parent.kill = true;
removeMovieClip(this);
stop();
Symbol 297 MovieClip [badguyminer] Frame 106
_root.hitDetector.touch_Counter++;
this.local_Counter = _root.hitDetector.touch_Counter;
_root.stage.createEmptyMovieClip("touch_object" + _root.hitDetector.touch_Counter, _root.stage.getNextHighestDepth());
_root.stage["touch_object" + _root.hitDetector.touch_Counter].attachMovie("touch_mine", "item", _root.stage.getNextHighestDepth());
_root.stage["touch_object" + _root.hitDetector.touch_Counter]._x = this._parent._x;
_root.stage["touch_object" + _root.hitDetector.touch_Counter]._y = this._parent._y;
_root.stage["touch_object" + _root.hitDetector.touch_Counter].item.id = this.local_Counter;
_root.stage["touch_object" + _root.hitDetector.touch_Counter]._rotation = random(360);
this._parent.swapDepths(_root.stage["touch_object" + _root.hitDetector.touch_Counter]);
Symbol 297 MovieClip [badguyminer] Frame 116
this._parent.speed = 1;
this.gotoAndPlay(1);
Symbol 297 MovieClip [badguyminer] Frame 117
maxDamage = 20;
mitigation = Trig.objectDistance(this._parent, _root.stage.Turret) - 33;
if (mitigation < 0) {
mitigation = 0;
}
if ((maxDamage - mitigation) < 0) {
damage = 0;
} else {
_root.stage.Turret.damageIndicator = true;
damage = maxDamage - mitigation;
}
_global.health = _global.health - damage;
this._parent.health = 0;
this._parent.onTop = true;
this.sfx_sound = new Sound();
this.sfx_sound.attachSound("boom");
this.sfx_sound.start();
Symbol 297 MovieClip [badguyminer] Frame 140
this._parent.kill = true;
removeMovieClip(this);
Symbol 301 MovieClip [b2_pincher_move] Frame 95
gotoAndPlay (1);
Symbol 304 MovieClip Frame 2
if (this._parent._parent.damageIndicator != true) {
gotoAndPlay(this._currentframe - 1);
} else {
play();
}
Symbol 304 MovieClip Frame 13
this._parent._parent.damageIndicator = false;
Symbol 312 MovieClip [badguypincher] Frame 1
this.legs.speed = 1.7;
this._parent.solid = true;
this._parent.onTop = false;
Symbol 312 MovieClip [badguypincher] Frame 30
gotoAndPlay (1);
Symbol 312 MovieClip [badguypincher] Frame 31
Symbol 312 MovieClip [badguypincher] Frame 40
gotoAndPlay ("fire");
Symbol 312 MovieClip [badguypincher] Frame 50
var counter = 0;
var countermax = 60;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this._parent.solid = false;
this.onTop = false;
this.blood._rotation = this._parent.blood_rotation;
Symbol 312 MovieClip [badguypincher] Frame 74
counter++;
Symbol 312 MovieClip [badguypincher] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 312 MovieClip [badguypincher] Frame 87
this._parent.kill = true;
removeMovieClip(this);
stop();
Symbol 312 MovieClip [badguypincher] Frame 88
this.pinchers.gotoAndPlay("pinch");
this.legs.speed = 2;
Symbol 312 MovieClip [badguypincher] Frame 93
damage = 10;
_global.health = _global.health - damage;
_root.stage.Turret.damageIndicator = true;
Symbol 312 MovieClip [badguypincher] Frame 124
gotoAndPlay (1);
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 10
stop();
Symbol 318 MovieClip Frame 20
this._visible = false;
Symbol 321 MovieClip Frame 1
this.steelskin._visible = false;
Symbol 321 MovieClip Frame 3
if (this._parent._parent.damageIndicator != true) {
gotoAndPlay(this._currentframe - 1);
} else {
if (this.steelskin._visible == true) {
this.sound = new Sound(_root.sound_effect_mc);
this.sound.attachSound("sound_clang");
this.sound.start();
}
play();
}
Symbol 321 MovieClip Frame 14
this._parent._parent.damageIndicator = false;
this.gotoAndPlay(2);
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 10
stop();
Symbol 324 MovieClip Frame 20
this._visible = false;
Symbol 326 MovieClip Frame 1
this.steelskin._visible = false;
Symbol 327 MovieClip [badguyred] Frame 1
this.legs.speed = 2;
this._parent.onTop = false;
this._parent.solid = true;
attachMovie("skill_badguy_spinner", "skill1", this.getNextHighestDepth());
attachMovie("skill_badguy_steelskin", "skill2", this.getNextHighestDepth());
fire = function () {
this.skill1.activate();
};
shield = function () {
this.skill2.activate();
};
stop();
Symbol 327 MovieClip [badguyred] Frame 49
gotoAndPlay (1);
Symbol 327 MovieClip [badguyred] Frame 50
var counter = 0;
var countermax = 120;
this.sound_squish = new Sound();
this.sound_squish.attachSound("sound_squish");
this.sound_squish.start();
this.blood._rotation = this._parent.blood_rotation;
this._parent.solid = false;
Symbol 327 MovieClip [badguyred] Frame 74
counter++;
Symbol 327 MovieClip [badguyred] Frame 75
if (counter < countermax) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 327 MovieClip [badguyred] Frame 87
this._parent.kill = true;
this.removeMovieClip();
stop();
Symbol 331 MovieClip [effect_shockwave] Frame 10
this.removeMovieClip();
Symbol 344 MovieClip [graphic_mushroom_patch] Frame 1
stop();
Symbol 355 MovieClip [skill_18] Frame 1
var recharging = false;
var cost = 1.5;
var reuse = 45;
var skill_id = 18;
var skillname = "Acid Spit";
var skilldescription = "Projectile Attack. On impact acid causes corrodes the target for a short moderate duration";
var price = 750;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.turretFire.gotoAndPlay(1);
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("bullet_acidspit", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1.id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_chirp");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 13;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 0.2 + _root.stage.Turret.damageModifier;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage.Turret._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 55;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 361 MovieClip [skill_1] Frame 1
var recharging = false;
var cost = 1.2;
var reuse = 15;
var skill_id = 1;
var skillname = "Beetle Bullet";
var skilldescription = "Projectile Attack. Player launches a medium velocity, medium damage projectile";
var price = 250;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.turretFire.gotoAndPlay(1);
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.bulletArray.push("shell" + _root.hitDetector.bulletcounter);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("bullet_beetlebullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_chirp");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 1 + _root.stage.Turret.damageModifier;
_root.stage["shell" + _root.hitDetector.bulletcounter].strength = 100;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage.Turret._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 70;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
this.skillbutton.onRollOver = function () {
_root.toolTip(this, this._parent.skill_id);
};
stop();
Symbol 365 MovieClip [skill_2] Frame 1
var recharging = false;
var cost = 2;
var reuse = 480;
var skill_id = 2;
var skillname = "Black Armor";
var skilldescription = "Armor skill, player begins loosing health over time, all ranged attacks receive a moderate damage bonus.";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.damageModifier = _root.stage.Turret.damageModifier + 1.4;
_root.stage.Turret.p_bug.body.blackarmor.activate = true;
this.activate_mc.removeMovieClip();
this.createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.activate_mc.counter = 0;
this.activate_mc.maxCounter = 480;
this.activate_mc.regen = -0.05;
this.activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
if (_global.health > this.regen) {
_global.health = _global.health + this.regen;
}
if (this.counter > this.maxCounter) {
_root.stage.Turret.damageModifier = _root.stage.Turret.damageModifier + -1.4;
_root.stage.Turret.p_bug.body.blackarmor.activate = false;
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 369 MovieClip [skill_3] Frame 1
var recharging = false;
var cost = 5.5;
var reuse = 360;
var skill_id = 3;
var skillname = "Combustion";
var skilldescription = "Projectile Attack. Chemicals combine and explode on enemy contact causing a high ammount of damage to all nearby enemies. ";
var price = 750;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].swapDepths(_root.stage.Turret);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("combustionbullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1.id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_buwa");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 0;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 1;
_root.stage["shell" + _root.hitDetector.bulletcounter].strength = 140;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage.Turret._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 40;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 371 MovieClip [skill_19] Frame 1
var recharging = false;
var cost = 2;
var reuse = 20;
var skill_id = 19;
var skillname = "Crush";
var skilldescription = "Pincher attack. High damage close range attack";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.player_pinchers.play();
this.damage = 3.6;
this.hit = false;
h = 0;
while (h < _root.hitDetector.badGuyArray.length) {
this.targetAngle = Trig.getAngle(_root.stage.Turret._x, _root.stage.Turret._y, _root.stage[_root.hitDetector.badGuyArray[h]]._x, _root.stage[_root.hitDetector.badGuyArray[h]]._y);
this.turretAngle = _root.stage.Turret._rotation * (Math.PI/180);
if (Math.abs(this.targetAngle - this.turretAngle) < 0.7) {
if (Trig.objectDistance(_root.stage[_root.hitDetector.badGuyArray[h]], _root.stage.Turret) < (((_root.stage[_root.hitDetector.badGuyArray[h]]._height + _root.stage[_root.hitDetector.badGuyArray[h]]._width) / 2) * 1.2)) {
if (_root.stage[_root.hitDetector.badGuyArray[h]].health > 0) {
_root.stage[_root.hitDetector.badGuyArray[h]].health = _root.stage[_root.hitDetector.badGuyArray[h]].health - (this.damage * _root.stage[_root.hitDetector.badGuyArray[h]].damageMod);
_root.stage[_root.hitDetector.badGuyArray[h]].damageIndicator = true;
this.hit = true;
}
}
}
h++;
}
if (!this.hit) {
_root.stage.Turret.player_pinchers.sound = new Sound(_root.sound_effect_mc);
_root.stage.Turret.player_pinchers.sound.attachSound("sound_chop");
_root.stage.Turret.player_pinchers.sound.start();
} else {
_root.stage.Turret.player_pinchers.sound = new Sound(_root.sound_effect_mc);
_root.stage.Turret.player_pinchers.sound.attachSound("sound_chomp");
_root.stage.Turret.player_pinchers.sound.start();
}
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
this.init = function () {
if (_root.stage.Turret.player_pinchers == undefined) {
_root.stage.Turret.attachMovie("player_pinchers", "player_pinchers", _root.stage.Turret.getNextHighestDepth());
if (_root.stage.Turret.player_pinchers.getDepth() > _root.stage.Turret.p_bug.getDepth()) {
_root.stage.Turret.player_pinchers.swapDepths(_root.stage.Turret.p_bug);
}
_root.stage.Turret.player_pinchers._x = 28;
_root.stage.Turret.player_pinchers._y = -10;
_root.stage.Turret.player_pinchers._xscale = 15;
_root.stage.Turret.player_pinchers._yscale = 15;
_root.stage.Turret.player_pinchers._rotation = 90;
}
};
kill = function () {
unloadMovie (_root.stage.Turret.player_pinchers);
this.removeMovieClip();
};
if (this.initBool) {
init();
}
stop();
this.pinchers.stop();
Symbol 375 MovieClip [skill_4] Frame 1
var recharging = false;
var cost = 2.5;
var reuse = 22;
var skill_id = 4;
var skillname = "Driller";
var skilldescription = "Projectile Attack. Drills through all enemies along fired trajectory causing a moderate amount of damage.";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.turretFire.gotoAndPlay(1);
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.bulletArray.push("shell" + _root.hitDetector.bulletcounter);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("drillerbullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_shwoop");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 13;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 1 + _root.stage.Turret.damageModifier;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage.Turret._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 80;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 377 MovieClip [skill_20] Frame 1
var recharging = false;
var cost = 0;
var reuse = 0;
var skill_id = 20;
var skillname = "Beetle Energy Pod";
var skilldescription = "Player has 5 extra energy while equiped";
var price = 1000;
var authorize = true;
this.activated = true;
var counter = 0;
activate = function () {
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.init = function () {
_global.maxEnergy = 18;
};
kill = function () {
_global.maxEnergy = 12;
this.removeMovieClip();
};
if (this.initBool) {
init();
}
this.skillbutton.onRelease = function () {
};
stop();
Symbol 381 MovieClip [skill_5] Frame 1
var recharging = false;
var cost = 3;
var reuse = 120;
var skill_id = 5;
var skillname = "Liquid Nitro Spit";
var skilldescription = "Projectile Attack. Enemy hit by attack is frozen for a short period of time.";
var price = 1000;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.turretFire.gotoAndPlay(1);
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("icebullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1.id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("technoblip");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 8;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 0;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage.Turret._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 50;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 383 MovieClip [skill_6] Frame 1
var recharging = false;
var cost = 5;
var reuse = 480;
var skill_id = 6;
var skillname = "Ground Mine";
var skilldescription = "Player sets a stationary mine at current location. When triggered, mine causes a high ammount of damage to all nearby enemies";
var price = 750;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].swapDepths(_root.stage.Turret);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("minebullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1.id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_chakink");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].stationary = true;
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 0;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 13;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 0;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].counter = 0;
_root.stage["shell" + _root.hitDetector.bulletcounter].maxCounter = 800;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter >= this.maxCounter) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
this.kill = true;
this.removeMovieClip();
delete this.onEnterFrame;
}
} else {
this.counter++;
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 385 MovieClip [skill_7] Frame 1
var recharging = false;
var cost = 1;
var reuse = 120;
var skill_id = 7;
var skillname = "Catabolic Feast";
var skilldescription = "Player converts health to energy";
var price = 250;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.damageIndicator = true;
if (_global.health > 25) {
_global.health = _global.health - 15;
} else {
_global.health = 1;
}
_global.energy = _global.energy + 5;
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 389 MovieClip [skill_8] Frame 1
var recharging = false;
var cost = 0.6;
var reuse = 6;
var skill_id = 8;
var skillname = "Needle";
var skilldescription = "Projectile Attack. Low damage needle spine is fired at a high velocity.";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.turretFire.gotoAndPlay(1);
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.bulletArray.push("shell" + _root.hitDetector.bulletcounter);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("needlebullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_needle");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 16;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 0.8 + _root.stage.Turret.damageModifier;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage.Turret._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 120;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 391 MovieClip [skill_9] Frame 1
var recharging = false;
var cost = 0.5;
var reuse = 60;
var skill_id = 9;
var skillname = "180";
var skilldescription = "Player quickly reverses direction";
var price = 250;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
this.activate_mc.removeMovieClip();
this.createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.activate_mc.counter = 1;
this.activate_mc.maxCounter = 8;
this.activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
_root.stage.Turret._rotation = _root.stage.Turret._rotation + (180 / this.maxCounter);
if (this.counter >= this.maxCounter) {
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 393 MovieClip [skill_10] Frame 1
var recharging = false;
var cost = 6;
var reuse = 600;
var skill_id = 10;
var skillname = "Beetle Regeneration";
var skilldescription = "Player gains moderate amount of health over time";
var price = 250;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.speedBoost = _root.stage.Turret.speedBoost + -8;
_root.stage.Turret.p_bug.body.regen.activate = true;
this.speedboost_mc.removeMovieClip();
this.createEmptyMovieClip("speedboost_mc", this.getNextHighestDepth());
this.speedboost_mc.counter = 0;
this.speedboost_mc.maxCounter = 180;
this.speedboost_mc.regen = 0.1;
this.speedboost_mc.onEnterFrame = function () {
_global.health = _global.health + this.regen;
if (this.counter > this.maxCounter) {
_root.stage.Turret.speedBoost = _root.stage.Turret.speedBoost + 8;
_root.stage.Turret.p_bug.body.regen.activate = false;
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 395 MovieClip [skill_11] Frame 1
var recharging = false;
var cost = 2;
var reuse = 90;
var skill_id = 11;
var skillname = "Ward";
var skilldescription = "All enemies within range are repelled.";
var price = 750;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
this.activate_mc.removeMovieClip();
this.createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.activate_mc.sound = new Sound(_root.sound_effect_mc);
this.activate_mc.sound.attachSound("sound_thewoo");
this.activate_mc.sound.start();
this.activate_mc.counter = 0;
this.activate_mc.maxCounter = 4;
this.activate_mc.force = 550;
this.activate_mc.target_range = 40;
this.activate_mc.effect_threshold = 200;
this.effect_id = _root.stage.getNextHighestDepth();
_root.stage.attachMovie("effect_shockwave", "effect" + this.effect_id, _root.stage.getNextHighestDepth());
_root.stage["effect" + this.effect_id]._x = _root.stage.Turret._x;
_root.stage["effect" + this.effect_id]._y = _root.stage.Turret._y;
_root.stage["effect" + this.effect_id].swapDepths(_root.stage.Turret);
this.activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
h = 0;
while (h < _root.hitDetector.badGuyArray.length) {
if (_root.stage[_root.hitDetector.badGuyArray[h]].health > 0) {
this.distance = Trig.objectDistance(_root.stage[_root.hitDetector.badGuyArray[h]], _root.stage.Turret);
if (this.distance <= this.effect_threshold) {
this.distanceMod = this.target_range / this.distance;
this.magnitude = this.force * this.distanceMod;
this.targetAngle = Trig.getAngle(_root.stage.Turret._x, _root.stage.Turret._y, _root.stage[_root.hitDetector.badGuyArray[h]]._x, _root.stage[_root.hitDetector.badGuyArray[h]]._y);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage[_root.hitDetector.badGuyArray[h]]._x = _root.stage[_root.hitDetector.badGuyArray[h]]._x + this.xforce;
_root.stage[_root.hitDetector.badGuyArray[h]]._y = _root.stage[_root.hitDetector.badGuyArray[h]]._y + this.yforce;
}
}
h++;
}
}
if (this.counter > this.maxCounter) {
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 397 MovieClip [skill_12] Frame 1
var recharging = false;
var cost = 3;
var reuse = 320;
var skill_id = 12;
var skillname = "Rhino Armor";
var skilldescription = "";
var price = 500;
var authorize = false;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.damageModifier = _root.stage.Turret.damageModifier + 1;
_root.stage.Turret.p_bug.body.rhinoarmor.activate = true;
this.activate_mc.removeMovieClip();
this.createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.activate_mc.counter = 0;
this.activate_mc.maxCounter = 320;
this.activate_mc.regen = -0.15;
this.activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
if (_global.health > this.regen) {
_global.health = _global.health + this.regen;
}
if (this.counter > this.maxCounter) {
_root.stage.Turret.damageModifier = _root.stage.Turret.damageModifier + -1;
_root.stage.Turret.p_bug.body.blackarmor.activate = false;
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 401 MovieClip [skill_13] Frame 1
var recharging = false;
var cost = 1;
var reuse = 160;
var skill_id = 13;
var skillname = "Sonic Vision";
var skilldescription = "Player can detect invisible enemies and mines for a moderate duration.";
var price = 250;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
this.activate_mc.removeMovieClip();
this.createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.activate_mc.counter = 0;
this.activate_mc.maxCounter = 160;
this.activate_mc.onEnterFrame = function () {
_global.vision = ((_global.vision >= 100) ? 100 : (_global.vision + 5));
if (this.counter > this.maxCounter) {
_global.vision = 0;
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 405 MovieClip [skill_14] Frame 1
var recharging = false;
var cost = 3;
var reuse = 240;
var skill_id = 14;
var skillname = "Speed Boost";
var skilldescription = "For a short duration player gains a moderate speed increase.";
var price = 250;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.speedBoost = _root.stage.Turret.speedBoost + 15;
_root.stage.Turret.p_bug.body.speedboost.activate = true;
this.speedboost_mc.removeMovieClip();
this.createEmptyMovieClip("speedboost_mc", this.getNextHighestDepth());
this.speedboost_mc.counter = 0;
this.speedboost_mc.maxCounter = 120;
this.speedboost_mc.onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter > this.maxCounter) {
_root.stage.Turret.speedBoost = _root.stage.Turret.speedBoost + -15;
_root.stage.Turret.p_bug.body.speedboost.activate = false;
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 407 MovieClip [skill_15] Frame 1
var recharging = false;
var cost = 1;
var reuse = 35;
var skill_id = 15;
var skillname = "Stinger";
var skilldescription = "Projectile Attack. Moderate Damage reverse trajectory projectile.";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.bulletArray.push("shell" + _root.hitDetector.bulletcounter);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("stingerbullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_needle");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].speed = 8;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 1 + _root.stage.Turret.damageModifier;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = _root.stage.Turret._rotation + 180;
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage["shell" + _root.hitDetector.bulletcounter]._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 50;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
_root.hitDetector.bulletcounter++;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 409 MovieClip [skill_16] Frame 1
var recharging = false;
var cost = 2.5;
var reuse = 210;
var skill_id = 16;
var skillname = "Teleport";
var skilldescription = "Player is teleported to a random location.";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.p_bug.body.teleport.activate = true;
this.activeskill_mc.removeMovieClip();
this.createEmptyMovieClip("activate_mc", this.getNextHighestDepth());
this.activate_mc.sound = new Sound(_root.sound_effect_mc);
this.activate_mc.sound.attachSound("sound_teleport");
this.activate_mc.sound.start();
this.activate_mc.counter = 0;
this.activate_mc.maxCounter = 15;
this.activate_mc.onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter > this.maxCounter) {
_root.stage.Turret.p_bug.body.teleport.activate = false;
_root.stage.Turret._rotation = random(360);
_root.stage.Turret._x = random(640);
_root.stage.Turret._y = random(480);
this.removeMovieClip();
delete this.onEnterFrame;
} else {
this.counter++;
}
}
};
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 411 MovieClip [skill_17] Frame 1
var recharging = false;
var cost = 1.8;
var reuse = 20;
var skill_id = 17;
var skillname = "Trizap";
var skilldescription = "Projectile Attack. 3 Moderate damage projectiles are fired in a 60 degree arch.";
var price = 500;
var authorize = true;
var counter = 0;
activate = function () {
if (this.activated == true) {
if ((_global.energy >= cost) && (recharging != true)) {
_root.stage.Turret.turretFire.gotoAndPlay(1);
i = 1;
while (i <= 3) {
_root.stage.createEmptyMovieClip("shell" + _root.hitDetector.bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.bulletArray.push("shell" + _root.hitDetector.bulletcounter);
_root.stage["shell" + _root.hitDetector.bulletcounter].attachMovie("zapbullet", "bullet1", _root.stage["shell" + _root.hitDetector.bulletcounter].getNextHighestDepth());
_root.stage["shell" + _root.hitDetector.bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.attachSound("sound_blingga");
_root.stage["shell" + _root.hitDetector.bulletcounter].sound.start();
_root.stage["shell" + _root.hitDetector.bulletcounter].bullet1._x = 30;
_root.stage["shell" + _root.hitDetector.bulletcounter].id = _root.hitDetector.bulletcounter;
_root.stage["shell" + _root.hitDetector.bulletcounter].damage = 1.2 + _root.stage.Turret.damageModifier;
_root.stage["shell" + _root.hitDetector.bulletcounter]._x = _root.stage.Turret._x;
_root.stage["shell" + _root.hitDetector.bulletcounter]._y = _root.stage.Turret._y;
_root.stage["shell" + _root.hitDetector.bulletcounter]._rotation = (_root.stage.Turret._rotation - 60) + (i * 30);
_root.stage["shell" + _root.hitDetector.bulletcounter].rotation_radian = _root.stage["shell" + _root.hitDetector.bulletcounter]._rotation * (Math.PI/180);
_root.stage["shell" + _root.hitDetector.bulletcounter].magnitude = 70;
_root.stage["shell" + _root.hitDetector.bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.bulletArray[h]) {
_root.hitDetector.bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.bullet1.kill();
this.removeMovieClip();
}
}
};
_root.hitDetector.bulletcounter++;
i++;
}
this.shader._y = 0;
this.recharging = true;
_global.energy = _global.energy - cost;
this.newattempt = false;
} else if (this.newattempt != false) {
this.sound_nope = new Sound(_root.sound_effect_mc);
this.sound_nope.attachSound("sound_nope");
this.sound_nope.start();
this.newattempt = false;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
this.skillbutton.onRelease = function () {
if (_global.pause == false) {
this._parent.activate();
}
};
stop();
Symbol 414 MovieClip [skillbar] Frame 1
var maxSkills = 6;
attachMovie("skillshortcuticons", "letters", 100);
this.letters._x = 3;
this.letters._y = 3;
this.activated = false;
clearSkill = function (skillSlot_f) {
this["skill" + skillSlot_f].removeMovieClip();
};
setSkill = function (skillSlot_f, skillType_f) {
n = 1;
while (n <= this.maxSkills) {
if (this["skill" + n].skill_id == skillType_f) {
this["skill" + n].removeMovieClip();
}
n++;
}
this.attachMovie("skill_" + skillType_f, "skill" + skillSlot_f, skillSlot_f);
this["skill" + skillSlot_f]._y = 4.5;
this["skill" + skillSlot_f]._x = (86.5 * (skillSlot_f - 1)) + 4.5;
this["skill" + skillSlot_f].initBool = true;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_chakink");
this.sfx_sound.start();
};
moveSkill = function (skillSlot_f, skillType_f) {
this.attachMovie("skill_" + skillType_f, "skill" + skillSlot_f, skillSlot_f);
this["skill" + skillSlot_f]._y = 4.5;
this["skill" + skillSlot_f]._x = (86.5 * (skillSlot_f - 1)) + 4.5;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_chakink");
this.sfx_sound.start();
};
activate = function () {
this.activated = true;
i = 1;
while (i <= this.maxSkills) {
setInteraction(i, false);
i++;
}
};
setInteraction = function (skillSlot_f, active_f) {
i = skillSlot_f;
if (active_f) {
this["skill" + i].onPress = function () {
startDrag (this);
this._parent.createEmptyMovieClip("topClip", this._parent.getNextHighestDepth());
this.swapDepths(this._parent.topClip);
this._parent.topClip.removeMovieClip();
this._alpha = 70;
};
this["skill" + i].onRollOver = function () {
_root.toolTip(this, this.skill_id);
};
this["skill" + i].onRelease = (this["skill" + i].onReleaseOutside = function () {
stopDrag();
i = 1;
while (i <= this._parent.maxSkills) {
if (Orion.mouseOn(this._parent["skillContainer" + i])) {
this._parent.moveSkill(i, this.skill_id);
this._parent.setInteraction(i, true);
}
i++;
}
if (this.kill == undefined) {
this.removeMovieClip();
} else {
this.kill();
}
});
} else {
this["skill" + i].onPress = function () {
if (_global.pause == false) {
this.activate();
}
};
this["skill" + i].onRollOver = function () {
_root.toolTip(this, this.skill_id);
};
this["skill" + i].activated = true;
delete this["skill" + i].onRelease;
}
};
deactivate = function () {
this.activated = false;
i = 1;
while (i <= this.maxSkills) {
this["skill" + i].activated = false;
setInteraction(i, true);
i++;
}
};
resetrecharge = function () {
i = 1;
while (i <= this.maxSkills) {
this["skill" + i].shader._y = 55;
this["skill" + i].recharging = false;
this["skill" + i].counter = 0;
i++;
}
};
kill = function () {
this.removeMovieClip();
};
setSkill(1, 1);
activate();
stop();
Symbol 419 MovieClip [icecube] Frame 20
stop();
Symbol 424 MovieClip [player_pinchers] Frame 1
stop();
Symbol 435 MovieClip [button_leave] Frame 1
stop();
Symbol 444 MovieClip [effect_bulletvortex] Frame 1
i = 1;
while (i <= 7) {
attachMovie("graphic_darkring", "graphic_darkring" + i, this.getNextHighestDepth());
this["graphic_darkring" + i]._rotation = random(360);
this.ranScale = 30 + random(70);
this["graphic_darkring" + i]._xscale = this.ranScale;
this["graphic_darkring" + i]._yscale = this.ranScale;
i++;
}
Symbol 445 MovieClip [effect_bulletward] Frame 1
i = 1;
while (i <= 5) {
attachMovie("graphic_glowring", "graphic_glowring" + i, this.getNextHighestDepth());
this["graphic_glowring" + i]._rotation = random(360);
this.ranScale = 100;
this["graphic_glowring" + i]._xscale = this.ranScale;
this["graphic_glowring" + i]._yscale = this.ranScale;
i++;
}
Symbol 452 MovieClip [effect_teleport] Frame 20
this.removeMovieClip();
Symbol 463 MovieClip [level_button] Frame 1
this.onRollOver = function () {
if (_global.levels[this.level_id] > 0) {
this.over = true;
this.sound_click = new Sound(_root.sound_effect_mc);
this.sound_click.attachSound("sound_nav_click");
this.sound_click.start();
}
};
this.onRollOut = function () {
this.over = false;
};
Symbol 463 MovieClip [level_button] Frame 2
if (!this.over) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 463 MovieClip [level_button] Frame 5
this.level_name.text = levelName;
Symbol 463 MovieClip [level_button] Frame 11
if (this.over) {
gotoAndPlay ("overHold");
}
Symbol 468 MovieClip Frame 1
this.btn_ef1.level_icon_container.attachMovie("level_icon_1", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef1.level_id = 0;
this.btn_ef1.levelName = "Pincher Beetles";
this.btn_ef1.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_1");
this._parent._parent._parent.kill();
}
};
this.btn_ef2.level_icon_container.attachMovie("level_icon_2", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef2.level_id = 1;
this.btn_ef2.levelName = "Bomber Beetles";
this.btn_ef2.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_2");
this._parent._parent._parent.kill();
}
};
this.btn_ef3.level_icon_container.attachMovie("level_icon_3", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef3.level_id = 2;
this.btn_ef3.levelName = "Flying Beetles";
this.btn_ef3.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_3");
this._parent._parent._parent.kill();
}
};
this.btn_ef4.level_icon_container.attachMovie("level_icon_4", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef4.level_id = 3;
this.btn_ef4.levelName = "Teams";
this.btn_ef4.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_4");
this._parent._parent._parent.kill();
}
};
this.btn_ef5.level_icon_container.attachMovie("level_icon_5", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef5.level_id = 4;
this.btn_ef5.levelName = "Survival Match";
this.btn_ef5.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_5");
this._parent._parent._parent.kill();
}
};
this.btn_ef6.level_icon_container.attachMovie("level_icon_6", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef6.level_id = 5;
this.btn_ef6.levelName = "Speed Match";
this.btn_ef6.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_6");
this._parent._parent._parent.kill();
}
};
this.btn_ef7.level_icon_container.attachMovie("level_icon_7", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef7.level_id = 6;
this.btn_ef7.levelName = "Healer Beetles";
this.btn_ef7.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_7");
this._parent._parent._parent.kill();
}
};
this.btn_ef8.level_icon_container.attachMovie("level_icon_8", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef8.level_id = 7;
this.btn_ef8.levelName = "Miner Beetles";
this.btn_ef8.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_8");
this._parent._parent._parent.kill();
}
};
this.btn_ef9.level_icon_container.attachMovie("level_icon_9", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef9.level_id = 8;
this.btn_ef9.levelName = "Leecher Beetles";
this.btn_ef9.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_9");
this._parent._parent._parent.kill();
}
};
this.btn_ef10.level_icon_container.attachMovie("level_icon_10", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef10.level_id = 9;
this.btn_ef10.levelName = "Red Spinner";
this.btn_ef10.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_10");
this._parent._parent._parent.kill();
}
};
this.btn_ef11.level_icon_container.attachMovie("level_icon_11", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef11.level_id = 10;
this.btn_ef11.levelName = "Survival II";
this.btn_ef11.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_11");
this._parent._parent._parent.kill();
}
};
this.btn_ef12.level_icon_container.attachMovie("level_icon_12", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef12.level_id = 11;
this.btn_ef12.levelName = "Swarm I";
this.btn_ef12.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_12");
this._parent._parent._parent.kill();
}
};
this.btn_ef13.level_icon_container.attachMovie("level_icon_13", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef13.level_id = 12;
this.btn_ef13.levelName = "Speed II";
this.btn_ef13.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_13");
this._parent._parent._parent.kill();
}
};
this.btn_ef14.level_icon_container.attachMovie("level_icon_14", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef14.level_id = 13;
this.btn_ef14.levelName = "Teams II";
this.btn_ef14.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_14");
this._parent._parent._parent.kill();
}
};
this.btn_ef15.level_icon_container.attachMovie("level_icon_15", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef15.level_id = 14;
this.btn_ef15.levelName = "Black Bully";
this.btn_ef15.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_15");
this._parent._parent._parent.kill();
}
};
this.btn_ef16.level_icon_container.attachMovie("level_icon_16", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef16.level_id = 15;
this.btn_ef16.levelName = "Survival III";
this.btn_ef16.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_16");
this._parent._parent._parent.kill();
}
};
this.btn_ef17.level_icon_container.attachMovie("level_icon_17", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef17.level_id = 16;
this.btn_ef17.levelName = "Swarm II";
this.btn_ef17.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_17");
this._parent._parent._parent.kill();
}
};
this.btn_ef18.level_icon_container.attachMovie("level_icon_18", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef18.level_id = 17;
this.btn_ef18.levelName = "Speed III";
this.btn_ef18.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_18");
this._parent._parent._parent.kill();
}
};
this.btn_ef19.level_icon_container.attachMovie("level_icon_19", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef19.level_id = 18;
this.btn_ef19.levelName = "Gauntlet";
this.btn_ef19.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_19");
this._parent._parent._parent.kill();
}
};
this.btn_ef20.level_icon_container.attachMovie("level_icon_20", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_ef20.level_id = 19;
this.btn_ef20.levelName = "Mission Impossible";
this.btn_ef20.onRelease = function () {
if (_global.levels[this.level_id] > 0) {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
_root.startLevel("level_emeraldForest_20");
this._parent._parent._parent.kill();
}
};
Symbol 469 MovieClip Frame 1
this.scrollValue = 0;
this.scrollSpeed = 3.5;
this.numberOfLevels = 20;
this.createEmptyMovieClip("storeScroller", this.getNextHighestDepth());
this.storeScroller.onEnterFrame = function () {
i = 1;
while (i <= this._parent.numberOfLevels) {
if ((this._parent.levelbuttons["btn_ef" + i]._x + this._parent.levelbuttons._x) < -30) {
this._parent.levelbuttons["btn_ef" + i]._visible = false;
this._parent.levelbuttons["btn_ef" + i]._xscale = 54;
this._parent.levelbuttons["btn_ef" + i]._yscale = 54;
} else if ((this._parent.levelbuttons["btn_ef" + i]._x + this._parent.levelbuttons._x) > 670) {
this._parent.levelbuttons["btn_ef" + i]._visible = false;
this._parent.levelbuttons["btn_ef" + i]._xscale = 54;
this._parent.levelbuttons["btn_ef" + i]._yscale = 54;
} else {
this.dfc = Math.abs((this._parent.levelbuttons["btn_ef" + i]._x + this._parent.levelbuttons._x) - 320) / 320;
this._parent.levelbuttons["btn_ef" + i]._xscale = 54 + (20 * this.dfc);
this._parent.levelbuttons["btn_ef" + i]._yscale = 54 + (20 * this.dfc);
this._parent.levelbuttons["btn_ef" + i]._visible = true;
}
i++;
}
if ((this._ymouse > 0) && (this._ymouse < 120)) {
if (this._xmouse < 120) {
this._parent.scrollValue = (120 / this._xmouse) * 2;
if (this._parent.scrollValue > 12) {
this._parent.scrollValue = 12;
}
} else if (this._xmouse > 520) {
this._parent.scrollValue = (120 / (this._xmouse - 640)) * 2;
if (this._parent.scrollValue < -12) {
this._parent.scrollValue = -12;
}
} else {
this._parent.scrollValue = 0;
}
} else {
this._parent.scrollValue = 0;
}
this._parent.levelbuttons._x = this._parent.levelbuttons._x + this._parent.scrollValue;
if (this._parent.levelbuttons._x > 80) {
this._parent.levelbuttons._x = 80;
}
if (this._parent.levelbuttons._x < ((this._parent.levelbuttons["btn_ef" + this._parent.numberOfLevels]._x * -1) + 540)) {
this._parent.levelbuttons._x = (this._parent.levelbuttons["btn_ef" + this._parent.numberOfLevels]._x * -1) + 540;
}
};
this.attachMovie("button_leave", "btn_leave", this.getNextHighestDepth());
this.btn_leave._x = 550;
this.btn_leave._y = 430;
this.btn_leave.onRollOver = function () {
this.gotoAndStop(2);
};
this.btn_leave.onRollOut = (this.btn_next.onReleaseOutside = function () {
this.gotoAndStop(1);
});
this.btn_leave.onRelease = function () {
this.gotoAndStop(1);
_root.saveGame();
_root.level_menu._visible = true;
this._parent.removeMovieClip();
};
stop();
Symbol 472 MovieClip [level_menu] Frame 1
this.kill = function () {
unloadMovie (this);
this.removeMovieClip();
};
this.obg.onRelease = function () {
getURL ("http://www.outbreakgames.com", "_blank", "GET");
};
this.btn_store.level_icon_container.attachMovie("level_icon_0", "level_icon", this.level_icon_container.getNextHighestDepth());
this.btn_store.level_id = 0;
this.btn_store.levelName = "";
this.btn_store.onRelease = function () {
this.sound_choose = new Sound(_root.sound_effect_mc);
this.sound_choose.attachSound("sound_nav_choose");
this.sound_choose.start();
this._parent._visible = false;
_root.attachMovie("store", "store", 7);
};
Symbol 477 MovieClip [mainMenu] Frame 1
_root.mainMenu.play.onRelease = function () {
_root.init();
delete this.particleGen.onEnterFrame;
this.particleGen.removeMovieClip();
this.particleGen2.removeMovieClip();
this.removeMovieClip();
};
this.obg.onRelease = function () {
getURL ("http://www.outbreakgames.com", "_blank", "GET");
};
_root.mainMenu.controls.onRelease = function () {
this._alpha = 0;
_root.attachMovie("menuControls", "menuControls", _root.getNextHighestDepth());
};
this.createEmptyMovieClip("particleGen2", this.getNextHighestDepth());
this.createEmptyMovieClip("particleGen", this.getNextHighestDepth());
this.attachMovie("gamenamedesign", "gamenamedesign", this.getNextHighestDepth());
this.particleGen.counter = 0;
this.particleGen.counterMax = 30;
this.particleGen.onEnterFrame = function () {
if (this.counter >= this.counterMax) {
i = 0;
while (i < 8) {
this.id = this.getNextHighestDepth();
this.attachMovie("particle", "particle" + this.id, this.getNextHighestDepth());
this["particle" + this.id].magnitude = 10;
this["particle" + this.id]._x = 420 - random(200);
this["particle" + this.id]._y = 178 - random(8);
this["particle" + this.id].rotation_radian = Trig.getAngle(350, 174, this["particle" + this.id]._x, this["particle" + this.id]._y);
this["particle" + this.id].counter = 0;
this["particle" + this.id].counterMax = 170;
this["particle" + this.id].onEnterFrame = function () {
if (this.counter >= this.counterMax) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
this.counter++;
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
};
this.counter = 0;
i++;
}
} else {
this.counter++;
}
};
this.particleGen2.counter = 0;
this.particleGen2.counterMax = 30;
this.particleGen2.onEnterFrame = function () {
if (this.counter >= this.counterMax) {
i = 0;
while (i < 5) {
this.id = this.getNextHighestDepth();
this.attachMovie("particle", "particle" + this.id, this.getNextHighestDepth());
this["particle" + this.id].rotation_radian = random(360) * (Math.PI/180);
this["particle" + this.id].magnitude = 4;
this["particle" + this.id]._x = 350;
this["particle" + this.id]._y = 175;
this["particle" + this.id].counter = 0;
this["particle" + this.id].counterMax = 190;
this["particle" + this.id].onEnterFrame = function () {
if (this.counter >= this.counterMax) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
this.counter++;
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
};
this.counter = 0;
i++;
}
} else {
this.counter++;
}
};
Symbol 484 MovieClip [level_icon_0] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 486 MovieClip [level_icon_1] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 488 MovieClip [level_icon_2] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 490 MovieClip [level_icon_3] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 492 MovieClip [level_icon_4] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 496 MovieClip Frame 2
if (this.activate != true) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 499 MovieClip Frame 2
if (this.activate != true) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 499 MovieClip Frame 11
if (this.activate == true) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 500 MovieClip Frame 2
if (this.activate != true) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 503 MovieClip Frame 2
if (this.activate != true) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 503 MovieClip Frame 11
if (this.activate == true) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 506 MovieClip Frame 2
if (this._parent._parent.damageIndicator != true) {
gotoAndPlay(this._currentframe - 1);
} else {
play();
this.sound = new Sound(_root.sound_effect_mc);
this.sound.attachSound("sound_blip");
this.sound.start();
}
Symbol 506 MovieClip Frame 13
this._parent._parent.damageIndicator = false;
Symbol 509 MovieClip Frame 1
pinchers._visible = false;
Symbol 510 MovieClip [level_icon_5] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 512 MovieClip [level_icon_6] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 514 MovieClip [level_icon_7] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 516 MovieClip [level_icon_8] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 518 MovieClip [level_icon_9] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 520 MovieClip [level_icon_10] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 522 MovieClip [level_icon_11] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 526 MovieClip [level_icon_12] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 527 MovieClip [level_icon_13] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 528 MovieClip [level_icon_14] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 530 MovieClip [level_icon_15] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 532 MovieClip [level_icon_16] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 534 MovieClip [level_icon_17] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 535 MovieClip [level_icon_18] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 536 MovieClip [level_icon_19] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 538 MovieClip [level_icon_20] Frame 1
if (_global.levels[this._parent._parent.level_id] > 0) {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
} else {
var matrix = new Array();
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0.25, 0.25, 0.25, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
stop();
Symbol 539 MovieClip [skill_badguy_bulletvortex] Frame 1
var recharging = false;
var cost = 4;
var reuse = 600;
var skill_id = 1;
var skillname = "Bullet Vortex";
var skilldescription = "Creates a vortex attracting all bullets that come within range";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
this.id = _root.stage.getNextHighestDepth();
_root.stage.attachMovie("effect_bulletvortex", "effect" + id, _root.stage.getNextHighestDepth());
_root.stage["effect" + id]._x = badguy_f._x;
_root.stage["effect" + id]._y = badguy_f._y;
_root.stage["effect" + id].counter = 0;
_root.stage["effect" + id].maxCounter = 300;
_root.stage["effect" + id].force = 300;
_root.stage["effect" + id].target_range = 20;
_root.stage["effect" + id].effect_threshold = 450;
_root.stage["effect" + id].solid = false;
_root.stage["effect" + id].onTop = true;
this.rotation_radian = badguy_f._rotation * (Math.PI/180);
this.magnitude = 800;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
_root.stage["effect" + id]._x = _root.stage["effect" + id]._x + this.xforce;
_root.stage["effect" + id]._y = _root.stage["effect" + id]._y + this.yforce;
_root.stage["effect" + id].onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter > this.maxCounter) {
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
} else {
this._alpha = this._alpha - 5;
}
} else {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
this.distance = Trig.objectDistance(_root.stage[_root.hitDetector.bulletArray[h]], this);
if (!_root.stage[_root.hitDetector.bulletArray[h]].stationary) {
if (this.distance <= this.effect_threshold) {
this.distanceMod = this.target_range / this.distance;
this.magnitude = this.force * this.distanceMod;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage[_root.hitDetector.bulletArray[h]]._x, _root.stage[_root.hitDetector.bulletArray[h]]._y);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage[_root.hitDetector.bulletArray[h]]._x = _root.stage[_root.hitDetector.bulletArray[h]]._x - this.xforce;
_root.stage[_root.hitDetector.bulletArray[h]]._y = _root.stage[_root.hitDetector.bulletArray[h]]._y - this.yforce;
if (this.distance < 25) {
delete _root.stage[_root.hitDetector.bulletArray[h]].onEnterFrame;
_root.stage[_root.hitDetector.bulletArray[h]].removeMovieClip();
}
}
}
h++;
}
this.counter++;
}
}
};
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 540 MovieClip [skill_badguy_bulletward] Frame 1
var recharging = false;
var cost = 4;
var reuse = 600;
var skill_id = 1;
var skillname = "Bullet Ward";
var skilldescription = "Creates a ward repelling bullets that come within range";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
this.id = _root.stage.getNextHighestDepth();
_root.stage.attachMovie("effect_bulletward", "effect" + id, _root.stage.getNextHighestDepth());
_root.stage["effect" + id]._x = badguy_f._x;
_root.stage["effect" + id]._y = badguy_f._y;
_root.stage["effect" + id].counter = 0;
_root.stage["effect" + id].maxCounter = 450;
_root.stage["effect" + id].force = 110;
_root.stage["effect" + id].target_range = 25;
_root.stage["effect" + id].effect_threshold = 70;
_root.stage["effect" + id].solid = true;
_root.stage["effect" + id].onTop = true;
this.rotation_radian = badguy_f._rotation * (Math.PI/180);
this.magnitude = 400;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
_root.stage["effect" + id]._x = _root.stage["effect" + id]._x + this.xforce;
_root.stage["effect" + id]._y = _root.stage["effect" + id]._y + this.yforce;
_root.stage["effect" + id].onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter > this.maxCounter) {
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
} else {
this._alpha = this._alpha - 5;
}
} else {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
this.distance = Trig.objectDistance(_root.stage[_root.hitDetector.bulletArray[h]], this);
if (!_root.stage[_root.hitDetector.bulletArray[h]].stationary) {
if (this.distance <= this.effect_threshold) {
this.distanceMod = this.target_range / this.distance;
this.magnitude = this.force * this.distanceMod;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage[_root.hitDetector.bulletArray[h]]._x, _root.stage[_root.hitDetector.bulletArray[h]]._y);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage[_root.hitDetector.bulletArray[h]]._x = _root.stage[_root.hitDetector.bulletArray[h]]._x + this.xforce;
_root.stage[_root.hitDetector.bulletArray[h]]._y = _root.stage[_root.hitDetector.bulletArray[h]]._y + this.yforce;
}
}
h++;
}
this.counter++;
}
}
};
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 541 MovieClip [skill_badguy_bulletshield] Frame 1
var recharging = false;
var cost = 3;
var reuse = 240;
var skill_id = 1;
var skillname = "Bullet Shield";
var skilldescription = "Creates a ward around the caster repelling bullets that come within range";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
this.id = _root.stage.getNextHighestDepth();
_root.stage.attachMovie("effect_bulletward", "effect" + id, _root.stage.getNextHighestDepth());
_root.stage["effect" + id]._x = badguy_f._x;
_root.stage["effect" + id]._y = badguy_f._y;
_root.stage["effect" + id].caster = badguy_f;
_root.stage["effect" + id].counter = 0;
_root.stage["effect" + id].maxCounter = 180;
_root.stage["effect" + id].force = 145;
_root.stage["effect" + id].target_range = 35;
_root.stage["effect" + id].effect_threshold = 95;
_root.stage["effect" + id].solid = true;
_root.stage["effect" + id].onTop = true;
_root.stage["effect" + id].onEnterFrame = function () {
this._x = this.caster._x;
this._y = this.caster._y;
if (_global.pause == false) {
if (this.counter > this.maxCounter) {
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
} else {
this._alpha = this._alpha - 5;
}
} else {
h = 0;
while (h < _root.hitDetector.bulletArray.length) {
this.distance = Trig.objectDistance(_root.stage[_root.hitDetector.bulletArray[h]], this);
if (!_root.stage[_root.hitDetector.bulletArray[h]].stationary) {
if (this.distance <= this.effect_threshold) {
this.distanceMod = this.target_range / this.distance;
this.magnitude = this.force * this.distanceMod;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage[_root.hitDetector.bulletArray[h]]._x, _root.stage[_root.hitDetector.bulletArray[h]]._y);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage[_root.hitDetector.bulletArray[h]]._x = _root.stage[_root.hitDetector.bulletArray[h]]._x + this.xforce;
_root.stage[_root.hitDetector.bulletArray[h]]._y = _root.stage[_root.hitDetector.bulletArray[h]]._y + this.yforce;
}
}
h++;
}
this.counter++;
}
}
};
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 542 MovieClip [skill_badguy_confuse] Frame 1
var recharging = false;
var cost = 3;
var reuse = 400;
var skillname = "Confuse";
var skilldescription = "Confuses targets controls";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if (((badguy_f.energy >= cost) && (recharging != true)) && (_root.stage.Turret.confused != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
this.id = badguy_f.getNextHighestDepth();
badguy_f.createEmptyMovieClip("effect" + id, badguy_f.getNextHighestDepth);
badguy_f["effect" + id].counter = 0;
badguy_f["effect" + id].counterMax = 250;
_root.stage.Turret.confused = true;
badguy_f["effect" + id].onEnterFrame = function () {
if (!_global.pause) {
this.counter++;
if (this.counter >= this.counterMax) {
_root.stage.Turret.confused = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 543 MovieClip [skill_badguy_heal] Frame 1
var recharging = false;
var cost = 2;
var reuse = 20;
var skill_id = 1;
var skillname = "Heal";
var skilldescription = "Heals target for a small amount of health";
var counter = 0;
activate = function (target_f) {
var _local3 = this._parent._parent;
if ((_local3.energy >= cost) && (recharging != true)) {
_local3.energy = _local3.energy - cost;
recharging = true;
this.counter = 0;
this.id = _local3.getNextHighestDepth();
_local3.attachMovie("animation_heal", "effect" + this.id, _local3.getNextHighestDepth());
_local3["effect" + this.id]._x = 25 - random(5);
_local3["effect" + this.id].onEnterFrame = function () {
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
} else {
this._alpha = this._alpha - 5;
}
};
this.id = target_f.getNextHighestDepth();
target_f.attachMovie("animation_healshell", "effect" + this.id, target_f.getNextHighestDepth());
target_f["effect" + this.id]._rotation = random(360);
target_f["effect" + this.id].onEnterFrame = function () {
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
} else {
this._alpha = this._alpha - 5;
}
};
target_f.health = target_f.health + 0.9;
if (target_f.health > target_f.healthMax) {
target_f.health = target_f.healthMax;
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 544 MovieClip [skill_badguy_playergravity] Frame 1
var recharging = false;
var cost = 3;
var reuse = 550;
var skillname = "Player Gravity";
var skilldescription = "Pulls Player towards caster";
var counter = 0;
activate = function (badguy_f) {
var badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
this.id = _root.stage.getNextHighestDepth();
this.id = badguy_f.getNextHighestDepth();
badguy_f.attachMovie("effect_playergravity", "effect" + this.id, badguy_f.getNextHighestDepth());
badguy_f["effect" + this.id]._x = 25 - random(5);
badguy_f["effect" + this.id].onEnterFrame = function () {
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
} else {
this._alpha = this._alpha - 4;
}
};
this.targetAngle = Trig.getAngle(badguy_f._x, badguy_f._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.badguyAngle = badguy_f._rotation * (Math.PI/180);
if (Math.abs(this.targetAngle - this.badguyAngle) < 0.9) {
if (Trig.objectDistance(badguy_f, _root.stage.Turret) > 200) {
_root.stage.createEmptyMovieClip("effect" + id, _root.stage.getNextHighestDepth());
_root.stage["effect" + id].damage = 10;
_root.stage["effect" + id].counter = 0;
_root.stage["effect" + id].counterMax = 90;
_root.stage["effect" + id].magnitude = 20;
_root.stage["effect" + id].forceDecay = 17;
_root.stage["effect" + id].effect_threshold = 450;
_root.stage["effect" + id].solid = false;
_root.stage["effect" + id].onTop = true;
_root.stage["effect" + id].targetAngle = Trig.getAngle(badguy_f._x, badguy_f._y, _root.stage.Turret._x, _root.stage.Turret._y);
_root.stage["effect" + id].onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter < this.counterMax) {
this.targetAngle = Trig.getAngle(_root.stage.Turret._x, _root.stage.Turret._y, badguy_f._x, badguy_f._y);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage.Turret._x = _root.stage.Turret._x + this.xforce;
_root.stage.Turret._y = _root.stage.Turret._y + this.yforce;
this.counter++;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 545 MovieClip [skill_badguy_prick] Frame 1
var recharging = false;
var cost = 1;
var reuse = 90;
var skillname = "Prick";
var skilldescription = "Does a small amount of damage to the player";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
_global.health = _global.health - 3;
_root.stage.Turret.damageIndicator = true;
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 546 MovieClip [skill_badguy_rhinobump] Frame 1
var recharging = false;
var cost = 2;
var reuse = 30;
var skillname = "Rhino Bump";
var skilldescription = "High Impact Melee attack";
var counter = 0;
activate = function (badguy_f) {
var badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
this.id = _root.stage.getNextHighestDepth();
this.targetAngle = Trig.getAngle(badguy_f._x, badguy_f._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.badguyAngle = badguy_f._rotation * (Math.PI/180);
if (Math.abs(this.targetAngle - this.badguyAngle) < 0.9) {
if (badguy_f.hitTest(_root.stage.Turret)) {
_root.stage.createEmptyMovieClip("effect" + id, _root.stage.getNextHighestDepth());
_root.stage["effect" + id].damage = 13;
_root.stage["effect" + id].counter = 0;
_root.stage["effect" + id].impact = false;
_root.stage["effect" + id].counterMax = 3;
_root.stage["effect" + id].magnitude = 180;
_root.stage["effect" + id].forceDecay = 17;
_root.stage["effect" + id].effect_threshold = 450;
_root.stage["effect" + id].solid = false;
_root.stage["effect" + id].onTop = true;
_root.stage["effect" + id].targetAngle = Trig.getAngle(badguy_f._x, badguy_f._y, _root.stage.Turret._x, _root.stage.Turret._y);
_root.stage["effect" + id].onEnterFrame = function () {
if (_global.pause == false) {
if (this.magnitude <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.impact) {
this.magnitude = this.magnitude - this.forceDecay;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage.Turret._x = _root.stage.Turret._x + this.xforce;
_root.stage.Turret._y = _root.stage.Turret._y + this.yforce;
badguy_f._x = badguy_f._x + (this.xforce * 0.2);
badguy_f._y = badguy_f._y + (this.yforce * 0.2);
} else if (this.counter < this.counterMax) {
this.xforce = (this.magnitude * 0.03) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.03) * Math.sin(this.targetAngle);
badguy_f._x = badguy_f._x + this.xforce;
badguy_f._y = badguy_f._y + this.yforce;
this.counter++;
} else {
this.impact = true;
_global.health = _global.health - (this.damage * _root.stage.Turret.damageMod);
_root.stage.Turret.damageIndicator = true;
}
}
};
}
}
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 547 MovieClip [skill_badguy_skillTap] Frame 1
var recharging = false;
var cost = 3;
var reuse = 180;
var skillname = "Skill Tap";
var skilldescription = "Causes target to use all skills simultaneously";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
_root.skillbar.skill1.activate();
_root.skillbar.skill2.activate();
_root.skillbar.skill3.activate();
_root.skillbar.skill4.activate();
_root.skillbar.skill5.activate();
_root.skillbar.skill6.activate();
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 548 MovieClip [skill_badguy_speedboost] Frame 1
var recharging = false;
var cost = 2;
var reuse = 180;
var skillname = "Speed Boost";
var skilldescription = "Gives the caster a speed boost for a short duration";
var counter = 0;
activate = function (badguy_f) {
var badguy_f = this._parent._parent;
if (((badguy_f.energy >= cost) && (recharging != true)) && (badguy_f.effect_speedboost != true)) {
badguy_f.energy = badguy_f.energy - cost;
badguy_f.effect_speedboost = true;
recharging = true;
this.counter = 0;
this.id = badguy_f.getNextHighestDepth();
badguy_f.createEmptyMovieClip("effect" + id, badguy_f.getNextHighestDepth);
badguy_f["effect" + id].counter = 0;
badguy_f["effect" + id].counterMax = 90;
badguy_f["effect" + id].speedboost = 20;
badguy_f.speedMod = badguy_f.speedMod + badguy_f["effect" + id].speedboost;
badguy_f["effect" + id].onEnterFrame = function () {
if (!_global.pause) {
this.counter++;
if (this.counter >= this.counterMax) {
badguy_f.speedMod = badguy_f.speedMod - this.speedboost;
badguy_f.effect_speedboost = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 549 MovieClip [skill_badguy_spinner] Frame 1
var recharging = false;
var cost = 2;
var reuse = 60;
var skill_id = 1;
var skillname = "Enemy Spinner";
var skilldescription = "Spins Player on impact";
var counter = 0;
activate = function (badguy_f) {
badguy_f = this._parent._parent;
if ((badguy_f.energy >= cost) && (recharging != true)) {
badguy_f.energy = badguy_f.energy - cost;
recharging = true;
this.counter = 0;
var _local4 = _root.badguysender.badguy_bulletcounter;
_root.stage.createEmptyMovieClip("badguy_shell" + _local4, _root.stage.getNextHighestDepth());
_root.stage["badguy_shell" + _local4].attachMovie("bullet_badguy_red", "bullet1", getNextHighestDepth());
_root.stage["badguy_shell" + _local4].sound = new Sound(_root.sound_effect_mc);
_root.stage["badguy_shell" + _local4].sound.attachSound("sound_blingga");
_root.stage["badguy_shell" + _local4].sound.start();
_root.stage["badguy_shell" + _local4].bullet1._x = 30;
_root.stage["badguy_shell" + _local4].bullet1.id = _local4;
_root.stage["badguy_shell" + _local4].speed = 8;
_root.stage["badguy_shell" + _local4].damage = 10;
_root.stage["badguy_shell" + _local4]._x = badguy_f._x;
_root.stage["badguy_shell" + _local4]._y = badguy_f._y;
_root.stage["badguy_shell" + _local4]._rotation = badguy_f._rotation;
_root.stage["badguy_shell" + _local4].rotation_radian = badguy_f._rotation * (Math.PI/180);
_root.stage["badguy_shell" + _local4].magnitude = 70;
_root.stage["badguy_shell" + _local4].onEnterFrame = function () {
if (_global.pause == false) {
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_radian);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_radian);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((((this._x > (_global.movie_x + 10)) || (this._x < -10)) || (this._y > (_global.movie_y + 10))) || (this._y < -10)) {
h = 0;
while (h < _root.hitDetector.badguy_bulletArray.length) {
if (("shell" + this.id) == _root.hitDetector.badguy_bulletArray[h]) {
_root.hitDetector.badguy_bulletArray.splice(h, 1);
}
h++;
}
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
_root.badguysender.badguy_bulletcounter++;
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 550 MovieClip [skill_badguy_steelskin] Frame 1
var recharging = false;
var cost = 1.5;
var reuse = 120;
var skill_id = 1;
var skillname = "Steel Skin";
var skilldescription = "Plates the Beetle in steel skin for a short duration";
var counter = 0;
activate = function (badguy_f) {
var badguy_f = this._parent._parent;
if (((badguy_f.energy >= cost) && (recharging != true)) && (badguy_f.effect_steelskin != true)) {
badguy_f.energy = badguy_f.energy - cost;
badguy_f.effect_steelskin = true;
recharging = true;
this.counter = 0;
this.id = badguy_f.getNextHighestDepth();
badguy_f.createEmptyMovieClip("effect" + id, badguy_f.getNextHighestDepth);
badguy_f["effect" + id].counter = 0;
badguy_f["effect" + id].counterMax = 90;
var badguy_abdomen = this._parent.abdomen.steelskin;
var badguy_torso = this._parent.torso.steelskin;
badguy_abdomen._visible = true;
badguy_torso._visible = true;
badguy_abdomen.gotoAndPlay(1);
badguy_torso.gotoAndPlay(1);
badguy_f["effect" + id].defense = 0.95;
if ((badguy_f.damageMod - badguy_f["effect" + id].defense) < 0) {
badguy_f["effect" + id].defense = badguy_f.damageMod;
}
badguy_f.damageMod = badguy_f.damageMod - badguy_f["effect" + id].defense;
badguy_f["effect" + id].onEnterFrame = function () {
if (!badguy_f.frozen) {
this.counter++;
}
if (this.counter >= this.counterMax) {
badguy_f.damageMod = badguy_f.damageMod + this.defense;
badguy_f.effect_steelskin = false;
badguy_abdomen.gotoAndPlay("retract");
badguy_torso.gotoAndPlay("retract");
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
};
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.recharging == true) {
this.counter++;
this.shader._y = this.counter * (55 / this.reuse);
if (this.counter > this.reuse) {
this.counter = 0;
this.recharging = false;
}
}
}
};
stop();
Symbol 557 MovieClip [energyMeter] Frame 1
this.createEmptyMovieClip("meter_mc", getNextHighestDepth());
this.meter_mc.pLoaded = 0;
this.meter_mc.onEnterFrame = function () {
this._parent.txt_energy.text = Math.floor(_global.energy);
this._parent.pLoaded = (_global.energy / _global.maxEnergy) * 100;
this._parent.pb._alpha = ((this._parent.pb._alpha < 99) ? (this._parent.pb._alpha + 15) : 100);
if (this._parent.pLoaded >= 100) {
this.pLoaded = this.pLoaded + 10;
} else {
this.pLoaded = this.pLoaded + 3;
}
this.pLoaded = ((this.pLoaded > this._parent.pLoaded) ? (this._parent.pLoaded) : (this.pLoaded));
this._parent.pb.pm._xscale = this.pLoaded;
this._parent.pb.pm2._xscale = this.pLoaded + (3 * (this.pLoaded / 100));
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
stop();
Symbol 561 MovieClip [healthMeter] Frame 1
this.createEmptyMovieClip("meter_mc", getNextHighestDepth());
this.meter_mc.pLoaded = 0;
this.meter_mc.onEnterFrame = function () {
this._parent.txt_health.text = Math.floor(_global.health);
this._parent.pLoaded = (_global.health / _global.maxHealth) * 100;
this._parent.pb._alpha = ((this._parent.pb._alpha < 99) ? (this._parent.pb._alpha + 15) : 100);
if (this._parent.pLoaded >= 100) {
this.pLoaded = this.pLoaded + 10;
} else {
this.pLoaded = this.pLoaded + 3;
}
this.pLoaded = ((this.pLoaded > this._parent.pLoaded) ? (this._parent.pLoaded) : (this.pLoaded));
this._parent.pb.pm._xscale = this.pLoaded;
this._parent.pb.pm2._xscale = this.pLoaded + (3 * (this.pLoaded / 100));
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
stop();
Symbol 565 MovieClip [healthMeter_simple] Frame 1
this.createEmptyMovieClip("meter_mc", getNextHighestDepth());
this.meter_mc.pLoaded = 0;
this.meter_mc.onEnterFrame = function () {
var _local3 = this._parent._parent.followObject.health;
var _local2 = this._parent._parent.followObject.healthMax;
this._parent.pLoaded = (_local3 / _local2) * 100;
this._parent.pb._alpha = ((this._parent.pb._alpha < 99) ? (this._parent.pb._alpha + 15) : 100);
if (this._parent.pLoaded >= 100) {
this.pLoaded = this.pLoaded + 10;
} else {
this.pLoaded = this.pLoaded + 3;
}
this.pLoaded = ((this.pLoaded > this._parent.pLoaded) ? (this._parent.pLoaded) : (this.pLoaded));
this._parent.pb.pm._xscale = this.pLoaded;
this._parent.pb.pm2._xscale = this.pLoaded + (3 * (this.pLoaded / 100));
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
stop();
Symbol 568 MovieClip [energyMeter_simple] Frame 1
this.createEmptyMovieClip("meter_mc", getNextHighestDepth());
this.meter_mc.pLoaded = 0;
this.meter_mc.onEnterFrame = function () {
var _local2 = this._parent._parent.followObject.energy;
var _local3 = this._parent._parent.followObject.energyMax;
this._parent.txt_energy.text = Math.floor(_local2);
this._parent.pLoaded = (_local2 / _local3) * 100;
this._parent.pb._alpha = ((this._parent.pb._alpha < 99) ? (this._parent.pb._alpha + 15) : 100);
if (this._parent.pLoaded >= 100) {
this.pLoaded = this.pLoaded + 10;
} else {
this.pLoaded = this.pLoaded + 3;
}
this.pLoaded = ((this.pLoaded > this._parent.pLoaded) ? (this._parent.pLoaded) : (this.pLoaded));
this._parent.pb.pm._xscale = this.pLoaded;
this._parent.pb.pm2._xscale = this.pLoaded + (3 * (this.pLoaded / 100));
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
stop();
Symbol 576 MovieClip [skillDetail] Frame 1
stop();
Symbol 581 MovieClip [badguysender] Frame 1
var badguycounter = 0;
var badGuySpeed = 1;
var deployCounter = 0;
var badguy_bulletcounter = 0;
create = function (objectType_f, objectX_f, objectY_f) {
objectX_f = ((objectX_f == "") ? 0 : (objectX_f));
objectY_f = ((objectY_f == "") ? 0 : (objectY_f));
var _local4 = _root.stage.getNextHighestDepth();
_root.hitDetector.objectArray.push(_root.stage.createEmptyMovieClip("object" + _local4, _root.stage.getNextHighestDepth()));
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1]._x = objectX_f;
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1]._y = objectY_f;
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].frozen = true;
switch (objectType_f) {
case 1 :
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].attachMovie("graphic_mushroom_patch", "graphic", _root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].getNextHighestDepth());
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].weight = 200;
break;
case 2 :
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].attachMovie("graphic_rock", "graphic", _root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].getNextHighestDepth());
_root.hitDetector.objectArray[_root.hitDetector.objectArray.length - 1].weight = 90;
}
};
deploy = function (badguyType_f, deployAngle_f) {
_root.stage.createEmptyMovieClip("sender" + badguycounter, _root.stage.getNextHighestDepth());
_root.hitDetector.badGuyArray.push("sender" + badguycounter);
if (badguyType_f == undefined) {
badguyType_f = 1;
}
if (deployAngle_f == undefined) {
deployAngle_f = random(360);
}
switch (badguyType_f) {
case 1 :
_root.stage["sender" + badguycounter].attachMovie("badguypincher", "badguypincher", _root.stage.getNextHighestDepth());
_root.stage["sender" + badguycounter].speed = badGuySpeed;
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 3;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].badguyType = 1;
_root.stage["sender" + badguycounter].health = 3.5;
_root.stage["sender" + badguycounter].healthMax = 3.5;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].disorientable = true;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter]._rotation = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, _root.stage.Turret._x, _root.stage.Turret._y) * 57.2957795130823;
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = 0;
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
if (this.lockedon == true) {
this.magnitude = 16;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.1) {
this._rotation = this._rotation + (1.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (random(280) == 1) {
this.lockedon = false;
this.targetAngle = random(360) * (Math.PI/180);
}
} else {
this.magnitude = 14;
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.1) {
this._rotation = this._rotation + (2 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
this.magnitude = -2;
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (random(100) == 1) {
this.lockedon = true;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
} else if (random(80) == 1) {
this.targetAngle = random(360) * (Math.PI/180);
}
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguyflyer.gotoAndPlay("blood");
this.badguypincher.gotoAndPlay("blood");
this.badguy.gotoAndPlay("blood");
this.badguyminer.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
};
break;
case 2 :
_root.stage["sender" + badguycounter].attachMovie("badguy", "badguy", _root.stage.getNextHighestDepth());
_root.stage["sender" + badguycounter].speed = badGuySpeed;
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].badguyType = 2;
_root.stage["sender" + badguycounter].funds = 3;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].health = 2;
_root.stage["sender" + badguycounter].healthMax = 2;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].disorientable = true;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter]._rotation = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, _root.stage.Turret._x, _root.stage.Turret._y) * 57.2957795130823;
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = 0;
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
if (this.lockedon == true) {
this.magnitude = 26;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.03) {
this._rotation = this._rotation + (1.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (random(120) == 1) {
this.lockedon = false;
this.targetAngle = random(360) * (Math.PI/180);
}
} else {
this.magnitude = 20;
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.03) {
this._rotation = this._rotation + (1.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (random(35) == 1) {
this.lockedon = true;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguyflyer.gotoAndPlay("blood");
this.badguypincher.gotoAndPlay("blood");
this.badguy.gotoAndPlay("blood");
this.badguyminer.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
}
};
break;
case 3 :
_root.stage["sender" + badguycounter].attachMovie("badguyflyer", "badguyflyer", _root.stage.getNextHighestDepth());
_root.stage["sender" + badguycounter].speed = badGuySpeed;
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter].badguyType = 3;
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 5;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].health = 2.25;
_root.stage["sender" + badguycounter].healthMax = 2.25;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].disorientable = true;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter]._rotation = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, _root.Turret._x, _root.Turret._y) * 57.2957795130823;
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = 0;
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
if (this.lockedon == true) {
this.magnitude = 12;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.1) {
this._rotation = this._rotation + (2.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (Trig.objectDistance(this, _root.stage.Turret) < 200) {
if (random(50) == 1) {
if (((this._x < 630) && (this._x > 10)) && ((this._y > 0) && (this._y < 470))) {
if (Math.abs(this.rotation_f - this.targetAngle) < 0.1) {
_root.stage.createEmptyMovieClip("badguy_shell" + badguy_bulletcounter, _root.stage.getNextHighestDepth());
_root.hitDetector.badguy_bulletArray.push("badguy_shell" + badguy_bulletcounter);
_root.stage["badguy_shell" + badguy_bulletcounter].attachMovie("bullet2", "bullet1", getNextHighestDepth());
_root.stage["badguy_shell" + badguy_bulletcounter].sound = new Sound(_root.sound_effect_mc);
_root.stage["badguy_shell" + badguy_bulletcounter].sound.attachSound("sound_chirp");
_root.stage["badguy_shell" + badguy_bulletcounter].sound.start();
_root.stage["badguy_shell" + badguy_bulletcounter].bullet1._x = 30;
_root.stage["badguy_shell" + badguy_bulletcounter].speed = 4;
_root.stage["badguy_shell" + badguy_bulletcounter]._x = this._x;
_root.stage["badguy_shell" + badguy_bulletcounter]._y = this._y;
_root.stage["badguy_shell" + badguy_bulletcounter]._rotation = this._rotation;
_root.stage["badguy_shell" + badguy_bulletcounter].onEnterFrame = function () {
if (_global.pause == false) {
this.bullet1._x = this.bullet1._x + this.speed;
if (this.bullet1._x >= 700) {
var _local4 = String(this);
_local4 = _local4.substr(_local4.indexOf(".") + 1, _local4.length);
h = 0;
while (h < _root.hitDetector.badguy_bulletArray.length) {
if (_local4 == _root.hitDetector.badguy_bulletArray[h]) {
_root.hitDetector.badguy_bulletArray.splice(h, 1);
}
h++;
}
this.removeMovieClip();
}
}
};
}
}
badguy_bulletcounter++;
this.lockedon = false;
this.targetAngle = random(360) * (Math.PI/180);
this.badguyflyer.gotoAndPlay("fly");
}
}
} else {
this.badguy_maxMagnitude = 56;
this.magnitude = this.magnitude + (this.magnitude * 0.1);
if (this.magnitude > this.badguy_maxMagnitude) {
this.magnitude = this.badguy_maxMagnitude;
}
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.1) {
this._rotation = this._rotation + (2.2 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (random(100) == 1) {
this.badguyflyer.gotoAndPlay("land");
this.lockedon = true;
this.targetAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
} else if (random(20) == 1) {
this.targetAngle = Trig.trueRadian(Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y) + (random(150) * 0.01));
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguyflyer.gotoAndPlay("blood");
this.badguypincher.gotoAndPlay("blood");
this.badguy.gotoAndPlay("blood");
this.badguyminer.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
}
};
break;
case 4 :
_root.stage["sender" + badguycounter].attachMovie("badguyminer", "badguyminer", _root.stage.getNextHighestDepth());
_root.stage["sender" + badguycounter].speed = badGuySpeed;
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter].badguyType = 4;
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 3;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].health = 1.95;
_root.stage["sender" + badguycounter].healthMax = 1.95;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].disorientable = true;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter].targetLocX = random(620);
_root.stage["sender" + badguycounter].targetLocY = random(460);
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, random(620), random(460)) * 57.2957795130823;
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
if (this.lockedon == true) {
this.magnitude = 26;
this.targetAngle = Trig.getAngle(this._x, this._y, this.targetLocX, this.targetLocY);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.1) {
this._rotation = this._rotation + (2.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((Math.abs(this._x - this.targetLocX) < 10) && (Math.abs(this._y - this.targetLocY) < 10)) {
this.lockedon = false;
}
if (random(1290) == 1) {
this.lockedon = false;
}
} else {
this.badguyminer.gotoAndPlay("mine");
this.speed = 0;
this.lockedon = true;
this.targetLocX = random(620);
this.targetLocY = random(460);
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguyflyer.gotoAndPlay("blood");
this.badguypincher.gotoAndPlay("blood");
this.badguy.gotoAndPlay("blood");
this.badguyminer.gotoAndPlay("blood");
this.badguyred.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
};
break;
case 5 :
_root.stage["sender" + badguycounter].attachMovie("badguyred", "badguyred", _root.stage.getNextHighestDepth());
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter].badguyType = 5;
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 50;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].energyMax = 12;
_root.stage["sender" + badguycounter].energy = 12;
_root.stage["sender" + badguycounter].energyRegen = 0.03;
_root.stage["sender" + badguycounter].healthMax = 20;
_root.stage["sender" + badguycounter].health = 20;
_root.stage["sender" + badguycounter].healthRegen = 0.001;
_root.stage["sender" + badguycounter].rotation_f = 0;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].disorientable = false;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter].targetLocX = random(620);
_root.stage["sender" + badguycounter].targetLocY = random(460);
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, random(620), random(460)) * 57.2957795130823;
_root.stage["sender" + badguycounter].playerAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, _root.stage.Turret._x, _root.stage.Turret._y) * 57.2957795130823;
this.meterID = _root.stage.getNextHighestDepth();
_root.stage.createEmptyMovieClip("meter" + this.meterID, _root.stage.getNextHighestDepth());
_root.stage["meter" + this.meterID].attachMovie("healthMeter_simple", "healthMeter_simple", _root.stage["meter" + this.meterID].getNextHighestDepth());
_root.stage["meter" + this.meterID].attachMovie("energyMeter_simple", "energyMeter_simple", _root.stage["meter" + this.meterID].getNextHighestDepth());
_root.stage["meter" + this.meterID].energyMeter_simple._x = -15;
_root.stage["meter" + this.meterID].healthMeter_simple._x = -15;
_root.stage["meter" + this.meterID].healthMeter_simple._y = -35;
_root.stage["meter" + this.meterID].energyMeter_simple._y = -30;
_root.stage["meter" + this.meterID].followObject = new Object();
_root.stage["meter" + this.meterID].followObject = _root.stage["sender" + badguycounter];
_root.stage["meter" + this.meterID].onEnterFrame = function () {
if ((this.followObject.health <= 0) || (this.followObject.health == undefined)) {
delete this.onEnterFrame;
this.healthMeter_simple.removeMovieClip();
this.energyMeter_simple.removeMovieClip();
this.removeMovieClip();
}
this._x = this.followObject._x;
this._y = this.followObject._y;
};
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
this.energy = ((this.energy >= this.energyMax) ? (this.energyMax) : (this.energy + this.energyRegen));
this.health = ((this.health >= this.healthMax) ? (this.healthMax) : (this.health + this.healthRegen));
this.playerAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
if (this.lockedon == true) {
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 170) {
this.magnitude = 0;
this.badguyred.legs.speed = 0;
this.targetLocX = _root.stage.Turret._x;
this.targetLocY = _root.stage.Turret._y;
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 100) {
this.magnitude = -9;
this.badguyred.legs.speed = 1.5;
}
} else {
this.magnitude = 16;
this.badguyred.legs.speed = 2;
}
this.targetAngle = Trig.getAngle(this._x, this._y, this.targetLocX, this.targetLocY);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.15) {
this._rotation = this._rotation + (2.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
this.badguyred.legs.speed = 1.5;
}
this.rotation_f = this._rotation * (Math.PI/180);
if (Math.abs((this._rotation * (Math.PI/180)) - Trig.trueRadian(this.playerAngle)) <= 0.18) {
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 300) {
this.badguyred.fire();
}
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((Math.abs(this._x - this.targetLocX) < 10) && (Math.abs(this._y - this.targetLocY) < 10)) {
this.lockedon = false;
}
if (random(500) == 1) {
this.lockedon = false;
}
} else {
this.playerAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.badguyred.legs.speed = 0;
if (Math.abs((this._rotation * (Math.PI/180)) - Trig.trueRadian(this.playerAngle)) > 0.15) {
this.badguyred.legs.speed = 1.5;
this._rotation = this._rotation + (2 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.playerAngle));
} else if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 300) {
this.badguyred.fire();
}
if (random(200) == 1) {
this.lockedon = true;
this.targetLocX = random(420) + 200;
this.targetLocY = random(360) + 100;
}
}
this.turretAngle = Trig.getAngle(_root.stage.Turret._x, _root.stage.Turret._y, this._x, this._y);
if (Math.abs((_root.stage.Turret._rotation * (Math.PI/180)) - Trig.trueRadian(this.turretAngle)) < 0.2) {
this.badguyred.shield();
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguyflyer.gotoAndPlay("blood");
this.badguypincher.gotoAndPlay("blood");
this.badguy.gotoAndPlay("blood");
this.badguyminer.gotoAndPlay("blood");
this.badguyred.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
};
break;
case 6 :
_root.stage["sender" + badguycounter].attachMovie("badguyhealer", "badguy", _root.stage.getNextHighestDepth());
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter].badguyType = 6;
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 10;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].energyMax = 12;
_root.stage["sender" + badguycounter].energy = 12;
_root.stage["sender" + badguycounter].energyRegen = 0.03;
_root.stage["sender" + badguycounter].healthMax = 4;
_root.stage["sender" + badguycounter].health = 4;
_root.stage["sender" + badguycounter].rotation_f = 0;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].disorientable = false;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter].targetLocX = random(620);
_root.stage["sender" + badguycounter].targetLocY = random(460);
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetBadguy = new Object();
_root.stage["sender" + badguycounter].targetBadguy = _root.stage[_root.hitDetector.badGuyArray[random(_root.hitDetector.badGuyArray.length)]];
if (_root.hitDetector.badGuyArray.length > 1) {
while (_root.stage["sender" + badguycounter].targetBadguy == _root.stage["sender" + badguycounter]) {
_root.stage["sender" + badguycounter].targetBadguy = _root.stage[_root.hitDetector.badGuyArray[random(_root.hitDetector.badGuyArray.length)]];
}
} else {
_root.stage["sender" + badguycounter].lockedon = false;
}
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
this.energy = ((this.energy >= this.energyMax) ? (this.energyMax) : (this.energy + this.energyRegen));
if (this.lockedon == true) {
if (Math.abs(Trig.objectDistance(this, this.targetBadguy)) <= 70) {
this.magnitude = 0;
this.badguy.legs.speed = 0;
if (Math.abs(Trig.objectDistance(this, this.targetBadguy)) <= 30) {
this.magnitude = -13;
this.badguy.legs.speed = 1.5;
}
} else if (Math.abs(Trig.objectDistance(this, this.targetBadguy)) > 100) {
this.magnitude = 22;
this.badguyred.legs.speed = 2;
} else {
this.magnitude = this.targetBadguy.magnitude;
this.badguyred.legs.speed = 2;
}
this.targetAngle = Trig.getAngle(this._x, this._y, this.targetBadguy._x, this.targetBadguy._y);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.15) {
this._rotation = this._rotation + (2.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
this.badguy.legs.speed = 1.5;
}
this.rotation_f = this._rotation * (Math.PI/180);
if (this.targetBadguy.health <= 0) {
this.targetLocY = 20 + random(440);
this.targetLocX = 20 + random(600);
this.lockedon = false;
}
if (Math.abs((this._rotation * (Math.PI/180)) - this.targetAngle) <= 0.6) {
if (Math.abs(Trig.objectDistance(this, this.targetBadguy)) <= 99) {
if (this.targetBadguy.health > 0) {
if ((this.targetBadguy.health / this.targetBadguy.healthMax) < 1) {
this.badguy.heal(this.targetBadguy);
}
}
}
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((this.health / this.healthMax) < 0.6) {
this.badguy.heal(this);
}
if (random(60) == 1) {
if (_root.hitDetector.badGuyArray.length > 1) {
this.oldTargetBadguy = new Object();
this.oldTargetBadguy = this.targetBadguy;
this.targetBadguy = this;
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
if (_root.stage[_root.hitDetector.badGuyArray[i]].health > 0) {
if ((this.targetBadguy.health / this.targetBadguy.healthMax) > (_root.stage[_root.hitDetector.badGuyArray[i]].health / _root.stage[_root.hitDetector.badGuyArray[i]].healthMax)) {
this.targetBadguy = _root.stage[_root.hitDetector.badGuyArray[i]];
}
}
i++;
}
if (this.targetBadguy == this) {
this.targetBadguy = this.oldTargetBadguy;
this.lockedon = true;
}
} else {
this.targetLocY = 20 + random(440);
this.targetLocX = 20 + random(600);
this.lockedon = false;
}
}
if (random(600) == 1) {
this.targetLocY = 20 + random(440);
this.targetLocX = 20 + random(600);
this.lockedon = false;
}
} else {
if ((this.health / this.healthMax) < 0.6) {
this.badguy.heal(this);
}
this.magnitude = 26;
this.badguyred.legs.speed = 2;
this.targetAngle = Trig.getAngle(this._x, this._y, this.targetLocX, this.targetLocY);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.1) {
this._rotation = this._rotation + (2.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((Math.abs(this._x - this.targetLocX) < 10) && (Math.abs(this._y - this.targetLocY) < 10)) {
this.targetLocY = 20 + random(440);
this.targetLocX = 20 + random(600);
}
if (random(600) == 1) {
this.targetLocY = 20 + random(440);
this.targetLocX = 20 + random(600);
}
if (random(30) == 1) {
if (_root.hitDetector.badGuyArray.length > 1) {
this.targetBadguy = this;
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
if (_root.stage[_root.hitDetector.badGuyArray[i]].health > 0) {
if ((this.targetBadguy.health / this.targetBadguy.healthMax) > (_root.stage[_root.hitDetector.badGuyArray[i]].health / _root.stage[_root.hitDetector.badGuyArray[i]].healthMax)) {
this.targetBadguy = _root.stage[_root.hitDetector.badGuyArray[i]];
}
}
i++;
}
if (this.targetBadguy != this) {
this.lockedon = true;
}
}
}
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguy.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
};
break;
case 7 :
_root.stage["sender" + badguycounter].attachMovie("badguyblack_boss", "badguy", _root.stage.getNextHighestDepth());
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter].badguyType = 5;
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 75;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].energyMax = 8;
_root.stage["sender" + badguycounter].energy = 8;
_root.stage["sender" + badguycounter].energyRegen = 0.025;
_root.stage["sender" + badguycounter].healthMax = 25;
_root.stage["sender" + badguycounter].health = 25;
_root.stage["sender" + badguycounter].healthRegen = 0.002;
_root.stage["sender" + badguycounter].rotation_f = 0;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].speedMod = 0;
_root.stage["sender" + badguycounter].rotationCounter = 0;
_root.stage["sender" + badguycounter].rotationCounterMax = 130;
_root.stage["sender" + badguycounter].disorientable = false;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter].targetLocX = random(620);
_root.stage["sender" + badguycounter].targetLocY = random(460);
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, random(620), random(460)) * 57.2957795130823;
_root.stage["sender" + badguycounter].playerAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, _root.stage.Turret._x, _root.stage.Turret._y) * 57.2957795130823;
this.meterID = _root.stage.getNextHighestDepth();
_root.stage.createEmptyMovieClip("meter" + this.meterID, _root.stage.getNextHighestDepth());
_root.stage["meter" + this.meterID].attachMovie("healthMeter_simple", "healthMeter_simple", _root.stage["meter" + this.meterID].getNextHighestDepth());
_root.stage["meter" + this.meterID].attachMovie("energyMeter_simple", "energyMeter_simple", _root.stage["meter" + this.meterID].getNextHighestDepth());
_root.stage["meter" + this.meterID].energyMeter_simple._x = -15;
_root.stage["meter" + this.meterID].healthMeter_simple._x = -15;
_root.stage["meter" + this.meterID].healthMeter_simple._y = -35;
_root.stage["meter" + this.meterID].energyMeter_simple._y = -30;
_root.stage["meter" + this.meterID].followObject = new Object();
_root.stage["meter" + this.meterID].followObject = _root.stage["sender" + badguycounter];
_root.stage["meter" + this.meterID].onEnterFrame = function () {
if ((this.followObject.health <= 0) || (this.followObject.health == undefined)) {
delete this.onEnterFrame;
this.healthMeter_simple.removeMovieClip();
this.energyMeter_simple.removeMovieClip();
this.removeMovieClip();
}
this._x = this.followObject._x;
this._y = this.followObject._y;
};
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
this.energy = ((this.energy >= this.energyMax) ? (this.energyMax) : (this.energy + this.energyRegen));
this.health = ((this.health >= this.healthMax) ? (this.healthMax) : (this.health + this.healthRegen));
this.playerAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
if (this.lockedon == true) {
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 300) {
this.magnitude = 10 + this.speedMod;
this.badguy.legs.speed = 2 + (this.speedMod * 0.08);
this.targetLocX = _root.stage.Turret._x;
this.targetLocY = _root.stage.Turret._y;
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 200) {
this.badguy.speedboost();
this.magnitude = 10 + this.speedMod;
this.badguy.legs.speed = 2 + (this.speedMod * 0.08);
}
} else {
this.magnitude = 10 + this.speedMod;
this.badguy.legs.speed = 2 + (this.speedMod * 0.08);
}
this.targetAngle = Trig.getAngle(this._x, this._y, this.targetLocX, this.targetLocY);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.15) {
this._rotation = this._rotation + (2.3 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
this.badguy.legs.speed = 2;
this.rotationCounter++;
} else {
this.rotationCounter = 0;
}
if (this.rotationCounter >= this.rotationCounterMax) {
this.lockedon = false;
this.rotationCounter = 0;
}
this.rotation_f = this._rotation * (Math.PI/180);
if (Math.abs((this._rotation * (Math.PI/180)) - Trig.trueRadian(this.playerAngle)) <= 0.18) {
if (this.hitTest(_root.stage.Turret)) {
this.badguy.fire();
}
if (Trig.objectDistance(this, _root.stage.Turret) > 200) {
this.badguy.playergravity();
}
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if ((Math.abs(this._x - this.targetLocX) < 10) && (Math.abs(this._y - this.targetLocY) < 10)) {
this.lockedon = false;
}
if (random(400) == 1) {
this.lockedon = false;
}
} else {
this.playerAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
if (Math.abs((this._rotation * (Math.PI/180)) - Trig.trueRadian(this.playerAngle)) > 0.15) {
this.badguyred.legs.speed = 1.5;
this._rotation = this._rotation + (2.8 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.playerAngle));
} else if (this.hitTest(_root.stage.Turret)) {
this.badguy.fire();
}
this.rotation_f = this._rotation * (Math.PI/180);
this.badguyred.legs.speed = 1.5;
this.magnitude = -7;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (random(100) == 1) {
this.lockedon = true;
this.targetLocX = random(420) + 200;
this.targetLocY = random(360) + 100;
}
}
this.turretAngle = Trig.getAngle(_root.stage.Turret._x, _root.stage.Turret._y, this._x, this._y);
if (Math.abs((_root.stage.Turret._rotation * (Math.PI/180)) - Trig.trueRadian(this.turretAngle)) < 0.2) {
this.badguy.shield();
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguy.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
};
break;
case 8 :
_root.stage["sender" + badguycounter].attachMovie("badguyannoyer", "badguy", _root.stage.getNextHighestDepth());
this.magnitude_r = 3800;
this.rotation_r = Trig.trueRadian(deployAngle_f * (Math.PI/180));
this.xforce = (this.magnitude_r * 0.1) * Math.cos(this.rotation_r);
this.yforce = (this.magnitude_r * 0.1) * Math.sin(this.rotation_r);
_root.stage["sender" + badguycounter].badguyType = 5;
_root.stage["sender" + badguycounter]._y = 240 + this.xforce;
_root.stage["sender" + badguycounter]._x = 320 + this.yforce;
_root.stage["sender" + badguycounter].score = 1;
_root.stage["sender" + badguycounter].funds = 2;
_root.stage["sender" + badguycounter].speed = 1;
_root.stage["sender" + badguycounter].energyMax = 8;
_root.stage["sender" + badguycounter].energy = 8;
_root.stage["sender" + badguycounter].energyRegen = 0.025;
_root.stage["sender" + badguycounter].healthMax = 1;
_root.stage["sender" + badguycounter].health = 1;
_root.stage["sender" + badguycounter].healthRegen = 0;
_root.stage["sender" + badguycounter].rotation_f = 0;
_root.stage["sender" + badguycounter].damageMod = 1;
_root.stage["sender" + badguycounter].speedMod = 0;
_root.stage["sender" + badguycounter].rotationCounter = 0;
_root.stage["sender" + badguycounter].rotationCounterMax = 130;
_root.stage["sender" + badguycounter].disorientable = true;
_root.stage["sender" + badguycounter].healthDrain = 0.05;
_root.stage["sender" + badguycounter].targetLocX = random(620);
_root.stage["sender" + badguycounter].targetLocY = random(460);
_root.stage["sender" + badguycounter].inRange = (random(100) * -1) + -400;
_root.stage["sender" + badguycounter].lockedon = true;
_root.stage["sender" + badguycounter].targetAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, random(620), random(460)) * 57.2957795130823;
_root.stage["sender" + badguycounter].playerAngle = Trig.getAngle(_root.stage["sender" + badguycounter]._x, _root.stage["sender" + badguycounter]._y, _root.stage.Turret._x, _root.stage.Turret._y) * 57.2957795130823;
_root.stage["sender" + badguycounter].onEnterFrame = function () {
if (_global.pause == false) {
if (this.speed > 0) {
this.energy = ((this.energy >= this.energyMax) ? (this.energyMax) : (this.energy + this.energyRegen));
this.health = ((this.health >= this.healthMax) ? (this.healthMax) : (this.health + this.healthRegen));
this.playerAngle = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.turretAngle = Trig.getAngle(_root.stage.Turret._x, _root.stage.Turret._y, this._x, this._y);
if (this.lockedon == true) {
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 300) {
this.magnitude = 25 + this.speedMod;
this.badguy.legs.speed = 2 + (this.speedMod * 0.08);
this.targetLocX = _root.stage.Turret._x;
this.targetLocY = _root.stage.Turret._y;
if (Math.abs(Trig.objectDistance(this, _root.stage.Turret)) <= 200) {
this.badguy.speedboost();
this.magnitude = 22 + this.speedMod;
this.badguy.legs.speed = 2 + (this.speedMod * 0.08);
}
} else {
this.magnitude = 10 + this.speedMod;
this.badguy.legs.speed = 2 + (this.speedMod * 0.08);
}
this.targetAngle = Trig.getAngle(this._x, this._y, this.targetLocX, this.targetLocY);
if (Math.abs(this.rotation_f - Trig.trueRadian(this.targetAngle)) > 0.15) {
this._rotation = this._rotation + (4.3 * Trig.rotationDirection(this._rotation * (Math.PI/180), this.targetAngle));
this.badguy.legs.speed = 2;
this.rotationCounter++;
} else {
this.rotationCounter = 0;
}
if (this.rotationCounter >= this.rotationCounterMax) {
this.lockedon = false;
this.rotationCounter = 0;
}
this.rotation_f = this._rotation * (Math.PI/180);
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (Math.abs((this._rotation * (Math.PI/180)) - Trig.trueRadian(this.playerAngle)) <= 0.18) {
if (Trig.objectDistance(this, _root.stage.Turret) < 20) {
this.attachPoint_id = _root.stage.Turret.getNextHighestDepth();
this.attach_bug_r = this._rotation;
this.attach_turret_r = _root.stage.Turret._rotation;
this.lockedon = false;
}
}
} else {
this.rc = _root.stage.Turret._rotation - this.attach_turret_r;
if (this._rotation == (this.attach_bug_r + this.rc)) {
this.rotating = false;
} else {
this.rotating = true;
}
this._rotation = this.attach_bug_r + this.rc;
if (random(700) == 1) {
this.badguy.skillTap();
}
if (random(50) == 1) {
this.badguy.prick();
}
if (random(1200) == 1) {
this.badguy.confuse();
}
if (random(800) == 1) {
this.lockedon = true;
this.targetLocX = random(620);
this.targetLocY = random(460);
}
this.rotation_f = Trig.getAngle(this._x, this._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.distance = Trig.objectDistance(this, _root.stage.Turret);
if (_root.stage.Turret.magnitude != 0) {
this.magnitude = _root.stage.Turret.magnitude;
} else if (this.distance < 5) {
this.magnitude = 0;
} else {
this.magnitude = 15;
}
if (this.rotating) {
this.magnitude = this.magnitude * 0.9;
}
this.xforce = (this.magnitude * 0.1) * Math.cos(this.rotation_f);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.rotation_f);
this._x = this._x + this.xforce;
this._y = this._y + this.yforce;
if (this.distance > 20) {
this.lockedon = true;
}
}
}
}
if ((this.health <= 0) && (this.dead != true)) {
this.dead = true;
this.speed = 0;
this._alpha = 100;
this.badguy.gotoAndPlay("blood");
_global.score = _global.score + this.score;
_global.funds = _global.funds + this.funds;
}
};
}
badguycounter++;
};
kill = function () {
delete onEnterFrame;
this.badguycounter = 0;
this.badGuySpeed = 1;
this.deployCounter = 0;
this.removeMovieClip();
};
Symbol 582 MovieClip [energyRegen] Frame 1
_global.energy = 12;
_global.maxEnergy = 12;
_global.energyRegenRate = 0.03;
this.onEnterFrame = function () {
if (_global.pause == false) {
_global.energy = _global.energy + _global.energyRegenRate;
if (_global.energy > _global.maxEnergy) {
_global.energy = _global.maxEnergy;
}
}
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
Symbol 583 MovieClip [healthRegen] Frame 1
_global.health = 100;
_global.maxHealth = 100;
_global.healthRegenRate = 0.01;
this.onEnterFrame = function () {
if (_global.pause == false) {
_global.health = _global.health + _global.healthRegenRate;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
}
if (_global.health <= 0) {
if (_global.pause != true) {
this._global.health = 0;
_root.level.gotoAndPlay("Failure");
_global.pause = true;
}
}
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
Symbol 584 MovieClip [hitDetector] Frame 1
var bulletArray = new Array();
var badGuyArray = new Array();
var badguy_bulletArray = new Array();
var objectArray = new Array();
var bulletcounter = 0;
var touch_Array = new Array();
var touch_Counter = 0;
createEmptyMovieClip("ArrayTests", -1);
this.ArrayTests.onEnterFrame = function () {
if (_global.pause == false) {
i = 0;
while (i < badGuyArray.length) {
if (_root.stage[badGuyArray[i]]._x < -100) {
_root.stage[badGuyArray[i]]._x = -100;
}
if (_root.stage[badGuyArray[i]]._x > 740) {
_root.stage[badGuyArray[i]]._y = 740;
}
if (_root.stage[badGuyArray[i]]._y < -100) {
_root.stage[badGuyArray[i]]._y = -100;
}
if (_root.stage[badGuyArray[i]]._y > 580) {
_root.stage[badGuyArray[i]]._y = 580;
}
i++;
}
h = 0;
while (h < touch_Array.length) {
if (_root.stage[touch_Array[h]].hitTest(_root.stage.Turret)) {
_root.stage[touch_Array[h]].item.activate();
if (_root.stage[touch_Array[h]].onTop == true) {
if (_root.stage[touch_Array[h]].getDepth() < _root.stage.Turret.getDepth()) {
_root.stage.Turret.swapDepths(_root.stage[touch_Array[h]]);
}
} else if (_root.stage[touch_Array[h]].getDepth() > _root.stage.Turret.getDepth()) {
_root.stage.Turret.swapDepths(_root.stage[touch_Array[h]]);
}
_root.hitDetector.touch_Array.splice(h, 1);
}
if (_root.stage[touch_Array[h]].kill == true) {
_root.stage[touch_Array[h]].removeMovieClip();
_root.hitDetector.touch_Array.splice(h, 1);
}
h++;
}
h = 0;
while (h < badguy_bulletArray.length) {
if (_root.stage[badguy_bulletArray[h]].hitTest(_root.stage.Turret)) {
_root.stage[badguy_bulletArray[h]].bullet1.gotoAndPlay("explosion");
_root.hitDetector.badguy_bulletArray.splice(h, 1);
}
h++;
}
h = 0;
while (h < objectArray.length) {
if (objectArray[h].hitTest(_root.stage.Turret)) {
if (objectArray[h].getDepth() > _root.stage.Turret.getDepth()) {
_root.stage.Turret.swapDepths(objectArray[h]);
}
this.magnitude = 10;
this.targetAngle = Trig.getAngle(objectArray[h]._x, objectArray[h]._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.counter = 0;
do {
if (Trig.objectDistance(objectArray[h], _root.stage.Turret) >= objectArray[h]._height) {
break;
}
this.counter++;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
this.beetleForce = _root.stage.Turret.strength / objectArray[h].weight;
if (this.beetleForce >= 1) {
this.beetleForce = this.beetleForce - 1;
this.objectForce = 1 - this.beetleForce;
this.objectForce = ((this.objectForce < 0) ? 0 : (this.objectForce));
_root.stage.Turret._x = _root.stage.Turret._x + (this.xforce * this.objectForce);
_root.stage.Turret._y = _root.stage.Turret._y + (this.yforce * this.objectForce);
objectArray[h]._x = objectArray[h]._x - (this.xforce * this.beetleForce);
objectArray[h]._y = objectArray[h]._y - (this.yforce * this.beetleForce);
} else {
_root.stage.Turret._x = _root.stage.Turret._x + this.xforce;
_root.stage.Turret._y = _root.stage.Turret._y + this.yforce;
}
} while (this.counter <= 20);
}
i = 0;
while (i < badGuyArray.length) {
if (objectArray[h].hitTest(_root.stage[badGuyArray[i]]) && (_root.stage[badGuyArray[i]].solid == true)) {
this.magnitude = 8;
this.targetAngle = Trig.getAngle(objectArray[h]._x, objectArray[h]._y, _root.stage[badGuyArray[i]]._x, _root.stage[badGuyArray[i]]._y);
this.counter = 0;
do {
if (!objectArray[h].hitTest(_root.stage[badGuyArray[i]])) {
break;
}
this.counter++;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage[badGuyArray[i]]._x = _root.stage[badGuyArray[i]]._x + this.xforce;
_root.stage[badGuyArray[i]]._y = _root.stage[badGuyArray[i]]._y + this.yforce;
} while (this.counter <= 20);
}
i++;
}
i = 0;
while (i < bulletArray.length) {
if (objectArray[h].hitTest(_root.stage[bulletArray[i]])) {
this.magnitude = 50;
this.targetAngle = Trig.getAngle(objectArray[h]._x, objectArray[h]._y, _root.stage[bulletArray[i]]._x, _root.stage[bulletArray[i]]._y);
this.counter = 0;
_root.stage[bulletArray[i]].strength = ((_root.stage[bulletArray[i]].strength == undefined) ? 0 : (_root.stage[bulletArray[i]].strength));
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
this.bulletForce = _root.stage[bulletArray[i]].strength / objectArray[h].weight;
if (this.bulletForce >= 1) {
this.bulletForce = this.bulletForce - 1;
this.objectForce = 1 - this.bulletForce;
this.objectForce = ((this.objectForce < 0) ? 0 : (this.objectForce));
objectArray[h]._x = objectArray[h]._x - (this.xforce * this.bulletForce);
objectArray[h]._y = objectArray[h]._y - (this.yforce * this.bulletForce);
}
_root.stage[bulletArray[h]].bullet1.explosion(objectArray[h]);
_root.stage[bulletArray[i]].bullet1.gotoAndStop("explosion");
_root.hitDetector.bulletArray.splice(h, 1);
}
i++;
}
h++;
}
h = 0;
while (h < badGuyArray.length) {
if (_root.stage[badGuyArray[h]].hitTest(_root.stage.Turret)) {
if (_root.stage[badGuyArray[h]].onTop == true) {
if (_root.stage[badGuyArray[h]].getDepth() < _root.stage.Turret.getDepth()) {
_root.stage.Turret.swapDepths(_root.stage[badGuyArray[h]]);
}
} else if (_root.stage[badGuyArray[h]].getDepth() > _root.stage.Turret.getDepth()) {
_root.stage.Turret.swapDepths(_root.stage[badGuyArray[h]]);
}
if (_root.stage[_root.hitDetector.badGuyArray[h]].solid) {
this.magnitude = 8;
this.targetAngle = Trig.getAngle(_root.stage[_root.hitDetector.badGuyArray[h]]._x, _root.stage[_root.hitDetector.badGuyArray[h]]._y, _root.stage.Turret._x, _root.stage.Turret._y);
this.counter = 0;
do {
if (Trig.objectDistance(_root.stage[_root.hitDetector.badGuyArray[h]], _root.stage.Turret) >= (_root.stage[_root.hitDetector.badGuyArray[h]]._height * 0.8)) {
break;
}
this.counter++;
this.xforce = (this.magnitude * 0.1) * Math.cos(this.targetAngle);
this.yforce = (this.magnitude * 0.1) * Math.sin(this.targetAngle);
_root.stage.Turret._x = _root.stage.Turret._x + this.xforce;
_root.stage.Turret._y = _root.stage.Turret._y + this.yforce;
} while (this.counter <= 20);
}
if (_root.stage[badGuyArray[h]].badguyType == 2) {
if (_root.stage[badGuyArray[h]].speed != 0) {
_root.stage[badGuyArray[h]].speed = 0;
_root.stage[badGuyArray[h]].badguy.gotoAndPlay("suicide");
}
}
if (_root.stage[badGuyArray[h]].badguypincher != undefined) {
if (_root.stage[badGuyArray[h]].speed != 0) {
if (_root.stage[badGuyArray[h]].lockedon == true) {
_root.stage[badGuyArray[h]].lockedon = false;
_root.stage[badGuyArray[h]].badguypincher.gotoAndPlay("pinch");
_root.stage[badGuyArray[h]].targetAngle = Trig.trueRadian(_root.stage[badGuyArray[h]].targetAngle + Math.PI);
}
}
}
if (_root.stage[badGuyArray[h]].badguyflyer != undefined) {
if (_root.stage[badGuyArray[h]].speed != 0) {
}
}
}
if (_root.stage[badGuyArray[h]].health <= 0) {
if (_root.stage[badGuyArray[h]].kill == true) {
_root.stage[badGuyArray[h]].removeMovieClip();
_root.hitDetector.badGuyArray.splice(h, 1);
}
}
h++;
}
h = 0;
while (h < bulletArray.length) {
i = 0;
while (i < badGuyArray.length) {
if (_root.stage[bulletArray[h]].hitTest(_root.stage[badGuyArray[i]])) {
this.alreadydead = false;
if (_root.stage[badGuyArray[i]].health <= 0) {
this.alreadydead = true;
} else if (_root.stage[badGuyArray[i]].flying != true) {
_root.stage[badGuyArray[i]].damageIndicator = true;
_root.stage[badGuyArray[i]].health = _root.stage[badGuyArray[i]].health - (_root.stage[bulletArray[h]].damage * _root.stage[badGuyArray[i]].damageMod);
}
if (_root.stage[badGuyArray[i]].health > 0) {
if (_root.stage[badGuyArray[i]].flying != true) {
_root.stage[bulletArray[h]].speed = 0;
_root.stage[bulletArray[h]].bullet1.explosion(_root.stage[badGuyArray[i]]);
_root.stage[bulletArray[h]].bullet1.gotoAndStop("explosion");
_root.hitDetector.bulletArray.splice(h, 1);
if (_root.stage[badGuyArray[i]].disorientable == true) {
if (random(_root.stage.Turret.disorient) == 1) {
_root.stage[badGuyArray[i]].lockedon == false;
_root.stage[badGuyArray[i]]._rotation = _root.stage[badGuyArray[i]]._rotation + (-30 + random(30));
}
}
}
} else if (_root.stage[badGuyArray[i]].health <= 0) {
if (this.alreadydead == false) {
_root.stage[bulletArray[h]].bullet1.gotoAndStop("explosion");
_root.stage[badGuyArray[i]].blood_rotation = _root.stage[bulletArray[h]]._rotation - _root.stage[badGuyArray[i]]._rotation;
_root.stage[badGuyArray[i]].badguyflyer.blood._rotation = _root.stage[bulletArray[h]]._rotation - _root.stage[badGuyArray[i]]._rotation;
_root.stage[badGuyArray[i]].badguy.blood._rotation = _root.stage[bulletArray[h]]._rotation - _root.stage[badGuyArray[i]]._rotation;
_root.stage[badGuyArray[i]].badguypincher.blood._rotation = _root.stage[bulletArray[h]]._rotation - _root.stage[badGuyArray[i]]._rotation;
_root.stage[badGuyArray[i]].badguyminer.blood._rotation = _root.stage[bulletArray[h]]._rotation - _root.stage[badGuyArray[i]]._rotation;
_root.stage[badGuyArray[i]].healthDrain = 0;
_root.hitDetector.bulletArray.splice(h, 1);
}
}
}
i++;
}
h++;
}
removeMovieClip(_root.stage[bulletArray[h]]);
removeMovieClip(_root.stage[upgradeArray[j]]);
_root.hitDetector.bulletArray.splice(h, 1);
_root.hitDetector.upgradeArray.splice(j, 1);
}
};
kill = function () {
delete onEnterFrame;
removeMovieClip(ArrayTests);
this.removeMovieClip();
};
Symbol 585 MovieClip [messageBoard] Frame 1
sendMsg = function (msg_f) {
this.msgId = this.getNextHighestDepth();
this.createEmptyMovieClip("msg" + this.msgId, this.msgId);
this["msg" + this.msgId]._x = 160;
this["msg" + this.msgId]._y = 80;
this["msg" + this.msgId].beginFill(0, 60);
this["msg" + this.msgId].lineStyle(1, 0, 100);
this["msg" + this.msgId].moveTo(0, 0);
this["msg" + this.msgId].lineTo(320, 0);
this["msg" + this.msgId].lineTo(320, 160);
this["msg" + this.msgId].lineTo(0, 160);
this["msg" + this.msgId].lineTo(0, 0);
this["msg" + this.msgId].endFill();
this["msg" + this.msgId].createTextField("msg", 1, 10, 10, 300, 140);
this["msg" + this.msgId].msg.embedFonts = true;
this["msg" + this.msgId].msg.antiAliasType = "advanced";
this["msg" + this.msgId].msg.multiline = true;
this["msg" + this.msgId].msg.wordWrap = true;
this["msg" + this.msgId].msg.selectable = false;
this["msg" + this.msgId].msg.border = false;
this["msg" + this.msgId].msg.html = true;
this["msg" + this.msgId].msg.htmlText = msg_f;
var _local3 = new flash.filters.DropShadowFilter(5, 45, 0, 1, 5, 5, 0.3, 1, false, false, false);
var _local2 = new Array();
_local2.push(_local3);
this["msg" + this.msgId].filters = _local2;
this["msg" + this.msgId].counter = 0;
this["msg" + this.msgId].maxCounter = 30;
this["msg" + this.msgId].maxCounter = this["msg" + this.msgId].maxCounter + (msg_f.length * 1.2);
this["msg" + this.msgId].onEnterFrame = function () {
if (this.counter >= this.maxCounter) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
} else {
this.counter++;
}
};
return(this.msgId);
};
msgAlive = function (msgId_f) {
this.doa = ((this["msg" + this.msgId] != undefined) ? true : false);
return(this.doa);
};
stop();
Symbol 596 MovieClip [sound] Frame 1
stop();
this.speaker.animation_speaker.play();
Symbol 596 MovieClip [sound] Frame 2
stop();
this.speaker.animation_speaker.stop();
Symbol 597 MovieClip Frame 1
this.onEnterFrame = function () {
if (_global.sound_music_volume == 0) {
this.sound1.gotoAndPlay(2);
} else {
this.sound1.gotoAndPlay(1);
}
if (_global.sound_effect_volume == 0) {
this.sound2.gotoAndPlay(2);
} else {
this.sound2.gotoAndPlay(1);
}
};
this.musicbutton.onRelease = function () {
if (_global.sound_music_volume != 0) {
_global.sound_music_volume = 0;
} else {
_global.sound_music_volume = 30;
}
_root.sound_effect.setVolume(_global.sound_effect_volume);
_root.sound_music.setVolume(_global.sound_music_volume);
};
this.effectsbutton.onRelease = function () {
if (_global.sound_effect_volume != 0) {
_global.sound_effect_volume = 0;
} else {
_global.sound_effect_volume = 50;
}
_root.sound_effect.setVolume(_global.sound_effect_volume);
_root.sound_music.setVolume(_global.sound_music_volume);
};
stop();
Symbol 598 MovieClip [scoreboard] Frame 1
this.r_seconds = 0;
this.r_minutes = 0;
this.r_unit = 0.026;
this.onEnterFrame = function () {
this.score.text = _global.score;
this.funds.text = _global.funds;
if (_global.pause == false) {
var _local4 = ((Math.round(r_minutes) <= 9) ? ("0" + Math.round(r_minutes)) : (Math.round(r_minutes)));
var _local5 = ((Math.round(r_seconds) <= 9) ? ("0" + Math.round(r_seconds)) : (Math.round(r_seconds)));
txt_time.text = (_local4 + ":") + _local5;
this.r_seconds = this.r_seconds + this.r_unit;
if (this.r_minutes <= 0) {
this.r_minutes = 0;
if (this.r_seconds < 0) {
this.r_seconds = 0;
this.r_unit = 0;
_root.level.timeup();
}
}
if (this.r_seconds <= 0) {
this.r_minutes--;
this.r_seconds = 60;
} else if (this.r_seconds >= 60) {
this.r_minutes++;
this.r_seconds = 0;
}
}
};
stop();
Symbol 599 MovieClip [skilldb] Frame 1
this.maxSkills = 20;
_global.skilldb = new Object();
this.onEnterFrame = function () {
if (this.counter == undefined) {
i = 1;
while (i <= this.maxSkills) {
this.attachMovie("skill_" + i, "temp_skill_" + i, this.getNextHighestDepth());
this["temp_skill_" + i]._alpha = false;
_global.skilldb.maxSkills = 0;
i++;
}
this.counter = 1;
} else {
i = 1;
while (i <= this.maxSkills) {
if (this["temp_skill_" + i].authorize == true) {
_global.skilldb.maxSkills++;
_global.skilldb[_global.skilldb.maxSkills] = new Object();
_global.skilldb[_global.skilldb.maxSkills].id = i;
_global.skilldb[_global.skilldb.maxSkills].skillname = this["temp_skill_" + i].skillname;
_global.skilldb[_global.skilldb.maxSkills].skilldescription = this["temp_skill_" + i].skilldescription;
_global.skilldb[_global.skilldb.maxSkills].cost = this["temp_skill_" + i].cost;
_global.skilldb[_global.skilldb.maxSkills].price = this["temp_skill_" + i].price;
_global.skilldb[_global.skilldb.maxSkills].reuse = Math.round((this["temp_skill_" + i].reuse / 30) * 10) * 0.1;
}
this["temp_skill_" + i].removeMovieClip();
i++;
}
this.removeMovieClip();
delete onEnterFrame;
}
};
Symbol 600 MovieClip [Turret] Frame 1
var me = this;
var speed = 4.8;
var speedBoost = 0;
var maxForwardMagnitude = 25;
var forwardMagnitude = 0;
var maxReverseMagnitude = 10;
var accelMagnitude = 4;
var reverseMagnitude = 0;
var damageMod = 1;
var damageModifier = 0;
var strength = 100;
this.confused = false;
resist_explosion = 0;
this.turretFire.gotoAndStop(5);
forwardTurret = function (rotation_f) {
forwardMagnitude = forwardMagnitude + accelMagnitude;
if (forwardMagnitude > (maxForwardMagnitude + speedBoost)) {
magnitude = maxForwardMagnitude + speedBoost;
forwardMagnitude = maxForwardMagnitude + speedBoost;
} else {
magnitude = forwardMagnitude;
}
rotation_f = rotation_f * (Math.PI/180);
xforce = (magnitude * 0.1) * Math.cos(rotation_f);
yforce = (magnitude * 0.1) * Math.sin(rotation_f);
me._x = me._x + xforce;
me._y = me._y + yforce;
if (me._x > 640) {
me._x = 640;
}
if (me._x < 0) {
me._x = 0;
}
if (me._y < 0) {
me._y = 0;
}
if (me._y > 480) {
me._y = 480;
}
};
reverseTurret = function (rotation_f) {
reverseMagnitude = reverseMagnitude + accelMagnitude;
if (reverseMagnitude > (maxReverseMagnitude + speedBoost)) {
reverseMagnitude = maxReverseMagnitude + speedBoost;
magnitude = maxReverseMagnitude + speedBoost;
} else {
magnitude = reverseMagnitude;
}
rotation_f = rotation_f - 180;
rotation_f = rotation_f * (Math.PI/180);
xforce = (magnitude * 0.1) * Math.cos(rotation_f);
yforce = (magnitude * 0.1) * Math.sin(rotation_f);
me._x = me._x + xforce;
me._y = me._y + yforce;
if (me._x > 640) {
me._x = 640;
}
if (me._x < 0) {
me._x = 0;
}
if (me._y < 0) {
me._y = 0;
}
if (me._y > 480) {
me._y = 480;
}
};
createEmptyMovieClip("keyListener", -1);
keyListener.onEnterFrame = function () {
this.movelegs = false;
this.straighthead = true;
if (_global.pause == false) {
if (Key.isDown(81)) {
_root.skillbar.skill1.activate();
} else {
_root.skillbar.skill1.newattempt = true;
}
if (Key.isDown(87)) {
_root.skillbar.skill2.activate();
} else {
_root.skillbar.skill2.newattempt = true;
}
if (Key.isDown(69)) {
_root.skillbar.skill3.activate();
} else {
_root.skillbar.skill3.newattempt = true;
}
if (Key.isDown(65)) {
_root.skillbar.skill4.activate();
} else {
_root.skillbar.skill4.newattempt = true;
}
if (Key.isDown(83)) {
_root.skillbar.skill5.activate();
} else {
_root.skillbar.skill5.newattempt = true;
}
if (Key.isDown(68)) {
_root.skillbar.skill6.activate();
} else {
_root.skillbar.skill6.newattempt = true;
}
if (Key.isDown(37)) {
if (!this._parent.confused) {
me._rotation = me._rotation - speed;
this.movelegs = true;
me.p_bug.head._rotation = -5;
this.straighthead = false;
} else {
me._rotation = me._rotation + speed;
this.movelegs = true;
me.p_bug.head._rotation = 5;
this.straighthead = false;
}
}
if (Key.isDown(39)) {
if (!this._parent.confused) {
me._rotation = me._rotation + speed;
this.movelegs = true;
me.p_bug.head._rotation = 5;
this.straighthead = false;
} else {
me._rotation = me._rotation - speed;
this.movelegs = true;
me.p_bug.head._rotation = -5;
this.straighthead = false;
}
}
if (Key.isDown(38)) {
if (!this._parent.confused) {
forwardTurret(me._rotation);
this.movelegs = true;
} else {
reverseTurret(me._rotation);
this.movelegs = true;
}
}
if (Key.isDown(40)) {
if (!this._parent.confused) {
reverseTurret(me._rotation);
this.movelegs = true;
} else {
forwardTurret(me._rotation);
this.movelegs = true;
}
}
if (this.movelegs == false) {
magnitude = 0;
reverseMagnitude = 0;
forwardMagnitude = 0;
me.p_bug.legs.speed = 0;
} else if (Key.isDown(38)) {
me.p_bug.legs.speed = forwardMagnitude * 0.18;
} else {
me.p_bug.legs.speed = maxReverseMagnitude * 0.18;
}
if (this.straighthead == true) {
me.p_bug.head._rotation = 0;
}
}
};
kill = function () {
delete onEnterFrame;
removeMovieClip(keyListener);
this.bulletcounter = 0;
this.speed = 0.8;
this.damage = 1;
this.fireDelay = 9;
this.fireCounter = 9;
this.removeMovieClip();
};
stop();
Symbol 601 MovieClip [upgradeGenerator] Frame 1
this.counter = 0;
this.maxCounter = 175;
this.upgradeMax = 2;
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter >= this.maxCounter) {
if (random(10) == 1) {
if ((_global.health / _global.maxHealth) < 0.3) {
this.smartUpgrade = 1;
} else if ((_global.energy / _global.maxEnergy) < 0.4) {
this.smartUpgrade = 2;
} else {
this.smartUpgrade = ramdom(2) + 1;
}
_root.hitDetector.touch_Counter++;
this.local_Counter = _root.hitDetector.touch_Counter;
_root.stage.createEmptyMovieClip("touch_object" + _root.hitDetector.touch_Counter, _root.stage.getNextHighestDepth());
switch (smartUpgrade) {
case 1 :
_root.stage["touch_object" + _root.hitDetector.touch_Counter].attachMovie("touch_lifeball", "item", _root.stage.getNextHighestDepth());
break;
case 2 :
_root.stage["touch_object" + _root.hitDetector.touch_Counter].attachMovie("touch_energyball", "item", _root.stage.getNextHighestDepth());
break;
default :
_root.stage["touch_object" + _root.hitDetector.touch_Counter].attachMovie("touch_energyball", "item", _root.stage.getNextHighestDepth());
}
_root.stage["touch_object" + _root.hitDetector.touch_Counter].item.id = this.local_Counter;
_root.stage["touch_object" + _root.hitDetector.touch_Counter]._x = random(620);
_root.stage["touch_object" + _root.hitDetector.touch_Counter]._y = random(460);
}
this.counter = 0;
} else {
this.counter++;
}
}
};
kill = function () {
delete onEnterFrame;
this.removeMovieClip();
};
Symbol 603 MovieClip [touch_mine] Frame 1
this._parent.onTop = true;
_root.hitDetector.touch_Array.push("touch_object" + this.id);
activate = function () {
damage = 20;
damage = damage - (damage * _root.stage.Turret.resist_explosion);
_global.health = _global.health - damage;
this._parent.health = 0;
this.mined = false;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_boom");
this.sfx_sound.start();
this._alpha = 100;
this.gotoAndPlay(2);
delete this.onEnterFrame;
};
this.counter = 0;
this.maxCounter = 1200;
this.mined = false;
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter >= this.maxCounter) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
h = 0;
while (h < _root.hitDetector.touch_Array.length) {
if (("touch_object" + this.id) == _root.hitDetector.touch_Array[h]) {
_root.hitDetector.touch_Array.splice(h, 1);
}
h++;
}
this._parent.kill = true;
this.removeMovieClip();
}
} else {
if (!this.mined) {
this._alpha = _global.vision;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 3;
} else {
this.mined = true;
}
this.counter++;
}
}
};
stop();
Symbol 603 MovieClip [touch_mine] Frame 25
this._parent.kill = true;
removeMovieClip(this);
Symbol 606 MovieClip [touch_lifeball] Frame 1
this._parent.onTop = false;
_root.hitDetector.touch_Array.push("touch_object" + this.id);
activate = function () {
_global.score = _global.score + 15;
_global.health = _global.health + 15;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_waawoo");
this.sfx_sound.start();
this._parent.kill = true;
removeMovieClip(this);
};
this.counter = 0;
this.maxCounter = random(190) + 450;
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter >= this.maxCounter) {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
h = 0;
while (h < _root.hitDetector.touch_Array.length) {
if (("touch_object" + this.id) == _root.hitDetector.touch_Array[h]) {
_root.hitDetector.touch_Array.splice(h, 1);
}
h++;
}
this._parent.kill = true;
this.removeMovieClip();
}
} else {
this.counter++;
}
}
};
stop();
Symbol 607 MovieClip [touch_energyball] Frame 1
this._parent.onTop = false;
_root.hitDetector.touch_Array.push("touch_object" + this.id);
activate = function () {
_global.score = _global.score + 10;
_global.energy = _global.energy + 3;
if (_global.energy > _global.maxEnergy) {
_global.energy = _global.maxEnergy;
}
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_waawoo");
this.sfx_sound.start();
this._parent.kill = true;
this.removeMovieClip();
};
this.counter = 0;
this.maxCounter = random(240) + 480;
this.onEnterFrame = function () {
if (_global.pause == false) {
if (this.counter >= this.maxCounter) {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
h = 0;
while (h < _root.hitDetector.touch_Array.length) {
if (("touch_object" + this.id) == _root.hitDetector.touch_Array[h]) {
_root.hitDetector.touch_Array.splice(h, 1);
}
h++;
}
this._parent.kill = true;
this.removeMovieClip();
}
} else {
this.counter++;
}
}
};
stop();
Symbol 609 MovieClip [storeitems] Frame 1
this.sizeX = 65;
this.sizeY = 55;
this.itemId = 0;
createStoreItem = function (skilldb_id_f, itemId_f) {
if (itemId_f == undefined) {
this.itemId++;
itemId_f = this.itemId;
}
this["item" + itemId_f].removeMovieClip();
this.createEmptyMovieClip("item" + itemId_f, this.getNextHighestDepth());
this["item" + itemId_f].item_id = itemId_f;
this["item" + itemId_f].skilldb_id = skilldb_id_f;
this["item" + itemId_f].createEmptyMovieClip("selectbar", this["item" + itemId_f].getNextHighestDepth());
this["item" + itemId_f].selectbar.beginFill(16777215, 15);
this["item" + itemId_f].selectbar.lineStyle(0, 16777215, 0);
this["item" + itemId_f].selectbar.moveTo(0, 0);
this["item" + itemId_f].selectbar.lineTo(300, 0);
this["item" + itemId_f].selectbar.lineTo(300, 30);
this["item" + itemId_f].selectbar.lineTo(0, 30);
this["item" + itemId_f].selectbar.lineTo(0, 0);
this["item" + itemId_f].selectbar.endFill();
this["item" + itemId_f].selectbar._alpha = 0;
this["item" + itemId_f].skill_id = _global.skilldb[skilldb_id_f].id;
this["item" + itemId_f].authorized = false;
h = 0;
while (h <= _global.skills.length) {
if (_global.skills[h] == this["item" + itemId_f].skill_id) {
this["item" + itemId_f].authorized = true;
}
h++;
}
if (this["item" + itemId_f].authorized == true) {
this["item" + itemId_f].attachMovie("skill_" + this["item" + itemId_f].skill_id, "skill_" + ["item" + itemId_f].skill_id, this["item" + itemId_f].getNextHighestDepth());
} else {
this["item" + itemId_f].attachMovie("lockedskill", "skill_" + ["item" + itemId_f].skill_id, this["item" + itemId_f].getNextHighestDepth());
}
this["item" + itemId_f]["skill_" + skill_id]._xscale = 40;
this["item" + itemId_f]["skill_" + skill_id]._yscale = 40;
this["item" + itemId_f]["skill_" + skill_id]._x = 3;
this["item" + itemId_f]["skill_" + skill_id]._y = 4;
this["item" + itemId_f]["skill_" + skill_id].activated = false;
this["item" + itemId_f].createTextField("txt_name", this["item" + itemId_f].getNextHighestDepth(), 30, 8, 180, 20);
this["item" + itemId_f].txt_name.embedFonts = true;
this["item" + itemId_f].txt_name.antiAliasType = "advanced";
this["item" + itemId_f].txt_name.multiline = true;
this["item" + itemId_f].txt_name.wordWrap = true;
this["item" + itemId_f].txt_name.selectable = false;
this["item" + itemId_f].txt_name.border = false;
this["item" + itemId_f].txt_name.html = true;
this["item" + itemId_f].txt_name.htmlText = ("<font face='Arial' size='13' color='#F0F0F0'>" + _global.skilldb[skilldb_id_f].skillname) + "</font>";
this["item" + itemId_f].createTextField("txt_cost", this["item" + itemId_f].getNextHighestDepth(), 180, 8, 100, 10);
this["item" + itemId_f].txt_cost.embedFonts = true;
this["item" + itemId_f].txt_cost.antiAliasType = "advanced";
this["item" + itemId_f].txt_cost.multiline = true;
this["item" + itemId_f].txt_cost.wordWrap = true;
this["item" + itemId_f].txt_cost.selectable = false;
this["item" + itemId_f].txt_cost.border = false;
this["item" + itemId_f].txt_cost.html = true;
this["item" + itemId_f].txt_cost.htmlText = ("<font face='Arial' size='12' color='#F0F0F0'>" + _global.skilldb[skilldb_id_f].cost) + "</font>";
this["item" + itemId_f].attachMovie("vector_energyball", "vector_energyball", this["item" + itemId_f].getNextHighestDepth());
this["item" + itemId_f].vector_energyball._x = 175;
this["item" + itemId_f].vector_energyball._y = 15;
this["item" + itemId_f].createTextField("txt_reuse", this["item" + itemId_f].getNextHighestDepth(), 220, 8, 100, 10);
this["item" + itemId_f].txt_reuse.embedFonts = true;
this["item" + itemId_f].txt_reuse.antiAliasType = "advanced";
this["item" + itemId_f].txt_reuse.multiline = true;
this["item" + itemId_f].txt_reuse.wordWrap = true;
this["item" + itemId_f].txt_reuse.selectable = false;
this["item" + itemId_f].txt_reuse.border = false;
this["item" + itemId_f].txt_reuse.html = true;
this["item" + itemId_f].txt_reuse.htmlText = ("<font face='Arial' size='12' color='#F0F0F0'>" + _global.skilldb[skilldb_id_f].reuse) + "</font>";
this["item" + itemId_f].attachMovie("vector_clock", "vector_clock", this["item" + itemId_f].getNextHighestDepth());
this["item" + itemId_f].vector_clock._x = 215;
this["item" + itemId_f].vector_clock._y = 15;
this["item" + itemId_f].createTextField("txt_price", this["item" + itemId_f].getNextHighestDepth() + 1, 270, 8, 100, 10);
this["item" + itemId_f].txt_price.embedFonts = true;
this["item" + itemId_f].txt_price.antiAliasType = "advanced";
this["item" + itemId_f].txt_price.multiline = true;
this["item" + itemId_f].txt_price.wordWrap = true;
this["item" + itemId_f].txt_price.selectable = false;
this["item" + itemId_f].txt_price.border = false;
this["item" + itemId_f].txt_price.html = true;
this.price = _global.skilldb[skilldb_id_f].price;
if (this["item" + itemId_f].authorized == true) {
this.price = "";
} else {
this["item" + itemId_f].txt_price.htmlText = ("<font face='Arial' size='12' color='#E0E0E0'>" + this.price) + "</font>";
this["item" + itemId_f].vector_buy._x = 270;
this["item" + itemId_f].vector_buy._y = 15;
}
this["item" + itemId_f].attachMovie("vector_coinstack", "vector_coinstack", this["item" + itemId_f].getNextHighestDepth());
this["item" + itemId_f].vector_coinstack._x = 257;
this["item" + itemId_f].vector_coinstack._y = 10;
this["item" + itemId_f]._y = 30 * (itemId_f - 1);
this["item" + itemId_f].onRollOver = function () {
_root.toolTip(this.selectbar, this.skill_id);
this.selectbar._alpha = 100;
};
this["item" + itemId_f].onRollOut = function () {
this.selectbar._alpha = 0;
};
this["item" + itemId_f].onPress = function () {
if (this.authorized == true) {
_root.skillbar.attachMovie("skill_" + this.skill_id, "newSkill_" + this.skill_id, this._root.skillbar.getNextHighestDepth());
_root.skillbar["newSkill_" + this.skill_id]._alpha = 85;
_root.skillbar["newSkill_" + this.skill_id]._x = _root.skillbar._xmouse;
_root.skillbar["newSkill_" + this.skill_id]._y = _root.skillbar._ymouse;
startDrag (_root.skillbar["newSkill_" + this.skill_id]);
this.dragging = true;
} else {
if (_global.funds >= Number(_global.skilldb[this.skilldb_id].price)) {
_global.funds = _global.funds - Number(_global.skilldb[this.skilldb_id].price);
_global.skills.push(this.skill_id);
l = 1;
while (l <= _root.skillbar.maxSkills) {
if (_root.skillbar["skill" + l] == undefined) {
_root.skillbar.setSkill(l, this.skill_id);
_root.skillbar.setInteraction(l, true);
break;
}
l++;
}
this._parent.createStoreItem(this.skilldb_id, this.item_id);
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_waawoo");
this.sfx_sound.start();
} else {
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nope");
this.sfx_sound.start();
}
this.dragging = false;
}
};
this["item" + itemId_f].onRelease = (this["item" + itemId_f].onReleaseOutside = function () {
if (this.dragging == true) {
stopDrag();
j = 1;
while (j <= _root.skillbar.maxSkills) {
if (Orion.mouseOn(_root.skillbar["skillContainer" + j])) {
_root.skillbar.setSkill(j, this.skill_id);
_root.skillbar.setInteraction(j, true);
}
j++;
}
_root.skillbar["newSkill_" + this.skill_id].removeMovieClip();
this.dragging = false;
}
});
return(itemId_f);
};
i = 1;
while (i <= _global.skilldb.maxSkills) {
createStoreItem(i);
i++;
}
stop();
Symbol 614 MovieClip [store] Frame 1
if (_global.levels[3] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Equipping Skills<br /><br /><b>To equip a skill drag it from the armory to the desired skill slot.<br /><br /></b></font>");
}
this.scrollValue = 0;
this.scrollSpeed = 2.5;
this.createEmptyMovieClip("storeScroller", this.getNextHighestDepth());
this.storeScroller.onEnterFrame = function () {
this._parent.storeItems._y = this._parent.storeItems._y + this._parent.scrollValue;
if ((this._parent.scrollValue > 0) && (this._parent.storeItems._y > 80)) {
this._parent.storeItems._y = 80;
}
if ((this._parent.scrollValue < 0) && (this._parent.storeItems._y < (400 - this._parent.storeItems._height))) {
this._parent.storeItems._y = 400 - this._parent.storeItems._height;
}
};
this.attachMovie("vector_storerectangle", "btn_down", this.getNextHighestDepth());
this.btn_down._rotation = 180;
this.btn_down._x = 640;
this.btn_down._y = 400 + this.btn_down._height;
this.btn_down.onRollOver = function () {
this._parent.scrollValue = this._parent.scrollSpeed * -1;
this.gotoAndStop(2);
};
this.btn_down.onRelease = (this.btn_down.onReleaseOutside = (this.btn_down.onRollOut = function () {
this._parent.scrollValue = 0;
this.gotoAndStop(1);
}));
this.attachMovie("vector_storerectangle", "btn_up", this.getNextHighestDepth());
this.btn_up._y = 60;
this.btn_up.onRollOver = function () {
this._parent.scrollValue = this._parent.scrollSpeed;
this.gotoAndStop(2);
};
this.btn_up.onRelease = (this.btn_up.onReleaseOutside = (this.btn_up.onRollOut = function () {
this._parent.scrollValue = 0;
this.gotoAndStop(1);
}));
this.attachMovie("button_leave", "btn_leave", this.getNextHighestDepth());
this.btn_leave._x = 550;
this.btn_leave._y = 430;
this.btn_leave.onRollOver = function () {
this.gotoAndStop(2);
};
this.btn_leave.onRollOut = (this.btn_next.onReleaseOutside = function () {
this.gotoAndStop(1);
});
this.btn_leave.onRelease = function () {
this.gotoAndStop(1);
_root.saveGame();
_root.level_menu._visible = true;
this._parent.removeMovieClip();
};
stop();
Symbol 615 MovieClip [level_emeraldForest_1] Frame 1
_root.badguysender.create(1, 300, 300);
_root.badguysender.create(2, 200, 100);
Symbol 615 MovieClip [level_emeraldForest_1] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 615 MovieClip [level_emeraldForest_1] Frame 3
_global.pause = false;
Symbol 615 MovieClip [level_emeraldForest_1] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Pincher Beatles<br /><br /><b>Pincher Beatles are slow but have a very strong bite if you get too close. <br /><br />Visit www.outbreakgames.com to play Avertisment free!<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 615 MovieClip [level_emeraldForest_1] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 615 MovieClip [level_emeraldForest_1] Frame 7
_root.badguysender.deploy(1, 60);
_root.badguysender.deploy(1, 330);
Symbol 615 MovieClip [level_emeraldForest_1] Frame 9
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 615 MovieClip [level_emeraldForest_1] Frame 10
_root.badguysender.deploy(1, 350);
_root.badguysender.deploy(1, 150);
Symbol 615 MovieClip [level_emeraldForest_1] Frame 12
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 615 MovieClip [level_emeraldForest_1] Frame 13
_root.badguysender.deploy(1, 0);
_root.badguysender.deploy(1, 90);
_root.badguysender.deploy(1, 180);
Symbol 615 MovieClip [level_emeraldForest_1] Frame 15
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 615 MovieClip [level_emeraldForest_1] Frame 20
currentLevel = 1;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br />BONUS: $50 <br /> New Level unlocked!<br /><br />Progress is saved automatically</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $25 </font>");
_global.funds = _global.funds + 25;
_root.scoreboard.r_unit = 0;
}
Symbol 615 MovieClip [level_emeraldForest_1] Frame 22
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 615 MovieClip [level_emeraldForest_1] Frame 32
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 615 MovieClip [level_emeraldForest_1] Frame 35
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 1
_root.badguysender.create(2, 300, 300);
Symbol 616 MovieClip [level_emeraldForest_2] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 616 MovieClip [level_emeraldForest_2] Frame 3
_global.pause = false;
Symbol 616 MovieClip [level_emeraldForest_2] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Bomber Beatles<br /><br /><b>These beatles are on a mission. Don't be near when they pull the pin!</font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 3;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 616 MovieClip [level_emeraldForest_2] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 7
this.counter = 0;
this.maxCounter = 120;
this.sent = 0;
this.maxConcurent = 3;
this.maxSent = 8;
Symbol 616 MovieClip [level_emeraldForest_2] Frame 9
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(2, 0);
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 11
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2, 330);
Symbol 616 MovieClip [level_emeraldForest_2] Frame 13
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 14
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2, 350);
_root.badguysender.deploy(2, 150);
Symbol 616 MovieClip [level_emeraldForest_2] Frame 16
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 17
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2, 90);
_root.badguysender.deploy(2, 180);
Symbol 616 MovieClip [level_emeraldForest_2] Frame 19
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 21
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2, 90);
_root.badguysender.deploy(2, 180);
Symbol 616 MovieClip [level_emeraldForest_2] Frame 23
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 25
this.counter = 0;
this.maxCounter = 60;
this.sent = 0;
this.maxConcurent = 4;
this.maxSent = 12;
Symbol 616 MovieClip [level_emeraldForest_2] Frame 27
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
this.msgId = _root.messageBoard.sendMsg("Level Complete");
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(2, 240);
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 30
currentLevel = 2;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $50 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $25 </font>");
_global.funds = _global.funds + 25;
_root.scoreboard.r_unit = 0;
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 32
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 616 MovieClip [level_emeraldForest_2] Frame 42
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 616 MovieClip [level_emeraldForest_2] Frame 45
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 1
_root.badguysender.create(2, 300, 300);
Symbol 617 MovieClip [level_emeraldForest_3] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 617 MovieClip [level_emeraldForest_3] Frame 3
_global.pause = false;
Symbol 617 MovieClip [level_emeraldForest_3] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Flying Beetles<br /><br /><b>When a flying beetle is in the air your attacks cannot hit it. Timing is everything.</b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 617 MovieClip [level_emeraldForest_3] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 8
this.counter = 0;
this.maxCounter = 120;
this.sent = 0;
this.maxConcurent = 2;
this.maxSent = 6;
Symbol 617 MovieClip [level_emeraldForest_3] Frame 10
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(3, 90);
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 12
_root.badguysender.deploy(3);
_root.badguysender.deploy(3);
_root.badguysender.deploy(3);
Symbol 617 MovieClip [level_emeraldForest_3] Frame 14
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 16
_root.badguysender.deploy(3);
_root.badguysender.deploy(3);
_root.badguysender.deploy(3, 350);
_root.badguysender.deploy(3, 150);
Symbol 617 MovieClip [level_emeraldForest_3] Frame 18
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 23
this.counter = 0;
this.maxCounter = 60;
this.sent = 0;
this.maxConcurent = 2;
this.maxSent = 3;
Symbol 617 MovieClip [level_emeraldForest_3] Frame 25
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
this.msgId = _root.messageBoard.sendMsg("Level Complete");
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(3);
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 28
currentLevel = 3;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $50 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $25 </font>");
_global.funds = _global.funds + 25;
_root.scoreboard.r_unit = 0;
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 30
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 617 MovieClip [level_emeraldForest_3] Frame 44
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 617 MovieClip [level_emeraldForest_3] Frame 47
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 618 MovieClip [level_emeraldForest_4] Frame 3
_global.pause = false;
Symbol 618 MovieClip [level_emeraldForest_4] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Teams<br /><br /><b>Some combinations of enemies are difficult to defeat.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 618 MovieClip [level_emeraldForest_4] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 7
_root.badguysender.deploy(1, 60);
_root.badguysender.deploy(1, 70);
_root.badguysender.deploy(1, 80);
_root.badguysender.deploy(2, 260);
_root.badguysender.deploy(2, 270);
_root.badguysender.deploy(2, 280);
Symbol 618 MovieClip [level_emeraldForest_4] Frame 9
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 10
_root.badguysender.deploy(1, 60);
_root.badguysender.deploy(1, 70);
_root.badguysender.deploy(3, 70);
_root.badguysender.deploy(3, 80);
_root.badguysender.deploy(3, 90);
Symbol 618 MovieClip [level_emeraldForest_4] Frame 12
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 13
_root.badguysender.deploy(1, 260);
_root.badguysender.deploy(1, 270);
_root.badguysender.deploy(2, 30);
_root.badguysender.deploy(2, 60);
_root.badguysender.deploy(2, 90);
_root.badguysender.deploy(2, 120);
_root.badguysender.deploy(2, 150);
Symbol 618 MovieClip [level_emeraldForest_4] Frame 15
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 20
currentLevel = 4;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $50 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $25 </font>");
_global.funds = _global.funds + 25;
_root.scoreboard.r_unit = 0;
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 22
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 618 MovieClip [level_emeraldForest_4] Frame 32
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 618 MovieClip [level_emeraldForest_4] Frame 35
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 619 MovieClip [level_emeraldForest_5] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 619 MovieClip [level_emeraldForest_5] Frame 3
_global.pause = false;
Symbol 619 MovieClip [level_emeraldForest_5] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Survival Match<br /><br /><b>Survive for 3 minutes to complete the mission. <br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 3;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Success");
};
Symbol 619 MovieClip [level_emeraldForest_5] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 619 MovieClip [level_emeraldForest_5] Frame 13
this.counter = 0;
this.maxCounter = 180;
this.sent = 0;
this.maxConcurent = 10;
this.maxSent = 1000;
Symbol 619 MovieClip [level_emeraldForest_5] Frame 15
if ((_root.scoreboard.r_minutes < 1) && (_root.scoreboard.r_seconds < 30)) {
this.maxCounter = 30;
this.maxConcurent = 10;
}
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 825) {
_root.badguysender.deploy(3);
} else if (this.bgr > 500) {
_root.badguysender.deploy(2);
} else {
_root.badguysender.deploy(1);
}
this.sent++;
this.maxCounter = this.maxCounter - 2;
}
}
this.counter = 0;
}
}
Symbol 619 MovieClip [level_emeraldForest_5] Frame 17
currentLevel = 5;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $50 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $25 </font>");
_global.funds = _global.funds + 25;
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 619 MovieClip [level_emeraldForest_5] Frame 19
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 619 MovieClip [level_emeraldForest_5] Frame 29
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25<br /><br />Too dificult for you? Visit the kiddie section at outbreakgames.com</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 619 MovieClip [level_emeraldForest_5] Frame 31
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 620 MovieClip [level_emeraldForest_6] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 620 MovieClip [level_emeraldForest_6] Frame 3
_global.pause = false;
Symbol 620 MovieClip [level_emeraldForest_6] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Speed Match<br /><br /><b>Kill 13 enemies in one minute. You will get a bonus for any remaining time.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 3;
_root.scoreboard.r_minutes = 1;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 620 MovieClip [level_emeraldForest_6] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 620 MovieClip [level_emeraldForest_6] Frame 13
this.counter = 0;
this.maxCounter = 30;
this.sent = 0;
this.maxConcurent = 4;
this.maxSent = 13;
Symbol 620 MovieClip [level_emeraldForest_6] Frame 15
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 825) {
_root.badguysender.deploy(3);
} else if (this.bgr > 500) {
_root.badguysender.deploy(2);
} else {
_root.badguysender.deploy(1);
}
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 620 MovieClip [level_emeraldForest_6] Frame 17
currentLevel = 6;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg(((("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $100 <br /> New Level unlocked!<br /> <br />" + Math.floor(_root.scoreboard.r_seconds)) + " seconds remaining, addtional bonus of $") + (Math.floor(_root.scoreboard.r_seconds) * 5)) + "</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 100;
_global.funds = _global.funds + (Math.floor(_root.scoreboard.r_seconds) * 5);
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg(((("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $25 <br /> <br />" + Math.floor(_root.scoreboard.r_seconds)) + " seconds remaining, addtional bonus of $") + Math.floor(_root.scoreboard.r_seconds)) + "</font>");
_global.funds = _global.funds + 50;
_global.funds = _global.funds + Math.floor(_root.scoreboard.r_seconds);
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 620 MovieClip [level_emeraldForest_6] Frame 19
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 620 MovieClip [level_emeraldForest_6] Frame 29
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25<br /><br />Too dificult for you? Visit the kiddie section at outbreakgames.com</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 620 MovieClip [level_emeraldForest_6] Frame 31
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 621 MovieClip [level_emeraldForest_7] Frame 3
_global.pause = false;
Symbol 621 MovieClip [level_emeraldForest_7] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Healer Beetles<br /><br /><b>Healer Beetles can repair damage to themselves and other enemy beetles. They are very hard to kill when grouped together.</b></font>");
_root.badguysender.create(2, 300, 300);
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 621 MovieClip [level_emeraldForest_7] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 8
this.counter = 0;
this.maxCounter = 120;
this.sent = 0;
this.maxConcurent = 2;
this.maxSent = 6;
Symbol 621 MovieClip [level_emeraldForest_7] Frame 10
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(6, 90);
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 12
_root.badguysender.deploy(6, 90);
_root.badguysender.deploy(6, 95);
_root.badguysender.deploy(6, 100);
Symbol 621 MovieClip [level_emeraldForest_7] Frame 14
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 16
_root.badguysender.deploy(6, 260);
_root.badguysender.deploy(6, 240);
_root.badguysender.deploy(6, 45);
_root.badguysender.deploy(6, 55);
Symbol 621 MovieClip [level_emeraldForest_7] Frame 18
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 23
this.counter = 0;
this.maxCounter = 60;
this.sent = 0;
this.maxConcurent = 2;
this.maxSent = 4;
Symbol 621 MovieClip [level_emeraldForest_7] Frame 25
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
this.msgId = _root.messageBoard.sendMsg("Level Complete");
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(6, 30);
_root.badguysender.deploy(6, 30);
this.sent = this.sent + 2;
}
}
this.counter = 0;
}
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 28
currentLevel = 7;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $100 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 100;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $25 </font>");
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 30
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 621 MovieClip [level_emeraldForest_7] Frame 44
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $25<br /><br />Too dificult for you? Penguin bounce might be more your level.</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 621 MovieClip [level_emeraldForest_7] Frame 47
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 622 MovieClip [level_emeraldForest_8] Frame 3
_global.pause = false;
Symbol 622 MovieClip [level_emeraldForest_8] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Miner Beetles<br /><br /><b>Miner Beetles lay mines underground that will trigger when you walk over them. Use your sonic vision skill to see mines.</b></font>");
_root.badguysender.create(2, 300, 300);
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 622 MovieClip [level_emeraldForest_8] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 9
this.counter = 0;
this.maxCounter = 120;
this.sent = 0;
this.maxConcurent = 3;
this.maxSent = 9;
Symbol 622 MovieClip [level_emeraldForest_8] Frame 11
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
this.sent++;
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 13
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
Symbol 622 MovieClip [level_emeraldForest_8] Frame 15
if (_root.hitDetector.badGuyArray.length <= 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 17
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
_root.badguysender.deploy(4, 350);
_root.badguysender.deploy(4, 150);
Symbol 622 MovieClip [level_emeraldForest_8] Frame 19
if (_root.hitDetector.badGuyArray.length <= 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 24
this.counter = 0;
this.maxCounter = 60;
this.sent = 0;
this.maxConcurent = 5;
this.maxSent = 10;
Symbol 622 MovieClip [level_emeraldForest_8] Frame 26
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
this.msgId = _root.messageBoard.sendMsg("Level Complete");
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(4);
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 29
currentLevel = 8;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $100 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 100;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $25 </font>");
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 31
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 622 MovieClip [level_emeraldForest_8] Frame 45
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $25<br /><br />Too dificult for you? Fun with ABC's might be more your level. www.outbreakgames.com</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 622 MovieClip [level_emeraldForest_8] Frame 48
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 1
_root.badguysender.create(2, 300, 300);
Symbol 623 MovieClip [level_emeraldForest_9] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 623 MovieClip [level_emeraldForest_9] Frame 3
_global.pause = false;
Symbol 623 MovieClip [level_emeraldForest_9] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Leecher Beetles<br /><br /><b>These nasty little critters will grab on to you and suck your brains out, making you do crazy things! <br />To shake them off, wiggle back and forth while running.</b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 623 MovieClip [level_emeraldForest_9] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 9
this.counter = 0;
this.maxCounter = 45;
this.sent = 0;
this.maxConcurent = 8;
this.maxSent = 16;
Symbol 623 MovieClip [level_emeraldForest_9] Frame 11
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(8, 45);
_root.badguysender.deploy(8, 235);
this.sent++;
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 13
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
Symbol 623 MovieClip [level_emeraldForest_9] Frame 15
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 17
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8, 350);
_root.badguysender.deploy(8, 150);
Symbol 623 MovieClip [level_emeraldForest_9] Frame 19
if (_root.hitDetector.badGuyArray.length <= 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 24
this.counter = 0;
this.maxCounter = 30;
this.sent = 0;
this.maxConcurent = 12;
this.maxSent = 32;
Symbol 623 MovieClip [level_emeraldForest_9] Frame 26
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
this.msgId = _root.messageBoard.sendMsg("Level Complete");
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
this.sent++;
this.sent++;
this.sent++;
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 29
currentLevel = 9;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $100 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 100;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $50 </font>");
_global.funds = _global.funds + 50;
_root.scoreboard.r_unit = 0;
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 31
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 623 MovieClip [level_emeraldForest_9] Frame 45
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $25<br /><br />Too dificult for you? Try hopscotch. www.outbreakgames.com</font>");
_global.funds = _global.funds - 25;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 623 MovieClip [level_emeraldForest_9] Frame 48
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 624 MovieClip [level_emeraldForest_10] Frame 1
_root.badguysender.create(2, 300, 300);
Symbol 624 MovieClip [level_emeraldForest_10] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 624 MovieClip [level_emeraldForest_10] Frame 3
_global.pause = false;
Symbol 624 MovieClip [level_emeraldForest_10] Frame 4
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Red Spinner<br /><br /><b>This boss bug is tough!<br /> You will have to use your brain and a good combination of skills to defeat him.</b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 624 MovieClip [level_emeraldForest_10] Frame 6
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 624 MovieClip [level_emeraldForest_10] Frame 9
this.counter = 0;
this.maxCounter = 45;
this.sent = 0;
this.maxConcurent = 2;
this.maxSent = 8;
_root.badguysender.deploy(5);
Symbol 624 MovieClip [level_emeraldForest_10] Frame 11
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(1);
_root.badguysender.deploy(2);
this.sent++;
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 624 MovieClip [level_emeraldForest_10] Frame 17
currentLevel = 10;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $200 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 200;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $100 </font>");
_global.funds = _global.funds + 100;
_root.scoreboard.r_unit = 0;
}
Symbol 624 MovieClip [level_emeraldForest_10] Frame 19
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 624 MovieClip [level_emeraldForest_10] Frame 33
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $75<br /><br />Too hard for you? Swim and singalong buddies 3D might suit you better. www.outbreakgames.com</font>");
_global.funds = _global.funds - 75;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 624 MovieClip [level_emeraldForest_10] Frame 36
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 625 MovieClip [level_emeraldForest_11] Frame 2
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 625 MovieClip [level_emeraldForest_11] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Survival Match<br /><br /><b>Survive for 3 minutes to complete the mission. <br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 3;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Success");
};
_global.pause = false;
Symbol 625 MovieClip [level_emeraldForest_11] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 625 MovieClip [level_emeraldForest_11] Frame 15
this.counter = 0;
this.maxCounter = 160;
this.sent = 0;
this.maxConcurent = 7;
this.maxSent = 1000;
Symbol 625 MovieClip [level_emeraldForest_11] Frame 17
if ((_root.scoreboard.r_minutes < 1) && (_root.scoreboard.r_seconds < 30)) {
this.maxCounter = 30;
this.maxConcurent = 12;
}
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 910) {
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
this.sent++;
this.sent++;
} else if (this.bgr > 800) {
_root.badguysender.deploy(4);
} else if (this.bgr > 600) {
_root.badguysender.deploy(3);
} else if (this.bgr > 350) {
_root.badguysender.deploy(2);
} else {
_root.badguysender.deploy(1);
}
this.sent++;
this.maxCounter = this.maxCounter - 3;
}
}
this.counter = 0;
}
}
Symbol 625 MovieClip [level_emeraldForest_11] Frame 19
currentLevel = 11;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $150 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 150;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $75 </font>");
_global.funds = _global.funds + 75;
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 625 MovieClip [level_emeraldForest_11] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 625 MovieClip [level_emeraldForest_11] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $50<br /><br />That's okay, my thee year old daughter couldn't beat it either. www.outbreakgames.com</font>");
_global.funds = _global.funds - 50;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 625 MovieClip [level_emeraldForest_11] Frame 33
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 626 MovieClip [level_emeraldForest_12] Frame 2
_global.pause = false;
Symbol 626 MovieClip [level_emeraldForest_12] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Swarm<br /><br /><b>Swarming beetles can be controlled with area affect skills.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 626 MovieClip [level_emeraldForest_12] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 6
_root.badguysender.deploy(2, 60);
_root.badguysender.deploy(2, 65);
_root.badguysender.deploy(2, 70);
_root.badguysender.deploy(2, 75);
_root.badguysender.deploy(2, 80);
_root.badguysender.deploy(2, 85);
_root.badguysender.deploy(2, 90);
_root.badguysender.deploy(2, 95);
_root.badguysender.deploy(2, 100);
Symbol 626 MovieClip [level_emeraldForest_12] Frame 8
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 9
_root.badguysender.deploy(6, 60);
_root.badguysender.deploy(6, 70);
_root.badguysender.deploy(6, 70);
_root.badguysender.deploy(6, 55);
_root.badguysender.deploy(6, 60);
_root.badguysender.deploy(6, 65);
_root.badguysender.deploy(6, 70);
Symbol 626 MovieClip [level_emeraldForest_12] Frame 11
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 12
_root.badguysender.deploy(3, 160);
_root.badguysender.deploy(3, 165);
_root.badguysender.deploy(3, 170);
_root.badguysender.deploy(3, 175);
_root.badguysender.deploy(3, 180);
_root.badguysender.deploy(3, 185);
_root.badguysender.deploy(3, 190);
_root.badguysender.deploy(3, 195);
_root.badguysender.deploy(3, 200);
Symbol 626 MovieClip [level_emeraldForest_12] Frame 14
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 19
currentLevel = 12;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $150 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 150;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $75 </font>");
_global.funds = _global.funds + 75;
_root.scoreboard.r_unit = 0;
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 626 MovieClip [level_emeraldForest_12] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $75<br /><br />Hahaha!! ..i mean, ummm, good try. www.outbreakgames.com</font>");
_global.funds = _global.funds - 75;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 626 MovieClip [level_emeraldForest_12] Frame 34
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 627 MovieClip [level_emeraldForest_13] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 627 MovieClip [level_emeraldForest_13] Frame 2
_global.pause = false;
Symbol 627 MovieClip [level_emeraldForest_13] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Speed Match<br /><br /><b>Kill 20 enemies in two minutes. You will get a bonus for any remaining time.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 3;
_root.scoreboard.r_minutes = 2;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 627 MovieClip [level_emeraldForest_13] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 627 MovieClip [level_emeraldForest_13] Frame 15
this.counter = 0;
this.maxCounter = 30;
this.sent = 0;
this.maxConcurent = 5;
this.maxSent = 20;
Symbol 627 MovieClip [level_emeraldForest_13] Frame 17
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 825) {
_root.badguysender.deploy(6);
_root.badguysender.deploy(6);
this.sent++;
this.sent++;
} else if (this.bgr > 500) {
_root.badguysender.deploy(3);
_root.badguysender.deploy(3);
this.sent++;
this.sent++;
} else {
_root.badguysender.deploy(1);
_root.badguysender.deploy(1);
this.sent++;
this.sent++;
}
}
}
this.counter = 0;
}
}
Symbol 627 MovieClip [level_emeraldForest_13] Frame 19
currentLevel = 13;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg(((("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $150 <br /> New Level unlocked!<br /> <br />" + Math.floor(_root.scoreboard.r_seconds)) + " seconds remaining, addtional bonus of $") + (Math.floor(_root.scoreboard.r_seconds) * 5)) + "</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 150;
_global.funds = _global.funds + (Math.floor(_root.scoreboard.r_seconds) * 5);
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg(((("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $75 <br /> <br />" + Math.floor(_root.scoreboard.r_seconds)) + " seconds remaining, addtional bonus of $") + Math.floor(_root.scoreboard.r_seconds)) + "</font>");
_global.funds = _global.funds + 75;
_global.funds = _global.funds + Math.floor(_root.scoreboard.r_seconds);
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 627 MovieClip [level_emeraldForest_13] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 627 MovieClip [level_emeraldForest_13] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $75<br /><br />Wow, you need to practice. www.outbreakgames.com</font>");
_global.funds = _global.funds - 75;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 627 MovieClip [level_emeraldForest_13] Frame 33
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 628 MovieClip [level_emeraldForest_14] Frame 2
_global.pause = false;
Symbol 628 MovieClip [level_emeraldForest_14] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Teams II<br /><br /><b>Warning! Very difficult teams ahead.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 628 MovieClip [level_emeraldForest_14] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 6
_root.badguysender.deploy(1, 60);
_root.badguysender.deploy(1, 65);
_root.badguysender.deploy(1, 70);
_root.badguysender.deploy(1, 75);
_root.badguysender.deploy(6, 80);
_root.badguysender.deploy(6, 85);
_root.badguysender.deploy(6, 90);
_root.badguysender.deploy(4, 95);
_root.badguysender.deploy(4, 100);
Symbol 628 MovieClip [level_emeraldForest_14] Frame 8
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 9
_root.badguysender.deploy(8, 60);
_root.badguysender.deploy(8, 70);
_root.badguysender.deploy(8, 70);
_root.badguysender.deploy(8, 55);
_root.badguysender.deploy(8, 60);
_root.badguysender.deploy(4, 65);
_root.badguysender.deploy(4, 70);
_root.badguysender.deploy(4, 60);
_root.badguysender.deploy(4, 65);
_root.badguysender.deploy(4, 70);
Symbol 628 MovieClip [level_emeraldForest_14] Frame 11
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 12
_root.badguysender.deploy(1, 160);
_root.badguysender.deploy(2, 165);
_root.badguysender.deploy(3, 170);
_root.badguysender.deploy(4, 175);
_root.badguysender.deploy(6, 180);
_root.badguysender.deploy(8, 185);
_root.badguysender.deploy(8, 160);
_root.badguysender.deploy(6, 165);
_root.badguysender.deploy(4, 170);
_root.badguysender.deploy(3, 175);
_root.badguysender.deploy(2, 180);
_root.badguysender.deploy(1, 185);
Symbol 628 MovieClip [level_emeraldForest_14] Frame 14
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 19
currentLevel = 14;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $150 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 150;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $75 </font>");
_global.funds = _global.funds + 75;
_root.scoreboard.r_unit = 0;
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 628 MovieClip [level_emeraldForest_14] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $75<br /><br />Too dificult for you? Visit the kiddie section at outbreakgames.com</font>");
_global.funds = _global.funds - 75;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 628 MovieClip [level_emeraldForest_14] Frame 34
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 629 MovieClip [level_emeraldForest_15] Frame 1
_root.badguysender.create(2, 300, 300);
_root.badguysender.create(2, 100, 50);
_root.badguysender.create(2, 500, 200);
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 629 MovieClip [level_emeraldForest_15] Frame 2
_global.pause = false;
Symbol 629 MovieClip [level_emeraldForest_15] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Black Bully<br /><br /><b>This boss has several special abilities. It will take everything you have to find a way around her defenses.</b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 629 MovieClip [level_emeraldForest_15] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 629 MovieClip [level_emeraldForest_15] Frame 8
this.counter = 0;
this.maxCounter = 45;
this.sent = 0;
this.maxConcurent = 3;
this.maxSent = 8;
_root.badguysender.deploy(7);
Symbol 629 MovieClip [level_emeraldForest_15] Frame 10
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(6);
_root.badguysender.deploy(6);
this.sent++;
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 629 MovieClip [level_emeraldForest_15] Frame 16
currentLevel = 15;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $300 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 300;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $150 </font>");
_global.funds = _global.funds + 150;
_root.scoreboard.r_unit = 0;
}
Symbol 629 MovieClip [level_emeraldForest_15] Frame 18
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 629 MovieClip [level_emeraldForest_15] Frame 32
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /><br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $100<br /><br />Too dificult for you? Visit the kiddie section at outbreakgames.com</font>");
_global.funds = _global.funds - 100;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 629 MovieClip [level_emeraldForest_15] Frame 35
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 630 MovieClip [level_emeraldForest_16] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 630 MovieClip [level_emeraldForest_16] Frame 2
_global.pause = false;
Symbol 630 MovieClip [level_emeraldForest_16] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Survival Match<br /><br /><b>Survive for 3 minutes if you can (but you probrably can't).<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 3;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Success");
};
Symbol 630 MovieClip [level_emeraldForest_16] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 630 MovieClip [level_emeraldForest_16] Frame 6
_root.badguysender.deploy(5);
Symbol 630 MovieClip [level_emeraldForest_16] Frame 15
this.counter = 0;
this.maxCounter = 160;
this.sent = 0;
this.maxConcurent = 6;
this.maxSent = 1000;
Symbol 630 MovieClip [level_emeraldForest_16] Frame 17
if ((_root.scoreboard.r_minutes < 1) && (_root.scoreboard.r_seconds < 30)) {
this.maxCounter = 30;
this.maxConcurent = 15;
}
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 900) {
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
this.sent++;
this.sent++;
} else if (this.bgr > 780) {
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
this.sent++;
} else if (this.bgr > 550) {
_root.badguysender.deploy(3);
} else if (this.bgr > 350) {
_root.badguysender.deploy(2);
} else {
_root.badguysender.deploy(1);
}
this.sent++;
this.maxCounter = this.maxCounter - 4;
}
}
this.counter = 0;
}
}
Symbol 630 MovieClip [level_emeraldForest_16] Frame 19
currentLevel = 16;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $200 <br /> New Level unlocked!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 200;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $100 </font>");
_global.funds = _global.funds + 100;
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 630 MovieClip [level_emeraldForest_16] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 630 MovieClip [level_emeraldForest_16] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $100<br /><br />Pffffttt... outbreakgames.com</font>");
_global.funds = _global.funds - 100;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 630 MovieClip [level_emeraldForest_16] Frame 33
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 631 MovieClip [level_emeraldForest_17] Frame 2
_global.pause = false;
Symbol 631 MovieClip [level_emeraldForest_17] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Swarm<br /><br /><b>How did you get to this level? You won't get past.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 5;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 631 MovieClip [level_emeraldForest_17] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 6
_root.badguysender.deploy(2, 60);
_root.badguysender.deploy(2, 65);
_root.badguysender.deploy(2, 70);
_root.badguysender.deploy(2, 75);
_root.badguysender.deploy(2, 80);
_root.badguysender.deploy(2, 85);
_root.badguysender.deploy(2, 90);
_root.badguysender.deploy(2, 95);
_root.badguysender.deploy(2, 100);
_root.badguysender.deploy(2, 260);
_root.badguysender.deploy(2, 265);
_root.badguysender.deploy(2, 270);
_root.badguysender.deploy(2, 275);
_root.badguysender.deploy(2, 280);
_root.badguysender.deploy(2, 285);
_root.badguysender.deploy(2, 290);
_root.badguysender.deploy(2, 295);
_root.badguysender.deploy(2, 300);
Symbol 631 MovieClip [level_emeraldForest_17] Frame 8
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 9
_root.badguysender.deploy(6, 60);
_root.badguysender.deploy(6, 70);
_root.badguysender.deploy(6, 70);
_root.badguysender.deploy(6, 55);
_root.badguysender.deploy(6, 60);
_root.badguysender.deploy(6, 65);
_root.badguysender.deploy(6, 70);
_root.badguysender.deploy(1, 260);
_root.badguysender.deploy(1, 270);
_root.badguysender.deploy(1, 270);
_root.badguysender.deploy(1, 255);
_root.badguysender.deploy(1, 260);
_root.badguysender.deploy(1, 265);
_root.badguysender.deploy(1, 270);
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
_root.badguysender.deploy(4);
Symbol 631 MovieClip [level_emeraldForest_17] Frame 11
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 12
_root.badguysender.deploy(3, 160);
_root.badguysender.deploy(3, 165);
_root.badguysender.deploy(3, 170);
_root.badguysender.deploy(3, 175);
_root.badguysender.deploy(3, 180);
_root.badguysender.deploy(3, 185);
_root.badguysender.deploy(3, 190);
_root.badguysender.deploy(3, 195);
_root.badguysender.deploy(3, 200);
_root.badguysender.deploy(4, 160);
_root.badguysender.deploy(4, 165);
_root.badguysender.deploy(4, 170);
_root.badguysender.deploy(4, 175);
_root.badguysender.deploy(4, 180);
_root.badguysender.deploy(4, 185);
_root.badguysender.deploy(4, 190);
_root.badguysender.deploy(4, 195);
_root.badguysender.deploy(4, 200);
Symbol 631 MovieClip [level_emeraldForest_17] Frame 14
if (_root.hitDetector.badGuyArray.length == 0) {
} else {
gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 19
currentLevel = 17;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $200 <br /> New Level unlocked!<br />Amazing!!</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 200;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $100 <br /> Why subject yourself again?</font>");
_global.funds = _global.funds + 100;
_root.scoreboard.r_unit = 0;
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip [level_emeraldForest_17] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <br /> No suprise there.<p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $100<br /><br />Too dificult for you? Visit the kiddie section at outbreakgames.com</font>");
_global.funds = _global.funds - 100;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 631 MovieClip [level_emeraldForest_17] Frame 34
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 632 MovieClip [level_emeraldForest_18] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 632 MovieClip [level_emeraldForest_18] Frame 2
_global.pause = false;
Symbol 632 MovieClip [level_emeraldForest_18] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Speed Match<br /><br /><b>Kill 30 enemies in two minutes. You will get a bonus for any remaining time.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 3;
_root.scoreboard.r_minutes = 2;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 632 MovieClip [level_emeraldForest_18] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 632 MovieClip [level_emeraldForest_18] Frame 15
this.counter = 0;
this.maxCounter = 30;
this.sent = 0;
this.maxConcurent = 6;
this.maxSent = 30;
Symbol 632 MovieClip [level_emeraldForest_18] Frame 17
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 825) {
_root.badguysender.deploy(3);
_root.badguysender.deploy(4);
this.sent++;
this.sent++;
} else if (this.bgr > 500) {
_root.badguysender.deploy(8);
_root.badguysender.deploy(3);
this.sent++;
this.sent++;
} else {
_root.badguysender.deploy(3);
_root.badguysender.deploy(1);
this.sent++;
this.sent++;
}
}
}
this.counter = 0;
}
}
Symbol 632 MovieClip [level_emeraldForest_18] Frame 19
currentLevel = 18;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg(((("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $200 <br /> New Level unlocked!<br /> <br />" + Math.floor(_root.scoreboard.r_seconds)) + " seconds remaining, addtional bonus of $") + (Math.floor(_root.scoreboard.r_seconds) * 5)) + "</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 200;
_global.funds = _global.funds + (Math.floor(_root.scoreboard.r_seconds) * 5);
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg(((("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $100 <br /> <br />" + Math.floor(_root.scoreboard.r_seconds)) + " seconds remaining, addtional bonus of $") + Math.floor(_root.scoreboard.r_seconds)) + "</font>");
_global.funds = _global.funds + 100;
_global.funds = _global.funds + Math.floor(_root.scoreboard.r_seconds);
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 632 MovieClip [level_emeraldForest_18] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 632 MovieClip [level_emeraldForest_18] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Funds Lost: $100</font>");
_global.funds = _global.funds - 100;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 632 MovieClip [level_emeraldForest_18] Frame 33
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 633 MovieClip [level_emeraldForest_19] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 633 MovieClip [level_emeraldForest_19] Frame 2
_global.pause = false;
Symbol 633 MovieClip [level_emeraldForest_19] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Gauntlet<br /><br /><b>Defeat 100 enemies. For each one you kill a new one will come at you faster.<br /><br /></b></font>");
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 10;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 633 MovieClip [level_emeraldForest_19] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 633 MovieClip [level_emeraldForest_19] Frame 15
this.counter = 0;
this.maxCounter = 240;
this.sent = 0;
this.maxConcurent = 8;
this.maxSent = 100;
Symbol 633 MovieClip [level_emeraldForest_19] Frame 17
if (this.sent > 80) {
this.maxConcurent = 12;
} else if (this.sent > 50) {
this.maxConcurent = 10;
}
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
this.bgr = random(1000);
if (this.bgr > 950) {
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
_root.badguysender.deploy(2);
this.sent++;
this.sent++;
this.sent++;
this.sent++;
this.sent++;
this.sent++;
this.sent++;
this.sent++;
this.sent++;
} else if (this.bgr > 850) {
_root.badguysender.deploy(6);
_root.badguysender.deploy(3);
_root.badguysender.deploy(4);
this.sent++;
this.sent++;
this.sent++;
} else if (this.bgr > 500) {
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(8);
_root.badguysender.deploy(2);
this.sent++;
this.sent++;
this.sent++;
this.sent++;
} else {
_root.badguysender.deploy(3);
_root.badguysender.deploy(1);
_root.badguysender.deploy(1);
this.sent++;
this.sent++;
this.sent++;
}
this.maxCounter = this.maxCounter - 5;
}
}
this.counter = 0;
}
}
Symbol 633 MovieClip [level_emeraldForest_19] Frame 19
currentLevel = 19;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $200 <br /> New Level unlocked!<br /> <br /></font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 200;
_global.funds = _global.funds + (Math.floor(_root.scoreboard.r_seconds) * 5);
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br />BONUS: $100 <br /> <br /></font>");
_global.funds = _global.funds + 100;
_global.funds = _global.funds + Math.floor(_root.scoreboard.r_seconds);
_root.scoreboard.r_unit = 0;
}
_global.pause = true;
Symbol 633 MovieClip [level_emeraldForest_19] Frame 21
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 633 MovieClip [level_emeraldForest_19] Frame 31
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font> <br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $100<br /><br />Hahaha!! ..i mean, ummm, good try. www.outbreakgames.com</font>");
_global.funds = _global.funds - 100;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 633 MovieClip [level_emeraldForest_19] Frame 33
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 634 MovieClip [level_emeraldForest_20] Frame 1
MochiAd.showInterLevelAd({id:"2114a792d2439c87", res:"640x480", no_bg:true});
stop();
_global.pause = true;
Symbol 634 MovieClip [level_emeraldForest_20] Frame 2
_global.pause = false;
Symbol 634 MovieClip [level_emeraldForest_20] Frame 3
this.id = 0;
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>You are insane.<br /><br /><b>Why even attempt this?</b></font>");
_root.badguysender.create(2, 300, 300);
_global.score = 0;
_root.scoreboard.score._visible = false;
_root.scoreboard.txt_time._visible = true;
_root.scoreboard.r_seconds = 0;
_root.scoreboard.r_minutes = 10;
_root.scoreboard.r_unit = -0.026;
this.timeup = function () {
this.gotoAndPlay("Failure");
};
Symbol 634 MovieClip [level_emeraldForest_20] Frame 5
if (_root.messageBoard.msgAlive(this.msgId) == false) {
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 634 MovieClip [level_emeraldForest_20] Frame 8
this.counter = 0;
this.maxCounter = 45;
this.sent = 0;
this.maxConcurent = 3;
this.maxSent = 18;
_root.badguysender.deploy(7);
_root.badguysender.deploy(5);
Symbol 634 MovieClip [level_emeraldForest_20] Frame 10
if ((_root.hitDetector.badGuyArray.length == 0) && (this.sent >= this.maxSent)) {
} else {
gotoAndPlay(this._currentframe - 1);
this.counter++;
if (this.counter > this.maxCounter) {
if ((_root.hitDetector.badGuyArray.length + 1) <= this.maxConcurent) {
if (this.sent < this.maxSent) {
_root.badguysender.deploy(6);
_root.badguysender.deploy(6);
_root.badguysender.deploy(4);
this.sent++;
this.sent++;
this.sent++;
}
}
this.counter = 0;
}
}
Symbol 634 MovieClip [level_emeraldForest_20] Frame 16
currentLevel = 20;
if (_global.levels[currentLevel - 1] <= 1) {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>NEW Mission Complete<br /><br />BONUS: $1000 <br /> Amazing!!! Who are you?! <br />....Neo?</font>");
_global.levels[currentLevel - 1] = 2;
_global.levels[currentLevel] = 1;
_global.funds = _global.funds + 1000;
_root.scoreboard.r_unit = 0;
this.sfx_sound = new Sound(_root.sound_effect_mc);
this.sfx_sound.attachSound("sound_nav_choose");
this.sfx_sound.start();
} else {
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='16' color='#FFFFFF'>Mission Complete<br /><br />BONUS: $500 <br />Now your just showing off!</font>");
_global.funds = _global.funds + 500;
_root.scoreboard.r_unit = 0;
}
Symbol 634 MovieClip [level_emeraldForest_20] Frame 18
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}
Symbol 634 MovieClip [level_emeraldForest_20] Frame 32
this.msgId = _root.messageBoard.sendMsg("<p align=\"center\"><font face='Arial' size='24' color='#FFFFFF'>Mission Failed!</font><br /><br /><br /> <p align=\"center\"><font face='Arial' size='14' color='#FFFFFF'>Funds Lost: $200<br /><br />Don't feel bad, I dont know if it even is possible. www.outbreakgames.com</font>");
_global.funds = _global.funds - 200;
_global.pause = true;
_root.scoreboard.r_unit = 0;
Symbol 634 MovieClip [level_emeraldForest_20] Frame 35
if (_root.messageBoard.msgAlive(this.msgId) == false) {
i = 0;
while (i < _root.hitDetector.objectArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
_root.hitDetector.objectArray[i].slice(i, 1);
i++;
}
i = 0;
while (i < _root.hitDetector.badguyArray.length) {
unloadMovie (_root.hitDetector.objectArray[i]);
removeMovieClip(_root.hitDetector.objectArray[i]);
i++;
}
_root.hitDetector.objectArray = [];
i = 0;
while (i < _root.hitDetector.badguy_bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badguy_bulletArray[i]]);
i++;
}
_root.hitDetector.badguy_bulletArray = [];
i = 0;
while (i < _root.hitDetector.badGuyArray.length) {
unloadMovie (_root.stage[_root.hitDetector.badGuyArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.badGuyArray[i]]);
_root.hitDetector.badGuyArray.slice(i, 1);
i++;
}
_root.hitDetector.badGuyArray = [];
i = 0;
while (i < _root.hitDetector.touch_Array.length) {
unloadMovie (_root.stage[_root.hitDetector.touch_Array[i]]);
removeMovieClip(_root.stage[_root.hitDetector.touch_Array[i]]);
i++;
}
_root.hitDetector.touch_Array = [];
i = 0;
while (i < _root.hitDetector.bulletArray.length) {
unloadMovie (_root.stage[_root.hitDetector.bulletArray[i]]);
removeMovieClip(_root.stage[_root.hitDetector.bulletArray[i]]);
i++;
}
_root.hitDetector.bulletArray = [];
_root.scoreboard.txt_time._visible = false;
_root.hitDetector.objectArray._root.skillbar.resetrecharge();
_root.skillbar.deactivate();
_root.saveGame();
_root.attachMovie("level_menu", "level_menu", 6);
stop();
} else {
_root.messageBoard.msgAlive(this.msgId);
gotoAndPlay(this._currentframe - 1);
}