Frame 1
function Setup() {
_global.arrAllowedSites = new Array();
_global.dataPath = new \x16\n();
_global.dataPath.<\x04(2382752);
_global.doExcludePreloader = new \x16\n();
_global.doExcludePreloader.<\x04(59712137);
_global.adArray = new Array();
_global.hostArray = new Array();
Set("6\x02", -1);
Set("3", _root.getBytesTotal());
startBytes = _root.getBytesLoaded();
Set("\x10\x0B", 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.05";
_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 \x01\x07();
_global.SoundManager = new 9\x02();
_global.typetype = 0;
;\x05();
RightClickSetup();
}
function \u0011\u0003() {
\x15\x0B();
}
function \u0007\u0003() {
_root.gotoAndStop(4);
}
function >\u0003() {
getURL (_global.rpURL, _global.pmgOpenAs);
}
function ?\u0002() {
getURL (_global.ecURL, _global.pmgOpenAs);
}
function PMG_URL() {
getURL (_global.pmgURL, _global.pmgOpenAs);
}
function ;\u0005() {
var _local3 = 0;
while (_local3 < _global.adArray.length) {
if (_url.indexOf(_global.adArray[_local3]) != -1) {
_global.doExcludePreloader. \x03(381594);
break;
}
_local3++;
}
if ((_global.preloaderAD == false) || (_global.doExcludePreloader.\x15\n() != -1)) {
_root["^\x05"].visible = false;
_root["^\x05"]._x = -999;
_root["^\x05"]._y = -999;
_root["1\x06"]._y = _root["1\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 \u0015\u000B() {
if (\x10\x0B == false) {
if (6\x02 == -1) {
Set("\x1A\x06", _root.getBytesLoaded());
Set("[\x03", \x1A\x06 / 3);
myPercentLoaded = int(100 * [\x03);
_root["1\x06"].gotoAndStop(myPercentLoaded);
_root["1\x06"].preloader_txt.text = myPercentLoaded + "%";
if (myPercentLoaded == 100) {
_root["1\x06"].gotoAndStop(100);
_root["1\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["1\x06"].gotoAndPlay(102);
Set("\x10\x0B", true);
}
} else {
6\x02--;
}
}
}
function RightClickSetup() {
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
if (_global.rightClickMenu == true) {
if (_global.rightClickPMG == true) {
var _local4 = new ContextMenuItem("Play More Games!", \x10\x06);
_local3.customItems.push(_local4);
}
if (_global.rightClickHeroLinks == true) {
var _local4 = new ContextMenuItem("This Game Developed by Hero Interactive", 5\x07);
_local3.customItems.push(_local4);
_local4 = new ContextMenuItem("Visit Our Blog!", \x11\f);
_local3.customItems.push(_local4);
}
}
_root.menu = _local3;
}
function \u0010\u0006() {
PMG_URL();
}
function 5\u0007() {
getURL ("http://www.herointeractive.com", "_blank");
}
function \u0011\u000C() {
getURL ("http://www.herointeractive.com/blog", "_blank");
}
stop();
var 6\x02;
var 3;
var startBytes;
var \x10\x0B;
Instance of Symbol 37 MovieClip in Frame 1
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x11\x03();
}
Frame 2
_root.gotoAndStop(4);
Frame 3
function \u0012\u000A(swfid, mc, lv, \u000C\u0002) {
var x;
var g;
var +\x05;
var fv;
var sb;
var u;
var \x1C\x0B;
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("+\x05", System.security);
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!+\x05) {
Set("+\x05", {});
}
sb = +\x05.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = +\x05.allowDomain;
if (x) {
+\x05.allowDomain(mbc);
}
x = +\x05.allowInsecureDomain;
if (x) {
+\x05.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) : "")) + (\f\x02 ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
Set("\x1C\x0B", "_level" + lv);
if (!eval (\x1C\x0B)) {
loadMovieNum (u, lv);
}
} else {
Set("\x1C\x0B", mc.createEmptyMovieClip(mb + swfid, lv));
\x1C\x0B.loadMovie(u);
}
return(\x1C\x0B);
}
\x12\n("7a8cd5d1", this, 10301, true);
function Setup() {
}
function \u0011\u0003() {
}
stop();
Instance of Symbol 37 MovieClip in Frame 3
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x11\x03();
}
Frame 4
function SetupSong() {
_global.myMusicPlayer. \n();
_global.myMusicPlayer.SetTrack("piratesong");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
function \u001E\u0007() {
_global.myMusicPlayer.\x12();
}
stop();
Instance of Symbol 37 MovieClip in Frame 4
onClipEvent (load) {
_root.SetupSong();
}
onClipEvent (enterFrame) {
_root.\x1E\x07();
}
Frame 5
function Setup() {
game.PreSetup();
if (_global.musicOn == true) {
_global.myMusicPlayer. \n();
_global.myMusicPlayer.SetTrack("ambience");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
}
function \u0011\u0003() {
_global.myMusicPlayer.\x12();
#\x06();
}
function "\u0007(_arg2) {
Set(";\n", _arg2);
_root["\x11\x02"].map.animation.stop();
}
function #\u0006() {
if (;\n > 0) {
;\n--;
if (;\n == 0) {
_root["\x11\x02"].map.animation.play();
}
}
}
stop();
var game = new \f\n();
var ;\n = 0;
Instance of Symbol 37 MovieClip in Frame 5
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x11\x03();
}
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["\x05"] = 1;
gotoAndStop ("Game");
}
stop();
Instance of Symbol 37 MovieClip in Frame 6
onClipEvent (load) {
_root.Setup();
}
Frame 7
function Setup() {
game.Setup();
}
function \u0011\u0003() {
game.\x11\x03();
}
stop();
Instance of Symbol 37 MovieClip in Frame 7
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.\x11\x03();
}
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.5\x02();
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 1381 MovieClip [__Packages.DataObject] Frame 0
class
{
var ^, %, ;
function
() {
var _local3 = \x1D\x04(55, 66);
^\x03 = new Array(_local3);
var _local2 = 0;
while (_local2 < _local3) {
^\x03[_local2] = 0;
_local2++;
}
%\x06 = -1;
\x19 = -1;
}
function (_arg8) {
var _local6 = Math.round(Math.random() * _arg8);
var _local7 = _arg8 - _local6;
%\x06 = \x1D\x04(0, ^\x03.length - 4);
\x19 = \x1D\x04(0, ^\x03.length - 4);
if (%\x06 == \x19) {
if (%\x06 == (^\x03.length - 1)) {
\x19 = %\x06 - 1;
} else {
\x19 = %\x06 + 1;
}
}
var _local5 = _arg8 / (^\x03.length - 2);
var _local4 = _arg8;
var _local9 = ^\x03.length;
var _local2 = 0;
while (_local2 < ^\x03.length) {
if (_local2 == %\x06) {
^\x03[_local2] = _local6;
} else if (_local2 == \x19) {
^\x03[_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 == (^\x03.length - 1)) {
_local3 = _local4;
}
_local4 = _local4 - _local3;
}
^\x03[_local2] = _local3;
}
_local2++;
}
}
function <(_arg6) {
var _local7 = 0;
while (_local7 < 10) {
var _local5 = Math.round(Math.random() * _arg6);
var _local8 = _arg6 - _local5;
%\x06 = \x1D\x04(0, ^\x03.length - 4);
\x19 = \x1D\x04(0, ^\x03.length - 4);
if (%\x06 == \x19) {
if (%\x06 == (^\x03.length - 1)) {
\x19 = %\x06 - 1;
} else {
\x19 = %\x06 + 1;
}
}
var _local4 = _arg6 / (^\x03.length - 2);
var _local10 = _arg6;
var _local9 = ^\x03.length;
var _local2 = 0;
while (_local2 < ^\x03.length) {
if (_local2 == %\x06) {
^\x03[_local2] = _local5;
} else if (_local2 == \x19) {
^\x03[_local2] = _local8;
} else {
var _local3 = 0;
_local3 = Math.round((Math.random() * (_local4 * 1.23)) + (_local4 * 0.75));
^\x03[_local2] = _local3;
}
_local2++;
}
if (\x15\n() == -1) {
break;
}
_local7++;
}
}
function
() {
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
while (_local2 < ^\x03.length) {
if (_local2 == %\x06) {
_local3 = _local3 + ^\x03[_local2];
} else if (_local2 == \x19) {
_local3 = _local3 + ^\x03[_local2];
} else {
_local4 = _local4 + ^\x03[_local2];
}
_local2++;
}
if (_local3 == _local4) {
return(_local3);
}
return(-1);
}
function () {
var _local2 = ^\x03.slice();
_local2.splice(2, 0, %\x06);
_local2.splice(7, 0, \x19);
return(_local2);
}
function &(_arg2) {
%\x06 = _arg2[2];
\x19 = _arg2[7];
delete ^\x03;
^\x03 = _arg2.slice();
^\x03.splice(7, 1);
^\x03.splice(2, 1);
}
function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1382 MovieClip [__Packages.SoundPlayer] Frame 0
class 9
{
var [, , , , , ;, 7, ;
function 9 () {
[\x02 = new Array(true, true, true, true, true, true);
\x07\x05 = new Sound(_root["0\x05"]);
\x04\x05 = new Sound(_root["\x04\x02"]);
\x17\x06 = new Sound(_root["(\x03"]);
\x06\x02 = new Sound(_root["\x18\f"]);
;\x03 = new Sound(_root["\"\f"]);
7\x02 = new Sound(_root["\x1B\x03"]);
\x1E\f = 100;
}
function (_arg2) {
[\x02[_arg2] = true;
}
function PlaySound(_arg4, _arg5) {
if (_global.soundOn == true) {
var thisRef = this;
if ([\x02[0] == true) {
[\x02[0] = false;
delete \x07\x05;
\x07\x05 = new Sound(_root["0\x05"]);
\x07\x05.attachSound(_arg4);
\x07\x05.setVolume(_arg5);
\x07\x05.start(0, 0);
\x07\x05.onSoundComplete = function () {
thisRef.\x16\x02(0);
};
} else if ([\x02[1] == true) {
[\x02[1] = false;
delete \x04\x05;
\x04\x05 = new Sound(_root["\x04\x02"]);
\x04\x05.attachSound(_arg4);
\x04\x05.setVolume(_arg5);
\x04\x05.start(0, 0);
\x04\x05.onSoundComplete = function () {
thisRef.\x16\x02(1);
};
} else if ([\x02[4] == true) {
[\x02[4] = false;
delete ;\x03;
;\x03 = new Sound(_root["\"\f"]);
;\x03.attachSound(_arg4);
;\x03.setVolume(_arg5);
;\x03.start(0, 0);
;\x03.onSoundComplete = function () {
thisRef.\x16\x02(4);
};
} else if ([\x02[5] == true) {
[\x02[5] = false;
delete 7\x02;
7\x02 = new Sound(_root["\x1B\x03"]);
7\x02.attachSound(_arg4);
7\x02.setVolume(_arg5);
7\x02.start(0, 0);
7\x02.onSoundComplete = function () {
thisRef.\x16\x02(5);
};
} else {
[\x02[0] = false;
delete \x07\x05;
\x07\x05 = new Sound(_root["0\x05"]);
\x07\x05.attachSound(_arg4);
\x07\x05.setVolume(_arg5);
\x07\x05.start(0, 0);
\x07\x05.onSoundComplete = function () {
thisRef.\x16\x02(0);
};
}
}
}
function 1(_arg4) {
if (_global.soundOn == true) {
var thisRef = this;
if ([\x02[2] == true) {
[\x02[2] = false;
delete \x17\x06;
\x17\x06 = new Sound(_root["(\x03"]);
\x17\x06.attachSound(_arg4);
\x17\x06.setVolume(100);
\x17\x06.start(0, 0);
\x17\x06.onSoundComplete = function () {
thisRef.\x16\x02(2);
};
}
}
}
function ?(_arg5) {
if (_global.soundOn == true) {
var _local4 = this;
if ([\x02[3] == true) {
[\x02[3] = false;
delete \x06\x02;
\x06\x02 = new Sound(_root["\x18\f"]);
\x06\x02.attachSound(_arg5);
\x06\x02.setVolume(50);
\x06\x02.start(0, 99999);
}
}
}
function () {
if ([\x02[0] == false) {
[\x02[0] = true;
\x07\x05.stop();
}
}
function 5
() {
if ([\x02[3] == false) {
[\x02[3] = true;
\x06\x02.stop();
}
}
function `
(_arg2) {
var thisRef = this;
if ([\x02[0] == true) {
[\x02[0] = false;
delete \x07\x05;
\x07\x05 = new Sound();
\x07\x05.loadSound(_arg2, false);
\x07\x05.setVolume(\x1E\f);
\x07\x05.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x07\x05.onSoundComplete = function () {
thisRef.\x16\x02(0);
};
} else if ([\x02[1] == true) {
[\x02[1] = false;
delete \x04\x05;
\x04\x05 = new Sound();
\x04\x05.loadSound(_arg2, false);
\x04\x05.setVolume(\x1E\f);
\x04\x05.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x04\x05.onSoundComplete = function () {
thisRef.\x16\x02(1);
};
} else {
[\x02[0] = false;
delete \x07\x05;
\x07\x05 = new Sound();
\x07\x05.loadSound(_arg2, false);
\x07\x05.setVolume(\x1E\f);
\x07\x05.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x07\x05.onSoundComplete = function () {
thisRef.\x16\x02(0);
};
}
}
}
Symbol 1383 MovieClip [__Packages.Music] Frame 0
class
{
var mySound, ", !
, 4, , , , , ;
function () {
mySound = new Sound(_root["\x1A\x04"]);
\"\x05 = 100;
!\n = "";
4\x06 = false;
\x10\x03 = false;
\x14\x03 = true;
\x1A\x02 = 60;
}
function () {
!\n = "ambience";
mySound.stop();
mySound.attachSound(!\n);
\"\x05 = \x1A\x02;
mySound.setVolume(\"\x05);
mySound.start(0, 2000);
\x10\x03 = true;
_global.soundOn = _global.prevSoundOn;
}
function SetMaxVolume(_arg2) {
\x1A\x02 = _arg2;
}
function SetTrack(_arg2) {
if (_arg2 == !\n) {
\x14\x03 = false;
} else {
\x14\x03 = true;
!\n = _arg2;
}
}
function
() {
mySound.stop();
mySound.attachSound(!\n);
\"\x05 = \x1A\x02;
mySound.setVolume(\"\x05);
mySound.start(0, 2000);
\x10\x03 = true;
}
function Stop() {
mySound.stop();
\x10\x03 = false;
}
function PlayWithCrossFade(_arg3) {
if (\x14\x03 == true) {
if (\x10\x03 == true) {
4\x06 = true;
\x06\x07 = 0;
var _local2 = _arg3 * 30;
\x16\f = (\x06\x07 - \"\x05) / (_local2 / 2);
} else {
mySound.stop();
mySound.attachSound(!\n);
trace("determineMusic");
if (!\n != "piratesong") {
trace(!\n);
trace("looped");
mySound.start(0, 2000);
} else {
trace("no loop");
mySound.start(0, 0);
var thisRef = this;
mySound.onSoundComplete = function () {
thisRef.\x0B\x05();
};
}
\x10\x03 = true;
4\x06 = false;
\x06\x07 = \x1A\x02;
\"\x05 = 0;
mySound.setVolume(0);
var _local2 = _arg3 * 30;
\x16\f = (\x06\x07 - \"\x05) / _local2;
}
}
}
function () {
if (\x06\x07 != \"\x05) {
var _local2;
_local2 = \"\x05 + \x16\f;
if ((\x16\f < 0) && (_local2 < 0)) {
_local2 = 0;
} else if ((\x16\f > 0) && (_local2 > \x06\x07)) {
_local2 = \x06\x07;
}
\"\x05 = _local2;
mySound.setVolume(_local2);
}
if (4\x06 == true) {
var thisMusic = this;
if (\"\x05 <= 0) {
\x16\f = \x16\f * -1;
4\x06 = false;
\x06\x07 = \x1A\x02;
mySound.stop();
mySound.attachSound(!\n);
mySound.setVolume(0);
if (!\n != "piratesong") {
trace(!\n);
trace("looped");
mySound.start(0, 2000);
} else {
trace("no loop");
mySound.start(0, 0);
mySound.onSoundComplete = function () {
thisMusic.\x0B\x05();
};
}
\x10\x03 = true;
}
}
}
}
Symbol 1384 MovieClip [__Packages.PirateDefenseGame] Frame 0
#initclip
if (!_global["\f\n"]) {
var _local1 = function () {
this["\x0B\x03"] = false;
};
_global["\f\n"] = _local1;
var _local2 = _local1.prototype;
_local2.PreSetup = function () {
this.towerSetup = new TowerSetup();
this.towerSetup.comboIndex = 0;
if (_global.showFrameRate == true) {
this["@\x06"] = new \x0F\f();
this["@\x06"].9\x03(0);
this["@\x06"].Start();
}
};
_local2["\x0B"] = function (_arg5) {
if (_global.blnToolTips == false) {
return(false);
}
if ((this.tool.\r\x04(_arg5) == false) && (this["\x05"] != 5)) {
if (_arg5 == 1) {
if (this.arrTowers.length == 0) {
this.ToolTipSetup();
return(true);
}
} else if (_arg5 == 2) {
if (this["?\x04"].length == 0) {
if (this["\x19\x05"].length == 0) {
if (this["\x19\x07"].length == 0) {
if (this["\x0E\x02"].length == 0) {
if (this["\x12\x07"].length == 0) {
if (this["\x06\f"].length == 0) {
if (this["^\x0B"].length == 0) {
if (this[">\n"].length == 0) {
if (this["0\x03"].length == 0) {
if (this["\x1A\x05"].length == 0) {
this.ToolTipSetup();
return(true);
}
}
}
}
}
}
}
}
}
}
} else if (_arg5 == 3) {
if (this["=\x06"] == true) {
if (this.arrTowers.length == 0) {
this.ToolTipSetup();
return(true);
}
}
} else if (_arg5 == 4) {
if (this.arrTowers.length == 1) {
var _local7 = ((((((((this["?\x04"].length + this["\x19\x05"].length) + this["\x19\x07"].length) + this["\x0E\x02"].length) + this["\x12\x07"].length) + this["\x06\f"].length) + this["^\x0B"].length) + this[">\n"].length) + this["0\x03"].length) + this["\x1A\x05"].length;
if (_local7 == 1) {
this.ToolTipSetup();
return(true);
}
}
} else if (_arg5 == 5) {
if (_root["\x13\f"].GAMEBOX[this.arrTowers[this.arrTowers.length - 1]]._linkable == true) {
var _local7 = ((((((((this["?\x04"].length + this["\x19\x05"].length) + this["\x19\x07"].length) + this["\x0E\x02"].length) + this["\x12\x07"].length) + this["\x06\f"].length) + this["^\x0B"].length) + this[">\n"].length) + this["0\x03"].length) + this["\x1A\x05"].length;
if (_local7 == 0) {
this.ToolTipSetup();
return(true);
}
}
} else if (_arg5 == 6) {
if (_root["\x13\f"].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["\x13\f"].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["\x13\f"].GAMEBOX[this.arrTowers[_local4]]._linkable == true) {
_local6 = true;
}
_local4++;
}
if (_local6 == true) {
this.ToolTipSetup();
return(true);
}
} else if (_arg5 == 9) {
}
}
return(false);
};
_local2["3\x07"] = function (_arg2) {
if (_arg2 == 1) {
} else if (_arg2 == 2) {
this.\n\x02();
} else if (_arg2 == 3) {
} else if (_arg2 == 4) {
} else if (_arg2 == 5) {
} else if (_arg2 == 6) {
} else if (_arg2 == 7) {
this.8\x0B();
this.\n\x02();
} else if (_arg2 == 8) {
this.8\x0B();
this.\n\x02();
} else if (_arg2 == 9) {
}
};
_local2.ToolTipSetup = function () {
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
this["\x0E\x05"] = false;
this["1\n"] = true;
this["5\x05"] = 30;
this["\x05"] = 5;
this.\x14\x04();
};
_local2.Setup = function () {
this.towerSetup.comboIndex = 0;
this["3\x02"] = true;
this["[\x06"] = false;
this["1\n"] = false;
this["5\x05"] = -1;
this["\x1E\x02"] = false;
this["\x0B\x02"] = 0;
this.towerDimType = 40;
this["\r\x06"] = 60000;
this["\x16"] = 202000 /* 0x031510 */;
this.towerDepth = 50000;
this["\x1B\f"] = 61000;
this["&\x04"] = 70000 /* 0x011170 */;
this["9\x07"] = 80000 /* 0x013880 */;
this["0\x07"] = 100000 /* 0x0186A0 */;
this["&\x05"] = false;
this["(\x05"] = false;
this["\x0E\x05"] = false;
this["\x05"] = 0;
this["#\x0B"] = false;
this["7\x06"] = 0;
this["7\x06"] = 0;
this["\x06\n"] = {};
this["\x12\x04"] = {};
this.downTower = {};
this.upTower = {};
this["\x11\n"] = false;
this["[\x07"] = 0;
this["\x03\n"] = 0;
this[";\x0B"] = false;
Mouse.removeListener(this["?\x07"]);
var thisRef = this;
this["?\x07"] = new Object();
this["?\x07"].onMouseDown = function () {
thisRef.\x13\x02();
};
this["?\x07"].onMouseUp = function () {
thisRef.2\x0B();
};
Mouse.addListener(this["?\x07"]);
this.towerMem1 = "";
this.towerMem2 = "";
this.towerMem3 = "";
this.towerMem4 = "";
this.towerMem5 = "";
this["^\x02"] = false;
this["\f\x0B"] = new Array();
this.arrLinkage = new Array();
this.arrTowers = new Array();
this["'\x0B"] = new Array();
this.arrBullets = new Array();
this["\x18\n"] = new Array();
this["?\x04"] = new Array();
this["\x19\x05"] = new Array();
this["\x19\x07"] = new Array();
this["\x0E\x02"] = new Array();
this["\x12\x07"] = new Array();
this["\x06\f"] = new Array();
this["^\x0B"] = new Array();
this[">\n"] = new Array();
this["0\x03"] = new Array();
this["\x1A\x05"] = new Array();
this["\x1A\f"] = new Array();
this.fps = new \x0F\f();
this["\x18\x04"] = new 8\x05();
this["\x18\x04"].<\x03(_root["[\x0B"].inside);
this["\x18\x04"].\x1D\x0B();
this["\n\x03"] = new Tutorial();
this.tool = new \x1F\x0B(this["\x16"]);
this.tool["\x14\x07"] = -1;
this.map = new \x1C\x03();
this["\n\x07"] = new <();
this["\n\x07"].^\n(this.map.#());
this["8\x03"] = new \"\x04();
this["8\x03"].?\x03("top", _root, 100000);
this["8\x03"].?\x03("game", _root["\x13\f"].GAMEBOX, 110000);
this["8\x03"].?\x03("holes", _root["\x13\f"].GAMEBOX, 55000);
this["\x13\x05"] = new \f(_root["\x13\f"].GAMEBOX, 120000);
_root["\x13\f"].GAMEBOX.attachMovie("Doodad_Arrow", "Doodad_Arrow1", 49999);
_root["\x13\f"].GAMEBOX.Doodad_Arrow1._x = this.\r\x0B(4);
_root["\x13\f"].GAMEBOX.Doodad_Arrow1._y = this.\r\x0B(0);
_root["\x13\f"].GAMEBOX.Doodad_Arrow1.cacheAsBitmap = true;
_root["\x13\f"].GAMEBOX.attachMovie("Doodad_Arrow", "Doodad_Arrow2", 49998);
_root["\x13\f"].GAMEBOX.Doodad_Arrow2._x = this.\r\x0B(17);
_root["\x13\f"].GAMEBOX.Doodad_Arrow2._y = this.\r\x0B(0);
_root["\x13\f"].GAMEBOX.Doodad_Arrow2.cacheAsBitmap = true;
this["\x1C\n"] = false;
this.upgradeKey = 0;
this["\x0E\x03"] = 600;
this["=\x06"] = true;
this["2\x07"] = "playing";
this["`\x0B"] = "";
this.towerBuff = "";
this["\x05\n"] = false;
this.\x07\x0B();
if (_global.tutorialPrompt == true) {
this.\x1F\x03();
} else {
this["\x05"] = 0;
}
_global.toolTipSection = -1;
_root["\x13\f"].GAMEBOX.bg_types.gotoAndStop(this.towerSetup.arrGameModes[_global.typetype - 1].bg);
if (_global.typetype == 12) {
this.+\n();
}
this.ToolTipSetup();
this.tool.(\x07(9);
};
_local2["\x11\x03"] = function () {
if (_global.showFrameRate == true) {
this["@\x06"].\x11\x03();
}
switch (this["\x05"]) {
case 0 :
this["\x18\x04"].\x11\x03();
this.\x1B\x07();
this.\x12\x05();
this["8\x03"].\x11\x03();
this.6\x03();
this["\x13\x05"].\x11\x03();
this.3\n();
break;
case 1 :
this["\x18\x04"].\x11\x03();
this.\x1B\x07();
this.\x12\x05();
this["8\x03"].\x11\x03();
this.6\x03();
this["\x13\x05"].\x11\x03();
this.3\n();
break;
case 2 :
this.\x1B\x07();
break;
case 3 :
this.\x1B\x07();
this. \x07();
break;
case 4 :
this["\x18\x04"].\x11\x03();
this.\x1B\x07();
if (this["^\x02"] == false) {
this.\x10\x05();
}
this.\x12\x05();
this["8\x03"].\x11\x03();
this.6\x03();
this["\x13\x05"].\x11\x03();
this.3\n();
break;
case 5 :
break;
}
this.\x07();
if (Key.isDown(79)) {
if ((Key.isDown(76) && (Key.isDown(68))) && (Key.isDown(71))) {
this.\x05\x0B();
}
}
if ((this["\x0E\x05"] == true) && (this["^\x02"] == false)) {
if (Key.isDown(_global.hotKey1)) {
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
if (_global.typetype != 8) {
this.\x04\x04();
this["\x0E\x05"] = false;
}
} else if (Key.isDown(_global.hotKey2)) {
if (_root["\x13\f"].GAMEBOX[this.downTower.name]._upgrades > 0) {
if (this.upgradeKey == 0) {
this.upgradeKey = 15;
this.\x05\x03(1);
}
}
} else if (Key.isDown(_global.hotKey3)) {
if (_root["\x13\f"].GAMEBOX[this.downTower.name]._upgrades > 1) {
if (this.upgradeKey == 0) {
this.upgradeKey = 15;
this.\x05\x03(2);
}
}
} else if (Key.isDown(_global.hotKey4)) {
if (_root["\x13\f"].GAMEBOX[this.downTower.name]._upgrades > 2) {
if (this.upgradeKey == 0) {
this.upgradeKey = 15;
this.\x05\x03(3);
}
}
}
}
};
_local2["\x07"] = function () {
if (this.upgradeKey > 0) {
this.upgradeKey--;
}
};
_local2["\x12\x05"] = function () {
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]].\x11\x03();
_local3++;
}
_local3 = 0;
while (_local3 < this["\f\x0B"].length) {
_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]].\x11\x03();
_local3++;
}
_local3 = 0;
while (_local3 < this.arrBullets.length) {
_root["\x13\f"].GAMEBOX[this.arrBullets[_local3]].\x11\x03();
_local3++;
}
_local3 = 0;
while (_local3 < this["\x18\n"].length) {
_root["\x13\f"].GAMEBOX[this["\x18\n"][_local3]].\x11\x03();
_local3++;
}
};
_local2["\x13\x02"] = function () {
if ((this["#\x0B"] == false) && (this["1\n"] == false)) {
this["#\x0B"] = true;
var _local2 = this.'\x07(2);
this.downTower = this.,\x07(_local2.x, _local2.y, this.downTower.name);
if (this["\x05"] == 3) {
this["\x06\n"] = this.,\x07(_local2.x, _local2.y, this["\x06\n"].name);
if (this["\x06\n"].hit == true) {
this[";\x0B"] = true;
this.8\x0B();
this.\x07\x02();
this.6\x05();
this[";\x0B"] = false;
this["&\x07"] = true;
}
}
}
};
_local2["2\x0B"] = function () {
this["\x0E\x05"] = false;
this["\x1C\n"] = false;
if (this["1\n"] == false) {
this["#\x0B"] = false;
var _local3 = this.'\x07(2);
this.upTower = this.,\x07(_local3.x, _local3.y, "rock_lobsterUP");
if (this["\x05"] == 4) {
this.\x1F(this["\x0B\x02"]);
} else if (this["\x05"] == 3) {
if (_root.tower_menu.hitTest(_root._xmouse, _root._ymouse)) {
_root["\x13\f"].drawLine.removeMovieClip();
this["&\x07"] = false;
} else {
this.\x17\x02();
_root["\x13\f"].drawLine.removeMovieClip();
var _local4 = false;
if (this["&\x07"] == true) {
this["\x12\x04"] = this.,\x07(_local3.x, _local3.y, "---");
if (this["\x12\x04"].hit == true) {
var _local6 = this.1(this["\x06\n"], this["\x12\x04"]);
if (_local6 == false) {
var _local5 = this.`\x05(this["\x06\n"], this["\x12\x04"]);
if (_local5 == false) {
var _local7 = this.!\x04(this["\x06\n"], this["\x12\x04"]);
if (((_local7 == false) && _root["\x13\f"].GAMEBOX[this["\x06\n"].name]._linkable) && _root["\x13\f"].GAMEBOX[this["\x12\x04"].name]._linkable) {
if (this.\x0E\x06(this["\x06\n"], this["\x12\x04"]) == false) {
this.0\n(this["\x06\n"], this["\x12\x04"]);
}
} else if (_root["\x13\f"].GAMEBOX[this["\x06\n"].name]._linkable && _root["\x13\f"].GAMEBOX[this["\x12\x04"].name]._linkable) {
if (this["\x1E\x02"] == false) {
this.6\x05();
}
_local4 = true;
this.\x01\x02(this["\x06\n"]);
}
} else {
this.\x03\x04(this["\x12\x04"], this["\x06\n"]);
}
}
}
}
}
if (_local4 == false) {
this.8\x0B();
this.\x07\x02();
this["\x1E\x02"] = false;
}
this["&\x07"] = false;
}
this.]\x06();
}
};
_local2["3\n"] = function () {
if (this["\x0E\x03"] > 0) {
this["\x0E\x03"]--;
} else if (this["\x0E\x03"] == 0) {
if (this.\x0B(3) == true) {
this.tool.(\x07(3);
}
this["\x0E\x03"] = -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["\x13\x05"].,\x06(this.towerSetup.arrCombos[_arg2 - 2].comboText, 16724736);
this["\x13\x05"].\x1D\x06(_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["\x13\x05"].,\x06(this.towerSetup.arrCombos[_arg2 - 2].comboText, 16724736);
this["\x13\x05"].\x1D\x06(_arg2);
} else {
_arg2 = 10;
var _local5 = _arg2 * 3;
var _local4 = _arg2 * 60;
this["\x13\x05"].,\x06(((((_arg2 + "x Combo Tally! +") + _local5) + " Gold +") + _local4) + " Points", 16724736);
this.ScoreAddition(_local4, _local5);
}
} else {
var _local5 = _arg2 * 3;
var _local4 = _arg2 * 60;
this["\x13\x05"].,\x06(((((_arg2 + "x Combo Tally! +") + _local5) + " Gold +") + _local4) + " Points", 16724736);
this.ScoreAddition(_local4, _local5);
}
}
};
_local2["\x1F\x03"] = function () {
this.TutorialSetup();
this["\n\x03"].CreateNextObject();
this.\x01();
};
_local2[")\x05"] = function () {
_global.tutorialPrompt = false;
this.!\x07();
this.\x01();
};
_local2["]\x07"] = function (_arg4, _arg6, _arg5, _arg7) {
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if (_root["\x13\f"].GAMEBOX[_arg4].`\x02(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]]._x, _root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]]._y) < _arg6) {
_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]].DamageEnemy(_arg5, _arg7);
}
_local3++;
}
};
_local2["\x04\x07"] = function (_arg6) {
var _local4 = _root["\x13\f"].GAMEBOX;
var _local7 = new Array();
var _local8 = this.\x1D\f(_arg6);
var _local5 = 0;
while (_local5 < this["\f\x0B"].length) {
if (_local4[_arg6].`\x02(_local4[this["\f\x0B"][_local5]], false) < _local4[_arg6]._rRange) {
if (_local8) {
if (_local4[this["\f\x0B"][_local5]].splasher < 1) {
if (_local4[_arg6]._libName == "Tower_414") {
_global.SoundManager.PlaySound("pit", 100);
} else if (_local4[_arg6]._libName == "Tower_415") {
if (this.\x1D\x04(0, 100) < 60) {
_global.SoundManager.PlaySound("fish", 60);
}
}
}
_local4[this["\f\x0B"][_local5]]["\x13\n"] = true;
_local4[this["\f\x0B"][_local5]].Stop();
}
_local7.push(_local4[this["\f\x0B"][_local5]]);
}
_local5++;
}
return(_local7);
};
_local2["8"] = function (_arg6) {
var _local4 = _root["\x13\f"].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]].`\x02(_local4[_arg6], false) < _local4[this.arrTowers[_local5]]._rRange) {
_local4[_arg6]["5\x06"] = 416;
return(true);
}
}
} else if (this.map.Tower417Check(this.\"\x03(_local4[_arg6]._x), this.\"\x03(_local4[_arg6]._y))) {
if (_local4[this.arrTowers[_local5]].`\x02(_local4[_arg6], false) < _local4[this.arrTowers[_local5]]._rRange) {
_local4[_arg6]["5\x06"] = 417;
_global.SoundManager.PlaySound("tar", 100);
return(true);
}
}
_local5++;
}
return(false);
};
_local2["1\x07"] = function (_arg5) {
var _local4 = _root["\x13\f"].GAMEBOX;
var _local6 = new Array();
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if (_local4[_arg5].`\x02(_local4[this["\f\x0B"][_local3]], false) < _local4[_arg5]._rRange) {
_local6.push(_local4[this["\f\x0B"][_local3]]);
}
_local3++;
}
return(_local6);
};
_local2["\x1D\f"] = function (_arg2) {
if ((_root["\x13\f"].GAMEBOX[_arg2]._libName == "Tower_407") || (_root["\x13\f"].GAMEBOX[_arg2]._libName == "Tower_416")) {
return(false);
}
return(true);
};
_local2["9\x0B"] = function (_arg5) {
var _local4 = _root["\x13\f"].GAMEBOX;
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if (_local4[_arg5].`\x02(_local4[this["\f\x0B"][_local3]], false) < _local4[_arg5]._rRange) {
_local4[_arg5]._targetPirate = _local4[this["\f\x0B"][_local3]];
return(true);
}
_local3++;
}
return(false);
};
_local2["\n\x06"] = function (_arg6, _arg7, _arg5) {
var _local4 = _root["\x13\f"].GAMEBOX;
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if (_local4[_arg6].`\x02(_local4[this["\f\x0B"][_local3]], false) < _arg7) {
_local4[this["\f\x0B"][_local3]].DamageEnemy(_arg5, 4);
}
_local3++;
}
};
_local2.CheckBulletTargets = function (_arg6) {
var _local5 = _root["\x13\f"].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["\x13\f"].GAMEBOX[_arg4].removeMovieClip();
break;
}
_local3++;
}
};
_local2.SwingHit = function (_arg4, _arg5) {
var _local3 = _root["\x13\f"].GAMEBOX;
this.\x14\x06(_arg4, _local3[_arg4]._rRange, _arg5, _local3[_arg4]._dim);
};
_local2["?\x0B"] = function (_arg4) {
var _local3 = _root["\x13\f"].GAMEBOX;
var _local5 = 0;
while (_local5 < this["\x1A\f"].length) {
if (_local3[this["\x1A\f"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x1A\f"][_local5]]._bam = true;
_local3[this["\x1A\f"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["?\x04"].length) {
if (_local3[this["?\x04"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["?\x04"][_local5]]._bam = true;
_local3[this["?\x04"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x19\x05"].length) {
if (_local3[this["\x19\x05"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x19\x05"][_local5]]._bam = true;
_local3[this["\x19\x05"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x19\x07"].length) {
if (_local3[this["\x19\x07"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x19\x07"][_local5]]._bam = true;
_local3[this["\x19\x07"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x0E\x02"].length) {
if (_local3[this["\x0E\x02"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x0E\x02"][_local5]]._bam = true;
_local3[this["\x0E\x02"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x12\x07"].length) {
if (_local3[this["\x12\x07"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x12\x07"][_local5]]._bam = true;
_local3[this["\x12\x07"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x06\f"].length) {
if (_local3[this["\x06\f"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x06\f"][_local5]]._bam = true;
_local3[this["\x06\f"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["^\x0B"].length) {
if (_local3[this["^\x0B"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["^\x0B"][_local5]]._bam = true;
_local3[this["^\x0B"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this[">\n"].length) {
if (_local3[this[">\n"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this[">\n"][_local5]]._bam = true;
_local3[this[">\n"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["0\x03"].length) {
if (_local3[this["0\x03"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["0\x03"][_local5]]._bam = true;
_local3[this["0\x03"][_local5]].\x1F\x05();
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\x1A\x05"].length) {
if (_local3[this["\x1A\x05"][_local5]].hitTest(_local3[_arg4]._x, _local3[_arg4]._y, true)) {
_local3[this["\x1A\x05"][_local5]]._bam = true;
_local3[this["\x1A\x05"][_local5]].\x1F\x05();
}
_local5++;
}
};
_local2["6\x03"] = function () {
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if ((_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]]._x < -30) || (_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]]._x > ((0 + _root["\x13\f"]._x) + _root["\x13\f"]._width))) {
_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]].\"\x06();
}
var _local4 = this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]]._x);
if ((_local4 & 1) == 0) {
_local4--;
}
this.+\f(this["\f\x0B"][_local3]);
switch (_local4) {
case 1 :
this.\x15(this["\f\x0B"][_local3], this["?\x04"]);
break;
case 3 :
this.\x15(this["\f\x0B"][_local3], this["\x19\x05"]);
break;
case 5 :
this.\x15(this["\f\x0B"][_local3], this["\x19\x07"]);
break;
case 7 :
this.\x15(this["\f\x0B"][_local3], this["\x0E\x02"]);
break;
case 9 :
this.\x15(this["\f\x0B"][_local3], this["\x12\x07"]);
break;
case 11 :
this.\x15(this["\f\x0B"][_local3], this["\x06\f"]);
break;
case 13 :
this.\x15(this["\f\x0B"][_local3], this["^\x0B"]);
break;
case 15 :
this.\x15(this["\f\x0B"][_local3], this[">\n"]);
break;
case 17 :
this.\x15(this["\f\x0B"][_local3], this["0\x03"]);
break;
case 19 :
this.\x15(this["\f\x0B"][_local3], this["\x1A\x05"]);
}
_local3++;
}
};
_local2["+\f"] = function (_arg5) {
var _local4 = _root["\x13\f"].GAMEBOX;
var _local6 = 0;
while (_local6 < this["\x1A\f"].length) {
if (_local4[this["\x1A\f"][_local6]].`\x02(_local4[_arg5], false) < _local4[this["\x1A\f"][_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["\x1A\f"][_local6]) {
_local11 = true;
}
_local7++;
}
if (_local11 == false) {
_local10 = true;
}
}
if (_local10 == true) {
var _local8 = false;
var _local9 = 0;
if (_local4[this["\x1A\f"][_local6]]._libName == "Tower_108") {
if (this.\x1D\x04(1, 10) <= 6) {
_local8 = true;
_local9 = 1;
}
if (_local8 == false) {
_local4[_arg5].arrPastLure.push(this["\x1A\f"][_local6]);
}
} else if (_local4[this["\x1A\f"][_local6]]._libName == "Tower_118") {
if ((_local4[_arg5].enemyType == 1) || (_local4[_arg5].enemyType == 6)) {
_local8 = true;
_local9 = 2;
}
} else if (_local4[this["\x1A\f"][_local6]]._libName == "Tower_119") {
if ((_local4[_arg5].enemyType == 2) || (_local4[_arg5].enemyType == 6)) {
_local8 = true;
_local9 = 3;
}
} else if (_local4[this["\x1A\f"][_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["\x1A\f"][_local6]);
_local4[_arg5]["<\x05"] = this.\"\x03(_local4[this["\x1A\f"][_local6]]._x);
_local4[_arg5]["\x1D"] = this.\"\x03(_local4[this["\x1A\f"][_local6]]._y);
_local4[_arg5]._blnGetLure = true;
if (this.\x1D\x04(0, 100) < 20) {
switch (_local9) {
case 1 :
_global.SoundManager.PlaySound("lure", 100);
break;
case 2 :
_global.SoundManager.PlaySound("greedy" + this.\x1D\x04(1, 2), 100);
break;
case 3 :
_global.SoundManager.PlaySound("lusty" + this.\x1D\x04(1, 3), 100);
break;
case 4 :
_global.SoundManager.PlaySound("thirsty" + this.\x1D\x04(1, 2), 100);
}
}
}
}
}
}
}
_local6++;
}
};
_local2["\x15"] = function (_arg6, _arg5) {
var _local2 = _root["\x13\f"].GAMEBOX;
var _local4 = 0;
while (_local4 < _arg5.length) {
if (_local2[_arg5[_local4]].`\x02(_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]].\x1F\x05();
_local3++;
}
break;
}
_local4++;
}
};
_local2["7\x0B"] = function (_arg5) {
var _local4 = _root["\x13\f"].GAMEBOX;
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if (_local4[_arg5].bHit.hitTest(_local4[this["\f\x0B"][_local3]])) {
if (_local4[this["\f\x0B"][_local3]].logTimmer < 0) {
_local4[this["\f\x0B"][_local3]]["7\x03"] = true;
}
}
_local3++;
}
};
_local2["\x14\x06"] = function (_arg4, _arg8, _arg7, _arg6) {
var _local3 = _root["\x13\f"].GAMEBOX;
if (_arg7 == 1) {
var _local5 = 0;
while (_local5 < this["\f\x0B"].length) {
if ((_local3[this["\f\x0B"][_local5]]._x < _local3[_arg4]._x) && (_local3[this["\f\x0B"][_local5]]._x >= (_local3[_arg4]._x - _arg8))) {
if ((_local3[this["\f\x0B"][_local5]]._y > _local3[_arg4]._y) && (_local3[this["\f\x0B"][_local5]]._y <= (_local3[_arg4]._y + _arg6))) {
_local3[this["\f\x0B"][_local5]].SetupPirate2(_local3[_arg4]._bump, _arg7);
_local3[this["\f\x0B"][_local5]].DamageEnemy(_local3[_arg4]._damage, 5);
}
}
_local5++;
}
} else if (_arg7 == 2) {
var _local5 = 0;
while (_local5 < this["\f\x0B"].length) {
if ((_local3[this["\f\x0B"][_local5]]._x > (_local3[_arg4]._x + _arg6)) && (_local3[this["\f\x0B"][_local5]]._x <= (_local3[_arg4]._x + (_arg6 + _arg8)))) {
if ((_local3[this["\f\x0B"][_local5]]._y > _local3[_arg4]._y) && (_local3[this["\f\x0B"][_local5]]._y <= (_local3[_arg4]._y + _arg6))) {
_local3[this["\f\x0B"][_local5]].SetupPirate2(_local3[_arg4]._bump, _arg7);
_local3[this["\f\x0B"][_local5]].DamageEnemy(_local3[_arg4]._damage, 5);
}
}
_local5++;
}
} else if (_arg7 == 3) {
var _local5 = 0;
while (_local5 < this["\f\x0B"].length) {
if ((_local3[this["\f\x0B"][_local5]]._x >= _local3[_arg4]._x) && (_local3[this["\f\x0B"][_local5]]._x < (_local3[_arg4]._x + _arg6))) {
if ((_local3[this["\f\x0B"][_local5]]._y < _local3[_arg4]._y) && (_local3[this["\f\x0B"][_local5]]._y >= (_local3[_arg4]._y - _arg8))) {
_local3[this["\f\x0B"][_local5]].SetupPirate2(_local3[_arg4]._bump, _arg7);
_local3[this["\f\x0B"][_local5]].DamageEnemy(_local3[_arg4]._damage, 5);
}
}
_local5++;
}
}
};
_local2["\x01\n"] = function () {
if (this["\x18\x04"].#\x05() == true) {
if (this.lives > 0) {
if (this["\f\x0B"].length == 0) {
this["2\x07"] = "win";
this["1\n"] = true;
this["\x05"] = 2;
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].pauser.gotoAndStop("win");
this.8\x0B();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
this.\x14\x04();
}
}
}
this.\x07\x0B();
};
_local2[" \x06"] = function () {
this["\x13\x05"].,\x06("-1 Lives", 16724736);
this.lives--;
this.\x01\n();
if (this.lives <= 0) {
this.lives = 0;
this["2\x07"] = "lose";
this["1\n"] = true;
this["\x05"] = 2;
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].pauser.gotoAndStop("lose");
this.8\x0B();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
this.\x14\x04();
}
this.\x07\x0B();
};
_local2.ScoreAddition = function (_arg3, _arg2) {
this.score = this.score + _arg3;
this.gold = this.gold + _arg2;
this.\x07\x0B();
};
_local2["\x04\x04"] = function () {
this.?\x05();
if ((_global.typetype != 8) && (this["^\x02"] == false)) {
this.\x01();
this["\x1C\n"] = true;
var _local5 = _root["\x13\f"].GAMEBOX[this.downTower.name]._libName;
if (this["\x05\n"] == false) {
this.gold = this.gold + (this.towerSetup.arrTowerSetup[this.\x06\x05(int(_local5.substr(6))) - 1].sell / 0.8);
} else {
this.gold = this.gold + this.towerSetup.arrTowerSetup[this.\x06\x05(int(_local5.substr(6))) - 1].sell;
}
this.\x07\x0B();
this.map.=\n(this["[\x07"], this["\x03\n"], this.towerSetup.arrTowerSetup[this.\x06\x05(int(_local5.substr(6))) - 1].squareDim);
var _local4 = 0;
while (_local4 < this.arrTowers.length) {
_root["\x13\f"].GAMEBOX[this.arrTowers[_local4]].\x02\x06(this.downTower.name);
_local4++;
}
if (_root["\x13\f"].GAMEBOX[this.downTower.name]._type == 2) {
this.3\x05(this.downTower.name);
}
if (_root["\x13\f"].GAMEBOX[this.downTower.name]._type == 3) {
this["8\x03"].RemoveEffect(_root["\x13\f"].GAMEBOX[this.downTower.name]._timerRef._name);
if ((_root["\x13\f"].GAMEBOX[this.downTower.name]._libName == "Tower_414") || (_root["\x13\f"].GAMEBOX[this.downTower.name]._libName == "Tower_415")) {
this.>\x06(_root["\x13\f"].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["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].GAMEBOX[this.downTower.name].removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root.info_box.gotoAndStop(1);
this.%\f();
this["\x1E\x02"] = true;
}
};
_local2[">\x06"] = function (_arg2) {
var _local1 = 0;
while (_local1 < _arg2[")\x02"].length) {
_arg2[")\x02"][_local1].Start();
_local1++;
}
};
_local2["3\x05"] = function (_arg4) {
var _local5 = _root["\x13\f"].GAMEBOX;
var _local3 = this.\"\x03(_local5[_arg4]._x);
if ((_local3 & 1) == 0) {
_local3--;
}
if (_local3 == 1) {
this["?\x04"] = this.\x02\x04(this["?\x04"], _arg4);
} else if (_local3 == 3) {
this["\x19\x05"] = this.\x02\x04(this["\x19\x05"], _arg4);
} else if (_local3 == 5) {
this["\x19\x07"] = this.\x02\x04(this["\x19\x07"], _arg4);
} else if (_local3 == 7) {
this["\x0E\x02"] = this.\x02\x04(this["\x0E\x02"], _arg4);
} else if (_local3 == 9) {
this["\x12\x07"] = this.\x02\x04(this["\x12\x07"], _arg4);
} else if (_local3 == 11) {
this["\x06\f"] = this.\x02\x04(this["\x06\f"], _arg4);
} else if (_local3 == 13) {
this["^\x0B"] = this.\x02\x04(this["^\x0B"], _arg4);
} else if (_local3 == 15) {
this[">\n"] = this.\x02\x04(this[">\n"], _arg4);
} else if (_local3 == 17) {
this["0\x03"] = this.\x02\x04(this["0\x03"], _arg4);
} else if (_local3 == 19) {
this["\x1A\x05"] = this.\x02\x04(this["\x1A\x05"], _arg4);
}
};
_local2["\x02\x04"] = function (_arg2, _arg3) {
var _local1 = 0;
while (_local1 < _arg2.length) {
if (_arg2[_local1] == _arg3) {
_arg2.splice(_local1, 1);
}
_local1++;
}
return(_arg2);
};
_local2["\x05\x03"] = function (_arg11) {
if (this["^\x02"] == false) {
this.\x01();
var _local4 = _root["\x13\f"].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.\x06\x05(int(_local4[this.downTower.name]._libName.substr(6))) - 1].path1 - 1;
} else if (_arg11 == 2) {
var _local8 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_local4[this.downTower.name]._libName.substr(6))) - 1].path2 - 1;
} else if (_arg11 == 3) {
var _local8 = this.towerSetup.arrTowerSetup[this.\x06\x05(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["@"].gold_alert.gotoAndPlay("on");
} else {
this.gold = this.gold - this.towerSetup.arrTowerSetup[_local8].cost;
if (_root["\x13\f"].GAMEBOX[this.downTower.name]._type == 3) {
this["8\x03"].RemoveEffect(_root["\x13\f"].GAMEBOX[this.downTower.name]._timerRef._name);
if ((_root["\x13\f"].GAMEBOX[this.downTower.name]._libName == "Tower_414") || (_root["\x13\f"].GAMEBOX[this.downTower.name]._libName == "Tower_415")) {
this.>\x06(_root["\x13\f"].GAMEBOX[this.downTower.name]);
}
}
this.map.=\n(this.\"\x03(_local7), this.\"\x03(_local6), _local4[this.downTower.name]._dim);
_root["\x13\f"].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].\x0E\x07();
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
_local4[this.arrTowers[_local3]].\x02\x06(_local5);
_local3++;
}
}
this.map.\x18\x03(this.\"\x03(_local7), this.\"\x03(_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.%\f();
}
}
}
this.?\x05();
this.\x07\x0B();
this.]\x06();
}
};
} else {
// unexpected jump
}
_local2["]\x06"] = function () {
if (this["^\x02"] == false) {
if (((this["\x05"] != 2) && (this["\x05"] != 3)) && (this["\x1C\n"] == false)) {
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
this["\x11\n"] = true;
if (this.downTower.name == this.upTower.name) {
this.towerBuff = this.downTower.name;
this.?\x05();
this["\x0E\x05"] = true;
this["[\x07"] = this.\"\x03(_root["\x13\f"].GAMEBOX[this.upTower.name]._x);
this["\x03\n"] = this.\"\x03(_root["\x13\f"].GAMEBOX[this.upTower.name]._y);
this.\x01();
this["\x05"] = 1;
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x13\f"].GAMEBOX.attachMovie("selectTowerSquare", "towerSelectedSquare", 99995);
_root["\x13\f"].GAMEBOX.towerSelectedSquare._x = _root["\x13\f"].GAMEBOX[this.upTower.name]._x;
_root["\x13\f"].GAMEBOX.towerSelectedSquare._y = _root["\x13\f"].GAMEBOX[this.upTower.name]._y;
_root["\x13\f"].GAMEBOX.towerSelectedSquare._width = _root["\x13\f"].GAMEBOX[this.upTower.name]._dim;
_root["\x13\f"].GAMEBOX.towerSelectedSquare._height = _root["\x13\f"].GAMEBOX[this.upTower.name]._dim;
if ((_root["\x13\f"].GAMEBOX[this.upTower.name]._type == 1) && (_root["\x13\f"].GAMEBOX[this.upTower.name]._rRange != 0)) {
_root["\x13\f"].attachMovie("tower_range2", "tRange", 99996);
_root["\x13\f"].tRange._x = _root["\x13\f"].GAMEBOX[this.upTower.name]._x + (_root["\x13\f"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x13\f"].tRange._y = _root["\x13\f"].GAMEBOX[this.upTower.name]._y + (_root["\x13\f"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x13\f"].tRange._xscale = _root["\x13\f"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x13\f"].tRange._yscale = _root["\x13\f"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x13\f"].tRange.cacheAsBitmap = true;
} else if (_root["\x13\f"].GAMEBOX[this.upTower.name]._type == 3) {
if (_root["\x13\f"].GAMEBOX[this.upTower.name]._libName == "Tower_406") {
_root["\x13\f"].attachMovie("tower_range2", "tRange", 99996);
_root["\x13\f"].tRange._x = _root["\x13\f"].GAMEBOX[this.upTower.name]._x + (_root["\x13\f"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x13\f"].tRange._y = _root["\x13\f"].GAMEBOX[this.upTower.name]._y + (_root["\x13\f"].GAMEBOX[this.upTower.name]._dim / 2);
_root["\x13\f"].tRange._xscale = _root["\x13\f"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x13\f"].tRange._yscale = _root["\x13\f"].GAMEBOX[this.upTower.name]._rRange * 2;
_root["\x13\f"].tRange.cacheAsBitmap = true;
} else if (_root["\x13\f"].GAMEBOX[this.upTower.name]._libName == "Tower_402") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._width = 140;
_root["\x13\f"].tRange._x = (_root["\x13\f"].GAMEBOX[this.upTower.name]._x + 40) - _root["\x13\f"].tRange._width;
_root["\x13\f"].tRange._y = _root["\x13\f"].GAMEBOX[this.upTower.name]._y;
_root["\x13\f"].tRange.cacheAsBitmap = true;
} else if (_root["\x13\f"].GAMEBOX[this.upTower.name]._libName == "Tower_403") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._width = 140;
_root["\x13\f"].tRange._x = _root["\x13\f"].GAMEBOX[this.upTower.name]._x;
_root["\x13\f"].tRange._y = _root["\x13\f"].GAMEBOX[this.upTower.name]._y;
_root["\x13\f"].tRange.cacheAsBitmap = true;
} else if (_root["\x13\f"].GAMEBOX[this.upTower.name]._libName == "Tower_404") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._height = 140;
_root["\x13\f"].tRange._x = _root["\x13\f"].GAMEBOX[this.upTower.name]._x;
_root["\x13\f"].tRange._y = (_root["\x13\f"].GAMEBOX[this.upTower.name]._y - _root["\x13\f"].tRange._height) + 40;
_root["\x13\f"].tRange.cacheAsBitmap = true;
} else if (_root["\x13\f"].GAMEBOX[this.upTower.name]._libName == "Tower_405") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._height = 140;
_root["\x13\f"].tRange._x = _root["\x13\f"].GAMEBOX[this.upTower.name]._x;
_root["\x13\f"].tRange._y = _root["\x13\f"].GAMEBOX[this.upTower.name]._y;
_root["\x13\f"].tRange.cacheAsBitmap = true;
}
}
var tower = _root["\x13\f"].GAMEBOX[this.upTower.name]._libName;
if (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 0) {
_root.info_box.gotoAndStop("no_upgrade");
} else if (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 1) {
_root.info_box.gotoAndStop(3);
} else if (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 2) {
_root.info_box.gotoAndStop(4);
} else if (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 3) {
_root.info_box.gotoAndStop(6);
}
_root.info_box.tower_name_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].name;
var \x13\x03 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].damage;
if (\x13\x03 == 0) {
_root.info_box.tower_damage_txt.text = "None";
} else if (\x13\x03 < 1) {
_root.info_box.tower_damage_txt.text = (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].damage;
}
_root.info_box.range_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].range2;
_root.info_box.tower_damage_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].damage;
_root.info_box.reload_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].reload;
if (this["\x05\n"] == false) {
_root.info_box.sell_txt.text = "+" + (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].sell / 0.8);
} else {
_root.info_box.sell_txt.text = "+" + this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].sell;
}
_root.info_box.tower_info_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].info;
_root.info_box.pic_place.towerPic.removeMovieClip();
_root.info_box.pic_place.attachMovie(this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 0) {
} else if (this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 1) {
_root.info_box.tower_name_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].name;
var \x13\x03 = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].damage;
if (\x13\x03 == 0) {
_root.info_box.tower_damage_txt2.text = "None";
} else if (\x13\x03 < 1) {
_root.info_box.tower_damage_txt2.text = (this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].damage;
}
_root.info_box.reload_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].reload;
_root.info_box.buy_txt.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(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.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 2) {
_root.info_box.tower_name_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].name;
var \x13\x03 = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].damage;
if (\x13\x03 == 0) {
_root.info_box.tower_damage_txt2.text = "None";
} else if (\x13\x03 < 1) {
_root.info_box.tower_damage_txt2.text = (this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].damage;
}
_root.info_box.reload_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].reload;
_root.info_box.buy_txt.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(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.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].name;
var \x13\x03 = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].damage;
if (\x13\x03 == 0) {
_root.info_box.tower_damage_txt3.text = "None";
} else if (\x13\x03 < 1) {
_root.info_box.tower_damage_txt3.text = (this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].damage;
}
_root.info_box.reload_txt3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].reload;
_root.info_box.buy_txt2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(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.\x06\x05(int(tower.substr(6))) - 1].upgradeType == 3) {
_root.info_box.tUp_txt1.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].name;
_root.info_box.range1.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path1 - 1].range2;
_root.info_box.buy1.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(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.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].name;
_root.info_box.range2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path2 - 1].range2;
_root.info_box.buy2.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(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.\x06\x05(int(tower.substr(6))) - 1].path3 - 1].name;
_root.info_box.range3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(int(tower.substr(6))) - 1].path3 - 1].range2;
_root.info_box.buy3.text = this.towerSetup.arrTowerSetup[this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(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 \x19\x02 = _root.info_box;
var \f\x07 = _root.info_box.upgrade_btn;
var )\x06 = _root.info_box.upgrade_btn2;
var 5\x0B = _root.info_box.sell_btn;
var \x1D\x05 = _root.info_box.upgrade_btn3;
if ((this.)\x03(\x19\x02, \f\x07) || (this.)\x03(\x19\x02, )\x06))) || (this.)\x03(\x19\x02, 5\x0B) || (this.)\x03(\x19\x02, \x1D\x05)))) {
} else {
_root.info_box.gotoAndStop(1);
}
} else {
var \x19\x02 = _root.tower_menu;
var \f\x07 = _root.tower_menu.s401;
var )\x06 = _root.tower_menu.s402;
var 5\x0B = _root.tower_menu.s403;
var \x1D\x05 = _root.tower_menu.s404;
var [\n = _root.tower_menu.s405;
var 2\x05 = _root.tower_menu.s406;
var \x05\x02 = _root.tower_menu.s407;
var \x15\x02 = _root.tower_menu.s408;
var \x1F\x02 = _root.tower_menu.s109;
var \x15\x03 = _root.tower_menu.s410;
if (((((((((this.)\x03(\x19\x02, \f\x07) || (this.)\x03(\x19\x02, )\x06))) || (this.)\x03(\x19\x02, 5\x0B))) || (this.)\x03(\x19\x02, \x1D\x05))) || (this.)\x03(\x19\x02, [\n))) || (this.)\x03(\x19\x02, 2\x05))) || (this.)\x03(\x19\x02, \x05\x02))) || (this.)\x03(\x19\x02, \x15\x02))) || (this.)\x03(\x19\x02, \x1F\x02))) || (this.)\x03(\x19\x02, \x15\x03))) {
} else {
_root.info_box.gotoAndStop(1);
}
}
}
}
};
_local2[")\x03"] = 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["\x07\x02"] = function () {
this.\x01();
_root.info_box.gotoAndStop(1);
var _local3 = 0;
while (_local3 < this.arrTowers.length) {
var _local5 = _root["\x13\f"].GAMEBOX;
if (_local5[this.arrTowers[_local3]]._linkable == true) {
if (_local5[this.arrTowers[_local3]]._dim == 20) {
var _local10 = "Linkage_Circle_" + this["&\x04"];
_root["\x13\f"].attachMovie("L20", _local10, this["&\x04"]);
_root["\x13\f"][_local10]._x = _local5[this.arrTowers[_local3]]._x;
_root["\x13\f"][_local10]._y = _local5[this.arrTowers[_local3]]._y;
if (_local5[this.arrTowers[_local3]]._type == 2) {
_root["\x13\f"][_local10].gotoAndStop("green");
}
this.arrLinkage.push(_local10);
this["&\x04"]++;
if (this["&\x04"] > 74999) {
this["&\x04"] = 70000 /* 0x011170 */;
}
} else {
var _local10 = "Linkage_Circle_" + this["&\x04"];
_root["\x13\f"].attachMovie("L40", _local10, this["&\x04"]);
_root["\x13\f"][_local10]._x = _local5[this.arrTowers[_local3]]._x;
_root["\x13\f"][_local10]._y = _local5[this.arrTowers[_local3]]._y;
this.arrLinkage.push(_local10);
this["&\x04"]++;
if (this["&\x04"] > 74999) {
this["&\x04"] = 70000 /* 0x011170 */;
}
}
}
_local3++;
}
_root["\x13\f"].createEmptyMovieClip("lineContainer", 99998);
_root["\x13\f"].createEmptyMovieClip("lineContainer2", 99999);
_local3 = 0;
while (_local3 < this.arrTowers.length) {
if (_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._arrLinks.length > 0) {
var _local12 = _root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._dim / 2;
var _local8 = {name:this.arrTowers[_local3], cX:_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._x + _local12, cY:_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._y + _local12};
var _local4 = 0;
while (_local4 < _root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._arrLinks.length) {
var _local7 = false;
if (this[";\x0B"] == true) {
_local7 = this.'\x02(_local8);
}
var _local6 = _root["\x13\f"].GAMEBOX[_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4]]._dim / 2;
var _local9 = {name:_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4], cX:_root["\x13\f"].GAMEBOX[_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4]]._x + _local6, cY:_root["\x13\f"].GAMEBOX[_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._arrLinks[_local4]]._y + _local6};
this.\x10\f(_local8, _local9, _local7);
_local4++;
}
}
_local3++;
}
if (this.\x0B(7) == true) {
this.tool.(\x07(7);
} else if (this.\x0B(8) == true) {
this.tool.(\x07(8);
}
};
_local2["8\x0B"] = function () {
this.\x01();
_root.tower_menu.type_txt.text = "";
_root.tower_menu.link_txt.text = "";
_root["\x13\f"].lineContainer.removeMovieClip();
var _local3 = 0;
while (_local3 < this.arrLinkage.length) {
_root["\x13\f"][this.arrLinkage[_local3]].removeMovieClip();
_local3++;
}
delete this.arrLinkage;
this.arrLinkage = new Array();
};
_local2["\x0E\x07"] = function () {
_root["\x13\f"].GAMEBOX[this["\x06\n"].name].\x0E\x07();
this.8\x0B();
this.\x07\x02();
this.6\x05();
this.\x01\x02(this["\x06\n"]);
};
_local2["%\x05"] = function (_arg4) {
var _local2 = _root["\x13\f"].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["\x13\f"].GAMEBOX[_arg4]._arrLinks.length;
};
_local2["\x0E\x06"] = function (_arg3, _arg2) {
return(_root["\x13\f"].GAMEBOX[_arg2.name].\x12\x03(_arg3.name));
};
_local2["\x01\x02"] = function (_arg3) {
this.%\x05(_arg3.name);
_root.tower_menu.gotoAndStop(3);
};
_local2["\x17\x02"] = function () {
_root["\x13\f"].tRange.removeMovieClip();
_root.tower_menu.type_txt.text = "";
_root.tower_menu.link_txt.text = "";
_root["-\x02"].gotoAndStop("on");
_root["@"].gotoAndStop("on");
_root.tower_menu.gotoAndStop("on");
_root["\x01\x06"].gotoAndStop("on");
_root["[\x0B"].gotoAndStop("on");
};
_local2["'\x02"] = function (_arg2) {
if (_arg2.name == this["\x06\n"].name) {
return(true);
}
return(false);
};
_local2["\x10\f"] = function (_arg6, _arg3, _arg15) {
if (_arg15 == false) {
if (_root["\x13\f"].GAMEBOX[_arg6.name]._type == 2) {
var _local7 = _root["\x13\f"].lineContainer;
_local7.lineStyle(2, 6736896, 80);
} else {
var _local7 = _root["\x13\f"].lineContainer;
_local7.lineStyle(2, 6750207, 50);
}
} else {
var _local7 = _root["\x13\f"].lineContainer2;
_local7.lineStyle(2, 16711782, 100);
}
var _local2 = new Vector();
_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["\x13\f"].GAMEBOX[_arg6.name]._dim / 2);
_local2._y = Math.sin(_local10) * (_root["\x13\f"].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["!\x04"] = function (_arg2, _arg1) {
if (_arg2.name == _arg1.name) {
return(true);
}
return(false);
};
_local2["\x1F\x04"] = function (_arg3) {
if (this["^\x02"] == false) {
if (_root["\x13\f"].GAMEBOX[this["\x06\n"].name]._rRange != 0) {
_root["\x13\f"].attachMovie("tower_range", "tRange", 99996);
_root["\x13\f"].tRange._x = _root["\x13\f"][_arg3]._x + (_root["\x13\f"][_arg3]._width / 2);
_root["\x13\f"].tRange._y = _root["\x13\f"][_arg3]._y + (_root["\x13\f"][_arg3]._height / 2);
_root["\x13\f"].tRange._xscale = _root["\x13\f"].GAMEBOX[this["\x06\n"].name]._rRange * 2;
_root["\x13\f"].tRange._yscale = _root["\x13\f"].GAMEBOX[this["\x06\n"].name]._rRange * 2;
}
}
};
_local2["6\x05"] = function () {
var _local3 = 0;
while (_local3 < this.arrLinkage.length) {
if ((_root["\x13\f"][this.arrLinkage[_local3]]._x == _root["\x13\f"].GAMEBOX[this["\x06\n"].name]._x) && (_root["\x13\f"][this.arrLinkage[_local3]]._y == _root["\x13\f"].GAMEBOX[this["\x06\n"].name]._y)) {
_root["\x13\f"][this.arrLinkage[_local3]].gotoAndStop("pink");
this.\x1F\x04(this.arrLinkage[_local3]);
break;
}
_local3++;
}
};
_local2["0\n"] = function (_arg3, _arg2) {
_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.push(_arg2.name);
};
_local2["\x03\x04"] = function (_arg3, _arg4) {
var _local2 = 0;
while (_local2 < _root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.length) {
if (_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks[_local2] == _arg4.name) {
_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.splice(_local2, 1);
}
_local2++;
}
};
_local2["`\x05"] = function (_arg4, _arg3) {
if (_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.length == 0) {
return(false);
}
var _local2 = 0;
while (_local2 < _root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.length) {
if (_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks[_local2] == _arg4.name) {
return(true);
}
_local2++;
}
return(false);
};
_local2["1"] = function (_arg3, _arg4) {
if (_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.length == 0) {
return(false);
}
var _local2 = 0;
while (_local2 < _root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks.length) {
if (_root["\x13\f"].GAMEBOX[_arg3.name]._arrLinks[_local2] == _arg4.name) {
return(true);
}
_local2++;
}
return(false);
};
_local2[" \x07"] = function () {
if (this["&\x07"] == true) {
if (_root["\x13\f"].GAMEBOX[this["\x06\n"].name]._linkable == true) {
var _local11 = this.'\x07(2);
var _local13 = this.,\x07(_local11.x, _local11.y, "---");
if (this["\x06\n"].name != _local13.name) {
_root["\x13\f"].drawLine.removeMovieClip();
_root["\x13\f"].createEmptyMovieClip("drawLine", 88888);
_root["\x13\f"].drawLine.lineStyle(2, 16711782);
var _local6 = 0;
if (this["\x06\n"].dim == 20) {
_local6 = 10;
}
var _local3 = new Vector();
_local3._x = (this["\x06\n"].cX - _root["\x13\f"]._xmouse) - _local6;
_local3._y = (this["\x06\n"].cY - _root["\x13\f"]._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["\x06\n"].dim / 2);
_local3._y = Math.sin(_local9) * (this["\x06\n"].dim / 2);
var _local4 = {x:this["\x06\n"].cX - _local3._x, y:this["\x06\n"].cY - _local3._y};
var _local5 = {x:_root["\x13\f"]._xmouse, y:_root["\x13\f"]._ymouse};
_local4.x = _local4.x - _local6;
_local4.y = _local4.y - _local6;
_root["\x13\f"].drawLine.moveTo(_local4.x, _local4.y);
_root["\x13\f"].drawLine.lineTo(_local5.x, _local5.y);
_local3._x = this["\x06\n"].cX - _root["\x13\f"]._xmouse;
_local3._y = this["\x06\n"].cY - _root["\x13\f"]._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["\x13\f"]._xmouse, y:_root["\x13\f"]._ymouse};
_local5 = {x:_local3._x + _root["\x13\f"]._xmouse, y:_local3._y + _root["\x13\f"]._ymouse};
_root["\x13\f"].drawLine.moveTo(_local4.x, _local4.y);
_root["\x13\f"].drawLine.lineTo(_local5.x, _local5.y);
_local3._x = Math.cos(_local10) * 10;
_local3._y = Math.sin(_local10) * 10;
_local4 = {x:_root["\x13\f"]._xmouse, y:_root["\x13\f"]._ymouse};
_local5 = {x:_local3._x + _root["\x13\f"]._xmouse, y:_local3._y + _root["\x13\f"]._ymouse};
_root["\x13\f"].drawLine.moveTo(_local4.x, _local4.y);
_root["\x13\f"].drawLine.lineTo(_local5.x, _local5.y);
} else {
_root["\x13\f"].drawLine.removeMovieClip();
}
}
}
};
_local2["%\f"] = function () {
this["\n\x07"].\x0E\x0B();
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]].SetupPirate();
_local3++;
}
};
_local2["0\x02"] = function (_arg7, _arg6, _arg8, _arg9) {
if ((this["\x05"] != 2) && (this["\x05"] != 3)) {
var _local4 = this["\x1B\f"];
this["\x1B\f"]++;
if (this["\x1B\f"] >= 62000) {
this["\x1B\f"] = 61000;
}
var _local3 = "Pirate_" + _local4;
var _local5 = "Enemy_" + _arg8;
_root["\x13\f"].GAMEBOX.attachMovie(_local5, _local3, _local4);
_root["\x13\f"].GAMEBOX[_local3]._x = this.\r\x0B(_arg7) + 10;
_root["\x13\f"].GAMEBOX[_local3]._y = this.\r\x0B(_arg6) + 10;
_root["\x13\f"].GAMEBOX[_local3].SetupPirate();
_root["\x13\f"].GAMEBOX[_local3].enemyLife = (_root["\x13\f"].GAMEBOX[_local3].enemyTotalLife = Math.round(_root["\x13\f"].GAMEBOX[_local3].enemyLife * _arg9));
this["\f\x0B"].push(_local3);
}
};
_local2["5\x03"] = function (_arg3) {
var _local2 = 0;
while (_local2 < this["\f\x0B"].length) {
if (_arg3 == this["\f\x0B"][_local2]) {
return(true);
}
_local2++;
}
return(false);
};
_local2["-\x06"] = function (_arg4) {
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
if (_arg4 == this["\f\x0B"][_local3]) {
this["\f\x0B"].splice(_local3, 1);
break;
}
_local3++;
}
this.\x01\n();
_root["\x13\f"].GAMEBOX[_arg4].removeMovieClip();
};
_local2["'\x07"] = function (_arg7) {
var _local2 = {x:_root._xmouse, y:_root._ymouse};
_root["\x13\f"].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["\x18\x05"] = function (_arg2) {
this.gold = this.gold - this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg2)) - 1].cost;
this.\x07\x0B();
};
_local2["!\x03"] = function (_arg4) {
var _local3 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg4)) - 1].cost;
if ((this.gold - _local3) < 0) {
this["(\x05"] = false;
this["&\x05"] = false;
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
this.\x01();
this["\x05"] = 1;
return(false);
}
if (this["^\x02"] == true) {
return(false);
}
return(true);
};
_local2["\x13\x07"] = function (_arg4) {
this.map.\x18\x03(this.\"\x03(this["7\x06"]), this.\"\x03(this["\x15\x04"]), this.towerSetup.arrTowerSetup[this.\x06\x05(_arg4) - 1].squareDim, _arg4);
var _local3 = true;
if (this["\n\x07"].&(14, 28, 14, 0) == null) {
_root.attachMovie("BlockPathNot", "BlockPathNot", 201000);
_root.BlockPathNot._x = _root._xmouse;
_root.BlockPathNot._y = _root._ymouse;
_local3 = false;
}
this.map.\x18\x03(this.\"\x03(this["7\x06"]), this.\"\x03(this["\x15\x04"]), this.towerSetup.arrTowerSetup[this.\x06\x05(_arg4) - 1].squareDim, 0);
if (this["^\x02"] == true) {
return(false);
}
return(_local3);
};
_local2["\x1F"] = function (_arg5) {
if (((this["\x05"] == 4) && (this["(\x05"] == true)) && (this["^\x02"] == false)) {
if ((((_root._xmouse >= _root["\x13\f"]._x) && (_root._xmouse <= (_root["\x13\f"]._x + 439))) && (_root._ymouse >= _root["\x13\f"]._y)) && (_root._ymouse <= (_root["\x13\f"]._y + _root["\x13\f"]._height))) {
if (this.!\x03(this["\x0B\x02"])) {
var _local6 = this.\x13\x07(_arg5);
if (_local6 == true) {
this["=\x06"] = false;
var _local3 = "towerObj_" + this.towerDepth;
var _local7 = "Tower_" + _arg5;
_root["\x13\f"].GAMEBOX.attachMovie(_local7, _local3, this.towerDepth);
this.\x18\x05(this["\x0B\x02"]);
if (this.towerSetup.arrTowerSetup[this.\x06\x05(_arg5) - 1].squareDim == 40) {
if (this["7\x06"] >= 420) {
_root["\x13\f"].GAMEBOX[_local3]._x = this["7\x06"] - 20;
} else {
_root["\x13\f"].GAMEBOX[_local3]._x = this["7\x06"];
}
if (this["\x15\x04"] >= 560) {
_root["\x13\f"].GAMEBOX[_local3]._y = this["\x15\x04"] - 20;
} else {
_root["\x13\f"].GAMEBOX[_local3]._y = this["\x15\x04"];
}
this.arrTowers.push(_local3);
} else if (this.towerSetup.arrTowerSetup[this.\x06\x05(_arg5) - 1].squareDim == 20) {
var _local4 = this.\"\x03(this["7\x06"]);
_root["\x13\f"].GAMEBOX[_local3]._x = this["7\x06"];
_root["\x13\f"].GAMEBOX[_local3]._y = this["\x15\x04"];
this.arrTowers.push(_local3);
if (_root["\x13\f"].GAMEBOX[_local3]._type == 2) {
if ((_local4 & 1) == 0) {
_local4--;
}
if (_local4 == 1) {
this["?\x04"].push(_local3);
} else if (_local4 == 3) {
this["\x19\x05"].push(_local3);
} else if (_local4 == 5) {
this["\x19\x07"].push(_local3);
} else if (_local4 == 7) {
this["\x0E\x02"].push(_local3);
} else if (_local4 == 9) {
this["\x12\x07"].push(_local3);
} else if (_local4 == 11) {
this["\x06\f"].push(_local3);
} else if (_local4 == 13) {
this["^\x0B"].push(_local3);
} else if (_local4 == 15) {
this[">\n"].push(_local3);
} else if (_local4 == 17) {
this["0\x03"].push(_local3);
} else if (_local4 == 19) {
this["\x1A\x05"].push(_local3);
}
if (_root["\x13\f"].GAMEBOX[_local3]._rRange2 != 0) {
this["\x1A\f"].push(_local3);
}
}
}
this.map.\x18\x03(this.\"\x03(this["7\x06"]), this.\"\x03(this["\x15\x04"]), this.towerSetup.arrTowerSetup[this.\x06\x05(_arg5) - 1].squareDim, _arg5);
if (_root["\x13\f"].GAMEBOX[_local3]._type != 2) {
this.%\f();
}
this.towerDepth++;
if (this.towerDepth > 54999) {
this.towerDepth = 50000;
}
if (this.\x0B(4) == true) {
this.tool.(\x07(4);
} else if (this.\x0B(5) == true) {
this.tool.(\x07(5);
} else if (this.\x0B(6) == true) {
this.tool.(\x07(6);
}
}
} else {
_root["@"].gold_alert.gotoAndPlay("on");
}
}
}
};
_local2["+\n"] = 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["=\x06"] = 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["\x13\f"].GAMEBOX.attachMovie(_local11, _local3, int(_local9.substr(9)));
_root["\x13\f"].GAMEBOX[_local3]._x = _local8;
_root["\x13\f"].GAMEBOX[_local3]._y = _local10;
this.arrTowers.push(_local3);
if (this.towerSetup.arrTowerSetup[this.\x06\x05(int(_local7.substr(6))) - 1].squareDim == 20) {
var _local4 = this.\"\x03(_local8);
if (_root["\x13\f"].GAMEBOX[_local3]._type == 2) {
if ((_local4 & 1) == 0) {
_local4--;
}
if (_local4 == 1) {
this["?\x04"].push(_local3);
} else if (_local4 == 3) {
this["\x19\x05"].push(_local3);
} else if (_local4 == 5) {
this["\x19\x07"].push(_local3);
} else if (_local4 == 7) {
this["\x0E\x02"].push(_local3);
} else if (_local4 == 9) {
this["\x12\x07"].push(_local3);
} else if (_local4 == 11) {
this["\x06\f"].push(_local3);
} else if (_local4 == 13) {
this["^\x0B"].push(_local3);
} else if (_local4 == 15) {
this[">\n"].push(_local3);
} else if (_local4 == 17) {
this["0\x03"].push(_local3);
} else if (_local4 == 19) {
this["\x1A\x05"].push(_local3);
}
if (_root["\x13\f"].GAMEBOX[_local3]._rRange2 != 0) {
this["\x1A\f"].push(_local3);
}
}
}
this.map.\x18\x03(this.\"\x03(_local8), this.\"\x03(_local10), this.towerSetup.arrTowerSetup[this.\x06\x05(int(_local7.substr(6))) - 1].squareDim, int(_local7.substr(6)));
_root["\x13\f"].GAMEBOX[_local3]._arrLinks = _local5[_local6].arrLinkage;
_local6++;
}
this.towerDepth = int(_local9.substr(9)) + 1;
};
_local2["\x06\x05"] = function (_arg1) {
_arg1 = _arg1 % 100;
return(_arg1);
};
_local2["\x10\x05"] = function () {
_root["\x13\f"].tRange.removeMovieClip();
if (_root["\x13\f"].GAMEBOX.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local4 = {};
_local4 = this.'\x07(1);
var _local7 = false;
var _local6 = false;
var _local5 = false;
this["7\x06"] = _local4.x - (_local4.x % 20);
this["\x15\x04"] = _local4.y - (_local4.y % 20);
if (this.towerDimType == 40) {
if (this["\x15\x04"] >= 560) {
_local6 = true;
this["\x15\x04"] = this["\x15\x04"] - 20;
}
if (this["7\x06"] >= 420) {
_local7 = true;
this["7\x06"] = this["7\x06"] - 20;
}
}
if (this.towerDimType == 40) {
if (((this["\x15\x04"] >= 540) || (this["7\x06"] >= 400)) || (this["\x15\x04"] < 20)) {
_local5 = true;
} else if (((this["\x15\x04"] >= 560) || (this["7\x06"] >= 420)) || (this["\x15\x04"] < 20)) {
_local5 = true;
}
}
if (this["&\x05"] == false) {
this["&\x05"] = true;
_root["\x13\f"].GAMEBOX.attachMovie("towerOverSquare", "towerOverSquare", this["\r\x06"]);
_root["\x13\f"].GAMEBOX.towerOverSquare._width = this.towerDimType;
_root["\x13\f"].GAMEBOX.towerOverSquare._height = this.towerDimType;
}
_root["\x13\f"].GAMEBOX.towerOverSquare._x = this["7\x06"];
_root["\x13\f"].GAMEBOX.towerOverSquare._y = this["\x15\x04"];
var _local8 = this.IsGridOccupied(this.\"\x03(this["7\x06"]), this.\"\x03(this["\x15\x04"]), _local7, _local6);
if ((_local8 == true) || (_local5 == true)) {
_root["\x13\f"].GAMEBOX.towerOverSquare.gotoAndStop("red");
this["(\x05"] = false;
} else {
_root["\x13\f"].GAMEBOX.towerOverSquare.gotoAndStop("green");
this["(\x05"] = true;
if (this.towerMem5 == "Tower_402") {
_root["\x13\f"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("left");
} else if (this.towerMem5 == "Tower_403") {
_root["\x13\f"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("right");
} else if (this.towerMem5 == "Tower_404") {
_root["\x13\f"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("up");
} else if (this.towerMem5 == "Tower_405") {
_root["\x13\f"].GAMEBOX.towerOverSquare.greeny.gotoAndStop("down");
}
var _local3 = _root["\x13\f"].GAMEBOX.towerOverSquare;
if (this.towerMem5 == "Tower_401") {
_root["\x13\f"].attachMovie("tower_range2", "tRange", 99996);
_root["\x13\f"].tRange._x = _local3._x + 20;
_root["\x13\f"].tRange._y = _local3._y + 20;
_root["\x13\f"].tRange._xscale = (_root["\x13\f"].tRange._yscale = this.towerSetup.arrTowerSetup[0].range * 2);
} else if (this.towerMem5 == "Tower_406") {
_root["\x13\f"].attachMovie("tower_range2", "tRange", 99996);
_root["\x13\f"].tRange._x = _local3._x + 20;
_root["\x13\f"].tRange._y = _local3._y + 20;
_root["\x13\f"].tRange._xscale = (_root["\x13\f"].tRange._yscale = this.towerSetup.arrTowerSetup[5].range * 2);
} else if (this.towerMem5 == "Tower_402") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._width = 140;
_root["\x13\f"].tRange._x = (_local3._x + 40) - _root["\x13\f"].tRange._width;
_root["\x13\f"].tRange._y = _local3._y;
} else if (this.towerMem5 == "Tower_403") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._width = 140;
_root["\x13\f"].tRange._x = _local3._x;
_root["\x13\f"].tRange._y = _local3._y;
} else if (this.towerMem5 == "Tower_404") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._height = 140;
_root["\x13\f"].tRange._x = _local3._x;
_root["\x13\f"].tRange._y = (_local3._y - _root["\x13\f"].tRange._height) + 40;
} else if (this.towerMem5 == "Tower_405") {
_root["\x13\f"].attachMovie("tower_range3", "tRange", 99996);
_root["\x13\f"].tRange._height = 140;
_root["\x13\f"].tRange._x = _local3._x;
_root["\x13\f"].tRange._y = _local3._y;
}
}
} else {
this["(\x05"] = false;
this["&\x05"] = false;
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
}
};
// unexpected jump
// unexpected jump
_local2[",\x07"] = 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["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._dim == 20) {
if (_arg6 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._x)) {
if (_arg5 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._y)) {
_local4 = true;
}
}
} else {
if (_arg6 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._x)) {
if (_arg5 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._y)) {
_local4 = true;
}
}
if (_arg6 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._x) + 1)) {
if (_arg5 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._y)) {
_local4 = true;
}
}
if (_arg6 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._x)) {
if (_arg5 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._y) + 1)) {
_local4 = true;
}
}
if (_arg6 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._x) + 1)) {
if (_arg5 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local3]]._y) + 1)) {
_local4 = true;
}
}
}
if (_local4 == true) {
_local7 = _local3;
break;
}
_local3++;
}
if (_local4 == true) {
_local8.hit = true;
_local8.type = _root["\x13\f"].GAMEBOX[this.arrTowers[_local7]]._type;
_local8.name = this.arrTowers[_local7];
_local8.cX = _root["\x13\f"].GAMEBOX[this.arrTowers[_local7]]._x + 20;
_local8.cY = _root["\x13\f"].GAMEBOX[this.arrTowers[_local7]]._y + 20;
_local8.dim = _root["\x13\f"].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["\f\x0B"].length) {
if (_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._dim == 20) {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this["'\x0B"].length) {
if (_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._dim == 20) {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this.arrTowers.length) {
if (_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._dim == 20) {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
} else if (this.towerDimType == 40) {
var _local5 = 0;
while (_local5 < this["'\x0B"].length) {
if (_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._dim == 20) {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["'\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this["\f\x0B"].length) {
if (_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._dim == 20) {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
_local5 = 0;
while (_local5 < this.arrTowers.length) {
if (_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._dim == 20) {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
} else {
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if (_arg3 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if (_arg4 == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if (_arg4 == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y)) {
return(true);
}
}
if ((_arg4 + 1) == this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
if ((_arg4 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._x) + 1)) {
if ((_arg3 + 1) == (this.\"\x03(_root["\x13\f"].GAMEBOX[this.arrTowers[_local5]]._y) + 1)) {
return(true);
}
}
}
_local5++;
}
}
return(false);
};
_local2["\x05\x0B"] = function () {
this.gold = this["0\x07"];
this.\x07\x0B();
this["\x13\x05"].\x1D\x06(10);
};
_local2["\r\x0B"] = function (_arg1) {
_arg1 = Math.floor(_arg1) * 20;
return(_arg1);
};
_local2["\"\x03"] = function (_arg1) {
_arg1 = Math.floor(_arg1 / 20);
return(_arg1);
};
_local2["\x1A\x0B"] = function (_arg4) {
var _local3 = "tower" + this.\x06\x05(int(_arg4.substr(1)));
_root.tower_menu[_arg4].gotoAndStop(_local3);
};
_local2["#\x02"] = function (_arg2) {
_arg2 = _arg2.substr(3, 2);
if (_arg2 == 1) {
this.\n\x04("s401");
} else if (_arg2 == 2) {
this.\n\x04("s412");
} else if (_arg2 == 3) {
this.\n\x04("s411");
} else if (_arg2 == 4) {
this.\n\x04("s413");
} else if (_arg2 == 5) {
this.\n\x04("s406");
} else if (_arg2 == 6) {
this.\n\x04("s414");
} else if (_arg2 == 7) {
this.\n\x04("s415");
} else if (_arg2 == 8) {
this.\n\x04("s407");
} else if (_arg2 == 9) {
this.\n\x04("s416");
} else if (_arg2 == 10) {
this.\n\x04("s417");
} else if (_arg2 == 11) {
this.\n\x04("s108");
} else if (_arg2 == 12) {
this.\n\x04("s118");
} else if (_arg2 == 13) {
this.\n\x04("s119");
} else if (_arg2 == 14) {
this.\n\x04("s120");
} else if (_arg2 == 15) {
this.\n\x04("s403");
} else if (_arg2 == 16) {
this.\n\x04("s402");
} else if (_arg2 == 17) {
this.\n\x04("s404");
} else if (_arg2 == 18) {
this.\n\x04("s405");
} else if (_arg2 == 19) {
this.\n\x04("s109");
} else if (_arg2 == 20) {
this.\n\x04("s410");
}
};
_local2["\n\x04"] = function (_arg3) {
if (this["^\x02"] == false) {
if (this["\x05"] != 5) {
_root.tower_menu[_arg3].overTower.gotoAndStop("on");
}
_root.info_box.gotoAndStop(2);
_root.info_box.tower_name_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].name;
_root.info_box.tower_cost_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].cost;
var _local4 = this.towerSetup.arrTowerSetup[this.\x06\x05(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.\x06\x05(int(_arg3.substr(1))) - 1].damage * 100) + "%";
} else {
_root.info_box.tower_damage_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].damage;
}
_root.info_box.tower_info_txt.text = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].info;
_root.info_box.pic_place.towerPic.removeMovieClip();
_root.info_box.pic_place.attachMovie(this.towerSetup.arrTowerSetup[this.\x06\x05(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["`\x0B"]].removeMovieClip();
if (_root._xmouse > 460) {
this["`\x0B"] = "mo_" + _arg3;
_root.attachMovie("mo_tips", this["`\x0B"], 203000);
_root[this["`\x0B"]]._x = 267;
_root[this["`\x0B"]]._y = 137;
if (_arg3 == "s401") {
_root[this["`\x0B"]].gotoAndStop(1);
} else if (_arg3 == "s402") {
_root[this["`\x0B"]].gotoAndStop(2);
} else if (_arg3 == "s403") {
_root[this["`\x0B"]].gotoAndStop(3);
} else if (_arg3 == "s404") {
_root[this["`\x0B"]].gotoAndStop(4);
} else if (_arg3 == "s405") {
_root[this["`\x0B"]].gotoAndStop(5);
} else if (_arg3 == "s406") {
_root[this["`\x0B"]].gotoAndStop(6);
} else if (_arg3 == "s407") {
_root[this["`\x0B"]].gotoAndStop(7);
} else if (_arg3 == "s108") {
_root[this["`\x0B"]].gotoAndStop(8);
} else if (_arg3 == "s109") {
_root[this["`\x0B"]].gotoAndStop(9);
} else if (_arg3 == "s410") {
_root[this["`\x0B"]].gotoAndStop(10);
}
}
}
};
_local2["`"] = function (_arg3) {
var _local4 = _root["\x13\f"].GAMEBOX;
this["`\x0B"] = "mo_" + _arg3;
_root.attachMovie("mo_tips", this["`\x0B"], 203000);
_root[this["`\x0B"]]._x = 284;
_root[this["`\x0B"]]._y = 373;
if (_local4[this.towerBuff]._libName == "Tower_401") {
if (_arg3 == 1) {
_root[this["`\x0B"]].gotoAndStop(11);
} else if (_arg3 == 2) {
_root[this["`\x0B"]].gotoAndStop(12);
}
} else if (_local4[this.towerBuff]._libName == "Tower_406") {
if (_arg3 == 1) {
_root[this["`\x0B"]].gotoAndStop(14);
} else if (_arg3 == 2) {
_root[this["`\x0B"]].gotoAndStop(15);
}
} else if (_local4[this.towerBuff]._libName == "Tower_407") {
if (_arg3 == 1) {
_root[this["`\x0B"]].gotoAndStop(16);
} else if (_arg3 == 2) {
_root[this["`\x0B"]].gotoAndStop(17);
}
} else if (_local4[this.towerBuff]._libName == "Tower_108") {
if (_arg3 == 1) {
_root[this["`\x0B"]].gotoAndStop(18);
} else if (_arg3 == 2) {
_root[this["`\x0B"]].gotoAndStop(19);
} else if (_arg3 == 3) {
_root[this["`\x0B"]].gotoAndStop(20);
}
} else if (_local4[this.towerBuff]._libName == "Tower_411") {
_root[this["`\x0B"]].gotoAndStop(13);
} else if (_local4[this.towerBuff]._libName == "Tower_412") {
_root[this["`\x0B"]].gotoAndStop(13);
}
};
_local2["?\x05"] = function () {
_root[this["`\x0B"]].removeMovieClip();
};
_local2["\x10\x07"] = function () {
_root.info_box.gotoAndStop(1);
};
_local2["9"] = function (_arg3) {
_root[this["`\x0B"]].removeMovieClip();
if ((this["^\x02"] == false) || (this["\x05"] == 5)) {
if (this["\x05"] != 4) {
_root.tower_menu[_arg3].overTower.gotoAndStop("off");
_root.info_box.gotoAndStop(1);
if (this["\x11\n"] == true) {
this.]\x06();
}
} 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\x03"] = function (_arg3) {
if (this["1\n"] == false) {
if (this["^\x02"] == false) {
if (this["\x05"] != 4) {
this.8\x0B();
this.\f\x03();
this.\x01();
this["\x05"] = 4;
_root["\x13\f"].linkage_darken.gotoAndStop("off");
}
this.towerMem1 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].name;
this.towerMem2 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].cost;
this.towerMem3 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].damage;
this.towerMem4 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].info;
this.towerMem5 = this.towerSetup.arrTowerSetup[this.\x06\x05(int(_arg3.substr(1))) - 1].pic;
this["\x0B\x02"] = int(_arg3.substr(1));
this.towerDimType = this.towerSetup.arrTowerSetup[this.\x06\x05(int(this["\x0B\x02"])) - 1].squareDim;
this.\x01();
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["\x01"] = 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["\x1B\x02"] = 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.\x01();
this["\x05"] = 1;
_root.gotoAndStop("game");
_root.rightOverlay.gotoAndStop("off");
_root["\x13\f"].gotoAndStop("game");
this.\x07\x0B();
}
};
_local2["\x07\x0B"] = function () {
_root["@"].score_txt.text = this.score;
_root["@"].gold_txt.text = this.gold;
_root["@"].lives_txt.text = this.lives;
};
_local2.TutorialSetup = function () {
_root["\x13\f"].drawLine.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
_root["\x13\f"].pauser.gotoAndStop("tutorial");
this["\x0E\x05"] = false;
this["1\n"] = true;
this["5\x05"] = 30;
this["\x05"] = 5;
this.\x01();
this.8\x0B();
this.\x14\x04();
};
_local2["%\x03"] = function () {
this["\x0E\x05"] = false;
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].pauser.gotoAndStop("on");
this.8\x0B();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
this.\x14\x04();
};
_local2["+\x07"] = function () {
_root["\x13\f"].pauser.gotoAndStop("off");
_root["\x13\f"].linkage_darken.gotoAndStop("off");
_root["\x13\f"].tRange.removeMovieClip();
this.\f\x03();
this.\x07\x0B();
};
_local2["\x14\x04"] = function () {
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]].Stop();
_local3++;
}
};
_local2["\f\x03"] = function () {
var _local3 = 0;
while (_local3 < this["\f\x0B"].length) {
_root["\x13\f"].GAMEBOX[this["\f\x0B"][_local3]].Start();
_local3++;
}
this.\x07\x0B();
};
_local2["!\x07"] = function () {
this["1\n"] = false;
this["5\x05"] = 10;
this["\x05"] = 1;
this.\x01();
this.!\x06();
this.+\x07();
};
_local2["\x1B\x07"] = function () {
if (this["5\x05"] == -1) {
if (Key.isDown(_global.pauseHotkey)) {
if (this["1\n"] == false) {
this["1\n"] = true;
this["5\x05"] = 10;
this["\x05"] = 2;
this.\x01();
this.!\x05();
this.%\x03();
} else {
this["1\n"] = false;
this["5\x05"] = 10;
this["\x05"] = 1;
this.\x01();
this.!\x06();
this.+\x07();
}
}
} else {
this["5\x05"]--;
}
};
_local2["(\x02"] = function () {
if (this["\x05"] == 5) {
this["\n\x03"].Finish();
this.tool.CleanGroup();
this["1\n"] = true;
this["5\x05"] = 10;
this["\x05"] = 2;
this.\x01();
this.!\x05();
this.%\x03();
} else if (this["1\n"] == false) {
this.tool.CleanGroup();
this["1\n"] = true;
this["5\x05"] = 10;
this["\x05"] = 2;
this.\x01();
this.!\x05();
this.%\x03();
} else if ((this["2\x07"] == "win") || (this["2\x07"] == "lose")) {
} else {
this["1\n"] = false;
this["\x05"] = 1;
this.\x01();
this.!\x06();
this.+\x07();
this["5\x05"] = 10;
this.8\x0B();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
this.\x07\x0B();
}
};
_local2["`\x03"] = function () {
_global.gameMode = "";
if (this["\x05"] == 3) {
this.8\x0B();
this.\f\x03();
this["\x05"] = 1;
this.\x01();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
}
_root.rightOverlay.gotoAndStop("on");
_root["\x13\f"].drawLine.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root.gotoAndStop(5);
};
_local2["\n\x0B"] = function () {
_global.gameMode = "";
if (this["\x05"] == 3) {
this.8\x0B();
this.\f\x03();
this["\x05"] = 1;
this.\x01();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
}
_root.rightOverlay.gotoAndStop("on");
_root["\x13\f"].drawLine.removeMovieClip();
_root["\x13\f"].tRange.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerSelectedSquare.removeMovieClip();
_root["\x13\f"].GAMEBOX.towerOverSquare.removeMovieClip();
_root.gotoAndStop(4);
};
_local2[" \x05"] = function () {
if (this["[\x06"] == false) {
this["[\x06"] = true;
_root["-\x02"].mute_btn.gotoAndStop("muteOn");
_global.musicOn = false;
_global.soundOn = false;
_global.myMusicPlayer.Stop();
} else {
this["[\x06"] = false;
_global.soundOn = true;
_root["-\x02"].mute_btn.gotoAndStop("On");
}
};
_local2["!\x05"] = function () {
};
_local2["!\x06"] = function () {
_root["-\x02"].gotoAndStop("on");
_root["@"].gotoAndStop("on");
_root.tower_menu.gotoAndStop("on");
_root["\x01\x06"].gotoAndStop("on");
_root["[\x0B"].gotoAndStop("on");
};
_local2["?\n"] = function () {
if (this["1\n"] == false) {
if (this.\x0B(1) == false) {
if (this["\x05"] == 3) {
this.8\x0B();
this.\f\x03();
this["\x05"] = 1;
this.\x01();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
}
this["\x18\x04"].\x17\n();
if (_global.typetype == 6) {
this["\x05"] = 1;
this.\x01();
this["^\x02"] = true;
_root.info_box.gotoAndStop(1);
_root["\x01\x06"]._alpha = 60;
_root.tower_menu.gotoAndStop("fixed");
}
} else {
this.tool.(\x07(1);
}
}
};
_local2["\n\x02"] = function () {
if (this["1\n"] == false) {
if (this["^\x02"] == false) {
if (this.\x0B(2) == false) {
if (this["\x05"] != 3) {
this.\x14\x04();
this["\x05"] = 3;
this.\x01();
_root.info_box.gotoAndStop(1);
_root["\x13\f"].linkage_darken.gotoAndStop("on");
this.\x07\x02();
} else {
this.8\x0B();
this.\f\x03();
this["\x05"] = 1;
this.\x01();
_root["\x13\f"].linkage_darken.gotoAndStop("off");
this.\x07\x0B();
}
} else {
this.tool.(\x07(2);
}
}
}
};
_local2["\x12\f"] = function () {
_root["(\x0B"].gotoAndStop(1);
this["\x0B\x03"] = false;
};
_local2["'\n"] = function () {
if (this["\x0B\x03"] == false) {
this["\x0B\x03"] = true;
_root["(\x0B"].gotoAndPlay(2);
}
};
_local2["\x1B\x0B"] = function () {
if (this["\x0B\x03"] == false) {
this["\x0B\x03"] = true;
_root["(\x0B"].gotoAndPlay(18);
}
};
_local2["7\x05"] = function () {
if (this["\x0B\x03"] == false) {
this["\x0B\x03"] = true;
_root["(\x0B"].gotoAndPlay(10);
}
};
_local2["\x0F\x02"] = function () {
if (this["\x0B\x03"] == false) {
_root.?\x02();
}
};
_local2["5\x02"] = function () {
_root["\x11\x02"].map.animation.credits_btn.gotoAndPlay("boom");
_root["\x11\x02"].map.animation.credits_txt.gotoAndPlay("boom");
};
_local2["=\x0B"] = function (_arg2) {
return(this.towerSetup.arrGameModes[_arg2 - 1].info);
};
_local2["`\x06"] = function (_arg3) {
if (_global.blnECPlayLinks == true) {
if ((_arg3 == 6) || (_arg3 == 11)) {
_root.?\x02();
}
}
};
_local2["\x05\x06"] = function () {
this.\x1B\x02("Pre-Set", 12);
};
_local2.Easy = function () {
this.\x1B\x02("Easy", 1);
};
_local2.Medium = function () {
this.\x1B\x02("Medium", 2);
};
_local2.Hard = function () {
this.\x1B\x02("Hard", 3);
};
_local2["\x07\x04"] = function () {
this.\x1B\x02("The 101", 4);
};
_local2.Fast = function () {
this.\x1B\x02("Fast", 5);
};
_local2.Fixed = function () {
this.\x1B\x02("Fixed", 6);
};
_local2["\x04\f"] = function () {
this.\x1B\x02("Continuous", 7);
};
_local2["'\x06"] = function () {
this.\x1B\x02("No Sale", 8);
};
_local2.Specialized = function () {
this.\x1B\x02("Specialized", 9);
};
_local2.Gradual = function () {
this.\x1B\x02("Gradual", 10);
};
_local2["\x03"] = function () {
this.\x1B\x02("10k Gold", 11);
};
_local2["\x1D\x04"] = function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
};
ASSetPropFlags(_global["\f\n"].prototype, null, 1);
#endinitclip
Symbol 1385 MovieClip [__Packages.FrameCounter] Frame 0
class
{
var #, , =, , , updateStart, updateLeft, @;
function () {
#\f = 0;
\f\x04 = 0;
= = 0;
this["2"] = 0;
\x17\x07 = true;
\x07\x07 = 0;
updateStart = 30;
updateLeft = 30;
@\x05 = 0;
}
function Start() {
Reset();
}
function =() {
\x17\x07 = false;
}
function Reset() {
#\f = 0;
= = 0;
if (\x17\x07 == true) {
_root.createTextField("myFrameText_txt", 200000, 35, 10, 120, 20);
_root.myFrameText_txt.textColor = \x07\x07;
_root.myFrameText_txt.selectable = false;
}
}
function 9(_arg2) {
\x07\x07 = _arg2;
}
function () {
if (@\x05 == 0) {
= = getTimer();
@\x05 = 1;
}
#\f++;
updateLeft--;
if (updateLeft == 0) {
updateLeft = updateStart;
this["2"] = Math.round(#\f / ((getTimer() - =) / 1000));
#\f = 0;
= = getTimer();
@\x05 = 2;
} else if (@\x05 == 1) {
this["2"] = Math.round(#\f / ((getTimer() - =) / 1000));
}
if (\x17\x07 == true) {
_root.myFrameText_txt.text = this["2"] + " fps";
}
}
function () {
return(this["2"]);
}
function () {
trace("Frames SLR: " + (#\f - \f\x04));
\f\x04 = #\f;
}
}
Symbol 1386 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 1387 MovieClip [__Packages.Map] Frame 0
class
{
var #, 9
, ];
function () {
#\x07 = 20;
9\n = new Array();
] = 30000;
>\x0B(_global.typetype);
\x15\x06();
}
function () {
var _local5 = 0;
while (_local5 < 9\n.length) {
var _local3 = 0;
while (_local3 < 9\n[_local5].length) {
var _local4 = (("tile_" + _local5) + "_") + _local3;
if (9\n[_local5][_local3] != 0) {
var _local6 = "Doodad_" + 9\n[_local5][_local3];
_root["\x13\f"].GAMEBOX.attachMovie(_local6, _local4, ]);
_root["\x13\f"].GAMEBOX[_local4]._x = _local3 * #\x07;
_root["\x13\f"].GAMEBOX[_local4]._y = _local5 * #\x07;
_root["\x13\f"].GAMEBOX[_local4].cacheAsBitmap = true;
_root.game["'\x0B"].push(_local4);
]++;
if (] >= 40000) {
] = 30000;
}
}
_local3++;
}
_local5++;
}
}
function SlowSpeedCheck(_arg2, _arg3) {
if (9\n[_arg3][_arg2] < 300) {
return(true);
}
return(false);
}
function Tower417Check(_arg2, _arg3) {
if (9\n[_arg3][_arg2] == 417) {
return(true);
}
return(false);
}
function CheckIfBlocked(_arg2, _arg3) {
if ((9\n[_arg3][_arg2] == 0) || (9\n[_arg3][_arg2] == 0)) {
return(false);
}
return(true);
}
function TriggerCheck(_arg2, _arg3) {
if (9\n[_arg3][_arg2] == 108) {
return(true);
}
if (9\n[_arg3][_arg2] == 109) {
return(true);
}
if (9\n[_arg3][_arg2] == 118) {
return(true);
}
if (9\n[_arg3][_arg2] == 119) {
return(true);
}
if (9\n[_arg3][_arg2] == 120) {
return(true);
}
return(false);
}
function UpOrDown(_arg4, _arg5) {
var _local2 = false;
var _local3 = false;
if (9\n[_arg5 - 1][_arg4] < 300) {
_local2 = true;
}
if (9\n[_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 (9\n[_arg5][_arg4 - 1] < 300) {
_local2 = true;
}
if (9\n[_arg5][_arg4 + 1] < 300) {
_local3 = true;
}
if ((_local2 == false) && (_local3 == false)) {
return(0);
}
if (_local2 == true) {
return(1);
}
return(2);
}
function @() {
trace("-------------------- Map -----------------------");
var _local3 = 0;
while (_local3 < 9\n.length) {
var _local4 = "";
var _local2 = 0;
while (_local2 < 9\n[_local3].length) {
_local4 = _local4 + (9\n[_local3][_local2] + ",");
_local2++;
}
_local4 = _local4.substr(0, _local4.length - 1);
trace(_local4);
_local3++;
}
}
function (_arg4, _arg3, _arg5, _arg2) {
if (_arg5 == 20) {
9\n[_arg3][_arg4] = _arg2;
} else {
9\n[_arg3][_arg4] = _arg2;
9\n[_arg3 + 1][_arg4] = _arg2;
9\n[_arg3][_arg4 + 1] = _arg2;
9\n[_arg3 + 1][_arg4 + 1] = _arg2;
}
}
function =
(_arg3, _arg2, _arg4) {
if (_arg4 == 20) {
9\n[_arg2][_arg3] = 0;
} else {
9\n[_arg2][_arg3] = 0;
9\n[_arg2 + 1][_arg3] = 0;
9\n[_arg2][_arg3 + 1] = 0;
9\n[_arg2 + 1][_arg3 + 1] = 0;
}
}
function >(_arg3) {
switch (_arg3) {
case 1 :
var _local2 = new \x03\x0B();
9\n = _local2.(\f();
break;
case 2 :
_local2 = new \x1D\n();
9\n = _local2.(\f();
break;
case 3 :
_local2 = new \r\n();
9\n = _local2.(\f();
break;
case 4 :
_local2 = new \x11\x06();
9\n = _local2.(\f();
break;
case 5 :
_local2 = new \x19\x04();
9\n = _local2.(\f();
break;
case 6 :
_local2 = new <\n();
9\n = _local2.(\f();
break;
case 12 :
_local2 = new \x03\x0B();
9\n = _local2.(\f();
break;
default :
_local2 = new \x17\f();
9\n = _local2.(\f();
}
}
function () {
return(9\n);
}
function #() {
return(this);
}
function IsPathBlocked(_arg3) {
var _local2 = 0;
while (_local2 < _arg3.length) {
if (9\n[_arg3[_local2].y][_arg3[_local2].x] >= 300) {
return(true);
}
_local2++;
}
return(false);
}
}
Symbol 1388 MovieClip [__Packages.Map1] Frame 0
class
{
var ;
function () {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 303, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 300, 300, 300, 0, 0, 0, 300, 300, 300, 0, 0, 300, 300, 300, 0, 0, 0, 300, 300, 300, 300));
\x1C.push(Array(300, 300, 300, 300, 0, 0, 0, 300, 300, 300, 0, 0, 300, 300, 300, 0, 0, 0, 300, 300, 300, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1389 MovieClip [__Packages.Map2] Frame 0
class
{
var ;
function
() {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 302, 302, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 302, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 301, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 303, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1390 MovieClip [__Packages.Map3] Frame 0
class
{
var ;
function
() {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 301, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1391 MovieClip [__Packages.Map4] Frame 0
class
{
var ;
function () {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 301, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1392 MovieClip [__Packages.Map5] Frame 0
class
{
var ;
function () {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 302, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 303, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 301, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 304, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 301, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1393 MovieClip [__Packages.Map6] Frame 0
class <
{
var ;
function <
() {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 301, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1394 MovieClip [__Packages.Map7] Frame 0
class
{
var ;
function () {
\x1C = new Array();
}
function (() {
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 302, 302, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 302, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 304, 0, 0, 301, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 302, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.push(Array(300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300));
\x1C.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(\x1C);
}
}
Symbol 1395 MovieClip [__Packages.AStar] Frame 0
class <
{
var arrCachedPathsAStar, arrCachedPaths, -, 8, `, , 6, , , intCurrentIndexX, "
, intCurrentIndexY, , @, , , , [, , , 9, , , , arrClosedNodes;
function < () {
();
arrCachedPathsAStar = new Array();
arrCachedPaths = new Array();
}
function () {
-\x07 = true;
8\x02 = true;
`\x07 = 40;
\x18\x0B = true;
6\x06 = 3000;
}
function ^
(_arg2) {
\x03\x07 = _arg2;
}
function FindPointToEnd(_arg13, _arg12, _arg11, _arg10, _arg15, _arg14) {
delete \x1B\x05;
\x1B\x05 = new Array();
trace("stage 1");
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++;
}
trace("stage 2");
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++;
}
\x1B\x05.push({x:arrCachedPaths[_local6][_local9].x, y:arrCachedPaths[_local6][_local9].y});
}
trace("stage 3");
if (\x1B\x05.length == 0) {
delete \x1B\x05;
\x1B\x05 = null;
}
return(\x1B\x05);
}
function Wander(_arg4, _arg2) {
intCurrentIndexX = (\"\n = _arg4);
intCurrentIndexY = (\x02 = _arg2);
delete \x1B\x05;
\x1B\x05 = new Array();
var _local5 = \x1D\x04(1, 4);
var _local6 = \x03\x07.\x05\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;
\x1B\x05.push({x:\"\n, y:_arg2 - 1});
break;
if (_arg4 == (@\x02 - 1)) {
} else if (_local6[_arg2][_arg4 + 1] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n + 1, y:_arg2});
break;
if (_arg2 == (\x13\x04 - 1)) {
} else if (_local6[_arg2 + 1][_arg4] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n, y:_arg2 + 1});
break;
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n - 1, y:_arg2});
}
}
}
}
case 2 :
if (_arg4 == (@\x02 - 1)) {
} else if (_local6[_arg2][_arg4 + 1] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n + 1, y:_arg2});
break;
if (_arg2 == (\x13\x04 - 1)) {
} else if (_local6[_arg2 + 1][_arg4] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n, y:_arg2 + 1});
break;
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n - 1, y:_arg2});
}
}
}
case 3 :
if (_arg2 == (\x13\x04 - 1)) {
} else if (_local6[_arg2 + 1][_arg4] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n, y:_arg2 + 1});
break;
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n - 1, y:_arg2});
}
}
case 4 :
if (_arg4 == 0) {
} else if (_local6[_arg2][_arg4 - 1] >= 300) {
} else {
_local3 = true;
\x1B\x05.push({x:\"\n - 1, y:_arg2});
}
}
if (_local3 == true) {
break;
}
_local5++;
if (_local5 == 5) {
_local5 = 1;
}
_local7++;
}
if (\x1B\x05.length == 0) {
delete \x1B\x05;
\x1B\x05 = null;
}
return(\x1B\x05);
}
function BumpLeft(_arg6, _arg7, _arg8) {
intCurrentIndexX = (\"\n = _arg6);
intCurrentIndexY = (\x02 = _arg7);
&\n("left");
@\x02 = \x1E\x06[0].length;
\x13\x04 = \x1E\x06.length;
delete \x1B\x05;
\x1B\x05 = new Array();
var _local5 = _arg6 - _arg8;
if (_local5 < 0) {
_local5 = 0;
}
var _local2 = _arg6 - 1;
while (_local2 >= _local5) {
if (\x1E\x06[\x02][_local2]._type >= 300) {
if (((\x1E\x06[\x02][_local2]._type == 407) || (\x1E\x06[\x02][_local2]._type == 416)) || (\x1E\x06[\x02][_local2]._type == 417)) {
} else {
if (((\x1E\x06[\x02][_local2]._type == 414) || (\x1E\x06[\x02][_local2]._type == 415)) || (\x1E\x06[\x02][_local2]._type == 407)) {
\x1B\x05.push({x:_local2, y:\x02});
break;
}
break;
}
}
\x1B\x05.push({x:_local2, y:\x02});
_local2--;
}
if (\x1B\x05.length == 0) {
delete \x1B\x05;
\x1B\x05 = null;
}
return(\x1B\x05);
}
function BumpRight(_arg6, _arg7, _arg8) {
intCurrentIndexX = (\"\n = _arg6);
intCurrentIndexY = (\x02 = _arg7);
&\n("right");
@\x02 = \x1E\x06[0].length;
\x13\x04 = \x1E\x06.length;
delete \x1B\x05;
\x1B\x05 = new Array();
var _local5 = _arg6 + _arg8;
if (_local5 > @\x02) {
_local5 = @\x02;
}
var _local2 = _arg6 + 1;
while (_local2 <= _local5) {
if (\x1E\x06[\x02][_local2]._type >= 300) {
if (((\x1E\x06[\x02][_local2]._type == 407) || (\x1E\x06[\x02][_local2]._type == 416)) || (\x1E\x06[\x02][_local2]._type == 417)) {
} else {
if (((\x1E\x06[\x02][_local2]._type == 414) || (\x1E\x06[\x02][_local2]._type == 415)) || (\x1E\x06[\x02][_local2]._type == 407)) {
\x1B\x05.push({x:_local2, y:\x02});
break;
}
break;
}
}
\x1B\x05.push({x:_local2, y:\x02});
_local2++;
}
if (\x1B\x05.length == 0) {
delete \x1B\x05;
\x1B\x05 = null;
}
return(\x1B\x05);
}
function BumpUp(_arg7, _arg6, _arg8) {
intCurrentIndexX = (\"\n = _arg7);
intCurrentIndexY = (\x02 = _arg6);
&\n("up");
@\x02 = \x1E\x06[0].length;
\x13\x04 = \x1E\x06.length;
delete \x1B\x05;
\x1B\x05 = new Array();
var _local5 = _arg6 - _arg8;
if (_local5 < 0) {
_local5 = 0;
}
var _local2 = \x02 - 1;
while (_local2 >= _local5) {
if (\x1E\x06[_local2][\"\n]._type >= 300) {
if (((\x1E\x06[_local2][\"\n]._type == 407) || (\x1E\x06[_local2][\"\n]._type == 416)) || (\x1E\x06[_local2][\"\n]._type == 417)) {
} else {
if (((\x1E\x06[_local2][\"\n]._type == 414) || (\x1E\x06[_local2][\"\n]._type == 415)) || (\x1E\x06[_local2][\"\n]._type == 407)) {
\x1B\x05.push({x:\"\n, y:_local2});
break;
}
break;
}
}
\x1B\x05.push({x:\"\n, y:_local2});
_local2--;
}
if (\x1B\x05.length == 0) {
delete \x1B\x05;
\x1B\x05 = null;
}
return(\x1B\x05);
}
function BumpDown(_arg7, _arg6, _arg8) {
intCurrentIndexX = (\"\n = _arg7);
intCurrentIndexY = (\x02 = _arg6);
&\n("down");
@\x02 = \x1E\x06[0].length;
\x13\x04 = \x1E\x06.length;
delete \x1B\x05;
\x1B\x05 = new Array();
var _local5 = _arg6 + _arg8;
if (_local5 > \x13\x04) {
_local5 = \x13\x04;
}
var _local2 = \x02 + 1;
while (_local2 <= _local5) {
if (\x1E\x06[_local2][\"\n]._type >= 300) {
if (((\x1E\x06[_local2][\"\n]._type == 407) || (\x1E\x06[_local2][\"\n]._type == 416)) || (\x1E\x06[_local2][\"\n]._type == 417)) {
} else {
if (((\x1E\x06[_local2][\"\n]._type == 414) || (\x1E\x06[_local2][\"\n]._type == 415)) || (\x1E\x06[_local2][\"\n]._type == 407)) {
\x1B\x05.push({x:\"\n, y:_local2});
break;
}
break;
}
}
\x1B\x05.push({x:\"\n, y:_local2});
_local2++;
}
if (\x1B\x05.length == 0) {
delete \x1B\x05;
\x1B\x05 = null;
}
return(\x1B\x05);
}
function Search(_arg4, _arg3, _arg6, _arg5) {
var _local2 = getTimer();
intCurrentIndexX = (\"\n = _arg4);
intCurrentIndexY = (\x02 = _arg3);
\x17\x05 = _arg6;
[\x05 = _arg5;
if (8\x02 == true) {
if (\x1D\x04(0, 100) <= `\x07) {
\x01\x04 = true;
} else {
\x01\x04 = false;
}
} else {
\x01\x04 = false;
}
if (-\x07 == true) {
if (8\x02 == true) {
if (\x01\x04 == true) {
\x0B\x07 = -\x03();
if (\x0B\x07 != -1) {
if ((arrCachedPathsAStar[\x0B\x07][0].x == \"\n) && (arrCachedPathsAStar[\x0B\x07][0].y == \x02)) {
9\x06 = true;
\x1B\x05 = arrCachedPathsAStar[\x0B\x07].slice();
return(\x1B\x05);
}
\x17\x05 = arrCachedPathsAStar[\x0B\x07][6].x;
[\x05 = arrCachedPathsAStar[\x0B\x07][6].y;
}
} else {
\x0B\x07 = \x1B\x04();
if (\x0B\x07 != -1) {
if ((arrCachedPaths[\x0B\x07][0].x == \"\n) && (arrCachedPaths[\x0B\x07][0].y == \x02)) {
9\x06 = true;
\x1B\x05 = arrCachedPaths[\x0B\x07].slice();
return(\x1B\x05);
}
\x17\x05 = arrCachedPaths[\x0B\x07][6].x;
[\x05 = arrCachedPaths[\x0B\x07][6].y;
}
}
} else {
\x0B\x07 = \x1B\x04();
if (\x0B\x07 != -1) {
if ((arrCachedPaths[\x0B\x07][0].x == \"\n) && (arrCachedPaths[\x0B\x07][0].y == \x02)) {
9\x06 = true;
\x1B\x05 = arrCachedPaths[\x0B\x07].slice();
return(\x1B\x05);
}
\x17\x05 = arrCachedPaths[\x0B\x07][6].x;
[\x05 = arrCachedPaths[\x0B\x07][6].y;
}
}
}
Reset();
\x1E\x06[intCurrentIndexY][intCurrentIndexX]._g = 0;
\x1E\x06[intCurrentIndexY][intCurrentIndexX]._h = \n(intCurrentIndexX, intCurrentIndexY);
\x1E\x06[intCurrentIndexY][intCurrentIndexX]._f = \x1E\x06[intCurrentIndexY][intCurrentIndexX]._g + \x1E\x06[intCurrentIndexY][intCurrentIndexX]._h;
\x1C\x06(\x1E\x06[intCurrentIndexY][intCurrentIndexX]);
while (\x11 == false) {
\x19\n();
if ((getTimer() - _local2) > 6\x06) {
\x11 = true;
trace("Search Timed Out");
}
if (\x11\x0B.length == 0) {
\x11 = true;
trace("There is no spoon");
}
}
if (9\x06 == true) {
\x06\x06();
} else {
delete \x1B\x05;
\x1B\x05 = null;
}
if (9\x06 == true) {
if (-\x07 == true) {
if (\x0B\x07 != -1) {
+\x04();
} else {
^\x07();
}
}
}
return(\x1B\x05);
}
function &(_arg5, _arg4, _arg7, _arg6) {
var _local8 = -\x07;
var _local9 = 8\x02;
-\x07 = false;
8\x02 = false;
Search(_arg5, _arg4, _arg7, _arg6);
-\x07 = _local8;
8\x02 = _local9;
if (\x1B\x05 != 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(\x1B\x05.slice());
arrCachedPaths[arrCachedPaths.length - 1].unshift({x:_arg5, y:_arg4});
}
}
return(\x1B\x05);
}
function () {
trace("============ Open List ============");
var _local2 = 0;
while (_local2 < \x11\x0B.length) {
trace(\x11\x0B[_local2]);
_local2++;
}
}
function
() {
\x11\x0B.sortOn("_f", Array.NUMERIC);
intCurrentIndexX = \x11\x0B[0]._xLoc;
intCurrentIndexY = \x11\x0B[0]._yLoc;
\x1A = \x11\x0B[0];
\x11\x0B.splice(0, 1);
if ((intCurrentIndexX == \x17\x05) && (intCurrentIndexY == [\x05)) {
\x11 = true;
9\x06 = true;
} else {
if (intCurrentIndexX > 0) {
\x18(intCurrentIndexX - 1, intCurrentIndexY);
}
if ((intCurrentIndexX > 0) && (intCurrentIndexY < (\x13\x04 - 1))) {
\x18(intCurrentIndexX - 1, intCurrentIndexY + 1);
}
if (intCurrentIndexY < (\x13\x04 - 1)) {
\x18(intCurrentIndexX, intCurrentIndexY + 1);
}
if ((intCurrentIndexX < (@\x02 - 1)) && (intCurrentIndexY < (\x13\x04 - 2))) {
\x18(intCurrentIndexX + 1, intCurrentIndexY + 1);
}
if (intCurrentIndexX < (@\x02 - 1)) {
\x18(intCurrentIndexX + 1, intCurrentIndexY);
}
if ((intCurrentIndexX < (@\x02 - 1)) && (intCurrentIndexY > 0)) {
\x18(intCurrentIndexX + 1, intCurrentIndexY - 1);
}
if (intCurrentIndexY > 0) {
\x18(intCurrentIndexX, intCurrentIndexY - 1);
}
if ((intCurrentIndexX > 0) && (intCurrentIndexY > 0)) {
\x18(intCurrentIndexX - 1, intCurrentIndexY - 1);
}
}
\x1A._blnOpen = false;
arrClosedNodes.push(\x1A);
}
function (_arg4, _arg3) {
var _local5 = \x10\n(_arg4, _arg3);
if (_local5 == 999999) {
return(undefined);
}
_local5 = \x1A._g + _local5;
if (\x1E\x06[_arg3][_arg4]._blnVisited == false) {
if ((((\x1E\x06[_arg3][_arg4]._type < 300) || (\x1E\x06[_arg3][_arg4]._type == 407)) || (\x1E\x06[_arg3][_arg4]._type == 416)) || (\x1E\x06[_arg3][_arg4]._type == 417)) {
\x1E\x06[_arg3][_arg4]._g = _local5;
\x1E\x06[_arg3][_arg4]._h = \n(_arg4, _arg3);
if (\x01\x04 == true) {
\x1E\x06[_arg3][_arg4]._f = \x1E\x06[_arg3][_arg4]._h;
} else {
\x1E\x06[_arg3][_arg4]._f = \x1E\x06[_arg3][_arg4]._g + \x1E\x06[_arg3][_arg4]._h;
}
\x1E\x06[_arg3][_arg4]["\x11\x05"] = \x1E\x06[\x1A._yLoc][\x1A._xLoc];
\x1C\x06(\x1E\x06[_arg3][_arg4]);
}
} else if ((((\x1E\x06[_arg3][_arg4]._type < 300) || (\x1E\x06[_arg3][_arg4]._type == 407)) || (\x1E\x06[_arg3][_arg4]._type == 416)) || (\x1E\x06[_arg3][_arg4]._type == 417)) {
if (_local5 < \x1E\x06[_arg3][_arg4]._g) {
\x1E\x06[_arg3][_arg4]["\x11\x05"] = \x1E\x06[\x1A._yLoc][\x1A._xLoc];
\x1E\x06[_arg3][_arg4]._g = _local5;
\x1E\x06[_arg3][_arg4]._f = \x1E\x06[_arg3][_arg4]._h + \x1E\x06[_arg3][_arg4]._g;
if (\x1E\x06[_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 \x11\x0B;
delete arrClosedNodes;
\x11\x0B = new Array();
arrClosedNodes = new Array();
\x11 = false;
9\x06 = false;
(\n();
@\x02 = \x1E\x06[0].length;
\x13\x04 = \x1E\x06.length;
}
function (
() {
if (\x1E\x06 != null) {
\r\f();
return(undefined);
}
delete \x1E\x06;
\x1E\x06 = new Array();
var _local4;
var _local5 = \x03\x07.\x05\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 1\x02();
_local4._type = _local5[_local3][_local2];
_local4._xLoc = _local2;
_local4._yLoc = _local3;
_local6[_local2] = _local4;
_local2++;
}
\x1E\x06.push(_local6);
_local3++;
}
}
function
() {
var _local4 = \x03\x07.\x05\f();
var _local3 = 0;
while (_local3 < \x1E\x06.length) {
var _local2 = 1;
while (_local2 < \x1E\x06[_local3].length) {
\x1E\x06[_local3][_local2].Reset(_local4[_local3][_local2]);
_local2++;
}
_local3++;
}
}
function &
(_arg5) {
if (\x1E\x06 == null) {
(\n();
return(undefined);
}
var _local4 = \x03\x07.\x05\f();
if ((_arg5 == "left") || (_arg5 == "right")) {
var _local2 = 0;
while (_local2 < \x1E\x06[\x02].length) {
\x1E\x06[\x02][_local2].Reset(_local4[\x02][_local2]);
_local2++;
}
} else if ((_arg5 == "up") || (_arg5 == "down")) {
var _local3 = 0;
while (_local3 < \x1E\x06.length) {
\x1E\x06[_local3][\"\n].Reset(_local4[_local3][\"\n]);
_local3++;
}
}
}
function <(_arg6) {
trace("****************** Node Map ********************");
if (_arg6 == "type") {
var _local4 = 0;
while (_local4 < \x1E\x06.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < \x1E\x06[_local4].length) {
var _local2 = "";
if (\x1E\x06[_local4][_local3]._type < 10) {
_local2 = "00" + \x1E\x06[_local4][_local3]._type;
} else if (\x1E\x06[_local4][_local3]._type < 100) {
_local2 = "0" + \x1E\x06[_local4][_local3]._type;
} else {
_local2 = "" + \x1E\x06[_local4][_local3]._type;
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
trace(_local5);
_local4++;
}
} else if (_arg6 == "visited") {
var _local4 = 0;
while (_local4 < \x1E\x06.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < \x1E\x06[_local4].length) {
var _local2 = "0";
if (\x1E\x06[_local4][_local3]._blnVisited == true) {
_local2 = "X";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
trace(_local5);
_local4++;
}
} else if (_arg6 == "path") {
var _local4 = 0;
while (_local4 < \x1B\x05.length) {
\x1E\x06[\x1B\x05[_local4].y][\x1B\x05[_local4].x]._blnPath = true;
_local4++;
}
_local4 = 0;
while (_local4 < \x1E\x06.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < \x1E\x06[_local4].length) {
var _local2 = " ";
if (\x1E\x06[_local4][_local3]._blnPath == true) {
_local2 = "+";
}
if (\x1E\x06[_local4][_local3]._type >= 300) {
_local2 = "#";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
trace(_local5);
_local4++;
}
} else if (_arg6 == "f") {
var _local4 = 0;
while (_local4 < \x1E\x06.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < \x1E\x06[_local4].length) {
var _local2 = " ";
_local2 = String(\x1E\x06[_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 (\x1E\x06[_local4][_local3]._type >= 300) {
_local2 = "####";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
trace(_local5);
_local4++;
}
} else if (_arg6 == "g") {
var _local4 = 0;
while (_local4 < \x1E\x06.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < \x1E\x06[_local4].length) {
var _local2 = " ";
_local2 = String(\x1E\x06[_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 (\x1E\x06[_local4][_local3]._type >= 300) {
_local2 = "####";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
trace(_local5);
_local4++;
}
} else if (_arg6 == "h") {
var _local4 = 0;
while (_local4 < \x1E\x06.length) {
var _local5 = "";
var _local3 = 0;
while (_local3 < \x1E\x06[_local4].length) {
var _local2 = " ";
_local2 = String(\x1E\x06[_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 (\x1E\x06[_local4][_local3]._type >= 300) {
_local2 = "####";
}
_local5 = _local5 + (_local2 + "_");
_local3++;
}
_local5 = _local5.substr(0, _local5.length - 1);
trace(_local5);
_local4++;
}
}
}
function (_arg2) {
_arg2._blnVisited = true;
_arg2._blnOpen = true;
if (_arg2["\x11\x05"] == null) {
\x11\x0B.push(_arg2);
} else if (\x11\x0B.length == 0) {
\x11\x0B.push(_arg2);
} else {
\x11\x0B.push(_arg2);
}
}
function
(_arg6, _arg7) {
var _local3 = Math.abs(_arg6 - \x17\x05);
var _local2 = Math.abs(_arg7 - [\x05);
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 (((\x1A._xLoc - _arg10) != 0) && ((\x1A._yLoc - _arg9) != 0)) {
_local2 = 14;
if (\x18\x0B == true) {
var _local3 = (\x1A._xLoc - _arg10) / Math.abs(\x1A._xLoc - _arg10);
var _local4 = (\x1A._yLoc - _arg9) / Math.abs(\x1A._yLoc - _arg9);
var _local8 = \x1A._xLoc - _local3;
var _local6 = \x1A._yLoc;
var _local7 = \x1A._xLoc;
var _local5 = \x1A._yLoc - _local4;
if ((\x1E\x06[_local6][_local8]._type >= 300) || (\x1E\x06[_local5][_local7]._type >= 300)) {
_local2 = 999999 /* 0x0F423F */;
}
}
}
return(_local2);
}
function () {
var _local4 = getTimer();
delete \x1B\x05;
\x1B\x05 = new Array();
do {
if (\x1A["\x11\x05"] == null) {
break;
}
\x1B\x05.unshift({x:\x1A._xLoc, y:\x1A._yLoc});
\x1A = \x1A["\x11\x05"];
} while ((getTimer() - _local4) <= 50);
}
function () {
delete arrCachedPaths;
arrCachedPaths = new Array();
delete arrCachedPathsAStar;
arrCachedPathsAStar = new Array();
}
function ^() {
if (\x1B\x05.length > 7) {
if (\x01\x04 == true) {
arrCachedPathsAStar.push(\x1B\x05.slice());
arrCachedPathsAStar[arrCachedPathsAStar.length - 1].unshift({x:\"\n, y:\x02});
} else {
arrCachedPaths.push(\x1B\x05.slice());
arrCachedPaths[arrCachedPaths.length - 1].unshift({x:\"\n, y:\x02});
}
}
}
function () {
var _local6 = -1;
var _local2 = 0;
while (_local2 < arrCachedPaths.length) {
if ((arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].x == \x17\x05) && (arrCachedPaths[_local2][arrCachedPaths[_local2].length - 1].y == [\x05)) {
var _local4 = arrCachedPaths[_local2][0].x - \"\n;
var _local3 = arrCachedPaths[_local2][0].y - \x02;
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 == \x17\x05) && (arrCachedPathsAStar[_local2][arrCachedPathsAStar[_local2].length - 1].y == [\x05)) {
var _local4 = arrCachedPathsAStar[_local2][0].x - \"\n;
var _local3 = arrCachedPathsAStar[_local2][0].y - \x02;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local5 <= 4) {
_local6 = _local2;
break;
}
}
_local2++;
}
return(_local6);
}
function +() {
if (\x01\x04 == true) {
var _local2 = arrCachedPathsAStar[\x0B\x07].slice(7, arrCachedPathsAStar[\x0B\x07].length - 1);
\x1B\x05 = \x1B\x05.concat(_local2);
} else {
var _local2 = arrCachedPaths[\x0B\x07].slice(7, arrCachedPaths[\x0B\x07].length - 1);
\x1B\x05 = \x1B\x05.concat(_local2);
}
}
function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1396 MovieClip [__Packages.AStarNode] Frame 0
class 1
{
var _g, _h, _f, _xLoc, _yLoc, _type, _blnPath, _blnVisited, _blnOpen, ;
function 1 () {
_g = 0;
_h = 0;
_f = 0;
_xLoc = 0;
_yLoc = 0;
_type = 0;
_blnPath = false;
_blnVisited = false;
_blnOpen = false;
\x11\x05 = null;
}
function Reset(_arg2) {
_g = 0;
_h = 0;
_f = 0;
_type = _arg2;
_blnPath = false;
_blnVisited = false;
_blnOpen = false;
\x11\x05 = null;
}
}
Symbol 1397 MovieClip [__Packages.WaveEngine] Frame 0
class 8
{
var arrWaveButtons, =, arrEnemyQueue, ,
, ;, , 3, ,,
, , 7, ,
;
function 8 () {
arrWaveButtons = new Array();
=\x07 = new Array();
arrEnemyQueue = new Array();
\x17\x03 = -1;
\n\f = -1;
;\x06 = false;
\x1E\x03 = 77;
3\x06 = true;
if (_global.typetype == 10) {
,\x04 = 800;
} else if (_global.typetype == 7) {
,\x04 = 180;
} else if (_global.typetype == 5) {
,\x04 = 400;
} else {
,\x04 = 770;
}
\x1F\n = ,\x04;
\x19\x06 = 100;
7\x04 = "normal";
\x04\x03 = 0;
}
function () {
if ((3\x06 == false) && (\x17\x03 > -1)) {
if (;\x06 == true) {
\x07\x06();
} else {
\x0E();
}
\x01\x03();
}
}
function () {
if (_global.typetype == 10) {
,\x04 = ,\x04 - 30;
if (,\x04 <= 50) {
,\x04 = 50;
}
}
}
function () {
var _local8 = new Array();
var _local7 = -1;
var _local9;
var _local4 = 0;
while (_local4 < arrWaveButtons.length) {
if (arrWaveButtons[_local4] == (\n\f + "wave_mc")) {
_local7 = _local4;
_local9 = arrWaveButtons[_local4];
break;
}
_local4++;
}
if (\r\x05[_local9]._x > 0) {
\r\x05[_local9]._x = \r\x05[_local9]._x * 0.8;
}
if ((\r\x05[_local9]._x >= -1) && (\r\x05[_local9]._x <= 1)) {
\x13();
\r\x05[_local9]._x = 0;
;\x06 = false;
\x17\x03 = \n\f;
\r\x05._parent.viewer_mc.gotoAndPlay(2);
'\x05(\x17\x03);
}
var _local3 = \r\x05[_local9]._x;
_local4 = _local7 - 1;
while (_local4 >= 0) {
_local3 = _local3 - \x1E\x03;
\r\x05[arrWaveButtons[_local4]]._x = _local3;
if (\r\x05[arrWaveButtons[_local4]]._x <= 0) {
var _local5 = arrWaveButtons[_local4];
var _local6 = Number(_local5.substr(0, _local5.length - 7));
if (_local6 > \x17\x03) {
\x17\x03 = _local6;
\r\x05._parent.viewer_mc.gotoAndPlay(2);
'\x05(\x17\x03);
}
}
if (\r\x05[arrWaveButtons[_local4]]._x < -100) {
_local8.push(arrWaveButtons[_local4]);
}
_local4--;
}
_local3 = \r\x05[_local9]._x;
_local4 = _local7 + 1;
while (_local4 < arrWaveButtons.length) {
_local3 = _local3 + \x1E\x03;
\r\x05[arrWaveButtons[_local4]]._x = _local3;
_local4++;
}
_local3 = _local3 + \x1E\x03;
if (_local3 <= 360) {
var _local11 = arrWaveButtons[arrWaveButtons.length - 1];
var _local12 = Number(_local11.substr(0, _local11.length - 7)) + 1;
var _local10 = \f\f(_local12);
if (_local10 != null) {
_local10._x = _local3;
_local10._y = 0;
}
}
var _local2 = 0;
while (_local2 < _local8.length) {
\x1C\x07(_local8[_local2]);
_local2++;
}
}
function () {
var _local7 = new Array();
var _local8 = \x1E\x03 / ,\x04;
var _local6;
var _local2 = 0;
while (_local2 < arrWaveButtons.length) {
if (_local2 == 0) {
\r\x05[arrWaveButtons[_local2]]._x = \r\x05[arrWaveButtons[_local2]]._x - _local8;
_local6 = \r\x05[arrWaveButtons[_local2]]._x;
} else {
_local6 = _local6 + \x1E\x03;
\r\x05[arrWaveButtons[_local2]]._x = _local6;
}
if ((\r\x05[arrWaveButtons[_local2]]._x >= -1) && (\r\x05[arrWaveButtons[_local2]]._x <= 1)) {
var _local4 = arrWaveButtons[_local2];
var _local5 = Number(_local4.substr(0, _local4.length - 7));
if (_local5 > \x17\x03) {
\x13();
\x17\x03 = _local5;
\n\f = \x17\x03;
\r\x05._parent.viewer_mc.gotoAndPlay(2);
'\x05(\x17\x03);
}
}
if (\r\x05[arrWaveButtons[_local2]]._x < -100) {
_local7.push(arrWaveButtons[_local2]);
}
_local2++;
}
_local6 = _local6 + \x1E\x03;
if (_local6 <= 360) {
var _local10 = arrWaveButtons[arrWaveButtons.length - 1];
var _local11 = Number(_local10.substr(0, _local10.length - 7)) + 1;
var _local9 = \f\f(_local11);
if (_local9 != null) {
_local9._x = _local6;
_local9._y = 0;
}
}
var _local3 = 0;
while (_local3 < _local7.length) {
\x1C\x07(_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 = \x1D\x04(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.0\x02(\x1D\x04(1, 20), 28, _local4, arrEnemyQueue[_local3].dblLifeBonus);
arrEnemyQueue[_local3].intNum--;
if (arrEnemyQueue[_local3].intNum == 0) {
arrEnemyQueue.splice(_local3, 1);
_local3--;
} else {
arrEnemyQueue[_local3].intNextCounter = \x1D\x04(4, 25);
}
} else {
arrEnemyQueue[_local3].intNextCounter--;
}
_local3++;
}
}
}
function '(_arg2) {
_arg2 = _arg2 - 1;
var _local5 = =\x07[_arg2].intNumber;
var _local3 = =\x07[_arg2].strType;
var _local4 = =\x07[_arg2].dblLifeBonus;
arrEnemyQueue.push({strType:_local3, intNum:_local5, dblLifeBonus:_local4, intNextCounter:0});
}
function SetupButtons() {
var _local4 = \x1E\x03;
var _local2 = 0;
while (_local2 < =\x07.length) {
var _local3 = \f\f(=\x07[_local2].intId);
_local3._x = _local4;
_local3._y = 0;
_local4 = _local4 + \x1E\x03;
if (_local2 >= 3) {
break;
}
_local2++;
}
}
function (_arg4) {
if (_arg4 > =\x07.length) {
return(null);
}
var _local3 = _arg4 + "wave_mc";
var _local2 = \r\x05.attachMovie("Wave_" + =\x07[_arg4 - 1].strType, _local3, \x19\x06);
_local2.wave_mc.gotoAndStop(=\x07[_arg4 - 1].intId);
_local2.cacheAsBitmap = true;
arrWaveButtons.push(_local3);
\x19\x06++;
return(_local2);
}
function (_arg3) {
var _local2 = 0;
while (_local2 < arrWaveButtons.length) {
if (_arg3 == arrWaveButtons[_local2]) {
\r\x05[arrWaveButtons[_local2]].removeMovieClip();
arrWaveButtons.splice(_local2, 1);
break;
}
_local2++;
}
}
function
() {
if (\x17\x03 == -1) {
_root.game["\x05\n"] = true;
3\x06 = false;
\x17\x03 = 0;
\n\f = 1;
;\x06 = true;
_global.SoundManager.PlaySound("start" + \x1D\x04(1, 2), 100);
} else {
\x13();
if ((\n\f + 1) <= =\x07.length) {
\n\f = \n\f + 1;
;\x06 = true;
if (\x1D\x04(0, 100) < 10) {
_global.SoundManager.PlaySound("start" + \x1D\x04(1, 2), 100);
}
}
}
}
function #() {
if (arrEnemyQueue.length != 0) {
return(false);
}
if (\x17\x03 >= =\x07.length) {
return(true);
}
return(false);
}
function %() {
3\x06 = true;
}
function +() {
3\x06 = false;
}
function %
(_arg2) {
7\x04 = _arg2;
\x1D\x0B();
}
function () {
)\n();
SetupButtons();
}
function )
() {
if (_global.typetype == 12) {
,\x04 = 770;
=\x07.push({intId:1, strType:"mix", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"mix", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:3, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:5, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:6, strType:"greedy", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:7, strType:"lusty", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"thirsty", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"fast", intNumber:5, dblLifeBonus:1.5});
=\x07.push({intId:10, strType:"strong", intNumber:2, dblLifeBonus:1.5});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:12, strType:"mix", intNumber:5, dblLifeBonus:25});
=\x07.push({intId:13, strType:"greedy", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:14, strType:"lusty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:15, strType:"thirsty", intNumber:7, dblLifeBonus:3});
} else if (_global.typetype == 1) {
,\x04 = 770;
=\x07.push({intId:1, strType:"mix", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"mix", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:3, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:5, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:6, strType:"greedy", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:7, strType:"lusty", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:8, strType:"thirsty", intNumber:5, dblLifeBonus:1});
=\x07.push({intId:9, strType:"fast", intNumber:5, dblLifeBonus:1});
=\x07.push({intId:10, strType:"captain", intNumber:2, dblLifeBonus:0.9});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:12, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:13, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:14, strType:"lusty", intNumber:7, dblLifeBonus:1.5});
=\x07.push({intId:15, strType:"thirsty", intNumber:7, dblLifeBonus:1.5});
=\x07.push({intId:16, strType:"fast", intNumber:8, dblLifeBonus:2});
=\x07.push({intId:17, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"mix", intNumber:10, dblLifeBonus:2});
=\x07.push({intId:19, strType:"strong", intNumber:7, dblLifeBonus:2.25});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"fast", intNumber:7, dblLifeBonus:2.75});
=\x07.push({intId:22, strType:"strong", intNumber:7, dblLifeBonus:2.75});
=\x07.push({intId:23, strType:"greedy", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:24, strType:"captain", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:25, strType:"mix", intNumber:20, dblLifeBonus:3});
} else if (_global.typetype == 2) {
,\x04 = 600;
=\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 3) {
,\x04 = 500;
=\x07.push({intId:1, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:5, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.5});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.5});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:2});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:4});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:4});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:4});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:4});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:5});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:5});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:6});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:6});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:7});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:7});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:8});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:8});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:9});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:9});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:10});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:10});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:10});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:10});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:12});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:14});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:15});
} else if (_global.typetype == 4) {
Setup101Waves();
} else if (_global.typetype == 5) {
,\x04 = 600;
=\x07.push({intId:1, strType:"fast", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"fast", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"fast", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"fast", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"fast", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"fast", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"fast", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:19, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:20, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:22, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:23, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:25, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:26, strType:"fast", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:27, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:29, strType:"fast", intNumber:10, dblLifeBonus:2.5});
=\x07.push({intId:30, strType:"fast", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:31, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:32, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:33, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:35, strType:"fast", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:36, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:37, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:39, strType:"fast", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:40, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:41, strType:"fast", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:42, strType:"fast", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:43, strType:"fast", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
=\x07.push({intId:45, strType:"fast", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:46, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:48, strType:"fast", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:49, strType:"fast", intNumber:5, dblLifeBonus:9});
=\x07.push({intId:50, strType:"fast", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 6) {
,\x04 = 600;
=\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 7) {
=\x07.push({intId:1, strType:"mix", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:2, strType:"fast", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:4, strType:"lusty", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:5, strType:"thirsty", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:6, strType:"captain", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:7, strType:"strong", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:8, strType:"mix", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:9, strType:"fast", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:10, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:11, strType:"lusty", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:12, strType:"thirsty", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:13, strType:"captain", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:14, strType:"strong", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:15, strType:"mix", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:16, strType:"fast", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:17, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:18, strType:"lusty", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:19, strType:"thirsty", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:20, strType:"captain", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:21, strType:"strong", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:22, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:23, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:24, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:25, strType:"lusty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:26, strType:"thirsty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:27, strType:"captain", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:28, strType:"strong", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:29, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:30, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:31, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:32, strType:"lusty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:33, strType:"thirsty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:34, strType:"captain", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:35, strType:"strong", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:36, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:37, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:38, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:39, strType:"lusty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:40, strType:"thirsty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:41, strType:"captain", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:42, strType:"strong", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:43, strType:"mix", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:44, strType:"fast", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:45, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:46, strType:"lusty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:47, strType:"thirsty", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:48, strType:"captain", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:49, strType:"strong", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:50, strType:"thirsty", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:51, strType:"captain", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:52, strType:"strong", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:53, strType:"mix", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:54, strType:"fast", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:55, strType:"greedy", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:56, strType:"lusty", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:57, strType:"thirsty", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:58, strType:"captain", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:59, strType:"strong", intNumber:4, dblLifeBonus:1});
=\x07.push({intId:60, strType:"captain", intNumber:4, dblLifeBonus:1});
} else if (_global.typetype == 8) {
,\x04 = 600;
=\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 9) {
} else if (_global.typetype == 10) {
=\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
} else if (_global.typetype == 11) {
,\x04 = 500;
=\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:2.5});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:3});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:4});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:5});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:6});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:6});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:7});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:7});
}
}
function Setup101Waves() {
=\x07.push({intId:1, strType:"greedy", intNumber:1, dblLifeBonus:1});
=\x07.push({intId:2, strType:"greedy", intNumber:2, dblLifeBonus:1});
=\x07.push({intId:3, strType:"greedy", intNumber:3, dblLifeBonus:1});
=\x07.push({intId:4, strType:"fast", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:5, strType:"mix", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:6, strType:"strong", intNumber:3, dblLifeBonus:1.25});
=\x07.push({intId:7, strType:"greedy", intNumber:5, dblLifeBonus:1.25});
=\x07.push({intId:8, strType:"greedy", intNumber:6, dblLifeBonus:1.25});
=\x07.push({intId:9, strType:"greedy", intNumber:7, dblLifeBonus:1.25});
=\x07.push({intId:10, strType:"captain", intNumber:4, dblLifeBonus:1.25});
=\x07.push({intId:11, strType:"mix", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:12, strType:"fast", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:13, strType:"strong", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:14, strType:"thirsty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:15, strType:"lusty", intNumber:5, dblLifeBonus:1.75});
=\x07.push({intId:16, strType:"greedy", intNumber:5, dblLifeBonus:2});
=\x07.push({intId:17, strType:"mix", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:18, strType:"fast", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:19, strType:"strong", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:20, strType:"captain", intNumber:5, dblLifeBonus:2.5});
=\x07.push({intId:21, strType:"thirsty", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:22, strType:"lusty", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:23, strType:"greedy", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:24, strType:"fast", intNumber:7, dblLifeBonus:2.5});
=\x07.push({intId:25, strType:"mix", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:26, strType:"strong", intNumber:5, dblLifeBonus:3});
=\x07.push({intId:27, strType:"greedy", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:28, strType:"fast", intNumber:7, dblLifeBonus:3});
=\x07.push({intId:29, strType:"mix", intNumber:10, dblLifeBonus:3});
=\x07.push({intId:30, strType:"captain", intNumber:5, dblLifeBonus:4});
=\x07.push({intId:31, strType:"thirsty", intNumber:6, dblLifeBonus:4});
=\x07.push({intId:32, strType:"lusty", intNumber:6, dblLifeBonus:6});
=\x07.push({intId:33, strType:"greedy", intNumber:6, dblLifeBonus:6});
=\x07.push({intId:34, strType:"fast", intNumber:6, dblLifeBonus:6});
=\x07.push({intId:35, strType:"mix", intNumber:10, dblLifeBonus:6});
=\x07.push({intId:36, strType:"strong", intNumber:6, dblLifeBonus:9});
=\x07.push({intId:37, strType:"greedy", intNumber:6, dblLifeBonus:9});
=\x07.push({intId:38, strType:"fast", intNumber:6, dblLifeBonus:9});
=\x07.push({intId:39, strType:"mix", intNumber:10, dblLifeBonus:9});
=\x07.push({intId:40, strType:"captain", intNumber:6, dblLifeBonus:9});
=\x07.push({intId:41, strType:"thirsty", intNumber:6, dblLifeBonus:12});
=\x07.push({intId:42, strType:"lusty", intNumber:6, dblLifeBonus:12});
=\x07.push({intId:43, strType:"greedy", intNumber:6, dblLifeBonus:12});
=\x07.push({intId:44, strType:"fast", intNumber:7, dblLifeBonus:12});
=\x07.push({intId:45, strType:"mix", intNumber:10, dblLifeBonus:14});
=\x07.push({intId:46, strType:"strong", intNumber:5, dblLifeBonus:14});
=\x07.push({intId:47, strType:"fast", intNumber:5, dblLifeBonus:14});
=\x07.push({intId:48, strType:"strong", intNumber:5, dblLifeBonus:15});
=\x07.push({intId:49, strType:"captain", intNumber:5, dblLifeBonus:15});
=\x07.push({intId:50, strType:"mix", intNumber:20, dblLifeBonus:15});
=\x07.push({intId:51, strType:"greedy", intNumber:3, dblLifeBonus:17});
=\x07.push({intId:52, strType:"greedy", intNumber:3, dblLifeBonus:17});
=\x07.push({intId:53, strType:"greedy", intNumber:3, dblLifeBonus:17});
=\x07.push({intId:54, strType:"fast", intNumber:6, dblLifeBonus:17});
=\x07.push({intId:55, strType:"mix", intNumber:5, dblLifeBonus:17});
=\x07.push({intId:56, strType:"strong", intNumber:5, dblLifeBonus:20});
=\x07.push({intId:57, strType:"greedy", intNumber:5, dblLifeBonus:20});
=\x07.push({intId:58, strType:"greedy", intNumber:6, dblLifeBonus:20});
=\x07.push({intId:59, strType:"greedy", intNumber:7, dblLifeBonus:20});
=\x07.push({intId:60, strType:"captain", intNumber:4, dblLifeBonus:20});
=\x07.push({intId:61, strType:"mix", intNumber:5, dblLifeBonus:20});
=\x07.push({intId:62, strType:"fast", intNumber:5, dblLifeBonus:20});
=\x07.push({intId:63, strType:"strong", intNumber:5, dblLifeBonus:23});
=\x07.push({intId:64, strType:"thirsty", intNumber:5, dblLifeBonus:23});
=\x07.push({intId:65, strType:"lusty", intNumber:5, dblLifeBonus:23});
=\x07.push({intId:66, strType:"greedy", intNumber:5, dblLifeBonus:23});
=\x07.push({intId:67, strType:"mix", intNumber:5, dblLifeBonus:23});
=\x07.push({intId:68, strType:"fast", intNumber:5, dblLifeBonus:25});
=\x07.push({intId:69, strType:"strong", intNumber:5, dblLifeBonus:24});
=\x07.push({intId:70, strType:"captain", intNumber:5, dblLifeBonus:24});
=\x07.push({intId:71, strType:"thirsty", intNumber:7, dblLifeBonus:26});
=\x07.push({intId:72, strType:"lusty", intNumber:7, dblLifeBonus:26});
=\x07.push({intId:73, strType:"greedy", intNumber:7, dblLifeBonus:26});
=\x07.push({intId:74, strType:"fast", intNumber:7, dblLifeBonus:26});
=\x07.push({intId:75, strType:"mix", intNumber:7, dblLifeBonus:26});
=\x07.push({intId:76, strType:"strong", intNumber:5, dblLifeBonus:28});
=\x07.push({intId:77, strType:"greedy", intNumber:7, dblLifeBonus:28});
=\x07.push({intId:78, strType:"fast", intNumber:7, dblLifeBonus:28});
=\x07.push({intId:79, strType:"mix", intNumber:10, dblLifeBonus:28});
=\x07.push({intId:80, strType:"captain", intNumber:5, dblLifeBonus:28});
=\x07.push({intId:81, strType:"thirsty", intNumber:6, dblLifeBonus:30});
=\x07.push({intId:82, strType:"lusty", intNumber:6, dblLifeBonus:30});
=\x07.push({intId:83, strType:"greedy", intNumber:6, dblLifeBonus:30});
=\x07.push({intId:84, strType:"fast", intNumber:6, dblLifeBonus:30});
=\x07.push({intId:85, strType:"mix", intNumber:10, dblLifeBonus:30});
=\x07.push({intId:86, strType:"strong", intNumber:6, dblLifeBonus:32});
=\x07.push({intId:87, strType:"greedy", intNumber:6, dblLifeBonus:32});
=\x07.push({intId:88, strType:"fast", intNumber:6, dblLifeBonus:32});
=\x07.push({intId:89, strType:"mix", intNumber:10, dblLifeBonus:34});
=\x07.push({intId:90, strType:"captain", intNumber:6, dblLifeBonus:34});
=\x07.push({intId:91, strType:"thirsty", intNumber:6, dblLifeBonus:34});
=\x07.push({intId:92, strType:"lusty", intNumber:6, dblLifeBonus:34});
=\x07.push({intId:93, strType:"greedy", intNumber:6, dblLifeBonus:36});
=\x07.push({intId:94, strType:"fast", intNumber:7, dblLifeBonus:36});
=\x07.push({intId:95, strType:"mix", intNumber:10, dblLifeBonus:36});
=\x07.push({intId:96, strType:"strong", intNumber:5, dblLifeBonus:38});
=\x07.push({intId:97, strType:"fast", intNumber:5, dblLifeBonus:38});
=\x07.push({intId:98, strType:"strong", intNumber:5, dblLifeBonus:40});
=\x07.push({intId:99, strType:"captain", intNumber:5, dblLifeBonus:40});
=\x07.push({intId:100, strType:"mix", intNumber:15, dblLifeBonus:40});
=\x07.push({intId:101, strType:"captain", intNumber:3, dblLifeBonus:60});
}
function <(_arg2) {
\r\x05 = _arg2;
}
function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1398 MovieClip [__Packages.EffectsEngine] Frame 0
class "
{
var
, =, @;
function " () {
\x1B\n = new Array();
=\x02 = new Array();
@\x07 = new Array();
}
function ?(_arg9, _arg4, _arg3) {
var _local2 = "Effects_Layer_" + _arg3;
_arg4.createEmptyMovieClip(_local2, _arg3);
\x1B\n.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 Vector();
_local3._x = =\x02[_local2].clipRef._x;
_local3._y = =\x02[_local2].clipRef._y;
var _local4 = new Vector();
_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 < \x1B\n.length) {
if (\x1B\n[_local2].layerName == _arg13) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 == -1) {
return(null);
}
var _local6 = \x1B\n[_local3].container;
var _local5 = (("effect_" + _arg13) + "_") + \x1B\n[_local3].intDepth;
_local6[\x1B\n[_local3].clipName].attachMovie(_arg18, _local5, \x1B\n[_local3].intDepth);
var _local4 = _local6[\x1B\n[_local3].clipName][_local5];
_local4._x = _arg17;
_local4._y = _arg16;
=\x02.push({name:_local5, layerName:_arg13, clipRef:_local4, clipName:\x1B\n[_local3].clipName, blnLocked:_arg14, targetClip:_arg15, rotateClip:_arg19});
\x1B\n[_local3].intDepth++;
if (\x1B\n[_local3].intDepth > 5000) {
\x1B\n[_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 (_arg10, _arg12, _arg13, _arg5, _arg6, _arg2, _arg9, _arg11) {
@\x07.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 < @\x07.length) {
if (@\x07[_local2].strShortcutName == _arg11) {
if (@\x07[_local2].blnConvertCoords == true) {
var _local6 = {x:_arg8, y:_arg7};
var _local5 = -1;
var _local3 = 0;
while (_local3 < \x1B\n.length) {
if (\x1B\n[_local3].layerName == @\x07[_local2].strLayerName) {
_local5 = _local3;
break;
}
_local3++;
}
if (_local5 != -1) {
\x1B\n[_local3].container.globalToLocal(_local6);
_arg8 = _local6.x;
_arg7 = _local6.y;
}
}
_local4 = CreateEffect(@\x07[_local2].strLibName, @\x07[_local2].strLayerName, _arg8, _arg7, false, null, null);
if (_local4 != null) {
if (@\x07[_local2].blnRandSize == true) {
_local4._xscale = (_local4._yscale = \x1D\x04(@\x07[_local2].intMinSize, @\x07[_local2].intMaxSize));
}
if (@\x07[_local2].blnRandRotation == true) {
_local4._rotation = \x1D\x04(0, 360);
}
}
break;
}
_local2++;
}
return(_local4);
}
function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1399 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var _x, _y;
function Vector () {
_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 ConvertToUnitVector() {
var _local2 = \x1F\f();
if (_local2 != 0) {
_x = _x / _local2;
_y = _y / _local2;
}
}
function 1() {
var _local2 = Math.atan2(_y, _x);
var _local3 = (360 * _local2) / (Math.PI*2);
return(_local3);
}
function CreateVectorTowardsAngle(_arg2) {
_arg2 = (_arg2 * Math.PI) / 180;
_x = Math.cos(_arg2) * 1;
_y = Math.sin(_arg2) * 1;
}
function
(_arg2, _arg3) {
CreateVectorTowardsAngle(_arg2);
@\n(_arg3);
}
function (_arg4, _arg8, _arg7) {
var _local5 = 0;
var _local2 = 1\x0B();
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 +() {
trace((("Vector: " + _x) + ", ") + _y);
}
}
Symbol 1400 MovieClip [__Packages.NotificationsEngine] Frame 0
class
{
var ], %, , <, ;, ;
function (_arg2, _arg3) {
]\x04 = new Array();
%\x04 = new Array();
\x0F\x06 = _arg2.createEmptyMovieClip("notificationsEngine_mc", _arg3);
<\x06 = _arg2._width / 2;
\x0F\x06._x = <\x06;
; = 100;
\x19\x03 = 200000 /* 0x030D40 */;
}
function () {
var _local2 = 0;
while (_local2 < ]\x04.length) {
if (\x0F\x06[]\x04[_local2].strName]._y < ]\x04[_local2].intTargetY) {
var _local3 = (]\x04[_local2].intTargetY - \x0F\x06[]\x04[_local2].strName]._y) * 0.25;
\x0F\x06[]\x04[_local2].strName]._y = \x0F\x06[]\x04[_local2].strName]._y + _local3;
if (\x0F\x06[]\x04[_local2].strName]._y > ]\x04[_local2].intTargetY) {
\x0F\x06[]\x04[_local2].strName]._y = ]\x04[_local2].intTargetY;
}
if (]\x04[_local2].intCounter <= 10) {
\x0F\x06[]\x04[_local2].strName]._alpha = \x0F\x06[]\x04[_local2].strName]._alpha - 10;
}
}
]\x04[_local2].intCounter = ]\x04[_local2].intCounter - 1;
if (]\x04[_local2].intCounter <= 0) {
\x0F\x06[]\x04[_local2].strName].removeMovieClip();
]\x04.splice(_local2, 1);
_local2--;
}
_local2++;
}
_local2 = 0;
while (_local2 < %\x04.length) {
if (\x0F\x06[%\x04[_local2].strName]._y < %\x04[_local2].intTargetY) {
var _local3 = (%\x04[_local2].intTargetY - \x0F\x06[%\x04[_local2].strName]._y) * 0.25;
\x0F\x06[%\x04[_local2].strName]._y = \x0F\x06[%\x04[_local2].strName]._y + _local3;
if (\x0F\x06[%\x04[_local2].strName]._y > %\x04[_local2].intTargetY) {
\x0F\x06[%\x04[_local2].strName]._y = %\x04[_local2].intTargetY;
}
if (%\x04[_local2].intCounter <= 10) {
\x0F\x06[%\x04[_local2].strName]._alpha = \x0F\x06[%\x04[_local2].strName]._alpha - 10;
}
}
%\x04[_local2].intCounter = %\x04[_local2].intCounter - 1;
if (%\x04[_local2].intCounter <= 0) {
\x0F\x06[%\x04[_local2].strName].removeMovieClip();
%\x04.splice(_local2, 1);
_local2--;
}
_local2++;
}
}
function ,(_arg12, _arg11) {
if (%\x04.length > 0) {
return(undefined);
}
var _local6 = "noti_" + ;;
var _local3 = \x0F\x06.attachMovie("notification", _local6, ;);
_local3._y = -10;
_local3.inside_txt.text = _arg12;
_local3.inside_txt.textColor = _arg11;
var _local2 = 0;
while (_local2 < ]\x04.length) {
]\x04[_local2].intTargetY = ]\x04[_local2].intTargetY + 12;
_local2++;
}
var _local4 = 15;
var _local5 = false;
if (%\x04.length > 0) {
_local4 = _local4 + \x0F\x06[%\x04[0].strName]._height;
_local5 = true;
}
]\x04.push({strName:_local6, intTargetY:_local4, intCounter:65, blnBumped:_local5});
;++;
if (]\x04.length > 5) {
\x0F\x06[]\x04[0].strName].removeMovieClip();
]\x04.shift();
}
}
function (_arg5) {
if (%\x04.length > 0) {
return(undefined);
}
var _local4 = "noti_" + \x19\x03;
var _local3 = \x0F\x06.attachMovie("notification", _local4, \x19\x03);
_local3._y = -25;
if (_arg5 == 20) {
_local3.gotoAndStop(11);
} else if (_arg5 < 11) {
_local3.gotoAndStop(_arg5);
}
var _local2 = 0;
while (_local2 < ]\x04.length) {
if (]\x04[_local2].blnBumped == false) {
]\x04[_local2].intTargetY = ]\x04[_local2].intTargetY + _local3._height;
]\x04[_local2].blnBumped = true;
}
_local2++;
}
%\x04.push({strName:_local4, intTargetY:20, intCounter:80});
\x19\x03++;
}
function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1401 MovieClip [__Packages.Tutorial] Frame 0
class Tutorial
{
var , ^, tIndex, ';
function Tutorial () {
\x13\x0B = 201000 /* 0x031128 */;
^ = false;
tIndex = 0;
' = new Array();
'.push({name:"Tmc_0", mc:"tut_starter", xLoc:163, yLoc:235});
'.push({name:"cur_t", mc:"tut_interface1", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface2", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface3", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface4", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface5", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface6", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface6.1", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface7", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface8", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface7.1", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface9", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface10", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface11", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface12", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface13", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface14", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface15", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface16", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface17", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface18", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface19", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface20", xLoc:227, yLoc:14});
'.push({name:"cur_t", mc:"tut_interface21", xLoc:227, yLoc:14});
}
function CreateNextObject() {
\x02\x07();
if (tIndex < '.length) {
_root.attachMovie('[tIndex].mc, '[tIndex].name, \x13\x0B);
_root['[tIndex].name]._x = '[tIndex].xLoc;
_root['[tIndex].name]._y = '[tIndex].yLoc;
tIndex++;
} else {
Finish();
}
}
function CreatePreviousObject() {
\x02\x07();
tIndex = tIndex - 2;
if (tIndex >= 0) {
_root.attachMovie('[tIndex].mc, '[tIndex].name, \x13\x0B);
_root['[tIndex].name]._x = '[tIndex].xLoc;
_root['[tIndex].name]._y = '[tIndex].yLoc;
tIndex++;
} else {
tIndex = 0;
_root.attachMovie('[tIndex].mc, '[tIndex].name, \x13\x0B);
_root['[tIndex].name]._x = '[tIndex].xLoc;
_root['[tIndex].name]._y = '[tIndex].yLoc;
tIndex++;
}
}
function FlagIt() {
^ = true;
}
function Skip() {
tIndex = 1;
}
function Finish() {
;\x04();
_root.game.)\x05();
if (^) {
_root.game.`\x03();
^ = false;
}
tIndex = 0;
}
function () {
_root['[tIndex - 1].name].removeMovieClip();
}
function ;() {
var _local3 = 0;
while (_local3 < '.length) {
_root['[_local3].name].removeMovieClip();
_local3++;
}
tIndex = 0;
}
}
Symbol 1402 MovieClip [__Packages.ToolTip] Frame 0
class
{
var curSec, ,
, , , <,
, , &, 2
, ",
, , %;
function (_arg7) {
curSec = 0;
\x14\x07 = -1;
\x14\n = _arg7;
\x0F\x07 = "tip_" + _arg7;
\x05\x05 = new Array();
<\x07 = new Array();
<\x07.push({xLoc:179, yLoc:465, mc:"tt1_1", visited:false});
\x05\x05.push({arr:<\x07});
\x07\n = new Array();
\x07\n.push({xLoc:178, yLoc:97, mc:"tt2_1", visited:false});
\x05\x05.push({arr:\x07\n});
\x0F = new Array();
\x0F.push({xLoc:172, yLoc:192, mc:"tt3_1", visited:false});
\x05\x05.push({arr:\x0F});
&\f = new Array();
&\f.push({xLoc:98, yLoc:203, mc:"tt4_1", visited:false});
\x05\x05.push({arr:&\f});
2\n = new Array();
2\n.push({xLoc:98, yLoc:203, mc:"tt5_1", visited:false});
\x05\x05.push({arr:2\n});
\"\x02 = new Array();
\"\x02.push({xLoc:97, yLoc:438, mc:"tt6_1", visited:false});
\"\x02.push({xLoc:97, yLoc:438, mc:"tt6_2", visited:false});
\"\x02.push({xLoc:97, yLoc:438, mc:"tt6_3", visited:false});
\x05\x05.push({arr:\"\x02});
\n\n = new Array();
\n\n.push({xLoc:96, yLoc:200, mc:"tt7_1", visited:false});
\x05\x05.push({arr:\n\n});
\x02\x05 = new Array();
\x02\x05.push({xLoc:96, yLoc:200, mc:"tt8_1", visited:false});
\x02\x05.push({xLoc:96, yLoc:200, mc:"tt8_2", visited:false});
\x05\x05.push({arr:\x02\x05});
%\x0B = new Array();
%\x0B.push({xLoc:98, yLoc:95, mc:"tt9_1", visited:false});
\x05\x05.push({arr:%\x0B});
}
function 8() {
var _local2 = 0;
while (_local2 < \x05\x05.length) {
var _local3 = \x05\x05[_local2].arr;
_local3[0].visited = false;
_local2++;
}
}
function () {
var _local2 = 0;
while (_local2 < \x05\x05.length) {
var _local3 = \x05\x05[_local2].arr;
_local3[0].visited = true;
_local2++;
}
}
function &() {
var _local2 = \x05\x05[curSec - 1].arr;
_local2[0].visited = true;
\x05\x05[curSec - 1].arr = _local2;
}
function
(_arg3) {
var _local2 = \x05\x05[_arg3 - 1].arr;
if (_local2[0].visited == true) {
return(true);
}
return(false);
}
function ((_arg5) {
var _local4 = \x05\x05[_arg5 - 1].arr;
_global.toolTipSection = (curSec = _arg5);
\x1A\x07();
\x14\x07++;
if (\x14\x07 > (_local4.length - 1)) {
CleanGroup();
} else {
_root.attachMovie(_local4[\x14\x07].mc, \x0F\x07, \x14\n);
_root[\x0F\x07]._x = _local4[\x14\x07].xLoc;
_root[\x0F\x07]._y = _local4[\x14\x07].yLoc;
}
}
function %(_arg4) {
var _local3 = \x05\x05[_arg4 - 1].arr;
curSec = _arg4;
\x1A\x07();
\x14\x07 = \x14\x07 - 2;
if (\x14\x07 < 0) {
\x14\x07 = 0;
}
_root.attachMovie(_local3[\x14\x07].mc, \x0F\x07, \x14\n);
_root[\x0F\x07]._x = _local3[\x14\x07].xLoc;
_root[\x0F\x07]._y = _local3[\x14\x07].yLoc;
}
function () {
_root[\x0F\x07].removeMovieClip();
}
function @() {
\x1A\x07();
&\x06();
\x14\x07 = -1;
_global.tutorialPrompt = true;
_root.game["\n\x03"].Skip();
_root.game.\x1F\x03();
}
function CleanGroup() {
\x1A\x07();
&\x06();
\x14\x07 = -1;
_root.game.)\x05();
_root.game.3\x07(curSec);
}
}
Symbol 1403 MovieClip [__Packages.Doodad] Frame 0
class 2 extends MovieClip
{
var _libName, _dim, _type;
function 2 () {
super();
>\x05();
}
function >() {
_libName = "Doodad_0";
_dim = 20;
_type = 0;
}
}
Symbol 1404 MovieClip [__Packages.Doodad_301] Frame 0
class Doodad_301 extends 2
{
var _libName, _dim, _type;
function Doodad_301 () {
super();
}
function >() {
_libName = "bush1";
_dim = 20;
_type = 301;
}
}
Symbol 1405 MovieClip [__Packages.Doodad_302] Frame 0
class Doodad_302 extends 2
{
var _libName, _dim, _type;
function Doodad_302 () {
super();
}
function >() {
_libName = "bush2";
_dim = 20;
_type = 302;
}
}
Symbol 1406 MovieClip [__Packages.Doodad_303] Frame 0
class Doodad_303 extends 2
{
var _libName, _dim, _type;
function Doodad_303 () {
super();
}
function >() {
_libName = "rock1";
_dim = 20;
_type = 303;
}
}
Symbol 1407 MovieClip [__Packages.Doodad_304] Frame 0
class Doodad_304 extends 2
{
var _libName, _dim, _type;
function Doodad_304 () {
super();
}
function >() {
_libName = "bush3";
_dim = 20;
_type = 304;
}
}
Symbol 1408 MovieClip [__Packages.Tower] Frame 0
class
extends MovieClip
{
var _arrLinks, ), 3, _blnOff, -, _bam, ), , _startOver, _libName, _dim, _type, _linkable, ', 9, _rRange, _rRange2, _damage, _upgrades, inner, _name, _timerRef, _x, _y, gotoAndStop, gotoAndPlay, barrel, _targetPirate, _xmouse, _ymouse;
function
() {
super();
_arrLinks = new Array();
)\x02 = new Array();
3\x03 = new Array();
_blnOff = false;
-\x05 = false;
_bam = false;
)\x07 = true;
\x0F\x04 = 0;
_startOver = false;
>\x05();
}
function >() {
_libName = "Tower_0";
_dim = 20;
_type = 1;
_linkable = true;
'\f = 1;
9\x05 = 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) {
\x14\f();
\x02\n();
}
}
}
function
() {
var \f\x06 = inner;
if (\x0F\x04 > 0) {
if (\x0F\x04 == 9\x05) {
if (\x1D\x04(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")) {
)\x02 = _root.game.\x04\x07(_name);
var 0 = 0;
while (0 < )\x02.length) {
if (_libName == "Tower_415") {
)\x02[0].DamageEnemy(_damage, 8);
} else if (_libName == "Tower_407") {
)\x02[0].DamageEnemy(_damage, 9);
} else if (_libName == "Tower_416") {
)\x02[0].DamageEnemy(_root.game.towerSetup.arrTowerSetup[15].damage2, 10);
}
0++;
}
}
_timerRef.gotoAndStop(100);
if ()\x07 == true) {
_timerRef = _root.game["8\x03"].CreateEffect("reload_clock", "game", _x, _y, false, null, null);
)\x07 = false;
}
_timerRef.gotoAndStop(Math.round((\x0F\x04 / 9\x05) * 100));
_timerRef._visible = true;
_bam = false;
\x0F\x04--;
if ((_libName == "Tower_403") || (_libName == "Tower_404")) {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
\f\x06.gotoAndPlay("reset");
}
} else if (_libName == "Tower_406") {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
gotoAndStop("dynReset");
}
} else if (_libName == "Tower_414") {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
gotoAndStop("pitReset");
}
} else if (_libName == "Tower_415") {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
gotoAndStop("pondReset");
}
} else if (_libName == "Tower_407") {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
\f\x06.gotoAndStop("off");
}
} else if (_libName == "Tower_416") {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
\f\x06.gotoAndStop("off");
}
} else if (_libName == "Tower_417") {
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
gotoAndStop("off");
}
} else if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
gotoAndPlay("reset");
}
if ((\x0F\x04 > 0) && (\x0F\x04 < 3)) {
_startOver = true;
}
} else {
if (_startOver == true) {
_startOver = false;
var 0 = 0;
while (0 < )\x02.length) {
if (_libName == "Tower_414") {
)\x02[0].DamageEnemy(_damage, 7);
)\x02[0].\x16\x0B(1);
} else if (_libName == "Tower_415") {
)\x02[0].\x16\x0B(1);
}
0++;
}
}
_timerRef._visible = false;
if (_bam == true) {
delete )\x02;
)\x02 = new Array();
if (_libName == "Tower_406") {
var ]\x0B = _root.game["8\x03"].CreateEffect("damageExplosionSmall", "game", _x + 20, _y + 20, false, null, null);
]\x0B._xscale = _rRange * 2;
]\x0B._yscale = _rRange * 2;
_root.game.\n\x06(_name, _rRange, _damage);
gotoAndStop("dynBam");
} else if (_libName == "Tower_407") {
\f\x06.gotoAndStop("on");
} else if (_libName == "Tower_402") {
_global.SoundManager.PlaySound("logswing", 60);
gotoAndPlay("trigger");
} else if (_libName == "Tower_403") {
_global.SoundManager.PlaySound("logswing", 60);
\f\x06.gotoAndPlay("trigger");
} else if (_libName == "Tower_404") {
\f\x06.gotoAndPlay("trigger");
} else if (_libName == "Tower_405") {
gotoAndPlay("trigger");
\x1E\x05(1);
\x1E\x05(2);
\x1E\x05(3);
} else if (_libName == "Tower_414") {
gotoAndStop("pitBam");
} else if (_libName == "Tower_415") {
gotoAndStop("pondBam");
} else if (_libName == "Tower_416") {
\f\x06.gotoAndPlay("heat");
}
_bam = false;
\x0F\x04 = 9\x05;
}
}
}
function (whichLog) {
var emitterRef = eval ("this.emitter" + whichLog);
var %\x07 = ("Bullet_" + _root.game["9\x07"]);
var @\x03 = {x:emitterRef._x, y:emitterRef._y};
emitterRef.localToGlobal(@\x03);
_root["\x13\f"].GAMEBOX.globalToLocal(@\x03);
_root["\x13\f"].GAMEBOX.attachMovie("Bullet5", %\x07, _root.game["9\x07"]);
_root["\x13\f"].GAMEBOX[%\x07]._x = @\x03.x;
_root["\x13\f"].GAMEBOX[%\x07]._y = @\x03.y;
_root["\x13\f"].GAMEBOX[%\x07].\x05\x04(_root.game.\"\x03(_x), _root.game.\"\x03(_y));
_root["\x13\f"].GAMEBOX[%\x07]._enTarget = null;
_root["\x13\f"].GAMEBOX[%\x07]["<\x02"] = false;
_root["\x13\f"].GAMEBOX[%\x07]._rotation = 90;
_root.game["\x18\n"].push(%\x07);
_root.game["9\x07"]++;
if (_root.game["9\x07"] > 89999) {
_root.game["9\x07"] = 80000 /* 0x013880 */;
}
}
function
() {
if (\x0F\x04 > 0) {
\x0F\x04--;
} else {
var \x1C\f = barrel;
var %\x07 = ("Bullet_" + _root.game["9\x07"]);
var @\x03 = {x:\x1C\f.emitter._x, y:\x1C\f.emitter._y};
\x1C\f.localToGlobal(@\x03);
_root["\x13\f"].GAMEBOX.globalToLocal(@\x03);
_root["\x13\f"].GAMEBOX.attachMovie("Bullet" + '\f, %\x07, _root.game["9\x07"]);
_root["\x13\f"].GAMEBOX[%\x07]._x = @\x03.x;
_root["\x13\f"].GAMEBOX[%\x07]._y = @\x03.y;
_root["\x13\f"].GAMEBOX[%\x07]._enTarget = _targetPirate;
_root["\x13\f"].GAMEBOX[%\x07]["<\x02"] = true;
_root.game.arrBullets.push(%\x07);
_root.game["9\x07"]++;
if (_root.game["9\x07"] > 89999) {
_root.game["9\x07"] = 80000 /* 0x013880 */;
}
\x0F\x04 = 9\x05;
if ('\f == 1) {
_global.SoundManager.PlaySound("spear", 50);
} else if ('\f == 3) {
_global.SoundManager.PlaySound("rifle", 15);
}
}
}
function `(_arg5, _arg6) {
if (_arg6 == true) {
var _local4 = (_x + (_dim / 2)) - _root["\x13\f"].GAMEBOX._xmouse;
var _local3 = (_y + (_dim / 2)) - _root["\x13\f"].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 (-\x05 == false) {
-\x05 = _root.game.9\x0B(_name);
} else if (_root.game.5\x03(_targetPirate._name)) {
\r();
if (`\x02(_targetPirate, false) >= _rRange) {
-\x05 = false;
} else {
,(_targetPirate, false);
}
} else {
-\x05 = false;
}
}
function ,(!\u000C, )\u000C) {
if (_type == 1) {
var \x1C\f = barrel;
var -\x04 = new Vector();
var myRadians;
var myDegrees;
if ()\f == true) {
-\x04._x = \x1C\f._x - _xmouse;
-\x04._y = \x1C\f._y - _ymouse;
myRadians = Math.atan2(-\x04._y, -\x04._x);
myDegrees = (360 * myRadians) / (Math.PI*2);
\x1C\f._rotation = myDegrees;
} else {
var myPoint = {x:\x1C\f._x, y:\x1C\f._y};
\x1C\f._parent.localToGlobal(myPoint);
_root["\x13\f"].GAMEBOX.globalToLocal(myPoint);
-\x04._x = !\f._x - myPoint.x;
-\x04._y = !\f._y - myPoint.y;
myRadians = Math.atan2(-\x04._y, -\x04._x);
myDegrees = (360 * myRadians) / (Math.PI*2);
\x1C\f._rotation = myDegrees;
}
}
}
function () {
if (_blnOff == false) {
var _local3 = 0;
while (_local3 < _arrLinks.length) {
if (_type == 1) {
} else if (_type == 2) {
if (_root["\x13\f"].GAMEBOX[_arrLinks[_local3]]._type == 1) {
} else {
_root["\x13\f"].GAMEBOX[_arrLinks[_local3]]._bam = true;
_root["\x13\f"].GAMEBOX[_arrLinks[_local3]].\x1F\x05();
}
} else if (_type == 3) {
var _local5 = true;
var _local4 = 0;
while (_local4 < 3\x03.length) {
if (_arrLinks[_local3] == 3\x03[_local4].whichTower) {
_local5 = false;
}
_local4++;
}
if (_local5) {
3\x03.push({countDown:Math.floor(\x1A\n(_root["\x13\f"].GAMEBOX[_arrLinks[_local3]]) / 5), whichTower:_arrLinks[_local3]});
}
}
_local3++;
}
}
}
function () {
var _local3 = 0;
while (_local3 < 3\x03.length) {
3\x03[_local3].countDown--;
if (3\x03[_local3].countDown <= 0) {
_root["\x13\f"].GAMEBOX[3\x03[_local3].whichTower]._bam = true;
_root["\x13\f"].GAMEBOX[3\x03[_local3].whichTower].\x1F\x05();
3\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["\x13\f"].GAMEBOX[_arrLinks[_local3]].\x12\x03(_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 1409 MovieClip [__Packages.Tower_401] Frame 0
class Tower_401 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, ', _upgrades;
function Tower_401 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[0].reload;
'\f = 1;
_upgrades = _root.game.towerSetup.arrTowerSetup[0].upgradeType;
}
}
Symbol 1410 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends MovieClip
{
var , bHit, _arrLogPath, , ;, , 5, <, ,, _x, _y, _width, _enTarget, _name, , , gotoAndPlay, _rotation;
function Bullet () {
super();
\x0E\x04 = bHit;
_arrLogPath = new Array();
\x06\x04 = null;
;\x02 = null;
>\x05();
}
function >() {
\x1D\x07 = 0;
5\x04 = 3;
<\x02 = false;
,\x03 = 5;
}
function () {
4\x03();
}
function `(_arg4, _arg5) {
var _local3 = _x - _arg4;
var _local2 = _y - _arg5;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function 4() {
if (<\x02 == true) {
if (`\x02(_enTarget._x, _enTarget._y) < (_width - 3)) {
if ((\x1D\x07 == 2) || (\x1D\x07 == 3)) {
var _local4 = _root.game["8\x03"].CreateEffect("damageExplosionSmall", "game", _x, _y, false, null, null);
_local4._xscale = (_local4._yscale = (\x1D\x07 * 10) * 2);
_global.SoundManager.PlaySound("coconut", 25);
_root.game.]\x07(_name, \x1D\x07 * 10, 0.2 * ,\x03, \x1D\x07);
}
<\x02 = false;
_enTarget.DamageEnemy(,\x03, \x1D\x07);
_root.game.RemoveBullet(_name);
} else {
6\x0B();
_x = _x + \x12\x0B;
_y = _y + \f\x05;
}
} else if (\x1D\x07 == 4) {
if ((\x06\x04 != null) && (\x06\x04 != undefined)) {
if (\x06\x04 == 0) {
gotoAndPlay("fadeOut");
\x06\x04 = null;
\x1D\x07 = 9000;
} else if (_y > \x06\x04) {
gotoAndPlay("fadeOut");
\x06\x04 = null;
\x1D\x07 = 9000;
} else {
_root.game.7\x0B(_name);
4\x07();
_x = _x + \x12\x0B;
_y = _y + \f\x05;
if (_root.game.map.TriggerCheck(_root.game.\"\x03(_x), _root.game.\"\x03(_y))) {
_root.game.?\x0B(_name);
}
}
}
} else if (\x1D\x07 == 9000) {
gotoAndPlay("fadeOut");
\x1D\x07 = 100;
}
}
function (_arg5, _arg4) {
var _local3 = false;
_arrLogPath = _root.game["\n\x07"].BumpDown(_arg5, _arg4 + 1, 5);
\x06\x04 = _root.game.\r\x0B(_arrLogPath[_arrLogPath.length - 1].y) + 20;
if (_arrLogPath == null) {
_local3 = true;
}
_arrLogPath = _root.game["\n\x07"].BumpDown(_arg5 + 1, _arg4 + 1, 5);
;\x02 = _root.game.\r\x0B(_arrLogPath[_arrLogPath.length - 1].y) + 20;
if (_arrLogPath == null) {
_local3 = true;
}
if (_local3 == true) {
\x06\x04 = 0;
} else if (;\x02 < \x06\x04) {
\x06\x04 = ;\x02;
}
}
function 6() {
RotateBullet();
var _local2 = new Vector();
_local2._x = Math.cos((Math.PI * _rotation) / 180) * 5\x04;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * 5\x04;
\x12\x0B = _local2._x;
\f\x05 = _local2._y;
}
function 4() {
var _local2 = new Vector();
_local2._x = Math.cos((Math.PI * _rotation) / 180) * 5\x04;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * 5\x04;
\x12\x0B = _local2._x;
\f\x05 = _local2._y;
}
function RotateBullet() {
var _local2 = new Vector();
_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() {
<\x02 = true;
}
function Stop() {
<\x02 = false;
}
}
Symbol 1411 MovieClip [__Packages.Bullet1] Frame 0
class Bullet1 extends Bullet
{
var , 5, ,;
function Bullet1 () {
super();
}
function >() {
\x1D\x07 = 0;
5\x04 = 4;
,\x03 = _root.game.towerSetup.arrTowerSetup[0].damage;
}
}
Symbol 1412 MovieClip [__Packages.Tower_402] Frame 0
class Tower_402 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_402 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[1].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[1].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[1].upgradeType;
}
}
Symbol 1413 MovieClip [__Packages.Tower_403] Frame 0
class Tower_403 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_403 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[2].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[2].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[2].upgradeType;
}
}
Symbol 1414 MovieClip [__Packages.Tower_404] Frame 0
class Tower_404 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_404 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[3].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[3].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[3].upgradeType;
}
}
Symbol 1415 MovieClip [__Packages.Tower_405] Frame 0
class Tower_405 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_405 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[4].reload;
_bump = 4;
_damage = _root.game.towerSetup.arrTowerSetup[4].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[4].upgradeType;
}
}
Symbol 1416 MovieClip [__Packages.Bullet5] Frame 0
class Bullet5 extends Bullet
{
var , 5, ,;
function Bullet5 () {
super();
}
function >() {
\x1D\x07 = 4;
5\x04 = 2;
,\x03 = _root.game.towerSetup.arrTowerSetup[4].damage;
}
}
Symbol 1417 MovieClip [__Packages.Tower_406] Frame 0
class Tower_406 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _damage, _upgrades;
function Tower_406 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[5].reload;
_damage = _root.game.towerSetup.arrTowerSetup[5].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[5].upgradeType;
}
}
Symbol 1418 MovieClip [__Packages.Tower_407] Frame 0
class Tower_407 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _damage, _upgrades;
function Tower_407 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[6].reload;
_damage = _root.game.towerSetup.arrTowerSetup[6].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[6].upgradeType;
}
}
Symbol 1419 MovieClip [__Packages.Tower_108] Frame 0
class Tower_108 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_108 () {
super();
}
function >() {
_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 1420 MovieClip [__Packages.Tower_109] Frame 0
class Tower_109 extends
{
var _libName, _dim, _type, _linkable, , _rRange, _rRange2, 9, _upgrades;
function Tower_109 () {
super();
}
function >() {
_libName = "Tower_109";
_dim = _root.game.towerSetup.arrTowerSetup[8].squareDim;
_type = _root.game.towerSetup.arrTowerSetup[8].type;
_linkable = _root.game.towerSetup.arrTowerSetup[8].linkable;
\x0F\x04 = 0;
_rRange = _root.game.towerSetup.arrTowerSetup[8].range;
_rRange2 = _root.game.towerSetup.arrTowerSetup[8].range2;
9\x05 = _root.game.towerSetup.arrTowerSetup[8].reload;
_upgrades = _root.game.towerSetup.arrTowerSetup[8].upgradeType;
}
}
Symbol 1421 MovieClip [__Packages.Tower_410] Frame 0
class Tower_410 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_410 () {
super();
}
function >() {
_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 1422 MovieClip [__Packages.Tower_411] Frame 0
class Tower_411 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, ', _damage, _upgrades;
function Tower_411 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[10].reload;
'\f = 2;
_damage = _root.game.towerSetup.arrTowerSetup[10].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[10].upgradeType;
}
}
Symbol 1423 MovieClip [__Packages.Bullet2] Frame 0
class Bullet2 extends Bullet
{
var , 5, ,;
function Bullet2 () {
super();
}
function >() {
\x1D\x07 = 2;
5\x04 = 3;
,\x03 = _root.game.towerSetup.arrTowerSetup[10].damage;
}
}
Symbol 1424 MovieClip [__Packages.Tower_412] Frame 0
class Tower_412 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, ', _damage, _upgrades;
function Tower_412 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[11].reload;
'\f = 3;
_damage = _root.game.towerSetup.arrTowerSetup[11].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[11].upgradeType;
}
}
Symbol 1425 MovieClip [__Packages.Bullet3] Frame 0
class Bullet3 extends Bullet
{
var , 5, ,;
function Bullet3 () {
super();
}
function >() {
\x1D\x07 = 1;
5\x04 = 3;
,\x03 = _root.game.towerSetup.arrTowerSetup[11].damage;
}
}
Symbol 1426 MovieClip [__Packages.Tower_413] Frame 0
class Tower_413 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, ', _damage, _upgrades;
function Tower_413 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[12].reload;
'\f = 4;
_damage = _root.game.towerSetup.arrTowerSetup[12].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[12].upgradeType;
}
}
Symbol 1427 MovieClip [__Packages.Bullet4] Frame 0
class Bullet4 extends Bullet
{
var , 5, ,;
function Bullet4 () {
super();
}
function >() {
\x1D\x07 = 3;
5\x04 = 5;
,\x03 = _root.game.towerSetup.arrTowerSetup[12].damage;
}
}
Symbol 1428 MovieClip [__Packages.Tower_414] Frame 0
class Tower_414 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_414 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[13].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[13].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[13].upgradeType;
}
}
Symbol 1429 MovieClip [__Packages.Tower_415] Frame 0
class Tower_415 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_415 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[14].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[14].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[14].upgradeType;
}
}
Symbol 1430 MovieClip [__Packages.Tower_416] Frame 0
class Tower_416 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_416 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[15].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[15].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[15].upgradeType;
}
}
Symbol 1431 MovieClip [__Packages.Tower_417] Frame 0
class Tower_417 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, 9, _bump, _damage, _upgrades;
function Tower_417 () {
super();
}
function >() {
_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;
9\x05 = _root.game.towerSetup.arrTowerSetup[16].reload;
_bump = 3;
_damage = _root.game.towerSetup.arrTowerSetup[16].damage;
_upgrades = _root.game.towerSetup.arrTowerSetup[16].upgradeType;
}
}
Symbol 1432 MovieClip [__Packages.Tower_118] Frame 0
class Tower_118 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_118 () {
super();
}
function >() {
_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 1433 MovieClip [__Packages.Tower_119] Frame 0
class Tower_119 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_119 () {
super();
}
function >() {
_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 1434 MovieClip [__Packages.Tower_120] Frame 0
class Tower_120 extends
{
var _libName, _dim, _type, _linkable, _rRange, _rRange2, _damage, _upgrades;
function Tower_120 () {
super();
}
function >() {
_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 1435 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var arrPathToTravel, (, startTest, 7, logTimmer, ], ;, blnBumped, , 7,
, splasher, 4, , 5, ", _blnGetLure, , <, , ,, %,
,
, 0, , ', ,
, comboTimer, , comboTally, arrPastLure, cacheAsBitmap, enemyType, enemyLife, enemySpeed, _dim, , , , 7
, , , , 4
, _x, _y, _xscale, _yscale, _visible, _name, &, , _rotation, , enemyTotalLife;
function Enemy () {
super();
arrPathToTravel = null;
>\x05();
(\x06 = false;
startTest = true;
7\x07 = 0;
logTimmer = 0;
]\x03 = 0;
;\x07 = 0;
blnBumped = false;
\x04 = true;
7\x03 = false;
\x13\n = false;
splasher = 0;
4\x04 = false;
\x0B\x0B = 0.5;
5\x06 = 0;
\" = false;
_blnGetLure = false;
\x04\x0B = false;
<\x05 = 0;
\x1D = 0;
,\x05 = -1;
%\x02 = false;
\x0E\n = 0;
\x0B\n = false;
0\x04 = false;
\x16\x07 = false;
'\x03 = -1;
\x1F\x06 = 0;
\r\x02 = 0;
comboTimer = -1;
\x05\x07 = -1;
comboTally = 0;
arrPastLure = new Array();
cacheAsBitmap = true;
}
function >() {
enemyType = 0;
enemyLife = 10;
enemySpeed = 1;
_dim = 20;
\x04\x06 = 10;
\x03\f = 30;
}
function SetupPirate() {
if (_root.game["1\n"] == false) {
if (arrPathToTravel != null) {
if (_root.game.map.IsPathBlocked(arrPathToTravel) == false) {
return(undefined);
}
}
>();
}
}
function >() {
(\x06 = false;
7\x07 = 0;
\x19\f();
if (startTest == true) {
if (\x11\x07 < 11) {
7\n = 17;
} else {
7\n = 4;
}
startTest = false;
}
if (\x0B\n == false) {
if (%\x02 == false) {
var _local3 = _root.game["\n\x07"].Search(\x11\x07, \x18\x02, 7\n, 0);
if (_local3 != null) {
%\x02 = false;
arrPathToTravel = _local3;
} else {
%\x02 = true;
\x0E\n++;
arrPathToTravel = _root.game["\n\x07"].Wander(\x11\x07, \x18\x02);
}
} else if (\x0E\n < 10) {
\x0E\n++;
arrPathToTravel = _root.game["\n\x07"].Wander(\x11\x07, \x18\x02);
} else {
\x0E\n = 0;
%\x02 = false;
\x0B\n = true;
>();
}
6\x0B();
(\x06 = true;
}
}
function 4(_arg4, _arg3) {
(\x06 = false;
7\x07 = 0;
\x19\f();
arrPathToTravel = _root.game["\n\x07"].Search(\x11\x07, \x18\x02, _arg4, _arg3);
6\x0B();
(\x06 = true;
}
function SetupPirate2(_arg5, _arg4) {
if (_root.game["1\n"] == false) {
(\x06 = false;
7\x07 = 0;
\x19\f();
var _local3 = new Array();
if (_arg4 == 1) {
_local3 = _root.game["\n\x07"].BumpLeft(\x11\x07, \x18\x02, _arg5);
} else if (_arg4 == 2) {
_local3 = _root.game["\n\x07"].BumpRight(\x11\x07, \x18\x02, _arg5);
} else if (_arg4 == 3) {
_local3 = _root.game["\n\x07"].BumpUp(\x11\x07, \x18\x02, _arg5);
} else if (_arg4 == 4) {
_local3 = _root.game["\n\x07"].BumpDown(\x11\x07, \x18\x02, _arg5);
}
]\x03 = _arg4;
if (_local3 == null) {
>();
} else {
arrPathToTravel = _local3;
\x10\x02 = _arg4;
\x02\x0B = arrPathToTravel[arrPathToTravel.length - 1].x;
4\n = arrPathToTravel[arrPathToTravel.length - 1].y;
\x02\x0B = \r\x0B(\x02\x0B) + 10;
4\n = \r\x0B(4\n) + 10;
blnBumped = true;
}
}
}
function
(_arg5) {
var _local3 = 0;
var _local4 = new Array();
if (]\x03 == 1) {
_local3 = _root.game.map.UpOrDown(\x11\x07, \x18\x02);
if (_local3 == 0) {
_local4 = _root.game["\n\x07"].BumpRight(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 2;
} else if (_local3 == 3) {
_local4 = _root.game["\n\x07"].BumpUp(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 3;
} else if (_local3 == 4) {
_local4 = _root.game["\n\x07"].BumpDown(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 4;
}
} else if (]\x03 == 2) {
_local3 = _root.game.map.UpOrDown(\x11\x07, \x18\x02);
if (_local3 == 0) {
_local4 = _root.game["\n\x07"].BumpLeft(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 1;
} else if (_local3 == 3) {
_local4 = _root.game["\n\x07"].BumpUp(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 3;
} else if (_local3 == 4) {
_local4 = _root.game["\n\x07"].BumpDown(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 4;
}
} else if (]\x03 == 3) {
_local3 = _root.game.map.LeftOrRight(\x11\x07, \x18\x02);
if (_local3 == 0) {
_local4 = _root.game["\n\x07"].BumpDown(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 4;
} else if (_local3 == 1) {
_local4 = _root.game["\n\x07"].BumpLeft(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 1;
} else if (_local3 == 2) {
_local4 = _root.game["\n\x07"].BumpRight(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 2;
}
} else if (]\x03 == 4) {
_local3 = _root.game.map.LeftOrRight(\x11\x07, \x18\x02);
if (_local3 == 0) {
_local4 = _root.game["\n\x07"].BumpUp(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 3;
} else if (_local3 == 1) {
_local4 = _root.game["\n\x07"].BumpLeft(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 1;
} else if (_local3 == 2) {
_local4 = _root.game["\n\x07"].BumpRight(\x11\x07, \x18\x02, _arg5);
\x10\x02 = 2;
}
}
_root.game["8\x03"].CreateEffect("splash", "game", _x, _y, false, null, null);
splasher = 0;
return(_local4);
}
function (_arg3) {
if (_root.game["1\n"] == false) {
(\x06 = false;
7\x07 = 0;
\x19\f();
arrPathToTravel = \x0F\n(_arg3);
if (arrPathToTravel == null) {
trace("it happened..");
(\x06 = true;
} else {
\x02\x0B = arrPathToTravel[arrPathToTravel.length - 1].x;
4\n = arrPathToTravel[arrPathToTravel.length - 1].y;
\x02\x0B = \r\x0B(\x02\x0B) + 10;
4\n = \r\x0B(4\n) + 10;
blnBumped = true;
}
}
}
function () {
if (;\x07 <= 0) {
#\x03();
4\x03();
\x06\x0B();
\x02\f();
\x1D\x02();
>\x07();
+\x06();
\x07\f();
\x0B\f();
\x18\x06();
ComboTimer();
} else {
;\x07--;
}
}
function ComboTimer() {
if (comboTimer > 0) {
comboTimer--;
} else if (comboTimer != -1) {
_root.game.ComboAchieve(comboTally);
\x05\x07 = -1;
comboTally = 0;
comboTimer = -1;
}
}
function () {
var _local3 = _root.game["8\x03"].CreateEffect("hole", "holes", _x, _y, false, null, null);
0\x04 = true;
}
function )() {
var _local7 = \"\x03(_x);
var _local6 = \"\x03(_y);
var _local8 = _root.game["\n\x07"].FindPointToEnd(_local7, _local6, 17, 0, 4, 0);
var _local4 = _local8[0].x;
var _local3 = _local8[0].y;
if (_local8 == null) {
_local4 = \x1D\x04(\"\x03(_x) - 5, \"\x03(_x) + 5);
_local3 = \x1D\x04(\"\x03(_y) - 5, \"\x03(_y) + 5);
var _local5 = 0;
while ((_root.game.map.CheckIfBlocked(_local4, _local3) && ((_local7 != _local4) && (_local6 != _local3))) || (_local5 > 15)) {
_local5++;
_local4 = \x1D\x04(\"\x03(_x) - 5, \"\x03(_x) + 5);
_local3 = \x1D\x04(\"\x03(_y) - 5, \"\x03(_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 = \r\x0B(_local4) + 10;
_local3 = \r\x0B(_local3) + 10;
_x = _local4;
_y = _local3;
\x1F\x06 = _local4;
\r\x02 = _local3;
'\x03 = 20;
}
function () {
if ('\x03 == 0) {
'\x03 = -1;
var _local3 = _root.game["8\x03"].CreateEffect("hole", "holes", \x1F\x06, \r\x02, false, null, null);
\x16\x07 = true;
} else if ('\x03 != -1) {
'\x03--;
}
}
function () {
if (0\x04 == true) {
_xscale = _xscale - 3;
_yscale = _yscale - 3;
if (_xscale <= 0) {
)\x04();
0\x04 = false;
}
}
}
function () {
if (\x16\x07 == true) {
_xscale = _xscale + 3;
_yscale = _yscale + 3;
if (_xscale >= 100) {
_xscale = 100;
_yscale = 100;
>();
\x16\x07 = false;
}
}
}
function #() {
if (_blnGetLure == true) {
if (\x04\x0B == false) {
\x04\x0B = true;
4\x02(<\x05, \x1D);
}
}
}
function () {
if (splasher > 0) {
splasher--;
}
}
function +() {
if (,\x05 == 0) {
>();
,\x05 = -1;
_blnGetLure = false;
\x04\x0B = false;
} else if (,\x05 > 0) {
,\x05--;
}
}
function Start() {
splasher = 0;
_visible = true;
(\x06 = true;
}
function Stop() {
if (\x13\n == true) {
\x13\n = false;
_visible = false;
if (splasher < 1) {
splasher = 300;
_root.game["8\x03"].CreateEffect("splash", "game", _x, _y, false, null, null);
}
}
(\x06 = false;
}
function () {
if (5\x06 == 416) {
DamageEnemy(_root.game.towerSetup.arrTowerSetup[15].damage, 10);
\x16\x0B(1);
} else if (5\x06 == 417) {
4\x04 = true;
>();
blnBumped = false;
}
}
function () {
if (blnBumped == true) {
if (\x10\x02 == 1) {
if (_x > (\x02\x0B + 3)) {
_visible = true;
_x = _x - (`\x02(\x02\x0B, _y) * 0.2);
} else {
if (_root.game.8(_name)) {
_x = \x02\x0B;
\x1E();
} else {
_x = \x02\x0B;
>();
blnBumped = false;
}
;\x07 = 5;
}
} else if (\x10\x02 == 2) {
if (_x < (\x02\x0B + 3)) {
_visible = true;
_x = _x + (`\x02(\x02\x0B, _y) * 0.2);
} else {
if (_root.game.8(_name)) {
_x = \x02\x0B;
\x1E();
} else {
_x = \x02\x0B;
>();
blnBumped = false;
}
;\x07 = 5;
}
} else if (\x10\x02 == 3) {
if (_y > (4\n + 3)) {
_visible = true;
_y = _y - (`\x02(_x, 4\n) * 0.2);
} else {
if (_root.game.8(_name)) {
_y = 4\n;
\x1E();
} else {
_y = 4\n;
>();
blnBumped = false;
}
;\x07 = 5;
}
} else if (\x10\x02 == 4) {
if (_y < (4\n - 3)) {
_visible = true;
_y = _y + (`\x02(_x, 4\n) * 0.2);
} else {
if (_root.game.8(_name)) {
_y = 4\n;
\x1E();
} else {
_y = 4\n;
>();
blnBumped = false;
}
;\x07 = 5;
}
}
}
}
function () {
if (logTimmer < 0) {
if (7\x03 == true) {
7\x03 = 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 (\" == true) {
if (4\x04 == false) {
\x19\f();
if (_root.game.map.Tower417Check(\x11\x07, \x18\x02)) {
\" = false;
4\x04 = true;
}
}
}
if (4\x04 == true) {
\x19\f();
if (_root.game.map.SlowSpeedCheck(\x11\x07, \x18\x02)) {
4\x04 = false;
}
}
}
function 4() {
if ((\x06 == true) {
if (((_x > (\r\x0B(arrPathToTravel[7\x07].x) + 5)) && (_x < (\r\x0B(arrPathToTravel[7\x07].x) + 15))) && ((_y > (\r\x0B(arrPathToTravel[7\x07].y) + 5)) && (_y < (\r\x0B(arrPathToTravel[7\x07].y) + 15)))) {
7\x07++;
6\x0B();
if (_root.game.map.Tower417Check(arrPathToTravel[7\x07].x, arrPathToTravel[7\x07].y)) {
if (\" == false) {
if (\x1D\x04(0, 100) < 60) {
_global.SoundManager.PlaySound("tar", 100);
}
}
\" = true;
}
} else {
_visible = true;
_x = _x + &\x02;
_y = _y + \x0E\f;
}
if (7\x07 >= arrPathToTravel.length) {
if (%\x02 == true) {
>();
} else if (_blnGetLure == true) {
_blnGetLure = false;
(\x06 = false;
,\x05 = 40;
} else if (\x0B\n == false) {
,\x05 = 0;
_root.game. \x06();
(\x06 = false;
\"\x06();
} else {
%\x02 = false;
\x0B\n = false;
(\x06 = false;
\x13\x06();
}
}
}
}
function 6() {
RotateEnemy();
var _local2 = new Vector();
if (4\x04 == 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) * \x0B\x0B;
_local2._y = Math.sin((Math.PI * _rotation) / 180) * \x0B\x0B;
}
&\x02 = _local2._x;
\x0E\f = _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 != \x05\x07) {
ComboAddWithReset();
}
}
}
\x05\x07 = _arg3;
if ( \x04 == true) {
\x1A\x03 = _root.game["8\x03"].CreateEffect("health_bar", "game", _x, _y, true, this, null);
\x04 = false;
}
if (_arg3 == 7) {
enemyLife = enemyLife * _arg4;
} else {
enemyLife = enemyLife - _arg4;
}
if (enemyLife <= 0) {
\x1A\x03.lBar._xscale = 0;
if (_arg3 == 7) {
} else if (_arg3 == 8) {
_root.game["8\x03"].CreateEffect("splash", "game", _x, _y, false, null, null);
}
_root.game["8\x03"].CreateEffect("PirateAngelAnimation", "game", _x, _y, false, null, null);
_root.game.ComboAchieve(comboTally);
_root.game.ScoreAddition(\x04\x06, \x03\f);
\"\x06();
} else if (((enemyLife / enemyTotalLife) * 100) != 100) {
\x1A\x03.lBar._xscale = (enemyLife / enemyTotalLife) * 100;
if (\x1A\x03.lBar._xscale > 100) {
\x1A\x03.lBar._xscale = 100;
}
if (\x1A\x03.lBar._xscale < 0) {
\x1A\x03.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 Vector();
_local2._x = (\r\x0B(arrPathToTravel[7\x07].x) + 10) - _x;
_local2._y = (\r\x0B(arrPathToTravel[7\x07].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 () {
\x11\x07 = \"\x03(_x);
\x18\x02 = \"\x03(_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) {
trace((arrPathToTravel[_local3].x + " , ") + arrPathToTravel[_local3].y);
var _local4 = "temper_" + _root.game["\x1B\f"];
_root["\x13\f"].GAMEBOX.attachMovie("Path_Block", _local4, _root.game["\x1B\f"]);
_root["\x13\f"].GAMEBOX[_local4]._x = arrPathToTravel[_local3].x * 20;
_root["\x13\f"].GAMEBOX[_local4]._y = arrPathToTravel[_local3].y * 20;
_root.game["\x1B\f"]++;
if (_root.game["\x1B\f"] >= 62000) {
_root.game["\x1B\f"] = 61000;
}
_local3++;
}
}
function "() {
_root.game.CheckBulletTargets(_name);
_root.game["8\x03"].RemoveEffect(\x1A\x03._name);
_root.game.-\x06(_name);
}
function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 1436 MovieClip [__Packages.Enemy_1] Frame 0
class Enemy_1 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, , ;
function Enemy_1 () {
super();
}
function >() {
enemyType = 1;
enemyLife = _root.game.towerSetup.arrEnemySetup[0].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[0].speed;
_dim = _root.game.towerSetup.arrEnemySetup[0].dim;
\x04\x06 = _root.game.towerSetup.arrEnemySetup[0].reward;
\x03\f = _root.game.towerSetup.arrEnemySetup[0].goldReward;
}
}
Symbol 1437 MovieClip [__Packages.Enemy_2] Frame 0
class Enemy_2 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, , ;
function Enemy_2 () {
super();
}
function >() {
enemyType = 2;
enemyLife = _root.game.towerSetup.arrEnemySetup[1].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[1].speed;
_dim = _root.game.towerSetup.arrEnemySetup[1].dim;
\x04\x06 = _root.game.towerSetup.arrEnemySetup[1].reward;
\x03\f = _root.game.towerSetup.arrEnemySetup[1].goldReward;
}
}
Symbol 1438 MovieClip [__Packages.Enemy_3] Frame 0
class Enemy_3 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, , ;
function Enemy_3 () {
super();
}
function >() {
enemyType = 3;
enemyLife = _root.game.towerSetup.arrEnemySetup[2].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[2].speed;
_dim = _root.game.towerSetup.arrEnemySetup[2].dim;
\x04\x06 = _root.game.towerSetup.arrEnemySetup[2].reward;
\x03\f = _root.game.towerSetup.arrEnemySetup[2].goldReward;
}
}
Symbol 1439 MovieClip [__Packages.Enemy_4] Frame 0
class Enemy_4 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, , ;
function Enemy_4 () {
super();
}
function >() {
enemyType = 4;
enemyLife = _root.game.towerSetup.arrEnemySetup[3].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[3].speed;
_dim = _root.game.towerSetup.arrEnemySetup[3].dim;
\x04\x06 = _root.game.towerSetup.arrEnemySetup[3].reward;
\x03\f = _root.game.towerSetup.arrEnemySetup[3].goldReward;
}
}
Symbol 1440 MovieClip [__Packages.Enemy_5] Frame 0
class Enemy_5 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, , ;
function Enemy_5 () {
super();
}
function >() {
enemyType = 5;
enemyLife = _root.game.towerSetup.arrEnemySetup[4].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[4].speed;
_dim = _root.game.towerSetup.arrEnemySetup[4].dim;
\x04\x06 = _root.game.towerSetup.arrEnemySetup[4].reward;
\x03\f = _root.game.towerSetup.arrEnemySetup[4].goldReward;
}
}
Symbol 1441 MovieClip [__Packages.Enemy_6] Frame 0
class Enemy_6 extends Enemy
{
var enemyType, enemyLife, enemySpeed, _dim, , ;
function Enemy_6 () {
super();
}
function >() {
enemyType = 6;
enemyLife = _root.game.towerSetup.arrEnemySetup[5].life;
enemySpeed = _root.game.towerSetup.arrEnemySetup[5].speed;
_dim = _root.game.towerSetup.arrEnemySetup[5].dim;
\x04\x06 = _root.game.towerSetup.arrEnemySetup[5].reward;
\x03\f = _root.game.towerSetup.arrEnemySetup[5].goldReward;
}
}
Symbol 1442 MovieClip [__Packages.Doodad_300] Frame 0
class Doodad_300 extends 2
{
var _libName, _dim, _type;
function Doodad_300 () {
super();
}
function >() {
_libName = "transparent_block";
_dim = 20;
_type = 300;
}
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 197
this._parent.nextFrame();
stop();
Symbol 53 MovieClip Frame 220
stop();
Symbol 58 MovieClip Frame 1
if (_global.armorGames == false) {
gotoAndPlay (223);
}
Instance of Symbol 53 MovieClip in Symbol 58 MovieClip Frame 2
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 58 MovieClip Frame 225
if (_global.heroInteractive == false) {
gotoAndPlay (367);
}
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip Frame 226
on (release) {
if (_global.heroLinked == true) {
getURL ("http://www.herointeractive.com", "_blank");
}
}
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip Frame 255
on (release) {
if (_global.heroLinked == true) {
getURL ("http://www.herointeractive.com", "_blank");
}
}
Symbol 58 MovieClip Frame 369
if (_global.afterIntro == false) {
_root.gotoAndPlay(5);
} else {
this._parent.nextFrame();
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 197
this._parent.gotoAndStop(4);
stop();
Symbol 62 MovieClip Frame 1
if (_global.beforeIntro == true) {
stop();
}
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 4
_root.gotoAndStop(5);
Symbol 69 MovieClip Frame 5532
stop();
Symbol 90 MovieClip Frame 49
gotoAndPlay (20);
Symbol 99 MovieClip Frame 255
stop();
Symbol 104 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 108 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 121 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 121 MovieClip Frame 21
stop();
Symbol 121 MovieClip Frame 35
stop();
Symbol 121 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 124 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 124 MovieClip Frame 21
stop();
Symbol 124 MovieClip Frame 35
stop();
Symbol 124 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 143 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 143 MovieClip Frame 35
stop();
Symbol 143 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 143 MovieClip Frame 181
gotoAndPlay (36);
Symbol 146 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 146 MovieClip Frame 35
stop();
Symbol 146 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 149 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 149 MovieClip Frame 35
stop();
Symbol 149 MovieClip Frame 50
gotoAndPlay ("Start");
Symbol 152 MovieClip Frame 20
gotoAndPlay ("Start");
Symbol 152 MovieClip Frame 158
gotoAndPlay ("Start");
Symbol 155 MovieClip Frame 75
this.swapDepths(100000);
this.removeMovieClip();
Symbol 174 MovieClip Frame 43
gotoAndPlay ("Start");
Symbol 187 MovieClip Frame 182
this.swapDepths(100000);
this.removeMovieClip();
Symbol 188 MovieClip Frame 1
stop();
gotoAndPlay ("Start1");
Instance of Symbol 121 MovieClip "pmg_txt" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
if (_global.pmgMMVisable == false) {
this.gotoAndStop(21);
}
}
Instance of Symbol 124 MovieClip "extra_content_txt" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
if (_global.extraContent == true) {
this.gotoAndStop(21);
}
}
Instance of Symbol 152 MovieClip "pmg_btn" in Symbol 188 MovieClip Frame 1
on (release) {
if ((_global.pmgMMVisable == true) && (_root.game["\x0B\x03"] == false)) {
_root.game.PMG_URL();
}
}
Instance of Symbol 152 MovieClip "settings_btn" in Symbol 188 MovieClip Frame 1
on (release) {
_root.game.\x1B\x0B();
}
Instance of Symbol 152 MovieClip "credits_btn" in Symbol 188 MovieClip Frame 1
on (release) {
_root.game.7\x05();
}
Instance of Symbol 152 MovieClip "ec_btn" in Symbol 188 MovieClip Frame 1
on (release) {
if (_global.extraContent == false) {
_root.game.\x0F\x02();
}
}
Instance of Symbol 152 MovieClip "play_btn" in Symbol 188 MovieClip Frame 1
on (release) {
_root.game.'\n();
}
Instance of Symbol 152 MovieClip "song_btn" in Symbol 188 MovieClip Frame 1
on (release) {
_root.\x07\x03();
}
Symbol 188 MovieClip Frame 32
_global.SoundManager.PlaySound("1_itsagooddaytobehunting", 100);
Symbol 188 MovieClip Frame 71
if (_global.pmgMMVisable == true) {
pmg_txt.gotoAndPlay("fadeOut");
}
Symbol 188 MovieClip Frame 73
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 188 MovieClip Frame 79
_global.SoundManager.PlaySound("footsteps_to_playmoregames", 100);
Symbol 188 MovieClip Frame 181
_global.SoundManager.PlaySound("2_comeonyatrustyspade", 100);
Symbol 188 MovieClip Frame 187
_global.SoundManager.PlaySound("shovel_playmoregames", 100);
Symbol 188 MovieClip Frame 310
_global.SoundManager.PlaySound("3_ahnogoldhere", 100);
Symbol 188 MovieClip Frame 364
if (_global.pmgMMVisable == true) {
pmg_txt.gotoAndPlay(36);
}
Symbol 188 MovieClip Frame 435
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 476
_global.SoundManager.PlaySound("4_waveoverwave", 100);
Symbol 188 MovieClip Frame 548
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 188 MovieClip Frame 550
_global.SoundManager.PlaySound("footsteps_to_settings", 100);
Symbol 188 MovieClip Frame 608
settings_txt.gotoAndPlay("fadeOut");
Symbol 188 MovieClip Frame 630
_global.SoundManager.PlaySound("5_hahmmwhathavewegothere", 100);
Symbol 188 MovieClip Frame 640
_global.SoundManager.PlaySound("shovel_settings", 100);
Symbol 188 MovieClip Frame 715
_root.\"\x07(15);
Symbol 188 MovieClip Frame 720
_global.SoundManager.PlaySound("6_ahpileofrottenparrot", 100);
Symbol 188 MovieClip Frame 823
_global.SoundManager.PlaySound("footsteps_from_settings", 100);
Symbol 188 MovieClip Frame 826
_global.SoundManager.PlaySound("7_backtotherigger", 100);
Symbol 188 MovieClip Frame 866
settings_txt.gotoAndPlay(36);
Symbol 188 MovieClip Frame 903
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 961
_global.SoundManager.PlaySound("8_whatsthatonthehorizon", 100);
Symbol 188 MovieClip Frame 1054
_global.SoundManager.PlaySound("seamonster", 100);
Symbol 188 MovieClip Frame 1071
_global.SoundManager.PlaySound("9_croykesrowrowrow", 100);
Symbol 188 MovieClip Frame 1286
_global.SoundManager.PlaySound("10_waituhwhereamiat", 100);
Symbol 188 MovieClip Frame 1287
_root.\"\x07(180);
Symbol 188 MovieClip Frame 1421
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 188 MovieClip Frame 1424
_global.SoundManager.PlaySound("footsteps_to_play", 100);
Symbol 188 MovieClip Frame 1430
_global.SoundManager.PlaySound("11_woaroundtherosey", 100);
Symbol 188 MovieClip Frame 1540
play_txt.gotoAndPlay("fadeOut");
_root.\"\x07(25);
Symbol 188 MovieClip Frame 1541
_global.SoundManager.PlaySound("shovel_play", 100);
Symbol 188 MovieClip Frame 1570
_global.SoundManager.PlaySound("12_coppersofgoldcantbelieve", 100);
Symbol 188 MovieClip Frame 1703
_global.SoundManager.PlaySound("footsteps_from_play", 100);
Symbol 188 MovieClip Frame 1730
_global.SoundManager.PlaySound("12_baaaacktotherigger", 100);
Symbol 188 MovieClip Frame 1736
play_txt.gotoAndPlay(36);
Symbol 188 MovieClip Frame 1770
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 1865
_global.SoundManager.PlaySound("13_ohwhatarottenlife", 100);
_root.\"\x07(100);
Symbol 188 MovieClip Frame 1965
_global.SoundManager.PlaySound("14_ohwhatabeautyofaspot", 100);
Symbol 188 MovieClip Frame 2104
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 2126
_global.SoundManager.PlaySound("15_iamapirate", 100);
Symbol 188 MovieClip Frame 2259
_root.\"\x07(60);
Symbol 188 MovieClip Frame 2273
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 2348
_global.SoundManager.PlaySound("16_nothinglikeanoldsong", 100);
Symbol 188 MovieClip Frame 2477
_global.SoundManager.PlaySound("17_speakingofspirits", 100);
Symbol 188 MovieClip Frame 2520
_root.\"\x07(180);
Symbol 188 MovieClip Frame 2651
_global.SoundManager.PlaySound("shiphit_southeast", 100);
Symbol 188 MovieClip Frame 2652
_global.SoundManager.PlaySound("18_uhhhhellothere", 100);
Symbol 188 MovieClip Frame 2698
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 2827
_global.SoundManager.PlaySound("shiptarrive", 100);
Symbol 188 MovieClip Frame 2829
if (_global.extraContent == false) {
extra_content_txt.gotoAndPlay("fadeOut");
}
Symbol 188 MovieClip Frame 2835
_global.SoundManager.PlaySound("footsteps_to_extracontent", 100);
Symbol 188 MovieClip Frame 2855
_global.SoundManager.PlaySound("19_imgettingsickofthisfirei", 100);
Symbol 188 MovieClip Frame 2864
_global.SoundManager.PlaySound("shovel_extracontent", 100);
Symbol 188 MovieClip Frame 2971
_global.SoundManager.PlaySound("bomblighttick", 100);
Symbol 188 MovieClip Frame 3036
_global.SoundManager.PlaySound("footsteps_hidefrombomb", 100);
Symbol 188 MovieClip Frame 3139
_global.SoundManager.PlaySound("coconut", 100);
Symbol 188 MovieClip Frame 3163
_global.SoundManager.PlaySound("20_allrightletseediscombobu", 100);
Symbol 188 MovieClip Frame 3164
_root.\"\x07(30);
Symbol 188 MovieClip Frame 3166
_global.SoundManager.PlaySound("footsteps_returntobomb", 100);
Symbol 188 MovieClip Frame 3267
_root.\"\x07(25);
Symbol 188 MovieClip Frame 3268
_global.SoundManager.PlaySound("footsteps_from_extracontent", 100);
Symbol 188 MovieClip Frame 3289
_root.\"\x07(25);
Symbol 188 MovieClip Frame 3296
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 3314
_global.SoundManager.PlaySound("21_grumbletakethatyouscalll", 100);
Symbol 188 MovieClip Frame 3317
_root.\"\x07(40);
Symbol 188 MovieClip Frame 3324
if (_global.extraContent == false) {
extra_content_txt.gotoAndPlay(36);
}
Symbol 188 MovieClip Frame 3344
ship.gotoAndPlay(2);
Symbol 188 MovieClip Frame 3563
_global.SoundManager.PlaySound("shipleaveturn", 100);
Symbol 188 MovieClip Frame 3617
_global.SoundManager.PlaySound("22_Ivehadenoughitsgrog", 100);
Symbol 188 MovieClip Frame 3667
_root.\"\x07(200);
Symbol 188 MovieClip Frame 3768
gotoAndPlay ("Start1");
Instance of Symbol 192 MovieClip "rp_mc" in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
if (_global.rpShow == false) {
this._y = 1000;
_parent.sa_btn._x = this._x - 70;
}
}
on (release) {
_root.>\x03();
}
Symbol 194 MovieClip Frame 10
stop();
Symbol 194 MovieClip Frame 21
stop();
Symbol 196 MovieClip Frame 1
if (_global.extraContent == false) {
this.version_txt.text = _global.versionTXT;
} else {
this.version_txt.text = _global.versionTXT + " - EC";
}
stop();
Symbol 200 MovieClip Frame 11
stop();
Symbol 200 MovieClip Frame 22
stop();
Symbol 206 Button
on (release) {
_root.game.`\x06(1);
_root.game.Easy();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(1);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 209 Button
on (release) {
_root.game.`\x06(2);
_root.game.Medium();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(2);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 212 Button
on (release) {
_root.game.`\x06(3);
_root.game.Hard();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(3);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 215 Button
on (release) {
_root.game.`\x06(4);
_root.game.\x07\x04();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(4);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 218 Button
on (release) {
_root.game.`\x06(5);
_root.game.Fast();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(5);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 221 Button
on (release) {
_root.game.`\x06(6);
_root.game.Fixed();
}
on (rollOver) {
ec_notice._visible = true;
ec_notice._x = 18;
ec_notice._y = 350;
info_txt.text = _root.game.=\x0B(6);
}
on (rollOut) {
info_txt.text = "";
ec_notice._visible = false;
}
on (dragOut) {
info_txt.text = "";
ec_notice._visible = false;
}
Symbol 224 Button
on (release) {
_root.game.`\x06(7);
_root.game.\x04\f();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(7);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 227 Button
on (release) {
_root.game.`\x06(11);
_root.game.\x03();
}
on (rollOver) {
ec_notice._visible = true;
ec_notice._x = 18;
ec_notice._y = 350;
info_txt.text = _root.game.=\x0B(11);
}
on (rollOut) {
info_txt.text = "";
ec_notice._visible = false;
}
on (dragOut) {
info_txt.text = "";
ec_notice._visible = false;
}
Symbol 231 Button
on (release) {
_root.game.\x12\f();
}
Symbol 242 Button
on (release) {
getURL ("http://www.herointeractive.com/walkthroughs/pirate_defense.html", "_blank");
}
Symbol 246 Button
on (release) {
_root.game.`\x06(12);
_root.game.\x05\x06();
}
on (rollOver) {
info_txt.text = _root.game.=\x0B(12);
}
on (rollOut) {
info_txt.text = "";
}
on (dragOut) {
info_txt.text = "";
}
Symbol 247 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 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
stop();
Instance of Symbol 261 MovieClip "low" in Symbol 273 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 261 MovieClip "med" in Symbol 273 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 261 MovieClip "high" in Symbol 273 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 261 MovieClip "musicOn" in Symbol 273 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 261 MovieClip "musicOff" in Symbol 273 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 261 MovieClip "soundsOn" in Symbol 273 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 261 MovieClip "soundsOff" in Symbol 273 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 274 Button
on (release) {
gotoAndStop (26);
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 286 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 284 MovieClip "oneClip" in Symbol 286 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 284 MovieClip "twoClip" in Symbol 286 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 284 MovieClip "threeClip" in Symbol 286 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 284 MovieClip "fourClip" in Symbol 286 MovieClip Frame 1
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 8
stop();
Instance of Symbol 247 MovieClip "play_play" in Symbol 287 MovieClip Frame 8
onClipEvent (load) {
this.ec_notice._y = 1000;
}
Instance of Symbol 251 MovieClip "credits_hi" in Symbol 287 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 254 MovieClip "credits_test" in Symbol 287 MovieClip Frame 10
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.herointeractive.com/", "_blank");
}
}
Instance of Symbol 256 MovieClip "credits_music" in Symbol 287 MovieClip Frame 10
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.polyphonemusic.com/", "_blank");
}
}
Symbol 287 MovieClip Frame 16
stop();
Symbol 287 MovieClip Frame 24
stop();
Symbol 287 MovieClip Frame 26
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 2
stop();
Symbol 311 Button
on (release) {
_root.game.!\x07();
}
Symbol 314 Button
on (release) {
_root.game.`\x03();
}
Symbol 318 Button
on (release) {
_root.gotoAndStop("restart");
}
Symbol 324 Button
on (release) {
_global.tutorialPrompt = true;
_root.game["\n\x03"].Skip();
_root.game.\x1F\x03();
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
stop();
Symbol 339 Button
on (release) {
if (_global.blnToolTips == true) {
_global.blnToolTips = false;
tt_x.gotoAndStop("on");
} else {
_global.blnToolTips = true;
tt_x.gotoAndStop("off");
}
}
Symbol 345 Button
on (release) {
_global.tutorialPrompt = true;
_root.game["\n\x03"].FlagIt();
_root.game["\n\x03"].Skip();
_root.game.\x1F\x03();
}
Symbol 353 Button
on (release) {
_root.game.\n\x0B();
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Instance of Symbol 261 MovieClip "low" in Symbol 356 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 261 MovieClip "med" in Symbol 356 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 261 MovieClip "high" in Symbol 356 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 261 MovieClip "musicOn" in Symbol 356 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 261 MovieClip "musicOff" in Symbol 356 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 261 MovieClip "soundsOn" in Symbol 356 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 261 MovieClip "soundsOff" in Symbol 356 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 335 MovieClip "tt_x" in Symbol 356 MovieClip Frame 2
onClipEvent (load) {
if (_global.blnToolTips == false) {
this.gotoAndStop("on");
}
}
Symbol 356 MovieClip Frame 3
stop();
Symbol 356 MovieClip Frame 4
stop();
Symbol 356 MovieClip Frame 5
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 368 Button
on (release) {
_root.game.?\n();
}
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 11
gotoAndStop (1);
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 409 Button
on (release) {
_root.game.\x04\x04();
}
Symbol 413 Button
on (release) {
_root.game.\x05\x03(1);
}
on (rollOver) {
_root.game.`(1);
}
on (rollOut) {
_root.game.?\x05();
}
on (dragOver) {
_root.game.`(1);
}
on (dragOut) {
_root.game.?\x05();
}
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 432 Button
on (release) {
_root.game.\x05\x03(2);
}
on (rollOver) {
_root.game.`(2);
}
on (rollOut) {
_root.game.?\x05();
}
on (dragOver) {
_root.game.`(2);
}
on (dragOut) {
_root.game.?\x05();
}
Symbol 457 Button
on (release) {
_root.game.\x05\x03(3);
}
on (rollOver) {
_root.game.`(3);
}
on (rollOut) {
_root.game.?\x05();
}
on (dragOver) {
_root.game.`(3);
}
on (dragOut) {
_root.game.?\x05();
}
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
Symbol 458 MovieClip Frame 3
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 458 MovieClip Frame 4
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 458 MovieClip Frame 5
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 458 MovieClip Frame 6
if (_global.typetype == 8) {
sell_cover.gotoAndStop("on");
}
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 2
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 469 MovieClip Frame 3
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 9
_root.game.SwingHit(this._parent._name, 3);
Symbol 498 MovieClip Frame 14
stop();
Symbol 498 MovieClip Frame 19
gotoAndStop (1);
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 3
stop();
Symbol 511 MovieClip Frame 4
stop();
Symbol 511 MovieClip Frame 5
stop();
Symbol 511 MovieClip Frame 6
stop();
Symbol 511 MovieClip Frame 7
stop();
Symbol 511 MovieClip Frame 8
stop();
Symbol 511 MovieClip Frame 9
stop();
Symbol 511 MovieClip Frame 10
stop();
Symbol 521 Button
on (release) {
_root.game.\x0E\x07();
}
Symbol 524 MovieClip Frame 1
stop();
Instance of Symbol 511 MovieClip "s401" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s402" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s404" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s403" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s405" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s406" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s108" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s407" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s109" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Instance of Symbol 511 MovieClip "s410" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
_root.game.\x1A\x0B(this._name);
}
on (rollOver) {
_root.game.\n\x04(this._name);
}
on (rollOut) {
_root.game.9(this._name);
}
on (dragOver) {
_root.game.\n\x04(this._name);
}
on (dragOut) {
_root.game.9(this._name);
}
on (release) {
_root.game.\x03\x03(this._name);
}
Symbol 524 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 3
stop();
Symbol 524 MovieClip Frame 4
stop();
Symbol 530 Button
on (release) {
_root.game.\n\x02();
}
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 2
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 40
gotoAndStop ("Off");
Symbol 550 MovieClip Frame 1
stop();
Instance of Symbol 536 MovieClip "rec1" in Symbol 550 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 539 MovieClip "rec2" in Symbol 550 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 536 MovieClip "rec3" in Symbol 550 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 536 MovieClip "rec5" in Symbol 550 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 539 MovieClip "rec4" in Symbol 550 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 539 MovieClip "rec6" in Symbol 550 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 550 MovieClip Frame 2
stop();
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 2
stop();
Symbol 559 MovieClip Frame 3
stop();
Symbol 559 MovieClip Frame 4
stop();
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 2
stop();
Symbol 566 MovieClip Frame 1
stop();
Instance of Symbol 559 MovieClip "mute_btn" in Symbol 566 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
if (_root.game["[\x06"] == true) {
this.gotoAndStop(3);
}
}
on (release) {
_root.game. \x05();
}
on (rollOver) {
if (_root.game["[\x06"] == false) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("muteOn");
}
}
on (rollOut) {
if (_root.game["[\x06"] == false) {
this.gotoAndStop("off");
} else {
this.gotoAndStop(3);
}
}
on (dragOut) {
if (_root.game["[\x06"] == false) {
this.gotoAndStop("off");
} else {
this.gotoAndStop(3);
}
}
on (dragOver) {
if (_root.game["[\x06"] == false) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("muteOn");
}
}
Instance of Symbol 563 MovieClip "main_menu_btn" in Symbol 566 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.game.(\x02();
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
this.gotoAndStop("off");
}
on (dragOut) {
this.gotoAndStop("off");
}
on (dragOver) {
this.gotoAndStop("on");
}
Symbol 566 MovieClip Frame 2
stop();
Symbol 645 Button
on (release) {
_root.game["\n\x03"].Finish();
}
Symbol 649 Button
on (release) {
_root.game["\n\x03"].CreatePreviousObject();
}
Symbol 653 Button
on (release) {
_root.game["\n\x03"].CreateNextObject();
}
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 2
stop();
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 7
stop();
Instance of Symbol 735 MovieClip "ttt1" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 738 MovieClip "ttt15" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 740 MovieClip "ttt17" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 742 MovieClip "ttt16" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 747 MovieClip "ttt18" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 762 MovieClip "ttt2" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 768 MovieClip "ttt3" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 782 MovieClip "ttt4" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 784 MovieClip "ttt5" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 787 MovieClip "ttt6" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 790 MovieClip "ttt7" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 800 MovieClip "ttt8" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 804 MovieClip "ttt9" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 806 MovieClip "ttt10" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 809 MovieClip "ttt19" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 811 MovieClip "ttt20" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 813 MovieClip "ttt11" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 816 MovieClip "ttt12" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 819 MovieClip "ttt13" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Instance of Symbol 821 MovieClip "ttt14" in Symbol 822 MovieClip [tut_interface6.1] Frame 1
on (rollOver) {
_root.game.#\x02(this._name);
}
on (rollOut) {
_root.game.\x10\x07();
}
Symbol 841 Button
on (release) {
_root.game["\n\x03"].Finish();
}
Symbol 844 Button
on (release) {
_root.game["\n\x03"].CreateNextObject();
}
Symbol 853 Button
on (release) {
_root.game.tool.CleanGroup();
}
Symbol 858 Button
on (release) {
_root.game.tool.(\x07(_global.toolTipSection);
}
Symbol 863 Button
on (release) {
_root.game.tool.@\x04();
}
Symbol 864 Button
on (release) {
if (_global.blnToolTips == true) {
_global.blnToolTips = false;
tt_x.gotoAndStop("on");
} else {
_global.blnToolTips = true;
tt_x.gotoAndStop("off");
}
}
Symbol 986 MovieClip [mo_tips] Frame 1
stop();
Symbol 986 MovieClip [mo_tips] Frame 2
stop();
Symbol 986 MovieClip [mo_tips] Frame 3
stop();
Symbol 986 MovieClip [mo_tips] Frame 4
stop();
Symbol 986 MovieClip [mo_tips] Frame 5
stop();
Symbol 986 MovieClip [mo_tips] Frame 6
stop();
Symbol 986 MovieClip [mo_tips] Frame 7
stop();
Symbol 986 MovieClip [mo_tips] Frame 8
stop();
Symbol 986 MovieClip [mo_tips] Frame 9
stop();
Symbol 986 MovieClip [mo_tips] Frame 10
stop();
Symbol 986 MovieClip [mo_tips] Frame 11
stop();
Symbol 986 MovieClip [mo_tips] Frame 12
stop();
Symbol 986 MovieClip [mo_tips] Frame 13
stop();
Symbol 986 MovieClip [mo_tips] Frame 14
stop();
Symbol 986 MovieClip [mo_tips] Frame 15
stop();
Symbol 986 MovieClip [mo_tips] Frame 16
stop();
Symbol 986 MovieClip [mo_tips] Frame 17
stop();
Symbol 986 MovieClip [mo_tips] Frame 18
stop();
Symbol 986 MovieClip [mo_tips] Frame 19
stop();
Symbol 986 MovieClip [mo_tips] Frame 20
stop();
Symbol 991 MovieClip [Doodad_300] Frame 1
#initclip 98
Object.registerClass("Doodad_300", Doodad_300);
#endinitclip
Symbol 994 MovieClip [Doodad_301] Frame 1
#initclip 63
Object.registerClass("Doodad_301", Doodad_301);
#endinitclip
Symbol 997 MovieClip [Doodad_302] Frame 1
#initclip 64
Object.registerClass("Doodad_302", Doodad_302);
#endinitclip
Symbol 1000 MovieClip [Doodad_303] Frame 1
#initclip 65
Object.registerClass("Doodad_303", Doodad_303);
#endinitclip
Symbol 1003 MovieClip [Doodad_304] Frame 1
#initclip 66
Object.registerClass("Doodad_304", Doodad_304);
#endinitclip
Symbol 1005 MovieClip [hole] Frame 174
stop();
_root.game["8\x03"].RemoveEffect(this._name);
this.removeMovieClip();
Symbol 1018 MovieClip [notification] Frame 1
stop();
Symbol 1018 MovieClip [notification] Frame 2
stop();
Symbol 1018 MovieClip [notification] Frame 3
stop();
Symbol 1018 MovieClip [notification] Frame 4
stop();
Symbol 1018 MovieClip [notification] Frame 5
stop();
Symbol 1018 MovieClip [notification] Frame 6
stop();
Symbol 1018 MovieClip [notification] Frame 7
stop();
Symbol 1018 MovieClip [notification] Frame 8
stop();
Symbol 1018 MovieClip [notification] Frame 9
stop();
Symbol 1018 MovieClip [notification] Frame 10
stop();
Symbol 1018 MovieClip [notification] Frame 11
stop();
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 2
stop();
Symbol 1030 MovieClip Frame 3
stop();
Symbol 1030 MovieClip Frame 4
stop();
Symbol 1030 MovieClip Frame 5
stop();
Symbol 1033 MovieClip [towerOverSquare] Frame 1
stop();
Symbol 1033 MovieClip [towerOverSquare] Frame 2
stop();
Symbol 1036 MovieClip [BlockPathNot] Frame 21
stop();
removeMovieClip(_root.BlockPathNot);
Symbol 1049 MovieClip [L20] Frame 1
stop();
Symbol 1049 MovieClip [L20] Frame 2
stop();
Symbol 1049 MovieClip [L20] Frame 3
stop();
Symbol 1056 MovieClip [L40] Frame 1
stop();
Symbol 1056 MovieClip [L40] Frame 2
stop();
Symbol 1056 MovieClip [L40] Frame 3
stop();
Symbol 1067 MovieClip [reload_clock] Frame 1
stop();
Symbol 1068 MovieClip [Tower_401] Frame 1
#initclip 67
Object.registerClass("Tower_401", Tower_401);
#endinitclip
Symbol 1072 MovieClip [Bullet1] Frame 1
#initclip 68
Object.registerClass("Bullet1", Bullet1);
#endinitclip
Symbol 1100 MovieClip [Tower_402] Frame 1
#initclip 69
Object.registerClass("Tower_402", Tower_402);
#endinitclip
stop();
Symbol 1100 MovieClip [Tower_402] Frame 13
_root.game.SwingHit(this._name, 1);
Symbol 1100 MovieClip [Tower_402] Frame 44
stop();
Symbol 1100 MovieClip [Tower_402] Frame 50
gotoAndStop (1);
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1124 MovieClip Frame 13
_root.game.SwingHit(this._parent._name, 2);
Symbol 1124 MovieClip Frame 44
stop();
Symbol 1124 MovieClip Frame 50
gotoAndStop (1);
Symbol 1125 MovieClip [Tower_403] Frame 1
#initclip 70
Object.registerClass("Tower_403", Tower_403);
#endinitclip
Symbol 1128 MovieClip [Tower_404] Frame 1
#initclip 71
Object.registerClass("Tower_404", Tower_404);
#endinitclip
Symbol 1133 MovieClip [Tower_405] Frame 1
#initclip 72
Object.registerClass("Tower_405", Tower_405);
#endinitclip
stop();
Symbol 1133 MovieClip [Tower_405] Frame 5
stop();
Symbol 1133 MovieClip [Tower_405] Frame 8
gotoAndStop (1);
Symbol 1139 MovieClip [Bullet5] Frame 1
#initclip 73
Object.registerClass("Bullet5", Bullet5);
#endinitclip
stop();
Symbol 1139 MovieClip [Bullet5] Frame 28
stop();
_root.game.RemoveBullet(this._name);
Symbol 1144 MovieClip [Tower_406] Frame 1
#initclip 74
Object.registerClass("Tower_406", Tower_406);
#endinitclip
stop();
Symbol 1144 MovieClip [Tower_406] Frame 2
stop();
Symbol 1145 MovieClip [Tower_407] Frame 1
#initclip 75
Object.registerClass("Tower_407", Tower_407);
#endinitclip
Symbol 1147 MovieClip [Tower_108] Frame 1
#initclip 76
Object.registerClass("Tower_108", Tower_108);
#endinitclip
Symbol 1148 MovieClip [Tower_109] Frame 1
#initclip 77
Object.registerClass("Tower_109", Tower_109);
#endinitclip
Symbol 1149 MovieClip [Tower_410] Frame 1
#initclip 78
Object.registerClass("Tower_410", Tower_410);
#endinitclip
Symbol 1150 MovieClip [Tower_411] Frame 1
#initclip 79
Object.registerClass("Tower_411", Tower_411);
#endinitclip
Symbol 1152 MovieClip [Bullet2] Frame 1
#initclip 80
Object.registerClass("Bullet2", Bullet2);
#endinitclip
Symbol 1154 MovieClip [Tower_412] Frame 1
#initclip 81
Object.registerClass("Tower_412", Tower_412);
#endinitclip
Symbol 1156 MovieClip [Bullet3] Frame 1
#initclip 82
Object.registerClass("Bullet3", Bullet3);
#endinitclip
Symbol 1157 MovieClip [Tower_413] Frame 1
#initclip 83
Object.registerClass("Tower_413", Tower_413);
#endinitclip
Symbol 1159 MovieClip [Bullet4] Frame 1
#initclip 84
Object.registerClass("Bullet4", Bullet4);
#endinitclip
Symbol 1162 MovieClip [Tower_414] Frame 1
#initclip 85
Object.registerClass("Tower_414", Tower_414);
#endinitclip
stop();
Symbol 1162 MovieClip [Tower_414] Frame 2
stop();
Symbol 1167 MovieClip [Tower_415] Frame 1
#initclip 86
Object.registerClass("Tower_415", Tower_415);
#endinitclip
stop();
Symbol 1167 MovieClip [Tower_415] Frame 2
stop();
Symbol 1171 MovieClip [splash] Frame 14
_root.game["8\x03"].RemoveEffect(this._name);
Symbol 1172 MovieClip [Tower_416] Frame 1
#initclip 87
Object.registerClass("Tower_416", Tower_416);
#endinitclip
Symbol 1174 MovieClip [Tower_417] Frame 1
#initclip 88
Object.registerClass("Tower_417", Tower_417);
#endinitclip
Symbol 1175 MovieClip [Tower_118] Frame 1
#initclip 89
Object.registerClass("Tower_118", Tower_118);
#endinitclip
Symbol 1176 MovieClip [Tower_119] Frame 1
#initclip 90
Object.registerClass("Tower_119", Tower_119);
#endinitclip
Symbol 1178 MovieClip [Tower_120] Frame 1
#initclip 91
Object.registerClass("Tower_120", Tower_120);
#endinitclip
Symbol 1193 MovieClip [Enemy_1] Frame 1
#initclip 92
Object.registerClass("Enemy_1", Enemy_1);
#endinitclip
Symbol 1203 MovieClip [Enemy_2] Frame 1
#initclip 93
Object.registerClass("Enemy_2", Enemy_2);
#endinitclip
stop();
Symbol 1208 MovieClip [Enemy_3] Frame 1
#initclip 94
Object.registerClass("Enemy_3", Enemy_3);
#endinitclip
Symbol 1211 MovieClip [Enemy_4] Frame 1
#initclip 95
Object.registerClass("Enemy_4", Enemy_4);
#endinitclip
Symbol 1214 MovieClip [Enemy_5] Frame 1
#initclip 96
Object.registerClass("Enemy_5", Enemy_5);
#endinitclip
Symbol 1221 MovieClip [Enemy_6] Frame 1
#initclip 97
Object.registerClass("Enemy_6", Enemy_6);
#endinitclip
Symbol 1326 MovieClip Frame 1
stop();
Symbol 1347 MovieClip [PirateAngelAnimation] Frame 46
_root.game["8\x03"].RemoveEffect(this._name);
Symbol 1364 MovieClip Frame 15
stop();
Symbol 1365 MovieClip Frame 18
this.inside._rotation = Math.round(Math.random() * 360);
Symbol 1365 MovieClip Frame 66
_root.game["8\x03"].RemoveEffect(this._parent._name);
stop();
Symbol 1366 MovieClip [damageExplosionSmall] Frame 1
stop();
Symbol 1376 MovieClip Frame 17
stop();
Symbol 1377 MovieClip [damageExplosionBig] Frame 18
this.inside._rotation = Math.round(Math.random() * 360);
Symbol 1377 MovieClip [damageExplosionBig] Frame 66
_root.game["8\x03"].RemoveEffect(this._name);
stop();