Frame 1
function hexit(s) {
return(this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
}
trace("frame1");
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
a = _url.indexOf("novelconcepts");
expire = new Date(2007, 1, 1, 0, 0, 0, 0);
stolen = 0;
expired = 0;
if (a < 0) {
stolen = 1;
if (expire < new Date()) {
expired = 1;
}
} else {
trace("" + embed);
if (("" + embed) == "undefined") {
getURL ("http://novelconcepts.co.uk/FlashElementTD/");
}
}
_global.MD5 = new Object();
MD5.hexcase = 0;
MD5.b64pad = "";
MD5.chrsz = 8;
MD5.hex_md5 = function (s) {
return(this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.b64_md5 = function (s) {
return(this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.str_md5 = function (s) {
return(this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.hex_hmac_md5 = function (key, data) {
return(this.binl2hex(this.core_hmac_md5(key, data)));
};
MD5.b64_hmac_md5 = function (key, data) {
return(this.binl2b64(this.core_hmac_md5(key, data)));
};
MD5.str_hmac_md5 = function (key, data) {
return(this.binl2str(this.core_hmac_md5(key, data)));
};
MD5.md5_vm_test = function () {
return(this.hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
};
MD5.core_md5 = function (x, len) {
var _local11;
var _local10;
var _local9;
var _local8;
x[len >> 5] = x[len >> 5] | (128 << (len & 31));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local12 = x.length;
var _local6 = 0;
while (_local6 < _local12) {
_local11 = _local5;
_local10 = _local4;
_local9 = _local3;
_local8 = _local2;
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = this.safe_add(_local5, _local11);
_local4 = this.safe_add(_local4, _local10);
_local3 = this.safe_add(_local3, _local9);
_local2 = this.safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
var _local14 = Array(_local5, _local4, _local3, _local2);
return(_local14);
};
MD5.md5_cmn = function (q, a, b, x, s, t) {
var _local2 = this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b);
return(_local2);
};
MD5.md5_ff = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
};
MD5.test = function () {
};
MD5.md5_gg = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
};
MD5.md5_hh = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b ^ c) ^ d, a, b, x, s, t));
};
MD5.md5_ii = function (a, b, c, d, x, s, t) {
return(this.md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
};
MD5.core_hmac_md5 = function (key, data) {
var _local3 = this.str2binl(key);
if (_local3.length > 16) {
_local3 = this.core_md5(_local3, key.length * this.chrsz);
}
var _local4 = Array(16);
var _local5 = Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = this.core_md5(_local4.concat(this.str2binl(data)), 512 + (data.length * this.chrsz));
return(this.core_md5(_local5.concat(_local6), 640));
};
MD5.safe_add = function (x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
};
MD5.bit_rol = function (num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
};
MD5.str2binl = function (str) {
var _local3 = Array();
var _local4 = (1 << this.chrsz) - 1;
var _local5 = str.length * this.chrsz;
var _local2 = 0;
while (_local2 < _local5) {
_local3[_local2 >> 5] = _local3[_local2 >> 5] | ((str.charCodeAt(_local2 / this.chrsz) & _local4) << (_local2 & 31));
_local2 = _local2 + this.chrsz;
}
return(_local3);
};
MD5.binl2str = function (bin) {
var _local3 = "";
var _local4 = (1 << this.chrsz) - 1;
var _local5 = bin.length * 32;
var _local2 = 0;
while (_local2 < _local5) {
_local3 = _local3 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 & 31)) & _local4);
_local2 = _local2 + this.chrsz;
}
return(_local3);
};
MD5.binl2hex = function (binarray) {
var _local3 = (this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local5 = "";
var _local6 = binarray.length * 4;
var _local2 = 0;
while (_local2 < _local6) {
_local5 = _local5 + (_local3.charAt((binarray[_local2 >> 2] >> (((_local2 & 3) * 8) + 4)) & 15) + _local3.charAt((binarray[_local2 >> 2] >> ((_local2 & 3) * 8)) & 15));
_local2++;
}
return(_local5);
};
MD5.binl2b64 = function (binarray) {
var _local9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local6 = "";
var _local7 = binarray.length * 4;
var _local8 = 4 * _local7;
var _local2 = 0;
while (_local2 < _local7) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 & 3))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) & 3))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) & 3))) & 255);
_local2 = _local2 + 3;
}
var _local3 = 0;
while (_local3 < 4) {
if (((_local2 * 8) + (_local3 * 6)) > _local8) {
_local6 = _local6 + this.b64pad;
} else {
_local6 = _local6 + _local9.charAt((_local5 >> (6 * (3 - _local3))) & 63);
}
_local3++;
}
return(_local6);
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
__com_mochibot__("1371f058", this, 10301, true);
Instance of Symbol 59 MovieClip "splash" in Frame 1
onClipEvent (load) {
startbutton._visible = false;
}
Frame 3
trace("frame4");
a = _root.getBytesLoaded();
b = _root.getBytesTotal();
_root.splash.progressbar._width = (260 / b) * a;
if ((a == b) && (a > 1000)) {
_root.splash.progressbar._width = 260;
_root.splash.startbutton._visible = true;
stop();
} else {
gotoAndPlay (2);
}
Instance of Symbol 68 MovieClip in Frame 4
on (press) {
_root.ui.gotoAndStop(1);
_root.selectedTower = "";
_root.glow._x = 650;
_root.ranger._x = 650;
_root.ranger._width = 10;
_root.ranger._height = 10;
}
Instance of Symbol 171 MovieClip "ui" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
swapDepths(4000);
wait = 1;
}
onClipEvent (enterFrame) {
if (_root.creepArray.length > 1) {
wait = 0;
}
if ((wait == 0) && (_root.lives > 0)) {
allGone = 1;
i = 0;
while (i < _root.creepArray.length) {
if (("" + _root.creepArray[i]) != "") {
allGone = 0;
}
i++;
}
if (allGone == 1) {
trace("All Gone");
_root.cash = int((_root.gold / 100) * _root.interest);
_root.statusText(((((("<font color='#000099'><b>Interest earned:</b> " + _root.gold) + "g x ") + _root.interest) + "% = ") + (_root.gold + _root.cash)) + "g</font>");
_root.gold = _root.gold + _root.cash;
if ((((_root.level == 7) || (_root.level == 14)) || (_root.level == 21)) || (_root.level == 28)) {
_root.wood++;
_root.statusText(("<font color='#009900'><b>Wood earned:</b> You now have " + _root.wood) + " wood, use it to upgrade.</font>");
}
wait = 1;
_root.creepArray = [];
if (_root.level == _root.levels.length) {
_root.gameOver();
}
nextButton.gotoAndStop(3);
}
}
}
Instance of Symbol 174 MovieClip "marker" in Frame 4
onClipEvent (load) {
active = 0;
}
onClipEvent (enterFrame) {
if (active == 1) {
_x = ((int((_root._xmouse - 5) / 10) * 10) + 10);
_y = ((int((_root._ymouse - 5) / 10) * 10) + 10);
if (_root.grass.build.hitTest(_x, _y, 1)) {
gotoAndStop (1);
} else {
_x = (_x + (Math.cos(getTimer() / 150) * 2));
_y = (_y + (Math.sin(getTimer() / 150) * 2));
gotoAndStop (2);
}
if (Key.isDown(27)) {
active = 0;
_x = 620;
_y = 140;
}
_root.ranger._x = _x;
_root.ranger._y = _y;
_root.ranger.rate = _root["tower-" + tower].rate;
_root.ranger._width = _root["tower-" + tower].range * 2;
_root.ranger._height = _root["tower-" + tower].range * 2;
}
}
on (press) {
if (_root.grass.build.hitTest(_x, _y, 1)) {
_root.towerCount++;
_root["tower-" + tower].duplicateMovieClip("t" + _root.towerCount, 500 + _root.towerCount);
a = _root["t" + _root.towerCount];
a._x = _x;
a._y = _y;
a.active = 1;
a.cost = cost;
active = 0;
_root.gold = _root.gold - cost;
_x = 650;
_root.ranger._x = 650;
_root.ranger._width = 10;
_root.ranger._height = 10;
}
}
Instance of Symbol 177 MovieClip "glow" in Frame 4
onClipEvent (load) {
swapDepths(10000);
}
Instance of Symbol 180 MovieClip "ranger" in Frame 4
onClipEvent (load) {
rate = 1000;
r = 0;
}
onClipEvent (enterFrame) {
if (r > rate) {
r = 0;
gotoAndPlay (2);
}
r++;
}
Instance of Symbol 189 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(9999999);
if (_root.stolen == 0) {
_visible = false;
} else if (_root.expired == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 240 MovieClip "tower-water" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Water [50 gold]";
towerDescription = "Medium damage with a high fire rate, slows, can be upgraded to splash.";
towerNotes = "Land + Air";
range = 75;
rate = 15;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 10;
acc = 0;
maxspeed = 10;
projectile = "shot-water";
dmg = 25;
slow = 1;
splash = 0;
air = 1;
immune = 1;
upgrades = [["Adds a small splash to the slow, no more damage.", 25, 30, 75, 15, 25, 1], ["Adds a larger splash, still no more damage.", 25, 35, 75, 15, 45, 1], ["Adds a huge splash, but still no more damage. (this is a slow tower)", 25, 40, 75, 15, 55, 1]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
i = 0;
while (i <= _root.creepArray.length) {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if ((((_root.creepArray[i].air == 0) || (air == 1)) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
creep = _root.creepArray[i];
lastFire = 999;
}
}
}
i++;
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Instance of Symbol 247 MovieClip "tower-arrow" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Arrow [7 gold]";
towerDescription = "Low damage but very fast fire rate";
towerNotes = "Land + Air";
range = 100;
rate = 20;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 15;
acc = 0.5;
maxspeed = 20;
projectile = "shot-arrow";
dmg = 6;
slow = 0;
splash = 0;
air = 1;
immune = 1;
upgrades = [["Increase the damage to 16 and a small increase in range", 13, 16, 110, 20, 0], ["Increase the damage to 39 and a small increase in range", 32, 39, 125, 20, 0]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if ((((_root.creepArray[i].air == 0) || (air == 1)) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
lastFire = 999;
creep = _root.creepArray[i];
}
}
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Instance of Symbol 254 MovieClip "tower-cannon" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Cannon [9 gold]";
towerDescription = "Slow but with good damage and splash";
towerNotes = "Land ONLY";
range = 70;
rate = 25;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 5;
acc = 0.1;
maxspeed = 8;
projectile = "shot-cannon";
dmg = 9;
slow = 0;
splash = 40;
air = 0;
immune = 1;
upgrades = [["Increase the damage to 24", 15, 24, 70, 25, 40], ["Increase the damage to 50 and the splash to 60", 26, 50, 70, 25, 60]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if ((((_root.creepArray[i].air == 0) || (air == 1)) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
lastFire = 999;
creep = _root.creepArray[i];
}
}
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
top._rotation = (Math.atan2(creep._y - this._y, creep._x - this._x) * 180) / Math.PI;
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Instance of Symbol 267 MovieClip "tower-earth" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Earth [50 gold]";
towerDescription = "Huge damage, slow fire rate.";
towerNotes = "Land ONLY";
range = 100;
rate = 100;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 7;
acc = 0.5;
maxspeed = 15;
projectile = "shot-earth";
dmg = 120;
slow = 0;
splash = 0;
air = 0;
immune = 1;
upgrades = [["Double the damage with a larger range", 75, 240, 110, 100, 0, 0], ["Double the damage again and upgrade the range", 100, 480, 120, 100, 0, 0], ["Double the damage yet again!! and upgrade the range", 150, 960, 130, 100, 0, 0]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if ((((_root.creepArray[i].air == 0) || (air == 1)) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
creep = _root.creepArray[i];
lastFire = 999;
}
}
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
this.gotoAndPlay(2);
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Instance of Symbol 275 MovieClip "tower-fire" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Fire [50 gold]";
towerDescription = "Large damage, slow fire rate, splash.";
towerNotes = "Land + Air";
range = 100;
rate = 40;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 8;
acc = 0.5;
maxspeed = 20;
projectile = "shot-fire";
dmg = 75;
slow = 0;
splash = 75;
air = 1;
immune = 1;
upgrades = [["175 damage with a larger splash", 75, 175, 100, 40, 85, 0], ["300 damage with a larger splash", 100, 300, 100, 40, 95, 0], ["400 damage with a larger splash", 150, 400, 100, 40, 105, 0]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if ((((_root.creepArray[i].air == 0) || (air == 1)) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
creep = _root.creepArray[i];
lastFire = 999;
}
}
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
this.gotoAndPlay(2);
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Instance of Symbol 284 MovieClip "tower-rocket" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Rocket [200 gold]";
towerDescription = "Fire + Earth + Water\rHUGE range and damage";
towerNotes = "Land + Air";
range = 170;
rate = 65;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 1;
acc = 0.2;
maxspeed = 12;
projectile = "shot-rocket";
dmg = 180;
slow = 0;
splash = 0;
air = 1;
immune = 1;
upgrades = [["Same damage but with a small splash", 250, 180, 170, 65, 30, 0]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if ((((_root.creepArray[i].air == 0) || (air == 1)) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
lastFire = 999;
creep = _root.creepArray[i];
}
}
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
top._rotation = (Math.atan2(creep._y - this._y, creep._x - this._x) * 180) / Math.PI;
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Instance of Symbol 289 MovieClip "tower-air" in Frame 4
onClipEvent (load) {
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
towerTitle = "Air [12 gold]";
towerDescription = "Good damage and rate and range";
towerNotes = "Air ONLY";
range = 120;
rate = 18;
lastFire = rate;
lastChecked = rate;
creep = "";
target = 0;
lvl = 1;
speed = 15;
acc = 0.5;
maxspeed = 20;
projectile = "shot-arrow";
dmg = 15;
slow = 0;
splash = 0;
air = 1;
immune = 1;
upgrades = [["Increase the damage to 29 and fires much faster", 20, 29, 120, 13, 0], ["Increase the damage to 48 and fires much faster", 30, 65, 120, 11, 0]];
if (active == 1) {
}
}
on (press) {
_root.passInfo(this);
}
onClipEvent (enterFrame) {
if (active == 1) {
lastChecked++;
lastFire++;
if (lastChecked >= 10) {
lastChecked = 0;
if ((target == 0) && (_root.creepArray.length > 0)) {
i = 0;
while (i <= _root.creepArray.length) {
if (target == 0) {
if (("" + _root.creepArray[i]) != "undefined") {
if ((_root.creepArray[i]._y > 20) && (_root.creepArray[i].RIP == 0)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < range) {
if (((_root.creepArray[i].air == 1) && ((_root.creepArray[i].immune == 0) || (immune == 1))) && (_root.creepArray[i].RIP == 0)) {
target = 1;
lastFire = 999;
creep = _root.creepArray[i];
}
}
}
}
}
i++;
}
}
}
if (target != 0) {
if (lastFire > rate) {
if (("" + creep) == "") {
target = 0;
lastChecked = 999;
} else {
d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2));
if (d > range) {
lastChecked = 999;
target = 0;
} else {
lastChecked = 18;
_root.fire(this, creep, speed, acc, maxspeed, projectile, dmg, slow, splash);
lastFire = 0;
}
}
}
}
}
}
Frame 5
function FXgold(x, y, v) {
_root.FXlayer++;
duplicateMovieClip (_root.coin, "coin" + _root.FXlayer, 4900 + _root.FXlayer);
a = _root["coin" + _root.FXlayer];
a._x = x;
a._y = y;
a.R = random(30);
a.X = (-5 + random(10)) / 5;
a.Y = (-(2 + random(10))) / 5;
a.onEnterFrame = function () {
this._x = this._x + this.X;
this._y = this._y + this.Y;
this.Y = this.Y + 0.2;
this._rotation = this._rotation + this.R;
if (this.Y > 2) {
this.removeMovieClip();
}
};
if (_root.FXlayer > 100) {
_root.FXlayer = 0;
}
}
function FXexp(type, x, y) {
i = 1;
while (i <= 10) {
_root.FXlayer++;
duplicateMovieClip (_root[type + "-exp"], "exp" + _root.FXlayer, 4900 + _root.FXlayer);
a = _root["exp" + _root.FXlayer];
a._x = x;
a._y = y;
a.rads = random(360);
a.speed = (5 + random(20)) / 5;
a._rotation = a.rads;
a.onEnterFrame = function () {
this._x = this._x + (Math.cos(this.rads) * this.speed);
this._y = this._y + (Math.sin(this.rads) * this.speed);
this._alpha = this._alpha - 5;
if (this.speed > 0.5) {
this.speed = this.speed - 0.5;
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
i++;
}
if (_root.FXlayer > 100) {
_root.FXlayer = 0;
}
}
function playSound(s, v) {
if (mute == 0) {
_root.sfx++;
_root["snd" + _root.sfx] = new Sound();
_root["snd" + _root.sfx].attachSound(s);
_root["snd" + _root.sfx].setVolume(v);
_root["snd" + _root.sfx].start();
if (_root.sfx == 50) {
_root.sfx = 0;
}
}
}
trace("frame5");
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
_root.levels = [["<b>LvL 1:</b> Sheep", 20, 20, 10, 1, 1.5, 0.5, 0, 0, "sheep"], ["<b>LvL 2:</b> Rabid Dogs", 20, 20, 42, 1, 1.5, 0.5, 0, 0, "woolf"], ["<b>LvL 3:</b> Small Boys", 20, 20, 65, 1, 1.5, 0.5, 0, 0, "kid"], ["<b>LvL 4:</b> Pesants", 20, 20, 75, 1, 1.5, 0.5, 0, 0, "human"], ["<b>LvL 5:</b> Firework Throwers", 20, 20, 101, 1, 1.5, 0.5, 0, 0, "tinker"], ["<b>LvL 6:</b> Drug Runners <font color='#FF0000'>[FAST]</font>", 20, 20, 87, 1, 2.5, 0.5, 0, 0, "spider"], ["<b>LvL 7:</b> Greedy Pigs", 20, 20, 136, 2, 1.7, 0.5, 0, 0, "pig"], ["<b>LvL 8:</b> Flying Machines <font color='#FF0000'>[AIR]</font>", 20, 20, 158, 1, 1.2, 0.7, 1, 0, "zep"], ["<b>LvL 9:</b> Stags", 20, 20, 189, 1, 1.5, 0.5, 0, 0, "bear"], ["<b>LvL 10:</b> Trolls <font color='#FF0000'>[IMMUNE]</font>", 20, 20, 212, 2, 1.5, 0.5, 0, 1, "troll"], ["<b>LvL 11:</b> Water Elementals", 20, 20, 246, 2, 1.5, 0.5, 0, 0, "bear"], ["<b>LvL 12:</b> Drug Runners <font color='#FF0000'>[FAST]</font>", 20, 20, 212, 2, 2.5, 0.5, 0, 0, "spider"], ["<b>LvL 13:</b> Lizards", 20, 20, 331, 2, 1.5, 0.5, 0, 0, "bear"], ["<b>LvL 14:</b> Battle Golems", 20, 20, 384, 2, 1.5, 0.5, 0, 0, "ogre"], ["<b>LvL 15:</b> Harpey Rogue", 20, 20, 445, 2, 1.5, 0.5, 0, 0, "harpy"], ["<b>LvL 16:</b> Albatros <font color='#FF0000'>[AIR]</font>", 20, 20, 580, 2, 1.5, 0.5, 1, 0, "bird"], ["<b>LvL 17:</b> Fat pigs", 20, 20, 695, 2, 1.5, 0.5, 0, 0, "pig"], ["<b>LvL 18:</b> Drug Runners <font color='#FF0000'>[FAST]</font>", 20, 20, 599, 2, 2.5, 0.5, 0, 0, "spider"], ["<b>LvL 19:</b> Goblins again", 20, 20, 806, 3, 1.5, 0.5, 0, 0, "goblin"], ["<b>LvL 20:</b> Trolls <font color='#FF0000'>[IMMUNE]</font>", 20, 20, 925, 2, 1.5, 0.5, 0, 1, "troll"], ["<b>LvL 21:</b> Goblins Again?!", 20, 20, 1075, 3, 1.5, 0.5, 0, 0, "goblin"], ["<b>LvL 22:</b> Dark Minions", 20, 20, 1265, 4, 1.5, 0.5, 0, 0, "ogre"], ["<b>LvL 23:</b> Cannons", 20, 20, 1468, 4, 1.5, 0.5, 0, 0, "human"], ["<b>LvL 24:</b> Drug Runners <font color='#FF0000'>[FAST]</font>", 20, 20, 1265, 4, 2.5, 0.5, 0, 0, "spider"], ["<b>LvL 25:</b> Albatros <font color='#FF0000'>[AIR]</font>", 20, 20, 1615, 4, 1.5, 0.5, 1, 0, "bird"], ["<b>LvL 26:</b> Cryptic Fiends", 20, 20, 1935, 4, 1.5, 0.5, 0, 0, "spider"], ["<b>LvL 27:</b> Sludge Monstrosity", 20, 20, 2165, 5, 1.5, 0.5, 0, 0, "trollB"], ["<b>LvL 28:</b> Ghools", 20, 20, 2405, 5, 1.5, 0.5, 0, 0, "bear"], ["<b>LvL 29:</b> Goblins (for the last time)", 20, 20, 2655, 5, 1.5, 0.5, 0, 0, "goblin"], ["<b>LvL 30:</b> Trolls <font color='#FF0000'>[IMMUNE]</font> riding Drug Runners <font color='#FF0000'>[FAST]</font>", 20, 20, 2500, 2, 2.5, 0.5, 0, 1, "spider"]];
_root.level = 0;
_root.gold = 40;
_root.wood = 0;
_root.lives = 20;
_root.score = gold;
_root.interest = 10;
_root.particleCount = 0;
_root.creepCount = 0;
_root.creepArray = [];
_root.kills = 0;
_root.leaks = 0;
_root.towerCount = 0;
_root.mute = 0;
_root.waterLVL = 0;
_root.earthLVL = 0;
_root.fireLVL = 0;
_root.FXlayer = 0;
_root.sfx = 0;
Frame 7
function fire(from, to, speed, acc, maxspeed, projectile, dmg, slow, splash) {
_root.particleCount++;
_root[projectile].duplicateMovieClip("p" + _root.particleCount, 2000 + _root.particleCount);
r = _root["p" + _root.particleCount];
r._x = from._x;
r._y = from._y;
r.targ = to;
r.speed = speed;
r.acc = acc;
r.maxspeed = maxspeed;
r.dmg = dmg;
r.splash = splash;
r.slow = slow;
r.projectile = projectile;
if ((to.health - dmg) <= 0) {
to.RIP = 1;
}
playSound(projectile + "1", 50);
r.onEnterFrame = function () {
if (("" + this.targ) != "") {
this.targX = this.targ._x;
this.targY = this.targ._y;
}
this.dir = (Math.atan2(this.targY - this._y, this.targX - this._x) * 180) / Math.PI;
this._rotation = this.dir + 90;
this.rads = (this.dir * Math.PI) / 180;
this._x = this._x + (Math.cos(this.rads) * this.speed);
this._y = this._y + (Math.sin(this.rads) * this.speed);
if (this.speed < this.maxspeed) {
this.speed = this.speed + this.acc;
}
d = Math.sqrt(Math.pow(this._x - this.targX, 2) + Math.pow(this._y - this.targY, 2));
if (d < 10) {
_root.playSound(this.projectile + "2", 50);
FXexp(projectile, this._x, this._y);
if (("" + this.targ) != "") {
this.targ.health = this.targ.health - this.dmg;
if ((this.slow > 0) && (this.targ.immune == 0)) {
this.targ.speed = (this.targ.maxspeed / 100) * 66;
}
}
i = 0;
while (i <= _root.creepArray.length) {
if (("" + _root.creepArray[i]) != "") {
if ((this.splash > 0) && (_root.creepArray[i] != this.targ)) {
d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2));
if (d < this.splash) {
_root.creepArray[i].health = _root.creepArray[i].health - ((this.dmg / this.splash) * (this.splash - d));
if ((this.slow > 0) && (_root.creepArray[i].immune == 0)) {
_root.creepArray[i].speed = (_root.creepArray[i].maxspeed / 100) * 66;
}
}
}
}
i++;
}
this.removeMovieClip();
}
if (_root.particleCount > 50) {
_root.particleCount = 0;
}
};
}
function levelUp() {
clearInterval(_root.levelInterval);
if (_root.lives > 0) {
trace("LEVELUP()");
if ((level - 1) < levels.length) {
_root.creepCount = 0;
_root.creepArray = [];
_root.level++;
trace(levels[level - 1][9]);
_root.playSound(_root.levels[_root.level - 1][9] + "1", 100);
_root.statusText(((((_root.levels[_root.level - 1][0] + " - ") + _root.levels[_root.level - 1][3]) + " hp, worth ") + _root.levels[_root.level - 1][4]) + "g each.");
_root["spawnInterval" + _root.level] = setInterval(_root, "spawn", _root.levels[_root.level - 1][6] * 1000, _root.level, "creep1", _root.levels[_root.level - 1][3], _root.levels[_root.level - 1][5], _root.levels[_root.level - 1][4], _root.levels[_root.level - 1][7], _root.levels[_root.level - 1][8], _root.levels[_root.level - 1][9]);
_root["spawned" + _root.level] = _root.levels[_root.level - 1][2];
} else {
_root.statusText("<font color='#0000FF'><b>GAME OVER:</b> You have completed all 30 levels!</font>");
_root.gameOver();
}
_root.calcScore();
}
}
function spawn(level, creep, health, speed, worth, air, immune, sfx) {
if ((_root["spawned" + _root.level] == 0) || (_root.lives == 0)) {
clearInterval(_root["spawnInterval" + _root.level]);
} else {
_root["spawned" + _root.level]--;
_root.creepCount++;
_root[creep].duplicateMovieClip("c" + _root.creepCount, 1000 + _root.creepCount);
c = _root["c" + _root.creepCount];
_root.creepArray[_root.creepArray.length] = c;
c.creep.gotoAndStop(_root.level);
c._x = marker1._x;
c._y = marker1._y;
c.health = health;
c.maxhp = health;
c.speed = speed;
c.maxspeed = speed;
c.targ = 2;
c.rnd = random(10);
c.worth = worth;
c.air = air;
c.immune = immune;
c.sfx = sfx;
c.RIP = 0;
c.onEnterFrame = function () {
if (this.health <= 0) {
_root.kill(this);
}
if (this.speed < this.maxspeed) {
this.speed = this.speed + 0.01;
}
this.targX = (_root["marker" + this.targ]._x - 5) + this.rnd;
this.targY = (_root["marker" + this.targ]._y - 5) + this.rnd;
this.dir = (Math.atan2(this.targY - this._y, this.targX - this._x) * 180) / Math.PI;
this.r = this.dir + (Math.sin((getTimer() + (this.rnd * 100)) / 100) * 7);
if ((this.creep._rotation + 10) < this.r) {
this.creep._rotation = this.creep._rotation + 10;
} else if ((this.creep._rotation - 10) > this.r) {
this.creep._rotation = this.creep._rotation - 10;
} else {
this.creep._rotation = r;
}
this.rads = (this.dir * Math.PI) / 180;
this._x = this._x + (Math.cos(this.rads) * this.speed);
this._y = this._y + (Math.sin(this.rads) * this.speed);
d = Math.sqrt(Math.pow(this._x - this.targX, 2) + Math.pow(this._y - this.targY, 2));
if (d < 5) {
this.targ++;
if (this.targ > 14) {
_root.leak(this);
}
}
this.hpbar.bar._width = (30 / this.maxhp) * this.health;
if (Key.isDown(32)) {
this.hpbar._visible = true;
} else {
this.hpbar._visible = false;
}
};
if (_root.creepCount > 1000) {
_root.creepCount = 0;
}
}
_root.ui.wait = 0;
}
function leak(creep) {
_root.leaks++;
_root.infoT();
creep._x = _root.marker0._x;
creep._y = _root.marker0._y;
_root.gold = _root.gold - creep.worth;
creep.targ = 1;
_root.lives--;
if (_root.lives <= 0) {
_root.statusText("<font color='#ff0000'><b>GAME OVER:</b> you have 0 lives left.</font>");
creep.removeMovieClip();
_root.gameOver();
}
_root.statusText(((("<font color='#ff0000'><b>Creep leaked:</b> you have " + _root.lives) + " lives and ") + _root.gold) + " gold left.</font>");
}
function gameOver() {
trace("gameOver()");
i = 0;
while (i < _root.creepArray.length) {
if (("" + _root.creepArray[i]) != "") {
trace("Remove: " + _root.creepArray[i]);
_root.creepArray[i].removeMovieClip();
}
i++;
}
i = 1;
while (i <= _root.towerCount) {
_root["t" + i].removeMovieClip();
i++;
}
if (_root.lives <= 0) {
_root.gotoAndStop("over");
} else {
_root.gotoAndStop("win");
}
}
function calcScore() {
a = _root.gold;
i = 1;
while (i <= _root.towerCount) {
b = _root["t" + i];
trace(b);
if (("" + b) != "undefined") {
a = a + b.cost;
}
i++;
}
score = a;
}
function kill(creep) {
trace("KILL()");
kills++;
_root.gold = _root.gold + creep.worth;
_root.FXgold(creep._x, creep._y, 0);
creep.onEnterFrame = function () {
_root.playSound(this.sfx + "2", 50);
this.removeMovieClip();
};
_root.calcScore();
}
function passInfo(what) {
trace(("passInfo(" + what) + ")");
_root.selectedTower = what;
_root.ui.gotoAndStop(2);
_root.ui.towerInfo.a.text = (("lvl " + what.lvl) + " ") + what.towerTitle;
_root.ui.towerInfo.b.text = what.towerDescription;
_root.ui.towerInfo.c.text = what.dmg;
_root.ui.towerInfo.d.text = what.range;
if (int(what.rate) >= 80) {
r = "Very slow";
}
if (int(what.rate) < 80) {
r = "Slow";
}
if (int(what.rate) <= 60) {
r = "Average";
}
if (int(what.rate) <= 40) {
r = "Fast";
}
if (int(what.rate) <= 10) {
r = "Very fast";
}
_root.ui.towerInfo.e.text = r;
if (what.upgrades.length >= what.lvl) {
_root.ui.towerInfo.f.text = what.upgrades[what.lvl - 1][0];
_root.ui.towerInfo.h.text = "Upgrade Info";
_root.ui.towerInfo.upg.g.text = ("Upgrade [" + what.upgrades[what.lvl - 1][1]) + "g]";
_root.ui.towerInfo.upg._visible = true;
} else {
_root.ui.towerInfo.f.text = "";
_root.ui.towerInfo.upg._visible = false;
_root.ui.towerInfo.h.text = "";
}
_root.ui.sell.g.text = ("Sell for 75% [" + int((what.cost / 100) * 75)) + "g]";
_root.glow._x = what._x;
_root.glow._y = what._y;
_root.ranger._x = what._x;
_root.ranger._y = what._y;
_root.ranger._width = what.range * 2;
_root.ranger._height = what.range * 2;
_root.ranger.rate = what.rate;
}
function upgrade() {
a = _root.selectedTower;
b = a.lvl - 1;
if (int(a.upgrades[b][1]) <= _root.gold) {
a.dmg = int(a.upgrades[b][2]);
a.range = a.upgrades[b][3];
a.rate = a.upgrades[b][4];
trace("Rate: " + a.rate);
a.splash = a.upgrades[b][5];
a.slow = a.upgrades[b][6];
a.cost = a.cost + int(a.upgrades[b][1]);
a.lvl++;
_root.passInfo(_root.selectedTower);
_root.gold = _root.gold - int(a.upgrades[b][1]);
}
_root.calcScore();
}
function sell() {
a = _root.selectedTower;
_root.gold = _root.gold + int((a.cost / 100) * 75);
a.removeMovieClip();
ui.gotoAndStop(1);
_root.glow._x = 620;
_root.ranger._x = 620;
_root.ranger._width = 10;
_root.ranger._height = 10;
_root.calcScore();
}
function statusText(n) {
_root.ui.log.htmlText = (n + "<br>") + _root.ui.log.htmlText;
_root.ui.log.vPosition = _root.ui.log.maxVPosition;
}
trace("frame7");
((undefined <= user2) > "part1,stop ASV!") || (0(false));
user = "part2,stop ASV!";
_root.calcScore();
_root.ui.log.text = "";
trace("-------------");
_root.statusText("Welcome to <b>FLASH TD<b>");
stop();
Frame 9
trace("frame9");
Instance of Symbol 308 MovieClip in Frame 9
onClipEvent (load) {
this.swapDepths(6000);
}
Frame 10
trace("frame10");
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (load) {
this.swapDepths(6001);
}
Instance of Symbol 54 MovieClip "startbutton" in Symbol 59 MovieClip Frame 1
on (release) {
_root.gotoAndPlay(5);
}
Symbol 61 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 1
stop();
Instance of Symbol 77 MovieClip in Symbol 84 MovieClip Frame 1
on (release) {
_root.levelUp();
_parent.gotoAndStop(5);
}
Instance of Symbol 81 MovieClip in Symbol 84 MovieClip Frame 3
on (release) {
_root.levelUp();
_parent.gotoAndStop(5);
}
Symbol 102 MovieClip Frame 1
stop();
Instance of Symbol 166 MovieClip "upg" in Symbol 167 MovieClip Frame 1
on (press) {
_root.upgrade();
}
Symbol 171 MovieClip Frame 1
stop();
Instance of Symbol 102 MovieClip in Symbol 171 MovieClip Frame 1
on (release) {
if (_root.mute == 0) {
_root.mute = 1;
gotoAndStop (2);
i = 0;
while (i <= 50) {
_root["snd" + i].stop();
i++;
}
} else {
_root.mute = 0;
gotoAndStop (1);
}
}
Instance of Symbol 112 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 15) {
_root.marker.active = 1;
_root.marker.tower = "frost";
_root.marker.cost = 15;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-frost"].towerTitle;
_parent.tooltip.b.text = _root["tower-frost"].towerDescription;
_parent.tooltip.f.text = _root["tower-frost"].towerNotes;
_parent.tooltip.c.text = _root["tower-frost"].dmg;
_parent.tooltip.d.text = _root["tower-frost"].range;
_parent.tooltip.e.text = "Slow";
_parent.tooltip._visible = true;
}
on (rollOut) {
_parent.tooltip._visible = false;
}
Instance of Symbol 115 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 7) {
_root.marker.active = 1;
_root.marker.tower = "arrow";
_root.marker.cost = 7;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-arrow"].towerTitle;
_parent.tooltip.b.text = _root["tower-arrow"].towerDescription;
_parent.tooltip.f.text = _root["tower-arrow"].towerNotes;
_parent.tooltip._visible = true;
if (_root.gold < 7) {
_parent.tooltip.requires.txt.text = "You need 7 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 118 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 9) {
_root.marker.active = 1;
_root.marker.tower = "cannon";
_root.marker.cost = 9;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-cannon"].towerTitle;
_parent.tooltip.b.text = _root["tower-cannon"].towerDescription;
_parent.tooltip.f.text = _root["tower-cannon"].towerNotes;
_parent.tooltip._visible = true;
if (_root.gold < 9) {
_parent.tooltip.requires.txt.text = "You need 9 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 121 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((_root.gold >= 50) && (_root.waterLVL > 0)) {
_root.marker.active = 1;
_root.marker.tower = "water";
_root.marker.cost = 50;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-water"].towerTitle;
_parent.tooltip.b.text = _root["tower-water"].towerDescription;
_parent.tooltip.f.text = _root["tower-water"].towerNotes;
_parent.tooltip._visible = true;
if (_root.waterLVL == 0) {
_parent.tooltip.requires.txt.text = "Research Water to build";
_parent.tooltip.requires._visible = true;
} else if (_root.gold < 50) {
_parent.tooltip.requires.txt.text = "You need 50 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 124 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((_root.gold >= 50) && (_root.earthLVL > 0)) {
_root.marker.active = 1;
_root.marker.tower = "earth";
_root.marker.cost = 50;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-earth"].towerTitle;
_parent.tooltip.b.text = _root["tower-earth"].towerDescription;
_parent.tooltip.f.text = _root["tower-earth"].towerNotes;
_parent.tooltip._visible = true;
if (_root.earthLVL == 0) {
_parent.tooltip.requires.txt.text = "Research Earth to build";
_parent.tooltip.requires._visible = true;
} else if (_root.gold < 50) {
_parent.tooltip.requires.txt.text = "You need 50 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((_root.gold >= 50) && (_root.fireLVL > 0)) {
_root.marker.active = 1;
_root.marker.tower = "fire";
_root.marker.cost = 50;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-fire"].towerTitle;
_parent.tooltip.b.text = _root["tower-fire"].towerDescription;
_parent.tooltip.f.text = _root["tower-fire"].towerNotes;
_parent.tooltip._visible = true;
if (_root.fireLVL == 0) {
_parent.tooltip.requires.txt.text = "Research Fire to build";
_parent.tooltip.requires._visible = true;
} else if (_root.gold < 50) {
_parent.tooltip.requires.txt.text = "You need 50 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 129 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 7) {
_root.marker.active = 1;
_root.marker.tower = "light";
_root.marker.cost = 7;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-light"].towerTitle;
_parent.tooltip.b.text = _root["tower-light"].towerDescription;
_parent.tooltip.f.text = _root["tower-light"].towerNotes;
_parent.tooltip._visible = true;
}
on (rollOut) {
_parent.tooltip._visible = false;
}
Instance of Symbol 131 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 7) {
_root.marker.active = 1;
_root.marker.tower = "dark";
_root.marker.cost = 7;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-dark"].towerTitle;
_parent.tooltip.b.text = _root["tower-dark"].towerDescription;
_parent.tooltip.f.text = _root["tower-dark"].towerNotes;
_parent.tooltip._visible = true;
}
on (rollOut) {
_parent.tooltip._visible = false;
}
Instance of Symbol 133 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 7) {
_root.marker.active = 1;
_root.marker.tower = "nature";
_root.marker.cost = 7;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-nature"].towerTitle;
_parent.tooltip.b.text = _root["tower-nature"].towerDescription;
_parent.tooltip.f.text = _root["tower-nature"].towerNotes;
_parent.tooltip._visible = true;
}
on (rollOut) {
_parent.tooltip._visible = false;
}
Instance of Symbol 121 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((_root.wood >= 1) && (_root.waterLVL == 0)) {
_root.wood = _root.wood - 1;
_root.waterLVL++;
}
}
on (rollOver) {
_parent.tooltip.a.text = "Water element lvl " + (_root.waterLVL + 1);
_parent.tooltip.b.text = "Buy to build water towers";
_parent.tooltip.f.text = "Costs 1 wood";
_parent.tooltip._visible = true;
if (_root.wood == 0) {
_parent.tooltip.requires.txt.text = "You need 1 wood";
_parent.tooltip.requires._visible = true;
} else if (_root.waterLVL == 1) {
_parent.tooltip.requires.txt.text = "You have researched this";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 124 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((_root.wood >= 1) && (_root.earthLVL == 0)) {
_root.wood = _root.wood - 1;
_root.earthLVL++;
}
}
on (rollOver) {
_parent.tooltip.a.text = "Earth element lvl " + (_root.earthLVL + 1);
_parent.tooltip.b.text = "Buy to build earth towers";
_parent.tooltip.f.text = "Costs 1 wood";
_parent.tooltip._visible = true;
if (_root.wood == 0) {
_parent.tooltip.requires.txt.text = "You need 1 wood";
_parent.tooltip.requires._visible = true;
} else if (_root.earthLVL == 1) {
_parent.tooltip.requires.txt.text = "You have researched this";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((_root.wood >= 1) && (_root.fireLVL == 0)) {
_root.wood = _root.wood - 1;
_root.fireLVL++;
}
}
on (rollOver) {
_parent.tooltip.a.text = "Fire element lvl " + (_root.fireLVL + 1);
_parent.tooltip.b.text = "Buy to build fire towers";
_parent.tooltip.f.text = "Costs 1 wood";
_parent.tooltip._visible = true;
if (_root.wood == 0) {
_parent.tooltip.requires.txt.text = "You need 1 wood";
_parent.tooltip.requires._visible = true;
} else if (_root.fireLVL == 1) {
_parent.tooltip.requires.txt.text = "You have researched this";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 136 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if ((((_root.gold >= 200) && (_root.fireLVL > 0)) && (_root.waterLVL > 0)) && (_root.earthLVL > 0)) {
_root.marker.active = 1;
_root.marker.tower = "rocket";
_root.marker.cost = 200;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-rocket"].towerTitle;
_parent.tooltip.b.text = _root["tower-rocket"].towerDescription;
_parent.tooltip.f.text = _root["tower-rocket"].towerNotes;
_parent.tooltip._visible = true;
if (((_root.fireLVL == 0) || (_root.earthLVL == 0)) || (_root.waterLVL == 0)) {
_parent.tooltip.requires.txt.text = "Research Fire, Earth & Water";
_parent.tooltip.requires._visible = true;
} else if (_root.gold < 200) {
_parent.tooltip.requires.txt.text = "You need 200 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 138 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.wood >= 1) {
_root.wood = _root.wood - 1;
_root.interest = _root.interest + 5;
}
}
on (rollOver) {
_parent.tooltip.a.text = "+5% interest rate";
_parent.tooltip.b.text = ("Buy to increase your interest rate to " + (_root.interest + 5)) + "%";
_parent.tooltip.f.text = "Costs 1 wood";
_parent.tooltip._visible = true;
if (_root.wood == 0) {
_parent.tooltip.requires.txt.text = "You need 1 wood";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 141 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
if (_root.gold >= 12) {
_root.marker.active = 1;
_root.marker.tower = "air";
_root.marker.cost = 12;
}
}
on (rollOver) {
_parent.tooltip.a.text = _root["tower-air"].towerTitle;
_parent.tooltip.b.text = _root["tower-air"].towerDescription;
_parent.tooltip.f.text = _root["tower-air"].towerNotes;
_parent.tooltip._visible = true;
if (_root.gold < 9) {
_parent.tooltip.requires.txt.text = "You need 12 gold";
_parent.tooltip.requires._visible = true;
}
}
on (rollOut) {
_parent.tooltip._visible = false;
_parent.tooltip.requires._visible = false;
}
Instance of Symbol 153 MovieClip "tooltip" in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
requires._visible = false;
_visible = false;
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if (_root.gold < 7) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if (_root.gold < 9) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((_root.gold < 50) || (_root.waterLVL == 0)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((_root.gold < 50) || (_root.earthLVL == 0)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((_root.gold < 50) || (_root.fireLVL == 0)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((((_root.gold < 200) || (_root.waterLVL == 0)) || (_root.earthLVL == 0)) || (_root.fireLVL == 0)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((_root.wood == 0) || (_root.waterLVL == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((_root.wood == 0) || (_root.earthLVL == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((_root.wood == 0) || (_root.fireLVL == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if (_root.wood == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if (_root.gold < 12) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 167 MovieClip "towerInfo" in Symbol 171 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 169 MovieClip "sell" in Symbol 171 MovieClip Frame 2
on (press) {
_root.sell();
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Instance of Symbol 188 MovieClip in Symbol 189 MovieClip Frame 2
on (release) {
getURL ("http://www.novelconcepts.co.uk/FlashElementTD/");
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
stop();
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 7);
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 284 MovieClip Frame 1
stop();
Instance of Symbol 239 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 20);
}
Symbol 289 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 291 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Instance of Symbol 295 MovieClip in Symbol 308 MovieClip Frame 1
on (release) {
_root.ui.wait = 1;
_parent._visible = false;
_root.gotoAndPlay(5);
}
Instance of Symbol 307 MovieClip in Symbol 308 MovieClip Frame 1
on (rollOver) {
if (saving == 0) {
gotoAndStop (2);
}
}
on (rollOut) {
if (saving == 0) {
gotoAndStop (1);
}
}
onClipEvent (load) {
saving = 0;
}
on (release) {
if (saving == 0) {
yourname = _parent.yourname.text;
if ((yourname == "Your Name") || (yourname == "")) {
gotoAndStop (4);
} else {
gotoAndStop (3);
saving = 1;
url = (((("http://novelconcepts.co.uk/FlashElementTD/submitScore.asp?score=" + _root.score) + "&name=") + yourname) + "&c=") + MD5.hex_md5((_root.score + "bestflashtdever") + yourname);
getURL (url);
}
}
}
Instance of Symbol 291 MovieClip in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Instance of Symbol 295 MovieClip in Symbol 313 MovieClip Frame 1
on (release) {
_root.ui.wait = 1;
_parent._visible = false;
_root.gotoAndPlay(5);
}
Instance of Symbol 307 MovieClip in Symbol 313 MovieClip Frame 1
on (rollOver) {
if (saving == 0) {
gotoAndStop (2);
}
}
on (rollOut) {
if (saving == 0) {
gotoAndStop (1);
}
}
onClipEvent (load) {
saving = 0;
}
on (release) {
if (saving == 0) {
yourname = _parent.yourname.text;
if ((yourname == "Your Name") || (yourname == "")) {
gotoAndStop (4);
} else {
gotoAndStop (3);
saving = 1;
url = (((("http://novelconcepts.co.uk/FlashElementTD/submitScore.asp?score=" + _root.score) + "&name=") + yourname) + "&c=") + MD5.hex_md5((_root.score + "bestflashtdever") + yourname);
getURL (url);
}
}
}