Frame 1
function Setup() {
_global.arrAllowedSites = new Array();
_global.dataPath = new \x14\x0B();
_global.dataPath.\x05\x05(2382752);
_global.doExcludePreloader = new \x14\x0B();
_global.doExcludePreloader.\x05\x05(59712137);
_global.adArray = new Array();
_global.hostArray = new Array();
Set("=\x04", -1);
Set("\x18\x06", _root.getBytesTotal());
startBytes = _root.getBytesLoaded();
Set("`\x06", false);
_global.gameMode = "";
_global.okToPlay = true;
_global.arrAllowedSites.push("herointeractive.com");
_global.arrAllowedSites.push("flashgamelicense.com");
_global.arrAllowedSites.push("armorgames.com");
_global.preloaderAD = true;
_global.adArray.push("addictinggames.com");
_global.adArray.push("agstage.shockwave.com");
_global.adArray.push("freeonlinegames.com");
_global.adArray.push("andkon.com");
_global.adArray.push("kongregate.com");
_global.adArray.push("kongregatetrunk.com");
_global.adArray.push("gamezhero.com");
_global.hostArray.push("armorgames.com");
_global.armorGames = true;
_global.heroInteractive = true;
_global.beforeIntro = false;
_global.afterIntro = false;
_global.heroLinked = true;
_global.extraContent = false;
_global.blnECPlayLinks = true;
_global.ecURL = "http://armorgames.com/play/3593/pirate-defense?gameReferral=PirateDefense";
_global.pmgMMVisable = true;
_global.pmgURL = "http://www.armorgames.com?gameReferral=PirateDefense";
_global.pmgOpenAs = "_blank";
_global.creditsHILinkShown = true;
_global.creditsLinkable = true;
_global.rightClickMenu = true;
_global.rightClickPMG = true;
_global.rightClickHeroLinks = true;
_global.versionTXT = "v 1.07";
_global.rpShow = true;
_global.rpURL = "http://www.herointeractive.com/rp";
_global.blnToolTips = true;
_global.tutorialPrompt = false;
_global.saShow = true;
_global.showFrameRate = false;
_global.hotKey1 = 83;
_global.hotKey2 = 49;
_global.hotKey3 = 50;
_global.hotKey4 = 51;
_global.pauseHotkey = 80;
_global.musicOn = true;
_global.soundOn = true;
_global.myMusicPlayer = new \x0B\x03();
_global.SoundManager = new ,\x04();
_global.typetype = 0;
\x0E\x02();
RightClickSetup();
}
function \u0013\u0006() {
4\x05();
}
function \u0013\u0002() {
_root.gotoAndStop(4);
}
function ;\u0007() {
getURL (_global.rpURL, _global.pmgOpenAs);
}
function 7\u000B() {
getURL (_global.ecURL, _global.pmgOpenAs);
}
function PMG_URL() {
getURL (_global.pmgURL, _global.pmgOpenAs);
}
function \u000E\u0002() {
var _local3 = 0;
while (_local3 < _global.adArray.length) {
if (_url.indexOf(_global.adArray[_local3]) != -1) {
_global.doExcludePreloader.\x16\x03(381594);
break;
}
_local3++;
}
if ((_global.preloaderAD == false) || (_global.doExcludePreloader.'\x05() != -1)) {
_root["=\x05"].visible = false;
_root["=\x05"]._x = -999;
_root["=\x05"]._y = -999;
_root["^\x06"]._y = _root["^\x06"]._y - 150;
} else {
_root["=\x05"].visible = true;
var _local4 = 1052;
var _local5 = 13;
System.security.allowDomain("server.cpmstar.com");
_root["=\x05"].added.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + _local4) + "&subpoolid=") + _local5);
}
}
function 4\u0005() {
if (`\x06 == false) {
if (=\x04 == -1) {
Set("#\x02", _root.getBytesLoaded());
Set("`\x02", #\x02 / \x18\x06);
myPercentLoaded = int(100 * `\x02);
_root["^\x06"].gotoAndStop(myPercentLoaded);
_root["^\x06"].preloader_txt.text = myPercentLoaded + "%";
if (myPercentLoaded == 100) {
_root["^\x06"].gotoAndStop(100);
_root["^\x06"].preloader_txt.text = "100%";
var _local3 = 0;
while (_local3 < _global.arrAllowedSites.length) {
if (_url.indexOf(_global.arrAllowedSites[_local3]) != -1) {
_global.okToPlay = true;
break;
}
_local3++;
}
_local3 = 0;
while (_local3 < _global.hostArray.length) {
if (_url.indexOf(_global.hostArray[_local3]) != -1) {
_global.extraContent = true;
_global.blnECPlayLinks = false;
break;
}
_local3++;
}
_root["^\x06"].gotoAndPlay(102);
Set("`\x06", true);
}
} else {
=\x04--;
}
}
}
function RightClickSetup() {
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
if (_global.rightClickMenu == true) {
if (_global.rightClickPMG == true) {
var _local4 = new ContextMenuItem("Play More Games!", \x05\f);
_local3.customItems.push(_local4);
}
if (_global.rightClickHeroLinks == true) {
var _local4 = new ContextMenuItem("This Game Developed by Hero Interactive", %\x06);
_local3.customItems.push(_local4);
_local4 = new ContextMenuItem("Visit Our Blog!", \x0E\n);
_local3.customItems.push(_local4);
}
}
_root.menu = _local3;
}
function \u0005\u000C() {
PMG_URL();
}
function %\u0006() {
getURL ("http://www.herointeractive.com", "_blank");
}
function \u000E\u000A() {
getURL ("http://www.herointeractive.com/blog", "_blank");
}
stop();
var =\x04;
var \x18\x06;
var startBytes;
var `\x06;
Instance of Symbol 37 MovieClip in Frame 1
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x13\x06();
}
Frame 2
_root.gotoAndStop(4);
Frame 3
function \u0013\u0003(swfid, mc, lv, \u0016\u0005) {
var x;
var g;
var 6\x06;
var fv;
var sb;
var u;
var %\f;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
Set("6\x06", System.security);
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!6\x06) {
Set("6\x06", {});
}
sb = 6\x06.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = 6\x06.allowDomain;
if (x) {
6\x06.allowDomain(mbc);
}
x = 6\x06.allowInsecureDomain;
if (x) {
6\x06.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (\x16\x05 ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
Set("%\f", "_level" + lv);
if (!eval (%\f)) {
loadMovieNum (u, lv);
}
} else {
Set("%\f", mc.createEmptyMovieClip(mb + swfid, lv));
%\f.loadMovie(u);
}
return(%\f);
}
\x13\x03("7a8cd5d1", this, 10301, true);
function Setup() {
}
function \u0013\u0006() {
Stage.width = 600;
Stage.height = 650;
}
stop();
Instance of Symbol 37 MovieClip in Frame 3
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x13\x06();
}
Frame 4
function SetupSong() {
_global.myMusicPlayer.\x02();
_global.myMusicPlayer.SetTrack("piratesong");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
function \u0004() {
_global.myMusicPlayer.\x17\x04();
}
stop();
Instance of Symbol 37 MovieClip in Frame 4
onClipEvent (load) {
_root.SetupSong();
}
onClipEvent (enterFrame) {
_root.\x04();
}
Frame 5
function Setup() {
game.PreSetup();
if (_global.musicOn == true) {
_global.myMusicPlayer.\x02();
_global.myMusicPlayer.SetTrack("ambience");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
}
function \u0013\u0006() {
_global.myMusicPlayer.\x17\x04();
\x0B\x05();
}
function 4\u0003(_arg2) {
Set("\x06\x07", _arg2);
_root["\x0F\x03"].map.animation.stop();
}
function \u000B\u0005() {
if (\x06\x07 > 0) {
\x06\x07--;
if (\x06\x07 == 0) {
_root["\x0F\x03"].map.animation.play();
}
}
}
stop();
var game = new 5\x05();
var \x06\x07 = 0;
Instance of Symbol 37 MovieClip in Frame 5
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x13\x06();
}
Frame 6
function Setup() {
_root.game.gold = _root.game.towerSetup.arrGameModes[_global.typetype - 1].gold;
_root.game.lives = _root.game.towerSetup.arrGameModes[_global.typetype - 1].lives;
_root.game.score = _root.game.towerSetup.arrGameModes[_global.typetype - 1].score;
_root.game["8\x04"] = 1;
gotoAndStop ("Game");
}
stop();
Instance of Symbol 37 MovieClip in Frame 6
onClipEvent (load) {
_root.Setup();
}
Frame 7
function Setup() {
game.Setup();
}
function \u0013\u0006() {
game.\x13\x06();
}
stop();
Instance of Symbol 37 MovieClip in Frame 7
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x13\x06();
}
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 13
gotoAndPlay (105);
Frame 105
gotoAndPlay (3);
Frame 115
stop();
Frame 119
stop();
Symbol 4 MovieClip [Path_Block] Frame 76
this.swapDepths(100000);
this.removeMovieClip();
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
_global.SoundManager.PlaySound("cannon_draw", 100);
Symbol 24 MovieClip Frame 48
_global.SoundManager.PlaySound("cannon_firehitexplode", 100);
Symbol 24 MovieClip Frame 110
_root.game.\x01();
Symbol 24 MovieClip Frame 118
gotoAndStop (1);
Symbol 33 Button
on (release) {
_root["=\x05"].removeMovieClip();
if (_global.okToPlay == true) {
_root.gotoAndPlay(13);
} else {
_root.gotoAndStop(119);
}
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 100
stop();
Symbol 34 MovieClip Frame 101
stop();
Symbol 34 MovieClip Frame 103
stop();
Symbol 1398 MovieClip [__Packages.DataObject] Frame 0
class
{
var ,
, -;
function () {
var _local3 = '\x06(55, 66);
\f\x04 = new Array(_local3);
var _local2 = 0;
while (_local2 < _local3) {
\f\x04[_local2] = 0;
_local2++;
}
\n\x02 = -1;
-\x0B = -1;
}
function (_arg8) {
var _local6 = Math.round(Math.random() * _arg8);
var _local7 = _arg8 - _local6;
\n\x02 = '\x06(0, \f\x04.length - 4);
-\x0B = '\x06(0, \f\x04.length - 4);
if (\n\x02 == -\x0B) {
if (\n\x02 == (\f\x04.length - 1)) {
-\x0B = \n\x02 - 1;
} else {
-\x0B = \n\x02 + 1;
}
}
var _local5 = _arg8 / (\f\x04.length - 2);
var _local4 = _arg8;
var _local9 = \f\x04.length;
var _local2 = 0;
while (_local2 < \f\x04.length) {
if (_local2 == \n\x02) {
\f\x04[_local2] = _local6;
} else if (_local2 == -\x0B) {
\f\x04[_local2] = _local7;
} else {
var _local3 = 0;
if (_local4 > 0) {
_local3 = Math.round((Math.random() * _local5) + (_local5 * 0.5));
if (_local3 > _local4) {
_local3 = _local4;
}
if (_local2 == (\f\x04.length - 1)) {
_local3 = _local4;
}
_local4 = _local4 - _local3;
}
\f\x04[_local2] = _local3;
}
_local2++;
}
}
function (_arg6) {
var _local7 = 0;
while (_local7 < 10) {
var _local5 = Math.round(Math.random() * _arg6);
var _local8 = _arg6 - _local5;
\n\x02 = '\x06(0, \f\x04.length - 4);
-\x0B = '\x06(0, \f\x04.length - 4);
if (\n\x02 == -\x0B) {
if (\n\x02 == (\f\x04.length - 1)) {
-\x0B = \n\x02 - 1;
} else {
-\x0B = \n\x02 + 1;
}
}
var _local4 = _arg6 / (\f\x04.length - 2);
var _local10 = _arg6;
var _local9 = \f\x04.length;
var _local2 = 0;
while (_local2 < \f\x04.length) {
if (_local2 == \n\x02) {
\f\x04[_local2] = _local5;
} else if (_local2 == -\x0B) {
\f\x04[_local2] = _local8;
} else {
var _local3 = 0;
_local3 = Math.round((Math.random() * (_local4 * 1.23)) + (_local4 * 0.75));
\f\x04[_local2] = _local3;
}
_local2++;
}
if ('\x05() == -1) {
break;
}
_local7++;
}
}
function '() {
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
while (_local2 < \f\x04.length) {
if (_local2 == \n\x02) {
_local3 = _local3 + \f\x04[_local2];
} else if (_local2 == -\x0B) {
_local3 = _local3 + \f\x04[_local2];
} else {
_local4 = _local4 + \f\x04[_local2];
}
_local2++;
}
if (_local3 == _local4) {
return(_local3);
}
return(-1);
}
function () {
var _local2 = \f\x04.slice();
_local2.splice(2, 0, \n\x02);
_local2.splice(7, 0, -\x0B);
return(_local2);
}
function ^
(_arg2) {
\n\x02 = _arg2[2];
-\x0B = _arg2[7];
delete \f\x04;
\f\x04 = _arg2.slice();
\f\x04.splice(7, 1);
\f\x04.splice(2, 1);
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1399 MovieClip [__Packages.SoundPlayer] Frame 0
class ,
{
var , -,
, !, , ), <,
;
function , () {
\x1D\x04 = new Array(true, true, true, true, true, true);
-\f = new Sound(_root["\x02\x04"]);
\x01\n = new Sound(_root["\x1F\x02"]);
!\x03 = new Sound(_root["\x1E\x06"]);
\x1C\x0B = new Sound(_root["!\n"]);
)\f = new Sound(_root["5"]);
< = new Sound(_root["\x1B\x03"]);
\r\f = 100;
}
function (_arg2) {
\x1D\x04[_arg2] = true;
}
function PlaySound(_arg4, _arg5) {
if (_global.soundOn == true) {
var thisRef = this;
if (\x1D\x04[0] == true) {
\x1D\x04[0] = false;
delete -\f;
-\f = new Sound(_root["\x02\x04"]);
-\f.attachSound(_arg4);
-\f.setVolume(_arg5);
-\f.start(0, 0);
-\f.onSoundComplete = function () {
thisRef.\x06\x06(0);
};
} else if (\x1D\x04[1] == true) {
\x1D\x04[1] = false;
delete \x01\n;
\x01\n = new Sound(_root["\x1F\x02"]);
\x01\n.attachSound(_arg4);
\x01\n.setVolume(_arg5);
\x01\n.start(0, 0);
\x01\n.onSoundComplete = function () {
thisRef.\x06\x06(1);
};
} else if (\x1D\x04[4] == true) {
\x1D\x04[4] = false;
delete )\f;
)\f = new Sound(_root["5"]);
)\f.attachSound(_arg4);
)\f.setVolume(_arg5);
)\f.start(0, 0);
)\f.onSoundComplete = function () {
thisRef.\x06\x06(4);
};
} else if (\x1D\x04[5] == true) {
\x1D\x04[5] = false;
delete <;
< = new Sound(_root["\x1B\x03"]);
<.attachSound(_arg4);
<.setVolume(_arg5);
<.start(0, 0);
<.onSoundComplete = function () {
thisRef.\x06\x06(5);
};
} else {
\x1D\x04[0] = false;
delete -\f;
-\f = new Sound(_root["\x02\x04"]);
-\f.attachSound(_arg4);
-\f.setVolume(_arg5);
-\f.start(0, 0);
-\f.onSoundComplete = function () {
thisRef.\x06\x06(0);
};
}
}
}
function (_arg4) {
if (_global.soundOn == true) {
var thisRef = this;
if (\x1D\x04[2] == true) {
\x1D\x04[2] = false;
delete !\x03;
!\x03 = new Sound(_root["\x1E\x06"]);
!\x03.attachSound(_arg4);
!\x03.setVolume(100);
!\x03.start(0, 0);
!\x03.onSoundComplete = function () {
thisRef.\x06\x06(2);
};
}
}
}
function -(_arg5) {
if (_global.soundOn == true) {
var _local4 = this;
if (\x1D\x04[3] == true) {
\x1D\x04[3] = false;
delete \x1C\x0B;
\x1C\x0B = new Sound(_root["!\n"]);
\x1C\x0B.attachSound(_arg5);
\x1C\x0B.setVolume(50);
\x1C\x0B.start(0, 99999);
}
}
}
function () {
if (\x1D\x04[0] == false) {
\x1D\x04[0] = true;
-\f.stop();
}
}
function 8() {
if (\x1D\x04[3] == false) {
\x1D\x04[3] = true;
\x1C\x0B.stop();
}
}
function (_arg2) {
var thisRef = this;
if (\x1D\x04[0] == true) {
\x1D\x04[0] = false;
delete -\f;
-\f = new Sound();
-\f.loadSound(_arg2, false);
-\f.setVolume(\r\f);
-\f.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
-\f.onSoundComplete = function () {
thisRef.\x06\x06(0);
};
} else if (\x1D\x04[1] == true) {
\x1D\x04[1] = false;
delete \x01\n;
\x01\n = new Sound();
\x01\n.loadSound(_arg2, false);
\x01\n.setVolume(\r\f);
\x01\n.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x01\n.onSoundComplete = function () {
thisRef.\x06\x06(1);
};
} else {
\x1D\x04[0] = false;
delete -\f;
-\f = new Sound();
-\f.loadSound(_arg2, false);
-\f.setVolume(\r\f);
-\f.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
-\f.onSoundComplete = function () {
thisRef.\x06\x06(0);
};
}
}
}
Symbol 1400 MovieClip [__Packages.Music] Frame 0
class
{
var mySound, , , ", , #, , 7, >;
function () {
mySound = new Sound(_root["4\n"]);
\x16\x06 = 100;
\x0F\x04 = "";
\" = false;
\f\x06 = false;
#\x06 = true;
\x0F\x02 = 60;
}
function () {
\x0F\x04 = "ambience";
mySound.stop();
mySound.attachSound(\x0F\x04);
\x16\x06 = \x0F\x02;
mySound.setVolume(\x16\x06);
mySound.start(0, 2000);
\f\x06 = true;
_global.soundOn = _global.prevSoundOn;
}
function SetMaxVolume(_arg2) {
\x0F\x02 = _arg2;
}
function SetTrack(_arg2) {
if (_arg2 == \x0F\x04) {
#\x06 = false;
} else {
#\x06 = true;
\x0F\x04 = _arg2;
}
}
function () {
mySound.stop();
mySound.attachSound(\x0F\x04);
\x16\x06 = \x0F\x02;
mySound.setVolume(\x16\x06);
mySound.start(0, 2000);
\f\x06 = true;
}
function Stop() {
mySound.stop();
\f\x06 = false;
}
function PlayWithCrossFade(_arg3) {
if (#\x06 == true) {
if (\f\x06 == true) {
\" = true;
7\x04 = 0;
var _local2 = _arg3 * 30;
>\x07 = (7\x04 - \x16\x06) / (_local2 / 2);
} else {
mySound.stop();
mySound.attachSound(\x0F\x04);
if (\x0F\x04 != "piratesong") {
mySound.start(0, 2000);
} else {
mySound.start(0, 0);
var thisRef = this;
mySound.onSoundComplete = function () {
thisRef.\x0E\f();
};
}
\f\x06 = true;
\" = false;
7\x04 = \x0F\x02;
\x16\x06 = 0;
mySound.setVolume(0);
var _local2 = _arg3 * 30;
>\x07 = (7\x04 - \x16\x06) / _local2;
}
}
}
function () {
if (7\x04 != \x16\x06) {
var _local2;
_local2 = \x16\x06 + >\x07;
if ((>\x07 < 0) && (_local2 < 0)) {
_local2 = 0;
} else if ((>\x07 > 0) && (_local2 > 7\x04)) {
_local2 = 7\x04;
}
\x16\x06 = _local2;
mySound.setVolume(_local2);
}
if (\" == true) {
var thisMusic = this;
if (\x16\x06 <= 0) {
>\x07 = >\x07 * -1;
\" = false;
7\x04 = \x0F\x02;
mySound.stop();
mySound.attachSound(\x0F\x04);
mySound.setVolume(0);
if (\x0F\x04 != "piratesong") {
mySound.start(0, 2000);
} else {
mySound.start(0, 0);
mySound.onSoundComplete = function () {
thisMusic.\x0E\f();
};
}
\f\x06 = true;
}
}
}
}
Symbol 1401 MovieClip [__Packages.PirateDefenseGame] Frame 0
#initclip
if (!_global["5\x05"]) {
var _local1 = function () {
this["\x03\x04"] = false;
};
_global["5\x05"] = _local1;
var _local2 = _local1.prototype;
_local2.PreSetup = function () {
this.towerSetup = new TowerSetup();
this.towerSetup.comboIndex = 0;
if (_global.showFrameRate == true) {
this[";"] = new \x14\x07();
this[";"].\x11\x04(0);
this[";"].Start();
}
};
_local2["\n\x06"] = function (_arg5) {
if (_global.blnToolTips == false) {
return(false);
}
if ((this.tool.\x1D\x05(_arg5) == false) && (this["8\x04"] != 5)) {
if (_arg5 == 1) {
if (this.arrTowers.length == 0) {
this.ToolTipSetup();
return(true);
}
} else if (_arg5 == 2) {
if (this[",\f"].length == 0) {
if (this["\x17\x07"].length == 0) {
if (this["\f\x02"].length == 0) {
if (this["5\x03"].length == 0) {
if (this["\x11\x02"].length == 0) {
if (this["(\x02"].length == 0) {
if (this["\x15\x0B"].length == 0) {
if (this["3"].length == 0) {
if (this["\x06"].length == 0) {
if (this[" "].length == 0) {
this.ToolTipSetup();
return(true);
}
}
}
}
}
}
}
}
}
}
} else if (_arg5 == 3) {
if (this["9\x0B"] == true) {
if (this.arrTowers.length == 0) {
this.ToolTipSetup();
return(true);
}
}
} else if (_arg5 == 4) {
if (this.arrTowers.length == 1) {
var _local7 = ((((((((this[",\f"].length + this["\x17\x07"].length) + this["\f\x02"].length) + this["5\x03"].length) + this["\x11\x02"].length) + this["(\x02"].length) + this["\x15\x0B"].length) + this["3"].length) + this["\x06"].length) + this[" "].length;
if (_local7 == 1) {
this.ToolTipSetup();
return(true);
}
}
} else if (_arg5 == 5) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[this.arrTowers.length - 1]]._linkable == true) {
var _local7 = ((((((((this[",\f"].length + this["\x17\x07"].length) + this["\f\x02"].length) + this["5\x03"].length) + this["\x11\x02"].length) + this["(\x02"].length) + this["\x15\x0B"].length) + this["3"].length) + this["\x06"].length) + this[" "].length;
if (_local7 == 0) {
this.ToolTipSetup();
return(true);
}
}
} else if (_arg5 == 6) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[this.arrTowers.length - 1]]._upgrades > 0) {
this.ToolTipSetup();
return(true);
}
} else if (_arg5 == 7) {
var _local6 = false;
var _local4 = 0;
while (_local4 < this.arrTowers.length) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[_local4]]._linkable == true) {
_local6 = true;
}
_local4++;
}
if (_local6 == false) {
this.ToolTipSetup();
return(true);
}
} else if (_arg5 == 8) {
var _local6 = false;
var _local4 = 0;
while (_local4 < this.arrTowers.length) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[_local4]]._linkable == true) {
_local6 = true;
}
_local4++;
}
if (_local6 == true) {
this.ToolTipSetup();
return(true);
}
} else if (_arg5 == 9) {
}
}
return(false);
};
_local2["\x07\f"] = function (_arg3) {
_root["\x19\x02"].tRange.removeMovieClip();
if (_arg3 == 1) {
} else if (_arg3 == 2) {
this.\x12\x05();
} else if (_arg3 == 3) {
} else if (_arg3 == 4) {
} else if (_arg3 == 5) {
} else if (_arg3 == 6) {
} else if (_arg3 == 7) {
this.\n\f();
this.\x12\x05();
} else if (_arg3 == 8) {
this.\n\f();
this.\x12\x05();
} else if (_arg3 == 9) {
}
};
_local2.ToolTipSetup = function () {
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
this["\x10\x06"] = false;
this["9\x04"] = true;
this["!\x02"] = 30;
this["8\x04"] = 5;
this.\x11\f();
};
_local2.Setup = function () {
this.towerSetup.comboIndex = 0;
this[">\x0B"] = true;
this["\x1F\n"] = false;
this["9\x04"] = false;
this["!\x02"] = -1;
this["(\x0B"] = false;
this["\x0E\x07"] = 0;
this.towerDimType = 40;
this["1\x05"] = 60000;
this["\x15"] = 202000 /* 0x031510 */;
this.towerDepth = 50000;
this["`\n"] = 61000;
this["6\x02"] = 70000 /* 0x011170 */;
this["\x14\n"] = 80000 /* 0x013880 */;
this[">\x04"] = 100000 /* 0x0186A0 */;
this["+\f"] = false;
this["4"] = false;
this["\x10\x06"] = false;
this["8\x04"] = 0;
this["\x01\x07"] = false;
this["\x14\x04"] = 0;
this["\x14\x04"] = 0;
this["\x18\x03"] = {};
this["\x16\n"] = {};
this.downTower = {};
this.upTower = {};
this["1"] = false;
this["`\x05"] = 0;
this["\x14\x06"] = 0;
this["#\x05"] = false;
Mouse.removeListener(this["\r\x07"]);
var thisRef = this;
this["\r\x07"] = new Object();
this["\r\x07"].onMouseDown = function () {
thisRef.\x04\x05();
};
this["\r\x07"].onMouseUp = function () {
thisRef.]\x05();
};
Mouse.addListener(this["\r\x07"]);
this.towerMem1 = "";
this.towerMem2 = "";
this.towerMem3 = "";
this.towerMem4 = "";
this.towerMem5 = "";
this["\r\x04"] = false;
this["\x02\x02"] = new Array();
this.arrLinkage = new Array();
this.arrTowers = new Array();
this["\x1F\x05"] = new Array();
this.arrBullets = new Array();
this["\x19\n"] = new Array();
this[",\f"] = new Array();
this["\x17\x07"] = new Array();
this["\f\x02"] = new Array();
this["5\x03"] = new Array();
this["\x11\x02"] = new Array();
this["(\x02"] = new Array();
this["\x15\x0B"] = new Array();
this["3"] = new Array();
this["\x06"] = new Array();
this[" "] = new Array();
this["-"] = new Array();
this.fps = new \x14\x07();
this["4\x04"] = new \x1B\x04();
this["4\x04"].\x04\x02(_root["7\x05"].inside);
this["4\x04"].\x12\x0B();
this[">\x02"] = new Tutorial();
this.tool = new \x16(this["\x15"]);
this.tool["\r"] = -1;
this.map = new 2\x02();
this["\x03\n"] = new \x1B\f();
this["\x03\n"].^\x05(this.map.(\x06());
this["3\x03"] = new \x05\x0B();
this["3\x03"].+\x04("top", _root, 100000);
this["3\x03"].+\x04("game", _root["\x19\x02"].GAMEBOX, 110000);
this["3\x03"].+\x04("holes", _root["\x19\x02"].GAMEBOX, 55000);
this[",\x05"] = new [\x05(_root["\x19\x02"].GAMEBOX, 120000);
_root["\x19\x02"].GAMEBOX.attachMovie("Doodad_Arrow", "Doodad_Arrow1", 49999);
_root["\x19\x02"].GAMEBOX.Doodad_Arrow1._x = this.\x1B\x0B(4);
_root["\x19\x02"].GAMEBOX.Doodad_Arrow1._y = this.\x1B\x0B(0);
_root["\x19\x02"].GAMEBOX.Doodad_Arrow1.cacheAsBitmap = true;
_root["\x19\x02"].GAMEBOX.attachMovie("Doodad_Arrow", "Doodad_Arrow2", 49998);
_root["\x19\x02"].GAMEBOX.Doodad_Arrow2._x = this.\x1B\x0B(17);
_root["\x19\x02"].GAMEBOX.Doodad_Arrow2._y = this.\x1B\x0B(0);
_root["\x19\x02"].GAMEBOX.Doodad_Arrow2.cacheAsBitmap = true;
this["\x03\x06"] = false;
this.upgradeKey = 0;
this[" \n"] = 600;
this["9\x0B"] = true;
this["\x07\n"] = "playing";
this["\f\n"] = "";
this.towerBuff = "";
this["\x1E"] = false;
this.\x1B\x02();
if (_global.tutorialPrompt == true) {
this.\x0B\f();
} else {
this["8\x04"] = 0;
}
_global.toolTipSection = -1;
_root["\x19\x02"].GAMEBOX.bg_types.gotoAndStop(this.towerSetup.arrGameModes[_global.typetype - 1].bg);
_root["\x19\x02"].tRange.removeMovieClip();
if (_global.typetype == 12) {
this.\x1D\x02();
}
this.ToolTipSetup();
this.tool.5\n(9);
};
_local2["\x13\x06"] = function () {
if (_global.showFrameRate == true) {
this[";"].\x13\x06();
}
switch (this["8\x04"]) {
case 0 :
this["4\x04"].\x13\x06();
this.#\x04();
this.\x05();
this["3\x03"].\x13\x06();
this.#\f();
this[",\x05"].\x13\x06();
this.^();
break;
case 1 :
this["4\x04"].\x13\x06();
this.#\x04();
this.\x05();
this["3\x03"].\x13\x06();
this.#\f();
this[",\x05"].\x13\x06();
this.^();
break;
case 2 :
this.#\x04();
break;
case 3 :
this.#\x04();
this.+();
break;
case 4 :
this["4\x04"].\x13\x06();
this.#\x04();
if (this["\r\x04"] == false) {
this.\x13\x04();
}
this.\x05();
this["3\x03"].\x13\x06();
this.#\f();
this[",\x05"].\x13\x06();
this.^();
break;
case 5 :
break;
}
this.\x11\x03();
if (Key.isDown(79)) {
if ((Key.isDown(76) && (Key.isDown(68))) && (Key.isDown(71))) {
this.?\x06();
}
}
if ((this["\x10\x06"] == true) && (this["\r\x04"] == false)) {
if (Key.isDown(_global.hotKey1)) {
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
if (_global.typetype != 8) {
this.&\x07();
this["\x10\x06"] = false;
}
} else if (Key.isDown(_global.hotKey2)) {
if (_root["\x19\x02"].GAMEBOX[this.downTower.name]._upgrades > 0) {
if (this.upgradeKey == 0) {
this.upgradeKey = 15;
this.\"\x05(1);
}
}
} else if (Key.isDown(_global.hotKey3)) {
if (_root["\x19\x02"].GAMEBOX[this.downTower.name]._upgrades > 1) {
if (this.upgradeKey == 0) {
this.upgradeKey = 15;
this.\"\x05(2);
}
}
} else if (Key.isDown(_global.hotKey4)) {
if (_root["\x19\x02"].GAMEBOX[this.downTower.name]._upgrades > 2) {
if (this.upgradeKey == 0) {
this.upgradeKey = 15;
this.\"\x05(3);
}
}
}
}
};
_local2["\x11\x03"] = function () {
if (this.upgradeKey > 0) {
this.upgradeKey--;
}
};
_local2["\x05"] = function () {
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]].\x13\x06();
_local3++;
}
_local3 = 0;
while (_local3 < this["\x02\x02"].length) {
_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]].\x13\x06();
_local3++;
}
_local3 = 0;
while (_local3 < this.arrBullets.length) {
_root["\x19\x02"].GAMEBOX[this.arrBullets[_local3]].\x13\x06();
_local3++;
}
_local3 = 0;
while (_local3 < this["\x19\n"].length) {
_root["\x19\x02"].GAMEBOX[this["\x19\n"][_local3]].\x13\x06();
_local3++;
}
};
_local2["\x04\x05"] = function () {
if ((this["\x01\x07"] == false) && (this["9\x04"] == false)) {
this["\x01\x07"] = true;
var _local2 = this.\x18(2);
this.downTower = this.\x06\x03(_local2.x, _local2.y, this.downTower.name);
if (this["8\x04"] == 3) {
this["\x18\x03"] = this.\x06\x03(_local2.x, _local2.y, this["\x18\x03"].name);
if (this["\x18\x03"].hit == true) {
this["#\x05"] = true;
this.\n\f();
this.9();
this.@\n();
this["#\x05"] = false;
this["&\x06"] = true;
}
}
}
};
_local2["]\x05"] = function () {
this["\x10\x06"] = false;
this["\x03\x06"] = false;
if (this["9\x04"] == false) {
this["\x01\x07"] = false;
var _local3 = this.\x18(2);
this.upTower = this.\x06\x03(_local3.x, _local3.y, "rock_lobsterUP");
if (this["8\x04"] == 4) {
this.\x1B\n(this["\x0E\x07"]);
} else if (this["8\x04"] == 3) {
if (_root.tower_menu.hitTest(_root._xmouse, _root._ymouse)) {
_root["\x19\x02"].drawLine.removeMovieClip();
this["&\x06"] = false;
} else {
this.\x11\x05();
_root["\x19\x02"].drawLine.removeMovieClip();
var _local4 = false;
if (this["&\x06"] == true) {
this["\x16\n"] = this.\x06\x03(_local3.x, _local3.y, "---");
if (this["\x16\n"].hit == true) {
var _local6 = this. \x06(this["\x18\x03"], this["\x16\n"]);
if (_local6 == false) {
var _local5 = this.(\x05(this["\x18\x03"], this["\x16\n"]);
if (_local5 == false) {
var _local7 = this.\x10\x02(this["\x18\x03"], this["\x16\n"]);
if (((_local7 == false) && _root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._linkable) && _root["\x19\x02"].GAMEBOX[this["\x16\n"].name]._linkable) {
if (this.\x04\x07(this["\x18\x03"], this["\x16\n"]) == false) {
this.\x17\f(this["\x18\x03"], this["\x16\n"]);
}
} else if (_root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._linkable && _root["\x19\x02"].GAMEBOX[this["\x16\n"].name]._linkable) {
if (this["(\x0B"] == false) {
this.@\n();
}
_local4 = true;
this.7\x03(this["\x18\x03"]);
}
} else {
this.9\x03(this["\x16\n"], this["\x18\x03"]);
}
}
}
}
}
if (_local4 == false) {
this.\n\f();
this.9();
this["(\x0B"] = false;
}
this["&\x06"] = false;
}
this.@\x03();
}
};
_local2["^"] = function () {
if (this[" \n"] > 0) {
this[" \n"]--;
} else if (this[" \n"] == 0) {
if (this.\n\x06(3) == true) {
this.tool.5\n(3);
}
this[" \n"] = -1;
}
};
_local2.ComboAchieve = function (_arg2) {
if (_arg2 > 1) {
if (((_arg2 > this.towerSetup.comboIndex) && (_arg2 < 11)) || (_arg2 == 20)) {
var _local3 = 0;
while (this.towerSetup.comboIndex != _arg2) {
this.towerSetup.comboIndex++;
_local3 = _local3 + this.towerSetup.arrCombos[_arg2 - 2].gold;
}
this.towerSetup.comboIndex = _arg2;
this.ScoreAddition(100, _local3);
this[",\x05"].=\x03(this.towerSetup.arrCombos[_arg2 - 2].comboText, 16724736);
this[",\x05"].9\x07(_arg2);
} else if (((_arg2 > this.towerSetup.comboIndex) && (_arg2 > 10)) && (_arg2 != 20)) {
if (this.towerSetup.comboIndex < 10) {
var _local3 = 0;
while (this.towerSetup.comboIndex != _arg2) {
this.towerSetup.comboIndex++;
if (_arg2 < 11) {
_local3 = _local3 + this.towerSetup.arrCombos[_arg2 - 2].gold;
}
}
this.towerSetup.comboIndex = 10;
this.ScoreAddition(100, _local3);
this[",\x05"].=\x03(this.towerSetup.arrCombos[_arg2 - 2].comboText, 16724736);
this[",\x05"].9\x07(_arg2);
} else {
_arg2 = 10;
var _local5 = _arg2 * 3;
var _local4 = _arg2 * 60;
this[",\x05"].=\x03(((((_arg2 + "x Combo Tally! +") + _local5) + " Gold +") + _local4) + " Points", 16724736);
this.ScoreAddition(_local4, _local5);
}
} else {
var _local5 = _arg2 * 3;
var _local4 = _arg2 * 60;
this[",\x05"].=\x03(((((_arg2 + "x Combo Tally! +") + _local5) + " Gold +") + _local4) + " Points", 16724736);
this.ScoreAddition(_local4, _local5);
}
}
};
_local2["\x0B\f"] = function () {
this.TutorialSetup();
this[">\x02"].CreateNextObject();
this.\x02\n();
};
_local2[" \x0B"] = function () {
_global.tutorialPrompt = false;
this.<\x05();
this.\x02\n();
};
_local2["\x12\x03"] = function (_arg4, _arg6, _arg5, _arg7) {
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if (_root["\x19\x02"].GAMEBOX[_arg4].\x0E\x0B(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]]._x, _root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]]._y) < _arg6) {
_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]].DamageEnemy(_arg5, _arg7);
}
_local3++;
}
};
_local2["0\x04"] = function (_arg6) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local7 = new Array();
var _local8 = this.%\x02(_arg6);
var _local5 = 0;
while (_local5 < this["\x02\x02"].length) {
if (_local4[_arg6].\x0E\x0B(_local4[this["\x02\x02"][_local5]], false) < _local4[_arg6]._rRange) {
if (_local8) {
if (_local4[this["\x02\x02"][_local5]].splasher < 1) {
if (_local4[_arg6]._libName == "Tower_414") {
_global.SoundManager.PlaySound("pit", 100);
} else if (_local4[_arg6]._libName == "Tower_415") {
if (this.'\x06(0, 100) < 60) {
_global.SoundManager.PlaySound("fish", 60);
}
}
}
_local4[this["\x02\x02"][_local5]]["1\x06"] = true;
_local4[this["\x02\x02"][_local5]].Stop();
}
_local7.push(_local4[this["\x02\x02"][_local5]]);
}
_local5++;
}
return(_local7);
};
_local2["-\x04"] = function (_arg6) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local5 = 0;
while (_local5 < this.arrTowers.length) {
if (_local4[this.arrTowers[_local5]]._libName == "Tower_416") {
if (_local4[this.arrTowers[_local5]]._bam == true) {
if (_local4[this.arrTowers[_local5]].\x0E\x0B(_local4[_arg6], false) < _local4[this.arrTowers[_local5]]._rRange) {
_local4[_arg6]["\x19\x03"] = 416;
return(true);
}
}
} else if (this.map.Tower417Check(this.'\x04(_local4[_arg6]._x), this.'\x04(_local4[_arg6]._y))) {
if (_local4[this.arrTowers[_local5]].\x0E\x0B(_local4[_arg6], false) < _local4[this.arrTowers[_local5]]._rRange) {
_local4[_arg6]["\x19\x03"] = 417;
_global.SoundManager.PlaySound("tar", 100);
return(true);
}
}
_local5++;
}
return(false);
};
_local2["4\x07"] = function (_arg5) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local6 = new Array();
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if (_local4[_arg5].\x0E\x0B(_local4[this["\x02\x02"][_local3]], false) < _local4[_arg5]._rRange) {
_local6.push(_local4[this["\x02\x02"][_local3]]);
}
_local3++;
}
return(_local6);
};
_local2["%\x02"] = function (_arg2) {
if ((_root["\x19\x02"].GAMEBOX[_arg2]._libName == "Tower_407") || (_root["\x19\x02"].GAMEBOX[_arg2]._libName == "Tower_416")) {
return(false);
}
return(true);
};
_local2["`"] = function (_arg5) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if (_local4[_arg5].\x0E\x0B(_local4[this["\x02\x02"][_local3]], false) < _local4[_arg5]._rRange) {
_local4[_arg5]._targetPirate = _local4[this["\x02\x02"][_local3]];
return(true);
}
_local3++;
}
return(false);
};
_local2["\x16\x02"] = function (_arg6, _arg7, _arg5) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if (_local4[_arg6].\x0E\x0B(_local4[this["\x02\x02"][_local3]], false) < _arg7) {
_local4[this["\x02\x02"][_local3]].DamageEnemy(_arg5, 4);
}
_local3++;
}
};
_local2.CheckBulletTargets = function (_arg6) {
var _local5 = _root["\x19\x02"].GAMEBOX;
var _local4 = new Array();
var _local3 = 0;
while (_local3 < this.arrBullets.length) {
if (_local5[this.arrBullets[_local3]]._enTarget._name == _arg6) {
_local4.push(this.arrBullets[_local3]);
}
_local3++;
}
_local3 = 0;
while (_local3 < _local4.length) {
this.RemoveBullet(_local4[_local3]);
_local3++;
}
};
_local2.RemoveBullet = function (_arg4) {
var _local3 = 0;
while (_local3 < this.arrBullets.length) {
if (this.arrBullets[_local3] == _arg4) {
this.arrBullets.splice(_local3, 1);
_root["\x19\x02"].GAMEBOX[_arg4].removeMovieClip();
break;
}
_local3++;
}
};
_local2.SwingHit = function (_arg4, _arg5) {
var _local3 = _root["\x19\x02"].GAMEBOX;
this.\x03\x05(_arg4, _local3[_arg4]._rRange, _arg5, _local3[_arg4]._dim);
};
_local2["\x10\n"] = function (_arg4) {
var _local3 = _root["\x19\x02"].GAMEBOX;
var _local5 = 0;
while (_local5 < this["-"].length) {
if (_local3[this["-"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["-"][_local5]]._bam = true;
_local3[this["-"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this[",\f"].length) {
if (_local3[this[",\f"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this[",\f"][_local5]]._bam = true;
_local3[this[",\f"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x17\x07"].length) {
if (_local3[this["\x17\x07"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x17\x07"][_local5]]._bam = true;
_local3[this["\x17\x07"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\f\x02"].length) {
if (_local3[this["\f\x02"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\f\x02"][_local5]]._bam = true;
_local3[this["\f\x02"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["5\x03"].length) {
if (_local3[this["5\x03"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["5\x03"][_local5]]._bam = true;
_local3[this["5\x03"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x11\x02"].length) {
if (_local3[this["\x11\x02"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x11\x02"][_local5]]._bam = true;
_local3[this["\x11\x02"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["(\x02"].length) {
if (_local3[this["(\x02"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["(\x02"][_local5]]._bam = true;
_local3[this["(\x02"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x15\x0B"].length) {
if (_local3[this["\x15\x0B"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x15\x0B"][_local5]]._bam = true;
_local3[this["\x15\x0B"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["3"].length) {
if (_local3[this["3"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["3"][_local5]]._bam = true;
_local3[this["3"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x06"].length) {
if (_local3[this["\x06"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x06"][_local5]]._bam = true;
_local3[this["\x06"][_local5]].<\x04();
}
_local5++;
}
_local5 = 0;
while (_local5 < this[" "].length) {
if (_local3[this[" "][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this[" "][_local5]]._bam = true;
_local3[this[" "][_local5]].<\x04();
}
_local5++;
}
};
_local2["#\f"] = function () {
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if ((_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]]._x < -30) || (_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]]._x > ((0 + _root["\x19\x02"]._x) + _root["\x19\x02"]._width))) {
_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]].\x14\x03();
}
var _local4 = this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]]._x);
if ((_local4 & 1) == 0) {
_local4--;
}
this.=\x07(this["\x02\x02"][_local3]);
switch (_local4) {
case 1 :
this.)\x05(this["\x02\x02"][_local3], this[",\f"]);
break;
case 3 :
this.)\x05(this["\x02\x02"][_local3], this["\x17\x07"]);
break;
case 5 :
this.)\x05(this["\x02\x02"][_local3], this["\f\x02"]);
break;
case 7 :
this.)\x05(this["\x02\x02"][_local3], this["5\x03"]);
break;
case 9 :
this.)\x05(this["\x02\x02"][_local3], this["\x11\x02"]);
break;
case 11 :
this.)\x05(this["\x02\x02"][_local3], this["(\x02"]);
break;
case 13 :
this.)\x05(this["\x02\x02"][_local3], this["\x15\x0B"]);
break;
case 15 :
this.)\x05(this["\x02\x02"][_local3], this["3"]);
break;
case 17 :
this.)\x05(this["\x02\x02"][_local3], this["\x06"]);
break;
case 19 :
this.)\x05(this["\x02\x02"][_local3], this[" "]);
}
_local3++;
}
};
_local2["=\x07"] = function (_arg5) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local6 = 0;
while (_local6 < this["-"].length) {
if (_local4[this["-"][_local6]].\x0E\x0B(_local4[_arg5], false) < _local4[this["-"][_local6]]._rRange2) {
if (_local4[_arg5]._blnGetLure == false) {
var _local10 = false;
if (_local4[_arg5].arrPastLure.length == 0) {
_local10 = true;
} else {
var _local11 = false;
var _local7 = 0;
while (_local7 < _local4[_arg5].arrPastLure.length) {
if (_local4[_arg5].arrPastLure[_local7] == this["-"][_local6]) {
_local11 = true;
}
_local7++;
}
if (_local11 == false) {
_local10 = true;
}
}
if (_local10 == true) {
var _local8 = false;
var _local9 = 0;
if (_local4[this["-"][_local6]]._libName == "Tower_108") {
if (this.'\x06(1, 10) <= 6) {
_local8 = true;
_local9 = 1;
}
if (_local8 == false) {
_local4[_arg5].arrPastLure.push(this["-"][_local6]);
}
} else if (_local4[this["-"][_local6]]._libName == "Tower_118") {
if ((_local4[_arg5].enemyType == 1) || (_local4[_arg5].enemyType == 6)) {
_local8 = true;
_local9 = 2;
}
} else if (_local4[this["-"][_local6]]._libName == "Tower_119") {
if ((_local4[_arg5].enemyType == 2) || (_local4[_arg5].enemyType == 6)) {
_local8 = true;
_local9 = 3;
}
} else if (_local4[this["-"][_local6]]._libName == "Tower_120") {
if ((_local4[_arg5].enemyType == 3) || (_local4[_arg5].enemyType == 6)) {
_local8 = true;
_local9 = 4;
}
}
if (_local8 == true) {
if (_local4[_arg5].blnBumped == false) {
_local4[_arg5].arrPastLure.push(this["-"][_local6]);
_local4[_arg5]["#"] = this.'\x04(_local4[this["-"][_local6]]._x);
_local4[_arg5]["\x1D\f"] = this.'\x04(_local4[this["-"][_local6]]._y);
_local4[_arg5]._blnGetLure = true;
if (this.'\x06(0, 100) < 20) {
switch (_local9) {
case 1 :
_global.SoundManager.PlaySound("lure", 100);
break;
case 2 :
_global.SoundManager.PlaySound("greedy" + this.'\x06(1, 2), 100);
break;
case 3 :
_global.SoundManager.PlaySound("lusty" + this.'\x06(1, 3), 100);
break;
case 4 :
_global.SoundManager.PlaySound("thirsty" + this.'\x06(1, 2), 100);
}
}
}
}
}
}
}
_local6++;
}
};
_local2[")\x05"] = function (_arg6, _arg5) {
var _local2 = _root["\x19\x02"].GAMEBOX;
var _local4 = 0;
while (_local4 < _arg5.length) {
if (_local2[_arg5[_local4]].\x0E\x0B(_local2[_arg6], false) < _local2[_arg5[_local4]]._rRange) {
var _local3 = 0;
while (_local3 < _local2[_arg5[_local4]]._arrLinks.length) {
_local2[_local2[_arg5[_local4]]._arrLinks[_local3]]._bam = true;
_local2[_local2[_arg5[_local4]]._arrLinks[_local3]].<\x04();
_local3++;
}
break;
}
_local4++;
}
};
_local2["\x0E"] = function (_arg5) {
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if (_local4[_arg5].bHit.hitTest(_local4[this["\x02\x02"][_local3]])) {
if (_local4[this["\x02\x02"][_local3]].logTimmer < 0) {
_local4[this["\x02\x02"][_local3]]["\x1B\x05"] = true;
}
}
_local3++;
}
};
_local2["\x03\x05"] = function (_arg4, _arg8, _arg7, _arg6) {
var _local3 = _root["\x19\x02"].GAMEBOX;
if (_arg7 == 1) {
var _local5 = 0;
while (_local5 < this["\x02\x02"].length) {
if ((_local3[this["\x02\x02"][_local5]]._x < _local3[_arg4]._x) && (_local3[this["\x02\x02"][_local5]]._x >= (_local3[_arg4]._x - _arg8))) {
if ((_local3[this["\x02\x02"][_local5]]._y > _local3[_arg4]._y) && (_local3[this["\x02\x02"][_local5]]._y <= (_local3[_arg4]._y + _arg6))) {
_local3[this["\x02\x02"][_local5]].SetupPirate2(_local3[_arg4]._bump, _arg7);
_local3[this["\x02\x02"][_local5]].DamageEnemy(_local3[_arg4]._damage, 5);
}
}
_local5++;
}
} else if (_arg7 == 2) {
var _local5 = 0;
while (_local5 < this["\x02\x02"].length) {
if ((_local3[this["\x02\x02"][_local5]]._x > (_local3[_arg4]._x + _arg6)) && (_local3[this["\x02\x02"][_local5]]._x <= (_local3[_arg4]._x + (_arg6 + _arg8)))) {
if ((_local3[this["\x02\x02"][_local5]]._y > _local3[_arg4]._y) && (_local3[this["\x02\x02"][_local5]]._y <= (_local3[_arg4]._y + _arg6))) {
_local3[this["\x02\x02"][_local5]].SetupPirate2(_local3[_arg4]._bump, _arg7);
_local3[this["\x02\x02"][_local5]].DamageEnemy(_local3[_arg4]._damage, 5);
}
}
_local5++;
}
} else if (_arg7 == 3) {
var _local5 = 0;
while (_local5 < this["\x02\x02"].length) {
if ((_local3[this["\x02\x02"][_local5]]._x >= _local3[_arg4]._x) && (_local3[this["\x02\x02"][_local5]]._x < (_local3[_arg4]._x + _arg6))) {
if ((_local3[this["\x02\x02"][_local5]]._y < _local3[_arg4]._y) && (_local3[this["\x02\x02"][_local5]]._y >= (_local3[_arg4]._y - _arg8))) {
_local3[this["\x02\x02"][_local5]].SetupPirate2(_local3[_arg4]._bump, _arg7);
_local3[this["\x02\x02"][_local5]].DamageEnemy(_local3[_arg4]._damage, 5);
}
}
_local5++;
}
}
};
_local2["\x02\x05"] = function () {
if (this["4\x04"].\x04\n() == true) {
if (this.lives > 0) {
if (this["\x02\x02"].length == 0) {
this["\x07\n"] = "win";
this["9\x04"] = true;
this["8\x04"] = 2;
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].pauser.gotoAndStop("win");
this.\n\f();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
this.\x11\f();
}
}
}
this.\x1B\x02();
};
_local2["1\x03"] = function () {
this[",\x05"].=\x03("-1 Lives", 16724736);
this.lives--;
this.\x02\x05();
if (this.lives <= 0) {
this.lives = 0;
this["\x07\n"] = "lose";
this["9\x04"] = true;
this["8\x04"] = 2;
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].pauser.gotoAndStop("lose");
this.\n\f();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
this.\x11\f();
}
this.\x1B\x02();
};
_local2.ScoreAddition = function (_arg3, _arg2) {
this.score = this.score + _arg3;
this.gold = this.gold + _arg2;
this.\x1B\x02();
};
_local2["&\x07"] = function () {
this.+\x05();
if ((_global.typetype != 8) && (this["\r\x04"] == false)) {
this.\x02\n();
this["\x03\x06"] = true;
var _local5 = _root["\x19\x02"].GAMEBOX[this.downTower.name]._libName;
if (this["\x1E"] == false) {
this.gold = this.gold + (this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local5.substr(6))) - 1].sell / 0.8);
} else {
this.gold = this.gold + this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local5.substr(6))) - 1].sell;
}
this.\x1B\x02();
this.map.\x15\x05(this["`\x05"], this["\x14\x06"], this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local5.substr(6))) - 1].squareDim);
var _local4 = 0;
while (_local4 < this.arrTowers.length) {
_root["\x19\x02"].GAMEBOX[this.arrTowers[_local4]].&\n(this.downTower.name);
_local4++;
}
if (_root["\x19\x02"].GAMEBOX[this.downTower.name]._type == 2) {
this.7(this.downTower.name);
}
if (_root["\x19\x02"].GAMEBOX[this.downTower.name]._type == 3) {
this["3\x03"].RemoveEffect(_root["\x19\x02"].GAMEBOX[this.downTower.name]._timerRef._name);
if ((_root["\x19\x02"].GAMEBOX[this.downTower.name]._libName == "Tower_414") || (_root["\x19\x02"].GAMEBOX[this.downTower.name]._libName == "Tower_415")) {
this.\n\x04(_root["\x19\x02"].GAMEBOX[this.downTower.name]);
}
}
_local4 = 0;
while (_local4 < this.arrTowers.length) {
if (this.downTower.name == this.arrTowers[_local4]) {
this.arrTowers.splice(_local4, 1);
}
_local4++;
}
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].GAMEBOX[this.downTower.name].removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root.info_box.gotoAndStop(1);
this.3\x05();
this["(\x0B"] = true;
}
};
_local2["\n\x04"] = function (_arg2) {
var _local1 = 0;
while (_local1 < _arg2["^\x03"].length) {
_arg2["^\x03"][_local1].Start();
_local1++;
}
};
_local2["7"] = function (_arg4) {
var _local5 = _root["\x19\x02"].GAMEBOX;
var _local3 = this.'\x04(_local5[_arg4]._x);
if ((_local3 & 1) == 0) {
_local3--;
}
if (_local3 == 1) {
this[",\f"] = this.\x11\x0B(this[",\f"], _arg4);
} else if (_local3 == 3) {
this["\x17\x07"] = this.\x11\x0B(this["\x17\x07"], _arg4);
} else if (_local3 == 5) {
this["\f\x02"] = this.\x11\x0B(this["\f\x02"], _arg4);
} else if (_local3 == 7) {
this["5\x03"] = this.\x11\x0B(this["5\x03"], _arg4);
} else if (_local3 == 9) {
this["\x11\x02"] = this.\x11\x0B(this["\x11\x02"], _arg4);
} else if (_local3 == 11) {
this["(\x02"] = this.\x11\x0B(this["(\x02"], _arg4);
} else if (_local3 == 13) {
this["\x15\x0B"] = this.\x11\x0B(this["\x15\x0B"], _arg4);
} else if (_local3 == 15) {
this["3"] = this.\x11\x0B(this["3"], _arg4);
} else if (_local3 == 17) {
this["\x06"] = this.\x11\x0B(this["\x06"], _arg4);
} else if (_local3 == 19) {
this[" "] = this.\x11\x0B(this[" "], _arg4);
}
};
_local2["\x11\x0B"] = function (_arg2, _arg3) {
var _local1 = 0;
while (_local1 < _arg2.length) {
if (_arg2[_local1] == _arg3) {
_arg2.splice(_local1, 1);
}
_local1++;
}
return(_arg2);
};
_local2["\"\x05"] = function (_arg11) {
if (this["\r\x04"] == false) {
this.\x02\n();
var _local4 = _root["\x19\x02"].GAMEBOX;
var _local7 = _local4[this.downTower.name]._x;
var _local6 = _local4[this.downTower.name]._y;
var _local9 = _local4[this.downTower.name].getDepth();
if (_arg11 == 1) {
var _local8 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local4[this.downTower.name]._libName.substr(6))) - 1].path1 - 1;
} else if (_arg11 == 2) {
var _local8 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local4[this.downTower.name]._libName.substr(6))) - 1].path2 - 1;
} else if (_arg11 == 3) {
var _local8 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local4[this.downTower.name]._libName.substr(6))) - 1].path3 - 1;
}
var _local10 = _local4[this.downTower.name]._arrLinks;
if ((this.gold - this.towerSetup.arrTowerSetup[_local8].cost) < 0) {
_root[" \x02"].gold_alert.gotoAndPlay("on");
} else {
this.gold = this.gold - this.towerSetup.arrTowerSetup[_local8].cost;
if (_root["\x19\x02"].GAMEBOX[this.downTower.name]._type == 3) {
this["3\x03"].RemoveEffect(_root["\x19\x02"].GAMEBOX[this.downTower.name]._timerRef._name);
if ((_root["\x19\x02"].GAMEBOX[this.downTower.name]._libName == "Tower_414") || (_root["\x19\x02"].GAMEBOX[this.downTower.name]._libName == "Tower_415")) {
this.\n\x04(_root["\x19\x02"].GAMEBOX[this.downTower.name]);
}
}
this.map.\x15\x05(this.'\x04(_local7), this.'\x04(_local6), _local4[this.downTower.name]._dim);
_root["\x19\x02"].tRange.removeMovieClip();
_local4[this.downTower.name].removeMovieClip();
var _local5 = "towerObj_" + _local9;
_local4.attachMovie(this.towerSetup.arrTowerSetup[_local8].pic, _local5, _local9);
_local4[_local5]._x = _local7;
_local4[_local5]._y = _local6;
this.downTower.name = _local5;
this.upTower.name = _local5;
_local4[_local5]._arrLinks = _local10;
if (_local4[_local5]._libName == "Tower_417") {
_local4[_local5].\x01\x04();
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
_local4[this.arrTowers[_local3]].&\n(_local5);
_local3++;
}
}
this.map.\x15\x04(this.'\x04(_local7), this.'\x04(_local6), _local4[_local5]._dim, int(_local4[_local5]._libName.substr(6)));
_root.info_box.gotoAndStop(1);
if (_local4[_local5]._type == 3) {
if (_local4[_local5]._libName != "Tower_406") {
this.3\x05();
}
}
}
this.+\x05();
this.\x1B\x02();
this.@\x03();
}
};
} else {
// unexpected jump
}
_local2["@\x03"] = function () {
if (this["\r\x04"] == false) {
if (((this["8\x04"] != 2) && (this["8\x04"] != 3)) && (this["\x03\x06"] == false)) {
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
this["1"] = true;
if (this.downTower.name == this.upTower.name) {
this.towerBuff = this.downTower.name;
this.+\x05();
this["\x10\x06"] = true;
this["`\x05"] = this.'\x04(_root["\x19\x02"].GAMEBOX[this.upTower.name]._x);
this["\x14\x06"] = this.'\x04(_root["\x19\x02"].GAMEBOX[this.upTower.name]._y);
this.\x02\n();
this["8\x04"] = 1;
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x19\x02"].GAMEBOX.attachMovie("selectTowerSquare", "towerSelectedSquare", 99995);
_root["\x19\x02"].GAMEBOX.towerSelectedSquare._x = _root["\x19\x02"].GAMEBOX[this.upTower.name]._x;
_root["\x19\x02"].GAMEBOX.towerSelectedSquare._y = _root["\x19\x02"].GAMEBOX[this.upTower.name]._y;
_root["\x19\x02"].GAMEBOX.towerSelectedSquare._width = _root["\x19\x02"].GAMEBOX[this.upTower.name]._dim;
_root["\x19\x02"].GAMEBOX.towerSelectedSquare._height = _root["\x19\x02"].GAMEBOX[this.upTower.name]._dim;
if ((_root["\x19\x02"].GAMEBOX[this.upTower.name]._type == 1) && (_root["\x19\x02"].GAMEBOX[this.upTower.name]._rRange != 0)) {
_root["\x19\x02"].attachMovie("tower_range2", "tRange", 99996);
_root["\x19\x02"].tRange._x = _root["\x19\x02"].GAMEBOX[this.upTower.name]._x + (_root["\x19\x02"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x19\x02"].tRange._y = _root["\x19\x02"].GAMEBOX[this.upTower.name]._y + (_root["\x19\x02"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x19\x02"].tRange._xscale = _root["\x19\x02"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x19\x02"].tRange._yscale = _root["\x19\x02"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x19\x02"].tRange.cacheAsBitmap = true;
} else if (_root["\x19\x02"].GAMEBOX[this.upTower.name]._type == 3) {
if (_root["\x19\x02"].GAMEBOX[this.upTower.name]._libName == "Tower_406") {
_root["\x19\x02"].attachMovie("tower_range2", "tRange", 99996);
_root["\x19\x02"].tRange._x = _root["\x19\x02"].GAMEBOX[this.upTower.name]._x + (_root["\x19\x02"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x19\x02"].tRange._y = _root["\x19\x02"].GAMEBOX[this.upTower.name]._y + (_root["\x19\x02"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x19\x02"].tRange._xscale = _root["\x19\x02"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x19\x02"].tRange._yscale = _root["\x19\x02"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x19\x02"].tRange.cacheAsBitmap = true;
} else if (_root["\x19\x02"].GAMEBOX[this.upTower.name]._libName == "Tower_402") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._width = 140;
_root["\x19\x02"].tRange._x = (_root["\x19\x02"].GAMEBOX[this.upTower.name]._x + 40) - _root["\x19\x02"].tRange._width;
_root["\x19\x02"].tRange._y = _root["\x19\x02"].GAMEBOX[this.upTower.name]._y;
_root["\x19\x02"].tRange.cacheAsBitmap = true;
} else if (_root["\x19\x02"].GAMEBOX[this.upTower.name]._libName == "Tower_403") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._width = 140;
_root["\x19\x02"].tRange._x = _root["\x19\x02"].GAMEBOX[this.upTower.name]._x;
_root["\x19\x02"].tRange._y = _root["\x19\x02"].GAMEBOX[this.upTower.name]._y;
_root["\x19\x02"].tRange.cacheAsBitmap = true;
} else if (_root["\x19\x02"].GAMEBOX[this.upTower.name]._libName == "Tower_404") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._height = 140;
_root["\x19\x02"].tRange._x = _root["\x19\x02"].GAMEBOX[this.upTower.name]._x;
_root["\x19\x02"].tRange._y = (_root["\x19\x02"].GAMEBOX[this.upTower.name]._y - _root["\x19\x02"].tRange._height) + 40;
_root["\x19\x02"].tRange.cacheAsBitmap = true;
} else if (_root["\x19\x02"].GAMEBOX[this.upTower.name]._libName == "Tower_405") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._height = 140;
_root["\x19\x02"].tRange._x = _root["\x19\x02"].GAMEBOX[this.upTower.name]._x;
_root["\x19\x02"].tRange._y = _root["\x19\x02"].GAMEBOX[this.upTower.name]._y;
_root["\x19\x02"].tRange.cacheAsBitmap = true;
}
}
var tower = _root["\x19\x02"].GAMEBOX[this.upTower.name]._libName;
if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 0) {
_root.info_box.gotoAndStop("no_upgrade");
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 1) {
_root.info_box.gotoAndStop(3);
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 2) {
_root.info_box.gotoAndStop(4);
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 3) {
_root.info_box.gotoAndStop(6);
}
_root.info_box.tower_name_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].name;
var =\x0B = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].damage;
if (=\x0B == 0) {
_root.info_box.tower_damage_txt.text = "None";
} else if (=\x0B < 1) {
_root.info_box.tower_damage_txt.text = (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].damage;
}
_root.info_box.range_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].range2;
_root.info_box.tower_damage_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].damage;
_root.info_box.reload_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].reload;
if (this["\x1E"] == false) {
_root.info_box.sell_txt.text = "+" + (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].sell / 0.8);
} else {
_root.info_box.sell_txt.text = "+" + this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].sell;
}
_root.info_box.tower_info_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].info;
_root.info_box.pic_place.towerPic.removeMovieClip();
_root.info_box.pic_place.attachMovie(this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].pic, "towerPic", 99997);
_root.info_box.pic_place.towerPic.cacheAsBitmap = true;
_root.info_box.pic_place.towerPic._blnOff = true;
_root.info_box.pic_place.towerPic._xscale = 80;
_root.info_box.pic_place.towerPic._yscale = 80;
_root.info_box.pic_place.towerPic._x = (_root.info_box.pic_place._width / 2) - (_root.info_box.pic_place.towerPic._width / 2);
_root.info_box.pic_place.towerPic._y = (_root.info_box.pic_place._height / 2) - (_root.info_box.pic_place.towerPic._height / 2);
if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 0) {
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 1) {
_root.info_box.tower_name_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].name;
var =\x0B = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].damage;
if (=\x0B == 0) {
_root.info_box.tower_damage_txt2.text = "None";
} else if (=\x0B < 1) {
_root.info_box.tower_damage_txt2.text = (this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].damage;
}
_root.info_box.reload_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].reload;
_root.info_box.buy_txt.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].cost;
_root.info_box.pic_place2.towerPic2.removeMovieClip();
_root.info_box.pic_place2.attachMovie(this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].pic, "towerPic2", 99994);
_root.info_box.pic_place2.towerPic2.cacheAsBitmap = true;
_root.info_box.pic_place2.towerPic2._blnOff = true;
_root.info_box.pic_place2.towerPic2._xscale = 80;
_root.info_box.pic_place2.towerPic2._yscale = 80;
_root.info_box.pic_place2.towerPic2._x = (_root.info_box.pic_place2._width / 2) - (_root.info_box.pic_place2.towerPic2._width / 2);
_root.info_box.pic_place2.towerPic2._y = (_root.info_box.pic_place2._height / 2) - (_root.info_box.pic_place2.towerPic2._height / 2);
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 2) {
_root.info_box.tower_name_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].name;
var =\x0B = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].damage;
if (=\x0B == 0) {
_root.info_box.tower_damage_txt2.text = "None";
} else if (=\x0B < 1) {
_root.info_box.tower_damage_txt2.text = (this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].damage;
}
_root.info_box.reload_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].reload;
_root.info_box.buy_txt.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].cost;
_root.info_box.pic_place2.towerPic2.removeMovieClip();
_root.info_box.pic_place2.attachMovie(this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].pic, "towerPic2", 99994);
_root.info_box.pic_place2.towerPic2.cacheAsBitmap = true;
_root.info_box.pic_place2.towerPic2._blnOff = true;
_root.info_box.pic_place2.towerPic2._xscale = 80;
_root.info_box.pic_place2.towerPic2._yscale = 80;
_root.info_box.pic_place2.towerPic2._x = (_root.info_box.pic_place2._width / 2) - (_root.info_box.pic_place2.towerPic2._width / 2);
_root.info_box.pic_place2.towerPic2._y = (_root.info_box.pic_place2._height / 2) - (_root.info_box.pic_place2.towerPic2._height / 2);
_root.info_box.tower_name_txt3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].name;
var =\x0B = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].damage;
if (=\x0B == 0) {
_root.info_box.tower_damage_txt3.text = "None";
} else if (=\x0B < 1) {
_root.info_box.tower_damage_txt3.text = (this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].damage;
}
_root.info_box.reload_txt3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].reload;
_root.info_box.buy_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].cost;
_root.info_box.pic_place3.towerPic3.removeMovieClip();
_root.info_box.pic_place3.attachMovie(this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].pic, "towerPic3", 99993);
_root.info_box.pic_place3.towerPic3.cacheAsBitmap = true;
_root.info_box.pic_place3.towerPic3._blnOff = true;
_root.info_box.pic_place3.towerPic3._xscale = 80;
_root.info_box.pic_place3.towerPic3._yscale = 80;
_root.info_box.pic_place3.towerPic3._x = (_root.info_box.pic_place3._width / 2) - (_root.info_box.pic_place3.towerPic3._width / 2);
_root.info_box.pic_place3.towerPic3._y = (_root.info_box.pic_place3._height / 2) - (_root.info_box.pic_place3.towerPic3._height / 2);
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].upgradeType == 3) {
_root.info_box.tUp_txt1.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].name;
_root.info_box.range1.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].range2;
_root.info_box.buy1.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].cost;
_root.info_box.pic_place2.towerPic2.removeMovieClip();
_root.info_box.pic_place2.attachMovie(this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path1 - 1].pic, "towerPic2", 99994);
_root.info_box.pic_place2.towerPic2.cacheAsBitmap = true;
_root.info_box.pic_place2.towerPic2._blnOff = true;
_root.info_box.pic_place2.towerPic2._xscale = 80;
_root.info_box.pic_place2.towerPic2._yscale = 80;
_root.info_box.pic_place2.towerPic2._x = (_root.info_box.pic_place2._width / 2) - (_root.info_box.pic_place2.towerPic2._width / 2);
_root.info_box.pic_place2.towerPic2._y = (_root.info_box.pic_place2._height / 2) - (_root.info_box.pic_place2.towerPic2._height / 2);
_root.info_box.tUp_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].name;
_root.info_box.range2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].range2;
_root.info_box.buy2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].cost;
_root.info_box.pic_place3.towerPic3.removeMovieClip();
_root.info_box.pic_place3.attachMovie(this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path2 - 1].pic, "towerPic3", 99993);
_root.info_box.pic_place3.towerPic3.cacheAsBitmap = true;
_root.info_box.pic_place3.towerPic3._blnOff = true;
_root.info_box.pic_place3.towerPic3._xscale = 80;
_root.info_box.pic_place3.towerPic3._yscale = 80;
_root.info_box.pic_place3.towerPic3._x = (_root.info_box.pic_place3._width / 2) - (_root.info_box.pic_place3.towerPic3._width / 2);
_root.info_box.pic_place3.towerPic3._y = (_root.info_box.pic_place3._height / 2) - (_root.info_box.pic_place3.towerPic3._height / 2);
_root.info_box.tUp_txt3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path3 - 1].name;
_root.info_box.range3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path3 - 1].range2;
_root.info_box.buy3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path3 - 1].cost;
_root.info_box.pic_place4.towerPic4.removeMovieClip();
_root.info_box.pic_place4.attachMovie(this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x04\x04(int(tower.substr(6))) - 1].path3 - 1].pic, "towerPic4", 99992);
_root.info_box.pic_place4.towerPic4.cacheAsBitmap = true;
_root.info_box.pic_place4.towerPic4._blnOff = true;
_root.info_box.pic_place4.towerPic4._xscale = 80;
_root.info_box.pic_place4.towerPic4._yscale = 80;
_root.info_box.pic_place4.towerPic4._x = (_root.info_box.pic_place4._width / 2) - (_root.info_box.pic_place4.towerPic4._width / 2);
_root.info_box.pic_place4.towerPic4._y = (_root.info_box.pic_place4._height / 2) - (_root.info_box.pic_place4.towerPic4._height / 2);
}
} else if (_root.info_box.hitTest(_root._xmouse, _root._ymouse, true)) {
var [\n = _root.info_box;
var \x1E\x07 = _root.info_box.upgrade_btn;
var 8\x07 = _root.info_box.upgrade_btn2;
var -\x07 = _root.info_box.sell_btn;
var \x1A\x07 = _root.info_box.upgrade_btn3;
if ((this.8\x02([\n, \x1E\x07) || (this.8\x02([\n, 8\x07))) || (this.8\x02([\n, -\x07) || (this.8\x02([\n, \x1A\x07)))) {
} else {
_root.info_box.gotoAndStop(1);
}
} else {
var [\n = _root.tower_menu;
var \x1E\x07 = _root.tower_menu.s401;
var 8\x07 = _root.tower_menu.s402;
var -\x07 = _root.tower_menu.s403;
var \x1A\x07 = _root.tower_menu.s404;
var \x1D\x0B = _root.tower_menu.s405;
var \x15\n = _root.tower_menu.s406;
var <\x0B = _root.tower_menu.s407;
var @ = _root.tower_menu.s408;
var @\x07 = _root.tower_menu.s109;
var \x07\x04 = _root.tower_menu.s410;
if (((((((((this.8\x02([\n, \x1E\x07) || (this.8\x02([\n, 8\x07))) || (this.8\x02([\n, -\x07))) || (this.8\x02([\n, \x1A\x07))) || (this.8\x02([\n, \x1D\x0B))) || (this.8\x02([\n, \x15\n))) || (this.8\x02([\n, <\x0B))) || (this.8\x02([\n, @))) || (this.8\x02([\n, @\x07))) || (this.8\x02([\n, \x07\x04))) {
} else {
_root.info_box.gotoAndStop(1);
}
}
}
}
};
_local2["8\x02"] = function (_arg2, _arg1) {
if ((_arg2._xmouse >= _arg1._x) && (_arg2._xmouse < (_arg1._x + _arg1._width))) {
if ((_arg2._ymouse >= _arg1._y) && (_arg2._ymouse < (_arg1._y + _arg1._height))) {
return(true);
}
}
return(false);
};
_local2["9"] = function () {
this.\x02\n();
_root.info_box.gotoAndStop(1);
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
var _local5 = _root["\x19\x02"].GAMEBOX;
if (_local5[this.arrTowers[_local3]]._linkable == true) {
if (_local5[this.arrTowers[_local3]]._dim == 20) {
var _local10 = "Linkage_Circle_" + this["6\x02"];
_root["\x19\x02"].attachMovie("L20", _local10, this["6\x02"]);
_root["\x19\x02"][_local10]._x = _local5[this.arrTowers[_local3]]._x;
_root["\x19\x02"][_local10]._y = _local5[this.arrTowers[_local3]]._y;
if (_local5[this.arrTowers[_local3]]._type == 2) {
_root["\x19\x02"][_local10].gotoAndStop("green");
}
this.arrLinkage.push(_local10);
this["6\x02"]++;
if (this["6\x02"] > 74999) {
this["6\x02"] = 70000 /* 0x011170 */;
}
} else {
var _local10 = "Linkage_Circle_" + this["6\x02"];
_root["\x19\x02"].attachMovie("L40", _local10, this["6\x02"]);
_root["\x19\x02"][_local10]._x = _local5[this.arrTowers[_local3]]._x;
_root["\x19\x02"][_local10]._y = _local5[this.arrTowers[_local3]]._y;
this.arrLinkage.push(_local10);
this["6\x02"]++;
if (this["6\x02"] > 74999) {
this["6\x02"] = 70000 /* 0x011170 */;
}
}
}
_local3++;
}
_root["\x19\x02"].createEmptyMovieClip("lineContainer", 99998);
_root["\x19\x02"].createEmptyMovieClip("lineContainer2", 99999);
_local3 = 0;
while (_local3 < this.arrTowers.length) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._arrLinks.length > 0) {
var _local12 = _root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._dim / 2;
var _local8 = {name:this.arrTowers[_local3], cX:_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._x + _local12, cY:_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._y + _local12};
var _local4 = 0;
while (_local4 < _root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._arrLinks.length) {
var _local7 = false;
if (this["#\x05"] == true) {
_local7 = this.=\n(_local8);
}
var _local6 = _root["\x19\x02"].GAMEBOX[_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4]]._dim / 2;
var _local9 = {name:_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4], cX:_root["\x19\x02"].GAMEBOX[_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4]]._x + _local6, cY:_root["\x19\x02"].GAMEBOX[_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4]]._y + _local6};
this.\x17\n(_local8, _local9, _local7);
_local4++;
}
}
_local3++;
}
if (this.\n\x06(7) == true) {
this.tool.5\n(7);
} else if (this.\n\x06(8) == true) {
this.tool.5\n(8);
}
};
_local2["\n\f"] = function () {
this.\x02\n();
_root.tower_menu.type_txt.text = "";
_root.tower_menu.link_txt.text = "";
_root["\x19\x02"].lineContainer.removeMovieClip();
var _local3 = 0;
while (_local3 < this.arrLinkage.length) {
_root["\x19\x02"][this.arrLinkage[_local3]].removeMovieClip();
_local3++;
}
delete this.arrLinkage;
this.arrLinkage = new Array();
};
_local2["\x01\x04"] = function () {
_root["\x19\x02"].GAMEBOX[this["\x18\x03"].name].\x01\x04();
this.\n\f();
this.9();
this.@\n();
this.7\x03(this["\x18\x03"]);
};
_local2["\x02\x06"] = function (_arg4) {
var _local2 = _root["\x19\x02"].GAMEBOX[_arg4]._type;
if (_local2 == 1) {
var _local3 = "Turret";
} else if (_local2 == 2) {
var _local3 = "Trigger";
} else if (_local2 == 3) {
var _local3 = "Trap";
}
_root.tower_menu.type_txt.text = _local3;
_root.tower_menu.link_txt.text = _root["\x19\x02"].GAMEBOX[_arg4]._arrLinks.length;
};
_local2["\x04\x07"] = function (_arg3, _arg2) {
return(_root["\x19\x02"].GAMEBOX[_arg2.name].'\n(_arg3.name));
};
_local2["7\x03"] = function (_arg3) {
this.\x02\x06(_arg3.name);
_root.tower_menu.gotoAndStop(3);
};
_local2["\x11\x05"] = function () {
_root["\x19\x02"].tRange.removeMovieClip();
_root.tower_menu.type_txt.text = "";
_root.tower_menu.link_txt.text = "";
_root["<\x06"].gotoAndStop("on");
_root[" \x02"].gotoAndStop("on");
_root.tower_menu.gotoAndStop("on");
_root[">\x06"].gotoAndStop("on");
_root["7\x05"].gotoAndStop("on");
};
_local2["=\n"] = function (_arg2) {
if (_arg2.name == this["\x18\x03"].name) {
return(true);
}
return(false);
};
_local2["\x17\n"] = function (_arg6, _arg3, _arg15) {
if (_arg15 == false) {
if (_root["\x19\x02"].GAMEBOX[_arg6.name]._type == 2) {
var _local7 = _root["\x19\x02"].lineContainer;
_local7.lineStyle(2, 6736896, 80);
} else {
var _local7 = _root["\x19\x02"].lineContainer;
_local7.lineStyle(2, 6750207, 50);
}
} else {
var _local7 = _root["\x19\x02"].lineContainer2;
_local7.lineStyle(2, 16711782, 100);
}
var _local2 = new 3\x06();
_local2._x = _arg6.cX - _arg3.cX;
_local2._y = _arg6.cY - _arg3.cY;
var _local9 = Math.atan2(_local2._y, _local2._x);
var _local8 = (360 * _local9) / (Math.PI*2);
var _local10 = (Math.PI * (_local8 + 0)) / 180;
_local2._x = Math.cos(_local10) * (_root["\x19\x02"].GAMEBOX[_arg6.name]._dim / 2);
_local2._y = Math.sin(_local10) * (_root["\x19\x02"].GAMEBOX[_arg6.name]._dim / 2);
var _local4 = {x:_arg6.cX - _local2._x, y:_arg6.cY - _local2._y};
var _local5 = {x:_arg3.cX, y:_arg3.cY};
_local7.moveTo(_local4.x, _local4.y);
_local7.lineTo(_local5.x, _local5.y);
_local2._x = _arg6.cX - _arg3.cX;
_local2._y = _arg6.cY - _arg3.cY;
_local9 = Math.atan2(_local2._y, _local2._x);
_local8 = (360 * _local9) / (Math.PI*2);
var _local12 = (Math.PI * (_local8 + 20)) / 180;
var _local11 = (Math.PI * (_local8 - 20)) / 180;
_local2._x = Math.cos(_local12) * 10;
_local2._y = Math.sin(_local12) * 10;
_local4 = {x:_arg3.cX, y:_arg3.cY};
_local5 = {x:_local2._x + _arg3.cX, y:_local2._y + _arg3.cY};
_local7.moveTo(_local4.x, _local4.y);
_local7.lineTo(_local5.x, _local5.y);
_local2._x = Math.cos(_local11) * 10;
_local2._y = Math.sin(_local11) * 10;
_local4 = {x:_arg3.cX, y:_arg3.cY};
_local5 = {x:_local2._x + _arg3.cX, y:_local2._y + _arg3.cY};
_local7.moveTo(_local4.x, _local4.y);
_local7.lineTo(_local5.x, _local5.y);
};
_local2["\x10\x02"] = function (_arg2, _arg1) {
if (_arg2.name == _arg1.name) {
return(true);
}
return(false);
};
_local2["\x1A\x04"] = function (_arg3) {
if (this["\r\x04"] == false) {
if (_root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._rRange != 0) {
_root["\x19\x02"].attachMovie("tower_range", "tRange", 99996);
_root["\x19\x02"].tRange._x = _root["\x19\x02"][_arg3]._x + (_root["\x19\x02"][_arg3]._width / 2);
_root["\x19\x02"].tRange._y = _root["\x19\x02"][_arg3]._y + (_root["\x19\x02"][_arg3]._height / 2);
_root["\x19\x02"].tRange._xscale = _root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._rRange * 2;
_root["\x19\x02"].tRange._yscale = _root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._rRange * 2;
}
}
};
_local2["@\n"] = function () {
var _local3 = 0;
while (_local3 < this.arrLinkage.length) {
if ((_root["\x19\x02"][this.arrLinkage[_local3]]._x == _root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._x) && (_root["\x19\x02"][this.arrLinkage[_local3]]._y == _root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._y)) {
_root["\x19\x02"][this.arrLinkage[_local3]].gotoAndStop("pink");
this.\x1A\x04(this.arrLinkage[_local3]);
break;
}
_local3++;
}
};
_local2["\x17\f"] = function (_arg3, _arg2) {
_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.push(_arg2.name);
};
_local2["9\x03"] = function (_arg3, _arg4) {
var _local2 = 0;
while (_local2 < _root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.length) {
if (_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks[_local2] == _arg4.name) {
_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.splice(_local2, 1);
}
_local2++;
}
};
_local2["(\x05"] = function (_arg4, _arg3) {
if (_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.length == 0) {
return(false);
}
var _local2 = 0;
while (_local2 < _root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.length) {
if (_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks[_local2] == _arg4.name) {
return(true);
}
_local2++;
}
return(false);
};
_local2[" \x06"] = function (_arg3, _arg4) {
if (_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.length == 0) {
return(false);
}
var _local2 = 0;
while (_local2 < _root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks.length) {
if (_root["\x19\x02"].GAMEBOX[_arg3.name]._arrLinks[_local2] == _arg4.name) {
return(true);
}
_local2++;
}
return(false);
};
_local2["+"] = function () {
if (this["&\x06"] == true) {
if (_root["\x19\x02"].GAMEBOX[this["\x18\x03"].name]._linkable == true) {
var _local11 = this.\x18(2);
var _local13 = this.\x06\x03(_local11.x, _local11.y, "---");
if (this["\x18\x03"].name != _local13.name) {
_root["\x19\x02"].drawLine.removeMovieClip();
_root["\x19\x02"].createEmptyMovieClip("drawLine", 88888);
_root["\x19\x02"].drawLine.lineStyle(2, 16711782);
var _local6 = 0;
if (this["\x18\x03"].dim == 20) {
_local6 = 10;
}
var _local3 = new 3\x06();
_local3._x = (this["\x18\x03"].cX - _root["\x19\x02"]._xmouse) - _local6;
_local3._y = (this["\x18\x03"].cY - _root["\x19\x02"]._ymouse) - _local6;
var _local8 = Math.atan2(_local3._y, _local3._x);
var _local7 = (360 * _local8) / (Math.PI*2);
var _local9 = (Math.PI * (_local7 + 0)) / 180;
_local3._x = Math.cos(_local9) * (this["\x18\x03"].dim / 2);
_local3._y = Math.sin(_local9) * (this["\x18\x03"].dim / 2);
var _local4 = {x:this["\x18\x03"].cX - _local3._x, y:this["\x18\x03"].cY - _local3._y};
var _local5 = {x:_root["\x19\x02"]._xmouse, y:_root["\x19\x02"]._ymouse};
_local4.x = _local4.x - _local6;
_local4.y = _local4.y - _local6;
_root["\x19\x02"].drawLine.moveTo(_local4.x, _local4.y);
_root["\x19\x02"].drawLine.lineTo(_local5.x, _local5.y);
_local3._x = this["\x18\x03"].cX - _root["\x19\x02"]._xmouse;
_local3._y = this["\x18\x03"].cY - _root["\x19\x02"]._ymouse;
_local8 = Math.atan2(_local3._y - _local6, _local3._x - _local6);
_local7 = (360 * _local8) / (Math.PI*2);
var _local12 = (Math.PI * (_local7 + 20)) / 180;
var _local10 = (Math.PI * (_local7 - 20)) / 180;
_local3._x = Math.cos(_local12) * 10;
_local3._y = Math.sin(_local12) * 10;
_local4 = {x:_root["\x19\x02"]._xmouse, y:_root["\x19\x02"]._ymouse};
_local5 = {x:_local3._x + _root["\x19\x02"]._xmouse, y:_local3._y + _root["\x19\x02"]._ymouse};
_root["\x19\x02"].drawLine.moveTo(_local4.x, _local4.y);
_root["\x19\x02"].drawLine.lineTo(_local5.x, _local5.y);
_local3._x = Math.cos(_local10) * 10;
_local3._y = Math.sin(_local10) * 10;
_local4 = {x:_root["\x19\x02"]._xmouse, y:_root["\x19\x02"]._ymouse};
_local5 = {x:_local3._x + _root["\x19\x02"]._xmouse, y:_local3._y + _root["\x19\x02"]._ymouse};
_root["\x19\x02"].drawLine.moveTo(_local4.x, _local4.y);
_root["\x19\x02"].drawLine.lineTo(_local5.x, _local5.y);
} else {
_root["\x19\x02"].drawLine.removeMovieClip();
}
}
}
};
_local2["3\x05"] = function () {
this["\x03\n"].>\x03();
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]].SetupPirate();
_local3++;
}
};
_local2["1\x04"] = function (_arg7, _arg6, _arg8, _arg9) {
if ((this["8\x04"] != 2) && (this["8\x04"] != 3)) {
var _local4 = this["`\n"];
this["`\n"]++;
if (this["`\n"] >= 62000) {
this["`\n"] = 61000;
}
var _local3 = "Pirate_" + _local4;
var _local5 = "Enemy_" + _arg8;
_root["\x19\x02"].GAMEBOX.attachMovie(_local5, _local3, _local4);
_root["\x19\x02"].GAMEBOX[_local3]._x = this.\x1B\x0B(_arg7) + 10;
_root["\x19\x02"].GAMEBOX[_local3]._y = this.\x1B\x0B(_arg6) + 10;
_root["\x19\x02"].GAMEBOX[_local3].SetupPirate();
_root["\x19\x02"].GAMEBOX[_local3].enemyLife = (_root["\x19\x02"].GAMEBOX[_local3].enemyTotalLife = Math.round(_root["\x19\x02"].GAMEBOX[_local3].enemyLife * _arg9));
this["\x02\x02"].push(_local3);
}
};
_local2["4\x06"] = function (_arg3) {
var _local2 = 0;
while (_local2 < this["\x02\x02"].length) {
if (_arg3 == this["\x02\x02"][_local2]) {
return(true);
}
_local2++;
}
return(false);
};
_local2["\r\n"] = function (_arg4) {
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
if (_arg4 == this["\x02\x02"][_local3]) {
this["\x02\x02"].splice(_local3, 1);
break;
}
_local3++;
}
this.\x02\x05();
_root["\x19\x02"].GAMEBOX[_arg4].removeMovieClip();
};
_local2["\x18"] = function (_arg7) {
var _local2 = {x:_root._xmouse, y:_root._ymouse};
_root["\x19\x02"].globalToLocal(_local2);
var _local4;
var _local3;
if (_arg7 == 1) {
_local4 = _local2.x - (_local2.x % 20);
_local3 = _local2.y - (_local2.y % 20);
} else {
_local4 = Math.floor(_local2.x / 20);
_local3 = Math.floor(_local2.y / 20);
}
_local2.x = _local4;
_local2.y = _local3;
return(_local2);
};
_local2["\x17\x06"] = function (_arg2) {
this.gold = this.gold - this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg2)) - 1].cost;
this.\x1B\x02();
};
_local2["%\x03"] = function (_arg4) {
var _local3 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg4)) - 1].cost;
if ((this.gold - _local3) < 0) {
this["4"] = false;
this["+\f"] = false;
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
this.\x02\n();
this["8\x04"] = 1;
return(false);
}
if (this["\r\x04"] == true) {
return(false);
}
return(true);
};
_local2["\x17"] = function (_arg4) {
this.map.\x15\x04(this.'\x04(this["\x14\x04"]), this.'\x04(this["&\f"]), this.towerSetup.arrTowerSetup[this.\x04\x04(_arg4) - 1].squareDim, _arg4);
var _local3 = true;
if (this["\x03\n"].`\x03(14, 28, 14, 0) == null) {
_root.attachMovie("BlockPathNot", "BlockPathNot", 201000);
_root.BlockPathNot._x = _root._xmouse;
_root.BlockPathNot._y = _root._ymouse;
_local3 = false;
}
this.map.\x15\x04(this.'\x04(this["\x14\x04"]), this.'\x04(this["&\f"]), this.towerSetup.arrTowerSetup[this.\x04\x04(_arg4) - 1].squareDim, 0);
if (this["\r\x04"] == true) {
return(false);
}
return(_local3);
};
_local2["\x1B\n"] = function (_arg5) {
if (((this["8\x04"] == 4) && (this["4"] == true)) && (this["\r\x04"] == false)) {
if ((((_root._xmouse >= _root["\x19\x02"]._x) && (_root._xmouse <= (_root["\x19\x02"]._x + 439))) && (_root._ymouse >= _root["\x19\x02"]._y)) && (_root._ymouse <= (_root["\x19\x02"]._y + _root["\x19\x02"]._height))) {
if (this.%\x03(this["\x0E\x07"])) {
var _local6 = this.\x17(_arg5);
if (_local6 == true) {
this["9\x0B"] = false;
var _local3 = "towerObj_" + this.towerDepth;
var _local7 = "Tower_" + _arg5;
_root["\x19\x02"].GAMEBOX.attachMovie(_local7, _local3, this.towerDepth);
this.\x17\x06(this["\x0E\x07"]);
if (this.towerSetup.arrTowerSetup[this.\x04\x04(_arg5) - 1].squareDim == 40) {
if (this["\x14\x04"] >= 420) {
_root["\x19\x02"].GAMEBOX[_local3]._x = this["\x14\x04"] - 20;
} else {
_root["\x19\x02"].GAMEBOX[_local3]._x = this["\x14\x04"];
}
if (this["&\f"] >= 560) {
_root["\x19\x02"].GAMEBOX[_local3]._y = this["&\f"] - 20;
} else {
_root["\x19\x02"].GAMEBOX[_local3]._y = this["&\f"];
}
this.arrTowers.push(_local3);
} else if (this.towerSetup.arrTowerSetup[this.\x04\x04(_arg5) - 1].squareDim == 20) {
var _local4 = this.'\x04(this["\x14\x04"]);
_root["\x19\x02"].GAMEBOX[_local3]._x = this["\x14\x04"];
_root["\x19\x02"].GAMEBOX[_local3]._y = this["&\f"];
this.arrTowers.push(_local3);
if (_root["\x19\x02"].GAMEBOX[_local3]._type == 2) {
if ((_local4 & 1) == 0) {
_local4--;
}
if (_local4 == 1) {
this[",\f"].push(_local3);
} else if (_local4 == 3) {
this["\x17\x07"].push(_local3);
} else if (_local4 == 5) {
this["\f\x02"].push(_local3);
} else if (_local4 == 7) {
this["5\x03"].push(_local3);
} else if (_local4 == 9) {
this["\x11\x02"].push(_local3);
} else if (_local4 == 11) {
this["(\x02"].push(_local3);
} else if (_local4 == 13) {
this["\x15\x0B"].push(_local3);
} else if (_local4 == 15) {
this["3"].push(_local3);
} else if (_local4 == 17) {
this["\x06"].push(_local3);
} else if (_local4 == 19) {
this[" "].push(_local3);
}
if (_root["\x19\x02"].GAMEBOX[_local3]._rRange2 != 0) {
this["-"].push(_local3);
}
}
}
this.map.\x15\x04(this.'\x04(this["\x14\x04"]), this.'\x04(this["&\f"]), this.towerSetup.arrTowerSetup[this.\x04\x04(_arg5) - 1].squareDim, _arg5);
if (_root["\x19\x02"].GAMEBOX[_local3]._type != 2) {
this.3\x05();
}
this.towerDepth++;
if (this.towerDepth > 54999) {
this.towerDepth = 50000;
}
if (this.\n\x06(4) == true) {
this.tool.5\n(4);
} else if (this.\n\x06(5) == true) {
this.tool.5\n(5);
} else if (this.\n\x06(6) == true) {
this.tool.5\n(6);
}
}
} else {
_root[" \x02"].gold_alert.gotoAndPlay("on");
}
}
}
};
_local2["\x1D\x02"] = function () {
var _local5 = new Array();
_local5.push({strTowerName:"towerObj_50000", strLibName:"Tower_402", intX:320, intY:400, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50001", strLibName:"Tower_403", intX:80, intY:400, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50002", strLibName:"Tower_407", intX:200, intY:400, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50003", strLibName:"Tower_109", intX:200, intY:440, arrLinkage:new Array("towerObj_50002")});
_local5.push({strTowerName:"towerObj_50004", strLibName:"Tower_109", intX:220, intY:440, arrLinkage:new Array("towerObj_50002")});
_local5.push({strTowerName:"towerObj_50005", strLibName:"Tower_109", intX:300, intY:400, arrLinkage:new Array("towerObj_50002", "towerObj_50000")});
_local5.push({strTowerName:"towerObj_50006", strLibName:"Tower_109", intX:120, intY:400, arrLinkage:new Array("towerObj_50001", "towerObj_50002")});
_local5.push({strTowerName:"towerObj_50009", strLibName:"Tower_403", intX:260, intY:360, arrLinkage:new Array("towerObj_50025")});
_local5.push({strTowerName:"towerObj_50010", strLibName:"Tower_402", intX:140, intY:360, arrLinkage:new Array("towerObj_50023", "towerObj_50022")});
_local5.push({strTowerName:"towerObj_50011", strLibName:"Tower_407", intX:320, intY:360, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50012", strLibName:"Tower_407", intX:80, intY:360, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50013", strLibName:"Tower_109", intX:300, intY:360, arrLinkage:new Array("towerObj_50009", "towerObj_50011")});
_local5.push({strTowerName:"towerObj_50014", strLibName:"Tower_109", intX:120, intY:360, arrLinkage:new Array("towerObj_50012", "towerObj_50010")});
_local5.push({strTowerName:"towerObj_50016", strLibName:"Tower_109", intX:180, intY:380, arrLinkage:new Array("towerObj_50017")});
_local5.push({strTowerName:"towerObj_50017", strLibName:"Tower_109", intX:200, intY:380, arrLinkage:new Array("towerObj_50018")});
_local5.push({strTowerName:"towerObj_50018", strLibName:"Tower_109", intX:220, intY:380, arrLinkage:new Array("towerObj_50019")});
_local5.push({strTowerName:"towerObj_50019", strLibName:"Tower_109", intX:240, intY:380, arrLinkage:new Array("towerObj_50021", "towerObj_50020")});
_local5.push({strTowerName:"towerObj_50020", strLibName:"Tower_407", intX:220, intY:340, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50021", strLibName:"Tower_407", intX:180, intY:340, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50022", strLibName:"Tower_406", intX:80, intY:320, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50023", strLibName:"Tower_406", intX:40, intY:360, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50025", strLibName:"Tower_406", intX:360, intY:360, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50026", strLibName:"Tower_410", intX:340, intY:340, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50027", strLibName:"Tower_406", intX:260, intY:300, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50028", strLibName:"Tower_406", intX:300, intY:300, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50029", strLibName:"Tower_406", intX:140, intY:300, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50031", strLibName:"Tower_109", intX:120, intY:340, arrLinkage:new Array("towerObj_50022", "towerObj_50029")});
_local5.push({strTowerName:"towerObj_50032", strLibName:"Tower_109", intX:180, intY:320, arrLinkage:new Array("towerObj_50033")});
_local5.push({strTowerName:"towerObj_50033", strLibName:"Tower_109", intX:200, intY:320, arrLinkage:new Array("towerObj_50034")});
_local5.push({strTowerName:"towerObj_50034", strLibName:"Tower_109", intX:220, intY:320, arrLinkage:new Array("towerObj_50035")});
_local5.push({strTowerName:"towerObj_50035", strLibName:"Tower_109", intX:240, intY:320, arrLinkage:new Array("towerObj_50037", "towerObj_50038", "towerObj_50039", "towerObj_50040", "towerObj_50021", "towerObj_50020")});
_local5.push({strTowerName:"towerObj_50036", strLibName:"Tower_109", intX:300, intY:340, arrLinkage:new Array("towerObj_50027", "towerObj_50028")});
_local5.push({strTowerName:"towerObj_50037", strLibName:"Tower_407", intX:180, intY:280, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50038", strLibName:"Tower_407", intX:220, intY:280, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50039", strLibName:"Tower_405", intX:180, intY:240, arrLinkage:new Array()});
_local5.push({strTowerName:"towerObj_50040", strLibName:"Tower_405", intX:220, intY:240, arrLinkage:new Array()});
this["9\x0B"] = false;
var _local6 = 0;
while (_local6 < _local5.length) {
var _local9 = _local5[_local6].strTowerName;
var _local7 = _local5[_local6].strLibName;
var _local8 = _local5[_local6].intX;
var _local10 = _local5[_local6].intY;
var _local3 = _local9;
var _local11 = _local7;
_root["\x19\x02"].GAMEBOX.attachMovie(_local11, _local3, int(_local9.substr(9)));
_root["\x19\x02"].GAMEBOX[_local3]._x = _local8;
_root["\x19\x02"].GAMEBOX[_local3]._y = _local10;
this.arrTowers.push(_local3);
if (this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local7.substr(6))) - 1].squareDim == 20) {
var _local4 = this.'\x04(_local8);
if (_root["\x19\x02"].GAMEBOX[_local3]._type == 2) {
if ((_local4 & 1) == 0) {
_local4--;
}
if (_local4 == 1) {
this[",\f"].push(_local3);
} else if (_local4 == 3) {
this["\x17\x07"].push(_local3);
} else if (_local4 == 5) {
this["\f\x02"].push(_local3);
} else if (_local4 == 7) {
this["5\x03"].push(_local3);
} else if (_local4 == 9) {
this["\x11\x02"].push(_local3);
} else if (_local4 == 11) {
this["(\x02"].push(_local3);
} else if (_local4 == 13) {
this["\x15\x0B"].push(_local3);
} else if (_local4 == 15) {
this["3"].push(_local3);
} else if (_local4 == 17) {
this["\x06"].push(_local3);
} else if (_local4 == 19) {
this[" "].push(_local3);
}
if (_root["\x19\x02"].GAMEBOX[_local3]._rRange2 != 0) {
this["-"].push(_local3);
}
}
}
this.map.\x15\x04(this.'\x04(_local8), this.'\x04(_local10), this.towerSetup.arrTowerSetup[this.\x04\x04(int(_local7.substr(6))) - 1].squareDim, int(_local7.substr(6)));
_root["\x19\x02"].GAMEBOX[_local3]._arrLinks = _local5[_local6].arrLinkage;
_local6++;
}
this.towerDepth = int(_local9.substr(9)) + 1;
};
_local2["\x04\x04"] = function (_arg1) {
_arg1 = _arg1 % 100;
return(_arg1);
};
_local2["\x13\x04"] = function () {
_root["\x19\x02"].tRange.removeMovieClip();
if (_root["\x19\x02"].GAMEBOX.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local4 = {};
_local4 = this.\x18(1);
var _local7 = false;
var _local6 = false;
var _local5 = false;
this["\x14\x04"] = _local4.x - (_local4.x % 20);
this["&\f"] = _local4.y - (_local4.y % 20);
if (this.towerDimType == 40) {
if (this["&\f"] >= 560) {
_local6 = true;
this["&\f"] = this["&\f"] - 20;
}
if (this["\x14\x04"] >= 420) {
_local7 = true;
this["\x14\x04"] = this["\x14\x04"] - 20;
}
}
if (this.towerDimType == 40) {
if (((this["&\f"] >= 540) || (this["\x14\x04"] >= 400)) || (this["&\f"] < 20)) {
_local5 = true;
} else if (((this["&\f"] >= 560) || (this["\x14\x04"] >= 420)) || (this["&\f"] < 20)) {
_local5 = true;
}
}
if (this["+\f"] == false) {
this["+\f"] = true;
_root["\x19\x02"].GAMEBOX.attachMovie("towerOverSquare", "towerOverSquare", this["1\x05"]);
_root["\x19\x02"].GAMEBOX.towerOverSquare._width = this.towerDimType;
_root["\x19\x02"].GAMEBOX.towerOverSquare._height = this.towerDimType;
}
_root["\x19\x02"].GAMEBOX.towerOverSquare._x = this["\x14\x04"];
_root["\x19\x02"].GAMEBOX.towerOverSquare._y = this["&\f"];
var _local8 = this.IsGridOccupied(this.'\x04(this["\x14\x04"]), this.'\x04(this["&\f"]), _local7, _local6);
if ((_local8 == true) || (_local5 == true)) {
_root["\x19\x02"].GAMEBOX.towerOverSquare.gotoAndStop("red");
this["4"] = false;
} else {
_root["\x19\x02"].GAMEBOX.towerOverSquare.gotoAndStop("green");
this["4"] = true;
if (this.towerMem5 == "Tower_402") {
_root["\x19\x02"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("left");
} else if (this.towerMem5 == "Tower_403") {
_root["\x19\x02"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("right");
} else if (this.towerMem5 == "Tower_404") {
_root["\x19\x02"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("up");
} else if (this.towerMem5 == "Tower_405") {
_root["\x19\x02"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("down");
}
var _local3 = _root["\x19\x02"].GAMEBOX.towerOverSquare;
if (this.towerMem5 == "Tower_401") {
_root["\x19\x02"].attachMovie("tower_range2", "tRange", 99996);
_root["\x19\x02"].tRange._x = _local3._x + 20;
_root["\x19\x02"].tRange._y = _local3._y + 20;
_root["\x19\x02"].tRange._xscale = (_root["\x19\x02"].tRange._yscale = this.towerSetup.arrTowerSetup[0].range * 2);
} else if (this.towerMem5 == "Tower_406") {
_root["\x19\x02"].attachMovie("tower_range2", "tRange", 99996);
_root["\x19\x02"].tRange._x = _local3._x + 20;
_root["\x19\x02"].tRange._y = _local3._y + 20;
_root["\x19\x02"].tRange._xscale = (_root["\x19\x02"].tRange._yscale = this.towerSetup.arrTowerSetup[5].range * 2);
} else if (this.towerMem5 == "Tower_402") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._width = 140;
_root["\x19\x02"].tRange._x = (_local3._x + 40) - _root["\x19\x02"].tRange._width;
_root["\x19\x02"].tRange._y = _local3._y;
} else if (this.towerMem5 == "Tower_403") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._width = 140;
_root["\x19\x02"].tRange._x = _local3._x;
_root["\x19\x02"].tRange._y = _local3._y;
} else if (this.towerMem5 == "Tower_404") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._height = 140;
_root["\x19\x02"].tRange._x = _local3._x;
_root["\x19\x02"].tRange._y = (_local3._y - _root["\x19\x02"].tRange._height) + 40;
} else if (this.towerMem5 == "Tower_405") {
_root["\x19\x02"].attachMovie("tower_range3", "tRange", 99996);
_root["\x19\x02"].tRange._height = 140;
_root["\x19\x02"].tRange._x = _local3._x;
_root["\x19\x02"].tRange._y = _local3._y;
}
}
} else {
this["4"] = false;
this["+\f"] = false;
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
}
};
// unexpected jump
// unexpected jump
_local2["\x06\x03"] = function (_arg6, _arg5, _arg15) {
var _local8 = {hit:false, type:0, name:_arg15, cX:0, cY:0, dim:0};
var _local4 = false;
var _local7 = null;
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._dim == 20) {
if (_arg6 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._x)) {
if (_arg5 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._y)) {
_local4 = true;
}
}
} else {
if (_arg6 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._x)) {
if (_arg5 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._y)) {
_local4 = true;
}
}
if (_arg6 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._x) + 1)) {
if (_arg5 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._y)) {
_local4 = true;
}
}
if (_arg6 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._x)) {
if (_arg5 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._y) + 1)) {
_local4 = true;
}
}
if (_arg6 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._x) + 1)) {
if (_arg5 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local3]]._y) + 1)) {
_local4 = true;
}
}
}
if (_local4 == true) {
_local7 = _local3;
break;
}
_local3++;
}
if (_local4 == true) {
_local8.hit = true;
_local8.type = _root["\x19\x02"].GAMEBOX[this.arrTowers[_local7]]._type;
_local8.name = this.arrTowers[_local7];
_local8.cX = _root["\x19\x02"].GAMEBOX[this.arrTowers[_local7]]._x + 20;
_local8.cY = _root["\x19\x02"].GAMEBOX[this.arrTowers[_local7]]._y + 20;
_local8.dim = _root["\x19\x02"].GAMEBOX[this.arrTowers[_local7]]._dim;
}
return(_local8);
};
_local2.IsGridOccupied = function (_arg4, _arg3, _arg6, _arg7) {
if (_arg6 == true) {
_arg4--;
}
if (_arg7 == true) {
_arg3--;
}
if (this.towerDimType == 20) {
var _local5 = 0;
while (_local5 < this["\x02\x02"].length) {
if (_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._dim == 20) {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x1F\x05"].length) {
if (_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._dim == 20) {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this.arrTowers.length) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._dim == 20) {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
} else if (this.towerDimType == 40) {
var _local5 = 0;
while (_local5 < this["\x1F\x05"].length) {
if (_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._dim == 20) {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x1F\x05"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x02\x02"].length) {
if (_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._dim == 20) {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this.arrTowers.length) {
if (_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._dim == 20) {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.'\x04(_root["\x19\x02"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
}
return(false);
};
_local2["?\x06"] = function () {
this.gold = this[">\x04"];
this.\x1B\x02();
this[",\x05"].9\x07(10);
};
_local2["\x1B\x0B"] = function (_arg1) {
_arg1 = Math.floor(_arg1) * 20;
return(_arg1);
};
_local2["'\x04"] = function (_arg1) {
_arg1 = Math.floor(_arg1 / 20);
return(_arg1);
};
_local2["\x13\x0B"] = function (_arg4) {
var _local3 = "tower" + this.\x04\x04(int(_arg4.substr(1)));
_root.tower_menu[_arg4].gotoAndStop(_local3);
};
_local2["\r\x06"] = function (_arg2) {
_arg2 = _arg2.substr(3, 2);
if (_arg2 == 1) {
this.8\x05("s401");
} else if (_arg2 == 2) {
this.8\x05("s412");
} else if (_arg2 == 3) {
this.8\x05("s411");
} else if (_arg2 == 4) {
this.8\x05("s413");
} else if (_arg2 == 5) {
this.8\x05("s406");
} else if (_arg2 == 6) {
this.8\x05("s414");
} else if (_arg2 == 7) {
this.8\x05("s415");
} else if (_arg2 == 8) {
this.8\x05("s407");
} else if (_arg2 == 9) {
this.8\x05("s416");
} else if (_arg2 == 10) {
this.8\x05("s417");
} else if (_arg2 == 11) {
this.8\x05("s108");
} else if (_arg2 == 12) {
this.8\x05("s118");
} else if (_arg2 == 13) {
this.8\x05("s119");
} else if (_arg2 == 14) {
this.8\x05("s120");
} else if (_arg2 == 15) {
this.8\x05("s403");
} else if (_arg2 == 16) {
this.8\x05("s402");
} else if (_arg2 == 17) {
this.8\x05("s404");
} else if (_arg2 == 18) {
this.8\x05("s405");
} else if (_arg2 == 19) {
this.8\x05("s109");
} else if (_arg2 == 20) {
this.8\x05("s410");
}
};
_local2["8\x05"] = function (_arg3) {
if (this["\r\x04"] == false) {
if (this["8\x04"] != 5) {
_root.tower_menu[_arg3].overTower.gotoAndStop("on");
}
_root.info_box.gotoAndStop(2);
_root.info_box.tower_name_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].name;
_root.info_box.tower_cost_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].cost;
var _local4 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].damage;
if (_local4 == 0) {
_root.info_box.tower_damage_txt.text = "None";
} else if (_local4 < 1) {
_root.info_box.tower_damage_txt.text = (this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].damage;
}
_root.info_box.tower_info_txt.text = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].info;
_root.info_box.pic_place.towerPic.removeMovieClip();
_root.info_box.pic_place.attachMovie(this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].pic, "towerPic", 99997);
_root.info_box.pic_place.towerPic._blnOff = true;
_root.info_box.pic_place.towerPic._xscale = 80;
_root.info_box.pic_place.towerPic._yscale = 80;
_root.info_box.pic_place.towerPic._x = (_root.info_box.pic_place._width / 2) - (_root.info_box.pic_place.towerPic._width / 2);
_root.info_box.pic_place.towerPic._y = (_root.info_box.pic_place._height / 2) - (_root.info_box.pic_place.towerPic._height / 2);
_root[this["\f\n"]].removeMovieClip();
if (_root._xmouse > 460) {
this["\f\n"] = "mo_" + _arg3;
_root.attachMovie("mo_tips", this["\f\n"], 203000);
_root[this["\f\n"]]._x = 267;
_root[this["\f\n"]]._y = 137;
if (_arg3 == "s401") {
_root[this["\f\n"]].gotoAndStop(1);
} else if (_arg3 == "s402") {
_root[this["\f\n"]].gotoAndStop(2);
} else if (_arg3 == "s403") {
_root[this["\f\n"]].gotoAndStop(3);
} else if (_arg3 == "s404") {
_root[this["\f\n"]].gotoAndStop(4);
} else if (_arg3 == "s405") {
_root[this["\f\n"]].gotoAndStop(5);
} else if (_arg3 == "s406") {
_root[this["\f\n"]].gotoAndStop(6);
} else if (_arg3 == "s407") {
_root[this["\f\n"]].gotoAndStop(7);
} else if (_arg3 == "s108") {
_root[this["\f\n"]].gotoAndStop(8);
} else if (_arg3 == "s109") {
_root[this["\f\n"]].gotoAndStop(9);
} else if (_arg3 == "s410") {
_root[this["\f\n"]].gotoAndStop(10);
}
}
}
};
_local2["\x16\f"] = function (_arg3) {
var _local4 = _root["\x19\x02"].GAMEBOX;
this["\f\n"] = "mo_" + _arg3;
_root.attachMovie("mo_tips", this["\f\n"], 203000);
_root[this["\f\n"]]._x = 284;
_root[this["\f\n"]]._y = 373;
if (_local4[this.towerBuff]._libName == "Tower_401") {
if (_arg3 == 1) {
_root[this["\f\n"]].gotoAndStop(11);
} else if (_arg3 == 2) {
_root[this["\f\n"]].gotoAndStop(12);
}
} else if (_local4[this.towerBuff]._libName == "Tower_406") {
if (_arg3 == 1) {
_root[this["\f\n"]].gotoAndStop(14);
} else if (_arg3 == 2) {
_root[this["\f\n"]].gotoAndStop(15);
}
} else if (_local4[this.towerBuff]._libName == "Tower_407") {
if (_arg3 == 1) {
_root[this["\f\n"]].gotoAndStop(16);
} else if (_arg3 == 2) {
_root[this["\f\n"]].gotoAndStop(17);
}
} else if (_local4[this.towerBuff]._libName == "Tower_108") {
if (_arg3 == 1) {
_root[this["\f\n"]].gotoAndStop(18);
} else if (_arg3 == 2) {
_root[this["\f\n"]].gotoAndStop(19);
} else if (_arg3 == 3) {
_root[this["\f\n"]].gotoAndStop(20);
}
} else if (_local4[this.towerBuff]._libName == "Tower_411") {
_root[this["\f\n"]].gotoAndStop(13);
} else if (_local4[this.towerBuff]._libName == "Tower_412") {
_root[this["\f\n"]].gotoAndStop(13);
}
};
_local2["+\x05"] = function () {
_root[this["\f\n"]].removeMovieClip();
};
_local2["%\x07"] = function () {
_root.info_box.gotoAndStop(1);
};
_local2["\x1A\n"] = function (_arg3) {
_root[this["\f\n"]].removeMovieClip();
if ((this["\r\x04"] == false) || (this["8\x04"] == 5)) {
if (this["8\x04"] != 4) {
_root.tower_menu[_arg3].overTower.gotoAndStop("off");
_root.info_box.gotoAndStop(1);
if (this["1"] == true) {
this.@\x03();
}
} else {
_root.tower_menu[_arg3].overTower.gotoAndStop("off");
_root.info_box.tower_name_txt.text = this.towerMem1;
_root.info_box.tower_cost_txt.text = this.towerMem2;
_root.info_box.tower_damage_txt.text = this.towerMem3;
_root.info_box.tower_info_txt.text = this.towerMem4;
_root.info_box.pic_place.towerPic.removeMovieClip();
_root.info_box.pic_place.attachMovie(this.towerMem5, "towerPic", 99997);
_root.info_box.pic_place.towerPic._blnOff = true;
_root.info_box.pic_place.towerPic._xscale = 80;
_root.info_box.pic_place.towerPic._yscale = 80;
_root.info_box.pic_place.towerPic._x = (_root.info_box.pic_place._width / 2) - (_root.info_box.pic_place.towerPic._width / 2);
_root.info_box.pic_place.towerPic._y = (_root.info_box.pic_place._height / 2) - (_root.info_box.pic_place.towerPic._height / 2);
}
} else {
_root.tower_menu[_arg3].overTower.gotoAndStop("off");
_root.info_box.gotoAndStop(1);
}
};
_local2[";\x03"] = function (_arg3) {
if (this["9\x04"] == false) {
if (this["\r\x04"] == false) {
if (this["8\x04"] != 4) {
this.\n\f();
this.0\x05();
this.\x02\n();
this["8\x04"] = 4;
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
}
this.towerMem1 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].name;
this.towerMem2 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].cost;
this.towerMem3 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].damage;
this.towerMem4 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].info;
this.towerMem5 = this.towerSetup.arrTowerSetup[this.\x04\x04(int(_arg3.substr(1))) - 1].pic;
this["\x0E\x07"] = int(_arg3.substr(1));
this.towerDimType = this.towerSetup.arrTowerSetup[this.\x04\x04(int(this["\x0E\x07"])) - 1].squareDim;
this.\x02\n();
switch (this.towerMem5) {
case "Tower_401" :
_root.tower_menu.s401.tSelector.gotoAndStop("on");
break;
case "Tower_402" :
_root.tower_menu.s402.tSelector.gotoAndStop("on");
break;
case "Tower_403" :
_root.tower_menu.s403.tSelector.gotoAndStop("on");
break;
case "Tower_404" :
_root.tower_menu.s404.tSelector.gotoAndStop("on");
break;
case "Tower_405" :
_root.tower_menu.s405.tSelector.gotoAndStop("on");
break;
case "Tower_406" :
_root.tower_menu.s406.tSelector.gotoAndStop("on");
break;
case "Tower_407" :
_root.tower_menu.s407.tSelector.gotoAndStop("on");
break;
case "Tower_108" :
_root.tower_menu.s108.tSelector.gotoAndStop("on");
break;
case "Tower_109" :
_root.tower_menu.s109.tSelector.gotoAndStop("on");
break;
case "Tower_410" :
_root.tower_menu.s410.tSelector.gotoAndStop("on");
}
}
}
};
_local2["\x02\n"] = function () {
_root.tower_menu.s401.tSelector.gotoAndStop("off");
_root.tower_menu.s402.tSelector.gotoAndStop("off");
_root.tower_menu.s403.tSelector.gotoAndStop("off");
_root.tower_menu.s404.tSelector.gotoAndStop("off");
_root.tower_menu.s405.tSelector.gotoAndStop("off");
_root.tower_menu.s406.tSelector.gotoAndStop("off");
_root.tower_menu.s407.tSelector.gotoAndStop("off");
_root.tower_menu.s108.tSelector.gotoAndStop("off");
_root.tower_menu.s109.tSelector.gotoAndStop("off");
_root.tower_menu.s410.tSelector.gotoAndStop("off");
};
_local2["\x06\x04"] = function (_arg5, _arg4) {
if (((((((((((_global.extraContent == true) || (_arg4 == 1)) || (_arg4 == 2)) || (_arg4 == 3)) || (_arg4 == 4)) || (_arg4 == 5)) || (_arg4 == 7)) || (_arg4 == 8)) || (_arg4 == 9)) || (_arg4 == 10)) || (_arg4 == 12)) {
_global.myMusicPlayer.Stop();
_global.gameMode = _arg5;
_global.typetype = _arg4;
this.gold = this.towerSetup.arrGameModes[_arg4 - 1].gold;
this.lives = this.towerSetup.arrGameModes[_arg4 - 1].lives;
this.score = this.towerSetup.arrGameModes[_arg4 - 1].score;
this.\x02\n();
this["8\x04"] = 1;
_root.gotoAndStop("game");
_root.rightOverlay.gotoAndStop("off");
_root["\x19\x02"].gotoAndStop("game");
this.\x1B\x02();
}
};
_local2["\x1B\x02"] = function () {
_root[" \x02"].score_txt.text = this.score;
_root[" \x02"].gold_txt.text = this.gold;
_root[" \x02"].lives_txt.text = this.lives;
};
_local2.TutorialSetup = function () {
_root["\x19\x02"].drawLine.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
_root["\x19\x02"].pauser.gotoAndStop("tutorial");
this["\x10\x06"] = false;
this["9\x04"] = true;
this["!\x02"] = 30;
this["8\x04"] = 5;
this.\x02\n();
this.\n\f();
this.\x11\f();
};
_local2["\"\x02"] = function () {
this["\x10\x06"] = false;
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].pauser.gotoAndStop("on");
this.\n\f();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
this.\x11\f();
};
_local2["\x14\x02"] = function () {
_root["\x19\x02"].pauser.gotoAndStop("off");
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
_root["\x19\x02"].tRange.removeMovieClip();
this.0\x05();
this.\x1B\x02();
};
_local2["\x11\f"] = function () {
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]].Stop();
_local3++;
}
};
_local2["0\x05"] = function () {
var _local3 = 0;
while (_local3 < this["\x02\x02"].length) {
_root["\x19\x02"].GAMEBOX[this["\x02\x02"][_local3]].Start();
_local3++;
}
this.\x1B\x02();
};
_local2["<\x05"] = function () {
_root["\x19\x02"].tRange.removeMovieClip();
this["9\x04"] = false;
this["!\x02"] = 10;
this["8\x04"] = 1;
this.\x02\n();
this.+\x03();
this.\x14\x02();
};
_local2["#\x04"] = function () {
if (this["!\x02"] == -1) {
if (Key.isDown(_global.pauseHotkey)) {
if (this["9\x04"] == false) {
this["9\x04"] = true;
this["!\x02"] = 10;
this["8\x04"] = 2;
this.\x02\n();
this.\f\f();
this.\"\x02();
} else {
this["9\x04"] = false;
this["!\x02"] = 10;
this["8\x04"] = 1;
this.\x02\n();
this.+\x03();
this.\x14\x02();
}
}
} else {
this["!\x02"]--;
}
};
_local2["\f\x05"] = function () {
if (this["8\x04"] == 5) {
this[">\x02"].Finish();
this.tool.CleanGroup();
this["9\x04"] = true;
this["!\x02"] = 10;
this["8\x04"] = 2;
this.\x02\n();
this.\f\f();
this.\"\x02();
} else if (this["9\x04"] == false) {
this.tool.CleanGroup();
this["9\x04"] = true;
this["!\x02"] = 10;
this["8\x04"] = 2;
this.\x02\n();
this.\f\f();
this.\"\x02();
} else if ((this["\x07\n"] == "win") || (this["\x07\n"] == "lose")) {
} else {
this["9\x04"] = false;
this["8\x04"] = 1;
this.\x02\n();
this.+\x03();
this.\x14\x02();
this["!\x02"] = 10;
this.\n\f();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
_root["\x19\x02"].tRange.removeMovieClip();
this.\x1B\x02();
}
};
_local2["\x1F\x04"] = function () {
_global.gameMode = "";
if (this["8\x04"] == 3) {
this.\n\f();
this.0\x05();
this["8\x04"] = 1;
this.\x02\n();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
}
_root.rightOverlay.gotoAndStop("on");
_root["\x19\x02"].drawLine.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root.gotoAndStop(5);
};
_local2["+\x02"] = function () {
_global.gameMode = "";
if (this["8\x04"] == 3) {
this.\n\f();
this.0\x05();
this["8\x04"] = 1;
this.\x02\n();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
}
_root.rightOverlay.gotoAndStop("on");
_root["\x19\x02"].drawLine.removeMovieClip();
_root["\x19\x02"].tRange.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x19\x02"].GAMEBOX.towerOverSquare.removeMovieClip();
_root.gotoAndStop(4);
};
_local2["\x19"] = function () {
if (this["\x1F\n"] == false) {
this["\x1F\n"] = true;
_root["<\x06"].mute_btn.gotoAndStop("muteOn");
_root["\x19\x02"].tRange.removeMovieClip();
_global.musicOn = false;
_global.soundOn = false;
_global.myMusicPlayer.Stop();
} else {
this["\x1F\n"] = false;
_global.soundOn = true;
_root["<\x06"].mute_btn.gotoAndStop("On");
_root["\x19\x02"].tRange.removeMovieClip();
}
};
_local2["\f\f"] = function () {
};
_local2["+\x03"] = function () {
_root["<\x06"].gotoAndStop("on");
_root[" \x02"].gotoAndStop("on");
_root.tower_menu.gotoAndStop("on");
_root[">\x06"].gotoAndStop("on");
_root["7\x05"].gotoAndStop("on");
};
_local2[",\x06"] = function () {
_root["\x19\x02"].tRange.removeMovieClip();
if (this["9\x04"] == false) {
if (this.\n\x06(1) == false) {
if (this["8\x04"] == 3) {
this.\n\f();
this.0\x05();
this["8\x04"] = 1;
this.\x02\n();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
}
this["4\x04"].\x1D\x07();
if (_global.typetype == 6) {
this["8\x04"] = 1;
this.\x02\n();
this["\r\x04"] = true;
_root.info_box.gotoAndStop(1);
_root[">\x06"]._alpha = 60;
_root.tower_menu.gotoAndStop("fixed");
}
} else {
this.tool.5\n(1);
}
}
};
_local2["\x12\x05"] = function () {
_root["\x19\x02"].tRange.removeMovieClip();
if (this["9\x04"] == false) {
if (this["\r\x04"] == false) {
if (this.\n\x06(2) == false) {
if (this["8\x04"] != 3) {
this.\x11\f();
this["8\x04"] = 3;
this.\x02\n();
_root.info_box.gotoAndStop(1);
_root["\x19\x02"].linkage_darken.gotoAndStop("on");
this.9();
} else {
this.\n\f();
this.0\x05();
this["8\x04"] = 1;
this.\x02\n();
_root["\x19\x02"].linkage_darken.gotoAndStop("off");
this.\x1B\x02();
}
} else {
this.tool.5\n(2);
}
}
}
};
_local2["\"\x04"] = function () {
_root["?"].gotoAndStop(1);
this["\x03\x04"] = false;
};
_local2["%\n"] = function () {
if (this["\x03\x04"] == false) {
this["\x03\x04"] = true;
_root["?"].gotoAndPlay(2);
}
};
_local2["\x07\x07"] = function () {
if (this["\x03\x04"] == false) {
this["\x03\x04"] = true;
_root["?"].gotoAndPlay(18);
}
};
_local2["'\x0B"] = function () {
if (this["\x03\x04"] == false) {
this["\x03\x04"] = true;
_root["?"].gotoAndPlay(10);
}
};
_local2["\x13"] = function () {
if (this["\x03\x04"] == false) {
_root.7\x0B();
}
};
_local2["\x01"] = function () {
_root["\x0F\x03"].map.animation.credits_btn.gotoAndPlay("boom");
_root["\x0F\x03"].map.animation.credits_txt.gotoAndPlay("boom");
};
_local2["2"] = function (_arg2) {
return(this.towerSetup.arrGameModes[_arg2 - 1].info);
};
_local2["^\x07"] = function (_arg3) {
if (_global.blnECPlayLinks == true) {
if ((_arg3 == 6) || (_arg3 == 11)) {
_root.7\x0B();
}
}
};
_local2["3\x07"] = function () {
this.\x06\x04("Pre-Set", 12);
};
_local2.Easy = function () {
this.\x06\x04("Easy", 1);
};
_local2.Medium = function () {
this.\x06\x04("Medium", 2);
};
_local2.Hard = function () {
this.\x06\x04("Hard", 3);
};
_local2["6\x03"] = function () {
this.\x06\x04("The 101", 4);
};
_local2.Fast = function () {
this.\x06\x04("Fast", 5);
};
_local2.Fixed = function () {
this.\x06\x04("Fixed", 6);
};
_local2["\x1C\x07"] = function () {
this.\x06\x04("Continuous", 7);
};
_local2["3\x0B"] = function () {
this.\x06\x04("No Sale", 8);
};
_local2.Specialized = function () {
this.\x06\x04("Specialized", 9);
};
_local2.Gradual = function () {
this.\x06\x04("Gradual", 10);
};
_local2["\x14"] = function () {
this.\x06\x04("10k Gold", 11);
};
_local2["'\x06"] = function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
};
ASSetPropFlags(_global["5\x05"].prototype, null, 1);
#endinitclip
Symbol 1402 MovieClip [__Packages.FrameCounter] Frame 0
class
{
var , (, 0, , ,
, updateStart, updateLeft, 1;
function () {
\f = 0;
(\x07 = 0;
0\x02 = 0;
\x05\x02 = 0;
\x1C = true;
\n\x05 = 0;
updateStart = 30;
updateLeft = 30;
1\x02 = 0;
}
function Start() {
Reset();
}
function () {
\x1C = false;
}
function Reset() {
\f = 0;
0\x02 = 0;
if (\x1C == true) {
_root.createTextField("myFrameText_txt", 200000, 35, 10, 120, 20);
_root.myFrameText_txt.textColor = \n\x05;
_root.myFrameText_txt.selectable = false;
}
}
function (_arg2) {
\n\x05 = _arg2;
}
function () {
if (1\x02 == 0) {
0\x02 = getTimer();
1\x02 = 1;
}
\f++;
updateLeft--;
if (updateLeft == 0) {
updateLeft = updateStart;
\x05\x02 = Math.round( \f / ((getTimer() - 0\x02) / 1000));
\f = 0;
0\x02 = getTimer();
1\x02 = 2;
} else if (1\x02 == 1) {
\x05\x02 = Math.round( \f / ((getTimer() - 0\x02) / 1000));
}
if (\x1C == true) {
_root.myFrameText_txt.text = \x05\x02 + " fps";
}
}
function =() {
return(\x05\x02);
}
function ]() {
(\x07 = \f;
}
}
Symbol 1403 MovieClip [__Packages.TowerSetup] Frame 0
class TowerSetup
{
var arrTowerSetup, arrGameModes, arrEnemySetup, arrCombos, comboIndex;
function TowerSetup () {
arrTowerSetup = new Array();
arrGameModes = new Array();
arrEnemySetup = new Array();
arrCombos = new Array();
comboIndex = 0;
arrCombos.push({comboText:"NICE COMBO!", gold:10});
arrCombos.push({comboText:"GREAT COMBO!", gold:20});
arrCombos.push({comboText:"EXCELLENT COMBO!", gold:30});
arrCombos.push({comboText:"AWESOME COMBO!", gold:40});
arrCombos.push({comboText:"SUPER COMBO!", gold:50});
arrCombos.push({comboText:"WICKED COMBO!", gold:75});
arrCombos.push({comboText:"STELLAR COMBO!", gold:100});
arrCombos.push({comboText:"INSANE COMBO!", gold:200});
arrCombos.push({comboText:"OMG COMBO!", gold:400});
arrCombos.push({comboText:"#@$%&*!!!!!", gold:1000});
arrEnemySetup.push({id:1, name:"greedy", life:20, speed:1.25, dim:20, reward:150, goldReward:15});
arrEnemySetup.push({id:2, name:"lusty", life:20, speed:1.25, dim:20, reward:150, goldReward:15});
arrEnemySetup.push({id:3, name:"thirsty", life:20, speed:1.25, dim:20, reward:150, goldReward:15});
arrEnemySetup.push({id:4, name:"fast", life:15, speed:1.75, dim:20, reward:200, goldReward:15});
arrEnemySetup.push({id:5, name:"fat", life:50, speed:0.75, dim:20, reward:300, goldReward:30});
arrEnemySetup.push({id:6, name:"captain", life:80, speed:1.25, dim:20, reward:1000, goldReward:40});
arrTowerSetup.push({id:1, name:"Spear Tower", type:1, linkable:false, range:75, range2:0, upgradeType:2, path1:11, path2:12, path3:0, cost:75, sell:60, damage:3, damage2:0, reload:20, squareDim:40, info:"Shoots arrows at the nearest enemy pirate.", pic:"Tower_401"});
arrTowerSetup.push({id:2, name:"Swing (Left)", type:3, linkable:true, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:30, sell:24, damage:10, damage2:0, reload:110, squareDim:40, info:"This swinging log not only does damage to enemy pirates, but also pushes them a few squares to the left.", pic:"Tower_402"});
arrTowerSetup.push({id:3, name:"Swing (Right)", type:3, linkable:true, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:30, sell:24, damage:10, damage2:0, reload:110, squareDim:40, info:"This swinging log not only does damage to enemy pirates, but also pushes them a few squares to the right.", pic:"Tower_403"});
arrTowerSetup.push({id:4, name:"Tree Fling (Up)", type:3, linkable:true, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:30, sell:24, damage:10, damage2:0, reload:110, squareDim:40, info:"This tree is bent back nice and taut, just waiting for a pirate to set it off, damaging and flinging them up the map toward other potential traps.", pic:"Tower_404"});
arrTowerSetup.push({id:5, name:"Log Roll (Down)", type:3, linkable:true, range:0, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:80, sell:64, damage:14, damage2:0, reload:250, squareDim:40, info:"Once triggered, this trap releases a multitude of logs which will damage and move your pirates back down the map.", pic:"Tower_405"});
arrTowerSetup.push({id:6, name:"Explosive Trap", type:3, linkable:true, range:60, range2:0, upgradeType:2, path1:14, path2:15, path3:0, cost:60, sell:48, damage:15, damage2:0, reload:110, squareDim:40, info:"Explodes, causing damage to pirates within a certain range.", pic:"Tower_406"});
arrTowerSetup.push({id:7, name:"Bee Hive", type:3, linkable:true, range:20, range2:0, upgradeType:2, path1:16, path2:17, path3:0, cost:30, sell:24, damage:1, damage2:0, reload:100, squareDim:40, info:"When triggered, bees become very irritated. When irritated, pirates become very stung.", pic:"Tower_407"});
arrTowerSetup.push({id:8, name:"Standard Lure", type:2, linkable:true, range:10, range2:45, upgradeType:3, path1:18, path2:19, path3:20, cost:50, sell:40, damage:0, damage2:0, reload:0, squareDim:20, info:"This item functions the same as a trigger except that it lures pirates to it.", pic:"Tower_108"});
arrTowerSetup.push({id:9, name:"Trigger", type:2, linkable:true, range:10, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:15, sell:12, damage:0, damage2:0, reload:0, squareDim:20, info:"Triggers an event when a pirate travels over it.", pic:"Tower_109"});
arrTowerSetup.push({id:10, name:"Crate Barrier", type:1, linkable:false, range:0, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:30, sell:24, damage:0, damage2:0, reload:0, squareDim:20, info:"Crate Barriers can be used to help control where pirates can and cannot go.", pic:"Tower_410"});
arrTowerSetup.push({id:11, name:"C-Bomb Tower", type:1, linkable:false, range:75, range2:0, upgradeType:1, path1:13, path2:0, path3:0, cost:175, sell:200, damage:8, damage2:0, reload:40, squareDim:40, info:"Shoots coconut bombs that explode on impact.", pic:"Tower_411"});
arrTowerSetup.push({id:12, name:"Rifle Tower", type:1, linkable:false, range:115, range2:0, upgradeType:1, path1:13, path2:0, path3:0, cost:175, sell:200, damage:2, damage2:0, reload:10, squareDim:40, info:"Shoots a fast with better range.", pic:"Tower_412"});
arrTowerSetup.push({id:13, name:"Cannon Tower", type:1, linkable:false, range:100, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:350, sell:340, damage:18, damage2:0, reload:40, squareDim:40, info:"High damage cannon with a good range.", pic:"Tower_413"});
arrTowerSetup.push({id:14, name:"Pit Trap", type:3, linkable:true, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:250, sell:248, damage:0.5, damage2:0, reload:100, squareDim:40, info:"Enemies can be knocked into pits, both damaging them and detaining them for a short amount of time.", pic:"Tower_414"});
arrTowerSetup.push({id:15, name:"Pirhanna Pond", type:3, linkable:true, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:150, sell:168, damage:1, damage2:0, reload:80, squareDim:40, info:"Enemies can be knocked into ponds, both damaging them and detaining them for a short amount of time.", pic:"Tower_415"});
arrTowerSetup.push({id:16, name:"Hot Coals", type:3, linkable:true, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:150, sell:144, damage:50, damage2:2, reload:100, squareDim:40, info:"When triggered, the hot coals heat up instantly, damaging any pirate which finds itself over them.", pic:"Tower_416"});
arrTowerSetup.push({id:17, name:"Sticky Tar", type:3, linkable:false, range:20, range2:0, upgradeType:0, path1:0, path2:0, path3:0, cost:50, sell:64, damage:0, damage2:0, reload:160, squareDim:40, info:"The tar pit slows pirates down that have been bumped over it.", pic:"Tower_417"});
arrTowerSetup.push({id:18, name:"Greedy Lure", type:2, linkable:true, range:10, range2:55, upgradeType:0, path1:0, path2:0, path3:0, cost:10, sell:48, damage:0, damage2:0, reload:0, squareDim:20, info:"Functions the same as a trigger, except that it lures in greedy pirates.", pic:"Tower_118"});
arrTowerSetup.push({id:19, name:"Lusty Lure", type:2, linkable:true, range:10, range2:55, upgradeType:0, path1:0, path2:0, path3:0, cost:10, sell:48, damage:0, damage2:0, reload:0, squareDim:20, info:"Functions the same as a trigger, except that it lures in lusty pirates.", pic:"Tower_119"});
arrTowerSetup.push({id:20, name:"Rum Lure", type:2, linkable:true, range:10, range2:55, upgradeType:0, path1:0, path2:0, path3:0, cost:10, sell:48, damage:0, damage2:0, reload:0, squareDim:20, info:"Functions the same as a trigger, except that it lures in thirsty pirates.", pic:"Tower_120"});
arrGameModes.push({id:1, mode:"Easy", gold:800, lives:20, score:0, bg:1, info:"Easy Difficulty"});
arrGameModes.push({id:2, mode:"Medium", gold:425, lives:20, score:0, bg:2, info:"Medium Difficulty"});
arrGameModes.push({id:3, mode:"Hard", gold:500, lives:20, score:0, bg:2, info:"Hard Difficulty"});
arrGameModes.push({id:4, mode:"The 101", gold:500, lives:20, score:0, bg:2, info:"Can you beat all 101 waves?"});
arrGameModes.push({id:5, mode:"Fast", gold:450, lives:20, score:0, bg:2, info:"Speedy speedy speedy pirates!"});
arrGameModes.push({id:6, mode:"Fixed", gold:7500, lives:20, score:0, bg:2, info:"Create your defenses, press start, and then sit back and watch what happens!"});
arrGameModes.push({id:7, mode:"Continuous", gold:600, lives:20, score:0, bg:2, info:"A continuous trickle of pirates!"});
arrGameModes.push({id:8, mode:"No Sale", gold:1000, lives:20, score:0, bg:2, info:"No selling."});
arrGameModes.push({id:9, mode:"Specialized", gold:1000, lives:20, score:0, bg:2, info:"50 waves of a specialized path!"});
arrGameModes.push({id:10, mode:"Gradual", gold:600, lives:20, score:0, bg:2, info:"Continuous pirate waves with an increasing release rate!"});
arrGameModes.push({id:11, mode:"10k Gold", gold:100000, lives:20, score:0, bg:2, info:"Start off with 100,000 gold!"});
arrGameModes.push({id:12, mode:"Pre-Set", gold:1000, lives:20, score:0, bg:1, info:"Confused on how to play? Use this preset example level!"});
}
}
Symbol 1404 MovieClip [__Packages.Map] Frame 0
class 2
{
var 0
, , );
function 2 () {
0\n = 20;
\x06\f = new Array();
)\x07 = 30000;
\x1B\x07(_global.typetype);
;\x06();
}
function ;() {
var _local5 = 0;
while (_local5 < \x06\f.length) {
var _local3 = 0;
while (_local3 < \x06\f[_local5].length) {
var _local4 = (("tile_" + _local5) + "_") + _local3;
if (\x06\f[_local5][_local3] != 0) {
var _local6 = "Doodad_" + \x06\f[_local5][_local3];
_root["\x19\x02"].GAMEBOX.attachMovie(_local6, _local4, )\x07);
_root["\x19\x02"].GAMEBOX[_local4]._x = _local3 * 0\n;
_root["\x19\x02"].GAMEBOX[_local4]._y = _local5 * 0\n;
_root["\x19\x02"].GAMEBOX[_local4].cacheAsBitmap = true;
_root.game["\x1F\x05"].push(_local4);
)\x07++;
if ()\x07 >= 40000) {
)\x07 = 30000;
}
}
_local3++;
}
_local5++;
}
}
function SlowSpeedCheck(_arg2, _arg3) {
if (\x06\f[_arg3][_arg2] < 300) {
return(true);
}
return(false);
}
function Tower417Check(_arg2, _arg3) {
if (\x06\f[_arg3][_arg2] == 417) {
return(true);
}
return(false);
}
function CheckIfBlocked(_arg2, _arg3) {
if ((\x06\f[_arg3][_arg2] == 0) || (\x06\f[_arg3][_arg2] == 0)) {
return(false);
}
return(true);
}
function TriggerCheck(_arg2, _arg3) {
if (\x06\f[_arg3][_arg2] == 108) {
return(true);
}
if (\x06\f[_arg3][_arg2] == 109) {
return(true);
}
if (\x06\f[_arg3][_arg2] == 118) {
return(true);
}
if (\x06\f[_arg3][_arg2] == 119) {
return(true);
}
if (\x06\f[_arg3][_arg2] == 120) {
return(true);
}
return(false);
}
function UpOrDown(_arg4, _arg5) {
var _local2 = false;
var _local3 = false;
if (\x06\f[_arg5 - 1][_arg4] < 300) {
_local2 = true;
}
if (\x06\f[_arg5 + 1][_arg4] < 300) {
_local3 = true;
}
if ((_local2 == false) && (_local3 == false)) {
return(0);
}
if (_local2 == true) {
return(3);
}
return(4);
}
function LeftOrRight(_arg4, _arg5) {
var _local2 = false;
var _local3 = false;
if (\x06\f[_arg5][_arg4 - 1] < 300) {
_local2 = true;
}
if (\x06\f[_arg5][_arg4 + 1] < 300) {
_local3 = true;
}
if ((_local2 == false) && (_local3 == false)) {
return(0);
}
if (_local2 == true) {
return(1);
}
return(2);
}
function 5() {
var _local3 = 0;
while (_local3 < \x06\f.length) {
var _local4 = "";
var _local2 = 0;
while (_local2 < \x06\f[_local3].length) {
_local4 = _local4 + (\x06\f[_local3][_local2] + ",");
_local2++;
}
_local4 = _local4.substr(0, _local4.length - 1);
_local3++;
}
}
function (_arg4, _arg3, _arg5, _arg2) {
if (_arg5 == 20) {
\x06\f[_arg3][_arg4] = _arg2;
} else {
\x06\f[_arg3][_arg4] = _arg2;
\x06\f[_arg3 + 1][_arg4] = _arg2;
\x06\f[_arg3][_arg4 + 1] = _arg2;
\x06\f[_arg3 + 1][_arg4 + 1] = _arg2;
}
}
function (_arg3, _arg2, _arg4) {
if (_arg4 == 20) {
\x06\f[_arg2][_arg3] = 0;
} else {
\x06\f[_arg2][_arg3] = 0;
\x06\f[_arg2 + 1][_arg3] = 0;
\x06\f[_arg2][_arg3 + 1] = 0;
\x06\f[_arg2 + 1][_arg3 + 1] = 0;
}
}
function (_arg3) {
switch (_arg3) {
case 1 :
var _local2 = new +\n();
\x06\f = _local2.\n();
break;
case 2 :
_local2 = new \x01\x0B();
\x06\f = _local2.\n();
break;
case 3 :
_local2 = new #\n();
\x06\f = _local2.\n();
break;
case 4 :
_local2 = new \x0F\x05();
\x06\f = _local2.\n();
break;
case 5 :
_local2 = new ;\x04();
\x06\f = _local2.\n();
break;
case 6 :
_local2 = new ]\x07();
\x06\f = _local2.\n();
break;
case 12 :
_local2 = new +\n();
\x06\f = _local2.\n();
break;
default :
_local2 = new \x05\x06();
\x06\f = _local2.\n();
}
}
function () {
return(\x06\f);
}
function (() {
return(this);
}
function IsPathBlocked(_arg3) {
var _local2 = 0;
while (_local2 < _arg3.length) {
if (\x06\f[_arg3[_local2].y][_arg3[_local2].x] >= 300) {
return(true);
}
_local2++;
}
return(false);
}
}
Symbol 1405 MovieClip [__Packages.Map1] Frame 0
class +
{
var !;
function +
() {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 303, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 300, 300, 300, 0, 0, 0, 300, 300, 300, 0, 0, 300, 300, 300, 0, 0, 0, 300, 300, 300, 300));
!\x07.push(Array(300, 300, 300, 300, 0, 0, 0, 300, 300, 300, 0, 0, 300, 300, 300, 0, 0, 0, 300, 300, 300, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1406 MovieClip [__Packages.Map2] Frame 0
class
{
var !;
function () {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 302, 302, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 302, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 301, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 303, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1407 MovieClip [__Packages.Map3] Frame 0
class #
{
var !;
function #
() {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 301, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1408 MovieClip [__Packages.Map4] Frame 0
class
{
var !;
function () {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 301, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1409 MovieClip [__Packages.Map5] Frame 0
class ;
{
var !;
function ; () {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 302, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 303, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 301, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 304, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 301, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1410 MovieClip [__Packages.Map6] Frame 0
class ]
{
var !;
function ] () {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 301, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1411 MovieClip [__Packages.Map7] Frame 0
class
{
var !;
function () {
!\x07 = new Array();
}
function
() {
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 302, 302, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 302, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 301, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 302, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
!\x07.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
return(!\x07);
}
}
Symbol 1412 MovieClip [__Packages.AStar] Frame 0
class
{
var arrCachedPathsAStar, arrCachedPaths, (
, 2, , , , , arrPath, intCurrentIndexX, 1, intCurrentIndexY, &, , )
, 7, , ;
, ,,
, [, , , arrClosedNodes;
function () {
\x06\n();
arrCachedPathsAStar = new Array();
arrCachedPaths = new Array();
}
function
() {
(\n = true;
2\x05 = true;
\x1D\x06 = 40;
\x0F\x06 = true;
\x18\x07 = 3000;
}
function ^(_arg2) {
\x05\x03 = _arg2;
}
function FindPointToEnd(_arg13, _arg12, _arg11, _arg10, _arg15, _arg14) {
delete arrPath;
arrPath = new Array();
var _local7 = -1;
var _local2 = 0;
while (_local2 < arrCachedPaths.length) {
if (arrCachedPaths[_local2].length > 10) {
if ((arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].x == _arg11) && (arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].y == _arg10)) {
_local7 = _local2;
break;
}
if ((arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].x == _arg15) && (arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].y == _arg14)) {
_local7 = _local2;
break;
}
}
_local2++;
}
if (_local7 != -1) {
var _local6 = _local7;
var _local9 = -1;
var _local8 = 999999 /* 0x0F423F */;
_local2 = 0;
while (_local2 < arrCachedPaths[_local6].length) {
var _local4 = arrCachedPaths[_local6][_local2].x - _arg13;
var _local3 = arrCachedPaths[_local6][_local2].y - _arg12;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local5 < _local8) {
_local8 = _local5;
_local9 = _local2;
}
_local2++;
}
arrPath.push({x:arrCachedPaths[_local6][_local9].x, y:arrCachedPaths[_local6][_local9].y});
}
if (arrPath.length == 0) {
delete arrPath;
arrPath = null;
}
return(arrPath);
}
function Wander(_arg4, _arg2) {
intCurrentIndexX = (1\x07 = _arg4);
intCurrentIndexY = (&\x05 = _arg2);
delete arrPath;
arrPath = new Array();
var _local5 = '\x06(1, 4);
var _local6 = \x05\x03.\x1F\f();
var _local7 = 1;
while (_local7 <= 4) {
var _local3 = false;
switch (_local5) {
case 1 :
if (_arg2 == 0) {
break;
}
if (_local6[_arg2 - 1][_arg4] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07, y:_arg2 - 1});
break;
if (_arg4 == (\x18\x0B - 1)) {
} else if (_local6[_arg2][_arg4 + 1] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07 + 1, y:_arg2});
break;
if (_arg2 == ()\n - 1)) {
} else if (_local6[_arg2 + 1][_arg4] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07, y:_arg2 + 1});
break;
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07 - 1, y:_arg2});
}
}
}
}
case 2 :
if (_arg4 == (\x18\x0B - 1)) {
} else if (_local6[_arg2][_arg4 + 1] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07 + 1, y:_arg2});
break;
if (_arg2 == ()\n - 1)) {
} else if (_local6[_arg2 + 1][_arg4] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07, y:_arg2 + 1});
break;
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07 - 1, y:_arg2});
}
}
}
case 3 :
if (_arg2 == ()\n - 1)) {
} else if (_local6[_arg2 + 1][_arg4] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07, y:_arg2 + 1});
break;
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07 - 1, y:_arg2});
}
}
case 4 :
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
arrPath.push({x:1\x07 - 1, y:_arg2});
}
}
if (_local3 == true) {
break;
}
_local5++;
if (_local5 == 5) {
_local5 = 1;
}
_local7++;
}
if (arrPath.length == 0) {
delete arrPath;
arrPath = null;
}
return(arrPath);
}
function BumpLeft(_arg6, _arg7, _arg8) {
intCurrentIndexX = (1\x07 = _arg6);
intCurrentIndexY = (&\x05 = _arg7);
\x1D("left");
\x18\x0B = 7\x02[0].length;
)\n = 7\x02.length;
delete arrPath;
arrPath = new Array();
var _local5 = _arg6 - _arg8;
if (_local5 < 0) {
_local5 = 0;
}
var _local2 = _arg6 - 1;
while (_local2 >= _local5) {
if (7\x02[&\x05][_local2]._type >= 300) {
if (((7\x02[&\x05][_local2]._type == 407) || (7\x02[&\x05][_local2]._type == 416)) || (7\x02[&\x05][_local2]._type == 417)) {
} else {
if (((7\x02[&\x05][_local2]._type == 414) || (7\x02[&\x05][_local2]._type == 415)) || (7\x02[&\x05][_local2]._type == 407)) {
arrPath.push({x:_local2, y:&\x05});
break;
}
break;
}
}
arrPath.push({x:_local2, y:&\x05});
_local2--;
}
if (arrPath.length == 0) {
delete arrPath;
arrPath = null;
}
return(arrPath);
}
function BumpRight(_arg6, _arg7, _arg8) {
intCurrentIndexX = (1\x07 = _arg6);
intCurrentIndexY = (&\x05 = _arg7);
\x1D("right");
\x18\x0B = 7\x02[0].length;
)\n = 7\x02.length;
delete arrPath;
arrPath = new Array();
var _local5 = _arg6 + _arg8;
if (_local5 > \x18\x0B) {
_local5 = \x18\x0B;
}
var _local2 = _arg6 + 1;
while (_local2 <= _local5) {
if (7\x02[&\x05][_local2]._type >= 300) {
if (((7\x02[&\x05][_local2]._type == 407) || (7\x02[&\x05][_local2]._type == 416)) || (7\x02[&\x05][_local2]._type == 417)) {
} else {
if (((7\x02[&\x05][_local2]._type == 414) || (7\x02[&\x05][_local2]._type == 415)) || (7\x02[&\x05][_local2]._type == 407)) {
arrPath.push({x:_local2, y:&\x05});
break;
}
break;
}
}
arrPath.push({x:_local2, y:&\x05});
_local2++;
}
if (arrPath.length == 0) {
delete arrPath;
arrPath = null;
}
return(arrPath);
}
function BumpUp(_arg7, _arg6, _arg8) {
intCurrentIndexX = (1\x07 = _arg7);
intCurrentIndexY = (&\x05 = _arg6);
\x1D("up");
\x18\x0B = 7\x02[0].length;
)\n = 7\x02.length;
delete arrPath;
arrPath = new Array();
var _local5 = _arg6 - _arg8;
if (_local5 < 0) {
_local5 = 0;
}
var _local2 = &\x05 - 1;
while (_local2 >= _local5) {
if (7\x02[_local2][1\x07]._type >= 300) {
if (((7\x02[_local2][1\x07]._type == 407) || (7\x02[_local2][1\x07]._type == 416)) || (7\x02[_local2][1\x07]._type == 417)) {
} else {
if (((7\x02[_local2][1\x07]._type == 414) || (7\x02[_local2][1\x07]._type == 415)) || (7\x02[_local2][1\x07]._type == 407)) {
arrPath.push({x:1\x07, y:_local2});
break;
}
break;
}
}
arrPath.push({x:1\x07, y:_local2});
_local2--;
}
if (arrPath.length == 0) {
delete arrPath;
arrPath = null;
}
return(arrPath);
}
function BumpDown(_arg7, _arg6, _arg8) {
intCurrentIndexX = (1\x07 = _arg7);
intCurrentIndexY = (&\x05 = _arg6);
\x1D("down");
\x18\x0B = 7\x02[0].length;
)\n = 7\x02.length;
delete arrPath;
arrPath = new Array();
var _local5 = _arg6 + _arg8;
if (_local5 > )\n) {
_local5 = )\n;
}
var _local2 = &\x05 + 1;
while (_local2 <= _local5) {
if (7\x02[_local2][1\x07]._type >= 300) {
if (((7\x02[_local2][1\x07]._type == 407) || (7\x02[_local2][1\x07]._type == 416)) || (7\x02[_local2][1\x07]._type == 417)) {
} else {
if (((7\x02[_local2][1\x07]._type == 414) || (7\x02[_local2][1\x07]._type == 415)) || (7\x02[_local2][1\x07]._type == 407)) {
arrPath.push({x:1\x07, y:_local2});
break;
}
break;
}
}
arrPath.push({x:1\x07, y:_local2});
_local2++;
}
if (arrPath.length == 0) {
delete arrPath;
arrPath = null;
}
return(arrPath);
}
function Search(_arg6, _arg5, _arg8, _arg7) {
var _local2 = getTimer();
intCurrentIndexX = (1\x07 = _arg6);
intCurrentIndexY = (&\x05 = _arg5);
\x01\x06 = _arg8;
;\n = _arg7;
if (2\x05 == true) {
if ('\x06(0, 100) <= \x1D\x06) {
,\x02 = true;
} else {
,\x02 = false;
}
} else {
,\x02 = false;
}
if ((\n == true) {
if (2\x05 == true) {
if (,\x02 == true) {
\x12\n = \x16\x04();
if (\x12\n != -1) {
if ((arrCachedPathsAStar[\x12\n][0].x == 1\x07) && (arrCachedPathsAStar[\x12\n][0].y == &\x05)) {
[\x0B = true;
arrPath = arrCachedPathsAStar[\x12\n].slice();
return(arrPath);
}
\x01\x06 = arrCachedPathsAStar[\x12\n][6].x;
;\n = arrCachedPathsAStar[\x12\n][6].y;
}
} else {
\x12\n = 1\n();
if (\x12\n != -1) {
if ((arrCachedPaths[\x12\n][0].x == 1\x07) && (arrCachedPaths[\x12\n][0].y == &\x05)) {
[\x0B = true;
arrPath = arrCachedPaths[\x12\n].slice();
return(arrPath);
}
\x01\x06 = arrCachedPaths[\x12\n][6].x;
;\n = arrCachedPaths[\x12\n][6].y;
}
}
} else {
\x12\n = 1\n();
if (\x12\n != -1) {
if ((arrCachedPaths[\x12\n][0].x == 1\x07) && (arrCachedPaths[\x12\n][0].y == &\x05)) {
[\x0B = true;
arrPath = arrCachedPaths[\x12\n].slice();
return(arrPath);
}
\x01\x06 = arrCachedPaths[\x12\n][6].x;
;\n = arrCachedPaths[\x12\n][6].y;
}
}
}
Reset();
7\x02[intCurrentIndexY][intCurrentIndexX]._g = 0;
7\x02[intCurrentIndexY][intCurrentIndexX]._h = #\x03(intCurrentIndexX, intCurrentIndexY);
7\x02[intCurrentIndexY][intCurrentIndexX]._f = 7\x02[intCurrentIndexY][intCurrentIndexX]._g + 7\x02[intCurrentIndexY][intCurrentIndexX]._h;
\x15\x06(7\x02[intCurrentIndexY][intCurrentIndexX]);
while (\x01\f == false) {
\x19\f();
if ((getTimer() - _local2) > \x18\x07) {
\x01\f = true;
}
if (this["?\x07"].length == 0) {
\x01\f = true;
}
}
if ([\x0B == true) {
\x1E\x03();
if ((arrPath[arrPath.length - 1].x != \x01\x06) || (arrPath[arrPath.length - 1].y != ;\n)) {
arrPath.push({x:\x01\x06, y:;\n});
}
} else {
delete arrPath;
arrPath = null;
}
if ([\x0B == true) {
if ((\n == true) {
if (\x12\n != -1) {
\x10\x05();
} else {
,\n();
}
}
}
return(arrPath);
}
function `(_arg5, _arg4, _arg7, _arg6) {
var _local8 = (\n;
var _local9 = 2\x05;
(\n = false;
2\x05 = false;
Search(_arg5, _arg4, _arg7, _arg6);
(\n = _local8;
2\x05 = _local9;
if (arrPath != null) {
var _local3 = false;
var _local2 = 0;
while (_local2 < arrCachedPaths.length) {
if ((((arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].x == _arg7) && (arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].y == _arg6)) && (arrCachedPaths[_local2][0].x == _arg5)) && (arrCachedPaths[_local2][0].y == _arg4)) {
_local3 = true;
}
_local2++;
}
if (_local3 == false) {
arrCachedPaths.push(arrPath.slice());
arrCachedPaths[arrCachedPaths.length - 1].unshift({x:_arg5, y:_arg4});
}
}
return(arrPath);
}
function () {
var _local2 = 0;
while (_local2 < this["?\x07"].length) {
_local2++;
}
}
function () {
this["?\x07"].sortOn("_f", Array.NUMERIC);
intCurrentIndexX = this["?\x07"][0]._xLoc;
intCurrentIndexY = this["?\x07"][0]._yLoc;
\x14\f = this["?\x07"][0];
this["?\x07"].splice(0, 1);
if ((intCurrentIndexX == \x01\x06) && (intCurrentIndexY == ;\n)) {
\x01\f = true;
[\x0B = true;
} else {
if (intCurrentIndexX > 0) {
\x0B\x04(intCurrentIndexX - 1, intCurrentIndexY);
}
if ((intCurrentIndexX > 0) && (intCurrentIndexY < ()\n - 1))) {
\x0B\x04(intCurrentIndexX - 1, intCurrentIndexY + 1);
}
if (intCurrentIndexY < ()\n - 1)) {
\x0B\x04(intCurrentIndexX, intCurrentIndexY + 1);
}
if ((intCurrentIndexX < (\x18\x0B - 1)) && (intCurrentIndexY < ()\n - 2))) {
\x0B\x04(intCurrentIndexX + 1, intCurrentIndexY + 1);
}
if (intCurrentIndexX < (\x18\x0B - 1)) {
\x0B\x04(intCurrentIndexX + 1, intCurrentIndexY);
}
if ((intCurrentIndexX < (\x18\x0B - 1)) && (intCurrentIndexY > 0)) {
\x0B\x04(intCurrentIndexX + 1, intCurrentIndexY - 1);
}
if (intCurrentIndexY > 0) {
\x0B\x04(intCurrentIndexX, intCurrentIndexY - 1);
}
if ((intCurrentIndexX > 0) && (intCurrentIndexY > 0)) {
\x0B\x04(intCurrentIndexX - 1, intCurrentIndexY - 1);
}
}
\x14\f._blnOpen = false;
arrClosedNodes.push(\x14\f);
}
function (_arg4, _arg3) {
var _local5 = &\x04(_arg4, _arg3);
if (_local5 == 999999) {
return(undefined);
}
_local5 = \x14\f._g + _local5;
if (7\x02[_arg3][_arg4]._blnVisited == false) {
if ((((7\x02[_arg3][_arg4]._type < 300) || (7\x02[_arg3][_arg4]._type == 407)) || (7\x02[_arg3][_arg4]._type == 416)) || (7\x02[_arg3][_arg4]._type == 417)) {
7\x02[_arg3][_arg4]._g = _local5;
7\x02[_arg3][_arg4]._h = #\x03(_arg4, _arg3);
if (,\x02 == true) {
7\x02[_arg3][_arg4]._f = 7\x02[_arg3][_arg4]._h;
} else {
7\x02[_arg3][_arg4]._f = 7\x02[_arg3][_arg4]._g + 7\x02[_arg3][_arg4]._h;
}
7\x02[_arg3][_arg4]["\n\n"] = 7\x02[\x14\f._yLoc][\x14\f._xLoc];
\x15\x06(7\x02[_arg3][_arg4]);
}
} else if ((((7\x02[_arg3][_arg4]._type < 300) || (7\x02[_arg3][_arg4]._type == 407)) || (7\x02[_arg3][_arg4]._type == 416)) || (7\x02[_arg3][_arg4]._type == 417)) {
if (_local5 < 7\x02[_arg3][_arg4]._g) {
7\x02[_arg3][_arg4]["\n\n"] = 7\x02[\x14\f._yLoc][\x14\f._xLoc];
7\x02[_arg3][_arg4]._g = _local5;
7\x02[_arg3][_arg4]._f = 7\x02[_arg3][_arg4]._h + 7\x02[_arg3][_arg4]._g;
if (7\x02[_arg3][_arg4]._blnOpen == false) {
var _local2 = 0;
while (_local2 < arrClosedNodes.length) {
if ((arrClosedNodes[_local2]._xLoc == _arg4) && (arrClosedNodes[_local2]._yLoc == _arg3)) {
arrClosedNodes.splice(_local2, 1);
}
_local2++;
}
}
}
}
}
function Reset() {
delete this["?\x07"];
delete arrClosedNodes;
this["?\x07"] = new Array();
arrClosedNodes = new Array();
\x01\f = false;
[\x0B = false;
]\x06();
\x18\x0B = 7\x02[0].length;
)\n = 7\x02.length;
}
function ]() {
if (7\x02 != null) {
@\x0B();
return(undefined);
}
delete 7\x02;
7\x02 = new Array();
var _local4;
var _local5 = \x05\x03.\x1F\f();
var _local3 = 0;
while (_local3 < _local5.length) {
var _local6 = new Array(_local5[_local3].length);
var _local2 = 0;
while (_local2 < _local5[_local3].length) {
_local4 = new ]\x0B();
_local4._type = _local5[_local3][_local2];
_local4._xLoc = _local2;
_local4._yLoc = _local3;
_local6[_local2] = _local4;
_local2++;
}
7\x02.push(_local6);
_local3++;
}
}
function @() {
var _local4 = \x05\x03.\x1F\f();
var _local3 = 0;
while (_local3 < 7\x02.length) {
var _local2 = 1;
while (_local2 < 7\x02[_local3].length) {
7\x02[_local3][_local2].Reset(_local4[_local3][_local2]);
_local2++;
}
_local3++;
}
}
function (_arg5) {
if (7\x02 == null) {
]\x06();
return(undefined);
}
var _local4 = \x05\x03.\x1F\f();
if ((_arg5 == "left") || (_arg5 == "right")) {
var _local2 = 0;
while (_local2 < 7\x02[&\x05].length) {
7\x02[&\x05][_local2].Reset(_local4[&\x05][_local2]);
_local2++;
}
} else if ((_arg5 == "up") || (_arg5 == "down")) {
var _local3 = 0;
while (_local3 < 7\x02.length) {
7\x02[_local3][1\x07].Reset(_local4[_local3][1\x07]);
_local3++;
}
}
}
function (_arg6) {
if (_arg6 == "type") {
var _local4 = 0;
while (_local4 < 7\x02.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < 7\x02[_local4].length) {
var _local2 = "";
if (7\x02[_local4][_local3]._type < 10) {
_local2 = "00" + 7\x02[_local4][_local3]._type;
} else if (7\x02[_local4][_local3]._type < 100) {
_local2 = "0" + 7\x02[_local4][_local3]._type;
} else {
_local2 = "" + 7\x02[_local4][_local3]._type;
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
_local4++;
}
} else if (_arg6 == "visited") {
var _local4 = 0;
while (_local4 < 7\x02.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < 7\x02[_local4].length) {
var _local2 = "0";
if (7\x02[_local4][_local3]._blnVisited == true) {
_local2 = "X";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
_local4++;
}
} else if (_arg6 == "path") {
var _local4 = 0;
while (_local4 < arrPath.length) {
7\x02[arrPath[_local4].y][arrPath[_local4].x]._blnPath = true;
_local4++;
}
_local4 = 0;
while (_local4 < 7\x02.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < 7\x02[_local4].length) {
var _local2 = " ";
if (7\x02[_local4][_local3]._blnPath == true) {
_local2 = "+";
}
if (7\x02[_local4][_local3]._type >= 300) {
_local2 = "#";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
_local4++;
}
} else if (_arg6 == "f") {
var _local4 = 0;
while (_local4 < 7\x02.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < 7\x02[_local4].length) {
var _local2 = " ";
_local2 = String(7\x02[_local4][_local3]._f);
if (_local2 == "0") {
_local2 = " ";
} else if (_local2.length == 1) {
_local2 = " " + _local2;
} else if (_local2.length == 2) {
_local2 = " " + _local2;
} else if (_local2.length == 3) {
_local2 = " " + _local2;
} else if (_local2.length == 4) {
_local2 = "" + _local2;
}
if (7\x02[_local4][_local3]._type >= 300) {
_local2 = "####";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
_local4++;
}
} else if (_arg6 == "g") {
var _local4 = 0;
while (_local4 < 7\x02.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < 7\x02[_local4].length) {
var _local2 = " ";
_local2 = String(7\x02[_local4][_local3]._g);
if (_local2 == "0") {
_local2 = " ";
} else if (_local2.length == 1) {
_local2 = " " + _local2;
} else if (_local2.length == 2) {
_local2 = " " + _local2;
} else if (_local2.length == 3) {
_local2 = " " + _local2;
} else if (_local2.length == 4) {
_local2 = "" + _local2;
}
if (7\x02[_local4][_local3]._type >= 300) {
_local2 = "####";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
_local4++;
}
} else if (_arg6 == "h") {
var _local4 = 0;
while (_local4 < 7\x02.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < 7\x02[_local4].length) {
var _local2 = " ";
_local2 = String(7\x02[_local4][_local3]._h);
if (_local2 == "0") {
_local2 = " ";
} else if (_local2.length == 1) {
_local2 = " " + _local2;
} else if (_local2.length == 2) {
_local2 = " " + _local2;
} else if (_local2.length == 3) {
_local2 = " " + _local2;
} else if (_local2.length == 4) {
_local2 = "" + _local2;
}
if (7\x02[_local4][_local3]._type >= 300) {
_local2 = "####";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
_local4++;
}
}
}
function (_arg2) {
_arg2._blnVisited = true;
_arg2._blnOpen = true;
if (_arg2["\n\n"] == null) {
this["?\x07"].push(_arg2);
} else if (this["?\x07"].length == 0) {
this["?\x07"].push(_arg2);
} else {
this["?\x07"].push(_arg2);
}
}
function #(_arg6, _arg7) {
var _local3 = Math.abs(_arg6 - \x01\x06);
var _local2 = Math.abs(_arg7 - ;\n);
var _local4 = Math.min(_local3, _local2);
var _local5 = _local3 + _local2;
return((14 * _local4) + ((10 * (_local5 - (2 * _local4))) * 1.5));
}
function &(_arg10, _arg9) {
var _local2 = 10;
if (((\x14\f._xLoc - _arg10) != 0) && ((\x14\f._yLoc - _arg9) != 0)) {
_local2 = 14;
if (\x0F\x06 == true) {
var _local3 = (\x14\f._xLoc - _arg10) / Math.abs(\x14\f._xLoc - _arg10);
var _local4 = (\x14\f._yLoc - _arg9) / Math.abs(\x14\f._yLoc - _arg9);
var _local8 = \x14\f._xLoc - _local3;
var _local6 = \x14\f._yLoc;
var _local7 = \x14\f._xLoc;
var _local5 = \x14\f._yLoc - _local4;
if ((7\x02[_local6][_local8]._type >= 300) || (7\x02[_local5][_local7]._type >= 300)) {
_local2 = 999999 /* 0x0F423F */;
}
}
}
return(_local2);
}
function () {
var _local4 = getTimer();
delete arrPath;
arrPath = new Array();
do {
if (\x14\f["\n\n"] == null) {
break;
}
arrPath.unshift({x:\x14\f._xLoc, y:\x14\f._yLoc});
\x14\f = \x14\f["\n\n"];
} while ((getTimer() - _local4) <= 50);
}
function >() {
delete arrCachedPaths;
arrCachedPaths = new Array();
delete arrCachedPathsAStar;
arrCachedPathsAStar = new Array();
}
function ,
() {
if (arrPath.length > 7) {
if (,\x02 == true) {
arrCachedPathsAStar.push(arrPath.slice());
arrCachedPathsAStar[arrCachedPathsAStar.length - 1].unshift({x:1\x07, y:&\x05});
} else {
arrCachedPaths.push(arrPath.slice());
arrCachedPaths[arrCachedPaths.length - 1].unshift({x:1\x07, y:&\x05});
}
}
}
function 1
() {
var _local6 = -1;
var _local2 = 0;
while (_local2 < arrCachedPaths.length) {
if ((arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].x == \x01\x06) && (arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].y == ;\n)) {
var _local4 = arrCachedPaths[_local2][0].x - 1\x07;
var _local3 = arrCachedPaths[_local2][0].y - &\x05;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local5 <= 4) {
_local6 = _local2;
break;
}
}
_local2++;
}
return(_local6);
}
function () {
var _local6 = -1;
var _local2 = 0;
while (_local2 < arrCachedPathsAStar.length) {
if ((arrCachedPathsAStar[_local2][arrCachedPathsAStar[_local2].length - 1].x == \x01\x06) && (arrCachedPathsAStar[_local2][arrCachedPathsAStar[_local2].length - 1].y == ;\n)) {
var _local4 = arrCachedPathsAStar[_local2][0].x - 1\x07;
var _local3 = arrCachedPathsAStar[_local2][0].y - &\x05;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local5 <= 4) {
_local6 = _local2;
break;
}
}
_local2++;
}
return(_local6);
}
function () {
if (,\x02 == true) {
var _local2 = arrCachedPathsAStar[\x12\n].slice(7, arrCachedPathsAStar[\x12\n].length - 1);
arrPath = arrPath.concat(_local2);
} else {
var _local2 = arrCachedPaths[\x12\n].slice(7, arrCachedPaths[\x12\n].length - 1);
arrPath = arrPath.concat(_local2);
}
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1413 MovieClip [__Packages.AStarNode] Frame 0
class ]
{
var _g, _h, _f, _xLoc, _yLoc, _type, _blnPath, _blnVisited, _blnOpen,
;
function ] () {
_g = 0;
_h = 0;
_f = 0;
_xLoc = 0;
_yLoc = 0;
_type = 0;
_blnPath = false;
_blnVisited = false;
_blnOpen = false;
\n\n = null;
}
function Reset(_arg2) {
_g = 0;
_h = 0;
_f = 0;
_type = _arg2;
_blnPath = false;
_blnVisited = false;
_blnOpen = false;
\n\n = null;
}
}
Symbol 1414 MovieClip [__Packages.WaveEngine] Frame 0
class
{
var arrWaveButtons, , arrEnemyQueue, 9, , , , 4, 3
, , , , `,
;
function () {
arrWaveButtons = new Array();
\x10\x07 = new Array();
arrEnemyQueue = new Array();
9\x02 = -1;
\x04\x03 = -1;
\x16\x07 = false;
\x1A\x03 = 77;
4\x0B = true;
if (_global.typetype == 10) {
3\n = 800;
} else if (_global.typetype == 7) {
3\n = 180;
} else if (_global.typetype == 5) {
3\n = 400;
} else {
3\n = 770;
}
\x04 = 3\n;
\x03\x03 = 100;
\x03\f = "normal";
`\x0B = 0;
}
function () {
if ((4\x0B == false) && (9\x02 > -1)) {
if (\x16\x07 == true) {
[\x04();
} else {
'\f();
}
\x1E\x04();
}
}
function 0() {
if (_global.typetype == 10) {
3\n = 3\n - 30;
if (3\n <= 50) {
3\n = 50;
}
}
}
function [() {
var _local8 = new Array();
var _local7 = -1;
var _local9;
var _local4 = 0;
while (_local4 < arrWaveButtons.length) {
if (arrWaveButtons[_local4] == (\x04\x03 + "wave_mc")) {
_local7 = _local4;
_local9 = arrWaveButtons[_local4];
break;
}
_local4++;
}
if (\x18\n[_local9]._x > 0) {
\x18\n[_local9]._x = \x18\n[_local9]._x * 0.8;
}
if ((\x18\n[_local9]._x >= -1) && (\x18\n[_local9]._x <= 1)) {
0\x07();
\x18\n[_local9]._x = 0;
\x16\x07 = false;
9\x02 = \x04\x03;
\x18\n._parent.viewer_mc.gotoAndPlay(2);
7\n(9\x02);
}
var _local3 = \x18\n[_local9]._x;
_local4 = _local7 - 1;
while (_local4 >= 0) {
_local3 = _local3 - \x1A\x03;
\x18\n[arrWaveButtons[_local4]]._x = _local3;
if (\x18\n[arrWaveButtons[_local4]]._x <= 0) {
var _local5 = arrWaveButtons[_local4];
var _local6 = Number(_local5.substr(0, _local5.length - 7));
if (_local6 > 9\x02) {
9\x02 = _local6;
\x18\n._parent.viewer_mc.gotoAndPlay(2);
7\n(9\x02);
}
}
if (\x18\n[arrWaveButtons[_local4]]._x < -100) {
_local8.push(arrWaveButtons[_local4]);
}
_local4--;
}
_local3 = \x18\n[_local9]._x;
_local4 = _local7 + 1;
while (_local4 < arrWaveButtons.length) {
_local3 = _local3 + \x1A\x03;
\x18\n[arrWaveButtons[_local4]]._x = _local3;
_local4++;
}
_local3 = _local3 + \x1A\x03;
if (_local3 <= 360) {
var _local11 = arrWaveButtons[arrWaveButtons.length - 1];
var _local12 = Number(_local11.substr(0, _local11.length - 7)) + 1;
var _local10 = \x01\x02(_local12);
if (_local10 != null) {
_local10._x = _local3;
_local10._y = 0;
}
}
var _local2 = 0;
while (_local2 < _local8.length) {
%(_local8[_local2]);
_local2++;
}
}
function '() {
var _local7 = new Array();
var _local8 = \x1A\x03 / 3\n;
var _local6;
var _local2 = 0;
while (_local2 < arrWaveButtons.length) {
if (_local2 == 0) {
\x18\n[arrWaveButtons[_local2]]._x = \x18\n[arrWaveButtons[_local2]]._x - _local8;
_local6 = \x18\n[arrWaveButtons[_local2]]._x;
} else {
_local6 = _local6 + \x1A\x03;
\x18\n[arrWaveButtons[_local2]]._x = _local6;
}
if ((\x18\n[arrWaveButtons[_local2]]._x >= -1) && (\x18\n[arrWaveButtons[_local2]]._x <= 1)) {
var _local4 = arrWaveButtons[_local2];
var _local5 = Number(_local4.substr(0, _local4.length - 7));
if (_local5 > 9\x02) {
0\x07();
9\x02 = _local5;
\x04\x03 = 9\x02;
\x18\n._parent.viewer_mc.gotoAndPlay(2);
7\n(9\x02);
}
}
if (\x18\n[arrWaveButtons[_local2]]._x < -100) {
_local7.push(arrWaveButtons[_local2]);
}
_local2++;
}
_local6 = _local6 + \x1A\x03;
if (_local6 <= 360) {
var _local10 = arrWaveButtons[arrWaveButtons.length - 1];
var _local11 = Number(_local10.substr(0, _local10.length - 7)) + 1;
var _local9 = \x01\x02(_local11);
if (_local9 != null) {
_local9._x = _local6;
_local9._y = 0;
}
}
var _local3 = 0;
while (_local3 < _local7.length) {
%(_local7[_local3]);
_local3++;
}
}
function () {
if (arrEnemyQueue.length != 0) {
var _local3 = 0;
while (_local3 < arrEnemyQueue.length) {
if (arrEnemyQueue[_local3].intNextCounter <= 0) {
var _local4 = 1;
if (arrEnemyQueue[_local3].strType == "mix") {
_local4 = '\x06(1, 3);
} else if (arrEnemyQueue[_local3].strType == "greedy") {
_local4 = 1;
} else if (arrEnemyQueue[_local3].strType == "lusty") {
_local4 = 2;
} else if (arrEnemyQueue[_local3].strType == "thirsty") {
_local4 = 3;
} else if (arrEnemyQueue[_local3].strType == "fast") {
_local4 = 4;
} else if (arrEnemyQueue[_local3].strType == "strong") {
_local4 = 5;
} else if (arrEnemyQueue[_local3].strType == "captain") {
_local4 = 6;
}
_root.game.1\x04('\x06(1, 20), 28, _local4, arrEnemyQueue[_local3].dblLifeBonus);
arrEnemyQueue[_local3].intNum--;
if (arrEnemyQueue[_local3].intNum == 0) {
arrEnemyQueue.splice(_local3, 1);
_local3--;
} else {
arrEnemyQueue[_local3].intNextCounter = '\x06(4, 25);
}
} else {
arrEnemyQueue[_local3].intNextCounter--;
}
_local3++;
}
}
}
function 7
(_arg2) {
_arg2 = _arg2 - 1;
var _local5 = \x10\x07[_arg2].intNumber;
var _local3 = \x10\x07[_arg2].strType;
var _local4 = \x10\x07[_arg2].dblLifeBonus;
arrEnemyQueue.push({strType:_local3, intNum:_local5, dblLifeBonus:_local4, intNextCounter:0});
}
function SetupButtons() {
var _local4 = \x1A\x03;
var _local2 = 0;
while (_local2 < \x10\x07.length) {
var _local3 = \x01\x02(\x10\x07[_local2].intId);
_local3._x = _local4;
_local3._y = 0;
_local4 = _local4 + \x1A\x03;
if (_local2 >= 3) {
break;
}
_local2++;
}
}
function (_arg4) {
if (_arg4 > \x10\x07.length) {
return(null);
}
var _local3 = _arg4 + "wave_mc";
var _local2 = \x18\n.attachMovie("Wave_" + \x10\x07[_arg4 - 1].strType, _local3, \x03\x03);
_local2.wave_mc.gotoAndStop(\x10\x07[_arg4 - 1].intId);
_local2.cacheAsBitmap = true;
arrWaveButtons.push(_local3);
\x03\x03++;
return(_local2);
}
function %(_arg3) {
var _local2 = 0;
while (_local2 < arrWaveButtons.length) {
if (_arg3 == arrWaveButtons[_local2]) {
\x18\n[arrWaveButtons[_local2]].removeMovieClip();
arrWaveButtons.splice(_local2, 1);
break;
}
_local2++;
}
}
function () {
if (9\x02 == -1) {
_root.game["\x1E"] = true;
4\x0B = false;
9\x02 = 0;
\x04\x03 = 1;
\x16\x07 = true;
_global.SoundManager.PlaySound("start" + '\x06(1, 2), 100);
} else {
0\x07();
if ((\x04\x03 + 1) <= \x10\x07.length) {
\x04\x03 = \x04\x03 + 1;
\x16\x07 = true;
if ('\x06(0, 100) < 10) {
_global.SoundManager.PlaySound("start" + '\x06(1, 2), 100);
}
}
}
}
function
() {
if (arrEnemyQueue.length != 0) {
return(false);
}
if (9\x02 >= \x10\x07.length) {
return(true);
}
return(false);
}
function "() {
4\x0B = true;
}
function () {
4\x0B = false;
}
function ?(_arg2) {
\x03\f = _arg2;
\x12\x0B();
}
function () {
`\x07();
SetupButtons();
}
function `() {
if (_global.typetype == 12) {
3\n = 770;
\x10\x07.push({intId:1, strType:"mix", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"mix", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:5, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:6, strType:"greedy", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:7, strType:"lusty", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"thirsty", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"fast", intNumber:5, dblLifeBonus:1.5});
\x10\x07.push({intId:10, strType:"strong", intNumber:2, dblLifeBonus:1.5});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:12, strType:"mix", intNumber:5, dblLifeBonus:25});
\x10\x07.push({intId:13, strType:"greedy", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:14, strType:"lusty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:15, strType:"thirsty", intNumber:7, dblLifeBonus:3});
} else if (_global.typetype == 1) {
3\n = 770;
\x10\x07.push({intId:1, strType:"mix", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"mix", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:5, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:6, strType:"greedy", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:7, strType:"lusty", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:8, strType:"thirsty", intNumber:5, dblLifeBonus:1});
\x10\x07.push({intId:9, strType:"fast", intNumber:5, dblLifeBonus:1});
\x10\x07.push({intId:10, strType:"captain", intNumber:2, dblLifeBonus:0.9});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:12, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:13, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:14, strType:"lusty", intNumber:7, dblLifeBonus:1.5});
\x10\x07.push({intId:15, strType:"thirsty", intNumber:7, dblLifeBonus:1.5});
\x10\x07.push({intId:16, strType:"fast", intNumber:8, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"mix", intNumber:10, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"strong", intNumber:7, dblLifeBonus:2.25});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"fast", intNumber:7, dblLifeBonus:2.75});
\x10\x07.push({intId:22, strType:"strong", intNumber:7, dblLifeBonus:2.75});
\x10\x07.push({intId:23, strType:"greedy", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:24, strType:"captain", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:25, strType:"mix", intNumber:20, dblLifeBonus:3});
} else if (_global.typetype == 2) {
3\n = 600;
\x10\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 3) {
3\n = 500;
\x10\x07.push({intId:1, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:5, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.5});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.5});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:2});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:4});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:4});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:4});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:4});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:5});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:5});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:6});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:6});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:7});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:7});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:8});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:8});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:9});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:9});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:10});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:10});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:10});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:10});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:12});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:14});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:15});
} else if (_global.typetype == 4) {
Setup101Waves();
} else if (_global.typetype == 5) {
3\n = 600;
\x10\x07.push({intId:1, strType:"fast", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"fast", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"fast", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"fast", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"fast", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"fast", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"fast", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:20, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:22, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:23, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:25, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:26, strType:"fast", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:27, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:29, strType:"fast", intNumber:10, dblLifeBonus:2.5});
\x10\x07.push({intId:30, strType:"fast", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:31, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:32, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:33, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:35, strType:"fast", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:36, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:37, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:39, strType:"fast", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:40, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:41, strType:"fast", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:42, strType:"fast", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:43, strType:"fast", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
\x10\x07.push({intId:45, strType:"fast", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:46, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:48, strType:"fast", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:49, strType:"fast", intNumber:5, dblLifeBonus:9});
\x10\x07.push({intId:50, strType:"fast", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 6) {
3\n = 600;
\x10\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 7) {
\x10\x07.push({intId:1, strType:"mix", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"fast", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"lusty", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:5, strType:"thirsty", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:6, strType:"captain", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:7, strType:"strong", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:8, strType:"mix", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:9, strType:"fast", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:10, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:11, strType:"lusty", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:12, strType:"thirsty", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:13, strType:"captain", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:14, strType:"strong", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:15, strType:"mix", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:16, strType:"fast", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:17, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:18, strType:"lusty", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:19, strType:"thirsty", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:20, strType:"captain", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:21, strType:"strong", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:22, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:23, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:24, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:25, strType:"lusty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:26, strType:"thirsty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:27, strType:"captain", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:28, strType:"strong", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:29, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:30, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:31, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:32, strType:"lusty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:33, strType:"thirsty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:34, strType:"captain", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:35, strType:"strong", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:36, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:37, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:38, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:39, strType:"lusty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:40, strType:"thirsty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:41, strType:"captain", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:42, strType:"strong", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:43, strType:"mix", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:44, strType:"fast", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:45, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:46, strType:"lusty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:47, strType:"thirsty", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:48, strType:"captain", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:49, strType:"strong", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:50, strType:"thirsty", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:51, strType:"captain", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:52, strType:"strong", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:53, strType:"mix", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:54, strType:"fast", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:55, strType:"greedy", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:56, strType:"lusty", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:57, strType:"thirsty", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:58, strType:"captain", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:59, strType:"strong", intNumber:4, dblLifeBonus:1});
\x10\x07.push({intId:60, strType:"captain", intNumber:4, dblLifeBonus:1});
} else if (_global.typetype == 8) {
3\n = 600;
\x10\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 9) {
} else if (_global.typetype == 10) {
\x10\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 11) {
3\n = 500;
\x10\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
}
}
function Setup101Waves() {
\x10\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
\x10\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
\x10\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
\x10\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
\x10\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
\x10\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
\x10\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
\x10\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
\x10\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
\x10\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
\x10\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2.5});
\x10\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2.5});
\x10\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:3});
\x10\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:3});
\x10\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:3});
\x10\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:4});
\x10\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:4});
\x10\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:6});
\x10\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:6});
\x10\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:6});
\x10\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:6});
\x10\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:9});
\x10\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:9});
\x10\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:9});
\x10\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:9});
\x10\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:9});
\x10\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:12});
\x10\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:12});
\x10\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:12});
\x10\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:12});
\x10\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:14});
\x10\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:14});
\x10\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:14});
\x10\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:15});
\x10\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:15});
\x10\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:15});
\x10\x07.push({intId:51, strType:"greedy", intNumber:3, dblLifeBonus:17});
\x10\x07.push({intId:52, strType:"greedy", intNumber:3, dblLifeBonus:17});
\x10\x07.push({intId:53, strType:"greedy", intNumber:3, dblLifeBonus:17});
\x10\x07.push({intId:54, strType:"fast", intNumber:6, dblLifeBonus:17});
\x10\x07.push({intId:55, strType:"mix", intNumber:5, dblLifeBonus:17});
\x10\x07.push({intId:56, strType:"strong", intNumber:5, dblLifeBonus:20});
\x10\x07.push({intId:57, strType:"greedy", intNumber:5, dblLifeBonus:20});
\x10\x07.push({intId:58, strType:"greedy", intNumber:6, dblLifeBonus:20});
\x10\x07.push({intId:59, strType:"greedy", intNumber:7, dblLifeBonus:20});
\x10\x07.push({intId:60, strType:"captain", intNumber:4, dblLifeBonus:20});
\x10\x07.push({intId:61, strType:"mix", intNumber:5, dblLifeBonus:20});
\x10\x07.push({intId:62, strType:"fast", intNumber:5, dblLifeBonus:20});
\x10\x07.push({intId:63, strType:"strong", intNumber:5, dblLifeBonus:23});
\x10\x07.push({intId:64, strType:"thirsty", intNumber:5, dblLifeBonus:23});
\x10\x07.push({intId:65, strType:"lusty", intNumber:5, dblLifeBonus:23});
\x10\x07.push({intId:66, strType:"greedy", intNumber:5, dblLifeBonus:23});
\x10\x07.push({intId:67, strType:"mix", intNumber:5, dblLifeBonus:23});
\x10\x07.push({intId:68, strType:"fast", intNumber:5, dblLifeBonus:25});
\x10\x07.push({intId:69, strType:"strong", intNumber:5, dblLifeBonus:24});
\x10\x07.push({intId:70, strType:"captain", intNumber:5, dblLifeBonus:24});
\x10\x07.push({intId:71, strType:"thirsty", intNumber:7, dblLifeBonus:26});
\x10\x07.push({intId:72, strType:"lusty", intNumber:7, dblLifeBonus:26});
\x10\x07.push({intId:73, strType:"greedy", intNumber:7, dblLifeBonus:26});
\x10\x07.push({intId:74, strType:"fast", intNumber:7, dblLifeBonus:26});
\x10\x07.push({intId:75, strType:"mix", intNumber:7, dblLifeBonus:26});
\x10\x07.push({intId:76, strType:"strong", intNumber:5, dblLifeBonus:28});
\x10\x07.push({intId:77, strType:"greedy", intNumber:7, dblLifeBonus:28});
\x10\x07.push({intId:78, strType:"fast", intNumber:7, dblLifeBonus:28});
\x10\x07.push({intId:79, strType:"mix", intNumber:10, dblLifeBonus:28});
\x10\x07.push({intId:80, strType:"captain", intNumber:5, dblLifeBonus:28});
\x10\x07.push({intId:81, strType:"thirsty", intNumber:6, dblLifeBonus:30});
\x10\x07.push({intId:82, strType:"lusty", intNumber:6, dblLifeBonus:30});
\x10\x07.push({intId:83, strType:"greedy", intNumber:6, dblLifeBonus:30});
\x10\x07.push({intId:84, strType:"fast", intNumber:6, dblLifeBonus:30});
\x10\x07.push({intId:85, strType:"mix", intNumber:10, dblLifeBonus:30});
\x10\x07.push({intId:86, strType:"strong", intNumber:6, dblLifeBonus:32});
\x10\x07.push({intId:87, strType:"greedy", intNumber:6, dblLifeBonus:32});
\x10\x07.push({intId:88, strType:"fast", intNumber:6, dblLifeBonus:32});
\x10\x07.push({intId:89, strType:"mix", intNumber:10, dblLifeBonus:34});
\x10\x07.push({intId:90, strType:"captain", intNumber:6, dblLifeBonus:34});
\x10\x07.push({intId:91, strType:"thirsty", intNumber:6, dblLifeBonus:34});
\x10\x07.push({intId:92, strType:"lusty", intNumber:6, dblLifeBonus:34});
\x10\x07.push({intId:93, strType:"greedy", intNumber:6, dblLifeBonus:36});
\x10\x07.push({intId:94, strType:"fast", intNumber:7, dblLifeBonus:36});
\x10\x07.push({intId:95, strType:"mix", intNumber:10, dblLifeBonus:36});
\x10\x07.push({intId:96, strType:"strong", intNumber:5, dblLifeBonus:38});
\x10\x07.push({intId:97, strType:"fast", intNumber:5, dblLifeBonus:38});
\x10\x07.push({intId:98, strType:"strong", intNumber:5, dblLifeBonus:40});
\x10\x07.push({intId:99, strType:"captain", intNumber:5, dblLifeBonus:40});
\x10\x07.push({intId:100, strType:"mix", intNumber:15, dblLifeBonus:40});
\x10\x07.push({intId:101, strType:"captain", intNumber:3, dblLifeBonus:60});
}
function (_arg2) {
\x18\n = _arg2;
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1415 MovieClip [__Packages.EffectsEngine] Frame 0
class
{
var , <, ;
function () {
\x0E\x04 = new Array();
<\x02 = new Array();
\x0F\f = new Array();
}
function +(_arg9, _arg4, _arg3) {
var _local2 = "Effects_Layer_" + _arg3;
_arg4.createEmptyMovieClip(_local2, _arg3);
\x0E\x04.push({layerName:_arg9, container:_arg4, clipName:_local2, intDepth:1000});
return(_local2);
}
function () {
var _local2 = 0;
while (_local2 < <\x02.length) {
if (<\x02[_local2].blnLocked == true) {
<\x02[_local2].clipRef._x = <\x02[_local2].targetClip._x;
<\x02[_local2].clipRef._y = <\x02[_local2].targetClip._y;
}
if (<\x02[_local2].rotateClip != null) {
if (<\x02[_local2].clipRef._parent._name == <\x02[_local2].rotateClip._parent._name) {
var _local3 = new 3\x06();
_local3._x = <\x02[_local2].clipRef._x;
_local3._y = <\x02[_local2].clipRef._y;
var _local4 = new 3\x06();
_local4._x = <\x02[_local2].rotateClip._x - _local3._x;
_local4._y = <\x02[_local2].rotateClip._y - _local3._y;
var _local5 = Math.atan2(_local4._y, _local4._x);
var _local6 = (360 * _local5) / (Math.PI*2);
<\x02[_local2].clipRef._rotation = _local6;
}
}
_local2++;
}
}
function CreateEffect(_arg18, _arg13, _arg17, _arg16, _arg14, _arg15, _arg19) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < \x0E\x04.length) {
if (\x0E\x04[_local2].layerName == _arg13) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 == -1) {
return(null);
}
var _local6 = \x0E\x04[_local3].container;
var _local5 = (("effect_" + _arg13) + "_") + \x0E\x04[_local3].intDepth;
_local6[\x0E\x04[_local3].clipName].attachMovie(_arg18, _local5, \x0E\x04[_local3].intDepth);
var _local4 = _local6[\x0E\x04[_local3].clipName][_local5];
_local4._x = _arg17;
_local4._y = _arg16;
<\x02.push({name:_local5, layerName:_arg13, clipRef:_local4, clipName:\x0E\x04[_local3].clipName, blnLocked:_arg14, targetClip:_arg15, rotateClip:_arg19});
\x0E\x04[_local3].intDepth++;
if (\x0E\x04[_local3].intDepth > 5000) {
\x0E\x04[_local3].intDepth = 1000;
}
return(_local4);
}
function () {
var _local2 = 0;
while (_local2 < <\x02.length) {
<\x02[_local2].clipRef.removeMovieClip();
_local2++;
}
delete <\x02;
<\x02 = new Array();
}
function RemoveEffect(_arg3) {
var _local2 = 0;
while (_local2 < <\x02.length) {
if (_arg3 == <\x02[_local2].name) {
<\x02[_local2].clipRef.removeMovieClip();
<\x02.splice(_local2, 1);
break;
}
_local2++;
}
}
function
() {
var _local2 = 0;
while (_local2 < <\x02.length) {
<\x02[_local2].clipRef.stop();
_local2++;
}
}
function ]() {
var _local2 = 0;
while (_local2 < <\x02.length) {
<\x02[_local2].clipRef.play();
_local2++;
}
}
function 2(_arg10, _arg12, _arg13, _arg5, _arg6, _arg2, _arg9, _arg11) {
\x0F\f.push({strShortcutName:_arg10, strLibName:_arg12, strLayerName:_arg13, blnRandSize:_arg5, intMinSize:_arg6, intMaxSize:_arg2, blnRandRotation:_arg9, blnConvertCoords:_arg11});
}
function (_arg11, _arg8, _arg7) {
var _local4 = null;
var _local2 = 0;
while (_local2 < \x0F\f.length) {
if (\x0F\f[_local2].strShortcutName == _arg11) {
if (\x0F\f[_local2].blnConvertCoords == true) {
var _local6 = {x:_arg8, y:_arg7};
var _local5 = -1;
var _local3 = 0;
while (_local3 < \x0E\x04.length) {
if (\x0E\x04[_local3].layerName == \x0F\f[_local2].strLayerName) {
_local5 = _local3;
break;
}
_local3++;
}
if (_local5 != -1) {
\x0E\x04[_local3].container.globalToLocal(_local6);
_arg8 = _local6.x;
_arg7 = _local6.y;
}
}
_local4 = CreateEffect(\x0F\f[_local2].strLibName, \x0F\f[_local2].strLayerName, _arg8, _arg7, false, null, null);
if (_local4 != null) {
if (\x0F\f[_local2].blnRandSize == true) {
_local4._xscale = (_local4._yscale = '\x06(\x0F\f[_local2].intMinSize, \x0F\f[_local2].intMaxSize));
}
if (\x0F\f[_local2].blnRandRotation == true) {
_local4._rotation = '\x06(0, 360);
}
}
break;
}
_local2++;
}
return(_local4);
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1416 MovieClip [__Packages.Vector] Frame 0
class 3
{
var _x, _y;
function 3 () {
_x = 0;
_y = 0;
}
function (_arg2) {
_x = _x + _arg2._x;
_y = _y + _arg2._y;
}
function (_arg2) {
_x = _x * _arg2;
_y = _y * _arg2;
}
function () {
var _local2 = (_x * _x) + (_y * _y);
return(Math.sqrt(_local2));
}
function () {
var _local2 = \x0B\x02();
if (_local2 != 0) {
_x = _x / _local2;
_y = _y / _local2;
}
}
function
() {
var _local2 = Math.atan2(_y, _x);
var _local3 = (360 * _local2) / (Math.PI*2);
return(_local3);
}
function 0(_arg2) {
_arg2 = (_arg2 * Math.PI) / 180;
_x = Math.cos(_arg2) * 1;
_y = Math.sin(_arg2) * 1;
}
function (_arg2, _arg3) {
0\x03(_arg2);
\x03(_arg3);
}
function (_arg4, _arg8, _arg7) {
var _local5 = 0;
var _local2 = \x0F\n();
var _local3 = 0;
var _local6 = "";
if (_arg4 >= 0) {
_local5 = _arg4 - 180;
if ((_local2 < _arg4) && (_local2 > _local5)) {
_local3 = (-_arg7) * _arg8;
_local6 = _local6 + (((((" AAA " + _arg4) + " ") + _local2) + " ") + _local3);
if ((_local2 - _arg4) > _local3) {
_local3 = _local2 - _arg4;
}
} else {
_local3 = _arg7 * _arg8;
_local6 = _local6 + (((((" BBB " + _arg4) + " ") + _local2) + " ") + _local3);
if (_local2 >= 0) {
if (_local2 != _local5) {
if ((_local2 - _arg4) < _local3) {
_local3 = _local2 - _arg4;
}
}
}
}
} else {
_local5 = _arg4 + 180;
if ((_local2 < _local5) && (_local2 > _arg4)) {
_local3 = _arg7 * _arg8;
_local6 = _local6 + (((((" CCC " + _arg4) + " ") + _local2) + " ") + _local3);
if ((_local2 - _arg4) < _local3) {
_local3 = _local2 - _arg4;
}
} else {
_local3 = (-_arg7) * _arg8;
_local6 = _local6 + (((((" DDD " + _arg4) + " ") + _local2) + " ") + _local3);
if (_local2 < 0) {
if ((_local2 - _arg4) > _local3) {
_local3 = _local2 - _arg4;
}
}
}
}
if (Math.abs(_local3) > 30) {
} else if (_local2 == 0) {
}
return(_local3);
}
function )() {
}
}
Symbol 1417 MovieClip [__Packages.NotificationsEngine] Frame 0
class [
{
var , %, !, !, @, ;
function [ (_arg2, _arg3) {
\f = new Array();
%\x0B = new Array();
!\x05 = _arg2.createEmptyMovieClip("notificationsEngine_mc", _arg3);
!\x0B = _arg2._width / 2;
!\x05._x = !\x0B;
@\x06 = 100;
\x01\x03 = 200000 /* 0x030D40 */;
}
function () {
var _local2 = 0;
while (_local2 < \f.length) {
if (!\x05[\f[_local2].strName]._y < \f[_local2].intTargetY) {
var _local3 = (\f[_local2].intTargetY - !\x05[\f[_local2].strName]._y) * 0.25;
!\x05[\f[_local2].strName]._y = !\x05[\f[_local2].strName]._y + _local3;
if (!\x05[\f[_local2].strName]._y > \f[_local2].intTargetY) {
!\x05[\f[_local2].strName]._y = \f[_local2].intTargetY;
}
if (\f[_local2].intCounter <= 10) {
!\x05[\f[_local2].strName]._alpha = !\x05[\f[_local2].strName]._alpha - 10;
}
}
\f[_local2].intCounter = \f[_local2].intCounter - 1;
if (\f[_local2].intCounter <= 0) {
!\x05[\f[_local2].strName].removeMovieClip();
\f.splice(_local2, 1);
_local2--;
}
_local2++;
}
_local2 = 0;
while (_local2 < %\x0B.length) {
if (!\x05[%\x0B[_local2].strName]._y < %\x0B[_local2].intTargetY) {
var _local3 = (%\x0B[_local2].intTargetY - !\x05[%\x0B[_local2].strName]._y) * 0.25;
!\x05[%\x0B[_local2].strName]._y = !\x05[%\x0B[_local2].strName]._y + _local3;
if (!\x05[%\x0B[_local2].strName]._y > %\x0B[_local2].intTargetY) {
!\x05[%\x0B[_local2].strName]._y = %\x0B[_local2].intTargetY;
}
if (%\x0B[_local2].intCounter <= 10) {
!\x05[%\x0B[_local2].strName]._alpha = !\x05[%\x0B[_local2].strName]._alpha - 10;
}
}
%\x0B[_local2].intCounter = %\x0B[_local2].intCounter - 1;
if (%\x0B[_local2].intCounter <= 0) {
!\x05[%\x0B[_local2].strName].removeMovieClip();
%\x0B.splice(_local2, 1);
_local2--;
}
_local2++;
}
}
function =(_arg12, _arg11) {
if (%\x0B.length > 0) {
return(undefined);
}
var _local6 = "noti_" + @\x06;
var _local3 = !\x05.attachMovie("notification", _local6, @\x06);
_local3._y = -10;
_local3.inside_txt.text = _arg12;
_local3.inside_txt.textColor = _arg11;
var _local2 = 0;
while (_local2 < \f.length) {
\f[_local2].intTargetY = \f[_local2].intTargetY + 12;
_local2++;
}
var _local4 = 15;
var _local5 = false;
if (%\x0B.length > 0) {
_local4 = _local4 + !\x05[%\x0B[0].strName]._height;
_local5 = true;
}
\f.push({strName:_local6, intTargetY:_local4, intCounter:65, blnBumped:_local5});
@\x06++;
if (\f.length > 5) {
!\x05[\f[0].strName].removeMovieClip();
\f.shift();
}
}
function 9(_arg5) {
if (%\x0B.length > 0) {
return(undefined);
}
var _local4 = "noti_" + \x01\x03;
var _local3 = !\x05.attachMovie("notification", _local4, \x01\x03);
_local3._y = -25;
if (_arg5 == 20) {
_local3.gotoAndStop(11);
} else if (_arg5 < 11) {
_local3.gotoAndStop(_arg5);
}
var _local2 = 0;
while (_local2 < \f.length) {
if (\f[_local2].blnBumped == false) {
\f[_local2].intTargetY = \f[_local2].intTargetY + _local3._height;
\f[_local2].blnBumped = true;
}
_local2++;
}
%\x0B.push({strName:_local4, intTargetY:20, intCounter:80});
\x01\x03++;
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1418 MovieClip [__Packages.Tutorial] Frame 0
class Tutorial
{
var , 8, tIndex, ;
function Tutorial () {
\x0B\x0B = 201000 /* 0x031128 */;
8\x06 = false;
tIndex = 0;
\x1C\x04 = new Array();
\x1C\x04.push({name:"Tmc_0", mc:"tut_starter", xLoc:163, yLoc:235});
\x1C\x04.push({name:"cur_t", mc:"tut_interface1", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface2", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface3", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface4", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface5", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface6", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface6.1", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface7", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface8", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface7.1", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface9", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface10", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface11", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface12", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface13", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface14", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface15", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface16", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface17", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface18", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface19", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface20", xLoc:227, yLoc:14});
\x1C\x04.push({name:"cur_t", mc:"tut_interface21", xLoc:227, yLoc:14});
}
function CreateNextObject() {
!();
if (tIndex < \x1C\x04.length) {
_root.attachMovie(\x1C\x04[tIndex].mc, \x1C\x04[tIndex].name, \x0B\x0B);
_root[\x1C\x04[tIndex].name]._x = \x1C\x04[tIndex].xLoc;
_root[\x1C\x04[tIndex].name]._y = \x1C\x04[tIndex].yLoc;
tIndex++;
} else {
Finish();
}
}
function CreatePreviousObject() {
!();
tIndex = tIndex - 2;
if (tIndex >= 0) {
_root.attachMovie(\x1C\x04[tIndex].mc, \x1C\x04[tIndex].name, \x0B\x0B);
_root[\x1C\x04[tIndex].name]._x = \x1C\x04[tIndex].xLoc;
_root[\x1C\x04[tIndex].name]._y = \x1C\x04[tIndex].yLoc;
tIndex++;
} else {
tIndex = 0;
_root.attachMovie(\x1C\x04[tIndex].mc, \x1C\x04[tIndex].name, \x0B\x0B);
_root[\x1C\x04[tIndex].name]._x = \x1C\x04[tIndex].xLoc;
_root[\x1C\x04[tIndex].name]._y = \x1C\x04[tIndex].yLoc;
tIndex++;
}
}
function FlagIt() {
8\x06 = true;
}
function Skip() {
tIndex = 1;
}
function Finish() {
\x0B\n();
_root.game. \x0B();
if (8\x06) {
_root.game.\x1F\x04();
8\x06 = false;
}
tIndex = 0;
}
function !() {
_root[\x1C\x04[tIndex - 1].name].removeMovieClip();
}
function
() {
var _local3 = 0;
while (_local3 < \x1C\x04.length) {
_root[\x1C\x04[_local3].name].removeMovieClip();
_local3++;
}
tIndex = 0;
}
}
Symbol 1419 MovieClip [__Packages.ToolTip] Frame 0
class
{
var curSec,
,
, +, 1, 2,
, , , , 8
, <
, ;
function (_arg7) {
curSec = 0;
\r = -1;
\x05\n = _arg7;
+\x0B = "tip_" + _arg7;
1\x0B = new Array();
2\x07 = new Array();
2\x07.push({xLoc:179, yLoc:465, mc:"tt1_1", visited:false});
1\x0B.push({arr:2\x07});
\r\x02 = new Array();
\r\x02.push({xLoc:178, yLoc:97, mc:"tt2_1", visited:false});
1\x0B.push({arr:\r\x02});
this["?\x04"] = new Array();
this["?\x04"].push({xLoc:172, yLoc:192, mc:"tt3_1", visited:false});
1\x0B.push({arr:this["?\x04"]});
\x12\x04 = new Array();
\x12\x04.push({xLoc:98, yLoc:203, mc:"tt4_1", visited:false});
1\x0B.push({arr:\x12\x04});
\x10\f = new Array();
\x10\f.push({xLoc:98, yLoc:203, mc:"tt5_1", visited:false});
1\x0B.push({arr:\x10\f});
\x10\x04 = new Array();
\x10\x04.push({xLoc:97, yLoc:438, mc:"tt6_1", visited:false});
\x10\x04.push({xLoc:97, yLoc:438, mc:"tt6_2", visited:false});
\x10\x04.push({xLoc:97, yLoc:438, mc:"tt6_3", visited:false});
1\x0B.push({arr:\x10\x04});
8\n = new Array();
8\n.push({xLoc:96, yLoc:200, mc:"tt7_1", visited:false});
1\x0B.push({arr:8\n});
<\n = new Array();
<\n.push({xLoc:96, yLoc:200, mc:"tt8_1", visited:false});
<\n.push({xLoc:96, yLoc:200, mc:"tt8_2", visited:false});
1\x0B.push({arr:<\n});
\x07\x06 = new Array();
\x07\x06.push({xLoc:98, yLoc:95, mc:"tt9_1", visited:false});
1\x0B.push({arr:\x07\x06});
}
function #() {
var _local2 = 0;
while (_local2 < 1\x0B.length) {
var _local3 = 1\x0B[_local2].arr;
_local3[0].visited = false;
_local2++;
}
}
function () {
var _local2 = 0;
while (_local2 < 1\x0B.length) {
var _local3 = 1\x0B[_local2].arr;
_local3[0].visited = true;
_local2++;
}
}
function ;() {
var _local2 = 1\x0B[curSec - 1].arr;
_local2[0].visited = true;
1\x0B[curSec - 1].arr = _local2;
}
function (_arg3) {
var _local2 = 1\x0B[_arg3 - 1].arr;
if (_local2[0].visited == true) {
return(true);
}
return(false);
}
function 5
(_arg5) {
var _local4 = 1\x0B[_arg5 - 1].arr;
_global.toolTipSection = (curSec = _arg5);
\x06\x0B();
\r++;
if (\r > (_local4.length - 1)) {
CleanGroup();
} else {
_root.attachMovie(_local4[\r].mc, +\x0B, \x05\n);
_root[+\x0B]._x = _local4[\r].xLoc;
_root[+\x0B]._y = _local4[\r].yLoc;
}
}
function 5(_arg4) {
var _local3 = 1\x0B[_arg4 - 1].arr;
curSec = _arg4;
\x06\x0B();
\r = \r - 2;
if (\r < 0) {
\r = 0;
}
_root.attachMovie(_local3[\r].mc, +\x0B, \x05\n);
_root[+\x0B]._x = _local3[\r].xLoc;
_root[+\x0B]._y = _local3[\r].yLoc;
}
function () {
_root[+\x0B].removeMovieClip();
}
function !() {
\x06\x0B();
;\x02();
\r = -1;
_global.tutorialPrompt = true;
_root.game[">\x02"].Skip();
_root.game.\x0B\f();
}
function CleanGroup() {
\x06\x0B();
;\x02();
\r = -1;
_root.game. \x0B();
_root.game.\x07\f(curSec);
}
}
Symbol 1420 MovieClip [__Packages.Doodad] Frame 0
class extends MovieClip
{
var _libName, _dim, _type;
function () {
super();
5\x02();
}
function 5() {
_libName = "Doodad_0";
_dim = 20;
_type = 0;
}
}
Symbol 1421 MovieClip [__Packages.Doodad_301] Frame 0
class Doodad_301 extends
{
var _libName, _dim, _type;
function Doodad_301 () {
super();
}
function 5() {
_libName = "bush1";
_dim = 20;
_type = 301;
}
}
Symbol 1422 MovieClip [__Packages.Doodad_302] Frame 0
class Doodad_302 extends
{
var _libName, _dim, _type;
function Doodad_302 () {
super();
}
function 5() {
_libName = "bush2";
_dim = 20;
_type = 302;
}
}
Symbol 1423 MovieClip [__Packages.Doodad_303] Frame 0
class Doodad_303 extends
{
var _libName, _dim, _type;
function Doodad_303 () {
super();
}
function 5() {
_libName = "rock1";
_dim = 20;
_type = 303;
}
}
Symbol 1424 MovieClip [__Packages.Doodad_304] Frame 0
class Doodad_304 extends
{
var _libName, _dim, _type;
function Doodad_304 () {
super();
}
function 5() {
_libName = "bush3";
_dim = 20;
_type = 304;
}
}
Symbol 1425 MovieClip [__Packages.Tower] Frame 0
class 6 extends MovieClip
{
var _arrLinks, ^,
, _blnOff, , _bam, ^, , _startOver, _libName, _dim, _type, _linkable,
, , _rRange, _rRange2, _damage, _upgrades, inner, _name, _timerRef, _x, _y, gotoAndStop, gotoAndPlay, barrel, _targetPirate, _xmouse, _ymouse;
function 6 () {
super();
_arrLinks = new Array();
^\x03 = new Array();
\n\x03 = new Array();
_blnOff = false;
\x02\x03 = false;
_bam = false;
^\x04 = true;
\x10 = 0;
_startOver = false;
5\x02();
}
function 5() {
_libName = "Tower_0";
_dim = 20;
_type = 1;
_linkable = true;
\n\x07 = 1;
\x11\x07 = 50;
_rRange = 0;
_rRange2 = 0;
_damage = 0;
_upgrades = 0;
}
function () {
if (_blnOff == false) {
if (_type == 1) {
TargetClosestEnemy();
} else if (_type == 2) {
} else if (_type == 3) {
]();
,\x07();
}
}
}
function ,() {
var 2\n = inner;
if (\x10 > 0) {
if (\x10 == \x11\x07) {
if ('\x06(0, 100) < 80) {
if (_libName == "Tower_407") {
_global.SoundManager.PlaySound("beehive", 100);
} else if (_libName == "Tower_404") {
_global.SoundManager.PlaySound("tree", 100);
} else if (_libName == "Tower_405") {
_global.SoundManager.PlaySound("logroll", 100);
}
}
if (_libName == "Tower_406") {
_global.SoundManager.PlaySound("explosives", 100);
}
}
if ((((_libName == "Tower_415") || (_libName == "Tower_407")) || (_libName == "Tower_416")) || (_libName == "Tower_414")) {
^\x03 = _root.game.0\x04(_name);
var (\x03 = 0;
while ((\x03 < ^\x03.length) {
if (_libName == "Tower_415") {
^\x03[(\x03].DamageEnemy(_damage, 8);
} else if (_libName == "Tower_407") {
^\x03[(\x03].DamageEnemy(_damage, 9);
} else if (_libName == "Tower_416") {
^\x03[(\x03].DamageEnemy(_root.game.towerSetup.arrTowerSetup[15].damage2, 10);
}
(\x03++;
}
}
_timerRef.gotoAndStop(100);
if (^\x04 == true) {
_timerRef = _root.game["3\x03"].CreateEffect("reload_clock", "game", _x, _y, false, null, null);
^\x04 = false;
}
_timerRef.gotoAndStop(Math.round((\x10 / \x11\x07) * 100));
_timerRef._visible = true;
_bam = false;
\x10--;
if ((_libName == "Tower_403") || (_libName == "Tower_404")) {
if ((\x10 > 0) && (\x10 < 3)) {
2\n.gotoAndPlay("reset");
}
} else if (_libName == "Tower_406") {
if ((\x10 > 0) && (\x10 < 3)) {
gotoAndStop("dynReset");
}
} else if (_libName == "Tower_414") {
if ((\x10 > 0) && (\x10 < 3)) {
gotoAndStop("pitReset");
}
} else if (_libName == "Tower_415") {
if ((\x10 > 0) && (\x10 < 3)) {
gotoAndStop("pondReset");
}
} else if (_libName == "Tower_407") {
if ((\x10 > 0) && (\x10 < 3)) {
2\n.gotoAndStop("off");
}
} else if (_libName == "Tower_416") {
if ((\x10 > 0) && (\x10 < 3)) {
2\n.gotoAndStop("off");
}
} else if (_libName == "Tower_417") {
if ((\x10 > 0) && (\x10 < 3)) {
gotoAndStop("off");
}
} else if ((\x10 > 0) && (\x10 < 3)) {
gotoAndPlay("reset");
}
if ((\x10 > 0) && (\x10 < 3)) {
_startOver = true;
}
} else {
if (_startOver == true) {
_startOver = false;
var (\x03 = 0;
while ((\x03 < ^\x03.length) {
if (_libName == "Tower_414") {
^\x03[(\x03].DamageEnemy(_damage, 7);
^\x03[(\x03].2\x06(1);
} else if (_libName == "Tower_415") {
^\x03[(\x03].2\x06(1);
}
(\x03++;
}
}
_timerRef._visible = false;
if (_bam == true) {
delete ^\x03;
^\x03 = new Array();
if (_libName == "Tower_406") {
var 2\x04 = _root.game["3\x03"].CreateEffect("damageExplosionSmall", "game", _x + 20, _y + 20, false, null, null);
2\x04._xscale = _rRange * 2;
2\x04._yscale = _rRange * 2;
_root.game.\x16\x02(_name, _rRange, _damage);
gotoAndStop("dynBam");
} else if (_libName == "Tower_407") {
2\n.gotoAndStop("on");
} else if (_libName == "Tower_402") {
_global.SoundManager.PlaySound("logswing", 60);
gotoAndPlay("trigger");
} else if (_libName == "Tower_403") {
_global.SoundManager.PlaySound("logswing", 60);
2\n.gotoAndPlay("trigger");
} else if (_libName == "Tower_404") {
2\n.gotoAndPlay("trigger");
} else if (_libName == "Tower_405") {
gotoAndPlay("trigger");
\x19\x06(1);
\x19\x06(2);
\x19\x06(3);
} else if (_libName == "Tower_414") {
gotoAndStop("pitBam");
} else if (_libName == "Tower_415") {
gotoAndStop("pondBam");
} else if (_libName == "Tower_416") {
2\n.gotoAndPlay("heat");
}
_bam = false;
\x10 = \x11\x07;
}
}
}
function (whichLog) {
var emitterRef = eval ("this.emitter" + whichLog);
var \x02\f = ("Bullet_" + _root.game["\x14\n"]);
var 6 = {x:emitterRef._x, y:emitterRef._y};
emitterRef.localToGlobal(6);
_root["\x19\x02"].GAMEBOX.globalToLocal(6);
_root["\x19\x02"].GAMEBOX.attachMovie("Bullet5", \x02\f, _root.game["\x14\n"]);
_root["\x19\x02"].GAMEBOX[\x02\f]._x = 6.x;
_root["\x19\x02"].GAMEBOX[\x02\f]._y = 6.y;
_root["\x19\x02"].GAMEBOX[\x02\f].\x1E\x05(_root.game.'\x04(_x), _root.game.'\x04(_y));
_root["\x19\x02"].GAMEBOX[\x02\f]._enTarget = null;
_root["\x19\x02"].GAMEBOX[\x02\f]["%\x05"] = false;
_root["\x19\x02"].GAMEBOX[\x02\f]._rotation = 90;
_root.game["\x19\n"].push(\x02\f);
_root.game["\x14\n"]++;
if (_root.game["\x14\n"] > 89999) {
_root.game["\x14\n"] = 80000 /* 0x013880 */;
}
}
function "() {
if (\x10 > 0) {
\x10--;
} else {
var ( = barrel;
var \x02\f = ("Bullet_" + _root.game["\x14\n"]);
var 6 = {x:(.emitter._x, y:(.emitter._y};
(.localToGlobal(6);
_root["\x19\x02"].GAMEBOX.globalToLocal(6);
_root["\x19\x02"].GAMEBOX.attachMovie("Bullet" + \n\x07, \x02\f, _root.game["\x14\n"]);
_root["\x19\x02"].GAMEBOX[\x02\f]._x = 6.x;
_root["\x19\x02"].GAMEBOX[\x02\f]._y = 6.y;
_root["\x19\x02"].GAMEBOX[\x02\f]._enTarget = _targetPirate;
_root["\x19\x02"].GAMEBOX[\x02\f]["%\x05"] = true;
_root.game.arrBullets.push(\x02\f);
_root.game["\x14\n"]++;
if (_root.game["\x14\n"] > 89999) {
_root.game["\x14\n"] = 80000 /* 0x013880 */;
}
\x10 = \x11\x07;
if (\n\x07 == 1) {
_global.SoundManager.PlaySound("spear", 50);
} else if (\n\x07 == 3) {
_global.SoundManager.PlaySound("rifle", 15);
}
}
}
function (_arg5, _arg6) {
if (_arg6 == true) {
var _local4 = (_x + (_dim / 2)) - _root["\x19\x02"].GAMEBOX._xmouse;
var _local3 = (_y + (_dim / 2)) - _root["\x19\x02"].GAMEBOX._ymouse;
return(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
}
var _local4 = (_x + (_dim / 2)) - _arg5._x;
var _local3 = (_y + (_dim / 2)) - _arg5._y;
return(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
}
function !(_arg3) {
var _local4 = (_x + (_dim / 2)) - (_arg3._x + (_arg3._dim / 2));
var _local2 = (_y + (_dim / 2)) - (_arg3._y + (_arg3._dim / 2));
return(Math.sqrt((_local4 * _local4) + (_local2 * _local2)));
}
function TargetClosestEnemy() {
if (\x02\x03 == false) {
\x02\x03 = _root.game.`(_name);
} else if (_root.game.4\x06(_targetPirate._name)) {
\"\x06();
if (\x0E\x0B(_targetPirate, false) >= _rRange) {
\x02\x03 = false;
} else {
-\n(_targetPirate, false);
}
} else {
\x02\x03 = false;
}
}
function -
((\u0004, 7\u0007) {
if (_type == 1) {
var ( = barrel;
var #\x07 = new 3\x06();
var myRadians;
var myDegrees;
if (7\x07 == true) {
#\x07._x = (._x - _xmouse;
#\x07._y = (._y - _ymouse;
myRadians = Math.atan2(#\x07._y, #\x07._x);
myDegrees = (360 * myRadians) / (Math.PI*2);
(._rotation = myDegrees;
} else {
var myPoint = {x:(._x, y:(._y};
(._parent.localToGlobal(myPoint);
_root["\x19\x02"].GAMEBOX.globalToLocal(myPoint);
#\x07._x = (\x04._x - myPoint.x;
#\x07._y = (\x04._y - myPoint.y;
myRadians = Math.atan2(#\x07._y, #\x07._x);
myDegrees = (360 * myRadians) / (Math.PI*2);
(._rotation = myDegrees;
}
}
}
function <() {
if (_blnOff == false) {
var _local3 = 0;
while (_local3 < _arrLinks.length) {
if (_type == 1) {
} else if (_type == 2) {
if (_root["\x19\x02"].GAMEBOX[_arrLinks[_local3]]._type == 1) {
} else {
_root["\x19\x02"].GAMEBOX[_arrLinks[_local3]]._bam = true;
_root["\x19\x02"].GAMEBOX[_arrLinks[_local3]].<\x04();
}
} else if (_type == 3) {
var _local5 = true;
var _local4 = 0;
while (_local4 < \n\x03.length) {
if (_arrLinks[_local3] == \n\x03[_local4].whichTower) {
_local5 = false;
}
_local4++;
}
if (_local5) {
\n\x03.push({countDown:Math.floor(!\f(_root["\x19\x02"].GAMEBOX[_arrLinks[_local3]]) / 5), whichTower:_arrLinks[_local3]});
}
}
_local3++;
}
}
}
function ]() {
var _local3 = 0;
while (_local3 < \n\x03.length) {
\n\x03[_local3].countDown--;
if (\n\x03[_local3].countDown <= 0) {
_root["\x19\x02"].GAMEBOX[\n\x03[_local3].whichTower]._bam = true;
_root["\x19\x02"].GAMEBOX[\n\x03[_local3].whichTower].<\x04();
\n\x03.splice(_local3, 1);
_local3--;
}
_local3++;
}
}
function '
(_arg4) {
if (_blnOff == false) {
var _local3 = 0;
while (_local3 < _arrLinks.length) {
if (_arrLinks[_local3] == _arg4) {
return(true);
}
if (_root["\x19\x02"].GAMEBOX[_arrLinks[_local3]].'\n(_arg4) == true) {
return(true);
}
_local3++;
}
return(false);
}
return(true);
}
function &
(_arg3) {
if (_blnOff == false) {
var _local2 = 0;
while (_local2 < _arrLinks.length) {
if (_arrLinks[_local2] == _arg3) {
_arrLinks.splice(_local2, 1);
}
_local2++;
}
}
}
function () {
delete _arrLinks;
_arrLinks = new Array();
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1426 MovieClip [__Packages.Tower_401] Frame 0
class Tower_401 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, ,
, _upgrades;
function Tower_401 () {
super();
}
function 5() {
_libName = "Tower_401";
_dim = _root.game.towerSetup.arrTowerSetup[0].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[0].type;
_linkable = _root.game.towerSetup.arrTowerSetup[0].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[0].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[0].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[0].reload;
\n\x07 = 1;
_upgrades = _root.game.towerSetup.arrTowerSetup[0].upgradeType;
}
}
Symbol 1427 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends MovieClip
{
var , bHit, _arrLogPath, , -, , ', %, <, _x, _y, _width, _enTarget, _name, , , gotoAndPlay, _rotation;
function Bullet () {
super();
\x04\x0B = bHit;
_arrLogPath = new Array();
\x17\x05 = null;
-\x06 = null;
5\x02();
}
function 5() {
\x10\x0B = 0;
'\x03 = 3;
%\x05 = false;
<\x07 = 5;
}
function () {
>();
}
function (_arg4, _arg5) {
var _local3 = _x - _arg4;
var _local2 = _y - _arg5;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function >() {
if (%\x05 == true) {
if (\x0E\x0B(_enTarget._x, _enTarget._y) < (_width - 3)) {
if ((\x10\x0B == 2) || (\x10\x0B == 3)) {
var _local4 = _root.game["3\x03"].CreateEffect("damageExplosionSmall", "game", _x, _y, false, null, null);
_local4._xscale = (_local4._yscale = (\x10\x0B * 10) * 2);
_global.SoundManager.PlaySound("coconut", 25);
_root.game.\x12\x03(_name, \x10\x0B * 10, 0.2 * <\x07, \x10\x0B);
}
%\x05 = false;
_enTarget.DamageEnemy(<\x07, \x10\x0B);
_root.game.RemoveBullet(_name);
} else {
9\x06();
_x = _x + \x04\x06;
_y = _y + \x02\x0B;
}
} else if (\x10\x0B == 4) {
if ((\x17\x05 != null) && (\x17\x05 != undefined)) {
if (\x17\x05 == 0) {
gotoAndPlay("fadeOut");
\x17\x05 = null;
\x10\x0B = 9000;
} else if (_y > \x17\x05) {
gotoAndPlay("fadeOut");
\x17\x05 = null;
\x10\x0B = 9000;
} else {
_root.game.\x0E(_name);
\x11();
_x = _x + \x04\x06;
_y = _y + \x02\x0B;
if (_root.game.map.TriggerCheck(_root.game.'\x04(_x), _root.game.'\x04(_y))) {
_root.game.\x10\n(_name);
}
}
}
} else if (\x10\x0B == 9000) {
gotoAndPlay("fadeOut");
\x10\x0B = 100;
}
}
function (_arg5, _arg4) {
var _local3 = false;
_arrLogPath = _root.game["\x03\n"].BumpDown(_arg5, _arg4 + 1, 5);
\x17\x05 = _root.game.\x1B\x0B(_arrLogPath[_arrLogPath.length - 1].y) + 20;
if (_arrLogPath == null) {
_local3 = true;
}
_arrLogPath = _root.game["\x03\n"].BumpDown(_arg5 + 1, _arg4 + 1, 5);
-\x06 = _root.game.\x1B\x0B(_arrLogPath[_arrLogPath.length - 1].y) + 20;
if (_arrLogPath == null) {
_local3 = true;
}
if (_local3 == true) {
\x17\x05 = 0;
} else if (-\x06 < \x17\x05) {
\x17\x05 = -\x06;
}
}
function 9() {
RotateBullet();
var _local2 = new 3\x06();
_local2._x = Math.cos((Math.PI * _rotation) / 180) * '\x03;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * '\x03;
\x04\x06 = _local2._x;
\x02\x0B = _local2._y;
}
function () {
var _local2 = new 3\x06();
_local2._x = Math.cos((Math.PI * _rotation) / 180) * '\x03;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * '\x03;
\x04\x06 = _local2._x;
\x02\x0B = _local2._y;
}
function RotateBullet() {
var _local2 = new 3\x06();
_local2._x = _enTarget._x - _x;
_local2._y = _enTarget._y - _y;
var _local3 = Math.atan2(_local2._y, _local2._x);
var _local4 = (360 * _local3) / (Math.PI*2);
_rotation = _local4;
}
function Start() {
%\x05 = true;
}
function Stop() {
%\x05 = false;
}
}
Symbol 1428 MovieClip [__Packages.Bullet1] Frame 0
class Bullet1 extends Bullet
{
var , ', <;
function Bullet1 () {
super();
}
function 5() {
\x10\x0B = 0;
'\x03 = 4;
<\x07 = _root.game.towerSetup.arrTowerSetup[0].damage;
}
}
Symbol 1429 MovieClip [__Packages.Tower_402] Frame 0
class Tower_402 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_402 () {
super();
}
function 5() {
_libName = "Tower_402";
_dim = _root.game.towerSetup.arrTowerSetup[1].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[1].type;
_linkable = _root.game.towerSetup.arrTowerSetup[1].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[1].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[1].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[1].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[1].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[1].upgradeType;
}
}
Symbol 1430 MovieClip [__Packages.Tower_403] Frame 0
class Tower_403 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_403 () {
super();
}
function 5() {
_libName = "Tower_403";
_dim = _root.game.towerSetup.arrTowerSetup[2].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[2].type;
_linkable = _root.game.towerSetup.arrTowerSetup[2].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[2].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[2].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[2].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[2].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[2].upgradeType;
}
}
Symbol 1431 MovieClip [__Packages.Tower_404] Frame 0
class Tower_404 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_404 () {
super();
}
function 5() {
_libName = "Tower_404";
_dim = _root.game.towerSetup.arrTowerSetup[3].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[3].type;
_linkable = _root.game.towerSetup.arrTowerSetup[3].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[3].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[3].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[3].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[3].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[3].upgradeType;
}
}
Symbol 1432 MovieClip [__Packages.Tower_405] Frame 0
class Tower_405 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_405 () {
super();
}
function 5() {
_libName = "Tower_405";
_dim = _root.game.towerSetup.arrTowerSetup[4].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[4].type;
_linkable = _root.game.towerSetup.arrTowerSetup[4].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[4].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[4].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[4].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[4].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[4].upgradeType;
}
}
Symbol 1433 MovieClip [__Packages.Bullet5] Frame 0
class Bullet5 extends Bullet
{
var , ', <;
function Bullet5 () {
super();
}
function 5() {
\x10\x0B = 4;
'\x03 = 2;
<\x07 = _root.game.towerSetup.arrTowerSetup[4].damage;
}
}
Symbol 1434 MovieClip [__Packages.Tower_406] Frame 0
class Tower_406 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _damage, _upgrades;
function Tower_406 () {
super();
}
function 5() {
_libName = "Tower_406";
_dim = _root.game.towerSetup.arrTowerSetup[5].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[5].type;
_linkable = _root.game.towerSetup.arrTowerSetup[5].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[5].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[5].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[5].reload;
_damage = _root.game.towerSetup.arrTowerSetup[5].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[5].upgradeType;
}
}
Symbol 1435 MovieClip [__Packages.Tower_407] Frame 0
class Tower_407 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _damage, _upgrades;
function Tower_407 () {
super();
}
function 5() {
_libName = "Tower_407";
_dim = _root.game.towerSetup.arrTowerSetup[6].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[6].type;
_linkable = _root.game.towerSetup.arrTowerSetup[6].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[6].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[6].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[6].reload;
_damage = _root.game.towerSetup.arrTowerSetup[6].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[6].upgradeType;
}
}
Symbol 1436 MovieClip [__Packages.Tower_108] Frame 0
class Tower_108 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_108 () {
super();
}
function 5() {
_libName = "Tower_108";
_dim = _root.game.towerSetup.arrTowerSetup[7].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[7].type;
_linkable = _root.game.towerSetup.arrTowerSetup[7].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[7].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[7].range2;
_damage = _root.game.towerSetup.arrTowerSetup[7].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[7].upgradeType;
}
}
Symbol 1437 MovieClip [__Packages.Tower_109] Frame 0
class Tower_109 extends 6
{
var _libName, _dim, _type, _linkable, , _rRange, _rRange2, , _upgrades;
function Tower_109 () {
super();
}
function 5() {
_libName = "Tower_109";
_dim = _root.game.towerSetup.arrTowerSetup[8].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[8].type;
_linkable = _root.game.towerSetup.arrTowerSetup[8].linkable;
\x10 = 0;
_rRange = _root.game.towerSetup.arrTowerSetup[8].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[8].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[8].reload;
_upgrades = _root.game.towerSetup.arrTowerSetup[8].upgradeType;
}
}
Symbol 1438 MovieClip [__Packages.Tower_410] Frame 0
class Tower_410 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_410 () {
super();
}
function 5() {
_libName = "Tower_410";
_dim = _root.game.towerSetup.arrTowerSetup[9].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[9].type;
_linkable = _root.game.towerSetup.arrTowerSetup[9].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[9].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[9].range2;
_damage = _root.game.towerSetup.arrTowerSetup[9].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[9].upgradeType;
}
}
Symbol 1439 MovieClip [__Packages.Tower_411] Frame 0
class Tower_411 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, ,
, _damage, _upgrades;
function Tower_411 () {
super();
}
function 5() {
_libName = "Tower_411";
_dim = _root.game.towerSetup.arrTowerSetup[10].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[10].type;
_linkable = _root.game.towerSetup.arrTowerSetup[10].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[10].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[10].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[10].reload;
\n\x07 = 2;
_damage = _root.game.towerSetup.arrTowerSetup[10].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[10].upgradeType;
}
}
Symbol 1440 MovieClip [__Packages.Bullet2] Frame 0
class Bullet2 extends Bullet
{
var , ', <;
function Bullet2 () {
super();
}
function 5() {
\x10\x0B = 2;
'\x03 = 3;
<\x07 = _root.game.towerSetup.arrTowerSetup[10].damage;
}
}
Symbol 1441 MovieClip [__Packages.Tower_412] Frame 0
class Tower_412 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, ,
, _damage, _upgrades;
function Tower_412 () {
super();
}
function 5() {
_libName = "Tower_412";
_dim = _root.game.towerSetup.arrTowerSetup[11].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[11].type;
_linkable = _root.game.towerSetup.arrTowerSetup[11].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[11].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[11].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[11].reload;
\n\x07 = 3;
_damage = _root.game.towerSetup.arrTowerSetup[11].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[11].upgradeType;
}
}
Symbol 1442 MovieClip [__Packages.Bullet3] Frame 0
class Bullet3 extends Bullet
{
var , ', <;
function Bullet3 () {
super();
}
function 5() {
\x10\x0B = 1;
'\x03 = 3;
<\x07 = _root.game.towerSetup.arrTowerSetup[11].damage;
}
}
Symbol 1443 MovieClip [__Packages.Tower_413] Frame 0
class Tower_413 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, ,
, _damage, _upgrades;
function Tower_413 () {
super();
}
function 5() {
_libName = "Tower_413";
_dim = _root.game.towerSetup.arrTowerSetup[12].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[12].type;
_linkable = _root.game.towerSetup.arrTowerSetup[12].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[12].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[12].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[12].reload;
\n\x07 = 4;
_damage = _root.game.towerSetup.arrTowerSetup[12].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[12].upgradeType;
}
}
Symbol 1444 MovieClip [__Packages.Bullet4] Frame 0
class Bullet4 extends Bullet
{
var , ', <;
function Bullet4 () {
super();
}
function 5() {
\x10\x0B = 3;
'\x03 = 5;
<\x07 = _root.game.towerSetup.arrTowerSetup[12].damage;
}
}
Symbol 1445 MovieClip [__Packages.Tower_414] Frame 0
class Tower_414 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_414 () {
super();
}
function 5() {
_libName = "Tower_414";
_dim = _root.game.towerSetup.arrTowerSetup[13].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[13].type;
_linkable = _root.game.towerSetup.arrTowerSetup[13].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[13].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[13].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[13].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[13].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[13].upgradeType;
}
}
Symbol 1446 MovieClip [__Packages.Tower_415] Frame 0
class Tower_415 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_415 () {
super();
}
function 5() {
_libName = "Tower_415";
_dim = _root.game.towerSetup.arrTowerSetup[14].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[14].type;
_linkable = _root.game.towerSetup.arrTowerSetup[14].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[14].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[14].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[14].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[14].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[14].upgradeType;
}
}
Symbol 1447 MovieClip [__Packages.Tower_416] Frame 0
class Tower_416 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_416 () {
super();
}
function 5() {
_libName = "Tower_416";
_dim = _root.game.towerSetup.arrTowerSetup[15].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[15].type;
_linkable = _root.game.towerSetup.arrTowerSetup[15].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[15].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[15].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[15].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[15].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[15].upgradeType;
}
}
Symbol 1448 MovieClip [__Packages.Tower_417] Frame 0
class Tower_417 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, , _bump, _damage, _upgrades;
function Tower_417 () {
super();
}
function 5() {
_libName = "Tower_417";
_dim = _root.game.towerSetup.arrTowerSetup[16].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[16].type;
_linkable = _root.game.towerSetup.arrTowerSetup[16].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[16].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[16].range2;
\x11\x07 = _root.game.towerSetup.arrTowerSetup[16].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[16].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[16].upgradeType;
}
}
Symbol 1449 MovieClip [__Packages.Tower_118] Frame 0
class Tower_118 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_118 () {
super();
}
function 5() {
_libName = "Tower_118";
_dim = _root.game.towerSetup.arrTowerSetup[17].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[17].type;
_linkable = _root.game.towerSetup.arrTowerSetup[17].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[17].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[17].range2;
_damage = _root.game.towerSetup.arrTowerSetup[17].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[17].upgradeType;
}
}
Symbol 1450 MovieClip [__Packages.Tower_119] Frame 0
class Tower_119 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_119 () {
super();
}
function 5() {
_libName = "Tower_119";
_dim = _root.game.towerSetup.arrTowerSetup[18].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[18].type;
_linkable = _root.game.towerSetup.arrTowerSetup[18].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[18].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[18].range2;
_damage = _root.game.towerSetup.arrTowerSetup[18].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[18].upgradeType;
}
}
Symbol 1451 MovieClip [__Packages.Tower_120] Frame 0
class Tower_120 extends 6
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_120 () {
super();
}
function 5() {
_libName = "Tower_120";
_dim = _root.game.towerSetup.arrTowerSetup[19].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[19].type;
_linkable = _root.game.towerSetup.arrTowerSetup[19].linkable;
_rRange = _root.game.towerSetup.arrTowerSetup[19].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[19].range2;
_damage = _root.game.towerSetup.arrTowerSetup[19].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[19].upgradeType;
}
}
Symbol 1452 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var arrPathToTravel, , startTest, 0, logTimmer, , , blnBumped, 7, , 1, splasher, 5, , , , 6, _blnGetLure, &, #, , >, "
, , ,, , [, 6, , , comboTimer, , comboTally, arrPastLure, cacheAsBitmap, enemyType, enemyLife, enemySpeed, _dim, @, ), , , , ), _x, _y, _xscale, _yscale, _visible, _name, , , _rotation, , enemyTotalLife;
function Enemy () {
super();
arrPathToTravel = null;
5\x02();
\x0F\x0B = false;
startTest = true;
0\x06 = 0;
logTimmer = 0;
\f\x0B = 0;
\x07\x05 = 0;
blnBumped = false;
7\x06 = true;
\x1B\x05 = false;
1\x06 = false;
splasher = 0;
5\x07 = false;
\x1C\x02 = false;
\x02\x07 = 0.5;
\x19\x03 = 0;
6\x0B = false;
_blnGetLure = false;
&\x02 = false;
# = 0;
\x1D\f = 0;
>\x05 = -1;
\"\n = false;
\f\x07 = 0;
,\x03 = false;
\x1A\x0B = false;
[\x03 = false;
6\x04 = -1;
\x1E\x0B = 0;
\x1F\x07 = 0;
comboTimer = -1;
\x18\f = -1;
comboTally = 0;
arrPastLure = new Array();
cacheAsBitmap = true;
}
function 5() {
enemyType = 0;
enemyLife = 10;
enemySpeed = 1;
_dim = 20;
this["?\x03"] = 10;
@\x02 = 30;
}
function SetupPirate() {
if (_root.game["9\x04"] == false) {
if (arrPathToTravel != null) {
if (_root.game.map.IsPathBlocked(arrPathToTravel) == false) {
return(undefined);
}
}
\x11\n();
}
}
function
() {
\x0F\x0B = false;
0\x06 = 0;
2\x0B();
if (startTest == true) {
if (this["?\n"] < 11) {
)\x02 = 17;
} else {
)\x02 = 4;
}
startTest = false;
}
if (,\x03 == false) {
if (\"\n == false) {
var _local3 = _root.game["\x03\n"].Search(this["?\n"], \x05, )\x02, 0);
if (_local3 != null) {
\"\n = false;
arrPathToTravel = _local3;
} else {
\"\n = true;
\f\x07++;
arrPathToTravel = _root.game["\x03\n"].Wander(this["?\n"], \x05);
}
} else if (5\x07 == true) {
if (\f\x07 < 1) {
\f\x07++;
arrPathToTravel = _root.game["\x03\n"].Wander(this["?\n"], \x05);
} else {
5\x07 = false;
\f\x07 = 0;
\"\n = false;
,\x03 = false;
\x11\n();
}
} else if (\f\x07 < 10) {
\f\x07++;
arrPathToTravel = _root.game["\x03\n"].Wander(this["?\n"], \x05);
} else {
\f\x07 = 0;
\"\n = false;
,\x03 = true;
\x11\n();
}
9\x06();
\x0F\x0B = true;
}
}
function ,(_arg4, _arg3) {
\x0F\x0B = false;
0\x06 = 0;
2\x0B();
arrPathToTravel = _root.game["\x03\n"].Search(this["?\n"], \x05, _arg4, _arg3);
9\x06();
\x0F\x0B = true;
}
function SetupPirate2(_arg5, _arg4) {
if (_root.game["9\x04"] == false) {
\x0F\x0B = false;
0\x06 = 0;
2\x0B();
var _local3 = new Array();
if (_arg4 == 1) {
_local3 = _root.game["\x03\n"].BumpLeft(this["?\n"], \x05, _arg5);
} else if (_arg4 == 2) {
_local3 = _root.game["\x03\n"].BumpRight(this["?\n"], \x05, _arg5);
} else if (_arg4 == 3) {
_local3 = _root.game["\x03\n"].BumpUp(this["?\n"], \x05, _arg5);
} else if (_arg4 == 4) {
_local3 = _root.game["\x03\n"].BumpDown(this["?\n"], \x05, _arg5);
}
\f\x0B = _arg4;
if (_local3 == null) {
\x11\n();
} else {
arrPathToTravel = _local3;
\x15\x07 = _arg4;
\x07\x03 = arrPathToTravel[arrPathToTravel.length - 1].x;
)\x04 = arrPathToTravel[arrPathToTravel.length - 1].y;
\x07\x03 = \x1B\x0B(\x07\x03) + 10;
)\x04 = \x1B\x0B()\x04) + 10;
blnBumped = true;
}
}
}
function "(_arg5) {
var _local3 = 0;
var _local4 = new Array();
if (\f\x0B == 1) {
_local3 = _root.game.map.UpOrDown(this["?\n"], \x05);
if (_local3 == 0) {
_local4 = _root.game["\x03\n"].BumpRight(this["?\n"], \x05, _arg5);
\x15\x07 = 2;
} else if (_local3 == 3) {
_local4 = _root.game["\x03\n"].BumpUp(this["?\n"], \x05, _arg5);
\x15\x07 = 3;
} else if (_local3 == 4) {
_local4 = _root.game["\x03\n"].BumpDown(this["?\n"], \x05, _arg5);
\x15\x07 = 4;
}
} else if (\f\x0B == 2) {
_local3 = _root.game.map.UpOrDown(this["?\n"], \x05);
if (_local3 == 0) {
_local4 = _root.game["\x03\n"].BumpLeft(this["?\n"], \x05, _arg5);
\x15\x07 = 1;
} else if (_local3 == 3) {
_local4 = _root.game["\x03\n"].BumpUp(this["?\n"], \x05, _arg5);
\x15\x07 = 3;
} else if (_local3 == 4) {
_local4 = _root.game["\x03\n"].BumpDown(this["?\n"], \x05, _arg5);
\x15\x07 = 4;
}
} else if (\f\x0B == 3) {
_local3 = _root.game.map.LeftOrRight(this["?\n"], \x05);
if (_local3 == 0) {
_local4 = _root.game["\x03\n"].BumpDown(this["?\n"], \x05, _arg5);
\x15\x07 = 4;
} else if (_local3 == 1) {
_local4 = _root.game["\x03\n"].BumpLeft(this["?\n"], \x05, _arg5);
\x15\x07 = 1;
} else if (_local3 == 2) {
_local4 = _root.game["\x03\n"].BumpRight(this["?\n"], \x05, _arg5);
\x15\x07 = 2;
}
} else if (\f\x0B == 4) {
_local3 = _root.game.map.LeftOrRight(this["?\n"], \x05);
if (_local3 == 0) {
_local4 = _root.game["\x03\n"].BumpUp(this["?\n"], \x05, _arg5);
\x15\x07 = 3;
} else if (_local3 == 1) {
_local4 = _root.game["\x03\n"].BumpLeft(this["?\n"], \x05, _arg5);
\x15\x07 = 1;
} else if (_local3 == 2) {
_local4 = _root.game["\x03\n"].BumpRight(this["?\n"], \x05, _arg5);
\x15\x07 = 2;
}
}
_root.game["3\x03"].CreateEffect("splash", "game", _x, _y, false, null, null);
splasher = 0;
return(_local4);
}
function 2(_arg3) {
if (_root.game["9\x04"] == false) {
\x0F\x0B = false;
0\x06 = 0;
2\x0B();
arrPathToTravel = \"\x0B(_arg3);
if (arrPathToTravel == null) {
\x0F\x0B = true;
} else {
\x07\x03 = arrPathToTravel[arrPathToTravel.length - 1].x;
)\x04 = arrPathToTravel[arrPathToTravel.length - 1].y;
\x07\x03 = \x1B\x0B(\x07\x03) + 10;
)\x04 = \x1B\x0B()\x04) + 10;
blnBumped = true;
}
}
}
function () {
if (\x07\x05 <= 0) {
@\x04();
>();
)();
3\x02();
-\x05();
\x12\x06();
[\x06();
\x18\x05();
\x16\x0B();
+\x07();
ComboTimer();
} else {
\x07\x05--;
}
}
function ComboTimer() {
if (comboTimer > 0) {
comboTimer--;
} else if (comboTimer != -1) {
_root.game.ComboAchieve(comboTally);
\x18\f = -1;
comboTally = 0;
comboTimer = -1;
}
}
function () {
var _local3 = _root.game["3\x03"].CreateEffect("hole", "holes", _x, _y, false, null, null);
\x1A\x0B = true;
}
function 8() {
var _local7 = '\x04(_x);
var _local6 = '\x04(_y);
var _local8 = _root.game["\x03\n"].FindPointToEnd(_local7, _local6, 17, 0, 4, 0);
var _local4 = _local8[0].x;
var _local3 = _local8[0].y;
if (_local8 == null) {
_local4 = '\x06('\x04(_x) - 5, '\x04(_x) + 5);
_local3 = '\x06('\x04(_y) - 5, '\x04(_y) + 5);
var _local5 = 0;
while ((_root.game.map.CheckIfBlocked(_local4, _local3) && ((_local7 != _local4) && (_local6 != _local3))) || (_local5 > 15)) {
_local5++;
_local4 = '\x06('\x04(_x) - 5, '\x04(_x) + 5);
_local3 = '\x06('\x04(_y) - 5, '\x04(_y) + 5);
if (_local4 > 21) {
_local4 = 21;
}
if (_local4 < 1) {
_local4 = 1;
}
if (_local3 > 27) {
_local3 = 27;
}
if (_local3 < 1) {
_local3 = 1;
}
}
if (_local5 > 15) {
_local5 = 0;
_local4 = _local7;
_local3 = _local6;
}
}
_local4 = \x1B\x0B(_local4) + 10;
_local3 = \x1B\x0B(_local3) + 10;
_x = _local4;
_y = _local3;
\x1E\x0B = _local4;
\x1F\x07 = _local3;
6\x04 = 20;
}
function +() {
if (6\x04 == 0) {
6\x04 = -1;
var _local3 = _root.game["3\x03"].CreateEffect("hole", "holes", \x1E\x0B, \x1F\x07, false, null, null);
[\x03 = true;
} else if (6\x04 != -1) {
6\x04--;
}
}
function () {
if (\x1A\x0B == true) {
_xscale = _xscale - 3;
_yscale = _yscale - 3;
if (_xscale <= 0) {
8\x0B();
\x1A\x0B = false;
}
}
}
function () {
if ([\x03 == true) {
_xscale = _xscale + 3;
_yscale = _yscale + 3;
if (_xscale >= 100) {
_xscale = 100;
_yscale = 100;
\x11\n();
[\x03 = false;
}
}
}
function @() {
if (_blnGetLure == true) {
if (&\x02 == false) {
&\x02 = true;
,\x0B(#, \x1D\f);
}
}
}
function -() {
if (splasher > 0) {
splasher--;
}
}
function [() {
if (>\x05 == 0) {
\x11\n();
>\x05 = -1;
_blnGetLure = false;
&\x02 = false;
} else if (>\x05 > 0) {
>\x05--;
}
}
function Start() {
splasher = 0;
_visible = true;
\x0F\x0B = true;
}
function Stop() {
if (1\x06 == true) {
1\x06 = false;
_visible = false;
if (splasher < 1) {
splasher = 300;
_root.game["3\x03"].CreateEffect("splash", "game", _x, _y, false, null, null);
}
}
\x0F\x0B = false;
}
function @() {
if (\x19\x03 == 416) {
DamageEnemy(_root.game.towerSetup.arrTowerSetup[15].damage, 10);
2\x06(1);
} else if (\x19\x03 == 417) {
\x1C\x02 = true;
\x11\n();
blnBumped = false;
}
}
function )() {
if (blnBumped == true) {
if (\x15\x07 == 1) {
if (_x > (\x07\x03 + 3)) {
_visible = true;
_x = _x - (\x0E\x0B(\x07\x03, _y) * 0.2);
} else {
if (_root.game.-\x04(_name)) {
_x = \x07\x03;
@\x05();
} else {
_x = \x07\x03;
\x11\n();
blnBumped = false;
}
\x07\x05 = 5;
}
} else if (\x15\x07 == 2) {
if (_x < (\x07\x03 + 3)) {
_visible = true;
_x = _x + (\x0E\x0B(\x07\x03, _y) * 0.2);
} else {
if (_root.game.-\x04(_name)) {
_x = \x07\x03;
@\x05();
} else {
_x = \x07\x03;
\x11\n();
blnBumped = false;
}
\x07\x05 = 5;
}
} else if (\x15\x07 == 3) {
if (_y > ()\x04 + 3)) {
_visible = true;
_y = _y - (\x0E\x0B(_x, )\x04) * 0.2);
} else {
if (_root.game.-\x04(_name)) {
_y = )\x04;
@\x05();
} else {
_y = )\x04;
\x11\n();
blnBumped = false;
}
\x07\x05 = 5;
}
} else if (\x15\x07 == 4) {
if (_y < ()\x04 - 3)) {
_visible = true;
_y = _y + (\x0E\x0B(_x, )\x04) * 0.2);
} else {
if (_root.game.-\x04(_name)) {
_y = )\x04;
@\x05();
} else {
_y = )\x04;
\x11\n();
blnBumped = false;
}
\x07\x05 = 5;
}
}
}
}
function 3() {
if (logTimmer < 0) {
if (\x1B\x05 == true) {
\x1B\x05 = false;
SetupPirate2(4, 4);
DamageEnemy(_root.game.towerSetup.arrTowerSetup[4].damage, 6);
logTimmer = 30;
}
} else {
logTimmer--;
}
}
function (_arg4, _arg5) {
var _local3 = (_x + (_dim / 2)) - _arg4;
var _local2 = (_y + (_dim / 2)) - _arg5;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function () {
if (6\x0B == true) {
if (\x1C\x02 == false) {
2\x0B();
if (_root.game.map.Tower417Check(this["?\n"], \x05)) {
6\x0B = false;
\x1C\x02 = true;
}
}
}
if (\x1C\x02 == true) {
2\x0B();
if (_root.game.map.SlowSpeedCheck(this["?\n"], \x05)) {
\x1C\x02 = false;
}
}
}
function >() {
if (\x0F\x0B == true) {
if (((_x > (\x1B\x0B(arrPathToTravel[0\x06].x) + 5)) && (_x < (\x1B\x0B(arrPathToTravel[0\x06].x) + 15))) && ((_y > (\x1B\x0B(arrPathToTravel[0\x06].y) + 5)) && (_y < (\x1B\x0B(arrPathToTravel[0\x06].y) + 15)))) {
0\x06++;
9\x06();
if (_root.game.map.Tower417Check(arrPathToTravel[0\x06].x, arrPathToTravel[0\x06].y)) {
if (6\x0B == false) {
if ('\x06(0, 100) < 60) {
_global.SoundManager.PlaySound("tar", 100);
}
}
6\x0B = true;
}
} else {
_visible = true;
_x = _x + \x11\x06;
_y = _y + \x03\x07;
}
if (0\x06 >= arrPathToTravel.length) {
if (\"\n == true) {
\x11\n();
} else if (_blnGetLure == true) {
_blnGetLure = false;
\x0F\x0B = false;
>\x05 = 40;
} else if (,\x03 == false) {
if (\x0E\x0B(\x1B\x0B()\x02) + 10, \x1B\x0B(0) + 10) < 20) {
>\x05 = 0;
_root.game.1\x03();
\x0F\x0B = false;
\x14\x03();
} else {
\"\n = true;
\f\x07++;
5\x07 = true;
arrPathToTravel = _root.game["\x03\n"].Wander(this["?\n"], \x05);
}
} else {
\"\n = false;
,\x03 = false;
\x0F\x0B = false;
\x17\x03();
}
}
}
}
function 9() {
RotateEnemy();
var _local2 = new 3\x06();
if (\x1C\x02 == false) {
_local2._x = Math.cos((Math.PI * _rotation) / 180) * enemySpeed;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * enemySpeed;
} else {
_local2._x = Math.cos((Math.PI * _rotation) / 180) * \x02\x07;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * \x02\x07;
}
\x11\x06 = _local2._x;
\x03\x07 = _local2._y;
}
function ComboAddWithEnd() {
comboTally++;
comboTimer = 0;
}
function ComboAddWithReset() {
comboTally++;
comboTimer = 20;
}
function DamageEnemy(_arg4, _arg3) {
if (((_arg3 == 4) || (_arg3 == 5)) || (_arg3 == 6)) {
ComboAddWithReset();
}
if ((_arg3 == 7) || (_arg3 == 8)) {
if (comboTimer > 0) {
ComboAddWithEnd();
}
}
if ((_arg3 == 9) || (_arg3 == 10)) {
if (comboTimer > 0) {
if (_arg3 != \x18\f) {
ComboAddWithReset();
}
}
}
\x18\f = _arg3;
if (7\x06 == true) {
\x1A\x05 = _root.game["3\x03"].CreateEffect("health_bar", "game", _x, _y, true, this, null);
7\x06 = false;
}
if (_arg3 == 7) {
enemyLife = enemyLife * _arg4;
} else {
enemyLife = enemyLife - _arg4;
}
if (enemyLife <= 0) {
\x1A\x05.lBar._xscale = 0;
if (_arg3 == 7) {
} else if (_arg3 == 8) {
_root.game["3\x03"].CreateEffect("splash", "game", _x, _y, false, null, null);
}
_root.game["3\x03"].CreateEffect("PirateAngelAnimation", "game", _x, _y, false, null, null);
_root.game.ComboAchieve(comboTally);
_root.game.ScoreAddition(this["?\x03"], @\x02);
\x14\x03();
} else if (((enemyLife / enemyTotalLife) * 100) != 100) {
\x1A\x05.lBar._xscale = (enemyLife / enemyTotalLife) * 100;
if (\x1A\x05.lBar._xscale > 100) {
\x1A\x05.lBar._xscale = 100;
}
if (\x1A\x05.lBar._xscale < 0) {
\x1A\x05.lBar._xscale = 0;
}
if (_arg3 == 0) {
} else if (_arg3 == 1) {
} else if (_arg3 == 2) {
} else if (_arg3 == 3) {
} else if (_arg3 == 4) {
} else if (_arg3 == 5) {
} else if (_arg3 == 6) {
} else if (_arg3 == 7) {
} else if (_arg3 == 8) {
} else if (_arg3 == 9) {
} else if (_arg3 == 10) {
} else if (_arg3 == 11) {
}
}
}
function RotateEnemy() {
var _local6;
var _local5;
var _local2 = new 3\x06();
_local2._x = (\x1B\x0B(arrPathToTravel[0\x06].x) + 10) - _x;
_local2._y = (\x1B\x0B(arrPathToTravel[0\x06].y) + 10) - _y;
var _local3 = Math.atan2(_local2._y, _local2._x);
var _local4 = (360 * _local3) / (Math.PI*2);
cacheAsBitmap = false;
_rotation = _local4;
cacheAsBitmap = true;
}
function 2() {
this["?\n"] = '\x04(_x);
\x05 = '\x04(_y);
}
function '(_arg1) {
_arg1 = Math.floor(_arg1 / 20);
return(_arg1);
}
function (_arg1) {
_arg1 = Math.floor(_arg1) * 20;
return(_arg1);
}
function () {
var _local3 = 0;
while (_local3 < arrPathToTravel.length) {
var _local4 = "temper_" + _root.game["`\n"];
_root["\x19\x02"].GAMEBOX.attachMovie("Path_Block", _local4, _root.game["`\n"]);
_root["\x19\x02"].GAMEBOX[_local4]._x = arrPathToTravel[_local3].x * 20;
_root["\x19\x02"].GAMEBOX[_local4]._y = arrPathToTravel[_local3].y * 20;
_root.game["`\n"]++;
if (_root.game["`\n"] >= 62000) {
_root.game["`\n"] = 61000;
}
_local3++;
}
}
function () {
_root.game.CheckBulletTargets(_name);
_root.game["3\x03"].RemoveEffect(\x1A\x05._name);
_root.game.\r\n(_name);
}
function '(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1453 MovieClip [__Packages.Enemy_1] Frame 0
class Enemy_1 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, @;
function Enemy_1 () {
super();
}
function 5() {
enemyType = 1;
enemyLife = _root.game.towerSetup.arrEnemySetup[0].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[0].speed;
_dim = _root.game.towerSetup.arrEnemySetup[0].dim;
this["?\x03"] = _root.game.towerSetup.arrEnemySetup[0].reward;
@\x02 = _root.game.towerSetup.arrEnemySetup[0].goldReward;
}
}
Symbol 1454 MovieClip [__Packages.Enemy_2] Frame 0
class Enemy_2 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, @;
function Enemy_2 () {
super();
}
function 5() {
enemyType = 2;
enemyLife = _root.game.towerSetup.arrEnemySetup[1].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[1].speed;
_dim = _root.game.towerSetup.arrEnemySetup[1].dim;
this["?\x03"] = _root.game.towerSetup.arrEnemySetup[1].reward;
@\x02 = _root.game.towerSetup.arrEnemySetup[1].goldReward;
}
}
Symbol 1455 MovieClip [__Packages.Enemy_3] Frame 0
class Enemy_3 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, @;
function Enemy_3 () {
super();
}
function 5() {
enemyType = 3;
enemyLife = _root.game.towerSetup.arrEnemySetup[2].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[2].speed;
_dim = _root.game.towerSetup.arrEnemySetup[2].dim;
this["?\x03"] = _root.game.towerSetup.arrEnemySetup[2].reward;
@\x02 = _root.game.towerSetup.arrEnemySetup[2].goldReward;
}
}
Symbol 1456 MovieClip [__Packages.Enemy_4] Frame 0
class Enemy_4 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, @;
function Enemy_4 () {
super();
}
function 5() {
enemyType = 4;
enemyLife = _root.game.towerSetup.arrEnemySetup[3].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[3].speed;
_dim = _root.game.towerSetup.arrEnemySetup[3].dim;
this["?\x03"] = _root.game.towerSetup.arrEnemySetup[3].reward;
@\x02 = _root.game.towerSetup.arrEnemySetup[3].goldReward;
}
}
Symbol 1457 MovieClip [__Packages.Enemy_5] Frame 0
class Enemy_5 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, @;
function Enemy_5 () {
super();
}
function 5() {
enemyType = 5;
enemyLife = _root.game.towerSetup.arrEnemySetup[4].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[4].speed;
_dim = _root.game.towerSetup.arrEnemySetup[4].dim;
this["?\x03"] = _root.game.towerSetup.arrEnemySetup[4].reward;
@\x02 = _root.game.towerSetup.arrEnemySetup[4].goldReward;
}
}
Symbol 1458 MovieClip [__Packages.Enemy_6] Frame 0
class Enemy_6 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, @;
function Enemy_6 () {
super();
}
function 5() {
enemyType = 6;
enemyLife = _root.game.towerSetup.arrEnemySetup[5].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[5].speed;
_dim = _root.game.towerSetup.arrEnemySetup[5].dim;
this["?\x03"] = _root.game.towerSetup.arrEnemySetup[5].reward;
@\x02 = _root.game.towerSetup.arrEnemySetup[5].goldReward;
}
}
Symbol 1459 MovieClip [__Packages.Doodad_300] Frame 0
class Doodad_300 extends
{
var _libName, _dim, _type;
function Doodad_300 () {
super();
}
function 5() {
_libName = "transparent_block";
_dim = 20;
_type = 300;
}
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 197
this._parent.nextFrame();
stop();
Symbol 58 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 61 MovieClip Frame 1
gotoAndPlay (2);
Symbol 61 MovieClip Frame 177
stop();
Symbol 66 MovieClip Frame 1
if (_global.armorGames == false) {
gotoAndPlay (223);
}
Symbol 66 MovieClip Frame 225
if (_global.heroInteractive == false) {
gotoAndPlay (367);
}
Instance of Symbol 65 MovieClip in Symbol 66 MovieClip Frame 226
on (release) {
if (_global.heroLinked == true) {
getURL ("http://www.herointeractive.com", "_blank");
}
}
Instance of Symbol 65 MovieClip in Symbol 66 MovieClip Frame 255
on (release) {
if (_global.heroLinked == true) {
getURL ("http://www.herointeractive.com", "_blank");
}
}
Symbol 66 MovieClip Frame 369
if (_global.afterIntro == false) {
_root.gotoAndPlay(5);
} else {
this._parent.nextFrame();
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 197
this._parent.gotoAndStop(4);
stop();
Symbol 70 MovieClip Frame 1
if (_global.beforeIntro == true) {
stop();
}
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 70 MovieClip Frame 4
_root.gotoAndStop(5);
Symbol 77 MovieClip Frame 5532
stop();
Symbol 98 MovieClip Frame 49
gotoAndPlay (20);
Symbol 107 MovieClip Frame 255
stop();
Symbol 112 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 116 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 129 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 129 MovieClip Frame 21
stop();
Symbol 129 MovieClip Frame 35
stop();
Symbol 129 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 132 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 132 MovieClip Frame 21
stop();
Symbol 132 MovieClip Frame 35
stop();
Symbol 132 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 151 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 151 MovieClip Frame 35
stop();
Symbol 151 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 151 MovieClip Frame 181
gotoAndPlay (36);
Symbol 154 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 154 MovieClip Frame 35
stop();
Symbol 154 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 157 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 157 MovieClip Frame 35
stop();
Symbol 157 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 160 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 160 MovieClip Frame 158
gotoAndPlay ("Start");
Symbol 163 MovieClip Frame 75
this.swapDepths(100000);
this.removeMovieClip();
Symbol 182 MovieClip Frame 43
gotoAndPlay ("Start");
Symbol 195 MovieClip Frame 182
this.swapDepths(100000);
this.removeMovieClip();
Symbol 196 MovieClip Frame 1
stop();
gotoAndPlay ("Start1");
Instance of Symbol 129 MovieClip "pmg_txt" in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
if (_global.pmgMMVisable == false) {
this.gotoAndStop(21);
}
}
Instance of Symbol 132 MovieClip "extra_content_txt" in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
if (_global.extraContent == true) {
this.gotoAndStop(21);
}
}
Instance of Symbol 160 MovieClip "pmg_btn" in Symbol 196 MovieClip Frame 1
on (release) {
if ((_global.pmgMMVisable == true) && (_root.game["\x03\x04"] == false)) {
_root.game.PMG_URL();
}
}
Instance of Symbol 160 MovieClip "settings_btn" in Symbol 196 MovieClip Frame 1
on (release) {
_root.game.\x07\x07();
}
Instance of Symbol 160 MovieClip "credits_btn" in Symbol 196 MovieClip Frame 1
on (release) {
_root.game.'\x0B();
}
Instance of Symbol 160 MovieClip "ec_btn" in Symbol 196 MovieClip Frame 1
on (release) {
if (_global.extraContent == false) {
_root.game.\x13();
}
}
Instance of Symbol 160 MovieClip "play_btn" in Symbol 196 MovieClip Frame 1
on (release) {
_root.game.%\n();
}
Instance of Symbol 160 MovieClip "song_btn" in Symbol 196 MovieClip Frame 1
on (release) {
_root.\x13\x02();
}
Symbol 196 MovieClip Frame 32
_global.SoundManager.PlaySound("1_itsagooddaytobehunting", 100);
Symbol 196 MovieClip Frame 71
if (_global.pmgMMVisable == true) {
pmg_txt.gotoAndPlay("fadeOut");
}
Symbol 196 MovieClip Frame 73
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 196 MovieClip Frame 79
_global.SoundManager.PlaySound("footsteps_to_playmoregames", 100);
Symbol 196 MovieClip Frame 181
_global.SoundManager.PlaySound("2_comeonyatrustyspade", 100);
Symbol 196 MovieClip Frame 187
_global.SoundManager.PlaySound("shovel_playmoregames", 100);
Symbol 196 MovieClip Frame 310
_global.SoundManager.PlaySound("3_ahnogoldhere", 100);
Symbol 196 MovieClip Frame 364
if (_global.pmgMMVisable == true) {
pmg_txt.gotoAndPlay(36);
}
Symbol 196 MovieClip Frame 435
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 476
_global.SoundManager.PlaySound("4_waveoverwave", 100);
Symbol 196 MovieClip Frame 548
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 196 MovieClip Frame 550
_global.SoundManager.PlaySound("footsteps_to_settings", 100);
Symbol 196 MovieClip Frame 608
settings_txt.gotoAndPlay("fadeOut");
Symbol 196 MovieClip Frame 630
_global.SoundManager.PlaySound("5_hahmmwhathavewegothere", 100);
Symbol 196 MovieClip Frame 640
_global.SoundManager.PlaySound("shovel_settings", 100);
Symbol 196 MovieClip Frame 715
_root.4\x03(15);
Symbol 196 MovieClip Frame 720
_global.SoundManager.PlaySound("6_ahpileofrottenparrot", 100);
Symbol 196 MovieClip Frame 823
_global.SoundManager.PlaySound("footsteps_from_settings", 100);
Symbol 196 MovieClip Frame 826
_global.SoundManager.PlaySound("7_backtotherigger", 100);
Symbol 196 MovieClip Frame 866
settings_txt.gotoAndPlay(36);
Symbol 196 MovieClip Frame 903
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 961
_global.SoundManager.PlaySound("8_whatsthatonthehorizon", 100);
Symbol 196 MovieClip Frame 1054
_global.SoundManager.PlaySound("seamonster", 100);
Symbol 196 MovieClip Frame 1071
_global.SoundManager.PlaySound("9_croykesrowrowrow", 100);
Symbol 196 MovieClip Frame 1286
_global.SoundManager.PlaySound("10_waituhwhereamiat", 100);
Symbol 196 MovieClip Frame 1287
_root.4\x03(180);
Symbol 196 MovieClip Frame 1421
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 196 MovieClip Frame 1424
_global.SoundManager.PlaySound("footsteps_to_play", 100);
Symbol 196 MovieClip Frame 1430
_global.SoundManager.PlaySound("11_woaroundtherosey", 100);
Symbol 196 MovieClip Frame 1540
play_txt.gotoAndPlay("fadeOut");
_root.4\x03(25);
Symbol 196 MovieClip Frame 1541
_global.SoundManager.PlaySound("shovel_play", 100);
Symbol 196 MovieClip Frame 1570
_global.SoundManager.PlaySound("12_coppersofgoldcantbelieve", 100);
Symbol 196 MovieClip Frame 1703
_global.SoundManager.PlaySound("footsteps_from_play", 100);
Symbol 196 MovieClip Frame 1730
_global.SoundManager.PlaySound("12_baaaacktotherigger", 100);
Symbol 196 MovieClip Frame 1736
play_txt.gotoAndPlay(36);
Symbol 196 MovieClip Frame 1770
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 1865
_global.SoundManager.PlaySound("13_ohwhatarottenlife", 100);
_root.4\x03(100);
Symbol 196 MovieClip Frame 1965
_global.SoundManager.PlaySound("14_ohwhatabeautyofaspot", 100);
Symbol 196 MovieClip Frame 2104
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 2126
_global.SoundManager.PlaySound("15_iamapirate", 100);
Symbol 196 MovieClip Frame 2259
_root.4\x03(60);
Symbol 196 MovieClip Frame 2273
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 2348
_global.SoundManager.PlaySound("16_nothinglikeanoldsong", 100);
Symbol 196 MovieClip Frame 2477
_global.SoundManager.PlaySound("17_speakingofspirits", 100);
Symbol 196 MovieClip Frame 2520
_root.4\x03(180);
Symbol 196 MovieClip Frame 2651
_global.SoundManager.PlaySound("shiphit_southeast", 100);
Symbol 196 MovieClip Frame 2652
_global.SoundManager.PlaySound("18_uhhhhellothere", 100);
Symbol 196 MovieClip Frame 2698
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 2827
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 196 MovieClip Frame 2829
if (_global.extraContent == false) {
extra_content_txt.gotoAndPlay("fadeOut");
}
Symbol 196 MovieClip Frame 2835
_global.SoundManager.PlaySound("footsteps_to_extracontent", 100);
Symbol 196 MovieClip Frame 2855
_global.SoundManager.PlaySound("19_imgettingsickofthisfirei", 100);
Symbol 196 MovieClip Frame 2864
_global.SoundManager.PlaySound("shovel_extracontent", 100);
Symbol 196 MovieClip Frame 2971
_global.SoundManager.PlaySound("bomblighttick", 100);
Symbol 196 MovieClip Frame 3036
_global.SoundManager.PlaySound("footsteps_hidefrombomb", 100);
Symbol 196 MovieClip Frame 3139
_global.SoundManager.PlaySound("coconut", 100);
Symbol 196 MovieClip Frame 3163
_global.SoundManager.PlaySound("20_allrightletseediscombobu", 100);
Symbol 196 MovieClip Frame 3164
_root.4\x03(30);
Symbol 196 MovieClip Frame 3166
_global.SoundManager.PlaySound("footsteps_returntobomb", 100);
Symbol 196 MovieClip Frame 3267
_root.4\x03(25);
Symbol 196 MovieClip Frame 3268
_global.SoundManager.PlaySound("footsteps_from_extracontent", 100);
Symbol 196 MovieClip Frame 3289
_root.4\x03(25);
Symbol 196 MovieClip Frame 3296
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 3314
_global.SoundManager.PlaySound("21_grumbletakethatyouscalll", 100);
Symbol 196 MovieClip Frame 3317
_root.4\x03(40);
Symbol 196 MovieClip Frame 3324
if (_global.extraContent == false) {
extra_content_txt.gotoAndPlay(36);
}
Symbol 196 MovieClip Frame 3344
ship.gotoAndPlay(2);
Symbol 196 MovieClip Frame 3563
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 196 MovieClip Frame 3617
_global.SoundManager.PlaySound("22_Ivehadenoughitsgrog", 100);
Symbol 196 MovieClip Frame 3667
_root.4\x03(200);
Symbol 196 MovieClip Frame 3768
gotoAndPlay ("Start1");
Instance of Symbol 200 MovieClip "rp_mc" in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
if (_global.rpShow == false) {
this._y = 1000;
_parent.sa_btn._x = this._x - 70;
}
}
on (release) {
_root.;\x07();
}
Symbol 202 MovieClip Frame 10
stop();
Symbol 202 MovieClip Frame 21
stop();
Symbol 204 MovieClip Frame 1
if (_global.extraContent == false) {
this.version_txt.text = _global.versionTXT;
} else {
this.version_txt.text = _global.versionTXT + " - EC";
}
stop();
Symbol 208 MovieClip Frame 11
stop();
Symbol 208 MovieClip Frame 22
stop();
Symbol 214 Button
on (release) {
_root.game.^\x07(1);
_root.game.Easy();
}
on (rollOver) {
info_txt.text = _root.game.2(1);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 217 Button
on (release) {
_root.game.^\x07(2);
_root.game.Medium();
}
on (rollOver) {
info_txt.text = _root.game.2(2);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 220 Button
on (release) {
_root.game.^\x07(3);
_root.game.Hard();
}
on (rollOver) {
info_txt.text = _root.game.2(3);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 223 Button
on (release) {
_root.game.^\x07(4);
_root.game.6\x03();
}
on (rollOver) {
info_txt.text = _root.game.2(4);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 226 Button
on (release) {
_root.game.^\x07(5);
_root.game.Fast();
}
on (rollOver) {
info_txt.text = _root.game.2(5);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 229 Button
on (release) {
_root.game.^\x07(6);
_root.game.Fixed();
}
on (rollOver) {
ec_notice._visible = true;
ec_notice._x = 18;
ec_notice._y = 350;
info_txt.text = _root.game.2(6);
}
on (rollOut) {
info_txt.text = "";
ec_notice._visible = false;
}
on (dragOut) {
info_txt.text = "";
ec_notice._visible = false;
}
Symbol 232 Button
on (release) {
_root.game.^\x07(7);
_root.game.\x1C\x07();
}
on (rollOver) {
info_txt.text = _root.game.2(7);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 235 Button
on (release) {
_root.game.^\x07(11);
_root.game.\x14();
}
on (rollOver) {
ec_notice._visible = true;
ec_notice._x = 18;
ec_notice._y = 350;
info_txt.text = _root.game.2(11);
}
on (rollOut) {
info_txt.text = "";
ec_notice._visible = false;
}
on (dragOut) {
info_txt.text = "";
ec_notice._visible = false;
}
Symbol 239 Button
on (release) {
_root.game.\"\x04();
}
Symbol 252 Button
on (release) {
getURL ("http://armorgames.com/walkthrough/3593", "_blank");
}
Symbol 256 Button
on (release) {
_root.game.^\x07(12);
_root.game.3\x07();
}
on (rollOver) {
info_txt.text = _root.game.2(12);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 257 MovieClip Frame 1
stop();
ec_notice._visible = false;
if (_global.extraContent == false) {
fixed_btn._alpha = 30;
tenk_btn._alpha = 30;
} else {
ec_notice._visible = false;
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
stop();
Instance of Symbol 271 MovieClip "low" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "LOW") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "LOW") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "LOW";
this._parent.high.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "med" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "MEDIUM") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "MEDIUM") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "MEDIUM";
this._parent.high.gotoAndStop("off");
this._parent.low.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "high" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "HIGH") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "HIGH") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "HIGH";
this._parent.low.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "musicOn" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_global.musicOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = true;
this._parent.musicOff.gotoAndStop("off");
_global.myMusicPlayer.SetTrack("titleMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
Instance of Symbol 271 MovieClip "musicOff" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_global.musicOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = false;
this._parent.musicOn.gotoAndStop("off");
_global.myMusicPlayer.Stop();
}
Instance of Symbol 271 MovieClip "soundsOn" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_global.soundOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = true;
this._parent.soundsOff.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "soundsOff" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
if (_global.soundOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = false;
this._parent.soundsOn.gotoAndStop("off");
}
Symbol 284 Button
on (release) {
gotoAndStop (26);
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
stop();
Symbol 296 MovieClip Frame 1
function OutputValue(fieldName, keyCode) {
var textRef = eval ("this." + fieldName);
var returnValue = "";
switch (keyCode) {
case 8 :
returnValue = "BACKSPACE";
break;
case 20 :
returnValue = "CAPSLOCK";
break;
case 17 :
returnValue = "CONTROL";
break;
case 46 :
returnValue = "DELETE";
break;
case 40 :
returnValue = "DOWN";
break;
case 35 :
returnValue = "END";
break;
case 13 :
returnValue = "ENTER";
break;
case 27 :
returnValue = "ESCAPE";
break;
case 36 :
returnValue = "HOME";
break;
case 45 :
returnValue = "INSERT";
break;
case 37 :
returnValue = "LEFT";
break;
case 34 :
returnValue = "PGDN";
break;
case 33 :
returnValue = "PGUP";
break;
case 39 :
returnValue = "RIGHT";
break;
case 16 :
returnValue = "SHIFT";
break;
case 32 :
returnValue = "SPACE";
break;
case 9 :
returnValue = "TAB";
break;
case 38 :
returnValue = "UP";
break;
case 186 :
returnValue = ";";
break;
case 187 :
returnValue = "=";
break;
case 189 :
returnValue = "-";
break;
case 191 :
returnValue = "/";
break;
case 192 :
returnValue = "`";
break;
case 219 :
returnValue = "[";
break;
case 220 :
returnValue = "\\";
break;
case 221 :
returnValue = "]";
break;
case 222 :
returnValue = "'";
break;
case 188 :
returnValue = ",";
break;
case 190 :
returnValue = ".";
break;
case 96 :
returnValue = "NUMPAD 0";
break;
case 97 :
returnValue = "NUMPAD 1";
break;
case 98 :
returnValue = "NUMPAD 2";
break;
case 99 :
returnValue = "NUMPAD 3";
break;
case 100 :
returnValue = "NUMPAD 4";
break;
case 101 :
returnValue = "NUMPAD 5";
break;
case 102 :
returnValue = "NUMPAD 6";
break;
case 103 :
returnValue = "NUMPAD 7";
break;
case 104 :
returnValue = "NUMPAD 8";
break;
case 105 :
returnValue = "NUMPAD 9";
break;
case 106 :
returnValue = "MULTIPLY";
break;
case 107 :
returnValue = "ADD";
break;
case 109 :
returnValue = "SUBTRACT";
break;
case 110 :
returnValue = "DECIMAL";
break;
case 111 :
returnValue = "DIVIDE";
break;
default :
returnValue = chr(keyCode);
returnValue.toUpperCase();
}
textRef.text = returnValue;
}
function UnselectOthers(_arg2) {
if (_arg2 != "oneClip") {
this.oneClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "twoClip") {
this.twoClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "threeClip") {
this.threeClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "fourClip") {
this.fourClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
}
stop();
var hasFocus = "";
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (hasFocus == "oneClip") {
_global.hotKey1 = Key.getCode();
OutputValue("sell_txt", _global.hotKey1);
}
if (hasFocus == "twoClip") {
_global.hotKey2 = Key.getCode();
OutputValue("upgrade1_txt", _global.hotKey2);
}
if (hasFocus == "threeClip") {
_global.hotKey3 = Key.getCode();
OutputValue("upgrade2_txt", _global.hotKey3);
}
if (hasFocus == "fourClip") {
_global.hotKey4 = Key.getCode();
OutputValue("upgrade3_txt", _global.hotKey4);
}
};
Key.addListener(keyListener);
OutputValue("sell_txt", _global.hotKey1);
OutputValue("upgrade1_txt", _global.hotKey2);
OutputValue("upgrade2_txt", _global.hotKey3);
OutputValue("upgrade3_txt", _global.hotKey4);
Instance of Symbol 294 MovieClip "oneClip" in Symbol 296 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 294 MovieClip "twoClip" in Symbol 296 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 294 MovieClip "threeClip" in Symbol 296 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 294 MovieClip "fourClip" in Symbol 296 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 8
stop();
Instance of Symbol 257 MovieClip "play_play" in Symbol 297 MovieClip Frame 8
onClipEvent (load) {
this.ec_notice._y = 1000;
}
Instance of Symbol 261 MovieClip "credits_hi" in Symbol 297 MovieClip Frame 10
onClipEvent (load) {
if (_global.creditsHILinkShown == false) {
this.gotoAndStop(2);
}
}
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.herointeractive.com/", "_blank");
}
}
Instance of Symbol 264 MovieClip "credits_test" in Symbol 297 MovieClip Frame 10
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.herointeractive.com/", "_blank");
}
}
Instance of Symbol 266 MovieClip "credits_music" in Symbol 297 MovieClip Frame 10
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.polyphonemusic.com/", "_blank");
}
}
Symbol 297 MovieClip Frame 16
stop();
Symbol 297 MovieClip Frame 24
stop();
Symbol 297 MovieClip Frame 26
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 321 Button
on (release) {
_root.game.<\x05();
}
Symbol 324 Button
on (release) {
_root.game.\x1F\x04();
}
Symbol 328 Button
on (release) {
_root.gotoAndStop("restart");
}
Symbol 334 Button
on (release) {
_global.tutorialPrompt = true;
_root.game[">\x02"].Skip();
_root.game.\x0B\f();
}
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
stop();
Symbol 349 Button
on (release) {
if (_global.blnToolTips == true) {
_global.blnToolTips = false;
tt_x.gotoAndStop("on");
} else {
_global.blnToolTips = true;
tt_x.gotoAndStop("off");
}
}
Symbol 355 Button
on (release) {
_global.tutorialPrompt = true;
_root.game[">\x02"].FlagIt();
_root.game[">\x02"].Skip();
_root.game.\x0B\f();
}
Symbol 358 Button
on (release) {
getURL ("http://armorgames.com/walkthrough/3593", "_blank");
}
Symbol 362 Button
on (release) {
_global.typetype = 12;
_root.gotoAndStop("restart");
}
Symbol 370 Button
on (release) {
_root.game.+\x02();
}
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
stop();
Instance of Symbol 271 MovieClip "low" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_quality == "LOW") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "LOW") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "LOW";
this._parent.high.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "med" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_quality == "MEDIUM") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "MEDIUM") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "MEDIUM";
this._parent.high.gotoAndStop("off");
this._parent.low.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "high" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_quality == "HIGH") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "HIGH") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "HIGH";
this._parent.low.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "musicOn" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_global.musicOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = true;
this._parent.musicOff.gotoAndStop("off");
_global.myMusicPlayer.SetTrack("titleMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
Instance of Symbol 271 MovieClip "musicOff" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_global.musicOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = false;
this._parent.musicOn.gotoAndStop("off");
_global.myMusicPlayer.Stop();
}
Instance of Symbol 271 MovieClip "soundsOn" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_global.soundOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = true;
this._parent.soundsOff.gotoAndStop("off");
}
Instance of Symbol 271 MovieClip "soundsOff" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_global.soundOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = false;
this._parent.soundsOn.gotoAndStop("off");
}
Instance of Symbol 345 MovieClip "tt_x" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
if (_global.blnToolTips == false) {
this.gotoAndStop("on");
}
}
Symbol 373 MovieClip Frame 3
stop();
Symbol 373 MovieClip Frame 4
stop();
Symbol 373 MovieClip Frame 5
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 385 Button
on (release) {
_root.game.,\x06();
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 11
gotoAndStop (1);
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
stop();
Symbol 426 Button
on (release) {
_root.game.&\x07();
}
Symbol 430 Button
on (release) {
_root.game.\"\x05(1);
}
on (rollOver) {
_root.game.\x16\f(1);
}
on (rollOut) {
_root.game.+\x05();
}
on (dragOver) {
_root.game.\x16\f(1);
}
on (dragOut) {
_root.game.+\x05();
}
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 2
stop();
Symbol 449 Button
on (release) {
_root.game.\"\x05(2);
}
on (rollOver) {
_root.game.\x16\f(2);
}
on (rollOut) {
_root.game.+\x05();
}
on (dragOver) {
_root.game.\x16\f(2);
}
on (dragOut) {
_root.game.+\x05();
}
Symbol 474 Button
on (release) {
_root.game.\"\x05(3);
}
on (rollOver) {
_root.game.\x16\f(3);
}
on (rollOut) {
_root.game.+\x05();
}
on (dragOver) {
_root.game.\x16\f(3);
}
on (dragOut) {
_root.game.+\x05();
}
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 3
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 475 MovieClip Frame 4
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 475 MovieClip Frame 5
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 475 MovieClip Frame 6
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 3
stop();
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 9
_root.game.SwingHit(this._parent._name, 3);
Symbol 515 MovieClip Frame 14
stop();
Symbol 515 MovieClip Frame 19
gotoAndStop (1);
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
stop();
Symbol 528 MovieClip Frame 3
stop();
Symbol 528 MovieClip Frame 4
stop();
Symbol 528 MovieClip Frame 5
stop();
Symbol 528 MovieClip Frame 6
stop();
Symbol 528 MovieClip Frame 7
stop();
Symbol 528 MovieClip Frame 8
stop();
Symbol 528 MovieClip Frame 9
stop();
Symbol 528 MovieClip Frame 10
stop();
Symbol 538 Button
on (release) {
_root.game.\x01\x04();
}
Symbol 541 MovieClip Frame 1
stop();
Instance of Symbol 528 MovieClip "s401" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s402" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s404" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s403" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s405" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s406" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s108" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s407" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s109" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Instance of Symbol 528 MovieClip "s410" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x13\x0B(this._name);
}
on (rollOver) {
_root.game.8\x05(this._name);
}
on (rollOut) {
_root.game.\x1A\n(this._name);
}
on (dragOver) {
_root.game.8\x05(this._name);
}
on (dragOut) {
_root.game.\x1A\n(this._name);
}
on (release) {
_root.game.;\x03(this._name);
}
Symbol 541 MovieClip Frame 2
stop();
Symbol 541 MovieClip Frame 3
stop();
Symbol 541 MovieClip Frame 4
stop();
Symbol 547 Button
on (release) {
_root.game.\x12\x05();
}
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 2
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 40
gotoAndStop ("Off");
Symbol 567 MovieClip Frame 1
stop();
Instance of Symbol 553 MovieClip "rec1" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Instance of Symbol 556 MovieClip "rec2" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Instance of Symbol 553 MovieClip "rec3" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Instance of Symbol 553 MovieClip "rec5" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Instance of Symbol 556 MovieClip "rec4" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Instance of Symbol 556 MovieClip "rec6" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Symbol 567 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 3
stop();
Symbol 576 MovieClip Frame 4
stop();
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
stop();
Symbol 583 MovieClip Frame 1
stop();
Instance of Symbol 576 MovieClip "mute_btn" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
if (_root.game["\x1F\n"] == true) {
this.gotoAndStop(3);
}
}
on (release) {
_root.game.\x19();
}
on (rollOver) {
if (_root.game["\x1F\n"] == false) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("muteOn");
}
}
on (rollOut) {
if (_root.game["\x1F\n"] == false) {
this.gotoAndStop("off");
} else {
this.gotoAndStop(3);
}
}
on (dragOut) {
if (_root.game["\x1F\n"] == false) {
this.gotoAndStop("off");
} else {
this.gotoAndStop(3);
}
}
on (dragOver) {
if (_root.game["\x1F\n"] == false) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("muteOn");
}
}
Instance of Symbol 580 MovieClip "main_menu_btn" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.game.\f\x05();
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Symbol 583 MovieClip Frame 2
stop();
Symbol 662 Button
on (release) {
_root.game[">\x02"].Finish();
}
Symbol 666 Button
on (release) {
_root.game[">\x02"].CreatePreviousObject();
}
Symbol 670 Button
on (release) {
_root.game[">\x02"].CreateNextObject();
}
Symbol 816 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 2
stop();
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 7
stop();
Instance of Symbol 752 MovieClip "ttt1" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 755 MovieClip "ttt15" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 757 MovieClip "ttt17" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 759 MovieClip "ttt16" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 764 MovieClip "ttt18" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 779 MovieClip "ttt2" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 785 MovieClip "ttt3" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 799 MovieClip "ttt4" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 801 MovieClip "ttt5" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 804 MovieClip "ttt6" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 807 MovieClip "ttt7" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 817 MovieClip "ttt8" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 821 MovieClip "ttt9" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 823 MovieClip "ttt10" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 826 MovieClip "ttt19" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 828 MovieClip "ttt20" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 830 MovieClip "ttt11" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 833 MovieClip "ttt12" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 836 MovieClip "ttt13" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Instance of Symbol 838 MovieClip "ttt14" in Symbol 839 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.\r\x06(this._name);
}
on (rollOut) {
_root.game.%\x07();
}
Symbol 858 Button
on (release) {
_root.game[">\x02"].Finish();
}
Symbol 861 Button
on (release) {
_root.game[">\x02"].CreateNextObject();
}
Symbol 870 Button
on (release) {
_root.game.tool.CleanGroup();
}
Symbol 875 Button
on (release) {
_root.game.tool.5\n(_global.toolTipSection);
}
Symbol 880 Button
on (release) {
_root.game.tool.!\x06();
}
Symbol 881 Button
on (release) {
if (_global.blnToolTips == true) {
_global.blnToolTips = false;
tt_x.gotoAndStop("on");
} else {
_global.blnToolTips = true;
tt_x.gotoAndStop("off");
}
}
Symbol 1003 MovieClip [mo_tips] Frame 1
stop();
Symbol 1003 MovieClip [mo_tips] Frame 2
stop();
Symbol 1003 MovieClip [mo_tips] Frame 3
stop();
Symbol 1003 MovieClip [mo_tips] Frame 4
stop();
Symbol 1003 MovieClip [mo_tips] Frame 5
stop();
Symbol 1003 MovieClip [mo_tips] Frame 6
stop();
Symbol 1003 MovieClip [mo_tips] Frame 7
stop();
Symbol 1003 MovieClip [mo_tips] Frame 8
stop();
Symbol 1003 MovieClip [mo_tips] Frame 9
stop();
Symbol 1003 MovieClip [mo_tips] Frame 10
stop();
Symbol 1003 MovieClip [mo_tips] Frame 11
stop();
Symbol 1003 MovieClip [mo_tips] Frame 12
stop();
Symbol 1003 MovieClip [mo_tips] Frame 13
stop();
Symbol 1003 MovieClip [mo_tips] Frame 14
stop();
Symbol 1003 MovieClip [mo_tips] Frame 15
stop();
Symbol 1003 MovieClip [mo_tips] Frame 16
stop();
Symbol 1003 MovieClip [mo_tips] Frame 17
stop();
Symbol 1003 MovieClip [mo_tips] Frame 18
stop();
Symbol 1003 MovieClip [mo_tips] Frame 19
stop();
Symbol 1003 MovieClip [mo_tips] Frame 20
stop();
Symbol 1008 MovieClip [Doodad_300] Frame 1
#initclip 98
Object.registerClass("Doodad_300", Doodad_300);
#endinitclip
Symbol 1011 MovieClip [Doodad_301] Frame 1
#initclip 63
Object.registerClass("Doodad_301", Doodad_301);
#endinitclip
Symbol 1014 MovieClip [Doodad_302] Frame 1
#initclip 64
Object.registerClass("Doodad_302", Doodad_302);
#endinitclip
Symbol 1017 MovieClip [Doodad_303] Frame 1
#initclip 65
Object.registerClass("Doodad_303", Doodad_303);
#endinitclip
Symbol 1020 MovieClip [Doodad_304] Frame 1
#initclip 66
Object.registerClass("Doodad_304", Doodad_304);
#endinitclip
Symbol 1022 MovieClip [hole] Frame 174
stop();
_root.game["3\x03"].RemoveEffect(this._name);
this.removeMovieClip();
Symbol 1035 MovieClip [notification] Frame 1
stop();
Symbol 1035 MovieClip [notification] Frame 2
stop();
Symbol 1035 MovieClip [notification] Frame 3
stop();
Symbol 1035 MovieClip [notification] Frame 4
stop();
Symbol 1035 MovieClip [notification] Frame 5
stop();
Symbol 1035 MovieClip [notification] Frame 6
stop();
Symbol 1035 MovieClip [notification] Frame 7
stop();
Symbol 1035 MovieClip [notification] Frame 8
stop();
Symbol 1035 MovieClip [notification] Frame 9
stop();
Symbol 1035 MovieClip [notification] Frame 10
stop();
Symbol 1035 MovieClip [notification] Frame 11
stop();
Symbol 1047 MovieClip Frame 1
stop();
Symbol 1047 MovieClip Frame 2
stop();
Symbol 1047 MovieClip Frame 3
stop();
Symbol 1047 MovieClip Frame 4
stop();
Symbol 1047 MovieClip Frame 5
stop();
Symbol 1050 MovieClip [towerOverSquare] Frame 1
stop();
Symbol 1050 MovieClip [towerOverSquare] Frame 2
stop();
Symbol 1053 MovieClip [BlockPathNot] Frame 21
stop();
removeMovieClip(_root.BlockPathNot);
Symbol 1066 MovieClip [L20] Frame 1
stop();
Symbol 1066 MovieClip [L20] Frame 2
stop();
Symbol 1066 MovieClip [L20] Frame 3
stop();
Symbol 1073 MovieClip [L40] Frame 1
stop();
Symbol 1073 MovieClip [L40] Frame 2
stop();
Symbol 1073 MovieClip [L40] Frame 3
stop();
Symbol 1084 MovieClip [reload_clock] Frame 1
stop();
Symbol 1085 MovieClip [Tower_401] Frame 1
#initclip 67
Object.registerClass("Tower_401", Tower_401);
#endinitclip
Symbol 1089 MovieClip [Bullet1] Frame 1
#initclip 68
Object.registerClass("Bullet1", Bullet1);
#endinitclip
Symbol 1117 MovieClip [Tower_402] Frame 1
#initclip 69
Object.registerClass("Tower_402", Tower_402);
#endinitclip
stop();
Symbol 1117 MovieClip [Tower_402] Frame 13
_root.game.SwingHit(this._name, 1);
Symbol 1117 MovieClip [Tower_402] Frame 44
stop();
Symbol 1117 MovieClip [Tower_402] Frame 50
gotoAndStop (1);
Symbol 1141 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 13
_root.game.SwingHit(this._parent._name, 2);
Symbol 1141 MovieClip Frame 44
stop();
Symbol 1141 MovieClip Frame 50
gotoAndStop (1);
Symbol 1142 MovieClip [Tower_403] Frame 1
#initclip 70
Object.registerClass("Tower_403", Tower_403);
#endinitclip
Symbol 1145 MovieClip [Tower_404] Frame 1
#initclip 71
Object.registerClass("Tower_404", Tower_404);
#endinitclip
Symbol 1150 MovieClip [Tower_405] Frame 1
#initclip 72
Object.registerClass("Tower_405", Tower_405);
#endinitclip
stop();
Symbol 1150 MovieClip [Tower_405] Frame 5
stop();
Symbol 1150 MovieClip [Tower_405] Frame 8
gotoAndStop (1);
Symbol 1156 MovieClip [Bullet5] Frame 1
#initclip 73
Object.registerClass("Bullet5", Bullet5);
#endinitclip
stop();
Symbol 1156 MovieClip [Bullet5] Frame 28
stop();
_root.game.RemoveBullet(this._name);
Symbol 1161 MovieClip [Tower_406] Frame 1
#initclip 74
Object.registerClass("Tower_406", Tower_406);
#endinitclip
stop();
Symbol 1161 MovieClip [Tower_406] Frame 2
stop();
Symbol 1162 MovieClip [Tower_407] Frame 1
#initclip 75
Object.registerClass("Tower_407", Tower_407);
#endinitclip
Symbol 1164 MovieClip [Tower_108] Frame 1
#initclip 76
Object.registerClass("Tower_108", Tower_108);
#endinitclip
Symbol 1165 MovieClip [Tower_109] Frame 1
#initclip 77
Object.registerClass("Tower_109", Tower_109);
#endinitclip
Symbol 1166 MovieClip [Tower_410] Frame 1
#initclip 78
Object.registerClass("Tower_410", Tower_410);
#endinitclip
Symbol 1167 MovieClip [Tower_411] Frame 1
#initclip 79
Object.registerClass("Tower_411", Tower_411);
#endinitclip
Symbol 1169 MovieClip [Bullet2] Frame 1
#initclip 80
Object.registerClass("Bullet2", Bullet2);
#endinitclip
Symbol 1171 MovieClip [Tower_412] Frame 1
#initclip 81
Object.registerClass("Tower_412", Tower_412);
#endinitclip
Symbol 1173 MovieClip [Bullet3] Frame 1
#initclip 82
Object.registerClass("Bullet3", Bullet3);
#endinitclip
Symbol 1174 MovieClip [Tower_413] Frame 1
#initclip 83
Object.registerClass("Tower_413", Tower_413);
#endinitclip
Symbol 1176 MovieClip [Bullet4] Frame 1
#initclip 84
Object.registerClass("Bullet4", Bullet4);
#endinitclip
Symbol 1179 MovieClip [Tower_414] Frame 1
#initclip 85
Object.registerClass("Tower_414", Tower_414);
#endinitclip
stop();
Symbol 1179 MovieClip [Tower_414] Frame 2
stop();
Symbol 1184 MovieClip [Tower_415] Frame 1
#initclip 86
Object.registerClass("Tower_415", Tower_415);
#endinitclip
stop();
Symbol 1184 MovieClip [Tower_415] Frame 2
stop();
Symbol 1188 MovieClip [splash] Frame 14
_root.game["3\x03"].RemoveEffect(this._name);
Symbol 1189 MovieClip [Tower_416] Frame 1
#initclip 87
Object.registerClass("Tower_416", Tower_416);
#endinitclip
Symbol 1191 MovieClip [Tower_417] Frame 1
#initclip 88
Object.registerClass("Tower_417", Tower_417);
#endinitclip
Symbol 1192 MovieClip [Tower_118] Frame 1
#initclip 89
Object.registerClass("Tower_118", Tower_118);
#endinitclip
Symbol 1193 MovieClip [Tower_119] Frame 1
#initclip 90
Object.registerClass("Tower_119", Tower_119);
#endinitclip
Symbol 1195 MovieClip [Tower_120] Frame 1
#initclip 91
Object.registerClass("Tower_120", Tower_120);
#endinitclip
Symbol 1210 MovieClip [Enemy_1] Frame 1
#initclip 92
Object.registerClass("Enemy_1", Enemy_1);
#endinitclip
Symbol 1220 MovieClip [Enemy_2] Frame 1
#initclip 93
Object.registerClass("Enemy_2", Enemy_2);
#endinitclip
stop();
Symbol 1225 MovieClip [Enemy_3] Frame 1
#initclip 94
Object.registerClass("Enemy_3", Enemy_3);
#endinitclip
Symbol 1228 MovieClip [Enemy_4] Frame 1
#initclip 95
Object.registerClass("Enemy_4", Enemy_4);
#endinitclip
Symbol 1231 MovieClip [Enemy_5] Frame 1
#initclip 96
Object.registerClass("Enemy_5", Enemy_5);
#endinitclip
Symbol 1238 MovieClip [Enemy_6] Frame 1
#initclip 97
Object.registerClass("Enemy_6", Enemy_6);
#endinitclip
Symbol 1343 MovieClip Frame 1
stop();
Symbol 1364 MovieClip [PirateAngelAnimation] Frame 46
_root.game["3\x03"].RemoveEffect(this._name);
Symbol 1381 MovieClip Frame 15
stop();
Symbol 1382 MovieClip Frame 18
this.inside._rotation = Math.round(Math.random() * 360);
Symbol 1382 MovieClip Frame 66
_root.game["3\x03"].RemoveEffect(this._parent._name);
stop();
Symbol 1383 MovieClip [damageExplosionSmall] Frame 1
stop();
Symbol 1393 MovieClip Frame 17
stop();
Symbol 1394 MovieClip [damageExplosionBig] Frame 18
this.inside._rotation = Math.round(Math.random() * 360);
Symbol 1394 MovieClip [damageExplosionBig] Frame 66
_root.game["3\x03"].RemoveEffect(this._name);
stop();