Frame 1
function senturl(a, b, c, d) {
getURL ((((((((("http://user.game.com.cn/game/?action=highscore&id=" + _global.gameID2) + "&s=") + a) + "&a=") + b) + "&t=") + d) + "&r=") + c, "_blank");
}
function geturl() {
getURL ("http://user.game.com.cn/game/?action=highscore&id=" + _global.gameID, "_blank");
}
function hex_average(s) {
return(binl2hex(core_average(str2binl(s), s.length * chrsz)));
}
function b64_average(s) {
return(binl2b64(core_average(str2binl(s), s.length * chrsz)));
}
function hex_hmac_average(key, data) {
return(binl2hex(core_hmac_average(key, data)));
}
function b64_hmac_average(key, data) {
return(binl2b64(core_hmac_average(key, data)));
}
function calcaverage(s) {
return(binl2hex(core_average(str2binl(s), s.length * chrsz)));
}
function average_vm_test() {
return(hex_average("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
function core_average(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = average_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = average_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = average_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = average_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = average_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = average_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = average_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = average_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = average_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = average_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = average_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = average_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = average_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = average_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = average_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = average_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = average_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = average_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = average_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = average_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = average_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = average_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = average_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = average_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = average_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = average_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = average_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = average_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = average_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = average_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = average_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = average_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = average_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = average_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = average_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = average_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = average_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = average_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = average_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = average_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = average_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = average_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = average_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = average_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = average_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = average_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = average_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = average_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = average_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = average_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = average_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = average_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = average_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = average_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = average_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = average_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = average_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = average_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = average_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = average_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = average_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = average_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = average_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = average_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function average_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function average_ff(a, b, c, d, x, s, t) {
return(average_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function average_gg(a, b, c, d, x, s, t) {
return(average_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function average_hh(a, b, c, d, x, s, t) {
return(average_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function average_ii(a, b, c, d, x, s, t) {
return(average_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_hmac_average(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_average(_local2, key.length * chrsz);
}
var _local3 = Array(16);
var _local4 = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
_local4[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var _local5 = core_average(_local3.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_average(_local4.concat(_local5), 640));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local3 = Array();
var _local4 = (1 << chrsz) - 1;
var _local1 = 0;
while (_local1 < (str.length * chrsz)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / chrsz) & _local4) << (_local1 % 32));
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local3 = (hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local4 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local4 = "";
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255);
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (binarray.length * 32)) {
_local4 = _local4 + b64pad;
} else {
_local4 = _local4 + _local6.charAt((_local5 >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(_local4);
}
function SortT() {
var _local1 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
var _local2 = "";
trace(_local1 + "###");
i = 0;
while (i < 10) {
_local2 = _local2 + _local1.substr(random(_local1.length), 1);
i++;
}
trace(_local2);
return(_local2);
}
function DrawLine(position, line, x1, x2, y1, y2) {
function AbstractTile(cx, cy) {
center = new Vector2(cx, cy);
verts = new Array();
normal = new Vector2(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
}
function initializeContainer() {
var _local2 = _root.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = _root.createEmptyMovieClip(_local3, _local2);
}
function createBoundingRect(rw, rh) {
var _local1 = center.y - (rh / 2);
var _local2 = center.y + (rh / 2);
var _local4 = center.x - (rw / 2);
var _local3 = center.x + (rw / 2);
verts.push(new Vector2(_local3, _local2));
verts.push(new Vector2(_local3, _local1));
verts.push(new Vector2(_local4, _local1));
verts.push(new Vector2(_local4, _local2));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
var _local10 = new Vector2(x1, y1);
var _local6 = new Vector2(x2, y2);
current = _local10.dot(_local6);
nextdot = _local10.cross(_local6);
current = current + nextdot;
var _local25;
var _local24;
var _local23;
var _local22;
var verts;
var center;
var normal;
var dmc;
var isVisible;
var isActivated;
var _local3 = [];
_global.strqq = "";
i = 0;
while (i < 8) {
var _local4 = 0;
j = 0;
while (j < 10) {
c = ord(line.substr(j, 1));
c = String(c).substr(String(c).length - 2, 1);
_local4 = _local4 + Number(c);
j++;
}
trace(_local4);
if (_local4 > 10) {
_local4 = _local4 % 10;
}
_local3[i] = Math.round(((i + _local4) * (i + _local4)) - ((_local4 * _local4) / 2));
while (_local3[i] >= 32) {
_local3[i] = Math.round(_local3[i] / 2);
}
l = 0;
l = 0;
while (l < (_local3.length - 1)) {
if (_local3[i] == _local3[l]) {
_local3[i] = _local3[i] + 1;
}
l++;
}
trace(_local3[i]);
_global.strqq = _global.strqq + position.substr(_local3[i], 1);
i++;
}
var _local19 = new Vector2(x1, y1);
current = _local19.dot(_local6);
nextdot = _local19.cross(_local6);
current = current + nextdot;
var _local17 = new Vector2(x1, y1);
current = _local17.dot(_local6);
nextdot = _local17.cross(_local6);
current = current + nextdot;
var _local16 = new Vector2(x1, y1);
current = _local16.dot(_local6);
nextdot = _local16.cross(_local6);
current = current + nextdot;
_local19 = new Vector2(x1, y1);
current = point5.dot(_local6);
nextdot = point5.cross(_local6);
current = current + nextdot;
current = Math.round(Math.sqrt(current * 2));
if (current > 20) {
current = Math.round(Math.sqrt(current));
}
return(current);
}
function Randoms(Num) {
aaa = "123098938487634asdflskafgpoipALKGAISFH:LKHAODG";
var _local2 = "";
i = 0;
while (i < Num) {
bbb = bbb + aaa.substr(random(aaa.length), 1);
i++;
}
return(bbb);
}
function md5(randomStr) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local3 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local10 = str2binl(key);
if (_local10.length > 16) {
_local10 = core_average(_local10, key.length * chrsz);
}
var _local11 = Array(16);
var _local12 = Array(16);
var _local5 = 0;
while (_local5 < 16) {
_local11[_local5] = _local10[_local5] ^ 909522486;
_local12[_local5] = _local10[_local5] ^ 1549556828;
_local5++;
}
var _local13 = core_average(_local11.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_average(_local12.concat(_local13), 640));
while (_local5 < x.length) {
var _local9 = _local3;
var _local8 = _local4;
var _local7 = _local2;
var _local6 = _local1;
_local3 = average_ff(_local3, _local4, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = average_ff(_local1, _local3, _local4, _local2, x[_local5 + 1], 12, -389564586);
_local2 = average_ff(_local2, _local1, _local3, _local4, x[_local5 + 2], 17, 606105819);
_local4 = average_ff(_local4, _local2, _local1, _local3, x[_local5 + 3], 22, -1044525330);
_local3 = average_ff(_local3, _local4, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = average_ff(_local1, _local3, _local4, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = average_ff(_local2, _local1, _local3, _local4, x[_local5 + 6], 17, -1473231341);
_local4 = average_ff(_local4, _local2, _local1, _local3, x[_local5 + 7], 22, -45705983);
_local3 = average_ff(_local3, _local4, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = average_ff(_local1, _local3, _local4, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = average_ff(_local2, _local1, _local3, _local4, x[_local5 + 10], 17, -42063);
_local4 = average_ff(_local4, _local2, _local1, _local3, x[_local5 + 11], 22, -1990404162);
_local3 = average_ff(_local3, _local4, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = average_ff(_local1, _local3, _local4, _local2, x[_local5 + 13], 12, -40341101);
_local2 = average_ff(_local2, _local1, _local3, _local4, x[_local5 + 14], 17, -1502002290);
_local4 = average_ff(_local4, _local2, _local1, _local3, x[_local5 + 15], 22, 1236535329);
_local3 = average_gg(_local3, _local4, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = average_gg(_local1, _local3, _local4, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = average_gg(_local2, _local1, _local3, _local4, x[_local5 + 11], 14, 643717713);
_local4 = average_gg(_local4, _local2, _local1, _local3, x[_local5 + 0], 20, -373897302);
_local3 = average_gg(_local3, _local4, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = average_gg(_local1, _local3, _local4, _local2, x[_local5 + 10], 9, 38016083);
_local2 = average_gg(_local2, _local1, _local3, _local4, x[_local5 + 15], 14, -660478335);
_local3 = average_ii(_local3, _local4, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = average_ii(_local1, _local3, _local4, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = average_ii(_local2, _local1, _local3, _local4, x[_local5 + 10], 15, -1051523);
_local4 = average_ii(_local4, _local2, _local1, _local3, x[_local5 + 1], 21, -2054922799);
_local3 = average_ii(_local3, _local4, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = average_ii(_local1, _local3, _local4, _local2, x[_local5 + 15], 10, -30611744);
_local2 = average_ii(_local2, _local1, _local3, _local4, x[_local5 + 6], 15, -1560198380);
_local4 = average_ii(_local4, _local2, _local1, _local3, x[_local5 + 13], 21, 1309151649);
_local3 = average_ii(_local3, _local4, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = average_ii(_local1, _local3, _local4, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = average_ii(_local2, _local1, _local3, _local4, x[_local5 + 2], 15, 718787259);
_local4 = average_ii(_local4, _local2, _local1, _local3, x[_local5 + 9], 21, -343485551);
_local3 = safe_add(_local3, _local9);
_local4 = safe_add(_local4, _local8);
_local2 = safe_add(_local2, _local7);
_local1 = safe_add(_local1, _local6);
_local5 = _local5 + 16;
}
return(Array(_local3, _local4, _local2, _local1));
}
fscommand ("allowscale", "false");
_global.gameID = 8;
_global.gameID2 = 8;
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
randomStr = Randoms(10);
Stage.showMenu = false;
stop();
var qualityStatus = 3;
var soundStatus = 1;
var bg_sound;
_root.localization_branding_nr = 1;
_root.localization_branding2_nr = 1;
_root.localization_url1 = "http://www.gamesgames.com";
_root.moregames_url = "http://www.gamesgames.com/moregames/";
_root.freegames_url = "http://www.gamesgames.com/freegames/";
Frame 5
function loadData(data_id) {
var _local2 = new Object();
var _local1 = SharedObject.getLocal("game_race_" + data_id, "/");
for (var _local3 in _local1.data) {
_local2[_local3] = _local1.data[_local3];
}
return(_local2);
}
function saveData(data_id, obj) {
var _local2 = SharedObject.getLocal("game_race_" + data_id, "/");
for (var _local3 in obj) {
_local2.data[_local3] = obj[_local3];
}
_local2.flush(1000);
return(true);
}
function deleteData(data_id) {
var _local1 = SharedObject.getLocal("game_race_" + data_id, "/");
for (var _local2 in _local1.data) {
delete _local1.data[_local2];
}
_local1.flush(1000);
}
function initHighScore() {
var _local6 = SharedObject.getLocal("game_race_0", "/");
var _local5 = ["China", "UK", "South Africa", "Indonesia", "Netherlands", "Mexico"];
var _local2 = ["Easy", "Normal", "Hard"];
var _local4;
_local4 = new Array();
for (var _local9 in _local5) {
_local4[_local9] = new Array();
}
_local4[0][0] = ["00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00"];
_local4[0][1] = ["00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00"];
_local4[0][2] = ["00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00"];
_local4[1][0] = ["00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00"];
_local4[1][1] = ["00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00"];
_local4[1][2] = ["00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00"];
_local4[2][0] = ["00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00", "01:20:00"];
_local4[2][1] = ["00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00", "01:20:00"];
_local4[2][2] = ["00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00", "01:20:00"];
_local4[3][1] = ["00:15:00", "00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00"];
_local4[3][2] = ["00:15:00", "00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00"];
_local4[3][0] = ["00:15:00", "00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00"];
_local4[4][0] = ["00:10:00", "00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00"];
_local4[4][1] = ["00:10:00", "00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00"];
_local4[4][2] = ["00:10:00", "00:20:00", "00:25:00", "00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00"];
_local4[5][0] = ["00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00", "01:20:00", "01:30:00"];
_local4[5][1] = ["00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00", "01:20:00", "01:30:00"];
_local4[5][2] = ["00:30:00", "00:35:00", "00:40:00", "00:45:00", "00:50:00", "00:55:00", "01:00:00", "01:10:00", "01:20:00", "01:30:00"];
var _local7 = false;
for (var _local9 in _local5) {
var _local3 = new Object();
for (var _local8 in _local2) {
trace(_local9);
trace(_local8);
_local3[_local2[_local8]] = new Object();
if (_local6.data[_local5[_local9]][_local2[_local8]].NO_10.score == undefined) {
_local7 = true;
var _local1 = 0;
while (_local1 < 10) {
_local3[_local2[_local8]]["NO_" + (_local1 + 1)] = new Object();
_local3[_local2[_local8]]["NO_" + (_local1 + 1)].score = _local4[_local9][_local8][_local1];
_local3[_local2[_local8]]["NO_" + (_local1 + 1)].player = "cpu";
_local1++;
}
}
}
if (_local7) {
_local6.data[_local5[_local9]] = _local3;
}
}
if (_local7) {
_local6.flush(1000);
}
}
function msgBox(txt, frame) {
if (!bg_btn) {
this.attachMovie("bg_btn", "bg_btn", this.getNextHighestDepth());
}
if (!msg_box) {
this.attachMovie("msg_box", "msg_box", this.getNextHighestDepth());
}
if (frame) {
msg_box.gotoAndStop(frame);
}
bg_btn._width = 550;
bg_btn._height = 440;
msg_box._x = (550 - msg_box._width) / 2;
msg_box._y = (400 - msg_box._height) / 2;
msg_box.msg_tf.text = txt;
}
stop();
var ENEMY_NUM;
var level_code;
var data_id;
var map_id;
_root.playerchinesesorce = 0;
initHighScore();
var btn_snd1 = new Sound();
var btn_snd2 = new Sound();
btn_snd1.attachSound("blip");
btn_snd2.attachSound("clik");
if (soundStatus == 1) {
if (over_snd) {
over_snd.stop("sound_over.mp3");
delete over_snd;
}
this.sound_btn.soundon.gotoAndStop(2);
this.sound_btn.soundoff.gotoAndStop(1);
trace("aaaaa" + load_sound);
if (load_sound == undefined) {
var load_sound = new Sound();
trace("bbbbb" + load_sound);
load_sound.attachSound("bg_Menu.mp3");
load_sound.start(0, 1000);
}
trace("aaaaa" + load_sound);
if (load_sound == null) {
trace("bbbbb" + load_sound);
}
} else {
this.sound_btn.soundon.gotoAndStop(1);
this.sound_btn.soundoff.gotoAndStop(2);
}
if (qualityStatus == 1) {
quality_btn.gotoAndStop(1);
_quality = "LOW";
} else if (_root.qualityStatus == 2) {
quality_btn.gotoAndStop(2);
_quality = "MEDIUM";
} else {
quality_btn.gotoAndStop(3);
_quality = "HIGH";
}
Frame 10
stop();
Frame 12
stop();
Frame 15
function showData() {
var _local3 = 1;
while (_local3 < 4) {
var _local4 = loadData(_local3, data_obj);
var _local5 = _local4.data_name;
if (_local5) {
data_frm[("file_" + _local3) + "_tf"].text = _local5;
data_frm["create_" + _local3]._visible = false;
data_frm["race_" + _local3]._visible = true;
data_frm["edit_" + _local3]._visible = true;
data_frm["erase_" + _local3]._visible = true;
this["code_" + _local3] = _local4.code;
} else {
if (_root.localization_branding_nr == 1) {
data_frm[("file_" + _local3) + "_tf"].text = ("Save file " + _local3) + " empty";
}
if (_root.localization_branding_nr == 2) {
data_frm[("file_" + _local3) + "_tf"].text = "\u7A7A\u8BB0\u5F55" + _local3;
}
if (_root.localization_branding_nr == 3) {
data_frm[("file_" + _local3) + "_tf"].text = ("Opgeslagen bestand " + _local3) + " leeg";
}
if (_root.localization_branding_nr == 4) {
data_frm[("file_" + _local3) + "_tf"].text = ("Sauvegarde fichier " + _local3) + " vide";
}
if (_root.localization_branding_nr == 5) {
data_frm[("file_" + _local3) + "_tf"].text = ("Gespeicherte Datei " + _local3) + " leer";
}
if (_root.localization_branding_nr == 6) {
data_frm[("file_" + _local3) + "_tf"].text = ("Zapisz plik " + _local3) + " pusty";
}
if (_root.localization_branding_nr == 7) {
data_frm[("file_" + _local3) + "_tf"].text = ("Sparfil " + _local3) + " tom";
}
if (_root.localization_branding_nr == 8) {
data_frm[("file_" + _local3) + "_tf"].text = ("File di salvataggio " + _local3) + " vuoto";
}
if (_root.localization_branding_nr == 9) {
data_frm[("file_" + _local3) + "_tf"].text = ("Archivo de guardado " + _local3) + " vac\u00EDo";
}
if (_root.localization_branding_nr == 10) {
data_frm[("file_" + _local3) + "_tf"].text = ("Arquivo " + _local3) + " vazio";
}
if (_root.localization_branding_nr == 11) {
data_frm[("file_" + _local3) + "_tf"].text = ("Guardar ficheiro " + _local3) + " vazio";
}
if (_root.localization_branding_nr == 12) {
data_frm[("file_" + _local3) + "_tf"].text = ("\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0444\u0430\u0439\u043B " + _local3) + " \u043F\u0443\u0441\u0442\u043E\u0439";
}
if (_root.localization_branding_nr == 13) {
data_frm[("file_" + _local3) + "_tf"].text = ("Simpan arsip " + _local3) + " kosong";
}
data_frm["create_" + _local3]._visible = true;
data_frm["race_" + _local3]._visible = false;
data_frm["edit_" + _local3]._visible = false;
data_frm["erase_" + _local3]._visible = false;
}
_local3++;
}
}
function myRotation(num) {
if ((num == 3) || (num == 10)) {
return(0);
}
if ((num == 6) || (num == 5)) {
return(90);
}
if (num == 12) {
return(180);
}
if (num == 9) {
return(-90);
}
}
function deCode(str) {
var _local1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
for (var _local3 in _local1) {
if (_local1[_local3] == str) {
return(Number(_local3));
}
}
}
stop();
var my_data_name;
var code_1;
var code_2;
var code_3;
showData();
Frame 20
function codeToArray(traget_mc) {
_root.map_editor_mc.map_box.map_0.gotoAndStop("used");
var _local12 = _root.level_code.split("--");
_root.map_id = Number(_local12[1].charAt(0));
if (traget_mc == map_editor_mc) {
map_editor_mc.setArea("", _root.map_id);
traget_mc.enemy_mc.enemy_tf.text = Number(_local12[2]);
traget_mc.lap_mc.lap_tf.text = Number(_local12[3]);
}
traget_mc.path_array = _local12[4].split("-");
for (var _local13 in traget_mc.path_array) {
var _local4 = traget_mc.path_array[_local13].charAt(0);
var _local5 = traget_mc.path_array[_local13].charAt(1);
var _local9 = deCode(traget_mc.path_array[_local13].charAt(2));
var _local3 = myRotation(deCode(traget_mc.path_array[_local13].charAt(3)));
trace((((((("j=" + _local4) + "i=") + _local5) + "id=") + _local9) + "rtn=") + _local3);
traget_mc.path_array[_local13] = [_local4, _local5, _local9, _local3];
if (_local9 < 20) {
if (((_local3 == 0) || (_local3 == 180)) || (_local3 == -180)) {
traget_mc.map_array[_local4][_local5] = 10;
} else if ((_local3 == 90) || (_local3 == -90)) {
traget_mc.map_array[_local4][_local5] = 5;
}
} else if (_local3 == 0) {
traget_mc.map_array[_local4][_local5] = 3;
} else if (_local3 == 90) {
traget_mc.map_array[_local4][_local5] = 6;
} else if ((_local3 == 180) || (_local3 == -180)) {
traget_mc.map_array[_local4][_local5] = 12;
} else if (_local3 == -90) {
traget_mc.map_array[_local4][_local5] = 9;
}
if (traget_mc == map_editor_mc) {
traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5].gotoAndStop(_local9);
if (_local3 == 90) {
traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._x = traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._x + 50;
} else if (_local3 == 180) {
traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._x = traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._x + 50;
traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._y = traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._y + 50;
} else if (_local3 == -90) {
traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._y = traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._y + 50;
}
traget_mc.map_frm.main_map[(("map_" + _local4) + "_") + _local5]._rotation = _local3;
}
}
traget_mc.start_position[0] = traget_mc.path_array[0][0];
traget_mc.start_position[1] = traget_mc.path_array[0][1];
if (_local12[5] != undefined) {
traget_mc.obj_array = _local12[5].split("-");
for (var _local14 in traget_mc.obj_array) {
var _local7 = parseInt(traget_mc.obj_array[_local14].charAt(0), 10);
var _local8 = parseInt(traget_mc.obj_array[_local14].slice(1, 4), 10);
var _local6 = parseInt(traget_mc.obj_array[_local14].slice(4), 10);
trace((((("type=" + _local7) + "xx=") + _local8) + "yy=") + _local6);
if (_local7 == 4) {
traget_mc.map_frm.attachMovie("tire_img", "obj_" + _local14, traget_mc.map_frm.getNextHighestDepth(), {_x:_local8, _y:_local6});
} else if (_local7 == 5) {
traget_mc.map_frm.attachMovie("spanner_img", "obj_" + _local14, traget_mc.map_frm.getNextHighestDepth(), {_x:_local8, _y:_local6});
} else if (_local7 == 1) {
traget_mc.map_frm.attachMovie("small_tree_img", "obj_" + _local14, traget_mc.map_frm.getNextHighestDepth(), {_x:_local8, _y:_local6});
} else if (_local7 == 7) {
traget_mc.map_frm.attachMovie("small_tire_img", "obj_" + _local14, traget_mc.map_frm.getNextHighestDepth(), {_x:_local8, _y:_local6});
} else if (_local7 == 9) {
traget_mc.map_frm.attachMovie("small_person_img", "obj_" + _local14, traget_mc.map_frm.getNextHighestDepth(), {_x:_local8, _y:_local6});
}
traget_mc.obj_array[_local14] = [_local7, _local8, _local6];
}
if (traget_mc.obj_array.length) {
traget_mc.obj_max = 30 - traget_mc.obj_array.length;
}
}
}
stop();
var lock = false;
this.edit_help._visible = false;
if (qualityStatus == 1) {
_quality = "LOW";
} else if (_root.qualityStatus == 2) {
_quality = "MEDIUM";
} else {
_quality = "HIGH";
}
Frame 21
stop();
Frame 25
function showFinish(id) {
if (cup_id < 8) {
id = cup_finish[id - 1];
bottom_mc.cup_mc.gotoAndStop(id + 1);
} else {
bottom_mc.cup_mc.gotoAndStop(1);
}
}
stop();
var cup_id;
var cup_data = loadData(9);
if (!cup_finish) {
var cup_finish = cup_data.cup_finish;
if (!cup_finish) {
cup_finish = [0, 0, 0, 0, 0, 0, 0];
}
} else {
cup_data.cup_finish = cup_finish;
}
var game_difficulty = "Easy";
if (!lock_cup) {
var lock_cup = cup_data.lock_cup;
if (!lock_cup) {
lock_cup = [3, 3, 0, 0, 0, 0, 0, 3];
}
} else {
cup_data.lock_cup = lock_cup;
}
saveData(9, cup_data);
delete cup_data;
var l = 0;
while (l < 8) {
if (lock_cup[l] < 3) {
bottom_mc["cup_" + (l + 1)].gotoAndStop("lock");
} else {
bottom_mc["cup_" + (l + 1)].gotoAndStop("out");
}
l++;
}
_root.bottom_mc.race_mc._visible = false;
_root.bottom_mc.cup_mc.gotoAndStop(1);
_root.bottom_mc.preview_map._visible = false;
_root.easy_btn._visible = false;
_root.normal_btn._visible = false;
_root.hard_btn._visible = false;
_root.select_btn._visible = false;
_root.go_mc._visible = false;
Frame 30
function showFinish(id) {
if (cup_id < 8) {
id = cup_finish[id - 1];
bottom_mc.cup_mc.gotoAndStop(id + 1);
} else {
bottom_mc.cup_mc.gotoAndStop(1);
}
}
stop();
var cup_id = 8;
var cup_data = loadData(9);
if (!cup_finish) {
var cup_finish = cup_data.cup_finish;
if (!cup_finish) {
cup_finish = [0, 0, 0, 0, 0, 0, 0];
}
} else {
cup_data.cup_finish = cup_finish;
}
var game_difficulty = "Easy";
if (!lock_cup) {
var lock_cup = cup_data.lock_cup;
if (!lock_cup) {
lock_cup = [3, 3, 0, 0, 0, 0, 0, 3];
}
} else {
cup_data.lock_cup = lock_cup;
}
saveData(9, cup_data);
delete cup_data;
var l = 0;
while (l < 8) {
if (lock_cup[l] < 3) {
bottom_mc["cup_" + (l + 1)].gotoAndStop("lock");
} else {
bottom_mc["cup_" + (l + 1)].gotoAndStop("out");
}
l++;
}
_root.go_mc._visible = false;
_root.bottom_mc.race_mc.gotoAndStop("cup_8");
showFinish(cup_id);
bottom_mc["cup_" + cup_id].gotoAndStop("select");
Frame 35
stop();
for (var r in _root) {
_root[r].removeMovieClip();
}
if (qualityStatus == 1) {
_quality = "LOW";
} else if (_root.qualityStatus == 2) {
_quality = "MEDIUM";
} else {
_quality = "HIGH";
}
if (_root.edit == "run") {
_root.over_info._visible = false;
}
var over_info_txt = "";
if (_root.localization_branding_nr == 1) {
var first_txt = "Congratulations! You are the new champion!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Better luck next time! ";
var ffss_txt_2 = "Try to finish 1st to unlock new cups.";
var easy_txt = "Can you beat this cup in normal mode?";
var normal_txt = "Can you beat this cup in hard mode?";
var hard_txt = "Can you be 1st again in the next race?";
}
if (_root.localization_branding_nr == 2) {
var first_txt = "Congratulations! You are the new champion!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Better luck next time! ";
var ffss_txt_2 = "Try to finish 1st to unlock new cups.";
var easy_txt = "Can you beat this cup in normal mode?";
var normal_txt = "Can you beat this cup in hard mode?";
var hard_txt = "Can you be 1st again in the next race?";
}
if (_root.localization_branding_nr == 3) {
var first_txt = "Gefeliciteerd! Jij bent de nieuwe kampioen!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Volgende keer beter! ";
var ffss_txt_2 = " Finish als 1e om nieuwe competities te ontgrendelen.";
var easy_txt = " Kun je ook winnen in de normale modus?";
var normal_txt = "Kun je ook winnen in de moeilijke modus?";
var hard_txt = "Kun je nogmaals de 1e plek bemachtigen?";
}
if (_root.localization_branding_nr == 4) {
var first_txt = "Bravo ! Tu es le nouveau champion !";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Tu auras s\u00FBrement plus de chance la prochaine fois ! ";
var ffss_txt_2 = "Essaye de finir 1er de la course pour avoir de nouvelles coupes.";
var easy_txt = "Pourrais-tu gagner cette course dans le mode \u201Cnormal\u201D ?";
var normal_txt = "Pourrais-tu gagner cette course dans le mode \u201Cdifficile\u201D ?";
var hard_txt = "Penses-tu pouvoir r\u00E9ussir \u00E0 \u00EAtre le 1er de la course de nouveau ?";
}
if (_root.localization_branding_nr == 5) {
var first_txt = "Herzlichen Gl\u00FCckwunsch! Du bist der neue Meister!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Beim n\u00E4chsten Mal klappt's bestimmt besser. ";
var ffss_txt_2 = "Versuche 1. zu werden, um neue Cups freizuspielen.";
var easy_txt = "Kannst du diesen Cup auch im normalen Modus gewinnen?";
var normal_txt = "Kannst du diesen Cup auch im schweren Modus gewinnen?";
var hard_txt = " Kannst du noch einmal 1. werden?";
}
if (_root.localization_branding_nr == 6) {
var first_txt = "Gratulacje! Zosta\u0142e\u015B nowym mistrzem!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Powodzenia nast\u0119pnym razem! ";
var ffss_txt_2 = "Spr\u00F3buj zaj\u0105\u0107 1. miejsce, aby odblokowa\u0107 nowe wy\u015Bcigi.";
var easy_txt = "Czy zdo\u0142asz uko\u0144czy\u0107 wy\u015Bcig w trybie normalnym?";
var normal_txt = "Czy zdo\u0142asz uko\u0144czy\u0107 wy\u015Bcig w trybie trudnym?";
var hard_txt = "Jak my\u015Blisz, czy uda ci si\u0119 zdoby\u0107 1. miejsce raz jeszcze?";
}
if (_root.localization_branding_nr == 7) {
var first_txt = "Gratulerar! Du \u00E4r den nya segraren!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Lycka till n\u00E4sta g\u00E5ng! ";
var ffss_txt_2 = "F\u00F6rs\u00F6k att komma 1:a f\u00F6r att l\u00E5sa upp nya kupper.";
var easy_txt = "Kan du vinna kuppen i normalt l\u00E4ge?";
var normal_txt = "Kan du vinna kuppen i sv\u00E5rt l\u00E4ge?";
var hard_txt = "Kan du komma p\u00E5 f\u00F6rsta plats igen?";
}
if (_root.localization_branding_nr == 8) {
var first_txt = "Complimenti! Sei il nuovo campione! ";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Farai meglio la prossima volta!";
var ffss_txt_2 = "Prova ad arrivare primo per sbloccare nuovi trofei.";
var easy_txt = "Riesci a vincere il trofeo in modalit\u00E0 normale?";
var normal_txt = "Riesci a vincere il trofeo in modalit\u00E0 difficile?";
var hard_txt = "Pensi di poter raggiungere ancora la prima posizione?";
}
if (_root.localization_branding_nr == 9) {
var first_txt = "\u00A1Enhorabuena! \u00A1Eres el nuevo campe\u00F3n!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "\u00A1Que tengas m\u00E1s suerte la pr\u00F3xima vez! ";
var ffss_txt_2 = "Intenta terminar el 1\u00BA para desbloquear m\u00E1s copas.";
var easy_txt = "\u00BFPuedes ganar esta copa en el modo normal?";
var normal_txt = "\u00BFPuedes ganar esta copa en el modo dif\u00EDcil?";
var hard_txt = "\u00BFCrees que puedes volver a ganar el primer puesto?";
}
if (_root.localization_branding_nr == 10) {
var first_txt = "Parab\u00E9ns! Voc\u00EA \u00E9 o novo campe\u00E3o! ";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Boa sorte na pr\u00F3xima! ";
var ffss_txt_2 = " Tente chegar em 1\u00B0 para destravar novas copas.";
var easy_txt = "Consegue se superar na modalidade normal?";
var normal_txt = "Consegue se superar na modalidade dif\u00EDcil?";
var hard_txt = " Acha que consegue chegar de novo em 1\u00B0 lugar?";
}
if (_root.localization_branding_nr == 11) {
var first_txt = "Parab\u00E9ns! Voc\u00EA \u00E9 o novo campe\u00E3o!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Melhor sorte para a pr\u00F3xima!";
var ffss_txt_2 = "Tente primeiro chegar ao fim para desbloquear novos campeonatos.";
var easy_txt = "Consegue ganhar este campeonato no modo normal?";
var normal_txt = "Consegue ganhar este campeonato no modo dif\u00EDcil?";
var hard_txt = "Acredita que consegue alcan\u00E7ar o 1\u00BA lugar novamente?";
}
if (_root.localization_branding_nr == 12) {
var first_txt = "\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0422\u044B \u0441\u0442\u0430\u043B \u043D\u043E\u0432\u044B\u043C \u0447\u0435\u043C\u043F\u0438\u043E\u043D\u043E\u043C!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "\u0416\u0435\u043B\u0430\u0435\u043C \u0443\u0441\u043F\u0435\u0445\u0430 \u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0440\u0430\u0437! ";
var ffss_txt_2 = "\u041F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u0437\u0430\u043D\u044F\u0442\u044C 1-\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u043E\u0432\u044B\u0435 \u0433\u043E\u043D\u043A\u0438. ";
var easy_txt = "\u0423\u0434\u0430\u0441\u0442\u0441\u044F \u043B\u0438 \u0442\u0435\u0431\u0435 \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0433\u043E\u043D\u043A\u0443 \u0432 \u0441\u0440\u0435\u0434\u043D\u0435\u043C \u0440\u0435\u0436\u0438\u043C\u0435?";
var normal_txt = "\u0423\u0434\u0430\u0441\u0442\u0441\u044F \u043B\u0438 \u0432\u0430\u043C \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0433\u043E\u043D\u043A\u0443 \u0432 \u0442\u0440\u0443\u0434\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435?";
var hard_txt = "\u0423\u0434\u0430\u0441\u0442\u0441\u044F \u043B\u0438 \u0432\u0430\u043C \u0435\u0449\u0435 \u0440\u0430\u0437 \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0433\u043E\u043D\u043A\u0443 \u043D\u0430 1-\u043E\u043C \u043C\u0435\u0441\u0442\u0435?";
}
if (_root.localization_branding_nr == 13) {
var first_txt = "Selamat! Anda pemenang baru!";
var second_txt = "You\u2019ve finished 2nd!";
var third_txt = "You\u2019ve finished 3rd!";
var ffss_txt_1 = "Keberuntungan yang lebih baik di kesempatan berikut! ";
var ffss_txt_2 = "Coba untuk selesaikan terlebih dahulu untuk membuka piala baru";
var easy_txt = "Anda bisa memenangkan piala ini dalam mode normal? ";
var normal_txt = "Anda bisa memenangkan piala ini dalam mode sukar?";
var hard_txt = "apakah Anda mampu mendapatkan posisi 1 lagi?";
}
var mingci = 1;
var total_mingci = [0, 1, 2, 3, 4, 5, 6];
var total_score = [_root.player_score, _root.enemy_score[1], _root.enemy_score[2], _root.enemy_score[3], _root.enemy_score[4], _root.enemy_score[5], _root.enemy_score[6]];
var total_time = [_root.player_cup_time, _root.enemy_cup_time[1], _root.enemy_cup_time[2], _root.enemy_cup_time[3], _root.enemy_cup_time[4], _root.enemy_cup_time[5], _root.enemy_cup_time[6]];
var i = 0;
while (i < 6) {
var j = 0;
while (j < 6) {
if ((total_score[j + 1] > total_score[j]) || ((total_score[j + 1] == total_score[j]) && (total_time[j + 1] < total_time[j]))) {
temp = total_mingci[j + 1];
total_mingci[j + 1] = total_mingci[j];
total_mingci[j] = temp;
temp = total_score[j + 1];
total_score[j + 1] = total_score[j];
total_score[j] = temp;
}
j++;
}
i++;
}
var i = 0;
while (i < 7) {
if (total_mingci[i] == 0) {
mingci = i + 1;
}
i++;
}
if (mingci > 4) {
_root.gotoAndPlay("game over2");
}
if (mingci == 1) {
_root.ming_1.gotoAndStop(2);
over_info_1.text = first_txt;
} else if (mingci == 2) {
_root.ming_2.gotoAndStop(3);
over_info_1.text = second_txt;
} else if (mingci == 3) {
_root.ming_3.gotoAndStop(4);
over_info_1.text = third_txt;
}
var i = 1;
while (i <= 7) {
if ((total_score[i - 1] == undefined) || (isNaN(total_score[i - 1]))) {
_root["n_" + i]._visible = false;
_root["cup_points_" + i]._visible = false;
} else {
_root["n_" + i]._visible = true;
_root["cup_points_" + i]._visible = true;
}
var pointlange;
if (_root.localization_branding_nr == 1) {
pointlange = " POINTS";
}
if (_root.localization_branding_nr == 2) {
pointlange = " POINTS";
}
if (_root.localization_branding_nr == 3) {
pointlange = " PUNTEN";
}
if (_root.localization_branding_nr == 4) {
pointlange = " POINTS";
}
if (_root.localization_branding_nr == 5) {
pointlange = " PUNKTE";
}
if (_root.localization_branding_nr == 6) {
pointlange = " PUNKT\u00D3W";
}
if (_root.localization_branding_nr == 7) {
pointlange = " PO\u00C4NG";
}
if (_root.localization_branding_nr == 8) {
pointlange = " PUNTI";
}
if (_root.localization_branding_nr == 9) {
pointlange = " PUNTOS";
}
if (_root.localization_branding_nr == 10) {
pointlange = " PONTOS";
}
if (_root.localization_branding_nr == 11) {
pointlange = " PONTOS";
}
if (_root.localization_branding_nr == 12) {
pointlange = " \u041E\u0427\u041A\u041E\u0412";
}
if (_root.localization_branding_nr == 13) {
pointlange = " POIN";
}
_root["cup_points_" + i].text = total_score[i - 1] + pointlange;
i++;
}
_root.player_ming_tiao.gotoAndStop(mingci);
if (mingci == 1) {
if (game_difficulty == "Easy") {
if ((((cup_finish[cup_id - 1] == 0) || (cup_finish[cup_id - 1] == 2)) || (cup_finish[cup_id - 1] == 4)) || (cup_finish[cup_id - 1] == 6)) {
cup_finish[cup_id - 1] = cup_finish[cup_id - 1] + 1;
}
over_info_2.text = easy_txt;
} else if (game_difficulty == "Normal") {
if ((((cup_finish[cup_id - 1] == 0) || (cup_finish[cup_id - 1] == 1)) || (cup_finish[cup_id - 1] == 4)) || (cup_finish[cup_id - 1] == 5)) {
cup_finish[cup_id - 1] = cup_finish[cup_id - 1] + 2;
}
over_info_2.text = normal_txt;
} else if (game_difficulty == "Hard") {
if ((((cup_finish[cup_id - 1] == 0) || (cup_finish[cup_id - 1] == 1)) || (cup_finish[cup_id - 1] == 2)) || (cup_finish[cup_id - 1] == 3)) {
cup_finish[cup_id - 1] = cup_finish[cup_id - 1] + 4;
}
over_info_2.text = hard_txt;
}
var over_info_3fffff1;
var over_info_3fffff2;
if (_root.localization_branding_nr == 1) {
over_info_3fffff1 = "Cup";
over_info_3fffff2 = "is now available. Good luck!";
}
if (_root.localization_branding_nr == 2) {
over_info_3fffff1 = "Cup";
over_info_3fffff2 = "is now available. Good luck!";
}
if (_root.localization_branding_nr == 3) {
over_info_3fffff1 = "Competitie";
over_info_3fffff2 = "is nu beschikbaar. Succes!";
}
if (_root.localization_branding_nr == 4) {
over_info_3fffff1 = "Cup";
over_info_3fffff2 = "is now available. Good luck!";
}
if (_root.localization_branding_nr == 5) {
over_info_3fffff1 = "Cup";
over_info_3fffff2 = "ist jetzt freigeschaltet. Viel Erfolg!";
}
if (_root.localization_branding_nr == 6) {
over_info_3fffff1 = "Zawody";
over_info_3fffff2 = "s\u0105 teraz dost\u0119pne. Powodzenia!";
}
if (_root.localization_branding_nr == 7) {
over_info_3fffff1 = "T\u00E4vling";
over_info_3fffff2 = "\u00E4r nu tillg\u00E4nglig. Lycka till!";
}
if (_root.localization_branding_nr == 8) {
over_info_3fffff1 = "Il trofeo";
over_info_3fffff2 = "\u00E8 ora disponibile. Buona fortuna!";
}
if (_root.localization_branding_nr == 9) {
over_info_3fffff1 = "Copa";
over_info_3fffff2 = "ya est\u00E1 disponible. \u00A1Buena suerte!";
}
if (_root.localization_branding_nr == 10) {
over_info_3fffff1 = "COPA";
over_info_3fffff2 = "dispon\u00EDvel. Boa sorte!";
}
if (_root.localization_branding_nr == 11) {
over_info_3fffff1 = "Cup";
over_info_3fffff2 = "is now available. Good luck!";
}
if (_root.localization_branding_nr == 12) {
over_info_3fffff1 = "\u041A\u0443\u0431\u043E\u043A";
over_info_3fffff2 = "\u0442\u0435\u043F\u0435\u0440\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0416\u0435\u043B\u0430\u0435\u043C \u0443\u0441\u043F\u0435\u0445\u0430!";
}
if (_root.localization_branding_nr == 13) {
over_info_3fffff1 = "Piala";
over_info_3fffff2 = "telah tersedia sekarang. Semoga beruntung!";
}
if ((cup_id == 1) && ((lock_cup[2] == 2) || (lock_cup[2] == 0))) {
lock_cup[2] = lock_cup[2] + 1;
if (lock_cup[2] == 3) {
over_info_3.text = (over_info_3fffff1 + " 3 ") + over_info_3fffff2;
}
} else if ((cup_id == 2) && ((lock_cup[2] == 1) || (lock_cup[2] == 0))) {
lock_cup[2] = lock_cup[2] + 2;
if (lock_cup[2] == 3) {
over_info_3.text = (over_info_3fffff1 + " 3 ") + over_info_3fffff2;
}
} else if ((cup_id == 3) && (lock_cup[3] == 0)) {
lock_cup[3] = 3;
over_info_3.text = (over_info_3fffff1 + " 4 ") + over_info_3fffff2;
} else if ((cup_id == 4) && (lock_cup[4] == 0)) {
lock_cup[4] = 3;
over_info_3.text = (over_info_3fffff1 + " 5 ") + over_info_3fffff2;
} else if ((cup_id == 5) && (lock_cup[5] == 0)) {
lock_cup[5] = 3;
over_info_3.text = (over_info_3fffff1 + " 6 ") + over_info_3fffff2;
} else if ((cup_id == 6) && (lock_cup[6] == 0)) {
lock_cup[6] = 3;
over_info_3.text = (over_info_3fffff1 + " 7 ") + over_info_3fffff2;
}
} else if (cup_id < 7) {
over_info_1.text = ffss_txt_1;
over_info_2.text = ffss_txt_2;
}
if (soundStatus == 1) {
var load_sound = new Sound();
load_sound.attachSound("bg_Menu.mp3");
load_sound.start();
}
if ((cup_id < 8) && (_root.localization_branding_nr == 2)) {
var tsubmit_mc = _root.attachMovie("submit_mc", "submit_mc", _root.getNextHighestDepth());
tsubmit_mc._x = Stage.width / 2;
tsubmit_mc._y = Stage.height / 2;
}
Frame 40
function showScore(clicked) {
checkList(clicked);
var _local1 = 1;
while (_local1 < 11) {
hs_tf["name_" + _local1].text = list_obj[area][difficulty]["NO_" + _local1].player;
hs_tf["score_" + _local1].text = list_obj[area][difficulty]["NO_" + _local1].score;
_local1++;
}
if (list_obj[area][difficulty].new_id != undefined) {
hs_tf.new_score_img._y = (list_obj[area][difficulty].new_id * 18) + 69;
hs_tf.new_score_img._visible = true;
} else {
hs_tf.new_score_img._visible = false;
}
}
function checkList(clicked) {
var _local5 = ["China", "UK", "South Africa", "Indonesia", "Netherlands", "Mexico"];
if (_root.localization_branding_nr == 1) {
var _local7 = ["China", "U.K", "South Africa", "Indonesia", "Netherlands", "Mexico"];
}
if (_root.localization_branding_nr == 2) {
var _local7 = ["\u4E2D\u56FD", "\u82F1\u56FD", "\u5357\u975E", "\u5370\u5C3C", "\u8377\u5170", "\u58A8\u897F\u54E5"];
}
if (_root.localization_branding_nr == 3) {
var _local7 = ["China", "U.K", "Zuid-Afrika", "Indonesi\u00EB", "Nederland", "Mexico"];
}
if (_root.localization_branding_nr == 4) {
var _local7 = ["Chine", "Royaume-Uni", "Afrique du Sud", "Indon\u00E9sie", "Pays-Bas", "Mexique"];
}
if (_root.localization_branding_nr == 5) {
var _local7 = ["China", "U.K", "S\u00FCdafrika", "Indonesien", "Niederlande", "Mexiko"];
}
if (_root.localization_branding_nr == 6) {
var _local7 = ["Chiny", "U.K", "Afryka P\u0142d.", "Indonezja", "Holandia", "Meksyk"];
}
if (_root.localization_branding_nr == 7) {
var _local7 = ["Kina", "Storbritannien", "Sydafrika", "Indonesien", "Nederl\u00E4nderna", "Mexiko"];
}
if (_root.localization_branding_nr == 8) {
var _local7 = ["Cina", "U.K", "Sudafrica", "Indonesia", "Paesi Bassi", "Messico"];
}
if (_root.localization_branding_nr == 9) {
var _local7 = ["China", "Reino Unido", "Sud\u00E1frica", "Indonesia", "Holanda", "M\u00E9jico"];
}
if (_root.localization_branding_nr == 10) {
var _local7 = ["China", "RU", "\u00C1frica do Sul", "Indon\u00E9sia", "Holanda", "M\u00E9xico"];
}
if (_root.localization_branding_nr == 11) {
var _local7 = ["China", "Reino Unido", "\u00C1frica do Sul", "Indon\u00E9sia", "Holanda", "M\u00E9xico"];
}
if (_root.localization_branding_nr == 12) {
var _local7 = ["\u041A\u0438\u0442\u0430\u0439", "\u0412\u0435\u043B\u0438\u043A\u043E\u0431\u0440\u0438\u0442\u0430\u043D\u0438\u044F", "\u042E\u0436. \u0410\u0444\u0440\u0438\u043A\u0430", "\u0418\u043D\u0434\u043E\u043D\u0435\u0437\u0438\u044F", "\u041D\u0438\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u044B", "\u041C\u0435\u043A\u0441\u0438\u043A\u0430"];
}
if (_root.localization_branding_nr == 13) {
var _local7 = ["Cina", "Inggris", "Afrika Selatan", "Indonesia", "Belanda", "Meksiko"];
}
var _local6 = ["Easy", "Normal", "Hard"];
for (var _local10 in _local5) {
var _local4 = _local5[_local10];
if (area == _local4) {
this.area_tf.text = _local7[_local10];
this[_local4].gotoAndStop("selected");
} else {
this[_local4].gotoAndStop("out");
}
}
for (var _local8 in _local6) {
var _local3 = _local6[_local8];
if (difficulty != _local3) {
if (this[_local3]._currentframe > 10) {
this[_local3].gotoAndPlay("unselected");
} else {
this[_local3].gotoAndStop("out");
}
} else if (this[_local3]._currentframe < 15) {
if (clicked) {
this[_local3].gotoAndStop("selected");
} else {
this[_local3].gotoAndStop("unselected");
}
}
}
}
stop();
if (game_status == "game over") {
more_btn._visible = true;
back_btn._x = 300;
} else {
more_btn._visible = false;
back_btn._x = 250;
}
var area = "China";
var difficulty = "Easy";
_root.initHighScore();
var list_obj = _root.loadData(0);
_root.showScore();
Frame 50
stop();
stopAllSounds();
if (soundStatus == 1) {
var over_snd = new Sound();
over_snd.attachSound("sound_over.mp3");
over_snd.start();
}
if (qualityStatus == 1) {
_quality = "LOW";
} else if (_root.qualityStatus == 2) {
_quality = "MEDIUM";
} else {
_quality = "HIGH";
}
if ((cup_id < 8) && (_root.localization_branding_nr == 2)) {
var tsubmit_mc = _root.attachMovie("submit_mc", "submit_mc", _root.getNextHighestDepth());
tsubmit_mc._x = Stage.width / 2;
tsubmit_mc._y = Stage.height / 2;
}
trace("ffffffffffffffff" + _root.playerchinesesorce);
Frame 61
gotoAndPlay (61);
Instance of Symbol 3012 MovieClip in Frame 61
on (press) {
if (_root.soundStatus == 2) {
_root.soundStatus = 1;
_root.soundPlaying = true;
_root.bg_sound.start();
this.gotoAndStop(1);
} else if (_root.soundStatus == 1) {
_root.soundStatus = 2;
_root.soundPlaying = false;
_root.bg_sound.stop(("bg_sound_" + _root.rrmd) + ".mp3");
this.gotoAndStop(2);
}
}
Instance of Symbol 3027 MovieClip "Pitstop" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3044 MovieClip "cue_wrongway" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3080 MovieClip "cue_lap" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3084 MovieClip "cue_start" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3096 MovieClip "cue_finish" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3111 MovieClip "cue_outroad" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3194 MovieClip "cue_country" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3247 MovieClip "cue_space_turbo" in Frame 61
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 3262 MovieClip "cue_get4th" in Frame 61
onClipEvent (load) {
_visible = false;
}
Frame 62
function addScore(num, player, area, difficulty) {
var _local9 = ["China", "UK", "South Africa", "Indonesia", "Netherlands", "Mexico"];
area = _local9[area - 1];
trace([num, player, area, difficulty]);
if (_root._currentframe == 45) {
showScore();
} else {
var _local7 = _root.loadData(0);
}
if (!player) {
player = "player";
}
var _local3 = _local7[area][difficulty];
var _local6 = toSecond(num);
if (_local6 < toSecond(_local3.NO_10.score)) {
var _local2 = 9;
while (_local2 > 0) {
if (_local6 < toSecond(_local3["NO_" + _local2].score)) {
_local3["NO_" + (_local2 + 1)].score = _local3["NO_" + _local2].score;
_local3["NO_" + (_local2 + 1)].player = _local3["NO_" + _local2].player;
if (_local2 == 1) {
_local3["NO_" + _local2].score = num;
_local3["NO_" + _local2].player = player;
}
} else {
_local3["NO_" + (_local2 + 1)].score = num;
_local3["NO_" + (_local2 + 1)].player = player;
break;
}
_local2--;
}
_local3.new_id = _local2;
_local7[area][difficulty] = _local3;
_root.saveData(0, _local7);
}
if (_root._currentframe == 45) {
showScore();
}
}
function toSecond(str) {
var _local1 = str.split(":");
var _local2 = Number(((_local1[0] * 3600) + (_local1[1] * 60)) + _local1[2]);
return(_local2);
}
function initedit() {
tree_array = new Array();
tire_array = new Array();
person_array = new Array();
spanner_array = new Array();
tire2_array = new Array();
check_array = new Array();
obb_array = new Array();
point_array = new Array();
path_array = new Array();
main_array = new Array();
}
function deCode(str) {
var _local1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
for (var _local3 in _local1) {
if (_local1[_local3] == str) {
return(Number(_local3));
}
}
}
function setData() {
if (cup_id == 1) {
map_array = [1, 2];
} else if (cup_id == 2) {
map_array = [2, 3, 1];
} else if (cup_id == 3) {
map_array = [3, 4, 2];
} else if (cup_id == 4) {
map_array = [4, 1, 2];
} else if (cup_id == 5) {
map_array = [3, 5, 4];
} else if (cup_id == 6) {
map_array = [5, 6, 4];
} else if (cup_id == 7) {
map_array = [3, 4, 5, 6];
} else if (cup_id == 8) {
if ((map_array[0] == undefined) || (cur_circle > 15)) {
map_array = new Array();
var _local3 = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25];
var _local2 = 0;
while (_local2 < 15) {
map_id = Math.floor(Math.random() * _local3.length);
map_array.push(_local3[map_id]);
_local3.splice(map_id, 1);
_local2++;
}
trace(map_array);
}
}
PROP_WRENCH_NUM = 6;
map_id = map_array[cur_circle - 1];
_root.use_map_id = map_id;
if (map_id == 1) {
FRAISE_NUM = [20, 0, 0, 0, 0, 0, 3, 3, 10];
} else if (map_id == 2) {
FRAISE_NUM = [0, 20, 0, 0, 0, 0, 3, 3, 10];
} else if (map_id == 3) {
FRAISE_NUM = [0, 0, 20, 0, 0, 0, 3, 3, 10];
} else if (map_id == 4) {
FRAISE_NUM = [0, 0, 0, 20, 0, 0, 3, 3, 10];
} else if (map_id == 5) {
FRAISE_NUM = [0, 0, 0, 0, 20, 0, 3, 3, 10];
} else if (map_id == 6) {
FRAISE_NUM = [0, 0, 0, 0, 0, 20, 3, 3, 10];
} else {
if (map_id == 11) {
map_code = "#ho-pin_tung_racer-le#--11--6--3--02aa-03ca-04da-05kc-15l9-14ca-13da-12l6-22m9-21da-20m3-10c5-00l6-01da--9034094-9035082-9034065-1147091-1162091-1177091-1193091-1207091-1224091-1240093-1289033-1287020-1276013-1260011-4110027-4106023-4099025-4092021-4085027-4079024-4069031-4065023-4058026-9109101-9106105-9095108-7046113-7053114-7256062-7253040";
getData(map_code);
return(undefined);
}
if (map_id == 12) {
map_code = "#ho-pin_tung_racer-le#--21--6--3--22a5-32d5-42k3-43k9-33c5-23d5-13k6-14da-15k9-05kc-04ca-03da-02da-01ca-00k6-10k3-11da-12kc--9256060-9249060-9236060-9220060-9206061-9192062-9178063-9127066-9122064-9107062-9092058-9074059-9061064-1186095-1196085-1185093-1112097-1108091-1098089-7150210-7263049-7038059-4127128-4122126-4126112-4123110-4128095-4123096-4125085-4121084";
getData(map_code);
return(undefined);
}
if (map_id == 13) {
map_code = "#ho-pin_tung_racer-le#--31--6--3--02aa-03da-04lc-14l9-13ca-12m6-22l3-23kc-33k9-32ca-31m3-21d5-11d5-01k6--1146094-1144106-1144111-1146114-1246012-1245029-1244043-1243053-1250069-4119024-4124028-4109023-4101025-4093025-4085025-4102025-4111025-7156140-7153165-9106099-9110103-9107108-9104112-1198062-1181058-1161058-1141058-7086147-7108165-1091154";
getData(map_code);
return(undefined);
}
if (map_id == 14) {
map_code = "#ho-pin_tung_racer-le#--41--6--3--33aa-34kc-44k9-43da-42ca-41l3-31c5-21d5-11c5-01l6-02lc-12c5-22d5-32m3--4158176-4151176-4140183-4144177-4133193-4129193-4122194-1213163-1187164-1160160-1137140-1133106-1134068-1050052-1051069-1051097-1052158-1050190-1045220-7089206-7088042-9104043-9107046-9112047-9109159-9106163-9103172-9197196-9205197-9201202";
getData(map_code);
return(undefined);
}
if (map_id == 15) {
map_code = "#ho-pin_tung_racer-le#--51--6--3--32aa-33da-34ca-35k9-25d5-15kc-14k6-24k9-23da-22da-21k3-11kc-10k6-20d5-30k3-31ca--4048173-4056174-4065175-4070175-4076175-4083175-4090171-7038096-7063091-7239089-7263092-1089099-1100102-1111107-1129108-1147108-1168109-1184109-1194106-1210104-9253149-9243153-9248154-9039144-9045144-9041146-9143157-9149151-9150158-1154107";
getData(map_code);
return(undefined);
}
if (map_id == 16) {
map_code = "#ho-pin_tung_racer-le#--61--6--3--32aa-33m9-23mc-22m3-12mc-11m6-21m9-20m6-30k3-31ca--4092174-4097174-4086172-4080177-4071172-4073174-4063177-4060172-1092093-1101093-1097099-1140098-1146100-1149102-1035113-1042108-1050105-1186133-1187138-1192146-9148144-9150147-9154149-9115186-9123186-9119189-1011176-1014176-1018179";
getData(map_code);
return(undefined);
}
if (map_id == 17) {
map_code = "#ho-pin_tung_racer-le#--11--6--3--12aa-13da-14l9-04lc-03ca-02ca-01ca-00l6-10l3-11ca--1126006-1116005-1178049-1166048-1153049-1121051-1107051-1090052-1194011-1173013-1158010-1094006-1076010-1059009-9134099-9144094-9134090-9045060-9050057-9043055-9044043-9035044-9041039-9205062-9210059-4102076-4093076-4083077-4072074-4062073";
getData(map_code);
return(undefined);
}
if (map_id == 18) {
map_code = "#ho-pin_tung_racer-le#--21--6--3--20a5-10l6-11m9-01m6-02lc-12l3-13kc-23k9-22da-21l6-31c5-41l9-40k3-30c5--1091150-1102142-1094141-9100051-9104043-9097044-9053097-9043096-9048092-1055053-1046053-1050048-1143058-1149054-1138054-1154106-1146105-1155098-7056206-7041207-9060182-9052190-9045185-4027209-4024198-4024198-4022190-4025180-4026168-4024159";
getData(map_code);
return(undefined);
}
if (map_id == 19) {
map_code = "#ho-pin_tung_racer-le#--31--6--3--12aa-13mc-23d5-33m9-32da-31m3-21d5-11m6--9192106-9196098-9188103-4069067-4074070-4079079-4079079-4081084-4091077-4091077-4096075-7083067-7192147-7061163-9121093-9128088-9117088-9127160-9134159-9124158-1101157-1105151-1091154-1163149-1156149-1161144-1147096-1150092-1145088";
getData(map_code);
return(undefined);
}
if (map_id == 20) {
map_code = "#ho-pin_tung_racer-le#--41--6--3--22aa-23da-24k9-14k6-15k9-05kc-04da-03k6-13k9-12m3-02mc-01k6-11k9-10k6-20k3-21ca--9091111-9096110-9087110-9082086-9082079-9075087-9161097-9147098-9151090-1201053-1189051-1197045-7252063-7254054-7255043-7201102-7046108-4067127-4074125-4088125-4080127-4096126-4091124-4101123-1053054-1055045-1048052-1150052-1156048-1146047";
getData(map_code);
return(undefined);
}
if (map_id == 21) {
map_code = "#ho-pin_tung_racer-le#--51--6--3--32a5-42k3-43k9-33c5-23k6-24k9-14kc-13k3-03kc-02k6-12k9-11k6-21k3-22kc--9186223-9183218-9179228-7163039-7140044-7150142-9169116-9175111-9169112-9130121-9135117-9129117-1194103-1190100-1179100-1168099-1158099-1146099-1136099-1125101-1111101-1103103-4125141-4125150-4126159-4126166-4123134-4120132";
getData(map_code);
return(undefined);
}
if (map_id == 22) {
map_code = "#ho-pin_tung_racer-le#--61--6--3--24a5-34m9-33k6-43l9-42l3-32kc-31m3-21d5-11m6-12da-13da-14mc--7211155-7214152-7081099-7095090-9159206-9151206-9140206-9107159-9107154-9099153-1209189-1202191-1191190-1111200-1109191-1099189-1094063-1086065-4224102-4224108-4224110-4225113-4225117-1186057-1194053-1194061-9142062-9150060-9149065-1088049";
getData(map_code);
return(undefined);
}
if (map_id == 23) {
map_code = "#ho-pin_tung_racer-le#--11--6--3--01aa-02kc-12k9-11k6-21d5-31l3-32kc-42k9-41ca-40m3-30d5-20d5-10d5-00k6--1009111-1008118-1009131-1092107-1092117-1092128-1031014-1020018-1015027-1123241-1137235-1139217-1139040-1138048-1138055-4071027-4061027-4050026-4067028-4054024-4041029-9043040-9039043-9042044-9044204-9051208-9053211-9090158-9096164-9099151";
getData(map_code);
return(undefined);
}
if (map_id == 24) {
map_code = "#ho-pin_tung_racer-le#--21--6--3--03aa-04lc-14l9-13l6-23l9-22l3-12lc-11l3-01l6-02da--4106023-1054064-1054055-1055046-1192094-1185094-1196089-1111100-1112094-1104091-7101065-7093062-9093048-9087046-9097046-9154111-9147111-9156105-9149105-9140105-1205061-1212057-1212052-1213047-1213042-4115027-4120030-4131027-4139028-4145028";
getData(map_code);
return(undefined);
}
if (map_id == 25) {
map_code = "#ho-pin_tung_racer-le#--31--6--3--01aa-02mc-12d5-22m9-21da-20l3-10d5-00k6--1085141-1077141-1067142-9102092-9107103-9110095-9044051-9037050-9047049-9107047-9101044-9094042-1051110-1037106-1048105-1038101-1137094-1137084-1138075-1138063-1012034-1013024-1022019-1028014-4026042-4035027-4027031-4031030-4039027-4044027";
getData(map_code);
return(undefined);
}
}
if (map_id < 7) {
delete map_code;
TOTAL_LAP = 3;
ENEMY_NUM = map_data[map_id][0];
POINT_NUM = map_data[map_id][1];
TREE_NUM = map_data[map_id][2];
CHECK_NUM = map_data[map_id][3];
map_rot = map_data[map_id][4];
map_wp = map_data[map_id][5];
} else if (map_id == 7) {
}
}
function getData(code) {
if (code == undefined) {
code = level_code;
}
var _local9 = code.split("--");
map_id = Number(_local9[1].charAt(0));
if (isNaN(map_id)) {
map_id = 1;
} else if (map_id <= 0) {
map_id = 1;
} else if (map_id > 6) {
map_id = 6;
}
ENEMY_NUM = Number(_local9[2].charAt(0));
if (isNaN(ENEMY_NUM)) {
ENEMY_NUM = 0;
} else if (ENEMY_NUM < 0) {
ENEMY_NUM = 0;
} else if (ENEMY_NUM > 6) {
ENEMY_NUM = 6;
}
TOTAL_LAP = Number(_local9[3].charAt(0));
if (isNaN(TOTAL_LAP)) {
TOTAL_LAP = 1;
} else if (TOTAL_LAP <= 0) {
TOTAL_LAP = 1;
} else if (TOTAL_LAP > 3) {
TOTAL_LAP = 3;
}
if (!game_difficulty) {
game_difficulty = "Normal";
} else {
switch (game_difficulty) {
case 1 :
game_difficulty = "Easy";
break;
case 2 :
game_difficulty = "Normal";
break;
case 3 :
game_difficulty = "Hard";
}
}
trace(game_difficulty);
var _local4 = _local9[5].split("-");
if (_local4 != undefined) {
for (var _local10 in _local4) {
trace("fffffffffffffffffffff");
var _local2 = Number(_local4[_local10].charAt(0));
var _local3 = parseInt(_local4[_local10].slice(1, 4), 10) * 10;
var _local1 = parseInt(_local4[_local10].slice(4), 10) * 10;
if (_local2 == 1) {
tree_array.unshift([_local3, _local1]);
trace("111111111111111111");
trace(tree_array);
} else if (_local2 == 7) {
tire_array.unshift([_local3, _local1]);
trace("222222222222222222222");
trace(tire_array);
} else if (_local2 == 9) {
person_array.unshift([_local3, _local1]);
trace("33333333333333333333333");
trace(person_array);
} else if (_local2 == 4) {
spanner_array.unshift([_local3, _local1]);
trace("44444444444444444444444");
trace(spanner_array);
} else if (_local2 == 5) {
tire2_array.unshift([_local3, _local1]);
trace("5555555555555555555555");
trace(tire2_array);
}
}
if (tree_array) {
TREE_NUM = tree_array.length;
FRAISE_NUM[map_id - 1] = TREE_NUM;
} else {
TREE_NUM = 0;
}
if (person_array != undefined) {
var _local12 = Math.floor(Math.random() * person_array.length);
FRAISE_NUM[6] = _local12;
FRAISE_NUM[7] = FRAISE_NUM[6] - _local12;
TREE_NUM = TREE_NUM + person_array.length;
}
if (tire_array != undefined) {
FRAISE_NUM[8] = tire_array.length;
TREE_NUM = TREE_NUM + tire_array.length;
}
PROP_TIRE_NUM = 0;
if (tire2_array != undefined) {
PROP_TIRE_NUM = tire2_array.length;
}
PROP_WRENCH_NUM = 0;
if (spanner_array != undefined) {
PROP_WRENCH_NUM = spanner_array.length;
}
} else {
TREE_NUM = 0;
}
trace(TREE_NUM);
trace(FRAISE_NUM);
trace(PROP_TIRE_NUM);
trace(PROP_WRENCH_NUM);
trace("dddddddddddddddddddddddd");
main_array = _local9[4].split("-");
for (var _local11 in main_array) {
var _local7 = main_array[_local11].charAt(0);
var _local8 = main_array[_local11].charAt(1);
var _local5 = deCode(main_array[_local11].charAt(2));
var _local6 = deCode(main_array[_local11].charAt(3));
main_array[_local11] = [_local7, _local8, _local5, _local6];
}
}
function createBigMap(parent, map_array, map_name, depth, source_name) {
parent.createEmptyMovieClip(map_name, depth);
parent[map_name].createEmptyMovieClip("map", parent.getNextHighestDepth());
var _local10 = 4;
var _local8 = 1;
var _local11 = 3;
var _local9 = 1;
if (!source_name) {
trace("tttttttttttttttttttt");
trace("tttttttttttttttttttt");
for (var _local13 in map_array) {
var _local1 = map_array[_local13][0];
if (_local1 > _local9) {
_local9 = _local1;
}
if (_local1 < _local11) {
_local11 = _local1;
}
var _local2 = map_array[_local13][1];
if (_local2 > _local8) {
_local8 = _local2;
}
if (_local2 < _local10) {
_local10 = _local2;
}
var _local3 = myRotation(map_array[_local13][3]);
var _local7 = map_array[_local13][2];
xx = map_width * _local2;
yy = map_width * _local1;
if (_local3 == 90) {
xx = xx + map_width;
} else if (_local3 == 180) {
xx = xx + map_width;
yy = yy + map_width;
} else if (_local3 == -90) {
yy = yy + map_width;
}
parent[map_name].map.attachMovie((("em_0" + map_id) + "_") + _local7, (("big_map_" + _local1) + "_") + _local2, ((depth + (_local1 * 6)) + _local2) + 1);
parent[map_name].map[(("big_map_" + _local1) + "_") + _local2]._x = xx;
parent[map_name].map[(("big_map_" + _local1) + "_") + _local2]._y = yy;
trace(_local1);
trace(_local2);
trace("-------------");
parent[map_name].map[(("big_map_" + _local1) + "_") + _local2]._rotation = _local3;
}
} else {
trace("ttttttttttttttttttt");
parent[map_name].map.attachMovie("big_map_" + map_id, "big_map_" + map_id, depth, {_x:xx, _y:yy});
}
}
function createNewMap(map_array) {
var _local22 = map_array.length;
if (!level.map) {
level.createEmptyMovieClip("map", level.getNextHighestDepth());
}
var _local13;
var _local12;
var _local16 = 4;
var _local15 = 1;
var _local14 = 3;
var _local17 = 1;
var _local8 = true;
var _local7;
point_array = new Array();
check_array = new Array();
obb_array = new Array();
if (map_array[0][2] == 9) {
if (myRotation(map_array[0][3]) == 90) {
_local7 = "down";
} else {
_local7 = "right";
}
_local8 = false;
} else if (map_array[0][2] == 10) {
trace([10, myRotation(map_array[0][3])]);
if (myRotation(map_array[0][3]) == 90) {
_local7 = "up";
} else {
_local7 = "left";
}
}
for (var _local21 in map_array) {
var _local1 = map_array[_local21][0];
var _local2 = map_array[_local21][1];
if (_local1 > _local17) {
_local17 = _local1;
}
if (_local1 < _local14) {
_local14 = _local1;
}
if (_local2 > _local15) {
_local15 = _local2;
}
if (_local2 < _local16) {
_local16 = _local2;
}
var _local4 = myRotation(map_array[_local21][3]);
var _local10 = map_array[_local21][2];
_local13 = map_width * _local2;
_local12 = map_width * _local1;
if (_local4 == 90) {
_local13 = _local13 + map_width;
} else if (_local4 == 180) {
_local13 = _local13 + map_width;
_local12 = _local12 + map_width;
} else if (_local4 == -90) {
_local12 = _local12 + map_width;
}
level.map.attachMovie("cn_path_" + _local10, (("path_" + _local1) + "_") + _local2, level.map.getNextHighestDepth(), {_x:_local13, _y:_local12});
path_array.unshift(level.map[(("path_" + _local1) + "_") + _local2].path);
if (_local10 >= 20) {
if (_local7 == "left") {
if (_local4 == 0) {
_local7 = "up";
_local8 = false;
} else if (_local4 == 90) {
_local7 = "down";
_local8 = true;
}
} else if (_local7 == "right") {
if (_local4 == -90) {
_local7 = "up";
_local8 = true;
} else if ((_local4 == 180) || (_local4 == -180)) {
_local7 = "down";
_local8 = false;
}
} else if (_local7 == "up") {
if (_local4 == 90) {
_local7 = "right";
_local8 = false;
} else if (_local4 == 180) {
_local7 = "left";
_local8 = true;
}
} else if (_local7 == "down") {
if (_local4 == 0) {
_local7 = "right";
_local8 = true;
} else if (_local4 == -90) {
_local7 = "left";
_local8 = false;
}
}
}
var _local6 = 0;
while (_local6 < 52) {
if (level.map[(("path_" + _local1) + "_") + _local2]["obb_" + _local6]) {
obb_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["obb_" + _local6]);
trace(level.map[(("path_" + _local1) + "_") + _local2]["obb_" + _local6]);
}
_local6++;
}
if (_local8) {
var _local5 = 6;
while (_local5-- , _local5 > -1) {
if ((_local21 == 0) && (_local5 == 0)) {
if (level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]) {
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]);
}
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2].startline2);
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2].startline1);
} else if (level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]) {
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]);
}
if (level.map[(("path_" + _local1) + "_") + _local2]["point_" + _local5]) {
point_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["point_" + _local5]);
}
}
} else {
var _local5 = -1;
while ((_local5++) < 5) {
if ((_local21 == 0) && (_local5 == 0)) {
if (level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]) {
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]);
}
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2].startline2);
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2].startline1);
} else if (level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]) {
check_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["chk_" + _local5]);
}
if (level.map[(("path_" + _local1) + "_") + _local2]["point_" + _local5]) {
point_array.unshift(level.map[(("path_" + _local1) + "_") + _local2]["point_" + _local5]);
}
}
}
if (_local10 == 10) {
level.map.attachMovie("player_mini", "player", level.map.getNextHighestDepth());
level.map.player._rotation = _local4;
if (_local4 == 0) {
map_rot = -90;
level.map.player._x = level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2].p._x;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2].p._y;
if (ENEMY_NUM < 6) {
level.map.player._x = level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._x;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._y;
}
} else if (_local4 == 90) {
map_rot = 180;
level.map.player._x = (level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2].p._y) - map_width;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2].p._x;
if (ENEMY_NUM < 6) {
level.map.player._x = (level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._y) - map_width;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._x;
}
}
var _local3 = 1;
while (_local3 <= ENEMY_NUM) {
level.map.attachMovie("enemy_mini", "enemy_" + _local3, level.map.getNextHighestDepth());
level.map["enemy_" + _local3]._rotation = level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._rotation;
if (_local4 == 0) {
level.map["enemy_" + _local3]._x = level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._x;
level.map["enemy_" + _local3]._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._y;
} else if (_local4 == 90) {
level.map["enemy_" + _local3]._x = (level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._y) - map_width;
level.map["enemy_" + _local3]._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._x;
}
_local3++;
}
} else if (_local10 == 9) {
level.map.attachMovie("player_mini", "player", level.map.getNextHighestDepth());
if (_local4 == 0) {
map_rot = 90;
level.map.player._x = level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2].p._x;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2].p._y;
if (ENEMY_NUM < 6) {
level.map.player._x = level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._x;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._y;
}
} else if (_local4 == 90) {
map_rot = 0;
level.map.player._x = (level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2].p._y) - map_width;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2].p._x;
if (ENEMY_NUM < 6) {
level.map.player._x = (level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._y) - map_width;
level.map.player._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + (ENEMY_NUM + 1)]._x;
}
}
var _local3 = 1;
while (_local3 <= ENEMY_NUM) {
level.map.attachMovie("enemy_mini", "enemy_" + _local3, level.map.getNextHighestDepth());
level.map["enemy_" + _local3]._rotation = level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._rotation;
if (_local4 == 0) {
level.map["enemy_" + _local3]._x = level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._x;
level.map["enemy_" + _local3]._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._y;
} else if (_local4 == 90) {
level.map["enemy_" + _local3]._x = (level.map[(("path_" + _local1) + "_") + _local2]._x + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._y) - map_width;
level.map["enemy_" + _local3]._y = level.map[(("path_" + _local1) + "_") + _local2]._y + level.map[(("path_" + _local1) + "_") + _local2]["e_" + _local3]._x;
}
_local3++;
}
}
level.map[(("path_" + _local1) + "_") + _local2]._rotation = _local4;
}
_local15++;
_local17++;
level._x = 550 - (_local15 * 30);
level._y = 60 - (_local14 * 30);
level.map.createEmptyMovieClip("border", level.map.getNextHighestDepth());
level.map.border.attachMovie("border_mc", "bd_left", 1, {_x:(500 * _local16) - 50, _y:500 * _local14});
level.map.border.bd_left._height = 500 * (_local17 - _local14);
level.map.border.attachMovie("border_mc", "bd_right", 2, {_x:500 * _local15, _y:500 * _local14});
level.map.border.bd_right._height = 500 * (_local17 - _local14);
level.map.border.attachMovie("border_mc", "bd_up", 3, {_x:(500 * _local16) - 50, _y:-50 + (500 * _local14)});
level.map.border.bd_up._width = (500 * (_local15 - _local16)) + 100;
level.map.border.attachMovie("border_mc", "bd_down", 4, {_x:(500 * _local16) - 50, _y:500 * _local17});
level.map.border.bd_down._width = (500 * (_local15 - _local16)) + 100;
level.map.border._visible = false;
var _local9 = 0;
if (tree_array) {
for (var _local20 in tree_array) {
level.map.attachMovie("obj_img", "tree_" + _local9, level.map.getNextHighestDepth(), {_x:tree_array[_local20][0], _y:tree_array[_local20][1]});
_local9++;
}
delete tree_array;
}
if (person_array) {
for (var _local20 in person_array) {
level.map.attachMovie("obj_img", "tree_" + _local9, level.map.getNextHighestDepth(), {_x:person_array[_local20][0], _y:person_array[_local20][1]});
_local9++;
}
delete person_array;
}
if (tire_array) {
for (var _local20 in tire_array) {
level.map.attachMovie("obj_img", "tree_" + _local9, level.map.getNextHighestDepth(), {_x:tire_array[_local20][0], _y:tire_array[_local20][1]});
_local9++;
}
delete tire_array;
}
if (spanner_array) {
for (var _local20 in spanner_array) {
level.map.attachMovie("obj_img", "prop_wrench_" + _local20, level.map.getNextHighestDepth(), {_x:spanner_array[_local20][0], _y:spanner_array[_local20][1]});
}
delete spanner_array;
}
if (tire2_array) {
for (var _local20 in tire2_array) {
level.map.attachMovie("obj_img", "prop_tire_" + _local20, level.map.getNextHighestDepth(), {_x:tire2_array[_local20][0], _y:tire2_array[_local20][1]});
}
delete tire2_array;
}
CHECK_NUM = check_array.length - 2;
POINT_NUM = point_array.length;
level._xscale = 6;
level._yscale = 6;
}
function myRotation(num) {
if ((num == 3) || (num == 10)) {
return(0);
}
if ((num == 6) || (num == 5)) {
return(90);
}
if (num == 12) {
return(180);
}
if (num == 9) {
return(-90);
}
}
function toMapPosition(target, coordinate) {
if (coordinate == "x") {
if (target._parent._rotation == 0) {
tmp = target._x + target._parent._x;
} else if (target._parent._rotation == 90) {
tmp = (-target._y) + target._parent._x;
} else if (target._parent._rotation == 180) {
tmp = (-target._x) + target._parent._x;
} else if (target._parent._rotation == -90) {
tmp = target._y + target._parent._x;
}
} else if (target._parent._rotation == 0) {
tmp = target._y + target._parent._y;
} else if (target._parent._rotation == 90) {
tmp = target._x + target._parent._y;
} else if (target._parent._rotation == 180) {
tmp = (-target._y) + target._parent._y;
} else if (target._parent._rotation == -90) {
tmp = (-target._x) + target._parent._y;
}
return(tmp);
}
function init() {
stateInit();
initedit();
if (level_code == undefined) {
setData();
} else {
trace(level_code);
getData();
}
initMap();
initPlayer();
setDifficulty();
initAI();
initTree();
initSound();
var _local4 = _root.attachMovie("fps", "fps", _root.getNextHighestDepth());
_local4._visible = false;
_local4._x = 6;
_local4._y = 6;
var _local5 = level.map.createEmptyMovieClip("Eddmc", scena.getNextHighestDepth());
ed = new ED(_local5);
i = 0;
while (i < 31) {
if (level.map["obb_" + i]) {
var _local2 = level.map["obb_" + i]._rotation;
level.map["obb_" + i]._rotation = 0;
ed.AddRectangle(level.map["obb_" + i]._x, level.map["obb_" + i]._y, level.map["obb_" + i]._width, level.map["obb_" + i]._height, _local2);
level.map["obb_" + i].swapDepths(23456);
level.map["obb_" + i].removeMovieClip();
}
i++;
}
ed.ReTidyFace();
trace((ENEMY_NUM + "ssssssssss") + player_this_score);
var _local3 = 8 - player_this_score;
if (_local3 < 7) {
var _local7 = level.map.player._x;
var _local6 = level.map.player._y;
level.map.player._x = level.map["enemy_" + _local3]._x;
level.map.player._y = level.map["enemy_" + _local3]._y;
level.map["enemy_" + _local3]._x = _local7;
level.map["enemy_" + _local3]._y = _local6;
}
}
function stateInit() {
map_wp = 0;
TOTAL_LAP = 0;
map_rot = 0;
ENEMY_NUM = 0;
POINT_NUM = 0;
CHECK_NUM = 0;
PROP_WRENCH_NUM = 0;
PROP_TIRE_NUM = 0;
prop_relive = 0;
TREE_NUM = 0;
FRAISE_NUM = [0, 0, 0, 0, 0, 0, 0, 0, 0];
key = false;
time = "00:00:00";
total_time = "00:00:00";
timing = false;
soundPlaying = false;
}
function initMap() {
LastAlldistance = null;
Alldistance = null;
LastAlldistancenext = null;
Alldistancenext = null;
_root.createEmptyMovieClip("scena", 1);
scena._x = (scena._y = 0);
if (level.map) {
level.map.removeMovieClip();
}
if (level_code || (map_code)) {
createNewMap(main_array);
} else {
level.attachMovie("map_" + map_id, "map", level.getNextHighestDepth());
level.map.gotoAndStop(2);
point_array = new Array();
i = 0;
while (i < POINT_NUM) {
point_array.push(level.map["point_" + i]);
i++;
}
check_array = new Array();
i = 0;
while (i < CHECK_NUM) {
check_array.push(level.map["check_" + i]);
i++;
}
check_array.unshift(level.map.startline2);
check_array.unshift(level.map.startline);
}
i = 1;
while (i <= STRIPES) {
if (level_code || (map_code)) {
createBigMap(scena, main_array, "t_0" + i, i);
} else {
scena.createEmptyMovieClip("t_0" + i, i);
scena["t_0" + i].attachMovie("map_bg_" + map_id, "map", 1);
}
slice = scena["t_0" + i];
slice._x = SW / 2;
slice._y = SH - 5;
var _local3 = i / STRIPES;
slice._yscale = (slice._xscale = (i * MAGNIFY) * _local3);
var _local2 = attachMovie("mask", "mask_" + i, scena.getNextHighestDepth());
_local2._height = (((i * _local3) * SH) / 2) / STRIPES;
_local2._x = -20;
_local2._y = (SH / 2) + ((((i * _local3) * SH) / 2) / STRIPES);
slice.setMask(_local2);
i++;
}
_root.bg_0.gotoAndStop(map_id);
_root.level.swapDepths(110000);
_root.cue_wrongway._visible = false;
_root.cue_country.gotoAndStop(7);
_root.Pitstop._visible = false;
_root.bg_incar.rocket_light.gotoAndStop(1);
_root.bg_incar.rock_txt.text = 3;
_root.player_marker.swapDepths(110100);
_root.enemy_marker_1.swapDepths(110200);
_root.enemy_marker_2.swapDepths(110300);
_root.enemy_marker_3.swapDepths(110400);
_root.enemy_marker_4.swapDepths(110500);
_root.enemy_marker_5.swapDepths(110600);
_root.enemy_marker_6.swapDepths(110700);
_root.bg_incar.swapDepths(120000);
_root.cue_start.swapDepths(130100);
_root.cue_outroad.swapDepths(130200);
_root.cue_wrongway.swapDepths(130300);
_root.cue_finish.swapDepths(130400);
_root.cue_illegal.swapDepths(130500);
_root.bad_tire.swapDepths(130550);
_root.traffic.swapDepths(130600);
_root.cue_lap.swapDepths(130601);
_root.cue_country.swapDepths(130701);
_root.cue_get4th.swapDepths(130801);
_root.cue_space_turbo.swapDepths(130901);
if ((map_id == 2) && (!_root.weather)) {
_root.attachMovie("weather_rainy", "weather", topLayer + 4000);
weather._x = (weather._y = 0);
} else if ((map_id != 2) && (_root.weather)) {
_root.weather.removeMovieClip();
}
attachMovie("fullMask", "fullMask", 140000);
fullMask._width = SW;
fullMask._height = SH;
fullMask._x = SW / 2;
fullMask._y = SH / 2;
_root.setMask(fullMask);
}
function initPlayer() {
damage = false;
hp = 100;
tire = 100;
pedal = false;
steer = 0;
player_speed = 0;
MAX_SPEED = 60;
accel = 0.01;
inertia = 0.97;
damp = 0.96;
brake = 0.9;
compellent_brake = false;
rock = 3;
space_time = 0;
rocketing = false;
can_finish = true;
car_shake = 0;
onborder = false;
check_points = new Array();
var _local2 = 0;
while (_local2 <= CHECK_NUM) {
check_points[_local2] = 0;
_local2++;
}
player_next_check = 2;
hit_next_check = -1;
player_next = 0;
player_next_wp = 0;
hit_point = -1;
finish_lap = false;
elapsed_time = 0;
finish_laps = 0;
player_total_point = 0;
current_lap = 1;
finish_level = false;
mingci = ENEMY_NUM + 1;
_root.bg_incar.mingci.gotoAndPlay(mingci);
firstTime = (startTime = 0);
best_lap = 0;
best_lap_text = "--:--:--";
colorChange = 0;
player_total_time = 0;
if (((((_root.use_map_id == _root.map_array[0]) || (_root.map_id == _root.map_array[0])) || (_root.edit == "test")) || (_root.edit == "run")) || (_root.edit == "cup")) {
_root.player_cup_time = 0;
_root.player_score = 0;
player_this_score = 1;
}
scena.attachMovie("player", "player", scena.getNextHighestDepth());
scena.player._x = (SW / 2) - 20;
scena.player._y = SH - 40;
scena.player.car.gotoAndPlay(11);
scena.attachMovie("smoke", "smoke", scena.getNextHighestDepth());
scena.smoke._x = scena.player._x;
scena.smoke._y = scena.player._y + 40;
scena.smoke._xscale = (scena.smoke._yscale = 200);
}
function setDifficulty() {
acc = 0;
max = 0;
HARM = 0;
if (_root.game_difficulty == "Easy") {
trace("Easy");
acc = 0.01;
max = 8;
HARM = 10;
} else if (_root.game_difficulty == "Normal") {
trace("Normal");
acc = 0.015;
max = 9;
HARM = 20;
} else if (_root.game_difficulty == "Hard") {
trace("Hard");
acc = 0.015;
max = 10;
HARM = 30;
}
if (use_map_id < 10) {
if (map_id == 1) {
acc = acc * 0.9;
max = max * 0.75;
} else if (map_id == 2) {
acc = acc + (acc / 8);
max = max + (max / 8);
accel = accel + (accel / 8);
MAX_SPEED = MAX_SPEED + (MAX_SPEED / 8);
} else if (map_id == 4) {
acc = acc * 1.1;
max = max * 1.1;
} else if (map_id == 5) {
max = max * 0.75;
} else if (map_id == 6) {
}
} else if (use_map_id == 11) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 12) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 13) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 14) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 15) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 16) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 17) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 18) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 19) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 20) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 21) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 22) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 23) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 24) {
acc = acc * 1.2;
max = max * 1.5;
} else if (use_map_id == 25) {
acc = acc * 1.2;
max = max * 1.5;
}
if (((edit == "test") || (edit == "run")) || (edit == "cup")) {
trace("cupcupcupcupcupcupcupcupcup");
acc = acc * 1.5;
max = max * 1.8;
}
}
function initAI() {
enemy_start = new Array();
enemy_over = new Array();
enemy_speed = new Array();
enemy_maxspeed = new Array();
enemy_accel = new Array();
enemy_damp = new Array();
enemy_brake = new Array();
enemy_rot = new Array();
enemy_hp = new Array();
enemy_will_hit = new Array();
enemy_will_hit_rotation = new Array();
enemy_will_hit_offset = new Array();
enemy_hit = new Array();
enemy_hit_time = new Array();
enemy_hit_rotation = new Array();
enemy_hit_rot = new Array();
enemy_speed_x = new Array();
enemy_speed_y = new Array();
enemy_hit_point = new Array();
enemy_total_point = new Array();
enemy_next = new Array();
enemy_angleStop = new Array();
enemy_oldAngleStop = new Array();
enemy_finish_lap = new Array();
enemy_finish_laps = new Array();
enemy_startTime = new Array();
enemy_time = new Array();
enemy_elapsed_time = 0;
enemy_best_lap = 0;
enemy_best_lap_text = "--:--:--";
enemy_total_time = new Array();
if (((((_root.use_map_id == _root.map_array[0]) || (_root.map_id == _root.map_array[0])) || (_root.edit == "test")) || (_root.edit == "run")) || (_root.edit == "cup")) {
_root.enemy_cup_time = new Array();
_root.enemy_score = new Array();
enemy_this_score = new Array();
}
i = 1;
while (i <= ENEMY_NUM) {
enemy_start[i] = false;
enemy_over[i] = false;
enemy_speed[i] = 0;
enemy_maxspeed[i] = max;
enemy_accel[i] = 0;
enemy_brake[i] = 0.95;
enemy_damp[i] = 0.98;
enemy_rot[i] = 0;
enemy_hp[i] = 100;
enemy_will_hit_rotation[i] = 0;
enemy_will_hit_offset[i] = 0;
enemy_will_hit[i] = false;
enemy_hit[i] = false;
enemy_hit_time[i] = 0;
enemy_hit_rotation[i] = 0;
enemy_hit_rot[i] = 0;
enemy_speed_x[i] = 0;
enemy_speed_y[i] = 0;
enemy_total_point[i] = 0;
enemy_hit_point[i] = -1;
enemy_next[i] = 0;
enemy_angleStop[i] = 0;
enemy_oldAngleStop[i] = false;
enemy_finish_lap[i] = false;
enemy_finish_laps[i] = 0;
enemy_startTime[i] = 0;
enemy_time[i] = 0;
enemy_total_time[i] = 0;
if (((((_root.use_map_id == _root.map_array[0]) || (_root.map_id == _root.map_array[0])) || (_root.edit == "test")) || (_root.edit == "run")) || (_root.edit == "cup")) {
_root.enemy_cup_time[i] = 0;
_root.enemy_score[i] = 0;
enemy_this_score[i] = 0;
}
scena.attachMovie("enemy_" + i, "enemy_" + i, scena.getNextHighestDepth());
rmd = Math.round(Math.random() * 26) + 1;
rmd = recursion(i, rmd);
scena["enemy_" + i].banner.gotoAndStop(rmd);
i++;
}
}
function recursion(enemy_index, rd) {
re = rd;
i = 1;
while (i < enemy_index) {
if (scena["enemy_" + i].banner._currentframe == rd) {
re = Math.round(Math.random() * 26) + 1;
re = recursion(enemy_index, re);
break;
}
i++;
}
return(re);
}
function initTree() {
_root.cue_wrongway._visible = false;
scena.attachMovie("logo_1", "logo_0", scena.getNextHighestDepth(), {_x:-500, _y:-500});
scena.attachMovie("logo_2", "logo_1", scena.getNextHighestDepth(), {_x:-500, _y:-500});
var _local3 = 0;
var _local5 = 1;
var _local4 = 0;
var _local2 = 0;
while (_local3 < TREE_NUM) {
if (FRAISE_NUM[_local2] == 0) {
_local2 = _local2 + 1;
_local5 = _local5 + 1;
} else {
scena.attachMovie("fraise_" + _local5, "tree_" + _local3, scena.getNextHighestDepth());
_local4 = _local4 + 1;
_local3 = _local3 + 1;
if (_local4 == FRAISE_NUM[_local2]) {
_local4 = 0;
_local2 = _local2 + 1;
_local5 = _local5 + 1;
}
}
}
prop_wrench_used = new Array();
i = 0;
while (i < PROP_WRENCH_NUM) {
prop_wrench_used[i] = false;
scena.attachMovie("prop_wrench", "prop_wrench_" + i, scena.getNextHighestDepth());
i++;
}
if (PROP_WRENCH_NUM > 0) {
scena.attachMovie("prop_wrench_disappear", "prop_wrench_disappear", topLayer + 1000);
scena.prop_wrench_disappear._x = scena.player._x;
scena.prop_wrench_disappear._y = scena.player._y - 60;
}
prop_tire_used = new Array();
i = 0;
while (i < PROP_TIRE_NUM) {
prop_tire_used[i] = false;
scena.attachMovie("prop_tire", "prop_tire_" + i, scena.getNextHighestDepth());
i++;
}
if (PROP_TIRE_NUM > 0) {
scena.attachMovie("prop_tire_disappear", "prop_tire_disappear", topLayer + 2000);
scena.prop_tire_disappear._x = scena.player._x;
scena.prop_tire_disappear._y = scena.player._y - 60;
}
}
function initSound() {
stopAllSounds();
_root.soundmc.removeMovieClip();
_root.createEmptyMovieClip("soundmc", _root.getNextHighestDepth());
SoundObject.linkArr = new Array();
sound_engine = null;
trace(_root.soundmc);
if (!sound_engine) {
sound_engine = new SoundObject("sound_engine.wav", 70);
sound_running_1 = new SoundObject("sound_running_1.wav", 70);
sound_running_2 = new SoundObject("sound_running_2.wav", 70);
sound_running_3 = new SoundObject("sound_running_3.wav", 70);
sound_running_4 = new SoundObject("sound_running_4.wav", 70);
sound_running_5 = new SoundObject("sound_running_5.wav", 70);
sound_running_6 = new SoundObject("sound_running_6.wav", 70);
sound_running_7 = new SoundObject("sound_running_7.wav", 70);
sound_running_8 = new SoundObject("sound_running_8.wav", 70);
sound_running_9 = new SoundObject("sound_running_9.wav", 70);
sound_brake = new SoundObject("sound_brake.wav", 70);
sound_turn = new SoundObject("sound_turn.wav", 70);
sound_rocket = new SoundObject("sound_rocket.wav", 70);
sound_tree = new SoundObject("sound_tree.wav");
sound_prop = new SoundObject("sound_prop.wav");
sound_crash = new SoundObject("sound_crash.wav", 200);
}
rrmd = Math.round(Math.random() * 3) + 1;
bg_sound = new Sound();
bg_sound.attachSound(("bg_sound_" + rrmd) + ".mp3");
bg_sound.onSoundComplete = bg_sound.start;
if (_root.soundStatus == 1) {
bg_sound.setVolume(100);
bg_sound.start();
bg_sound_playing = true;
} else {
bg_sound_playing = false;
}
}
function race() {
test_frame_end_time = getTimer();
if ((test_frame_end_time - test_frame_begin_time) >= 1000) {
_root.bg_incar.frame.text = frame + 1;
if ((((frame != null) && (frame != undefined)) && (frame != Number.NaN)) && (frame != 0)) {
_root.attframe = frame;
}
frame = 0;
prop_relive++;
test_frame_begin_time = test_frame_end_time;
} else {
frame = frame + 1;
}
if ((test_frame_end_time - cue_lap_time) >= 2000) {
_root.cue_lap_view = false;
_root.cue_lap._visible = false;
}
setbg();
setPlayer();
setMap();
weitiao();
setAI();
checkPoint();
setTree();
if ((timing == true) && ((frame % 2) == 0)) {
if (finish_level == false) {
time = timer(startTime, true);
}
afoul();
damaging();
i = 1;
while (i <= ENEMY_NUM) {
enemy_time[i] = timer(enemy_startTime[i], true);
i++;
}
total_time = timer(firstTime, true);
gameLogic();
}
if (_root.wuditime > 0) {
_root.wuditime--;
var _local3 = [1, 0, 0, 0, 100, 0, 1, 0, 0, 100, 0, 0, 1, 0, 100, 0, 0, 0, 1, 0];
var _local2 = new flash.filters.ColorMatrixFilter(_local3);
if (wuditime > 17) {
scena.player.car.filters = [_local2];
} else {
scena.player.car.filters = null;
}
} else {
scena.player.car.filters = null;
}
}
function setbg() {
_root.bg_1.bg_1_1._x = _root.bg_1.bg_1_1._x - 2;
_root.bg_1.bg_1_2._x = _root.bg_1.bg_1_2._x - 1.5;
_root.bg_1.bg_1_3._x = _root.bg_1.bg_1_3._x - 1;
_root.bg_1.bg_1_4._x = _root.bg_1.bg_1_4._x - 0.5;
if (_root.bg_1.bg_1_1._x <= (-SW)) {
_root.bg_1.bg_1_1._x = 0;
}
if (_root.bg_1.bg_1_2._x <= (-SW)) {
_root.bg_1.bg_1_2._x = 0;
}
if (_root.bg_1.bg_1_3._x <= (-SW)) {
_root.bg_1.bg_1_3._x = 0;
}
if (_root.bg_1.bg_1_4._x <= (-SW)) {
_root.bg_1.bg_1_4._x = 0;
}
}
function setPlayer() {
pedal = 0;
steer = 0;
onborder = false;
scena.smoke._visible = false;
if (Key.isDown(38) && (key)) {
pedal = 1;
player_speed = player_speed + ((((MAX_SPEED - player_speed) + 1) * accel) * (20 / _root.attframe));
if ((player_speed > 0) && (player_speed < 5)) {
scena.smoke._visible = true;
}
if (player_speed < 0) {
player_speed = player_speed + (((((MAX_SPEED - player_speed) + 1) * accel) * (20 / _root.attframe)) * 2);
}
}
if (Key.isDown(40) && (key)) {
pedal = 2;
if (player_speed <= 1) {
player_speed = player_speed - ((((MAX_SPEED / 3) + player_speed) * accel) * (20 / _root.attframe));
} else {
player_speed = player_speed * brake;
}
if ((player_speed > 2) && (soundPlaying)) {
sound_brake.playSound(0, 999);
}
} else {
sound_brake.stopSound();
}
if ((pedal == 0) && (key)) {
if (Math.abs(player_speed) > 0.2) {
player_speed = player_speed * inertia;
} else {
player_speed = 0;
}
}
if (Math.abs(player_speed) > 1) {
if (scena.player.car.galloping._currentframe == 1) {
scena.player.car.galloping._visible = true;
scena.player.car.galloping.gotoAndPlay(2);
}
} else if (scena.player.car.galloping._currentframe != 1) {
scena.player.car.galloping._visible = false;
scena.player.car.galloping.gotoAndStop(1);
}
if (player_speed > 20) {
if (_root.map_id == 2) {
tire = tire - 0.12;
} else {
tire = tire - 0.08;
}
}
car_offset = 5;
if (tire < 20) {
if (cue_Tire_time == 0) {
cue_Tire_time = getTimer();
_root.bad_tire._visible = !_root.bad_tire._visible;
}
if (_root.bad_tire._visible && ((getTimer() - cue_Tire_time) > 3000)) {
cue_Tire_time = 0;
}
if ((!_root.bad_tire._visible) && ((getTimer() - cue_Tire_time) > 2000)) {
cue_Tire_time = 0;
}
} else {
_root.bad_tire._visible = false;
cue_Tire_time = 0;
}
if (Key.isDown(39) && (key)) {
if (pedal == 1) {
map_rot = map_rot - car_offset;
} else if ((player_speed >= 1) && (player_speed < 6)) {
map_rot = map_rot - (car_offset / 2);
} else if (player_speed >= 6) {
map_rot = map_rot - car_offset;
} else if ((player_speed <= -1) && (player_speed > -3)) {
map_rot = map_rot + (car_offset / 2);
} else if (player_speed <= -3) {
map_rot = map_rot + (car_offset / 4);
}
steer = 1;
scena.player.car.nextFrame();
tmp = Math.abs(player_speed);
if ((tmp >= 1) && (tmp < 6)) {
_root.bg_0._x = _root.bg_0._x - 4;
} else if (tmp >= 6) {
_root.bg_0._x = _root.bg_0._x - 10;
}
if (_root.bg_0._x <= ((-SW) * 2)) {
_root.bg_0._x = -SW;
}
}
if (Key.isDown(37) && (key)) {
if (pedal == 1) {
map_rot = map_rot + car_offset;
} else if ((player_speed >= 1) && (player_speed < 6)) {
map_rot = map_rot + (car_offset / 2);
} else if (player_speed >= 6) {
map_rot = map_rot + car_offset;
} else if ((player_speed <= -1) && (player_speed > -3)) {
map_rot = map_rot - (car_offset / 4);
} else if (player_speed <= -3) {
map_rot = map_rot - (car_offset / 2);
}
steer = 2;
scena.player.car.prevFrame();
tmp = Math.abs(player_speed);
if ((tmp >= 1) && (tmp < 6)) {
_root.bg_0._x = _root.bg_0._x + 4;
} else if (tmp >= 6) {
_root.bg_0._x = _root.bg_0._x + 10;
}
if (_root.bg_0._x >= 0) {
_root.bg_0._x = -SW;
}
}
if (steer == 0) {
if (scena.player.car._currentframe >= 12) {
scena.player.car.prevFrame();
}
if (scena.player.car._currentframe <= 10) {
scena.player.car.nextFrame();
}
}
if (Key.isDown(32) && (key)) {
if ((rock > 0) && (rocketing == false)) {
space_time = getTimer();
rock = rock - 1;
_root.bg_incar.rocket_light.play();
_root.bg_incar.rocket_light.OnEnd = function () {
_root.bg_incar.rock_txt.text = _root.rock;
if (_root.rock == 0) {
_root.bg_incar.rocket_light.stop();
}
};
player_speed = player_speed + 25;
rocketing = true;
if (soundPlaying) {
sound_rocket.playSound(0, 999);
}
_root.bg_incar.traffic_light.gotoAndStop(rock + "_left");
}
}
if (rocketing == true) {
scena.player.car.rocket._visible = true;
if (scena.player.car.rocket._currentframe == 1) {
scena.player.car.rocket.gotoAndPlay(2);
}
if ((getTimer() - space_time) > 2000) {
rocketing = false;
sound_rocket.stopSound();
}
} else {
scena.player.car.rocket._visible = false;
if (scena.player.car.rocket._currentframe != 1) {
scena.player.car.rocket.gotoAndSotp(1);
}
}
if (compellent_brake == true) {
player_speed = player_speed * 0.9;
}
player_marker._x = (((level.map.player._x / 100) * level._xscale) * _root.GAME_XSCALE) + level._x;
player_marker._y = (((level.map.player._y / 100) * level._yscale) * _root.GAME_YSCALE) + level._y;
scena.player.swapDepths(topLayer + 100);
scena.smoke.swapDepths(topLayer + 202);
if (soundPlaying) {
if (Math.abs(player_speed) < 5) {
playAndStopSound(0);
} else if ((Math.abs(player_speed) >= 5) && (Math.abs(player_speed) < 10)) {
playAndStopSound(1);
} else if ((Math.abs(player_speed) >= 10) && (Math.abs(player_speed) < 15)) {
playAndStopSound(2);
} else if ((Math.abs(player_speed) >= 15) && (Math.abs(player_speed) < 20)) {
playAndStopSound(3);
} else if ((Math.abs(player_speed) >= 20) && (Math.abs(player_speed) < 25)) {
playAndStopSound(4);
} else if ((Math.abs(player_speed) >= 25) && (Math.abs(player_speed) < 30)) {
playAndStopSound(5);
} else if ((Math.abs(player_speed) >= 30) && (Math.abs(player_speed) < 35)) {
playAndStopSound(6);
} else if ((Math.abs(player_speed) >= 35) && (Math.abs(player_speed) < 40)) {
playAndStopSound(7);
} else if ((Math.abs(player_speed) >= 40) && (Math.abs(player_speed) < 45)) {
playAndStopSound(8);
} else if (Math.abs(player_speed) >= 45) {
playAndStopSound(9);
}
if ((Math.abs(player_speed) > 10) && ((scena.player.car._currentframe < 4) || (scena.player.car._currentframe > 18))) {
sound_turn.delayPlay(0.2, 999);
} else {
sound_turn.stopSound();
}
} else {
playAndStopSound(-1);
sound_turn.stopSound();
}
}
function playAndStopSound(xu) {
var _local2 = 1;
while (_local2 < 10) {
if (_local2 != xu) {
_root["sound_running_" + _local2].stopSound();
}
_local2++;
}
if (xu == -1) {
sound_engine.stopSound();
} else if (xu == 0) {
sound_engine.delayPlay(0.2, 999);
} else {
sound_engine.stopSound();
_root["sound_running_" + xu].delayPlay(0.2, 999);
}
}
function setMap() {
if (map_rot > 180) {
map_rot = map_rot - 360;
} else if (map_rot < -180) {
map_rot = map_rot + 360;
}
cosness = (player_speed * Math.cos((map_rot * Math.PI) / 180)) / 2;
sinness = (player_speed * Math.sin((map_rot * Math.PI) / 180)) / 2;
level.map.player._rotation = (-map_rot) - 90;
var _local2 = level.map.player._x;
var _local1 = level.map.player._y;
level.map.player._x = level.map.player._x - (sinness / 2);
level.map.player._y = level.map.player._y - (cosness / 2);
if ((!level_code) && (!map_code)) {
if ((ed.GetHitFace(level.map.player._x, level.map.player._y) != null) && (hit_obb_pos != (player_speed / Math.abs(player_speed)))) {
level.map.player._x = _local2;
level.map.player._y = _local1;
if ((player_speed > 0) && (player_speed < 20)) {
player_speed = -10;
} else if ((player_speed <= 0) && (player_speed > -20)) {
player_speed = 10;
} else {
player_speed = (-player_speed) / 2;
}
if (finish_level == false) {
hp = hp - HARM;
}
if (soundPlaying == true) {
}
}
} else {
i = 0;
while (i < obb_array.length) {
if (obb_array[i].hitTest(level.map.player)) {
level.map.player._x = _local2;
level.map.player._y = _local1;
if ((player_speed > 0) && (player_speed < 20)) {
player_speed = -10;
} else if ((player_speed <= 0) && (player_speed > -20)) {
player_speed = 10;
} else {
player_speed = (-player_speed) / 2;
}
if (finish_level == false) {
hp = hp - HARM;
}
if (soundPlaying == true) {
}
}
i++;
}
}
i = 1;
while (i <= 10) {
scena["t_0" + i]._visible = false;
i++;
}
i = 11;
while (i <= STRIPES) {
scena["t_0" + i]._rotation = map_rot;
scena["t_0" + i].map._x = (-level.map.player._x) * GAME_XSCALE;
scena["t_0" + i].map._y = (-level.map.player._y) * GAME_YSCALE;
i++;
}
}
function setTree() {
i = 0;
while (i < TREE_NUM) {
if (level.map["tree_" + i]) {
tree_dx = level.map["tree_" + i]._x - level.map.player._x;
tree_dy = level.map["tree_" + i]._y - level.map.player._y;
tree_dist = Math.sqrt((tree_dx * tree_dx) + (tree_dy * tree_dy));
tree_angle = (((Math.atan2(tree_dy, tree_dx) * 180) / Math.PI) + 90) + map_rot;
if (tree_angle > 180) {
tree_angle = tree_angle - 360;
}
tree_angle = (tree_angle * Math.PI) / 180;
tree_depth = tree_dist * Math.cos(tree_angle);
if (((tree_depth < (-buttomLayer)) || (tree_depth > topLayer)) || (tree_depth > 600)) {
scena["tree_" + i]._visible = false;
} else {
scena["tree_" + i]._visible = true;
}
if (scena["tree_" + i]._visible == true) {
tree_side = tree_dist * Math.sin(tree_angle);
tree_scaleRatio = buttomLayer / (buttomLayer + tree_depth);
scena["tree_" + i]._x = (scena.player._x + 20) + ((tree_side * tree_scaleRatio) * 11.2);
scena["tree_" + i]._y = (SH / 2) + (tree_scaleRatio * 224);
scena["tree_" + i]._xscale = (scena["tree_" + i]._yscale = 100 * tree_scaleRatio);
scena["tree_" + i].swapDepths(topLayer + Math.floor(scena["tree_" + i]._xscale));
}
}
i++;
}
if (prop_relive >= 15) {
i = 0;
while (i < PROP_WRENCH_NUM) {
prop_wrench_used[i] = false;
i++;
}
i = 0;
while (i < PROP_TIRE_NUM) {
prop_tire_used[i] = false;
i++;
}
}
i = 0;
while (i < PROP_WRENCH_NUM) {
if (level.map["prop_wrench_" + i]) {
tree_dx = level.map["prop_wrench_" + i]._x - level.map.player._x;
tree_dy = level.map["prop_wrench_" + i]._y - level.map.player._y;
tree_dist = Math.sqrt((tree_dx * tree_dx) + (tree_dy * tree_dy));
tree_angle = (((Math.atan2(tree_dy, tree_dx) * 180) / Math.PI) + 90) + map_rot;
if (tree_angle > 180) {
tree_angle = tree_angle - 360;
}
tree_angle = (tree_angle * Math.PI) / 180;
tree_depth = tree_dist * Math.cos(tree_angle);
if ((((tree_depth < (-buttomLayer)) || (tree_depth > topLayer)) || (tree_depth > 300)) || (prop_wrench_used[i] == true)) {
scena["prop_wrench_" + i]._visible = false;
} else {
scena["prop_wrench_" + i]._visible = true;
}
if (scena["prop_wrench_" + i]._visible == true) {
tree_side = tree_dist * Math.sin(tree_angle);
tree_scaleRatio = buttomLayer / (buttomLayer + tree_depth);
scena["prop_wrench_" + i]._x = (scena.player._x + 16) + ((tree_side * tree_scaleRatio) * 11.2);
scena["prop_wrench_" + i]._y = (SH / 2) + (tree_scaleRatio * 224);
scena["prop_wrench_" + i]._xscale = (scena["prop_wrench_" + i]._yscale = 100 * tree_scaleRatio);
scena["prop_wrench_" + i].swapDepths(topLayer + Math.floor(scena["prop_wrench_" + i]._xscale));
}
}
i++;
}
i = 0;
while (i < PROP_TIRE_NUM) {
if (level.map["prop_tire_" + i]) {
tree_dx = level.map["prop_tire_" + i]._x - level.map.player._x;
tree_dy = level.map["prop_tire_" + i]._y - level.map.player._y;
tree_dist = Math.sqrt((tree_dx * tree_dx) + (tree_dy * tree_dy));
tree_angle = (((Math.atan2(tree_dy, tree_dx) * 180) / Math.PI) + 90) + map_rot;
if (tree_angle > 180) {
tree_angle = tree_angle - 360;
}
tree_angle = (tree_angle * Math.PI) / 180;
tree_depth = tree_dist * Math.cos(tree_angle);
if ((((tree_depth < (-buttomLayer)) || (tree_depth > topLayer)) || (tree_depth > 300)) || (prop_tire_used[i] == true)) {
scena["prop_tire_" + i]._visible = false;
} else {
scena["prop_tire_" + i]._visible = true;
}
if (scena["prop_tire_" + i]._visible == true) {
tree_side = tree_dist * Math.sin(tree_angle);
tree_scaleRatio = buttomLayer / (buttomLayer + tree_depth);
scena["prop_tire_" + i]._x = (scena.player._x + 16) + ((tree_side * tree_scaleRatio) * 11.2);
scena["prop_tire_" + i]._y = (SH / 2) + (tree_scaleRatio * 224);
scena["prop_tire_" + i]._xscale = (scena["prop_tire_" + i]._yscale = 100 * tree_scaleRatio);
scena["prop_tire_" + i].swapDepths(topLayer + Math.floor(scena["prop_tire_" + i]._xscale));
}
}
i++;
}
i = 0;
while (i < 2) {
if (level.map["logo_" + i]) {
tree_dx = level.map["logo_" + i]._x - level.map.player._x;
tree_dy = level.map["logo_" + i]._y - level.map.player._y;
tree_dist = Math.sqrt((tree_dx * tree_dx) + (tree_dy * tree_dy));
tree_angle = (((Math.atan2(tree_dy, tree_dx) * 180) / Math.PI) + 90) + map_rot;
if (tree_angle > 180) {
tree_angle = tree_angle - 360;
}
tree_angle = (tree_angle * Math.PI) / 180;
tree_depth = tree_dist * Math.cos(tree_angle);
if ((tree_depth < (-buttomLayer)) || (tree_depth > topLayer)) {
scena["logo_" + i]._visible = false;
} else {
scena["logo_" + i]._visible = true;
}
if (scena["logo_" + i]._visible == true) {
tree_side = tree_dist * Math.sin(tree_angle);
tree_scaleRatio = buttomLayer / (buttomLayer + tree_depth);
scena["logo_" + i]._x = (scena.player._x + 20) + ((tree_side * tree_scaleRatio) * 11.2);
scena["logo_" + i]._y = (SH / 2) + (tree_scaleRatio * 224);
scena["logo_" + i]._xscale = (scena["logo_" + i]._yscale = 100 * tree_scaleRatio);
scena["logo_" + i].swapDepths(topLayer + Math.floor(scena["logo_" + i]._xscale));
}
}
i++;
}
}
function weitiao() {
min_next = 0;
i = 1;
while (i < ENEMY_NUM) {
if (enemy_next[i + 1] < enemy_next[i]) {
min_next = i + 1;
}
i++;
}
if ((enemy_next[min_next] < player_next) && (enemy_over[min_next] == false)) {
enemy_speed[min_next] = enemy_speed[min_next] + 0.006;
}
}
function setAI() {
i = 1;
while (i <= ENEMY_NUM) {
next_point = enemy_next[i];
if ((!level_code) && (!map_code)) {
enemy_dx = (-level.map["enemy_" + i]._x) + point_array[next_point]._x;
enemy_dy = (-level.map["enemy_" + i]._y) + point_array[next_point]._y;
} else {
enemy_dx = (-level.map["enemy_" + i]._x) + toMapPosition(point_array[next_point], "x");
enemy_dy = (-level.map["enemy_" + i]._y) + toMapPosition(point_array[next_point], "y");
}
enemy_dist = Math.sqrt((enemy_dx * enemy_dx) + (enemy_dy * enemy_dy));
next_next_point = next_point + 1;
if (next_point == (POINT_NUM - 1)) {
next_next_point = 0;
}
if ((!level_code) && (!map_code)) {
enemy_dx2 = (-level.map["enemy_" + i]._x) + point_array[next_next_point]._x;
enemy_dy2 = (-level.map["enemy_" + i]._y) + point_array[next_next_point]._y;
} else {
enemy_dx2 = (-level.map["enemy_" + i]._x) + toMapPosition(point_array[next_next_point], "x");
enemy_dy2 = (-level.map["enemy_" + i]._y) + toMapPosition(point_array[next_next_point], "y");
}
enemy_next_dist = Math.sqrt((enemy_dx2 * enemy_dx2) + (enemy_dy2 * enemy_dy2));
rdm = Math.random() * 100;
if (((Math.abs(enemy_next_dist - enemy_dist) < 150) && (enemy_dist < 100)) && (rdm > 60)) {
if (Math.abs(enemy_speed[i]) > 0.1) {
enemy_speed[i] = enemy_speed[i] * enemy_brake[i];
} else {
enemy_speed[i] = 0;
}
} else {
enemy_speed[i] = enemy_speed[i] + ((((enemy_maxspeed[i] - enemy_speed[i]) + 1) * enemy_accel[i]) * (20 / _root.attframe));
}
if (enemy_over[i] == true) {
enemy_speed[i] = enemy_speed[i] * enemy_brake[i];
}
if (enemy_angleStop[i] == false) {
direzione = (Math.atan2(enemy_dy, enemy_dx) * 180) / Math.PI;
error = (5 - Math.round(Math.random() * 10)) * 4;
testdir = (direzione + error) + 90;
if (testdir < 0) {
testdir = testdir + 360;
} else if (testdir > 360) {
testdir = testdir - 360;
}
oldrot = level.map["enemy_" + i]._rotation;
if (oldrot < 0) {
oldrot = oldrot + 360;
} else if (oldrot > 360) {
oldrot = oldrot - 360;
}
sterzata = testdir - oldrot;
if (sterzata < -180) {
sterzata = sterzata + 360;
}
if (sterzata > 180) {
sterzata = sterzata - 360;
}
is_swerve = false;
maxSteer = 15;
if (direzione < 0) {
direzione = direzione + 360;
} else if (direzione > 360) {
direzione = direzione - 360;
}
if ((sterzata >= (-maxSteer)) && (sterzata <= maxSteer)) {
enemy_angleStop[i] = direzione;
} else {
is_swerve = true;
if (sterzata > maxSteer) {
enemy_angleStop[i] = (level.map["enemy_" + i]._rotation - 90) + maxSteer;
sterzata = maxSteer;
}
if (sterzata < (-maxSteer)) {
enemy_angleStop[i] = (level.map["enemy_" + i]._rotation - 90) - maxSteer;
sterzata = -maxSteer;
}
}
}
if (enemy_will_hit[i] == true) {
enemy_will_hit_rotation[i] = (1 - ((i % 2) * 2)) * 3;
enemy_angleStop[i] = enemy_angleStop[i] + enemy_will_hit_rotation[i];
enemy_will_hit_offset[i] = enemy_will_hit_offset[i] + enemy_will_hit_rotation[i];
}
if ((enemy_will_hit[i] == false) && (enemy_will_hit_offset[i] != 0)) {
enemy_angleStop[i] = enemy_angleStop[i] - enemy_will_hit_rotation[i];
enemy_will_hit_offset[i] = enemy_will_hit_offset[i] - enemy_will_hit_rotation[i];
}
if (((enemy_will_hit_offset[i] > 50) && (enemy_speed[i] > 8)) || (enemy_speed[i] < -2)) {
enemy_speed[i] = enemy_speed[i] * enemy_brake[i];
}
enemy_angle = enemy_angleStop[i];
level.map["enemy_" + i]._rotation = enemy_angle + 90;
enemy_angle = (-enemy_angle) + 90;
movx = enemy_speed[i] * Math.sin((enemy_angle * Math.PI) / 180);
movy = enemy_speed[i] * Math.cos((enemy_angle * Math.PI) / 180);
level.map["enemy_" + i]._x = level.map["enemy_" + i]._x + movx;
level.map["enemy_" + i]._y = level.map["enemy_" + i]._y + movy;
if (is_swerve == true) {
enemy_angleStop[i] = false;
}
_root["enemy_marker_" + i]._x = (((level.map["enemy_" + i]._x / 100) * level._xscale) * GAME_XSCALE) + level._x;
_root["enemy_marker_" + i]._y = (((level.map["enemy_" + i]._y / 100) * level._xscale) * GAME_XSCALE) + level._y;
enemy_dx = level.map["enemy_" + i]._x - level.map.player._x;
enemy_dy = level.map["enemy_" + i]._y - level.map.player._y;
enemy_dist = Math.sqrt((enemy_dx * enemy_dx) + (enemy_dy * enemy_dy));
enemy_angle = (((Math.atan2(enemy_dy, enemy_dx) * 180) / Math.PI) + 90) + map_rot;
if (enemy_angle > 180) {
enemy_angle = enemy_angle - 360;
}
enemy_angle = (enemy_angle * Math.PI) / 180;
dist_depth = enemy_dist * Math.cos(enemy_angle);
if ((dist_depth < (-buttomLayer)) || (dist_depth > topLayer)) {
scena["enemy_" + i]._visible = false;
} else {
scena["enemy_" + i]._visible = true;
}
if (scena["enemy_" + i]._visible == true) {
rotdiff = map_rot + level.map["enemy_" + i]._rotation;
if (rotdiff > 360) {
rotdiff = rotdiff - 360;
}
if (rotdiff < 0) {
rotdiff = rotdiff + 360;
}
if (dist_depth < 400) {
if (((rotdiff > 351) && (rotdiff < 360)) || ((rotdiff > 0) && (rotdiff <= 9))) {
scena["enemy_" + i].car.gotoAndStop(1);
} else if ((rotdiff > 9) && (rotdiff <= 27)) {
scena["enemy_" + i].car.gotoAndStop(2);
} else if ((rotdiff > 27) && (rotdiff <= 45)) {
scena["enemy_" + i].car.gotoAndStop(3);
} else if ((rotdiff > 45) && (rotdiff <= 63)) {
scena["enemy_" + i].car.gotoAndStop(4);
} else if ((rotdiff > 63) && (rotdiff <= 81)) {
scena["enemy_" + i].car.gotoAndStop(5);
} else if ((rotdiff > 81) && (rotdiff <= 99)) {
scena["enemy_" + i].car.gotoAndStop(6);
} else if ((rotdiff > 99) && (rotdiff <= 117)) {
scena["enemy_" + i].car.gotoAndStop(7);
} else if ((rotdiff > 117) && (rotdiff <= 135)) {
scena["enemy_" + i].car.gotoAndStop(8);
} else if ((rotdiff > 135) && (rotdiff <= 153)) {
scena["enemy_" + i].car.gotoAndStop(9);
} else if ((rotdiff > 153) && (rotdiff <= 171)) {
scena["enemy_" + i].car.gotoAndStop(10);
} else if ((rotdiff > 171) && (rotdiff <= 189)) {
scena["enemy_" + i].car.gotoAndStop(11);
} else if ((rotdiff > 189) && (rotdiff <= 207)) {
scena["enemy_" + i].car.gotoAndStop(12);
} else if ((rotdiff > 207) && (rotdiff <= 225)) {
scena["enemy_" + i].car.gotoAndStop(13);
} else if ((rotdiff > 225) && (rotdiff <= 243)) {
scena["enemy_" + i].car.gotoAndStop(14);
} else if ((rotdiff > 243) && (rotdiff <= 261)) {
scena["enemy_" + i].car.gotoAndStop(15);
} else if ((rotdiff > 261) && (rotdiff <= 279)) {
scena["enemy_" + i].car.gotoAndStop(16);
} else if ((rotdiff > 279) && (rotdiff <= 297)) {
scena["enemy_" + i].car.gotoAndStop(17);
} else if ((rotdiff > 297) && (rotdiff <= 315)) {
scena["enemy_" + i].car.gotoAndStop(18);
} else if ((rotdiff > 315) && (rotdiff <= 333)) {
scena["enemy_" + i].car.gotoAndStop(19);
} else if ((rotdiff > 333) && (rotdiff <= 351)) {
scena["enemy_" + i].car.gotoAndStop(20);
}
}
dist_side = enemy_dist * Math.sin(enemy_angle);
scaleRatio = buttomLayer / (buttomLayer + dist_depth);
scena["enemy_" + i]._x = (scena.player._x + 20) + ((dist_side * scaleRatio) * 9);
scena["enemy_" + i]._y = (SH / 2) + (scaleRatio * 180);
scena["enemy_" + i]._xscale = (scena["enemy_" + i]._yscale = 200 * scaleRatio);
scena["enemy_" + i].swapDepths(topLayer + Math.floor(scena["enemy_" + i]._xscale));
}
i++;
}
}
function checkPoint() {
if (finish_level == false) {
mingci = ENEMY_NUM + 1;
e = 1;
while (e <= ENEMY_NUM) {
if (enemy_total_point[e] < player_total_point) {
mingci--;
} else if (enemy_total_point[e] == player_total_point) {
enemy_dx = (-level.map["enemy_" + e]._x) + toMapPosition(point_array[enemy_next[e]], "x");
enemy_dy = (-level.map["enemy_" + e]._y) + toMapPosition(point_array[enemy_next[e]], "y");
enemy_dist = Math.sqrt((enemy_dx * enemy_dx) + (enemy_dy * enemy_dy));
player_dx = (-level.map.player._x) + toMapPosition(point_array[enemy_next[e]], "x");
player_dy = (-level.map.player._y) + toMapPosition(point_array[enemy_next[e]], "y");
player_dist = Math.sqrt((player_dx * player_dx) + (player_dy * player_dy));
if (player_dist < enemy_dist) {
mingci--;
}
}
e++;
}
if (_root.bg_incar.mingci._currentframe != mingci) {
_root.bg_incar.mingci.gotoAndStop(mingci);
}
}
if ((!level_code) && (!map_code)) {
j = 1;
while (j <= ENEMY_NUM) {
var _local3 = (-level.map["enemy_" + j]._x) + point_array[enemy_next[j]]._x;
var _local2 = (-level.map["enemy_" + j]._y) + point_array[enemy_next[j]]._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local4 < 100) {
enemy_angleStop[j] = false;
enemy_hit_point[j] = i;
enemy_total_point[j]++;
enemy_next[j]++;
if (enemy_next[j] == POINT_NUM) {
enemy_next[j] = 0;
enemy_start[j] = true;
}
}
j++;
}
}
i = 0;
while (i < POINT_NUM) {
j = 1;
while (j <= ENEMY_NUM) {
if ((!level_code) && (!map_code)) {
} else if (((enemy_next[j] == i) && (enemy_hit_point[j] != i)) && (point_array[i].hitTest(_root["enemy_marker_" + j]))) {
enemy_angleStop[j] = false;
enemy_hit_point[j] = i;
enemy_total_point[j]++;
enemy_next[j]++;
if (enemy_next[j] == POINT_NUM) {
enemy_next[j] = 0;
enemy_start[j] = true;
}
}
j++;
}
i++;
}
player_dxt1 = (-level.map.player._x) + toMapPosition(point_array[player_next], "x");
player_dyt1 = (-level.map.player._y) + toMapPosition(point_array[player_next], "y");
player_distt1 = Math.sqrt((player_dxt1 * player_dxt1) + (player_dyt1 * player_dyt1));
var _local5 = player_next + 1;
if (_local5 == POINT_NUM) {
_local5 = 0;
}
player_dxt2 = (-level.map.player._x) + toMapPosition(point_array[_local5], "x");
player_dyt2 = (-level.map.player._y) + toMapPosition(point_array[_local5], "y");
player_distt2 = Math.sqrt((player_dxt2 * player_dxt2) + (player_dyt2 * player_dyt2));
player_dxt3 = (-toMapPosition(point_array[player_next], "x")) + toMapPosition(point_array[_local5], "x");
player_dyt3 = (-toMapPosition(point_array[player_next], "y")) + toMapPosition(point_array[_local5], "y");
player_distt3 = Math.sqrt((player_dxt3 * player_dxt3) + (player_dyt3 * player_dyt3));
if ((player_distt3 > player_distt2) || (player_distt1 > player_distt2)) {
player_next++;
if (player_next == POINT_NUM) {
player_next = 0;
}
hit_point = i;
player_total_point++;
trace(player_total_point);
}
distancei++;
if ((!level_code) && (!map_code)) {
i = 0;
while (i < map_wp) {
player_dxt4 = (-level.map.player._x) + toMapPosition(level.map["wp_" + i], "x");
player_dyt4 = (-level.map.player._y) + toMapPosition(level.map["wp_" + i], "y");
player_distt4 = Math.sqrt((player_dxt4 * player_dxt4) + (player_dyt4 * player_dyt4));
if (player_distt4 < (level.map["wp_" + i]._width / 2)) {
Alldistance = i;
if ((LastAlldistance == (map_wp - 1)) && (Alldistance == 0)) {
LastAlldistance = -1;
}
if ((LastAlldistance == 0) && (Alldistance == (map_wp - 1))) {
LastAlldistance = map_wp;
}
if (Alldistance < LastAlldistance) {
IsWorryRoad = true;
_root.cue_wrongway._visible = true;
}
if (Alldistance > LastAlldistance) {
IsWorryRoad = false;
_root.cue_wrongway._visible = false;
}
LastAlldistance = Alldistance;
}
i++;
}
} else {
Alldistance = (player_total_point * 10000) + (10000 - player_distt1);
Alldistancenext = ((player_total_point + 1) * 10000) + (10000 - player_distt2);
if (distancei > 20) {
distancei = 0;
if (((LastAlldistance > (Alldistance + 10)) && (LastAlldistancenext > Alldistancenext)) && (!IsWorryRoad)) {
IsWorryRoad = true;
_root.cue_wrongway._visible = true;
}
if ((LastAlldistance < Alldistance) && (IsWorryRoad)) {
IsWorryRoad = false;
_root.cue_wrongway._visible = false;
}
LastAlldistance = Alldistance;
LastAlldistancenext = Alldistancenext;
}
}
if (((!_root.edit) && (player_total_point > (POINT_NUM - 5))) && (player_total_point < (POINT_NUM - 2))) {
_root.Pitstop._visible = true;
}
if (player_total_point > (POINT_NUM - 2)) {
_root.Pitstop._visible = false;
}
}
function afoul() {
if (level.map.border.hitTest(player_marker._x, player_marker._y, true)) {
pedal = false;
onborder = true;
player_speed = player_speed / 3;
_root.cue_outroad._visible = true;
_root.cue_outroad.gotoAndPlay(1);
} else {
_root.cue_outroad._visible = false;
}
out_road = true;
if ((!level_code) && (!map_code)) {
if (level.map.path.hitTest(player_marker._x, player_marker._y, true)) {
out_road = false;
}
} else {
for (var _local2 in path_array) {
if (path_array[_local2].hitTest(player_marker._x, player_marker._y, true)) {
scritta._visible = false;
dirting = false;
out_road = false;
break;
}
}
}
if (out_road && (player_speed > 1)) {
scena.smok._visible = true;
if (car_shake == 0) {
scena.player._y = scena.player._y + 1;
car_shake++;
} else {
scena.player._y = scena.player._y - 1;
car_shake--;
}
_root.cue_outroad._visible = true;
_root.cue_outroad.gotoAndPlay(1);
tire = tire - 0.05;
player_speed = (player_speed * damp) * damp;
} else {
_root.cue_outroad._visible = false;
}
i = 0;
while (i < TREE_NUM) {
if (scena["tree_" + i]._visible == false) {
} else if (level.map.player.hitTest(level.map["tree_" + i]) && (hit_tree_pos != (player_speed / Math.abs(player_speed)))) {
if ((player_speed > 0) && (player_speed < 20)) {
player_speed = -10;
} else if ((player_speed <= 0) && (player_speed > -20)) {
player_speed = 10;
} else {
player_speed = (-player_speed) / 2;
}
if (finish_level == false) {
hp = hp - HARM;
}
hit_tree_pos = player_speed / Math.abs(player_speed);
if (soundPlaying == true) {
sound_tree.playSound(0, 1);
}
}
i++;
}
i = 0;
while (i < PROP_WRENCH_NUM) {
if ((scena["prop_wrench_" + i]._visible == false) || (prop_wrench_used[i] == true)) {
} else if (level.map.player.hitTest(level.map["prop_wrench_" + i])) {
if ((hp + 20) > 100) {
hp = 100;
} else {
hp = hp + 20;
}
if ((tire + 20) > 100) {
tire = 100;
} else {
tire = tire + 20;
}
prop_relive = 0;
prop_wrench_used[i] = true;
scena.prop_wrench_disappear.gotoAndPlay(3);
if (soundPlaying == true) {
sound_prop.playSound(0, 1);
}
}
i++;
}
i = 0;
while (i < PROP_TIRE_NUM) {
if ((scena["prop_tire_" + i]._visible == false) || (prop_tire_used[i] == true)) {
} else if (level.map.player.hitTest(level.map["prop_tire_" + i])) {
if ((tire + 20) > 100) {
tire = 100;
} else {
tire = tire + 20;
}
prop_relive = 0;
prop_tire_used[i] = true;
scena.prop_tire_disappear.gotoAndPlay(3);
if (soundPlaying == true) {
sound_prop.playSound(0, 1);
}
}
i++;
}
i = 1;
while (i <= ENEMY_NUM) {
if (level.map.border.hitTest(_root["enemy_marker_" + i]._x, _root["enemy_marker_" + i]._y, true)) {
enemy_speed[i] = enemy_speed[i] / 3;
}
if (level.map.path.hitTest(_root["enemy_marker_" + i]._x, _root["enemy_marker_" + i]._y, true)) {
} else {
enemy_speed[i] = enemy_speed[i] * enemy_damp[i];
}
if (level.map["enemy_reach_" + i].hitTest(level.map.player) && (enemy_speed[i] > player_speed)) {
rmd = Math.round(Math.random() * 100);
if ((((_root.game_difficulty == "Easy") && (rmd < 80)) || ((_root.game_difficulty == "Normal") && (rmd > 50))) || ((_root.game_difficulty == "Hard") && (rmd < 20))) {
enemy_will_hit[i] = true;
} else {
enemy_will_hit[i] = false;
}
} else {
enemy_will_hit[i] = false;
}
i++;
}
SPEED_MULTIPLE = 5;
player_hit_rot = (player_rot = level.map.player._rotation + 90);
if (player_rot > 180) {
player_hit_rot = player_rot - 360;
} else if (player_rot < -180) {
player_hit_rot = player_rot + 360;
}
player_speed_x = Math.sin((player_hit_rot * Math.PI) / 180) * player_speed;
player_speed_y = Math.cos((player_hit_rot * Math.PI) / 180) * player_speed;
i = 1;
while (i <= ENEMY_NUM) {
enemy_hit_rot[i] = (enemy_rot[i] = level.map["enemy_" + i]._rotation);
if (enemy_rot[i] > 180) {
enemy_hit_rot[i] = enemy_rot[i] - 360;
} else if (enemy_rot[i] < -180) {
enemy_hit_rot[i] = enemy_rot[i] + 360;
}
enemy_speed_x[i] = (Math.sin((enemy_hit_rot[i] * Math.PI) / 180) * enemy_speed[i]) * SPEED_MULTIPLE;
enemy_speed_y[i] = (Math.cos((enemy_hit_rot[i] * Math.PI) / 180) * enemy_speed[i]) * SPEED_MULTIPLE;
i++;
}
i = 1;
while (i <= ENEMY_NUM) {
if (scena["enemy_" + i]._visible == false) {
} else {
new_hit_time = getTimer();
if (Math.abs(new_hit_time - enemy_hit_time[i]) > 60) {
isHit = scena.player.car.hit_area.hitTest(scena["enemy_" + i].car.hit_area);
if ((enemy_hit[i] == false) && (isHit == true)) {
p_rot = player_hit_rot;
if (p_rot < 0) {
p_rot = p_rot + 360;
}
e_rot = enemy_hit_rot[i];
if (e_rot < 0) {
e_rot = e_rot + 360;
}
if ((e_rot > (p_rot - 90)) && (e_rot < (p_rot + 90))) {
temp = player_speed_x;
player_speed_x = enemy_speed_x[i];
enemy_speed_x[i] = temp;
temp = player_speed_y;
player_speed_y = enemy_speed_y[i];
enemy_speed_y[i] = temp;
player_speed = Math.sqrt((player_speed_x * player_speed_x) + (player_speed_y * player_speed_y));
tmp = (player_speed + (enemy_speed[i] * 5)) / SPEED_MULTIPLE;
if (player_speed > enemy_speed[i]) {
player_speed = player_speed - (tmp / 2);
} else {
player_speed = player_speed + (tmp / 2);
enemy_speed[i] = enemy_speed[i] - ((tmp / SPEED_MULTIPLE) / 2);
}
} else {
temp = (player_speed_x + enemy_speed_x[i]) / 2;
player_speed_x = temp;
enemy_speed_x[i] = temp;
temp = (player_speed_y + enemy_speed_y[i]) / 2;
player_speed_y = temp;
enemy_speed_y[i] = temp;
p_s = Math.abs(player_speed);
e_s = Math.abs(enemy_speed[i] * SPEED_MULTIPLE);
if (p_s < e_s) {
player_speed = (-Math.sqrt((player_speed_x * player_speed_x) + (player_speed_y * player_speed_y))) / 2;
} else {
player_speed = Math.sqrt((player_speed_x * player_speed_x) + (player_speed_y * player_speed_y)) / 2;
enemy_speed[i] = ((-Math.sqrt((enemy_speed_x[i] * enemy_speed_x[i]) + (enemy_speed_y[i] * enemy_speed_y[i]))) / SPEED_MULTIPLE) / 2;
}
}
if (finish_level == false) {
if (_root.wuditime <= 0) {
hp = hp - HARM;
_root.wuditime = 20;
}
}
enemy_hit[i] = true;
enemy_hit_time[i] = new_hit_time;
if (soundPlaying == true) {
sound_crash.playSound(0, 1);
trace("fffffffffffffffffff");
}
} else if ((enemy_hit[i] == true) && (isHit == true)) {
p_rot = player_hit_rot;
if (p_rot < 0) {
p_rot = p_rot + 360;
}
e_rot = enemy_hit_rot[i];
if (e_rot < 0) {
e_rot = e_rot + 360;
}
if ((e_rot > (p_rot - 90)) && (e_rot < (p_rot + 90))) {
if (scena.player._y < scena["enemy_" + i]._y) {
player_speed = player_speed + 6;
} else {
player_speed = player_speed / 4;
}
} else {
enemy_speed[i] = enemy_speed[i] - 2;
}
} else if ((enemy_hit[i] == true) && (isHit == false)) {
enemy_hit[i] = false;
}
}
j = 1;
while (j <= ENEMY_NUM) {
if (i == j) {
} else {
new_hit_time = getTimer();
if ((Math.abs(new_hit_time - enemy_hit_time[i]) > 500) && (Math.abs(new_hit_time - enemy_hit_time[j]) > 500)) {
isHit = level.map["enemy_" + i].hitTest(level.map["enemy_" + j]);
if (isHit) {
e_rot_1 = enemy_hit_rot[i];
if (e_rot_1 < 0) {
e_rot_1 = e_rot_1 + 360;
}
e_rot_2 = enemy_hit_rot[j];
if (e_rot_2 < 0) {
e_rot_2 = e_rot_2 + 360;
}
if ((e_rot_2 > (e_rot_1 - 90)) && (e_rot_2 < (e_rot_1 + 90))) {
temp = enemy_speed_x[i];
enemy_speed_x[i] = enemy_speed_x[j];
enemy_speed_x[j] = temp;
temp = enemy_speed_y[i];
enemy_speed_y[i] = enemy_speed_y[j];
enemy_speed_y[j] = temp;
enemy_speed[i] = Math.sqrt((enemy_speed_x[i] * enemy_speed_x[i]) + (enemy_speed_y[i] * enemy_speed_y[i])) / SPEED_MULTIPLE;
enemy_speed[j] = Math.sqrt((enemy_speed_x[j] * enemy_speed_x[j]) + (enemy_speed_y[j] * enemy_speed_y[j])) / SPEED_MULTIPLE;
if (enemy_speed[i] > enemy_speed[j]) {
enemy_speed[i] = (Math.sqrt((enemy_speed_x[i] * enemy_speed_x[i]) + (enemy_speed_y[i] * enemy_speed_y[i])) / SPEED_MULTIPLE) + 1;
enemy_speed[j] = (Math.sqrt((enemy_speed_x[j] * enemy_speed_x[j]) + (enemy_speed_y[j] * enemy_speed_y[j])) / SPEED_MULTIPLE) - 1;
} else {
enemy_speed[i] = (Math.sqrt((enemy_speed_x[i] * enemy_speed_x[i]) + (enemy_speed_y[i] * enemy_speed_y[i])) / SPEED_MULTIPLE) - 1;
enemy_speed[j] = (Math.sqrt((enemy_speed_x[j] * enemy_speed_x[j]) + (enemy_speed_y[j] * enemy_speed_y[j])) / SPEED_MULTIPLE) + 1;
}
}
enemy_hit_time[i] = (enemy_hit_time[j] = new_hit_time);
}
}
if (level.map["enemy_reach_" + i].hitTest(level.map["enemy_" + j])) {
if (enemy_will_hit[i] == false) {
enemy_will_hit[i] = true;
if (enemy_speed[i] < enemy_maxspeed[i]) {
enemy_speed[i] = enemy_speed[i] + 0.24;
}
}
}
}
j++;
}
}
i++;
}
}
function damaging() {
if (((hp <= 0) && (damage == false)) && (finish_level == false)) {
key = false;
accel = 0;
damage = true;
scena.player.car._visible = false;
scena.player.pong._visible = true;
scena.player.pong.gotoAndPlay(1);
}
if (tire <= 20) {
MAX_SPEED = 50;
} else {
MAX_SPEED = 50;
}
}
function timer(time, g) {
paused = false;
if (timing) {
if (g == true) {
lapTime = getTimer() - time;
} else {
lapTime = time;
}
lapHours = Math.floor(lapTime / 3600000);
remaining = lapTime - (lapHours * 3600000);
lapMinutes = Math.floor(remaining / 60000);
remaining = remaining - (lapMinutes * 60000);
lapSeconds = Math.floor(remaining / 1000);
remaining = remaining - (lapSeconds * 1000);
lapHundredths = Math.floor(remaining / 10);
if (lapMinutes < 10) {
minutes = "0" + lapMinutes.toString();
} else {
minutes = lapMinutes.toString();
}
if (lapSeconds < 10) {
seconds = "0" + lapSeconds.toString();
} else {
seconds = lapSeconds.toString();
}
if (lapHundredths < 10) {
hundredths = "0" + lapHundredths.toString();
} else {
hundredths = lapHundredths.toString();
}
return((((minutes + ":") + seconds) + ":") + hundredths);
}
}
function gameLogic() {
if (colorChange > 0) {
colorChange--;
if (colorChange == 0) {
_root.bg_incar.T_best_lap.textColor = "0xcccccc";
} else if ((colorChange % 4) == 1) {
_root.bg_incar.T_best_lap.textColor = "0xffff00";
} else if ((colorChange % 4) == 3) {
_root.bg_incar.T_best_lap.textColor = "0xcccccc";
}
}
i = 2;
while (i < (CHECK_NUM + 2)) {
if ((player_next_check == i) && (hit_next_check != i)) {
if (check_array[i].hitTest(player_marker._x, player_marker._y, true)) {
hit_next_check = i;
trace("cheak" + hit_next_check);
player_next_check++;
check_points[i - 2] = 1;
if (player_next_check == (CHECK_NUM + 2)) {
player_next_check = 2;
}
}
}
i++;
}
if (check_array[0].hitTest(player_marker._x, player_marker._y, true)) {
somma = 0;
i = 0;
while (i < CHECK_NUM) {
somma = somma + check_points[i];
i++;
}
trace("checkstart,somma=" + somma);
if (somma == CHECK_NUM) {
finish_lap = true;
} else {
finish_lap = false;
}
player_next = 0;
hit_point = -1;
_root.cue_wrongway._visible = false;
_root.cue_illegal._visible = false;
}
if ((finish_lap == true) && (check_array[1].hitTest(player_marker._x, player_marker._y, true))) {
finish_laps++;
current_lap++;
player_next = 0;
i = 0;
while (i < CHECK_NUM) {
check_points[i] = 0;
i++;
}
trace("checkwin,finish_laps=" + finish_laps);
elapsed_time = getTimer() - startTime;
player_total_time = player_total_time + elapsed_time;
if ((elapsed_time < best_lap) || (best_lap == 0)) {
best_lap = elapsed_time;
best_lap_text = time;
colorChange = 20;
_root.bg_incar.T_best_lap.textColor = "0xFFFF00";
}
finish_lap = false;
startTime = getTimer();
if ((current_lap != (TOTAL_LAP + 1)) && (current_lap != 1)) {
_root.cue_lap_view = true;
_root.cue_lap_time = getTimer();
_root.cue_lap._visible = true;
if ((TOTAL_LAP == 3) && (current_lap == 2)) {
_root.cue_lap.gotoAndStop("lap_2_3");
} else if ((TOTAL_LAP == 4) && (current_lap == 2)) {
_root.cue_lap.gotoAndStop("lap_2_4");
} else if ((TOTAL_LAP == 4) && (current_lap == 3)) {
_root.cue_lap.gotoAndStop("lap_3_4");
} else if (TOTAL_LAP == current_lap) {
_root.cue_lap.gotoAndStop("lap_final");
}
}
if (_root.edit == "test") {
if (finish_laps == TOTAL_LAP) {
finish_laps--;
current_lap--;
gameOver("test");
}
} else if (_root.edit == "run") {
if (finish_laps == TOTAL_LAP) {
finish_laps--;
current_lap--;
gameOver("run");
}
} else if (finish_laps == TOTAL_LAP) {
finish_laps--;
current_lap--;
gameOver(false);
}
}
i = 1;
while (i <= ENEMY_NUM) {
if (finish_level == false) {
if (check_array[0].hitTest(_root["enemy_marker_" + i]._x, _root["enemy_marker_" + i]._y, true) && (enemy_start[i] == true)) {
enemy_finish_lap[i] = true;
}
if ((enemy_finish_lap[i] == true) && (check_array[1].hitTest(_root["enemy_marker_" + i]._x, _root["enemy_marker_" + i]._y, true))) {
enemy_finish_laps[i]++;
enemy_start[i] = false;
enemy_finish_lap[i] = false;
enemy_elapsed_time = getTimer() - enemy_startTime[i];
enemy_total_time[i] = enemy_total_time[i] + enemy_elapsed_time;
if ((enemy_elapsed_time < enemy_best_lap) || (enemy_best_lap == 0)) {
enemy_best_lap = enemy_elapsed_time;
enemy_best_lap_text = enemy_time[i];
}
enemy_startTime[i] = getTimer();
if (enemy_finish_laps[i] == TOTAL_LAP) {
enemy_accel[i] = 0;
enemy_over[i] = true;
}
}
}
i++;
}
}
function gameStart() {
key = (timing = true);
firstTime = (startTime = getTimer());
i = 1;
while (i <= ENEMY_NUM) {
enemy_accel[i] = acc;
enemy_startTime[i] = getTimer();
i++;
}
test_frame_begin_time = getTimer();
if (_root.soundStatus == 1) {
soundPlaying = true;
} else {
soundPlaying = false;
}
}
function gameOver(die) {
key = false;
finish_level = true;
compellent_brake = true;
soundPlaying = false;
bg_sound_playing = false;
_root.bg_sound.stop(("bg_sound_" + _root.rrmd) + ".mp3");
mingci = ENEMY_NUM + 1;
e = 1;
while (e <= ENEMY_NUM) {
if (enemy_over[e] == false) {
mingci--;
}
e++;
}
if (_root.bg_incar.mingci._currentframe != mingci) {
_root.bg_incar.mingci.gotoAndPlay(mingci);
}
_root.player_cup_time = _root.player_cup_time + player_total_time;
trace("ENEMY_NUM" + ENEMY_NUM);
i = 1;
while (i <= ENEMY_NUM) {
if ((enemy_over[i] == false) && (enemy_finish_laps[i] != 0)) {
enemy_total_time[i] = (enemy_total_time[i] / enemy_finish_laps[i]) * TOTAL_LAP;
} else if ((enemy_over[i] == false) && (enemy_finish_laps[i] == 0)) {
enemy_total_time[i] = player_total_time + Math.round(Math.random() * 1000);
}
trace("enemy_cup_time" + enemy_cup_time[i]);
trace("enemy_total_time" + enemy_total_time[i]);
_root.enemy_cup_time[i] = _root.enemy_cup_time[i] + enemy_total_time[i];
i++;
}
var _local2 = [0, 1, 2, 3, 4, 5, 6];
var _local3 = [player_total_time, enemy_total_time[1], enemy_total_time[2], enemy_total_time[3], enemy_total_time[4], enemy_total_time[5], enemy_total_time[6]];
var i = 1;
while (i <= ENEMY_NUM) {
var _local4 = 1;
while (_local4 <= ((ENEMY_NUM - i) + 1)) {
if (_local3[_local4 - 1] > _local3[_local4]) {
temp = _local2[_local4];
_local2[_local4] = _local2[_local4 - 1];
_local2[_local4 - 1] = temp;
temp = _local3[_local4];
_local3[_local4] = _local3[_local4 - 1];
_local3[_local4 - 1] = temp;
}
trace("temp_total_mingci" + _local2[_local4]);
trace("temp_total_time" + _local2[_local4]);
_local4++;
}
i++;
}
var i = 0;
var _local4 = 7;
while (i < 7) {
if (_local2[i] == 0) {
player_this_score = _local4;
_root.player_score = _root.player_score + _local4;
} else {
enemy_this_score[_local2[i]] = _local4;
_root.enemy_score[_local2[i]] = _root.enemy_score[_local2[i]] + _local4;
}
trace("_root.enemy_score" + _root.enemy_score[_local2[i]]);
i++;
_local4--;
}
if (die == false) {
_root.cue_finish._visible = true;
_root.cue_finish.gotoAndPlay(2);
var _local5 = 300000 - _root.player_total_time;
if (_local5 < 0) {
_local5 = 0;
}
_root.playerchinesesorce = _root.playerchinesesorce + _local5;
trace("ddddddddddd" + _root.playerchinesesorce);
} else if (die == true) {
clearFrame();
_root.playerchinesesorce = _root.playerchinesesorce + 0;
trace("ddddddddddd" + _root.playerchinesesorce);
gotoAndStop ("game over2");
} else if (die == "test") {
clearFrame();
gotoAndPlay ("create");
if (soundStatus == 1) {
_root.load_sound = new Sound();
load_sound.attachSound("bg_Menu.mp3");
load_sound.start();
}
} else if (die == "run") {
_root.cue_finish._visible = true;
_root.cue_finish.gotoAndPlay(2);
}
}
function clearFrame(target_mc) {
delete this.onEnterFrame;
for (var _local4 in _root) {
if (_root[_local4] != target_mc) {
_root[_local4].removeMovieClip();
}
}
}
_quality = "LOW";
stop();
load_sound.stop();
delete load_sound;
var map_width = 500;
var cur_circle = 1;
var map_array = new Array();
var map_data = [[0, 0, 0, 0, 0, 0], [6, 29, 36, 5, 90, 18], [6, 29, 36, 5, 180, 13], [6, 29, 36, 5, 180, 14], [6, 24, 36, 4, -60, 8], [6, 27, 36, 6, 90, 14], [6, 27, 35, 4, -90, 7]];
var TREE_NUM;
var CHECK_NUM;
var POINT_NUM;
var tree_array = new Array();
var tire_array = new Array();
var person_array = new Array();
var spanner_array = new Array();
var tire2_array = new Array();
var check_array = new Array();
var obb_array = new Array();
var point_array = new Array();
var path_array = new Array();
var main_array = new Array();
var edit;
var cue_Tire_time = 0;
_root.attframe = 20;
_root.frame = 0;
var sound_engine;
var sound_running_1;
var sound_running_2;
var sound_running_3;
var sound_running_4;
var sound_running_5;
var sound_running_6;
var sound_running_7;
var sound_running_8;
var sound_running_9;
var sound_brake;
var sound_turn;
var sound_rocket;
var sound_tree;
var sound_prop;
var sound_crash;
var SW = 550;
var SH = 400;
var MAGNIFY = 15;
var STRIPES = 60;
var GAME_XSCALE = 1;
var GAME_YSCALE = 1;
var topLayer = 100000;
var buttomLayer = 20;
var opptime = 30;
var ed;
var distancei = 0;
_root.wuditime = 0;
all_best_lap_text = ["--:--:--", "--:--:--", "--:--:--"];
init();
_root.onEnterFrame = race;
Symbol 7 MovieClip [fps] Frame 1
function calcFPS() {
var _local2 = getTimer();
var _local1 = _local2 - startTime;
numFrames++;
if (_local1 > 1000) {
startTime = getTimer();
fpsField.text = Math.round((numFrames * 1000) / _local1);
numFrames = 0;
}
}
var startTime = getTimer();
var numFrames = 0;
this.onEnterFrame = calcFPS;
Symbol 12 MovieClip [turn_lr] Frame 1
this._visible = false;
Symbol 25 MovieClip Frame 1
var total_bytes = _root.getBytesTotal();
var loaded_bytes = _root.getBytesLoaded();
var percent = Math.round((loaded_bytes / total_bytes) * 100);
this.onEnterFrame = function () {
loaded_bytes = _root.getBytesLoaded();
percent = Math.round((loaded_bytes / total_bytes) * 100);
if (percent < 100) {
load_tf.text = percent + "%";
load_img._width = (percent * 258) / 100;
} else {
delete this.onEnterFrame;
if (_root.localization_branding_nr == 2) {
_root.gotoAndStop(4);
} else {
_root.gotoAndStop(5);
}
}
};
Symbol 82 MovieClip Frame 1
gotoAndStop(_root.localization_branding2_nr);
Instance of Symbol 28 MovieClip in Symbol 82 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 37 MovieClip in Symbol 82 MovieClip Frame 2
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 40 MovieClip in Symbol 82 MovieClip Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 43 MovieClip in Symbol 82 MovieClip Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 46 MovieClip in Symbol 82 MovieClip Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 82 MovieClip Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 52 MovieClip in Symbol 82 MovieClip Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 82 MovieClip Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 58 MovieClip in Symbol 82 MovieClip Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 82 MovieClip Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 64 MovieClip in Symbol 82 MovieClip Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 82 MovieClip Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 70 MovieClip in Symbol 82 MovieClip Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 82 MovieClip Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 76 MovieClip in Symbol 82 MovieClip Frame 15
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 79 MovieClip in Symbol 82 MovieClip Frame 16
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 98 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
this.onRelease = function () {
getURL (_root.freegames_url, "_blank");
};
Symbol 3263 MovieClip [__Packages.Vector2] Frame 0
class Vector2
{
var x, y;
function Vector2 (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new Vector2(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new Vector2(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new Vector2(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new Vector2(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 3264 MovieClip [__Packages.speedMC] Frame 0
class speedMC
{
var _delta, _speed;
function speedMC () {
_delta = Math.round(maxSpeed / 24);
var _local2 = 0;
while (_local2 < 24) {
this["_speedBar" + _local2]._visible = false;
_local2++;
}
}
function setSpeed(arg) {
_speed = arg;
showSpeed();
}
function showSpeed() {
var _local3 = Math.round(_speed / _delta);
var _local2 = 0;
while (_local2 < 24) {
if (_local2 < _local3) {
this["_speedBar" + _local2]._visible = true;
} else {
this["_speedBar" + _local2]._visible = false;
}
_local2++;
}
}
var maxSpeed = 300;
}
Symbol 3265 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var x, y;
function Vector (x, y) {
this.x = x;
this.y = y;
}
static function FormatAngle(r) {
if (r > 180) {
r = r - 360;
}
if (r < -180) {
r = r + 360;
}
return(r);
}
static function FormatAngle90(r) {
if (r > 90) {
r = 180 - r;
}
if (r < -90) {
r = r + 180;
}
return(r);
}
function toString() {
var _local3 = Math.round(x * 1000) / 1000;
var _local2 = Math.round(y * 1000) / 1000;
return(((("[" + _local3) + ", ") + _local2) + "]");
}
function getMe() {
return({x:x, y:y});
}
function reset(x, y) {
this.x = x;
this.y = y;
}
function getClone() {
return(new Vector(x, y));
}
function plus(v) {
with (this) {
x = x + v.x;
y = y + v.y;
}
}
function plusNew(v) {
with (this) {
return(new Vector(x + v.x, y + v.y));
}
}
function minus(v) {
with (this) {
x = x - v.x;
y = y - v.y;
}
}
function minusNew(v) {
with (this) {
return(new Vector(x - v.x, y - v.y));
}
}
function negate() {
with (this) {
x = -x;
y = -y;
}
}
function negateNew(v) {
with (this) {
return(new Vector(-x, -y));
}
}
function scale(s) {
x = x * s;
y = y * s;
}
function scaleNew(s) {
with (this) {
return(new Vector(x * s, y * s));
}
}
function rotate(ang) {
var _local3 = TF_Class.cosD(ang);
var _local2 = TF_Class.sinD(ang);
var _local5 = (x * _local3) - (y * _local2);
var _local4 = (x * _local2) + (y * _local3);
x = _local5;
y = _local4;
}
function rotateNew(ang) {
with (this) {
var v = new Vector(x, y, z);
}
v.rotate(ang);
return(v);
}
function dot(v) {
with (this) {
return((x * v.x) + (y * v.y));
}
}
function getNormal() {
with (this) {
new Vector(-y, x);
}
}
function isNormalTo(v) {
return(dot(v) == 0);
}
function angleBetween(v) {
var _local3 = dot(v);
var _local2 = _local3 / (getLength() * v.getLength());
return(TF_Class.acosD(_local2));
}
function getLength() {
with (this) {
return(Math.sqrt((x * x) + (y * y)));
}
}
function setLength(len) {
var _local2 = getLength();
if (_local2) {
scale(len / _local2);
} else {
x = len;
}
}
function getAngle() {
return(TF_Class.atan2D(y, x));
}
function setAngle(ang) {
with (this) {
var r = getLength();
x = r * cosD(ang);
y = r * sinD(ang);
}
}
}
Symbol 3266 MovieClip [__Packages.TF_Class] Frame 0
class TF_Class
{
function TF_Class () {
}
static function sinD(angle) {
return(Math.sin(angle * (Math.PI/180)));
}
static function cosD(angle) {
return(Math.cos(angle * (Math.PI/180)));
}
static function tanD(angle) {
return(Math.tan(angle * (Math.PI/180)));
}
static function asinD(ratio) {
return(Math.asin(ratio) * 57.2957795130823);
}
static function acosD(ratio) {
return(Math.acos(ratio) * 57.2957795130823);
}
static function atanD(ratio) {
return(Math.atan(ratio) * 57.2957795130823);
}
static function atan2D(y, x) {
return(Math.atan2(y, x) * 57.2957795130823);
}
static function distance(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function angleOfLine(x1, y1, x2, y2) {
return(atan2D(y2 - y1, x2 - x1));
}
static function degreesToRadians(angle) {
return(angle * (Math.PI/180));
}
static function radiansToDegrees(angle) {
return(angle * 57.2957795130823);
}
static function fixAngle(angle) {
angle = angle % false;
return((angle ? (angle + 360) : (angle)));
}
static function cartesianToPolar(p) {
var _local3 = Math.sqrt((p.x * p.x) + (p.y * p.y));
var _local2 = atan2D(p.y, p.x);
return({r:_local3, t:_local2});
}
static function polarToCartesian(p) {
var _local3 = p.r * cosD(p.t);
var _local2 = p.r * sinD(p.t);
return({x:_local3, y:_local2});
}
}
Symbol 3267 MovieClip [__Packages.SoundObject] Frame 0
class SoundObject
{
static var linkArr;
var _link, sndObj, intervalId;
function SoundObject (link, Volume) {
trace(linkArr);
if (!Volume) {
Volume = 100;
}
_link = link;
var _local5 = _root.soundmc.createEmptyMovieClip("snd" + _root.soundmc.getNextHighestDepth(), _root.soundmc.getNextHighestDepth());
if (linkArr == undefined) {
linkArr = new Array();
sndObj = new Sound(_local5);
trace("gggg");
sndObj.attachSound(link);
linkArr.push(link);
} else {
var _local3 = 0;
while (_local3 < linkArr.length) {
if (link == linkArr[_local3]) {
linkExist = true;
}
_local3++;
}
if (!linkExist) {
sndObj = new Sound(_local5);
trace("bbbb");
sndObj.attachSound(link);
linkArr.push(link);
} else if (linkExist) {
trace("this file loaded");
}
}
sndObj.setVolume(Volume);
trace("linkArr=" + linkArr);
}
function playSound(beginPoint, cycleTimes) {
trace(sndObj.getVolume());
if (playStatus == "on") {
} else if (playStatus == "off") {
sndObj.start(beginPoint, cycleTimes);
playStatus = "on";
sndObj.onSoundComplete = mx.utils.Delegate.create(this, transStatus);
}
}
function stopSound() {
if (playStatus == "on") {
sndObj.stop(_link);
playStatus = "off";
}
}
function delayPlay(delayTime, cycleTimes) {
var _local2 = this;
var _local3 = delayTime * 1000;
playSound(0, cycleTimes);
intervalId = setInterval(_local2, "sndPlay", _local3, cycleTimes);
}
function sndPlay(cycleTimes) {
if (!isDelayPlay) {
sndObj.start(0, cycleTimes);
playStatus = "on";
sndObj.onSoundComplete = mx.utils.Delegate.create(this, transStatus);
isDelayPlay = true;
} else if (isDelayPlay) {
clearInterval(intervalId);
}
}
function transStatus() {
playStatus = "off";
}
var playStatus = "off";
var isDelayPlay = false;
var linkExist = false;
}
Symbol 3268 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 3269 MovieClip [__Packages.ED] Frame 0
class ED
{
var Dmc, SurfaceArr, LengthX, minX, LengthY, minY;
function ED (Dmc) {
this.Dmc = Dmc;
SurfaceArr = new Array();
}
function GetHitFace(x, y) {
var _local4 = int((x - minX) / LengthX);
var _local3 = int((y - minY) / LengthY);
var _local2 = 0;
while (_local2 < SurfaceArr[_local4][_local3].length) {
if (SurfaceArr[_local4][_local3][_local2].HitTest(x, y)) {
return(SurfaceArr[_local4][_local3][_local2]);
}
_local2++;
}
return(null);
}
function ReTidyFace() {
var _local11 = SurfaceArr[0].maxX;
var _local10 = SurfaceArr[0].maxY;
minX = SurfaceArr[0].minX;
minY = SurfaceArr[0].minY;
var _local4 = 1;
while (_local4 < SurfaceArr.length) {
if (SurfaceArr[_local4].maxX > _local11) {
_local11 = SurfaceArr[_local4].maxX;
}
if (SurfaceArr[_local4].minX < minX) {
minX = SurfaceArr[_local4].minX;
}
if (SurfaceArr[_local4].maxY > _local10) {
_local10 = SurfaceArr[_local4].maxY;
}
if (SurfaceArr[_local4].minY < minY) {
minY = SurfaceArr[_local4].minY;
}
_local4++;
}
LengthX = (_local11 - minX) / int(Math.sqrt(SurfaceArr.length));
LengthY = (_local10 - minY) / int(Math.sqrt(SurfaceArr.length));
var _local5 = new Array();
trace(int(Math.sqrt(SurfaceArr.length)));
_local4 = 0;
while (_local4 <= int(Math.sqrt(SurfaceArr.length))) {
_local5.push(new Array());
var _local3 = 0;
while (_local3 < int(Math.sqrt(SurfaceArr.length))) {
_local5[_local4].push(new Array());
_local3++;
}
_local4++;
}
_local4 = 0;
while (_local4 < SurfaceArr.length) {
var _local9 = int((SurfaceArr[_local4].minX - minX) / LengthX);
var _local8 = int((SurfaceArr[_local4].maxX - minX) / LengthX);
var _local7 = int((SurfaceArr[_local4].minY - minY) / LengthY);
var _local6 = int((SurfaceArr[_local4].maxY - minY) / LengthY);
var _local3 = _local9;
while (_local3 <= _local8) {
var _local2 = _local7;
while (_local2 <= _local6) {
_local5[_local3][_local2].push(SurfaceArr[_local4]);
_local2++;
}
_local3++;
}
_local4++;
}
SurfaceArr = _local5;
}
function AddLine(x1, y1, x2, y2) {
var _local2 = new EDLine(x1, y1, x2, y2);
SurfaceArr.push(_local2);
return(_local2);
}
function AddRectangle(x, y, width, height, angle) {
var _local2 = new EDRectangle(x, y, width, height, angle);
SurfaceArr.push(_local2);
return(_local2);
}
function delED(EdId) {
var _local4 = 0;
while (_local4 < SurfaceArr.length) {
var _local3 = 0;
while (_local3 < SurfaceArr[_local4].length) {
var _local2 = 0;
while (_local2 < SurfaceArr[_local4][_local3].length) {
if (SurfaceArr[_local4][_local3][_local2].Id == EdId) {
delete SurfaceArr[_local4][_local3][_local2];
SurfaceArr[_local4][_local3].splice(_local2, 1);
}
_local2++;
}
_local3++;
}
_local4++;
}
}
function Print() {
var _local4 = 0;
while (_local4 < SurfaceArr.length) {
var _local3 = 0;
while (_local3 < SurfaceArr[_local4].length) {
var _local2 = 0;
while (_local2 < SurfaceArr[_local4][_local3].length) {
SurfaceArr[_local4][_local3][_local2].paint(Dmc);
_local2++;
}
_local3++;
}
_local4++;
}
}
}
Symbol 3270 MovieClip [__Packages.EdFace] Frame 0
interface EdFace
{
}
Symbol 3271 MovieClip [__Packages.EDLine] Frame 0
class EDLine implements EdFace
{
var Id, p1, p2, Ang, minX, maxX, minY, maxY;
function EDLine (x1, y1, x2, y2) {
Id = Addid++;
p1 = new Vector(x1, y1);
p2 = new Vector(x2, y2);
Ang = (Math.atan2(y2 - y1, x2 - x1) / Math.PI) * 180;
var _local4 = new Vector(LineWidth, 0);
_local4.rotate(Ang - 90);
var _local3 = new Array();
_local3.push(p1);
_local3.push(p2);
_local3.push(new Vector(p2.x + _local4.x, p2.y + _local4.y));
_local3.push(new Vector(p1.x + _local4.x, p1.y + _local4.y));
minX = _local3[0].x;
maxX = _local3[0].x;
minY = _local3[0].y;
maxY = _local3[0].y;
var _local2 = 1;
while (_local2 < _local3.length) {
if (_local3[_local2].x < minX) {
minX = _local3[_local2].x;
}
if (_local3[_local2].x > maxX) {
maxX = _local3[_local2].x;
}
if (_local3[_local2].y < minY) {
minY = _local3[_local2].y;
}
if (_local3[_local2].y > maxY) {
maxY = _local3[_local2].y;
}
delete _local3[_local2];
_local2++;
}
}
function getId() {
return(Id);
}
function getAngle() {
return(Ang);
}
function HitTest(x, y) {
if ((((x > maxX) || (x < minX)) || (y > maxY)) || (y < minY)) {
return(false);
}
var _local2 = new Vector(x - p1.x, y - p1.y);
_local2.rotate(-Ang);
var _local3 = new Vector(p1.x + _local2.x, p1.y + _local2.y);
_local2 = new Vector(p2.x - p1.x, p2.y - p1.y);
_local2.rotate(-Ang);
var _local4 = new Vector(p1.x + _local2.x, p1.y + _local2.y);
if ((((_local3.x > p1.x) && (_local3.x < _local4.x)) && (_local3.y < p1.y)) && (_local3.y > (p1.y - LineWidth))) {
onConnect();
return(true);
}
return(false);
}
function onConnect() {
}
function paint(Dmc) {
Dmc.lineStyle(2, 0, 100);
Dmc.moveTo(p1.x, p1.y);
Dmc.lineTo(p2.x, p2.y);
Dmc.lineTo(p2.x + 2, p2.y);
Dmc.lineTo(p2.x + 2, p2.y + 2);
Dmc.lineTo(p2.x, p2.y + 2);
Dmc.lineTo(p2.x, p2.y);
Dmc.lineStyle(1, 255, 100);
var _local3 = new Vector(LineWidth, 0);
_local3.rotate(Ang - 90);
Dmc.lineTo(p2.x + _local3.x, p2.y + _local3.y);
Dmc.lineTo(p1.x + _local3.x, p1.y + _local3.y);
Dmc.lineTo(p1.x, p1.y);
}
static var Addid = 0;
var LineWidth = 50;
}
Symbol 3272 MovieClip [__Packages.EDRectangle] Frame 0
class EDRectangle extends EDLine implements EdFace
{
var LineWidth;
function EDRectangle (x, y, width, height, ang) {
if (ang == undefined) {
ang = 0;
}
var _local3 = new Vector((-width) / 2, (-height) / 2);
_local3.rotate(ang);
var _local5 = new Vector(x + _local3.x, y + _local3.y);
_local3.x = width / 2;
_local3.y = (-height) / 2;
_local3.rotate(ang);
var _local4 = new Vector(x + _local3.x, y + _local3.y);
LineWidth = height;
super(_local4.x, _local4.y, _local5.x, _local5.y);
}
}
Symbol 118 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 119 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
this._parent.resetEditor();
this._parent.bg_btn.removeMovieClip();
this.removeMovieClip();
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 132 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 133 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
this._parent.cur_layer = 0;
this._parent.setLayer();
this._parent.bg_btn.removeMovieClip();
this.removeMovieClip();
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 142 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 144 Button
on (release) {
trace(_root.data_id);
var next_step = _parent.checkRoad("save", name_tf.text);
if (next_step == true) {
_root.my_data_name = name_tf.text;
_parent.msgBox(_root.level_code, "show code");
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 157 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 158 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
gotoAndStop ("add");
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 159 Button
on (release) {
_root.lock = false;
_parent.bg_btn.removeMovieClip();
this.removeMovieClip();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 178 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 179 Button
on (release) {
System.setClipboard(msg_tf.text);
nextFrame();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 193 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 205 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 219 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 221 Button
on (release) {
_root.lock = false;
_parent.bg_btn.removeMovieClip();
this.removeMovieClip();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 246 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 266 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 268 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
if (this._currentframe < 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
this.onRelease = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.game_difficulty = "Normal";
_root.easy_btn.gotoAndStop("out");
_root.hard_btn.gotoAndStop("out");
this.gotoAndStop("select");
if ((_root._currentframe == 15) || (_root._currentframe == 20)) {
_root.bg_btn.removeMovieClip();
_root.gotoAndStop("play");
_root.msg_box.removeMovieClip();
}
_root.gotoAndStop("play");
_root.go_mc._visible = true;
};
this.onReleaseOutside = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.game_difficulty = "Normal";
_root.easy_btn.gotoAndStop("out");
_root.hard_btn.gotoAndStop("out");
this.gotoAndStop("select");
if (_root._currentframe == 15) {
_root.bg_btn.removeMovieClip();
_root.gotoAndStop("play");
_root.msg_box.removeMovieClip();
}
};
Symbol 289 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 290 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
if (this._currentframe < 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
this.onRelease = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.game_difficulty = "Easy";
_root.normal_btn.gotoAndStop("out");
_root.hard_btn.gotoAndStop("out");
this.gotoAndStop("select");
if ((_root._currentframe == 15) || (_root._currentframe == 20)) {
_root.bg_btn.removeMovieClip();
_root.gotoAndStop("play");
_root.msg_box.removeMovieClip();
}
_root.gotoAndStop("play");
_root.go_mc._visible = true;
};
this.onReleaseOutside = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.game_difficulty = "Easy";
_root.normal_btn.gotoAndStop("out");
_root.hard_btn.gotoAndStop("out");
this.gotoAndStop("select");
if (_root._currentframe == 15) {
_root.bg_btn.removeMovieClip();
_root.gotoAndStop("play");
_root.msg_box.removeMovieClip();
}
};
Symbol 303 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 305 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
if (this._currentframe < 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
this.onRelease = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.game_difficulty = "Hard";
_root.normal_btn.gotoAndStop("out");
_root.easy_btn.gotoAndStop("out");
this.gotoAndStop("select");
if ((_root._currentframe == 15) || (_root._currentframe == 20)) {
_root.bg_btn.removeMovieClip();
_root.gotoAndStop("play");
_root.msg_box.removeMovieClip();
}
_root.gotoAndStop("play");
_root.go_mc._visible = true;
};
this.onReleaseOutside = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.game_difficulty = "Hard";
_root.normal_btn.gotoAndStop("out");
_root.easy_btn.gotoAndStop("out");
this.gotoAndStop("select");
if (_root._currentframe == 15) {
_root.bg_btn.removeMovieClip();
_root.gotoAndStop("play");
_root.msg_box.removeMovieClip();
}
};
Symbol 306 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
delete _root.level_code;
this._parent.bg_btn.removeMovieClip();
this.removeMovieClip();
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 307 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.lock = false;
_parent.bg_btn.removeMovieClip();
this.removeMovieClip();
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 324 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 325 Button
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 337 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 340 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
gotoAndStop ("file name");
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 341 Button
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
gotoAndStop ("add");
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 353 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 366 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 367 MovieClip [msg_box] Frame 1
stop();
Symbol 367 MovieClip [msg_box] Frame 5
stop();
if (_root.my_data_name != undefined) {
name_tf.text = _root.my_data_name;
}
Selection.setFocus("name_tf");
if (_root.localization_branding_nr == 1) {
this.name_tf.text = "Max. 13 characters";
}
if (_root.localization_branding_nr == 2) {
this.name_tf.text = "Max. 13 characters";
}
if (_root.localization_branding_nr == 3) {
this.name_tf.text = "Max. 13 karakters";
}
if (_root.localization_branding_nr == 4) {
this.name_tf.text = "Max. 13 characters";
}
if (_root.localization_branding_nr == 5) {
this.name_tf.text = "Max. 13 Zeichen";
}
if (_root.localization_branding_nr == 6) {
this.name_tf.text = "Maks. 13 znak\u00F3w";
}
if (_root.localization_branding_nr == 7) {
this.name_tf.text = "Max 13 bokst\u00E4ver";
}
if (_root.localization_branding_nr == 8) {
this.name_tf.text = "Max. 13 caratteri";
}
if (_root.localization_branding_nr == 9) {
this.name_tf.text = "M\u00E1x. 13 caracteres";
}
if (_root.localization_branding_nr == 10) {
this.name_tf.text = "M\u00E1x. 13 caracteres";
}
if (_root.localization_branding_nr == 11) {
this.name_tf.text = "Max. 13 characters";
}
if (_root.localization_branding_nr == 12) {
this.name_tf.text = "\u041C\u0430\u043A\u0441. 13 \u0437\u043D\u0430\u043A\u043E\u0432";
}
if (_root.localization_branding_nr == 13) {
this.name_tf.text = "Mak. 13 karakter";
}
Symbol 367 MovieClip [msg_box] Frame 10
stop();
if (_root.localization_branding_nr == 1) {
this.msg_tf.text = "Please enter a name for this track:";
}
if (_root.localization_branding_nr == 2) {
this.msg_tf.text = "Please enter a name for this track:";
}
if (_root.localization_branding_nr == 3) {
this.msg_tf.text = "Naam invoeren voor deze baan:";
}
if (_root.localization_branding_nr == 4) {
this.msg_tf.text = "Please enter a name for this track:";
}
if (_root.localization_branding_nr == 5) {
this.msg_tf.text = "Gib einen Namen f\u00FCr die Strecke ein:";
}
if (_root.localization_branding_nr == 6) {
this.msg_tf.text = "Wprowad\u017A nazw\u0119 dla tej mapy:";
}
if (_root.localization_branding_nr == 7) {
this.msg_tf.text = "Ange ett namn p\u00E5 den h\u00E4r banan:";
}
if (_root.localization_branding_nr == 8) {
this.msg_tf.text = "Nomina questo percorso:";
}
if (_root.localization_branding_nr == 9) {
this.msg_tf.text = "Escribe un nombre para este circuito:";
}
if (_root.localization_branding_nr == 10) {
this.msg_tf.text = "Nome do circuito";
}
if (_root.localization_branding_nr == 11) {
this.msg_tf.text = "Please enter a name for this track:";
}
if (_root.localization_branding_nr == 12) {
this.msg_tf.text = "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0434\u043B\u044F \u044D\u0442\u043E\u0439 \u043A\u0430\u0440\u0442\u044B:";
}
if (_root.localization_branding_nr == 13) {
this.msg_tf.text = "Silakan masukkan nama untuk jalur ini:";
}
Symbol 367 MovieClip [msg_box] Frame 15
stop();
scroll_bar_y = scroll_bar._y;
scroll_bar_miny = 58;
scroll_bar_maxy = 83.5;
rate = (scroll_bar_maxy - scroll_bar_miny) / msg_tf.maxscroll;
scroll_up.onPress = function () {
msg_tf.scroll--;
scroll_bar._y = scroll_bar_y + (msg_tf.scroll * rate);
if (msg_tf.scroll == 1) {
scroll_bar._y = scroll_bar_y;
}
};
scroll_down.onPress = function () {
msg_tf.scroll++;
scroll_bar._y = scroll_bar_y + (msg_tf.scroll * rate);
};
scroll_bar.onPress = function () {
this.onEnterFrame = function () {
this.startDrag(true, scroll_bar._x, scroll_bar_y, scroll_bar._x, scroll_bar_maxy);
msg_tf.scroll = Math.round((scroll_bar._y - scroll_bar_y) / rate);
trace(Math.round((scroll_bar._y - scroll_bar_y) / rate));
};
};
scroll_bar.onRollOut = function () {
this.stopDrag();
delete this.onEnterFrame;
};
scroll_bar.onRelease = function () {
this.stopDrag();
delete this.onEnterFrame;
};
scroll_bar.onReleaseOutside = function () {
this.stopDrag();
delete this.onEnterFrame;
};
Symbol 367 MovieClip [msg_box] Frame 20
stop();
Symbol 367 MovieClip [msg_box] Frame 26
stop();
var i = 1;
while (i < 4) {
var data_obj = _root.loadData(i, data_obj);
var txt = data_obj.data_name;
if (txt) {
this[("file_" + i) + "_tf"].text = txt;
this["s" + i].onRelease = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.data_id = Number(this._name.charAt(1));
gotoAndStop ("add1");
};
} else {
if (_root.localization_branding_nr == 1) {
this[("file_" + i) + "_tf"].text = ("Save file " + i) + " empty";
}
if (_root.localization_branding_nr == 2) {
this[("file_" + i) + "_tf"].text = "\u7A7A\u8BB0\u5F55" + i;
}
if (_root.localization_branding_nr == 3) {
this[("file_" + i) + "_tf"].text = ("Opgeslagen bestand " + i) + " leeg";
}
if (_root.localization_branding_nr == 4) {
this[("file_" + i) + "_tf"].text = ("Sauvegarde fichier " + i) + " vide";
}
if (_root.localization_branding_nr == 5) {
this[("file_" + i) + "_tf"].text = ("Gespeicherte Datei " + i) + " leer";
}
if (_root.localization_branding_nr == 6) {
this[("file_" + i) + "_tf"].text = ("Zapisz plik " + i) + " pusty";
}
if (_root.localization_branding_nr == 7) {
this[("file_" + i) + "_tf"].text = ("Sparfil " + i) + " tom";
}
if (_root.localization_branding_nr == 8) {
this[("file_" + i) + "_tf"].text = ("File di salvataggio " + i) + " vuoto";
}
if (_root.localization_branding_nr == 9) {
this[("file_" + i) + "_tf"].text = ("Archivo de guardado " + i) + " vac\u00EDo";
}
if (_root.localization_branding_nr == 10) {
this[("file_" + i) + "_tf"].text = ("Arquivo " + i) + " vazio";
}
if (_root.localization_branding_nr == 11) {
this[("file_" + i) + "_tf"].text = ("Guardar ficheiro " + i) + " vazio";
}
if (_root.localization_branding_nr == 12) {
this[("file_" + i) + "_tf"].text = ("\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0444\u0430\u0439\u043B " + i) + " \u043F\u0443\u0441\u0442\u043E\u0439";
}
if (_root.localization_branding_nr == 13) {
this[("file_" + i) + "_tf"].text = ("Simpan arsip " + i) + " kosong";
}
this["s" + i].onRelease = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.data_id = Number(this._name.charAt(1));
gotoAndStop ("file name");
};
}
i++;
}
Symbol 367 MovieClip [msg_box] Frame 31
stop();
var fff = _root.loadData(_root.data_id);
var my_date = new Date(fff.Dat);
ttttt = ((((((((((("*" + fff.data_name) + "* (*") + my_date.getFullYear()) + "-") + (my_date.getMonth() + 1)) + "-") + my_date.getDate()) + "* *") + my_date.getHours()) + ":") + my_date.getMinutes()) + "*)";
this.txt.text = ((((((((((("*" + fff.data_name) + "* (*") + my_date.getFullYear()) + "-") + (my_date.getMonth() + 1)) + "-") + my_date.getDate()) + "* *") + my_date.getHours()) + ":") + my_date.getMinutes()) + "*)";
Symbol 378 MovieClip [spanner_img] Frame 1
this.onRelease = function () {
if (_root.map_editor_mc.cur_layer == 1) {
if (_root.map_editor_mc.obj_type == 0) {
var _local3 = Number(this._name.slice(4));
delete _root.map_editor_mc.obj_array[_local3];
_root.map_editor_mc.obj_max++;
_root.map_editor_mc.showMax();
this.removeMovieClip();
}
}
};
Symbol 381 MovieClip [tire_img] Frame 1
this.onRelease = function () {
if (_root.map_editor_mc.cur_layer == 1) {
if (_root.map_editor_mc.obj_type == 0) {
var _local3 = Number(this._name.slice(4));
delete _root.map_editor_mc.obj_array[_local3];
_root.map_editor_mc.obj_max++;
_root.map_editor_mc.showMax();
this.removeMovieClip();
}
}
};
Symbol 384 MovieClip [obj_img] Frame 1
this.onRelease = function () {
if (_root.map_editor_mc.cur_layer == 1) {
if (_root.map_editor_mc.obj_type == 0) {
var _local3 = Number(this._name.slice(4));
delete _root.map_editor_mc.obj_array[_local3];
_root.map_editor_mc.obj_max++;
_root.map_editor_mc.showMax();
this.removeMovieClip();
}
}
};
Symbol 450 MovieClip Frame 1
stop();
Instance of Symbol 389 MovieClip "hit_area" in Symbol 450 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 2
stop();
Instance of Symbol 393 MovieClip "hit_area" in Symbol 450 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 3
stop();
Instance of Symbol 397 MovieClip "hit_area" in Symbol 450 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 4
stop();
Instance of Symbol 401 MovieClip "hit_area" in Symbol 450 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 5
stop();
Instance of Symbol 405 MovieClip "hit_area" in Symbol 450 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 6
stop();
Instance of Symbol 409 MovieClip "hit_area" in Symbol 450 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 7
stop();
Instance of Symbol 413 MovieClip "hit_area" in Symbol 450 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 8
stop();
Instance of Symbol 417 MovieClip "hit_area" in Symbol 450 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 9
stop();
Instance of Symbol 421 MovieClip "hit_area" in Symbol 450 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 10
stop();
Instance of Symbol 425 MovieClip "hit_area" in Symbol 450 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 11
stop();
Instance of Symbol 429 MovieClip "hit_area" in Symbol 450 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 12
stop();
Instance of Symbol 425 MovieClip "hit_area" in Symbol 450 MovieClip Frame 12
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 13
stop();
Instance of Symbol 421 MovieClip "hit_area" in Symbol 450 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 14
stop();
Instance of Symbol 417 MovieClip "hit_area" in Symbol 450 MovieClip Frame 14
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 15
stop();
Instance of Symbol 413 MovieClip "hit_area" in Symbol 450 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 16
stop();
Instance of Symbol 409 MovieClip "hit_area" in Symbol 450 MovieClip Frame 16
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 17
stop();
Instance of Symbol 405 MovieClip "hit_area" in Symbol 450 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 18
stop();
Instance of Symbol 401 MovieClip "hit_area" in Symbol 450 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 19
stop();
Instance of Symbol 397 MovieClip "hit_area" in Symbol 450 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
}
Symbol 450 MovieClip Frame 20
stop();
Instance of Symbol 393 MovieClip "hit_area" in Symbol 450 MovieClip Frame 20
onClipEvent (load) {
_visible = false;
}
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 3
stop();
Symbol 503 MovieClip Frame 4
stop();
Symbol 503 MovieClip Frame 5
stop();
Symbol 503 MovieClip Frame 6
stop();
Symbol 503 MovieClip Frame 7
stop();
Symbol 503 MovieClip Frame 8
stop();
Symbol 503 MovieClip Frame 9
stop();
Symbol 503 MovieClip Frame 10
stop();
Symbol 503 MovieClip Frame 11
stop();
Symbol 503 MovieClip Frame 12
stop();
Symbol 503 MovieClip Frame 13
stop();
Symbol 503 MovieClip Frame 14
stop();
Symbol 503 MovieClip Frame 15
stop();
Symbol 503 MovieClip Frame 16
stop();
Symbol 503 MovieClip Frame 17
stop();
Symbol 503 MovieClip Frame 18
stop();
Symbol 503 MovieClip Frame 19
stop();
Symbol 503 MovieClip Frame 20
stop();
Symbol 503 MovieClip Frame 21
stop();
Symbol 503 MovieClip Frame 22
stop();
Symbol 503 MovieClip Frame 23
stop();
Symbol 503 MovieClip Frame 24
stop();
Symbol 503 MovieClip Frame 25
stop();
Symbol 503 MovieClip Frame 26
stop();
Symbol 510 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 511 Button
on (release) {
trace("ddddddddddd" + _root.playerchinesesorce);
var time = new Date().getTime();
b = _root.SortT();
_global.gameID2 = Number(_global.gameID) + (_root.cup_id - 1);
a = _root.hex_average(((String(_global.gameID2) + _root.playerchinesesorce) + b) + time);
_root.DrawLine(a, b, 10, 10, 15, 15);
c = _global.strqq;
_root.senturl(_root.playerchinesesorce, b, c, time);
_root.gotoAndStop("menu");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.submit_mc.removeMovieClip();
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 515 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 516 MovieClip [submit_mc] Frame 1
stop();
Selection.setFocus("T_name");
Symbol 519 MovieClip [small_person_img] Frame 1
this.onRelease = function () {
if (_root.map_editor_mc.cur_layer == 1) {
if (_root.map_editor_mc.obj_type == 0) {
var _local3 = Number(this._name.slice(4));
delete _root.map_editor_mc.obj_array[_local3];
_root.map_editor_mc.obj_max++;
_root.map_editor_mc.showMax();
this.removeMovieClip();
}
}
};
Symbol 522 MovieClip [small_tire_img] Frame 1
this.onRelease = function () {
if (_root.map_editor_mc.cur_layer == 1) {
if (_root.map_editor_mc.obj_type == 0) {
var _local3 = Number(this._name.slice(4));
delete _root.map_editor_mc.obj_array[_local3];
_root.map_editor_mc.obj_max++;
_root.map_editor_mc.showMax();
this.removeMovieClip();
}
}
};
Symbol 525 MovieClip [small_tree_img] Frame 1
this.onRelease = function () {
if (_root.map_editor_mc.cur_layer == 1) {
if (_root.map_editor_mc.obj_type == 0) {
var _local3 = Number(this._name.slice(4));
delete _root.map_editor_mc.obj_array[_local3];
_root.map_editor_mc.obj_max++;
_root.map_editor_mc.showMax();
this.removeMovieClip();
}
}
};
Symbol 528 MovieClip [map_cue] Frame 39
stop();
removeMovieClip(this);
Symbol 548 MovieClip [bg_btn] Frame 1
this.onRollOver = function () {
this.useHandCursor = false;
};
Symbol 552 MovieClip [empty_map] Frame 1
stop();
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 552 MovieClip [empty_map] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 552 MovieClip [empty_map] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 552 MovieClip [empty_map] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 552 MovieClip [empty_map] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 552 MovieClip [empty_map] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 552 MovieClip [empty_map] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
}
Symbol 563 MovieClip Frame 1
_visible = false;
Symbol 565 MovieClip Frame 1
this._visible = false;
Symbol 567 MovieClip Frame 1
_visible = false;
Symbol 573 MovieClip Frame 1
_visible = false;
Symbol 575 MovieClip Frame 1
_visible = false;
Symbol 576 MovieClip [map_3] Frame 1
stop();
Instance of Symbol 375 MovieClip [tree_mini] "tree_26" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_27" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_28" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_29" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_30" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_31" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_32" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_33" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_34" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_35" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_20" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_21" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_22" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_23" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_24" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_25" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_0" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_1" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_2" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_3" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_4" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_5" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_6" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_7" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_8" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_9" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_10" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_11" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_12" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_13" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_14" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_15" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_16" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_17" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_18" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_19" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_0" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_1" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_2" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_3" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_4" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_5" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_1" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_0" in Symbol 576 MovieClip [map_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 576 MovieClip [map_3] Frame 2
stop();
Instance of Symbol 565 MovieClip "border" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline2" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_1" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_3" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_0" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_2" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_4" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 576 MovieClip [map_3] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
_visible = false;
}
Symbol 580 MovieClip Frame 1
_visible = false;
Symbol 583 MovieClip [map_1] Frame 1
stop();
Instance of Symbol 375 MovieClip [tree_mini] "tree_33" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_34" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_28" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_30" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_27" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_32" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_26" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_35" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_29" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_31" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_25" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_21" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_24" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_23" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_20" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_22" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_16" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_13" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_12" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_18" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_3" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_5" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_4" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_7" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_14" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_15" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_6" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_2" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_9" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_1" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_10" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_19" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_17" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_8" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_11" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_0" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_0" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_1" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_2" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_0" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_1" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_2" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_3" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_4" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_5" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_1" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_0" in Symbol 583 MovieClip [map_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 583 MovieClip [map_1] Frame 2
stop();
Instance of Symbol 565 MovieClip "border" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline2" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_0" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_4" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_3" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_2" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_1" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 583 MovieClip [map_1] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
_visible = false;
}
Symbol 587 MovieClip Frame 1
_visible = false;
Symbol 590 MovieClip [map_4] Frame 1
stop();
Instance of Symbol 375 MovieClip [tree_mini] "tree_26" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_27" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_28" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_29" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_30" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_31" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_32" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_33" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_34" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_35" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_20" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_21" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_22" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_23" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_24" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_25" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_0" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_1" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_2" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_3" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_4" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_5" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_6" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_7" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_8" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_9" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_10" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_11" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_12" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_13" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_14" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_15" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_16" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_17" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_18" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_19" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_0" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_1" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_2" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_5" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_3" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_4" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_1" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_0" in Symbol 590 MovieClip [map_4] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 590 MovieClip [map_4] Frame 2
stop();
Instance of Symbol 565 MovieClip "border" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline2" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_0" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_1" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_2" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_3" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 590 MovieClip [map_4] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
_visible = false;
}
Symbol 594 MovieClip Frame 1
_visible = false;
Symbol 597 MovieClip [map_5] Frame 1
stop();
Instance of Symbol 375 MovieClip [tree_mini] "tree_26" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_27" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_28" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_29" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_30" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_31" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_32" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_33" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_34" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_35" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_20" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_21" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_22" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_23" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_24" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_25" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_0" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_1" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_2" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_3" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_4" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_5" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_6" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_7" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_8" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_9" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_10" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_11" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_12" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_13" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_14" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_15" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_16" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_17" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_18" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_19" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_0" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_1" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_2" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_0" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_1" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_2" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_3" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_4" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_5" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_1" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_0" in Symbol 597 MovieClip [map_5] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 597 MovieClip [map_5] Frame 2
stop();
Instance of Symbol 565 MovieClip "border" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline2" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_0" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_1" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_2" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_3" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_4" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_5" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 597 MovieClip [map_5] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
_visible = false;
}
Symbol 601 MovieClip Frame 1
_visible = false;
Symbol 604 MovieClip [map_6] Frame 1
stop();
Instance of Symbol 375 MovieClip [tree_mini] "tree_26" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_27" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_29" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_30" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_31" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_32" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_33" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_34" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_35" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_28" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_20" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_21" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_22" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_23" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_24" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_25" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_0" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_1" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_3" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_4" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_5" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_6" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_7" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_8" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_9" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_10" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_11" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_12" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_13" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_14" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_15" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_16" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_17" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_18" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_19" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_2" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_0" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_1" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_2" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_0" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_1" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_2" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_3" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_4" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_5" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_1" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_0" in Symbol 604 MovieClip [map_6] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 604 MovieClip [map_6] Frame 2
stop();
Instance of Symbol 565 MovieClip "border" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline2" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_1" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_0" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_2" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_3" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 604 MovieClip [map_6] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
_visible = false;
}
Symbol 610 MovieClip Frame 1
_visible = false;
Symbol 611 MovieClip [map_2] Frame 1
stop();
Instance of Symbol 375 MovieClip [tree_mini] "tree_26" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_27" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_28" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_29" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_30" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_31" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_32" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_33" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_34" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_35" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_20" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_21" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_22" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_23" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_24" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_25" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_0" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_1" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_2" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_3" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_4" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_5" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_6" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_7" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_8" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_9" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_10" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_11" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_12" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_13" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_14" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_15" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_16" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_17" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_18" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "tree_19" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_0" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_1" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_2" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_0" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_1" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_tire_2" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_3" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_4" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "prop_wrench_5" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_1" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 375 MovieClip [tree_mini] "logo_0" in Symbol 611 MovieClip [map_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 611 MovieClip [map_2] Frame 2
stop();
Instance of Symbol 571 MovieClip "startline2" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_1" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_2" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_4" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_3" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "check_0" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_1" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_1._x;
_y = _root.level.map.enemy_1._y;
_rotation = _root.level.map.enemy_1._rotation;
_yscale = (_root.enemy_speed[1] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_2" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_2._x;
_y = _root.level.map.enemy_2._y;
_rotation = _root.level.map.enemy_2._rotation;
_yscale = (_root.enemy_speed[2] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_3" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_3._x;
_y = _root.level.map.enemy_3._y;
_rotation = _root.level.map.enemy_3._rotation;
_yscale = (_root.enemy_speed[3] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_4" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_4._x;
_y = _root.level.map.enemy_4._y;
_rotation = _root.level.map.enemy_4._rotation;
_yscale = (_root.enemy_speed[4] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_5" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_5._x;
_y = _root.level.map.enemy_5._y;
_rotation = _root.level.map.enemy_5._rotation;
_yscale = (_root.enemy_speed[5] * 10);
_visible = false;
}
Instance of Symbol 551 MovieClip "enemy_reach_6" in Symbol 611 MovieClip [map_2] Frame 2
onClipEvent (enterFrame) {
_x = _root.level.map.enemy_6._x;
_y = _root.level.map.enemy_6._y;
_rotation = _root.level.map.enemy_6._rotation;
_yscale = (_root.enemy_speed[6] * 10);
_visible = false;
}
Symbol 613 MovieClip Frame 1
this._visible = false;
Instance of Symbol 571 MovieClip "startline2" in Symbol 615 MovieClip [cn_path_9] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline1" in Symbol 615 MovieClip [cn_path_9] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline2" in Symbol 617 MovieClip [cn_path_10] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "startline1" in Symbol 617 MovieClip [cn_path_10] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "chk_0" in Symbol 619 MovieClip [cn_path_11] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "chk_0" in Symbol 620 MovieClip [cn_path_12] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 622 MovieClip Frame 1
this._visible = false;
Instance of Symbol 571 MovieClip "chk_0" in Symbol 624 MovieClip [cn_path_13] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 571 MovieClip "chk_0" in Symbol 626 MovieClip [cn_path_14] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 628 MovieClip Frame 1
this._visible = false;
Instance of Symbol 571 MovieClip "chk_0" in Symbol 630 MovieClip [cn_path_20] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 632 MovieClip Frame 1
this._visible = false;
Instance of Symbol 571 MovieClip "chk_0" in Symbol 634 MovieClip [cn_path_21] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 636 MovieClip Frame 1
this._visible = false;
Instance of Symbol 571 MovieClip "chk_0" in Symbol 638 MovieClip [cn_path_22] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 779 MovieClip Frame 1
this.onRollOver = function () {
if (_parent._parent._parent.cur_layer == 0) {
if ((_parent._parent._parent._name == "map_editor_mc") && (_currentframe != 10)) {
gotoAndStop ("over");
}
}
};
this.onRollOut = function () {
if (_parent._parent._parent.cur_layer == 0) {
if ((_parent._parent._parent._name == "map_editor_mc") && (_currentframe != 10)) {
gotoAndStop ("out");
}
}
};
this.onRelease = function () {
if (_parent._parent._parent.cur_layer == 0) {
if (_parent._parent._parent._name == "map_editor_mc") {
_parent._parent._parent.selectBlock(_parent.id);
_parent._parent[("obj_" + _parent._parent._parent.obj_type) + "_btn"].gotoAndStop("out");
_parent._parent._parent.obj_type = undefined;
}
}
};
stop();
Symbol 779 MovieClip Frame 5
stop();
Symbol 779 MovieClip Frame 10
stop();
Symbol 781 MovieClip Frame 1
stop();
var id = 0;
var map_type = 0;
var xs = 0;
var ys = 0;
Instance of Symbol 779 MovieClip "btn" in Symbol 781 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 781 MovieClip Frame 5
stop();
Symbol 786 MovieClip [block_0] Frame 1
var id = 1;
var map_type = 1;
var xs = this._x;
var ys = this._y;
Instance of Symbol 779 MovieClip "btn" in Symbol 786 MovieClip [block_0] Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 791 MovieClip [block_1] Frame 1
var id = 2;
var map_type = 1;
var xs = this._x;
var ys = this._y;
Instance of Symbol 779 MovieClip "btn" in Symbol 791 MovieClip [block_1] Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 798 MovieClip [block_4] Frame 1
var id = 10;
var map_type = 10;
var xs = this._x;
var ys = this._y;
Instance of Symbol 779 MovieClip "btn" in Symbol 798 MovieClip [block_4] Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 805 MovieClip [block_2] Frame 1
var id = 11;
var map_type = 10;
var xs = this._x;
var ys = this._y;
Instance of Symbol 779 MovieClip "btn" in Symbol 805 MovieClip [block_2] Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 812 MovieClip [block_3] Frame 1
var id = 12;
var map_type = 10;
var xs = this._x;
var ys = this._y;
Instance of Symbol 779 MovieClip "btn" in Symbol 812 MovieClip [block_3] Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 814 MovieClip [block_7] Frame 1
var id = 21;
var map_type = 21;
Symbol 815 MovieClip [map_base] Frame 1
stop();
Symbol 815 MovieClip [map_base] Frame 31
gotoAndStop ("clear");
Symbol 915 MovieClip Frame 1
stop();
Instance of Symbol 849 MovieClip "hit_area" in Symbol 915 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 3
stop();
Instance of Symbol 864 MovieClip "hit_area" in Symbol 915 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 5
stop();
Instance of Symbol 872 MovieClip "hit_area" in Symbol 915 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 7
stop();
Instance of Symbol 880 MovieClip "hit_area" in Symbol 915 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 9
stop();
Instance of Symbol 895 MovieClip "hit_area" in Symbol 915 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 11
stop();
Instance of Symbol 903 MovieClip "hit_area" in Symbol 915 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 893 MovieClip "rocket" in Symbol 915 MovieClip Frame 11
onClipEvent (load) {
this._visible = false;
}
Symbol 915 MovieClip Frame 13
stop();
Instance of Symbol 895 MovieClip "hit_area" in Symbol 915 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 15
stop();
Instance of Symbol 880 MovieClip "hit_area" in Symbol 915 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 17
stop();
Instance of Symbol 872 MovieClip "hit_area" in Symbol 915 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 19
stop();
Instance of Symbol 864 MovieClip "hit_area" in Symbol 915 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
}
Symbol 915 MovieClip Frame 21
stop();
Instance of Symbol 849 MovieClip "hit_area" in Symbol 915 MovieClip Frame 21
onClipEvent (load) {
_visible = false;
}
Symbol 946 MovieClip Frame 1
stop();
Symbol 946 MovieClip Frame 15
_root.player_speed = 0;
if (_root.soundStatus == 1) {
var sound_destory = new Sound();
sound_destory.attachSound("sound_destory.wav");
sound_destory.start();
}
Symbol 946 MovieClip Frame 29
stop();
if (_root.edit == "test") {
_root.gameOver("test");
} else if (_root.edit == "run") {
_root.gameOver(true);
} else {
_root.gameOver(true);
}
Instance of Symbol 946 MovieClip "pong" in Symbol 947 MovieClip [player] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 950 MovieClip [player_marker] Frame 8
gotoAndPlay (1);
Symbol 1013 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1030 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1032 Button
on (release, keyPress "<Space>") {
if (_root.edit == "run") {
_root.clearFrame(_root.continue_race);
_root.gotoAndStop("editor");
} else if (((score.T_name.text != null) && (score.T_name.text != "")) && (score.T_name.text != undefined)) {
_root.playerName = score.T_name.text;
var ob = new Object();
ob.playerName = _root.playerName;
_root.saveData(4, ob);
if (_root.map_id < 7) {
_root.addScore(_root.best_lap_text, _root.playerName, _root.map_id, _root.game_difficulty);
}
_root.cur_circle = _root.cur_circle + 1;
_root.init();
_root.traffic.gotoAndPlay(1);
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
_root.continue_race.removeMovieClip();
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1033 MovieClip [continue_race] Frame 1
stop();
Symbol 1034 Button
on (release) {
if (((score.T_name.text != null) && (score.T_name.text != "")) && (score.T_name.text != undefined)) {
_root.playerName = score.T_name.text;
var ob = new Object();
ob.playerName = _root.playerName;
_root.saveData(4, ob);
_root.addScore(_root.best_lap_text, _root.playerName, _root.map_id, _root.game_difficulty);
_root.gotoAndStop("game over");
_root.clearFrame();
_root.continue_race.removeMovieClip();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1037 MovieClip [return_main] Frame 1
stop();
Symbol 1041 MovieClip [logo_1] Frame 1
gotoAndStop(_root.localization_branding2_nr);
Instance of Symbol 28 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 40 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 43 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 46 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 52 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 58 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 64 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 70 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 76 MovieClip in Symbol 1041 MovieClip [logo_1] Frame 15
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1044 MovieClip [logo_2] Frame 1
gotoAndStop(_root.localization_branding_nr);
Instance of Symbol 28 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 40 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 43 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 46 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 52 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 58 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 64 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 70 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 76 MovieClip in Symbol 1044 MovieClip [logo_2] Frame 15
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1072 MovieClip [prop_wrench_disappear] Frame 1
stop();
Symbol 1072 MovieClip [prop_wrench_disappear] Frame 14
stop();
Symbol 1222 MovieClip Frame 7
stop();
Symbol 1223 MovieClip Frame 240
stop();
Symbol 1224 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.game.com.cn", "_blank");
};
Symbol 1224 MovieClip Frame 240
stop();
_root.gotoAndStop(5);
this.swapDepths(9876);
this.removeMovieClip();
Symbol 1229 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1235 MovieClip Frame 1
stop();
Symbol 1237 Button
on (press) {
if (_root.soundStatus == 1) {
_root.soundStatus = 2;
_root.load_sound.stop("bg_Menu.mp3");
this.soundon.gotoAndStop(1);
this.soundoff.gotoAndStop(2);
}
}
Symbol 1238 Button
on (press) {
if (_root.soundStatus == 2) {
_root.soundStatus = 1;
_root.load_sound.start(0, 1000);
this.soundon.gotoAndStop(2);
this.soundoff.gotoAndStop(1);
}
}
Symbol 1252 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
stop();
Instance of Symbol 1235 MovieClip "soundon" in Symbol 1252 MovieClip Frame 1
on (press) {
if (_root.soundStatus == 2) {
_root.soundStatus = 1;
_root.load_sound.start(0, 1000);
gotoAndStop (2);
this._parent.soundoff.gotoAndStop(1);
}
}
Symbol 1253 MovieClip Frame 1
gotoAndStop(_root.localization_branding2_nr);
Instance of Symbol 28 MovieClip in Symbol 1253 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 37 MovieClip in Symbol 1253 MovieClip Frame 2
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 40 MovieClip in Symbol 1253 MovieClip Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 43 MovieClip in Symbol 1253 MovieClip Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 46 MovieClip in Symbol 1253 MovieClip Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 1253 MovieClip Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 52 MovieClip in Symbol 1253 MovieClip Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 1253 MovieClip Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 58 MovieClip in Symbol 1253 MovieClip Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 1253 MovieClip Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 64 MovieClip in Symbol 1253 MovieClip Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 1253 MovieClip Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 70 MovieClip in Symbol 1253 MovieClip Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 1253 MovieClip Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 76 MovieClip in Symbol 1253 MovieClip Frame 15
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 79 MovieClip in Symbol 1253 MovieClip Frame 16
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1267 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1281 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1282 Button
on (release) {
this.getURL("http://www.hopintung.com", "_blank");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1295 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1308 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1321 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1323 Button
on (release) {
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
if (this.startgames._currentframe == 1) {
this.startgames.gotoAndPlay(2);
} else {
this.startgames.gotoAndStop(1);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1336 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1349 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1362 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1364 Button
on (release) {
this.gotoAndStop("intro");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1377 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1390 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1403 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1405 Button
on (release) {
if (_root.localization_branding_nr == 2) {
_root.geturl();
} else {
this.gotoAndStop("high score");
}
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1418 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1431 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1444 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1446 Button
on (release) {
this.getURL(_root.moregames_url, "_blank");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1460 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1474 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1488 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1490 Button
on (release) {
this.getURL(_root.freegames_url, "_blank");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1502 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1514 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1526 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1528 Button
on (release) {
this.gotoAndStop("editor");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1541 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1554 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1567 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1569 Button
on (release) {
this.gotoAndStop("editor");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1584 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1598 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1612 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1614 Button
on (release) {
this.gotoAndStop("editor");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1615 Button
on (release) {
_root.gotoAndStop("game start");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1616 Button
on (release) {
_root.gotoAndStop("game start2");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1617 Button
on (release) {
_root.gotoAndStop("editor");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1618 MovieClip Frame 1
stop();
Symbol 1618 MovieClip Frame 36
stop();
Symbol 1619 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1620 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1621 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1622 Button
on (release) {
_root.gotoAndStop("editor");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1635 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1648 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1661 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1662 Button
on (release) {
this.gotoAndStop("about");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1680 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1693 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1708 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1720 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1734 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1747 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1761 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1762 Button
on (release) {
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
this.gotoAndStop("menu");
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1763 MovieClip Frame 1
gotoAndStop(_root.localization_branding2_nr);
Instance of Symbol 28 MovieClip in Symbol 1763 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 37 MovieClip in Symbol 1763 MovieClip Frame 2
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 40 MovieClip in Symbol 1763 MovieClip Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 43 MovieClip in Symbol 1763 MovieClip Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 46 MovieClip in Symbol 1763 MovieClip Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 1763 MovieClip Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 52 MovieClip in Symbol 1763 MovieClip Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 1763 MovieClip Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 58 MovieClip in Symbol 1763 MovieClip Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 1763 MovieClip Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 64 MovieClip in Symbol 1763 MovieClip Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 1763 MovieClip Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 70 MovieClip in Symbol 1763 MovieClip Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 1763 MovieClip Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 76 MovieClip in Symbol 1763 MovieClip Frame 15
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 79 MovieClip in Symbol 1763 MovieClip Frame 16
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1778 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1804 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1819 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1833 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1848 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1866 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1868 Button
on (release) {
_root.data_id = 1;
_root.my_data_name = file_1_tf.text;
_root.level_code = _root.code_1;
delete _root.code_1;
_root.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1881 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1882 Button
on (release) {
this.selectMC(1);
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1895 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1896 Button
on (release) {
_root.deleteData(1);
_root.showData();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1897 Button
on (release) {
_root.data_id = 2;
_root.my_data_name = file_2_tf.text;
_root.level_code = _root.code_2;
delete _root.code_2;
_root.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1898 Button
on (release) {
this.selectMC(2);
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1899 Button
on (release) {
_root.deleteData(2);
_root.showData();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1900 Button
on (release) {
_root.data_id = 3;
_root.my_data_name = file_3_tf.text;
_root.level_code = _root.code_3;
delete _root.code_3;
_root.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1901 Button
on (release) {
this.selectMC(3);
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1902 Button
on (release) {
_root.deleteData(3);
_root.showData();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1903 Button
on (release) {
_root.my_data_name = "";
_root.level_code = code_tf.text;
if (_root.localization_branding_nr == 1) {
if (_root.level_code.indexOf("Enter custom level code here") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Enter custom level code here") + String("Enter custom level code here").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 2) {
if (_root.level_code.indexOf("\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801") + String("\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 3) {
if (_root.level_code.indexOf("Voer code voor zelfgemaakt level in") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Voer code voor zelfgemaakt level in") + String("Voer code voor zelfgemaakt level in").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 4) {
if (_root.level_code.indexOf("Entrer le code du niveau ici") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Entrer le code du niveau ici") + String("Entrer le code du niveau ici").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 5) {
if (_root.level_code.indexOf("Eigenen Levelcode hier eingeben") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Eigenen Levelcode hier eingeben") + String("Eigenen Levelcode hier eingeben").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 6) {
if (_root.level_code.indexOf("Wpisz tutaj kod mapy") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Wpisz tutaj kod mapy") + String("Wpisz tutaj kod mapy").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 7) {
if (_root.level_code.indexOf("Ange kod f\u00F6r anpassad niv\u00E5") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Ange kod f\u00F6r anpassad niv\u00E5") + String("Ange kod f\u00F6r anpassad niv\u00E5").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 8) {
if (_root.level_code.indexOf("Digita codice livello personalizzato") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Digita codice livello personalizzato") + String("Digita codice livello personalizzato").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 9) {
if (_root.level_code.indexOf("Escribe aqu\u00ED el c\u00F3digo de nivel personalizado") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Escribe aqu\u00ED el c\u00F3digo de nivel personalizado") + String("Escribe aqu\u00ED el c\u00F3digo de nivel personalizado").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 10) {
if (_root.level_code.indexOf("Escreva o c\u00F3digo do n\u00EDvel personalizado") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Escreva o c\u00F3digo do n\u00EDvel personalizado") + String("Escreva o c\u00F3digo do n\u00EDvel personalizado").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 11) {
if (_root.level_code.indexOf("Inserir aqui o c\u00F3digo de n\u00EDvel personalizado") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Inserir aqui o c\u00F3digo de n\u00EDvel personalizado") + String("Inserir aqui o c\u00F3digo de n\u00EDvel personalizado").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 12) {
if (_root.level_code.indexOf("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B") + String("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B").length, -1);
trace(_root.level_code);
}
}
if (_root.localization_branding_nr == 13) {
if (_root.level_code.indexOf("Masukkan kodel level disini") > -1) {
_root.level_code = _root.level_code.slice(_root.level_code.indexOf("Masukkan kodel level disini") + String("Masukkan kodel level disini").length, -1);
trace(_root.level_code);
}
}
_root.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1904 Button
on (release) {
var txt = code_tf.text;
txt = txt.indexOf("#ho-pin_tung_racer-le#--");
var e = txt.indexOf("Enter custom level code here");
if ((txt == -1) || (e < 0)) {
if (_root.localization_branding_nr == 1) {
_root.msgBox("Wrong Code", "normal");
}
if (_root.localization_branding_nr == 2) {
_root.msgBox("\u9519\u8BEF\u4EE3\u7801", "normal");
}
if (_root.localization_branding_nr == 3) {
_root.msgBox("Verkeerde code", "normal");
}
if (_root.localization_branding_nr == 4) {
_root.msgBox("Mauvais code", "normal");
}
if (_root.localization_branding_nr == 5) {
_root.msgBox("Falscher Code", "normal");
}
if (_root.localization_branding_nr == 6) {
_root.msgBox("B\u0142\u0119dny kod", "normal");
}
if (_root.localization_branding_nr == 7) {
_root.msgBox("Fel kod", "normal");
}
if (_root.localization_branding_nr == 8) {
_root.msgBox("Codice errato", "normal");
}
if (_root.localization_branding_nr == 9) {
_root.msgBox("C\u00F3digo err\u00F3neo", "normal");
}
if (_root.localization_branding_nr == 10) {
_root.msgBox("C\u00F3digo errado", "normal");
}
if (_root.localization_branding_nr == 11) {
_root.msgBox("C\u00F3digo incorrecto", "normal");
}
if (_root.localization_branding_nr == 12) {
_root.msgBox("\u041A\u043E\u0434 \u043D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u0435\u043D", "normal");
}
if (_root.localization_branding_nr == 13) {
_root.msgBox("Kode salah", "normal");
}
} else {
_root.level_code = code_tf.text;
var go = powerCheckCode();
if (go) {
if (_root.playerName == undefined) {
_root.playerName = "player";
}
if (!_root.msg_box) {
_root.attachMovie("bg_btn", "bg_btn", _root.getNextHighestDepth());
_root.bg_btn._width = 550;
_root.bg_btn._height = 400;
_root.attachMovie("msg_box", "msg_box", _root.getNextHighestDepth());
_root.msg_box.gotoAndStop("difficulty");
}
_root.msg_box._x = 84;
_root.msg_box._y = 129;
_root.edit = "run";
} else {
if (_root.localization_branding_nr == 1) {
_root.msgBox("Wrong Code", "normal");
}
if (_root.localization_branding_nr == 2) {
_root.msgBox("\u9519\u8BEF\u4EE3\u7801", "normal");
}
if (_root.localization_branding_nr == 3) {
_root.msgBox("Verkeerde code", "normal");
}
if (_root.localization_branding_nr == 4) {
_root.msgBox("Mauvais code", "normal");
}
if (_root.localization_branding_nr == 5) {
_root.msgBox("Falscher Code", "normal");
}
if (_root.localization_branding_nr == 6) {
_root.msgBox("B\u0142\u0119dny kod", "normal");
}
if (_root.localization_branding_nr == 7) {
_root.msgBox("Fel kod", "normal");
}
if (_root.localization_branding_nr == 8) {
_root.msgBox("Codice errato", "normal");
}
if (_root.localization_branding_nr == 9) {
_root.msgBox("C\u00F3digo err\u00F3neo", "normal");
}
if (_root.localization_branding_nr == 10) {
_root.msgBox("C\u00F3digo errado", "normal");
}
if (_root.localization_branding_nr == 11) {
_root.msgBox("C\u00F3digo incorrecto", "normal");
}
if (_root.localization_branding_nr == 12) {
_root.msgBox("\u041A\u043E\u0434 \u043D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u0435\u043D", "normal");
}
if (_root.localization_branding_nr == 13) {
_root.msgBox("Kode salah", "normal");
}
}
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1917 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1918 Button
on (release) {
_root.data_id = 1;
this._parent.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1919 Button
on (release) {
_root.data_id = 2;
this._parent.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1920 Button
on (release) {
_root.data_id = 3;
this._parent.gotoAndStop("create");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1921 MovieClip Frame 1
function powerCheckCode() {
var _local8 = _root.level_code.split("--");
_root.map_id = Number(_local8[1].charAt(0));
if (isNaN(_root.map_id)) {
return(false);
}
if ((_root.map_id < 1) || (_root.map_id > 6)) {
return(false);
}
var _local11 = Number(_local8[3].charAt(0));
if (isNaN(_local11)) {
return(false);
}
if ((_local11 <= 0) || (_local11 > 5)) {
return(false);
}
var _local5 = _local8[4].split("-");
for (var _local9 in _local5) {
var _local6 = _local5[_local9].charAt(0);
var _local7 = _local5[_local9].charAt(1);
var _local2 = _root.deCode(_local5[_local9].charAt(2));
var _local3 = _root.myRotation(_root.deCode(_local5[_local9].charAt(3)));
_local5[_local9] = [_local6, _local7, _local2, _local3];
if ((((_local6 < 0) || (_local6 > 4)) || (_local7 < 0)) || (_local7 > 5)) {
return(false);
}
if (((_local2 > 8) && (_local2 < 15)) || ((_local2 > 19) && (_local2 < 23))) {
} else {
return(false);
}
if ((((_local3 == 0) || (_local3 == 90)) || (_local3 == 180)) || (_local3 == -90)) {
continue;
}
return(false);
}
if (_local8[5] != undefined) {
obj_array = _local8[5].split("-");
for (var _local10 in obj_array) {
var _local4 = parseInt(obj_array[_local10].charAt(0), 10);
if (((((_local4 == 1) || (_local4 == 4)) || (_local4 == 5)) || (_local4 == 7)) || (_local4 == 9)) {
continue;
}
return(false);
}
}
return(true);
}
function selectMC(id) {
if (!_root.msg_box) {
_root.attachMovie("bg_btn", "bg_btn", _root.getNextHighestDepth());
_root.bg_btn._width = 550;
_root.bg_btn._height = 400;
_root.attachMovie("msg_box", "msg_box", _root.getNextHighestDepth());
_root.msg_box.gotoAndStop("difficulty");
}
_root.msg_box._x = 84;
_root.msg_box._y = 129;
_root.level_code = _root["code_" + id];
_root.edit = "run";
}
if (_root.localization_branding_nr == 1) {
this.code_tf.text = "Enter custom level code here";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Enter custom level code here") > -1) {
this.text = this.text.slice(this.text.indexOf("Enter custom level code here") + String("Enter custom level code here").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 2) {
trace(this.code_tf.text);
this.code_tf.text = "\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801") > -1) {
this.text = this.text.slice(this.text.indexOf("\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801") + String("\u8BF7\u8F93\u5165\u5730\u56FE\u7F16\u8F91\u4EE3\u7801").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 3) {
this.code_tf.text = "Voer code voor zelfgemaakt level in";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Voer code voor zelfgemaakt level in") > -1) {
this.text = this.text.slice(this.text.indexOf("Voer code voor zelfgemaakt level in") + String("Voer code voor zelfgemaakt level in").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 4) {
this.code_tf.text = "Entrer le code du niveau ici";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Entrer le code du niveau ici") > -1) {
this.text = this.text.slice(this.text.indexOf("Entrer le code du niveau ici") + String("Entrer le code du niveau ici").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 5) {
this.code_tf.text = "Eigenen Levelcode hier eingeben";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Eigenen Levelcode hier eingeben") > -1) {
this.text = this.text.slice(this.text.indexOf("Eigenen Levelcode hier eingeben") + String("Eigenen Levelcode hier eingeben").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 6) {
this.code_tf.text = "Wpisz tutaj kod mapy";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Wpisz tutaj kod mapy") > -1) {
this.text = this.text.slice(this.text.indexOf("Wpisz tutaj kod mapy") + String("Wpisz tutaj kod mapy").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 7) {
this.code_tf.text = "Ange kod f\u00F6r anpassad niv\u00E5";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Ange kod f\u00F6r anpassad niv\u00E5") > -1) {
this.text = this.text.slice(this.text.indexOf("Ange kod f\u00F6r anpassad niv\u00E5") + String("Ange kod f\u00F6r anpassad niv\u00E5").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 8) {
this.code_tf.text = "Digita codice livello personalizzato";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Digita codice livello personalizzato") > -1) {
this.text = this.text.slice(this.text.indexOf("Digita codice livello personalizzato") + String("Digita codice livello personalizzato").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 9) {
this.code_tf.text = "Escribe aqu\u00ED el c\u00F3digo de nivel personalizado";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Escribe aqu\u00ED el c\u00F3digo de nivel personalizado") > -1) {
this.text = this.text.slice(this.text.indexOf("Escribe aqu\u00ED el c\u00F3digo de nivel personalizado") + String("Escribe aqu\u00ED el c\u00F3digo de nivel personalizado").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 10) {
this.code_tf.text = "Escreva o c\u00F3digo do n\u00EDvel personalizado";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Escreva o c\u00F3digo do n\u00EDvel personalizado") > -1) {
this.text = this.text.slice(this.text.indexOf("Escreva o c\u00F3digo do n\u00EDvel personalizado") + String("Escreva o c\u00F3digo do n\u00EDvel personalizado").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 11) {
this.code_tf.text = "Inserir aqui o c\u00F3digo de n\u00EDvel personalizado";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Inserir aqui o c\u00F3digo de n\u00EDvel personalizado") > -1) {
this.text = this.text.slice(this.text.indexOf("Inserir aqui o c\u00F3digo de n\u00EDvel personalizado") + String("Inserir aqui o c\u00F3digo de n\u00EDvel personalizado").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 12) {
this.code_tf.text = "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B") > -1) {
this.text = this.text.slice(this.text.indexOf("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B") + String("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043A\u043E\u0434 \u043A\u0430\u0440\u0442\u044B").length, -1);
trace(this.text);
}
};
}
if (_root.localization_branding_nr == 13) {
this.code_tf.text = "Masukkan kodel level disini";
this.code_tf.onSetFocus = function (oldFocus) {
if (this.text.indexOf("Masukkan kodel level disini") > -1) {
this.text = this.text.slice(this.text.indexOf("Masukkan kodel level disini") + String("Masukkan kodel level disini").length, -1);
trace(this.text);
}
};
}
Symbol 1922 Button
on (release) {
_root.level_code = undefined;
_root.edit = undefined;
this.gotoAndStop("menu");
_root.bg_btn.removeMovieClip();
_root.msg_box.removeMovieClip();
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 1925 MovieClip Frame 1
stop();
Symbol 1927 MovieClip Frame 1
stop();
Symbol 1943 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1945 Button
on (release) {
if (lap_tf.text > 1) {
lap_tf.text = Number(lap_tf.text) - 1;
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1946 Button
on (release) {
if (lap_tf.text < 3) {
lap_tf.text = Number(lap_tf.text) + 1;
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1962 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1963 Button
on (release) {
if (enemy_tf.text > 0) {
enemy_tf.text = Number(enemy_tf.text) - 1;
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1964 Button
on (release) {
if (enemy_tf.text < 6) {
enemy_tf.text = Number(enemy_tf.text) + 1;
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1970 MovieClip [block_6] Frame 1
var id = 20;
var map_type = 20;
Instance of Symbol 779 MovieClip "btn" in Symbol 1970 MovieClip [block_6] Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 1971 MovieClip Frame 1
this.onRelease = function () {
this._parent._parent.bolckDirection(this._name);
};
Symbol 1978 MovieClip Frame 1
stop();
var obj_type = 1;
this.onRelease = function () {
if (!_root.lock) {
if (_parent._parent.obj_type != obj_type) {
gotoAndStop ("selected");
_parent[("obj_" + _parent._parent.obj_type) + "_btn"].gotoAndStop("out");
_parent._parent.selectBlock();
_parent._parent.obj_type = obj_type;
} else {
gotoAndStop ("out");
_parent._parent.obj_type = undefined;
}
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
};
this.onRollOver = function () {
if (_currentframe != 10) {
gotoAndStop ("over");
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
};
this.onRollOut = function () {
if (_currentframe != 10) {
gotoAndStop ("out");
}
};
Symbol 1978 MovieClip Frame 16
stop();
delete this.onRelease;
delete this.onRollOver;
delete this.onRollOut;
Symbol 1983 MovieClip Frame 1
stop();
var obj_type = 7;
this.onRelease = function () {
if (!_root.lock) {
if (_parent._parent.obj_type != obj_type) {
gotoAndStop ("selected");
_parent[("obj_" + _parent._parent.obj_type) + "_btn"].gotoAndStop("out");
_parent._parent.selectBlock();
_parent._parent.obj_type = obj_type;
} else {
gotoAndStop ("out");
_parent._parent.obj_type = undefined;
}
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
};
this.onRollOver = function () {
if (_currentframe != 10) {
gotoAndStop ("over");
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
};
this.onRollOut = function () {
if (_currentframe != 10) {
gotoAndStop ("out");
}
};
Symbol 1983 MovieClip Frame 16
stop();
delete this.onRelease;
delete this.onRollOver;
delete this.onRollOut;
Symbol 1988 MovieClip Frame 1
stop();
var obj_type = 9;
this.onRelease = function () {
if (!_root.lock) {
if (_parent._parent.obj_type != obj_type) {
gotoAndStop ("selected");
_parent[("obj_" + _parent._parent.obj_type) + "_btn"].gotoAndStop("out");
_parent._parent.selectBlock();
_parent._parent.obj_type = obj_type;
} else {
gotoAndStop ("out");
_parent._parent.obj_type = undefined;
}
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
};
this.onRollOver = function () {
if (_currentframe != 10) {
gotoAndStop ("over");
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
};
this.onRollOut = function () {
if (_currentframe != 10) {
gotoAndStop ("out");
}
};
Symbol 1988 MovieClip Frame 16
stop();
delete this.onRelease;
delete this.onRollOver;
delete this.onRollOut;
Symbol 1993 MovieClip Frame 1
stop();
var obj_type = 4;
this.onRelease = function () {
if (!_root.lock) {
if (_parent._parent.obj_type != obj_type) {
gotoAndStop ("selected");
_parent[("obj_" + _parent._parent.obj_type) + "_btn"].gotoAndStop("out");
_parent._parent.selectBlock();
_parent._parent.obj_type = obj_type;
} else {
gotoAndStop ("out");
_parent._parent.obj_type = undefined;
}
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
};
this.onRollOver = function () {
if (_currentframe != 10) {
gotoAndStop ("over");
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
};
this.onRollOut = function () {
if (_currentframe != 10) {
gotoAndStop ("out");
}
};
Symbol 1993 MovieClip Frame 16
stop();
delete this.onRelease;
delete this.onRollOut;
delete this.onRollOver;
Symbol 1994 MovieClip Frame 1
map_44._visible = false;
map_45._visible = false;
map_46._visible = false;
map_47._visible = false;
map_48._visible = false;
Instance of Symbol 1971 MovieClip "anticlockwise_btn" in Symbol 1994 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Instance of Symbol 1971 MovieClip "desail_btn" in Symbol 1994 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2008 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2023 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2024 MovieClip Frame 1
stop();
this.onPress = function () {
_parent.cur_layer = 0;
_parent.setLayer();
_parent.map_box._visible = true;
_parent.obj_box._visible = false;
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
};
this.onRollOver = function () {
if (_currentframe != 10) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
gotoAndStop ("over");
}
};
this.onRollOut = function () {
if (_currentframe != 10) {
gotoAndStop ("out");
}
};
Symbol 2037 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2039 Button
on (release) {
_root.lock = true;
if (checkRoad("roadtest")) {
msgBox("", "add");
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2054 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2055 Button
on (release) {
cur_layer = -1;
if (_root.localization_branding_nr == 1) {
msgBox("Are you sure you want to reset playfield? ");
}
if (_root.localization_branding_nr == 2) {
msgBox("\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u5730\u56FE? ");
}
if (_root.localization_branding_nr == 3) {
msgBox("Weet je zeker dat je het speelveld wilt resetten?");
}
if (_root.localization_branding_nr == 4) {
msgBox("Es-tu s\u00FBr(e) de vouloir r\u00E9initialiser le jeu? ");
}
if (_root.localization_branding_nr == 5) {
msgBox("Bist du sicher, dass du das Spielfeld zur\u00FCcksetzen willst?");
}
if (_root.localization_branding_nr == 6) {
msgBox("Jeste\u015B pewien, \u017Ce chcesz zresetowa\u0107 plansz\u0119? ");
}
if (_root.localization_branding_nr == 7) {
msgBox("Vill du verkligen nollst\u00E4lla spelbanan? ");
}
if (_root.localization_branding_nr == 8) {
msgBox("Vuoi davvero ricominciare la partita? ");
}
if (_root.localization_branding_nr == 9) {
msgBox("\u00BFSeguro que quieres restaurar el terreno de juego? ");
}
if (_root.localization_branding_nr == 10) {
msgBox("Quer mesmo refazer a \u00E1rea de jogo? ");
}
if (_root.localization_branding_nr == 11) {
msgBox("Tem a certeza de que pretende restaurar o campo de jogo?");
}
if (_root.localization_branding_nr == 12) {
msgBox("\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u043B\u0435?");
}
if (_root.localization_branding_nr == 13) {
msgBox("Anda yakin ingin mengatur kembali lapangan permainan? ");
}
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2068 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2069 Button
on (release) {
checkRoad("test");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2082 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2084 Button
on (release) {
_root.level_code = undefined;
_root.edit = undefined;
_root.gotoAndStop("menu");
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2096 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2097 Button
on (release) {
_root.edit_help._visible = true;
_root.edit_help.swapDepths(5000);
_root.attachMovie("bg_btn", "bg_btn", _root.edit_help.getDepth() - 1);
_root.bg_btn._width = 550;
_root.bg_btn._height = 400;
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2101 MovieClip Frame 1
stop();
Symbol 2103 MovieClip Frame 1
stop();
this.onRollOver = function () {
bg_img.gotoAndStop(2);
};
this.onRollOut = function () {
bg_img.gotoAndStop(1);
};
this.onRelease = function () {
title_tf.textColor = 16763904 /* 0xFFCC00 */;
trace(this._name.charAt(5));
this._parent._parent._parent.setArea("", Number(this._name.charAt(5)) + 1);
};
Instance of Symbol 2103 MovieClip "list_0_btn" in Symbol 2104 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Instance of Symbol 2103 MovieClip "list_1_btn" in Symbol 2104 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Instance of Symbol 2103 MovieClip "list_2_btn" in Symbol 2104 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Instance of Symbol 2103 MovieClip "list_3_btn" in Symbol 2104 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Instance of Symbol 2103 MovieClip "list_4_btn" in Symbol 2104 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Instance of Symbol 2103 MovieClip "list_5_btn" in Symbol 2104 MovieClip Frame 1
on (release) {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2106 MovieClip Frame 1
function showList() {
this.list_mc._visible = !list_mc._visible;
if (list_mc._visible == true) {
var _local4 = _parent.combox_list.length;
var _local3 = 0;
while (_local3 < _local4) {
if (_local3 == _parent.combox_id) {
this.list_mc[("list_" + _local3) + "_btn"].title_tf.textColor = 16763904 /* 0xFFCC00 */;
this.list_mc[("list_" + _local3) + "_btn"].title_tf.text = _parent.combox_listss[_local3];
} else {
this.list_mc[("list_" + _local3) + "_btn"].title_tf.textColor = 16777215 /* 0xFFFFFF */;
this.list_mc[("list_" + _local3) + "_btn"].title_tf.text = _parent.combox_listss[_local3];
}
_local3++;
}
}
}
this.list_mc._visible = false;
this.list_tf.text = _parent.combox_listss[_parent.combox_id];
for (var l in _parent.combox_listss) {
this.list_mc[("list_" + l) + "_btn"].title_tf.text = _parent.combox_listss[l];
}
Instance of Symbol 2105 MovieClip in Symbol 2106 MovieClip Frame 1
on (release) {
_parent.showList();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2107 MovieClip Frame 1
function setArea(tmp, id) {
trace("id" + id);
if (!id) {
if (tmp == "China") {
_root.map_id = 1;
} else if (tmp == "U.K") {
_root.map_id = 2;
} else if (tmp == "South Africa") {
_root.map_id = 3;
} else if (tmp == "Indonesia") {
_root.map_id = 4;
} else if (tmp == "Netherlands") {
_root.map_id = 5;
} else if (tmp == "Mexico") {
_root.map_id = 6;
}
} else if (id == 1) {
tmp = "China";
_root.map_id = 1;
} else if (id == 2) {
tmp = "U.K";
_root.map_id = 2;
} else if (id == 3) {
_root.map_id = 3;
tmp = "South Africa";
} else if (id == 4) {
_root.map_id = 4;
tmp = "Indonesia";
} else if (id == 5) {
_root.map_id = 5;
tmp = "Netherlands";
} else if (id == 6) {
_root.map_id = 6;
tmp = "Mexico";
}
cb_mc.list_tf.text = combox_listss[_root.map_id - 1];
map_frm.bg_img.gotoAndStop(_root.map_id + 4);
map_box.bg_img.gotoAndStop(_root.map_id + 4);
combox_id = _root.map_id - 1;
cb_mc.list_mc._visible = false;
}
function setDifficulty(tmp, id) {
if (!id) {
if (tmp == "Easy") {
game_difficulty = 1;
} else if (tmp == "Normal") {
game_difficulty = 2;
} else if (tmp == "Hard") {
game_difficulty = 3;
}
} else if (id == 1) {
tmp = "Easy";
} else if (id == 2) {
tmp = "Normal";
} else if (id == 3) {
tmp = "Hard";
}
d_cb.list_tf.text = tmp;
combox_id2 = game_difficulty - 1;
d_cb.list_mc._visible = false;
}
function setLayer(num) {
if (num != undefined) {
cur_layer = num;
}
if (cur_layer == 0) {
layer_0.gotoAndStop("selected");
layer_1.gotoAndStop("out");
map_box._visible = true;
obj_box._visible = false;
} else if (cur_layer == 1) {
layer_1.gotoAndStop("selected");
layer_0.gotoAndStop("out");
map_box._visible = false;
obj_box._visible = true;
}
}
function resetEditor() {
obj_max = 30;
for (var _local3 in map_frm) {
if (_local3.indexOf("obj_") != -1) {
map_frm[_local3].removeMovieClip();
}
}
obj_array = new Array();
delete start_position[0];
delete start_position[1];
this.map_box.map_0.gotoAndStop(1);
this.map_box.map_0.xs = 0;
this.map_box.map_0.ys = 0;
_root.level_code = undefined;
_root.ENEMY_NUM = 6;
enemy_mc.enemy_tf.text = _root.ENEMY_NUM;
lap_num = 3;
lap_mc.lap_tf.text = lap_num;
mapInit();
cur_layer = 0;
setLayer();
cb_mc.showList();
cb_mc.list_mc._visible = false;
}
function checkTurn() {
if (obj_type == undefined) {
var _local3 = Math.floor(map_frm.main_map._xmouse / per);
var _local2 = Math.floor(map_frm.main_map._ymouse / per);
var _local1 = map_frm.main_map[(("map_" + _local2) + "_") + _local3];
map_frm.main_map.turn_lr._visible = false;
if (((selected_block == undefined) && (_local1._currentframe > 8)) && (_local1._currentframe < 30)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
if (((selected_block == 0) && (_local1._currentframe > 8)) && (_local1._currentframe < 11)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
if (((selected_block == 1) && (_local1._currentframe > 10)) && (_local1._currentframe < 13)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
if (((selected_block == 2) && (_local1._currentframe > 12)) && (_local1._currentframe < 20)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
if ((selected_block == 10) && (_local1._currentframe == 20)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
if ((selected_block == 11) && (_local1._currentframe == 21)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
if (((selected_block == 12) && (_local1._currentframe > 21)) && (_local1._currentframe < 30)) {
map_frm.main_map.turn_lr._visible = true;
map_frm.main_map.turn_lr._x = _local3 * per;
map_frm.main_map.turn_lr._y = _local2 * per;
}
}
}
function checkSelect() {
if (cur_layer == 0) {
var _local7 = Math.floor(map_frm.main_map._xmouse / per);
var _local6 = _local7 + 1;
var _local9 = Math.floor(map_frm.main_map._ymouse / per);
var _local8 = _local9 + 1;
if (_local8 > 5) {
_local8 = 5;
}
if (_local6 > 6) {
_local6 = 6;
}
var _local5 = _local9;
while (_local5 < _local8) {
var _local4 = _local7;
while (_local4 < _local6) {
var _local3 = map_frm.main_map[(("map_" + _local5) + "_") + _local4];
if ((map_frm.main_map.turn_lr._visible == true) && (obj_type == undefined)) {
if ((((_local3._currentframe > 8) && (_local3._currentframe < 30)) && (!mouse_move)) && (this.map_box["map_" + selected_block].map_type != 20)) {
mcRotation(_local3, _local3._rotation + 90);
clearObj(_local3);
if ((_local3._currentframe == 10) || (_local3._currentframe == 9)) {
if (_local3._rotation == 0) {
map_array[_local5][_local4] = 10;
_local3.gotoAndStop(10);
trace("t1");
_local3.map_mc._visible = true;
} else if ((_local3._rotation == 180) || (_local3._rotation == -180)) {
map_array[_local5][_local4] = 10;
_local3.gotoAndStop(9);
trace("t2");
_local3.map_mc._visible = false;
} else if (_local3._rotation == 90) {
map_array[_local5][_local4] = 5;
_local3.gotoAndStop(10);
trace("t3");
_local3.map_mc._visible = true;
} else if (_local3._rotation == -90) {
map_array[_local5][_local4] = 5;
_local3.gotoAndStop(9);
trace("t4");
_local3.map_mc._visible = false;
}
}
if ((_local3._currentframe > 10) && (_local3._currentframe < 20)) {
if (_local3._rotation == 0) {
map_array[_local5][_local4] = 10;
} else if ((_local3._rotation == 180) || (_local3._rotation == -180)) {
map_array[_local5][_local4] = 10;
} else if (_local3._rotation == 90) {
map_array[_local5][_local4] = 5;
} else if (_local3._rotation == -90) {
map_array[_local5][_local4] = 5;
}
} else if ((_local3._currentframe > 19) && (_local3._currentframe < 30)) {
if (_local3._rotation == 0) {
map_array[_local5][_local4] = 3;
} else if (_local3._rotation == 90) {
map_array[_local5][_local4] = 6;
} else if (_local3._rotation == -90) {
map_array[_local5][_local4] = 9;
} else if ((_local3._rotation == 180) || (_local3._rotation == -180)) {
map_array[_local5][_local4] = 12;
}
}
return(undefined);
}
}
if (selected_block != undefined) {
if (selected_block == 0) {
if ((start_position[0] == undefined) && (start_position[1] == undefined)) {
mcRotation(_local3, this.map_box.map_0._rotation);
if (_local3._rotation == 0) {
map_array[_local5][_local4] = 10;
_local3.gotoAndStop(10);
} else if ((_local3._rotation == 180) || (_local3._rotation == -180)) {
map_array[_local5][_local4] = 10;
_local3.gotoAndStop(9);
_local3.map_mc._visible = false;
} else if (_local3._rotation == 90) {
map_array[_local5][_local4] = 5;
_local3.gotoAndStop(10);
} else if (_local3._rotation == -90) {
map_array[_local5][_local4] = 5;
_local3.gotoAndStop(9);
_local3.map_mc._visible = false;
}
if (((_local4 >= 0) && (_local4 < 6)) && ((_local5 >= 0) && (_local5 < 5))) {
start_position[1] = _local4;
start_position[0] = _local5;
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
this.map_box.map_0.gotoAndStop("used");
clearObj(_local3);
}
}
} else {
mcRotation(_local3, this.map_box["map_" + selected_block]._rotation);
if (this.map_box["map_" + selected_block].map_type == 1) {
if (_local3._rotation == 0) {
map_array[_local5][_local4] = 10;
_local3.gotoAndStop(selected_block + 11);
} else if ((_local3._rotation == 180) || (_local3._rotation == -180)) {
map_array[_local5][_local4] = 10;
if (this.map_box["map_" + selected_block].id == 2) {
_local3.gotoAndStop(selected_block + 12);
} else {
_local3.gotoAndStop(selected_block + 11);
}
} else if (_local3._rotation == 90) {
map_array[_local5][_local4] = 5;
_local3.gotoAndStop(selected_block + 11);
} else if (_local3._rotation == -90) {
map_array[_local5][_local4] = 5;
if (this.map_box["map_" + selected_block].id == 2) {
_local3.gotoAndStop(selected_block + 12);
} else {
_local3.gotoAndStop(selected_block + 11);
}
}
checkStartPosition(_local5, _local4);
} else if (this.map_box["map_" + selected_block].map_type == 10) {
if (_local3._rotation == 0) {
map_array[_local5][_local4] = 3;
} else if (_local3._rotation == 90) {
map_array[_local5][_local4] = 6;
} else if (_local3._rotation == -90) {
map_array[_local5][_local4] = 9;
} else if ((_local3._rotation == 180) || (_local3._rotation == -180)) {
map_array[_local5][_local4] = 12;
}
checkStartPosition(_local5, _local4);
_local3.gotoAndStop(selected_block + 10);
} else if (this.map_box["map_" + selected_block].map_type == 21) {
map_array[_local5][_local4] = 0;
checkStartPosition(_local5, _local4);
_local3.gotoAndStop(selected_block + 10);
} else if (this.map_box["map_" + selected_block].map_type == 20) {
map_array[_local5][_local4] = 0;
if ((_local3._currentframe == 10) || (_local3._currentframe == 9)) {
delete start_position[0];
delete start_position[1];
this.map_box.map_0.gotoAndStop(1);
}
_local3.gotoAndStop(selected_block + 10);
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
clearObj(this.map_frm.main_map[(("map_" + _local5) + "_") + _local4]);
}
}
_local4++;
}
_local5++;
}
}
}
function clearObj(target) {
for (var _local5 in obj_array) {
var _local3 = obj_array[_local5][1] + map_frm._x;
var _local2 = obj_array[_local5][2] + map_frm._y;
if (target.hitTest(_local3, _local2)) {
delete obj_array[_local5];
this.map_frm["obj_" + _local5].removeMovieClip();
obj_max++;
showMax();
}
}
}
function createObj(target, type) {
if ((((_xmouse > 50) && (_xmouse < 350)) && (_ymouse > 110)) && (_ymouse < 360)) {
var _local3;
var _local4 = obj_array.length;
var _local2 = 0;
while (_local2 < _local4) {
if (obj_array[_local2] == undefined) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 == undefined) {
_local3 = _local4;
}
var _local5;
switch (type) {
case 1 :
_local5 = "small_tree_img";
break;
case 4 :
_local5 = "tire_img";
break;
case 5 :
_local5 = "spanner_img";
break;
case 7 :
_local5 = "small_tire_img";
break;
case 9 :
_local5 = "small_person_img";
}
this.map_frm.attachMovie(_local5, "obj_" + _local3, 100 + _local3, {_x:this.map_frm._xmouse, _y:this.map_frm._ymouse});
obj_array[_local3] = [type, this.map_frm._xmouse, this.map_frm._ymouse];
obj_max--;
} else {
return(undefined);
}
}
function showMax() {
trace(["func showMax:", 30 - obj_max]);
objectnums2.text = (objectnums1.text = (Number(obj_max) + "/") + 30);
if (obj_max <= 0) {
map_box.obj_1_btn.gotoAndStop("DelSelect");
map_box.obj_4_btn.gotoAndStop("DelSelect");
map_box.obj_7_btn.gotoAndStop("DelSelect");
map_box.obj_9_btn.gotoAndStop("DelSelect");
obj_type = undefined;
} else if (obj_type == undefined) {
map_box.obj_1_btn.gotoAndStop("Out");
map_box.obj_4_btn.gotoAndStop("Out");
map_box.obj_7_btn.gotoAndStop("Out");
map_box.obj_9_btn.gotoAndStop("Out");
}
}
function checkStartPosition(yy, xx) {
if ((yy == start_position[0]) && (xx == start_position[1])) {
delete start_position[0];
delete start_position[1];
this.map_box.map_0.gotoAndStop(1);
}
}
function selectBlock(id) {
selected_block = id;
var _local2 = 0;
while (_local2 < 30) {
if (this.map_box["map_" + _local2]) {
if (_local2 == id) {
this.map_box["map_" + _local2].btn.gotoAndStop("selected");
} else {
this.map_box["map_" + _local2].btn.gotoAndStop("out");
}
}
_local2++;
}
}
function mapInit() {
var _local4 = 0;
while (_local4 < row) {
map_array[_local4] = new Array();
var _local3 = 0;
while (_local3 < line) {
map_array[_local4][_local3] = 0;
map_frm.main_map.attachMovie("map_base", (("map_" + _local4) + "_") + _local3, (_local4 * 100) + _local3, {_x:_local3 * per, _y:_local4 * per});
map_frm.main_map[(("map_" + _local4) + "_") + _local3].xs = _local3 * per;
map_frm.main_map[(("map_" + _local4) + "_") + _local3].ys = _local4 * per;
map_frm.main_map[(("map_" + _local4) + "_") + _local3].gotoAndStop(1);
_local3++;
}
_local4++;
}
map_frm.main_map.attachMovie("turn_lr", "turn_lr", map_frm.main_map.getNextHighestDepth());
map_frm.main_map.turn_lr._visible = false;
if (_root.level_code) {
_root.codeToArray(this);
}
setLayer();
showMax();
}
function mcRotation(target, rotation) {
trace(rotation);
if (rotation == 0) {
target._x = target.xs;
target._y = target.ys;
} else if ((rotation == 90) || (rotation == -270)) {
target._x = target.xs + target._width;
target._y = target.ys;
} else if ((rotation == 180) || (rotation == -180)) {
target._x = target.xs + target._width;
target._y = target.ys + target._width;
} else if ((rotation == -90) || (rotation == 270)) {
target._x = target.xs;
target._y = target.ys + target._width;
}
target._rotation = rotation;
}
function drawDown() {
if (!_root.lock) {
this.on_draw = false;
map_frm.main_map.draw_mc._x = map_frm.main_map._xmouse;
map_frm.main_map.draw_mc._y = map_frm.main_map._ymouse;
checkSelect();
mouse_move = false;
}
}
function bolckDirection(rtn) {
if (((selected_block != undefined) && (selected_block != 20)) && (selected_block != 21)) {
if (selected_block == -9) {
selected_block = 6;
} else if (selected_block == -1) {
selected_block = 7;
}
var _local2 = this.map_box["map_" + selected_block]._rotation;
if (rtn == "anticlockwise_btn") {
_local2 = _local2 - 90;
} else if (rtn == "desail_btn") {
_local2 = _local2 + 90;
}
if (_local2 < -180) {
_local2 = _local2 + 360;
} else if (_local2 > 180) {
_local2 = _local2 - 360;
}
mcRotation(this.map_box["map_" + selected_block], _local2);
}
}
function checkRoad(type, file_name) {
path_array = new Array();
var _local5 = start_position[0];
var _local6 = start_position[1];
if ((_local5 == undefined) || (_local6 == undefined)) {
_root.lock = true;
if (_root.localization_branding_nr == 1) {
msgBox("please set the start line", "normal");
}
if (_root.localization_branding_nr == 2) {
msgBox("\u8BF7\u8BBE\u7F6E\u8D77\u8DD1\u7EBF", "normal");
}
if (_root.localization_branding_nr == 3) {
msgBox("Bepaal de startlijn", "normal");
}
if (_root.localization_branding_nr == 4) {
msgBox("Place la ligne de d\u00E9part", "normal");
}
if (_root.localization_branding_nr == 5) {
msgBox("Platziere die Startlinie", "normal");
}
if (_root.localization_branding_nr == 6) {
msgBox("Okre\u015Bl lini\u0119 startu", "normal");
}
if (_root.localization_branding_nr == 7) {
msgBox("Ange startlinjen", "normal");
}
if (_root.localization_branding_nr == 8) {
msgBox("Imposta la linea di inizio", "normal");
}
if (_root.localization_branding_nr == 9) {
msgBox("Debes poner la l\u00EDnea de salida", "normal");
}
if (_root.localization_branding_nr == 10) {
msgBox("Defina a linha de largada", "normal");
}
if (_root.localization_branding_nr == 11) {
msgBox("Defina a linha de partida", "normal");
}
if (_root.localization_branding_nr == 12) {
msgBox("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u0435 \u043B\u0438\u043D\u0438\u044E \u0441\u0442\u0430\u0440\u0442\u0430", "normal");
}
if (_root.localization_branding_nr == 13) {
msgBox("Silakan mengatur garis permulaan", "normal");
}
return(false);
}
end_position[0] = _local5;
end_position[1] = _local6;
var _local13 = map_array[_local5][_local6];
var _local4;
var _local2 = map_frm.main_map[(("map_" + _local5) + "_") + _local6]._rotation;
if (map_frm.main_map[(("map_" + _local5) + "_") + _local6]._currentframe == 9) {
trace("9**" + _local2);
if (_local2 == 90) {
_local4 = 4;
} else if (_local2 == -90) {
_local4 = 4;
} else if (_local2 == 0) {
_local4 = 2;
} else if ((_local2 == 180) || (_local2 == -180)) {
_local4 = 2;
}
} else if (map_frm.main_map[(("map_" + _local5) + "_") + _local6]._currentframe == 10) {
trace("10**" + _local2);
if (_local2 == 90) {
_local4 = 1;
} else if ((_local2 == 180) || (_local2 == -180)) {
_local4 = 2;
} else if (_local2 == 0) {
_local4 = 8;
} else if (_local2 == -90) {
_local4 = 4;
}
}
var _local10 = runRoad(Number(_local5), Number(_local6), _local4, _local13);
_root.ENEMY_NUM = Number(enemy_mc.enemy_tf.text);
if (isNaN(_root.ENEMY_NUM)) {
_root.ENEMY_NUM = 0;
} else if (_root.ENEMY_NUM < 0) {
_root.ENEMY_NUM = 0;
} else if (_root.ENEMY_NUM > 6) {
_root.ENEMY_NUM = 6;
}
enemy_mc.enemy_tf.text = _root.ENEMY_NUM;
var _local3 = Number(lap_mc.lap_tf.text);
if (isNaN(_local3)) {
_local3 = 1;
} else if (_local3 <= 0) {
_local3 = 1;
} else if (_local3 > 3) {
_local3 = 3;
}
lap_mc.lap_tf.text = _local3;
if (type == "roadtest") {
if (_local10) {
return(true);
}
_root.lock = true;
if (_root.localization_branding_nr == 1) {
msgBox("there is somthing wrong with your map", "normal");
}
if (_root.localization_branding_nr == 2) {
msgBox("\u9053\u8DEF\u5B58\u5728\u9519\u8BEF", "normal");
}
if (_root.localization_branding_nr == 3) {
msgBox("Er is iets fout in je plattegrond", "normal");
}
if (_root.localization_branding_nr == 4) {
msgBox("Il y a un probl\u00E8me avec ta carte", "normal");
}
if (_root.localization_branding_nr == 5) {
msgBox("Deine Karte ist fehlerhaft", "normal");
}
if (_root.localization_branding_nr == 6) {
msgBox("B\u0142\u0119dy na mapie", "normal");
}
if (_root.localization_branding_nr == 7) {
msgBox("Det \u00E4r n\u00E5got fel p\u00E5 din karta", "normal");
}
if (_root.localization_branding_nr == 8) {
msgBox("Qualcosa non va con la mappa", "normal");
}
if (_root.localization_branding_nr == 9) {
msgBox("Hay alg\u00FAn error en tu mapa", "normal");
}
if (_root.localization_branding_nr == 10) {
msgBox("H\u00E1 algo errado no seu mapa", "normal");
}
if (_root.localization_branding_nr == 11) {
msgBox("O seu mapa tem algum tipo de incorrec\u00E7\u00E3o", "normal");
}
if (_root.localization_branding_nr == 12) {
msgBox("\u041D\u0430 \u043A\u0430\u0440\u0442\u0435 \u0438\u043C\u0435\u044E\u0442\u0441\u044F \u043E\u0448\u0438\u0431\u043A\u0438", "normal");
}
if (_root.localization_branding_nr == 13) {
msgBox("Ada yang salah dengan peta anda", "normal");
}
return(false);
}
if (type == "test") {
if (_local10) {
var _local12 = path_array.join("-");
var _local7 = new Array();
for (var _local9 in obj_array) {
if (obj_array[_local9]) {
_local7.push((obj_array[_local9][0].toString() + toLengthString(obj_array[_local9][1])) + toLengthString(obj_array[_local9][2]));
}
}
var _local11 = _local7.join("-");
if (!_root.map_id) {
_root.map_id = 1;
}
if ((_local11 != undefined) && (_local11 != "")) {
_root.level_code = ((((((((("#ho-pin_tung_racer-le#--" + String(_root.map_id)) + String(game_difficulty)) + "--") + _root.ENEMY_NUM) + "--") + _local3) + "--") + _local12) + "--") + _local11;
} else {
_root.level_code = ((((((("#ho-pin_tung_racer-le#--" + String(_root.map_id)) + String(game_difficulty)) + "--") + _root.ENEMY_NUM) + "--") + _local3) + "--") + _local12;
}
if (!_root.msg_box) {
trace("aaaaaaaaaaaaa");
_root.attachMovie("bg_btn", "bg_btn", _root.getNextHighestDepth());
_root.bg_btn._width = 550;
_root.bg_btn._height = 400;
_root.attachMovie("msg_box", "msg_box", _root.getNextHighestDepth());
_root.msg_box.gotoAndStop("difficulty");
}
_root.msg_box._x = 84;
_root.msg_box._y = 129;
_root.edit = "test";
} else {
_root.lock = true;
if (_root.localization_branding_nr == 1) {
msgBox("there is somthing wrong with your map", "normal");
}
if (_root.localization_branding_nr == 2) {
msgBox("\u9053\u8DEF\u5B58\u5728\u9519\u8BEF", "normal");
}
if (_root.localization_branding_nr == 3) {
msgBox("Er is iets fout in je plattegrond", "normal");
}
if (_root.localization_branding_nr == 4) {
msgBox("Il y a un probl\u00E8me avec ta carte", "normal");
}
if (_root.localization_branding_nr == 5) {
msgBox("Deine Karte ist fehlerhaft", "normal");
}
if (_root.localization_branding_nr == 6) {
msgBox("B\u0142\u0119dy na mapie", "normal");
}
if (_root.localization_branding_nr == 7) {
msgBox("Det \u00E4r n\u00E5got fel p\u00E5 din karta", "normal");
}
if (_root.localization_branding_nr == 8) {
msgBox("Qualcosa non va con la mappa", "normal");
}
if (_root.localization_branding_nr == 9) {
msgBox("Hay alg\u00FAn error en tu mapa", "normal");
}
if (_root.localization_branding_nr == 10) {
msgBox("H\u00E1 algo errado no seu mapa", "normal");
}
if (_root.localization_branding_nr == 11) {
msgBox("O seu mapa tem algum tipo de incorrec\u00E7\u00E3o", "normal");
}
if (_root.localization_branding_nr == 12) {
msgBox("\u041D\u0430 \u043A\u0430\u0440\u0442\u0435 \u0438\u043C\u0435\u044E\u0442\u0441\u044F \u043E\u0448\u0438\u0431\u043A\u0438", "normal");
}
if (_root.localization_branding_nr == 13) {
msgBox("Ada yang salah dengan peta anda", "normal");
}
}
} else if (type == "save") {
if (_local10) {
var _local12 = path_array.join("-");
var _local7 = new Array();
for (var _local9 in obj_array) {
if (obj_array[_local9]) {
_local7.push((obj_array[_local9][0].toString() + toLengthString(obj_array[_local9][1])) + toLengthString(obj_array[_local9][2]));
}
}
var _local11 = _local7.join("-");
if (!_root.map_id) {
_root.map_id = 1;
}
if ((_local11 != undefined) && (_local11 != "")) {
_root.level_code = ((((((((("#ho-pin_tung_racer-le#--" + String(_root.map_id)) + String(game_difficulty)) + "--") + _root.ENEMY_NUM) + "--") + _local3) + "--") + _local12) + "--") + _local11;
} else {
_root.level_code = ((((((("#ho-pin_tung_racer-le#--" + String(_root.map_id)) + String(game_difficulty)) + "--") + _root.ENEMY_NUM) + "--") + _local3) + "--") + _local12;
}
var _local8 = new Object();
_local8.data_name = file_name;
var _local14 = new Date();
_local8.Dat = _local14.getTime();
_local8.code = _root.level_code;
var _local15 = _root.saveData(_root.data_id, _local8);
if (_local15) {
return(true);
}
return(false);
}
_root.lock = true;
if (_root.localization_branding_nr == 1) {
msgBox("there is somthing wrong with your map", "normal");
}
if (_root.localization_branding_nr == 2) {
msgBox("\u9053\u8DEF\u5B58\u5728\u9519\u8BEF", "normal");
}
if (_root.localization_branding_nr == 3) {
msgBox("Er is iets fout in je plattegrond", "normal");
}
if (_root.localization_branding_nr == 4) {
msgBox("Il y a un probl\u00E8me avec ta carte", "normal");
}
if (_root.localization_branding_nr == 5) {
msgBox("Deine Karte ist fehlerhaft", "normal");
}
if (_root.localization_branding_nr == 6) {
msgBox("B\u0142\u0119dy na mapie", "normal");
}
if (_root.localization_branding_nr == 7) {
msgBox("Det \u00E4r n\u00E5got fel p\u00E5 din karta", "normal");
}
if (_root.localization_branding_nr == 8) {
msgBox("Qualcosa non va con la mappa", "normal");
}
if (_root.localization_branding_nr == 9) {
msgBox("Hay alg\u00FAn error en tu mapa", "normal");
}
if (_root.localization_branding_nr == 10) {
msgBox("H\u00E1 algo errado no seu mapa", "normal");
}
if (_root.localization_branding_nr == 11) {
msgBox("O seu mapa tem algum tipo de incorrec\u00E7\u00E3o", "normal");
}
if (_root.localization_branding_nr == 12) {
msgBox("\u041D\u0430 \u043A\u0430\u0440\u0442\u0435 \u0438\u043C\u0435\u044E\u0442\u0441\u044F \u043E\u0448\u0438\u0431\u043A\u0438", "normal");
}
if (_root.localization_branding_nr == 13) {
msgBox("Ada yang salah dengan peta anda", "normal");
}
}
}
function toLengthString(num, len) {
if (!len) {
len = 3;
}
num = Math.floor(num);
var _local2 = "";
var _local1 = 1;
while (_local1 < len) {
if (num >= Math.pow(10, _local1)) {
} else {
_local2 = _local2 + "0";
}
_local1++;
}
_local2 = _local2 + num.toString();
return(_local2);
}
function runRoad(j, i, cross, cur) {
var _local5 = false;
var _local7 = row * line;
while (_local7-- , _local7 > -1) {
var _local6 = path_array.length;
cur = map_array[j][i];
if ((((cross == 8) && (cur == 9)) || ((cross == 2) && (cur == 3))) || ((cross == 4) && (cur == 5))) {
if (map_array[j - 1][i] && (((map_array[j - 1][i] == 12) || (map_array[j - 1][i] == 5)) || (map_array[j - 1][i] == 6))) {
if ((_local6 > 1) && (((j - 1) == end_position[0]) && (i == end_position[1]))) {
_local5 = true;
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
break;
}
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
j--;
cross = 4;
} else {
_local5 = false;
break;
}
} else if ((((cross == 8) && (cur == 10)) || ((cross == 1) && (cur == 3))) || ((cross == 4) && (cur == 6))) {
if (map_array[j][i + 1] && (((map_array[j][i + 1] == 9) || (map_array[j][i + 1] == 10)) || (map_array[j][i + 1] == 12))) {
if ((_local6 > 1) && ((j == end_position[0]) && ((i + 1) == end_position[1]))) {
_local5 = true;
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
break;
}
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
i++;
cross = 8;
} else {
_local5 = false;
break;
}
} else if ((((cross == 8) && (cur == 12)) || ((cross == 1) && (cur == 5))) || ((cross == 2) && (cur == 6))) {
if (map_array[j + 1][i] && (((map_array[j + 1][i] == 3) || (map_array[j + 1][i] == 5)) || (map_array[j + 1][i] == 9))) {
if ((_local6 > 1) && (((j + 1) == end_position[0]) && (i == end_position[1]))) {
_local5 = true;
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
break;
}
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
j++;
cross = 1;
} else {
_local5 = false;
break;
}
} else if ((((cross == 1) && (cur == 9)) || ((cross == 2) && (cur == 10))) || ((cross == 4) && (cur == 12))) {
if (map_array[j][i - 1] && (((map_array[j][i - 1] == 3) || (map_array[j][i - 1] == 10)) || (map_array[j][i - 1] == 6))) {
if ((_local6 > 1) && ((j == end_position[0]) && ((i - 1) == end_position[1]))) {
_local5 = true;
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
break;
}
path_array.push(((j.toString() + i.toString()) + enCode(map_frm.main_map[(("map_" + j) + "_") + i]._currentframe)) + enCode(cur));
i--;
cross = 2;
} else {
_local5 = false;
break;
}
}
}
return(_local5);
}
function msgBox(txt, frame) {
if (!bg_btn) {
this.attachMovie("bg_btn", "bg_btn", this.getNextHighestDepth());
trace("bbbbbbbbbbb");
}
if (!msg_box) {
this.attachMovie("msg_box", "msg_box", this.getNextHighestDepth());
}
if (frame) {
msg_box.gotoAndStop(frame);
}
bg_btn._width = 550;
bg_btn._height = 440;
msg_box._x = (550 - msg_box._width) / 2;
msg_box._y = (400 - msg_box._height) / 2;
msg_box.msg_tf.text = txt;
}
function enCode(num) {
if (num < 10) {
return(num);
}
var _local2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
return(_local2[num]);
}
var lastme;
var obj_move = false;
var id = 20;
var per = 50;
var row = 5;
var line = 6;
var game_difficulty = 1;
var xs = (map_frm.main_map._x + map_frm._x);
var ys = (map_frm.main_map._y + map_frm._y);
map_frm.main_map.on_draw = true;
map_frm.main_map.useHandCursor = false;
var selected_block;
enemy_mc.enemy_tf.restrict = "0-6";
lap_mc.lap_tf.restrict = "1-3";
enemy_mc.enemy_tf.onSetFocus = function () {
enemy_mc.enemy_tf.setFocus();
};
lap_mc.lap_tf.onSetFocus = function () {
lap_mc.lap_tf.setFocus();
};
var obj_type;
var obj_max = 30;
var cur_layer = 0;
obj_box._visible = false;
var combox_list = ["China", "U.K", "South Africa", "Indonesia", "Netherlands", "Mexico"];
if (_root.localization_branding_nr == 1) {
var combox_listss = ["China", "U.K", "South Africa", "Indonesia", "Netherlands", "Mexico"];
}
if (_root.localization_branding_nr == 2) {
var combox_listss = ["\u4E2D\u56FD", "\u7F8E\u56FD", "\u5357\u7F8E", "\u5370\u5C3C", "\u8377\u5170", "\u58A8\u897F\u54E5"];
}
if (_root.localization_branding_nr == 3) {
var combox_listss = ["China", "U.K", "Zuid-Afrika", "Indonesi\u00EB", "Nederland", "Mexico"];
}
if (_root.localization_branding_nr == 4) {
var combox_listss = ["Chine", "Royaume-Uni", "Afrique du Sud", "Indon\u00E9sie", "Pays-Bas", "Mexique"];
}
if (_root.localization_branding_nr == 5) {
var combox_listss = ["China", "U.K", "S\u00FCdafrika", "Indonesien", "Niederlande", "Mexiko"];
}
if (_root.localization_branding_nr == 6) {
var combox_listss = ["Chiny", "U.K", "Afryka P\u0142d.", "Indonezja", "Holandia", "Meksyk"];
}
if (_root.localization_branding_nr == 7) {
var combox_listss = ["Kina", "Storbritannien", "Sydafrika", "Indonesien", "Nederl\u00E4nderna", "Mexiko"];
}
if (_root.localization_branding_nr == 8) {
var combox_listss = ["Cina", "U.K", "Sudafrica", "Indonesia", "Paesi Bassi", "Messico"];
}
if (_root.localization_branding_nr == 9) {
var combox_listss = ["China", "Reino Unido", "Sud\u00E1frica", "Indonesia", "Holanda", "M\u00E9jico"];
}
if (_root.localization_branding_nr == 10) {
var combox_listss = ["China", "RU", "\u00C1frica do Sul", "Indon\u00E9sia", "Holanda", "M\u00E9xico"];
}
if (_root.localization_branding_nr == 11) {
var combox_listss = ["China", "Reino Unido", "\u00C1frica do Sul", "Indon\u00E9sia", "Holanda", "M\u00E9xico"];
}
if (_root.localization_branding_nr == 12) {
var combox_listss = ["\u041A\u0438\u0442\u0430\u0439", "\u0412\u0435\u043B\u0438\u043A\u043E\u0431\u0440\u0438\u0442\u0430\u043D\u0438\u044F", "\u042E\u0436. \u0410\u0444\u0440\u0438\u043A\u0430", "\u0418\u043D\u0434\u043E\u043D\u0435\u0437\u0438\u044F", "\u041D\u0438\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u044B", "\u041C\u0435\u043A\u0441\u0438\u043A\u0430"];
}
if (_root.localization_branding_nr == 13) {
var combox_listss = ["Cina", "Inggris", "Afrika Selatan", "Indonesia", "Belanda", "Meksiko"];
}
var combox_id = 0;
var map_array = new Array();
if (!obj_array) {
var obj_array = new Array();
}
var start_position = new Array(2);
var end_position = new Array(2);
map_frm.main_map.onMouseDown = function () {
if ((!_root.lock) && (!_root.bg_btn)) {
if (cur_layer == 0) {
if (obj_type > 0) {
var _local4 = Math.floor(this._xmouse / 50);
var _local3 = Math.floor(this._ymouse / 50);
if (this[(("map_" + _local3) + "_") + _local4].map_mc.road_img.hitTest(_root._xmouse, _root._ymouse, true)) {
if (obj_max > 0) {
if (obj_type == 4) {
createObj("tire_img", 4);
} else if (obj_type == 5) {
createObj("spanner_img", 5);
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
showMax();
}
} else if (!this[(("map_" + _local3) + "_") + _local4].map_mc.grass.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((this._xmouse > 0) && (this._xmouse < this._width)) && (this._ymouse > 0)) && (this._ymouse < this._height)) {
if (obj_max > 0) {
if (obj_type == 1) {
createObj("small_tree_img", 1);
}
if (obj_type == 7) {
createObj("small_tire_img", 7);
}
if (obj_type == 9) {
createObj("small_person_img", 9);
}
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
showMax();
}
}
}
}
}
obj_move = false;
}
};
var mouse_move = false;
map_frm.main_map.onMouseMove = function () {
checkTurn();
if ((cur_layer == 0) && (!_root.bg_btn)) {
if (this.draw_mc && (this.on_draw)) {
mouse_move = true;
}
}
};
map_frm.main_map.onReleaseOutside = drawDown;
map_frm.main_map.onRelease = drawDown;
var path_array = new Array();
mapInit();
Symbol 2274 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2282 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2296 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2297 Button
on (release) {
_root.edit_help._visible = false;
_root.bg_btn.swapDepths(12193);
_root.bg_btn.removeMovieClip();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
on (keyPress "<Left>") {
prevFrame();
}
on (keyPress "<Right>") {
nextFrame();
}
Symbol 2298 Button
on (release) {
prevFrame();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2299 Button
on (release) {
nextFrame();
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
}
Symbol 2366 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2367 MovieClip [edit_help] Frame 1
stop();
Symbol 2367 MovieClip [edit_help] Frame 2
stop();
Symbol 2392 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2398 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2409 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2421 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2438 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m1");
Symbol 2438 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m2");
Symbol 2450 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m2");
Symbol 2450 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m3");
Symbol 2450 MovieClip Frame 60
this._parent._parent.preview_map.gotoAndStop("m1");
Symbol 2453 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m3");
Symbol 2453 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m4");
Symbol 2453 MovieClip Frame 60
this._parent._parent.preview_map.gotoAndStop("m2");
Symbol 2455 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m4");
Symbol 2455 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m1");
Symbol 2455 MovieClip Frame 60
this._parent._parent.preview_map.gotoAndStop("m2");
Symbol 2458 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m3");
Symbol 2458 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m5");
Symbol 2458 MovieClip Frame 60
this._parent._parent.preview_map.gotoAndStop("m4");
Symbol 2461 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m5");
Symbol 2461 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m6");
Symbol 2461 MovieClip Frame 60
this._parent._parent.preview_map.gotoAndStop("m4");
Symbol 2471 MovieClip Frame 1
this._parent._parent.preview_map.gotoAndStop("m3");
Symbol 2471 MovieClip Frame 30
this._parent._parent.preview_map.gotoAndStop("m4");
Symbol 2471 MovieClip Frame 60
this._parent._parent.preview_map.gotoAndStop("m5");
Symbol 2471 MovieClip Frame 90
this._parent._parent.preview_map.gotoAndStop("m6");
Symbol 2485 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2499 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2500 MovieClip Frame 1
Symbol 2500 MovieClip Frame 2
Symbol 2500 MovieClip Frame 3
Symbol 2500 MovieClip Frame 4
gotoAndStop (1);
Symbol 2501 MovieClip Frame 1
stop();
Symbol 2516 MovieClip Frame 1
stop();
Symbol 2516 MovieClip Frame 7
gotoAndStop (1);
Symbol 2529 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2538 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2549 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2555 MovieClip Frame 1
stop();
Symbol 2576 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2598 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2626 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2627 MovieClip Frame 1
stop();
Symbol 2631 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2639 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2640 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2641 MovieClip Frame 1
stop();
Symbol 2646 MovieClip Frame 1
stop();
this.txt_img.gotoAndStop(this._name);
this.onRollOver = function () {
if (_root.soundStatus == 1) {
_root.btn_snd1.start(0);
}
if (this._currentframe < 10) {
this.gotoAndStop("over");
this.txt_img.gotoAndStop(this._name);
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
this.onReleaseOutside = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
this.onRelease = function () {
if (_root.soundStatus == 1) {
_root.btn_snd2.start(0);
}
if (this._currentframe < 15) {
var _local3 = 1;
while (_local3 < 9) {
if (this._parent["cup_" + _local3]._currentframe < 15) {
this._parent["cup_" + _local3].gotoAndStop("out");
}
_local3++;
}
_root.cup_id = this._name.charAt(this._name.length - 1);
this._parent.race_mc.gotoAndStop(this._name);
_root.showFinish(_root.cup_id);
this.gotoAndStop("select");
_root.bottom_mc.race_mc._visible = true;
_root.bottom_mc.preview_map._visible = true;
_root.easy_btn._visible = true;
_root.normal_btn._visible = true;
_root.hard_btn._visible = true;
_root.select_btn._visible = true;
_root.bottom_mc.sel_bak._visible = false;
}
};
Symbol 2648 Button
on (release) {
this.gotoAndStop("menu");
}
Symbol 2650 MovieClip Frame 1
function mapInit() {
var _local2 = 0;
while (_local2 <= o) {
map_frm["obj_" + _local2].removeMovieClip();
_local2++;
}
p = 0;
o = 0;
map_array = new Array();
obj_array = new Array();
var _local3 = 0;
while (_local3 < row) {
map_array[_local3] = new Array();
_local2 = 0;
while (_local2 < line) {
map_array[_local3][_local2] = 0;
map_frm.main_map.attachMovie("map_base", (("map_" + _local3) + "_") + _local2, (_local3 * 100) + _local2, {_x:_local2 * per, _y:_local3 * per});
map_frm.main_map[(("map_" + _local3) + "_") + _local2].xs = _local2 * per;
map_frm.main_map[(("map_" + _local3) + "_") + _local2].ys = _local3 * per;
map_frm.main_map[(("map_" + _local3) + "_") + _local2].gotoAndStop(1);
_local2++;
}
_local3++;
}
codeToArray(automap[automapId]);
automapId++;
if (automapId == automap.length) {
automapId = 0;
}
this._parent.race_mc.showtxt.gotoAndStop(this._parent.race_mc.showtxt._currentframe + 1);
}
function setArea(id) {
map_frm.bg_img.gotoAndStop(id + 4);
}
function deCode(str) {
var _local1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
for (var _local3 in _local1) {
if (_local1[_local3] == str) {
return(Number(_local3));
}
}
}
function myRotation(num) {
if ((num == 3) || (num == 10)) {
return(0);
}
if ((num == 6) || (num == 5)) {
return(90);
}
if (num == 12) {
return(180);
}
if (num == 9) {
return(-90);
}
}
function updatemap() {
traget_mc = this;
if (p < path_array.length) {
var _local3 = path_array[p].charAt(0);
var _local4 = path_array[p].charAt(1);
var _local5 = deCode(path_array[p].charAt(2));
var _local2 = myRotation(deCode(path_array[p].charAt(3)));
trace((((((("j=" + _local3) + "i=") + _local4) + "id=") + _local5) + "rtn=") + _local2);
path_array[p] = [_local3, _local4, _local5, _local2];
if (_local5 < 20) {
if (((_local2 == 0) || (_local2 == 180)) || (_local2 == -180)) {
traget_mc.map_array[_local3][_local4] = 10;
} else if ((_local2 == 90) || (_local2 == -90)) {
traget_mc.map_array[_local3][_local4] = 5;
}
} else if (_local2 == 0) {
traget_mc.map_array[_local3][_local4] = 3;
} else if (_local2 == 90) {
traget_mc.map_array[_local3][_local4] = 6;
} else if ((_local2 == 180) || (_local2 == -180)) {
traget_mc.map_array[_local3][_local4] = 12;
} else if (_local2 == -90) {
traget_mc.map_array[_local3][_local4] = 9;
}
traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4].gotoAndStop(_local5);
if (_local2 == 90) {
traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._x = traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._x + 50;
} else if (_local2 == 180) {
traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._x = traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._x + 50;
traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._y = traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._y + 50;
} else if (_local2 == -90) {
traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._y = traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._y + 50;
}
traget_mc.map_frm.main_map[(("map_" + _local3) + "_") + _local4]._rotation = _local2;
p++;
return(true);
}
return(false);
}
function updateobj() {
traget_mc = this;
if (o < obj_array.length) {
var _local3 = parseInt(obj_array[o].charAt(0), 10);
var _local4 = parseInt(obj_array[o].slice(1, 4), 10);
var _local2 = parseInt(obj_array[o].slice(4), 10);
trace((((("type=" + _local3) + "xx=") + _local4) + "yy=") + _local2);
if (_local3 == 4) {
traget_mc.map_frm.attachMovie("tire_img", "obj_" + o, traget_mc.map_frm.getNextHighestDepth(), {_x:_local4, _y:_local2});
} else if (_local3 == 5) {
traget_mc.map_frm.attachMovie("spanner_img", "obj_" + o, traget_mc.map_frm.getNextHighestDepth(), {_x:_local4, _y:_local2});
} else if (_local3 == 1) {
traget_mc.map_frm.attachMovie("small_tree_img", "obj_" + o, traget_mc.map_frm.getNextHighestDepth(), {_x:_local4, _y:_local2});
} else if (_local3 == 7) {
traget_mc.map_frm.attachMovie("small_tire_img", "obj_" + o, traget_mc.map_frm.getNextHighestDepth(), {_x:_local4, _y:_local2});
} else if (_local3 == 9) {
traget_mc.map_frm.attachMovie("small_person_img", "obj_" + o, traget_mc.map_frm.getNextHighestDepth(), {_x:_local4, _y:_local2});
}
obj_array[o] = [_local3, _local4, _local2];
o++;
return(true);
}
return(false);
}
function codeToArray(lcode) {
var _local1 = lcode.split("--");
var _local2 = Number(_local1[1].charAt(0));
traget_mc.setArea(_local2);
path_array = _local1[4].split("-");
if (_local1[5] != undefined) {
obj_array = _local1[5].split("-");
}
}
stop();
var id = 20;
var per = 50;
var row = 5;
var line = 6;
var xs = (map_frm.main_map._x + map_frm._x);
var ys = (map_frm.main_map._y + map_frm._y);
var path_array;
var map_array;
var obj_array;
var p = 45;
var o = 0;
var automapId = 0;
this._parent.race_mc.showtxt.gotoAndStop(3);
var automap = new Array();
automap.push("#ho-pin_tung_racer-le#--11--6--3--02aa-03ca-04da-05kc-15l9-14ca-13da-12l6-22m9-21da-20m3-10c5-00l6-01da--9034094-9035082-9034065-1147091-1162091-1177091-1193091-1207091-1224091-1240093-1289033-1287020-1276013-1260011-4110027-4106023-4099025-4092021-4085027-4079024-4069031-4065023-4058026-9109101-9106105-9095108-7046113-7053114-7256062-7253040");
automap.push("#ho-pin_tung_racer-le#--21--6--3--22a5-32d5-42k3-43k9-33c5-23d5-13k6-14da-15k9-05kc-04ca-03da-02da-01ca-00k6-10k3-11da-12kc--9256060-9249060-9236060-9220060-9206061-9192062-9178063-9127066-9122064-9107062-9092058-9074059-9061064-1186095-1196085-1185093-1112097-1108091-1098089-7150210-7263049-7038059-4127128-4122126-4126112-4123110-4128095-4123096-4125085-4121084");
automap.push("#ho-pin_tung_racer-le#--31--6--3--02aa-03da-04lc-14l9-13ca-12m6-22l3-23kc-33k9-32ca-31m3-21d5-11d5-01k6--1146094-1144106-1144111-1146114-1246012-1245029-1244043-1243053-1250069-4119024-4124028-4109023-4101025-4093025-4085025-4102025-4111025-7156140-7153165-9106099-9110103-9107108-9104112-1198062-1181058-1161058-1141058-7086147-7108165-1091154");
automap.push("#ho-pin_tung_racer-le#--41--6--3--33aa-34kc-44k9-43da-42ca-41l3-31c5-21d5-11c5-01l6-02lc-12c5-22d5-32m3--4158176-4151176-4140183-4144177-4133193-4129193-4122194-1213163-1187164-1160160-1137140-1133106-1134068-1050052-1051069-1051097-1052158-1050190-1045220-7089206-7088042-9104043-9107046-9112047-9109159-9106163-9103172-9197196-9205197-9201202");
automap.push("#ho-pin_tung_racer-le#--51--6--3--32aa-33da-34ca-35k9-25d5-15kc-14k6-24k9-23da-22da-21k3-11kc-10k6-20d5-30k3-31ca--4048173-4056174-4065175-4070175-4076175-4083175-4090171-7038096-7063091-7239089-7263092-1089099-1100102-1111107-1129108-1147108-1168109-1184109-1194106-1210104-9253149-9243153-9248154-9039144-9045144-9041146-9143157-9149151-9150158-1154107");
automap.push("#ho-pin_tung_racer-le#--61--6--3--32aa-33m9-23mc-22m3-12mc-11m6-21m9-20m6-30k3-31ca--4092174-4097174-4086172-4080177-4071172-4073174-4063177-4060172-1092093-1101093-1097099-1140098-1146100-1149102-1035113-1042108-1050105-1186133-1187138-1192146-9148144-9150147-9154149-9115186-9123186-9119189-1011176-1014176-1018179");
automap.push("#ho-pin_tung_racer-le#--11--6--3--12aa-13da-14l9-04lc-03ca-02ca-01ca-00l6-10l3-11ca--1126006-1116005-1178049-1166048-1153049-1121051-1107051-1090052-1194011-1173013-1158010-1094006-1076010-1059009-9134099-9144094-9134090-9045060-9050057-9043055-9044043-9035044-9041039-9205062-9210059-4102076-4093076-4083077-4072074-4062073");
automap.push("#ho-pin_tung_racer-le#--21--6--3--20a5-10l6-11m9-01m6-02lc-12l3-13kc-23k9-22da-21l6-31c5-41l9-40k3-30c5--1091150-1102142-1094141-9100051-9104043-9097044-9053097-9043096-9048092-1055053-1046053-1050048-1143058-1149054-1138054-1154106-1146105-1155098-7056206-7041207-9060182-9052190-9045185-4027209-4024198-4024198-4022190-4025180-4026168-4024159");
automap.push("#ho-pin_tung_racer-le#--31--6--3--12aa-13mc-23d5-33m9-32da-31m3-21d5-11m6--9192106-9196098-9188103-4069067-4074070-4079079-4079079-4081084-4091077-4091077-4096075-7083067-7192147-7061163-9121093-9128088-9117088-9127160-9134159-9124158-1101157-1105151-1091154-1163149-1156149-1161144-1147096-1150092-1145088");
automap.push("#ho-pin_tung_racer-le#--41--6--3--22aa-23da-24k9-14k6-15k9-05kc-04da-03k6-13k9-12m3-02mc-01k6-11k9-10k6-20k3-21ca--9091111-9096110-9087110-9082086-9082079-9075087-9161097-9147098-9151090-1201053-1189051-1197045-7252063-7254054-7255043-7201102-7046108-4067127-4074125-4088125-4080127-4096126-4091124-4101123-1053054-1055045-1048052-1150052-1156048-1146047");
automap.push("#ho-pin_tung_racer-le#--51--6--3--32a5-42k3-43k9-33c5-23k6-24k9-14kc-13k3-03kc-02k6-12k9-11k6-21k3-22kc--9186223-9183218-9179228-7163039-7140044-7150142-9169116-9175111-9169112-9130121-9135117-9129117-1194103-1190100-1179100-1168099-1158099-1146099-1136099-1125101-1111101-1103103-4125141-4125150-4126159-4126166-4123134-4120132");
automap.push("#ho-pin_tung_racer-le#--61--6--3--24a5-34m9-33k6-43l9-42l3-32kc-31m3-21d5-11m6-12da-13da-14mc--7211155-7214152-7081099-7095090-9159206-9151206-9140206-9107159-9107154-9099153-1209189-1202191-1191190-1111200-1109191-1099189-1094063-1086065-4224102-4224108-4224110-4225113-4225117-1186057-1194053-1194061-9142062-9150060-9149065-1088049");
automap.push("#ho-pin_tung_racer-le#--11--6--3--01aa-02kc-12k9-11k6-21d5-31l3-32kc-42k9-41ca-40m3-30d5-20d5-10d5-00k6--1009111-1008118-1009131-1092107-1092117-1092128-1031014-1020018-1015027-1123241-1137235-1139217-1139040-1138048-1138055-4071027-4061027-4050026-4067028-4054024-4041029-9043040-9039043-9042044-9044204-9051208-9053211-9090158-9096164-9099151");
automap.push("#ho-pin_tung_racer-le#--21--6--3--03aa-04lc-14l9-13l6-23l9-22l3-12lc-11l3-01l6-02da--4106023-1054064-1054055-1055046-1192094-1185094-1196089-1111100-1112094-1104091-7101065-7093062-9093048-9087046-9097046-9154111-9147111-9156105-9149105-9140105-1205061-1212057-1212052-1213047-1213042-4115027-4120030-4131027-4139028-4145028");
automap.push("#ho-pin_tung_racer-le#--31--6--3--01aa-02mc-12d5-22m9-21da-20l3-10d5-00k6--1085141-1077141-1067142-9102092-9107103-9110095-9044051-9037050-9047049-9107047-9101044-9094042-1051110-1037106-1048105-1038101-1137094-1137084-1138075-1138063-1012034-1013024-1022019-1028014-4026042-4035027-4027031-4031030-4039027-4044027");
this.onEnterFrame = function () {
if (!updatemap()) {
if (!updateobj()) {
p++;
if (p > 45) {
mapInit();
}
}
}
};
Symbol 2654 MovieClip Frame 1
stop();
Symbol 2654 MovieClip Frame 2
stop();
Symbol 2654 MovieClip Frame 3
stop();
Symbol 2654 MovieClip Frame 4
stop();
Symbol 2654 MovieClip Frame 5
stop();
Symbol 2654 MovieClip Frame 6
stop();
Symbol 2654 MovieClip Frame 7
stop();
Symbol 2654 MovieClip Frame 8
stop();
Symbol 2655 Button
on (release) {
this.getURL(_root.moregames_url, "_blank");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 2667 MovieClip Frame 1
stop();
Symbol 2667 MovieClip Frame 2
stop();
Symbol 2667 MovieClip Frame 3
stop();
Symbol 2667 MovieClip Frame 4
stop();
Symbol 2689 Button
on (release, keyPress "<Space>") {
_root.win_snd.stop("snd_win");
_root.submit_mc.removeMovieClip();
delete _root.win_snd;
if (_root.edit == "run") {
this.gotoAndStop("editor");
_root.edit = undefined;
} else {
this.gotoAndStop("game start");
if (_root.soundStatus == 1) {
trace("aaaaa" + load_sound);
if (load_sound == undefined) {
var load_sound = new Sound();
trace("bbbbb" + load_sound);
load_sound.attachSound("bg_Menu.mp3");
load_sound.start(0, 1000);
}
}
}
}
Symbol 2723 Button
on (release) {
this.getURL(_root.moregames_url, "_blank");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 2724 Button
on (release) {
delete list_obj;
this.gotoAndStop("menu");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 2729 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.area = this._name;
this._parent.showScore();
};
this.onRollOver = function () {
if (this._currentframe != 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe != 10) {
this.gotoAndStop("out");
}
};
Symbol 2742 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2744 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.difficulty = this._name;
this._parent.showScore(true);
};
this.onRollOver = function () {
if (this._currentframe < 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
Symbol 2744 MovieClip Frame 15
stop();
Symbol 2744 MovieClip Frame 20
gotoAndStop (1);
Symbol 2753 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2755 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.difficulty = this._name;
this._parent.showScore(true);
};
this.onRollOver = function () {
if (this._currentframe < 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
Symbol 2755 MovieClip Frame 15
stop();
Symbol 2755 MovieClip Frame 20
gotoAndStop (1);
Symbol 2767 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2769 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.difficulty = this._name;
this._parent.showScore(true);
};
this.onRollOver = function () {
if (this._currentframe < 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe < 10) {
this.gotoAndStop("out");
}
};
Symbol 2769 MovieClip Frame 15
stop();
Symbol 2769 MovieClip Frame 20
gotoAndStop (1);
Symbol 2772 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.area = this._name;
this._parent.showScore();
};
this.onRollOver = function () {
if (this._currentframe != 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe != 10) {
this.gotoAndStop("out");
}
};
Symbol 2775 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.area = this._name;
this._parent.showScore();
};
this.onRollOver = function () {
if (this._currentframe != 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe != 10) {
this.gotoAndStop("out");
}
};
Symbol 2778 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.area = this._name;
this._parent.showScore();
};
this.onRollOver = function () {
if (this._currentframe != 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe != 10) {
this.gotoAndStop("out");
}
};
Symbol 2781 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.area = this._name;
this._parent.showScore();
};
this.onRollOver = function () {
if (this._currentframe != 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe != 10) {
this.gotoAndStop("out");
}
};
Symbol 2784 MovieClip Frame 1
stop();
this.onRelease = function () {
this._parent.area = this._name;
this._parent.showScore();
};
this.onRollOver = function () {
if (this._currentframe != 10) {
this.gotoAndStop("over");
}
};
this.onRollOut = function () {
if (this._currentframe != 10) {
this.gotoAndStop("out");
}
};
Symbol 2785 Button
on (release) {
_root.deleteData(0);
game_data.data[area_array[a]][difficulty_array[d]].NO_10.score == undefined;
_root.initHighScore();
var list_obj = _root.loadData(0);
_root.showScore();
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 2798 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2808 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2811 Button
on (release) {
delete list_obj;
_root.submit_mc.removeMovieClip();
this.gotoAndStop("menu");
if (_root.soundStatus == 1) {
btn_snd2.start(0);
}
}
on (rollOver) {
if (_root.soundStatus == 1) {
btn_snd1.start(0);
}
}
Symbol 2831 MovieClip Frame 1
stop();
Symbol 2831 MovieClip Frame 2
stop();
Symbol 2831 MovieClip Frame 3
stop();
Symbol 2831 MovieClip Frame 4
stop();
Symbol 2831 MovieClip Frame 5
stop();
Symbol 2831 MovieClip Frame 6
stop();
Symbol 2844 MovieClip Frame 1
stop();
Symbol 2845 MovieClip Frame 1
var map_code = new Array();
map_code[0] = "cup--21--6--3--01aa-02kc-12k9-11da-10k3-00k6--9027019-9015041-9008062-7132024-7124021-7110043-1058061-1047061-1043064-5129048-5125066-5109072-4083073-4076073-4065071";
map_code[1] = "cup--61--6--3--13aa-14l9-04lc-03da-02k6-12k3--1167040-1181038-1170038-7117042-5151072-5136072-7108059-7118072-5158027-9136066-9143038-9139061-4125034-4122045-4124059";
map_code[2] = "cup--61--6--3--11aa-12da-13k9-03kc-02da-01da-00k6-10k3--4026046-4026056-5157027-5173030-5173043-4032072-4025068-1160059-1043064-1047061-9008062-9015041-9027019";
map_code[3] = "cup--41--6--3--12aa-13k9-03lc-02da-01da-00k6-10k3-11da--5174054-5030032-5045027-5022039-1047061-5166072-7179076-7183058-7172083-4026056-4026046";
map_code[4] = "cup--51--6--3--12aa-13m9-03lc-02da-01da-00k6-10k3-11da--5030032-5045027-5022039-4026068-4026056-4026046";
map_code[5] = "cup--41--6--3--01aa-02da-03mc-13m9-12da-11da-10k3-00k6--1021087-1037087-5030032-5045027-5022039-4026068-4026056-4026046";
map_code[6] = "cup--51--6--3--32aa-33ea-34k9-24c5-14kc-13l6-23k9-22l3-12kc-11k6-21d5-31k3--7174053-9137188-9122188-1087093-1088160-4224121-5099074-4075156-5184173-1215089";
map_code[7] = "cup--51--6--3--13a5-23l9-22m3-12kc-11k3-01k6-02da-03kc--9189104-9188098-1160041-1141039-1088060-7110112-4173042-4112072-5175095-5137133";
map_code[8] = "cup--51--6--3--2295-12d5-02k6-03kc-13l3-14kc-24k9-23l6-33k9-32k3--7119020-5225098-4161122-4174046-5124162-9113092-1134097-1134090";
map_code[9] = "cup--31--6--3--1395-03kc-02l6-12k9-11k6-21k3-22kc-32k3-33da-34k9-24lc-23k3--4086121-5123053-5123150-4176114-7111138-9187045-9186040-1164055-1164049-1164042";
map_code[10] = "cup--51--6--3--01aa-02da-03mc-13m9-12k6-22m9-21l3-11kc-10k3-00k6--7008034-7007047-7008063-9019027-9021018-9036017-1042082-4026046-4026056-4026068-5022039-5045027-5030032-1037087-1021087";
map_code[11] = "cup--11--6--3--02aa-03mc-13m9-12k6-22c5-32k9-31l3-21c5-11kc-10k3-00k6-01da--1021087-1037087-5030032-5045027-5022039-4026068-4026056-4026046-1042082-9036017-9021018-9019027-7008063-7007047-7008034";
map_code[12] = "cup--41--6--3--21a5-31l3-32k9-22c5-12k6-13m9-03lc-02da-01da-00k6-10k3-11kc--7008034-7007047-7008063-9019027-9021018-9036017-1042082-4026046-4026056-4026068-5022039-5045027-5030032-1037087-1021087";
map_code[13] = "cup--51--6--3--22a5-32k9-31k3-21c5-11kc-10k3-00k6-01da-02da-03kc-13k9-12k6--7008034-7007047-7008063-9019027-9021018-9036017-1042082-4026046-4026056-4026068-5022039-5045027-5030032-1037087-1021087";
map_code[14] = "cup--31--6--3--22a5-32k9-31l3-21c5-11kc-10k3-00k6-01da-02da-03lc-13l9-12l6--7008034-7007047-7008063-9019027-9021018-9036017-1042082-4026046-4026056-4026068-5022039-5045027-5030032-1037087-1021087";
map_code[15] = "cup--11--6--3--13aa-14m9-04lc-03da-02k6-12k3--1167040-1181038-1170038-7117042-5151072-5136072-7108059-7118072-5158027-9136066-9143038-9139061-4125034-4122045-4124059";
map_code[16] = "cup--41--6--3--22aa-23ca-24k9-14d5-04lc-03ca-02k6-12k9-11da-10l6-20k3-21ca--4014067-4232014-5124033-5026101-7228129-7129019-7022054-1232069-9113132-9107133-9119133-5198124-4167125";
map_code[17] = "cup--61--6--3--2195-11l6-12da-13kc-23l9-22k6-32k9-31k3--5182134-4074157-5078065-9066120-9066125-7048070-7203137-1150064-1135134-1133141-4119077";
map_code[18] = "cup--31--6--3--34aa-35k9-25mc-24l3-14mc-13da-12ca-11k6-21k3-22da-23lc-33k3--5236055-4173145-1224066-1177116-1272117-1091090-7081135";
map_code[19] = "cup--31--6--3--34aa-35k9-25kc-24l3-14mc-13da-12k6-22k3-23lc-33k3--1153115-9220165-9229165-5256172-1159088-1262134-1224066-4173145-5236055";
map_code[20] = "cup--51--6--3--1195-01l6-02lc-12k3-13mc-23k9-22ea-21k3--5188063-4160122-4123053-5114124-9086079-9087072-7151014-1068026-1140065";
map_code[21] = "cup--41--6--3--23aa-24kc-34l9-33da-32m3-22l6--7117165-7209189-5142123-4178176-9198110-1208135-1202135-1193136";
map_code[22] = "cup--61--6--3--21a5-31k3-32l9-22k6-23k9-13mc-12da-11l6--7142063-5106075-4152123-9064156-9086156-9086145";
map_code[23] = "cup--31--6--3--12aa-13kc-23l3-24kc-34k9-33l6-43k9-42l3-32mc-31k3-21d5-11k6--7100188-5086173-4223155-9144062-1160100-1163095-1160090-9156064-5157223-4094074";
map_code[24] = "cup--21--6--3--12aa-13kc-23l9-22da-21k3-11m6--4102075-5125125-1162086-1161094-9145059-9152061-7048059";
map_code[25] = "cup--51--6--3--21a5-31k3-32k9-22k6-23l9-13mc-12l3-02kc-01da-00k6-10k3-11lc--5074108-5113025-4025060-4125148-1064098-1065093-7197057-9085146-9086140";
map_code[26] = "cup--61--6--3--339a-32k6-42k9-41l3-31d5-21k6-22k9-12k6-13kc-23k3-24lc-34k9--7088137-5155075-4073178-5208174-4102125-1193110-1188107-9153186-9145186";
map_code[27] = "cup--11--6--2--43aa-44k9-34l6-35k9-25c5-15kc-14l3-04kc-03da-02k6-12l9-11k6-21c5-31k3-32lc-42k3--1207151-4275121-5173026-4075121-5149223-9191215-9196236-1211097-1144094-1146157-7119020-7243166";
map_code[28] = "cup--31--6--2--349a-33k6-43k9-42k3-32kc-31ca-30k3-20e5-10k6-11kc-21k3-22l9-12k6-13kc-23l3-24k9-14k6-15kc-25c5-35k9--1148087-4024137-1143213-1155213-5237075-5070174-4275142-9194191-9203187-9201161";
map_code[29] = "cup--41--6--3--22a5-32l9-31l3-21kc-20k3-10d5-00k6-01kc-11m3-12mc--5125099-5076142-4024105-7100059-1035084-1035064-9113155-9116152";
getMapCode = function () {
var _local2 = this.map_code.length;
var _local3 = Math.floor(Math.random() * _local2);
return(this.map_code[_local3]);
};
Instance of Symbol 2851 MovieClip in Symbol 2852 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.frame % 4) != 0) {
return(undefined);
}
if ((_root.hp > 0) && (_root.hp < 30)) {
trace(_root.frame);
if (_root.frame != 0) {
_parent._parent._visible = true;
} else {
_parent._parent._visible = false;
}
_parent._parent.T_hp_bar.textColor = 16711680 /* 0xFF0000 */;
} else if ((_root.hp > 20) && (_root.hp < 60)) {
_parent._parent._visible = true;
_parent._parent.T_hp_bar.textColor = 16580364 /* 0xFCFF0C */;
} else if (_root.hp > 60) {
_parent._parent._visible = true;
_parent._parent.T_hp_bar.textColor = 1900288 /* 0x1CFF00 */;
}
if (_root.hp >= 0) {
this.gotoAndStop(int(50 - (_root.hp / 2)) + 1);
_parent._parent.T_hp_bar.text = _root.hp;
} else {
this.gotoAndStop(int(50 - (_root.hp / 2)) + 1);
_xscale = 0;
_parent._parent.T_hp_bar.text = "0";
}
var te = Math.round(_root.tire);
if (te < 30) {
trace(_root.frame);
if (_root.frame != 0) {
_parent._parent._parent.player_tire_bar._visible = true;
} else {
_parent._parent._parent.player_tire_bar._visible = false;
}
_parent._parent._parent.player_tire_bar.bar.T_player_tire.textColor = 16711680 /* 0xFF0000 */;
} else if ((te >= 30) && (te < 60)) {
_parent._parent._parent.player_tire_bar._visible = true;
_parent._parent._parent.player_tire_bar.bar.T_player_tire.textColor = 16580364 /* 0xFCFF0C */;
} else if (te >= 60) {
_parent._parent._parent.player_tire_bar._visible = true;
_parent._parent._parent.player_tire_bar.bar.T_player_tire.textColor = 1900288 /* 0x1CFF00 */;
}
if (te >= 0) {
_parent._parent._parent.player_tire_bar.bar.T_player_tire.text = te;
} else {
_parent._parent._parent.player_tire_bar.bar.T_player_tire.text = "0";
}
_parent._parent._parent.player_tire_bar.bar.bar.bar.gotoAndStop((200 - (te * 2)) + 1);
}
Symbol 2929 MovieClip [s] Frame 1
#initclip 11
Object.registerClass("s", speedMC);
#endinitclip
Symbol 2938 MovieClip Frame 1
stop();
Symbol 2938 MovieClip Frame 40
this.OnEnd();
Symbol 2951 MovieClip Frame 1
stop();
Symbol 2951 MovieClip Frame 2
stop();
Symbol 2951 MovieClip Frame 3
stop();
Symbol 2951 MovieClip Frame 4
stop();
Symbol 2951 MovieClip Frame 5
stop();
Symbol 2951 MovieClip Frame 6
stop();
Symbol 2951 MovieClip Frame 7
stop();
Symbol 2966 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2979 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 2993 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3006 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Instance of Symbol 2929 MovieClip [s] "speed_mc" in Symbol 3007 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.frame % 3) == 0) {
return(undefined);
}
if (_root.player_speed < 0) {
gotoAndStop (1);
_parent.T_speed_num.text = 0;
} else {
var p = Math.round(_root.player_speed * 4);
setSpeed(p);
if (p < 130) {
_parent.T_speed_num.textColor = 1900288 /* 0x1CFF00 */;
} else if (p < 200) {
_parent.T_speed_num.textColor = 16580364 /* 0xFCFF0C */;
} else if (p < 250) {
_parent.T_speed_num.textColor = 16750080 /* 0xFF9600 */;
} else {
_parent.T_speed_num.textColor = 16711680 /* 0xFF0000 */;
}
_parent.T_speed_num.text = p;
}
}
Symbol 3012 MovieClip Frame 1
stop();
this.gotoAndStop(_root.soundStatus);
Symbol 3026 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3043 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3057 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3079 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3080 MovieClip Frame 1
stop();
Symbol 3080 MovieClip Frame 11
stop();
Symbol 3080 MovieClip Frame 12
stop();
Symbol 3080 MovieClip Frame 21
stop();
Symbol 3080 MovieClip Frame 22
stop();
Symbol 3080 MovieClip Frame 23
stop();
Symbol 3080 MovieClip Frame 31
stop();
Symbol 3080 MovieClip Frame 32
stop();
Symbol 3080 MovieClip Frame 33
stop();
Symbol 3080 MovieClip Frame 34
stop();
Symbol 3080 MovieClip Frame 41
stop();
finlap_mc.gotoAndStop(_root.localization_branding_nr);
Symbol 3083 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3084 MovieClip Frame 1
stop();
Symbol 3084 MovieClip Frame 20
_visible = false;
_root.gameStart();
Symbol 3095 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3096 MovieClip Frame 1
stop();
Symbol 3096 MovieClip Frame 2
if (_root.soundStatus == 1) {
_root.win_snd = new Sound();
_root.win_snd.attachSound("snd_win");
_root.win_snd.start();
}
_root.bad_tire._visible = false;
Symbol 3096 MovieClip Frame 75
stop();
this._visible = false;
_root.traffic_begin = false;
if (_root.mingci > 4) {
_root.gameOver(true);
} else {
if ((_root.cup_id == 8) && (_root.mingci != 1)) {
_root.gameOver(true);
}
if ((_root.cur_circle == _root.map_array.length) && (_root.cup_id != 8)) {
_root.attachMovie("return_main", "continue_race", 138000);
} else {
_root.attachMovie("continue_race", "continue_race", 138000);
}
_root.continue_race._x = 275;
_root.continue_race._y = 200;
var i = 0;
while (i < 3) {
if (_root.all_best_lap_text[i] == "--:--:--") {
_root.all_best_lap_text[i] = _root.best_lap_text;
break;
}
i++;
}
_root.cue_finish.na = new Array();
_root.cue_finish.st = new Array();
_root.cue_finish.score = new Array();
_root.cue_finish.tscore = new Array();
var ob = new Object();
ob = _root.loadData(4);
if (((ob.playerName != null) && (ob.playerName != "")) && (ob.playerName != undefined)) {
_root.cue_finish.na[0] = ob.playerName;
} else {
_root.cue_finish.na[0] = "PLAYER";
}
_root.continue_race.score.T_name.text = _root.cue_finish.na[0];
_root.cue_finish.st[0] = _root.player_total_time;
_root.cue_finish.score[0] = _root.player_score;
_root.cue_finish.tscore[0] = _root.player_this_score;
var i = 1;
while (i <= _root.ENEMY_NUM) {
_root.cue_finish.st[i] = _root.enemy_total_time[i];
_root.cue_finish.na[i] = ("CPU " + i) + " ";
_root.cue_finish.score[i] = _root.enemy_score[i];
_root.cue_finish.tscore[i] = _root.enemy_this_score[i];
i++;
}
var temp = 0;
var i = 0;
while (i <= _root.ENEMY_NUM) {
var j = 0;
while (j <= (_root.ENEMY_NUM - i)) {
if (_root.cue_finish.score[j + 1] > _root.cue_finish.score[j]) {
temp = _root.cue_finish.st[j + 1];
_root.cue_finish.st[j + 1] = _root.cue_finish.st[j];
_root.cue_finish.st[j] = temp;
temp = _root.cue_finish.na[j + 1];
_root.cue_finish.na[j + 1] = _root.cue_finish.na[j];
_root.cue_finish.na[j] = temp;
temp = _root.cue_finish.score[j + 1];
_root.cue_finish.score[j + 1] = _root.cue_finish.score[j];
_root.cue_finish.score[j] = temp;
temp = _root.cue_finish.tscore[j + 1];
_root.cue_finish.tscore[j + 1] = _root.cue_finish.tscore[j];
_root.cue_finish.tscore[j] = temp;
}
j++;
}
i++;
}
var i = 1;
while (i <= 7) {
_root.continue_race.score["cent_" + (i + 1)].text = "";
_root.continue_race.score["tcent_" + (i + 1)].text = "";
_root.continue_race.score["ttcent_" + (i + 1)].text = "";
i++;
}
var i = 0;
var temp = 0;
while (i <= _root.ENEMY_NUM) {
_root.cue_finish.st[i] = _root.timer(_root.cue_finish.st[i], false);
_root.continue_race.score["ii_" + (i + 1)].text = (i + 1) + ". ";
_root.continue_race.score["na_" + (i + 1)].text = _root.cue_finish.na[i];
_root.continue_race.score["st_" + (i + 1)].text = _root.cue_finish.st[i];
_root.continue_race.score["cent_" + (i + 1)].text = _root.cue_finish.score[i];
_root.continue_race.score["tcent_" + (i + 1)].text = _root.cue_finish.tscore[i];
_root.continue_race.score["ttcent_" + (i + 1)].text = _root.cue_finish.tscore[i];
i++;
}
clearFrame(continue_race);
}
Symbol 3110 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3116 MovieClip Frame 1
_root.cue_outroad._visible = false;
_root.bad_tire._visible = false;
_root.illegal_cue._visible = false;
Symbol 3116 MovieClip Frame 15
if (_root.cup_id < 8) {
_root.cue_country.cue_lap._visible = true;
_root.cue_country._x = 368;
} else {
trace("yyyyyyyyyyyyyyyyyyyyyyy");
_root.cue_country.cue_lap._visible = false;
_root.cue_country._x = 270;
}
_root.cue_country._visible = true;
_root.cue_country.gotoAndStop(_root.map_id);
var temp = (((_root.map_array.length - 1) * 10) + _root.cur_circle);
_root.cue_country.cue_lap.gotoAndStop(temp);
if (_root.cup_id < 8) {
_root.cue_get4th._visible = true;
}
_root.cue_space_turbo._visible = true;
Symbol 3116 MovieClip Frame 16
var snd_time = new Sound();
var snd_time2 = new Sound();
snd_time.attachSound("sound_time");
snd_time2.attachSound("sound_time2");
Symbol 3116 MovieClip Frame 30
if (_root.soundStatus == 1) {
snd_time.start(0, false);
}
Symbol 3116 MovieClip Frame 45
if (_root.soundStatus == 1) {
snd_time.start(0, false);
}
Symbol 3116 MovieClip Frame 60
if (_root.soundStatus == 1) {
snd_time.start(0, false);
}
Symbol 3116 MovieClip Frame 75
if (_root.soundStatus == 1) {
snd_time2.start(0, false);
}
_root.cue_country._visible = false;
_root.cue_get4th._visible = false;
_root.cue_space_turbo._visible = false;
Symbol 3116 MovieClip Frame 80
_root.cue_start._visible = true;
_root.cue_start.gotoAndPlay(1);
Symbol 3116 MovieClip Frame 100
stop();
Symbol 3125 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3137 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3138 MovieClip Frame 1
stop();
Symbol 3138 MovieClip Frame 11
stop();
Symbol 3138 MovieClip Frame 12
stop();
Symbol 3138 MovieClip Frame 21
stop();
Symbol 3138 MovieClip Frame 22
stop();
Symbol 3138 MovieClip Frame 23
stop();
Symbol 3138 MovieClip Frame 31
stop();
Symbol 3138 MovieClip Frame 32
stop();
Symbol 3138 MovieClip Frame 33
stop();
Symbol 3138 MovieClip Frame 34
stop();
Symbol 3147 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3160 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3170 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3182 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3193 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3194 MovieClip Frame 1
stop();
Symbol 3194 MovieClip Frame 2
stop();
Symbol 3194 MovieClip Frame 3
stop();
Symbol 3194 MovieClip Frame 4
stop();
Symbol 3194 MovieClip Frame 5
stop();
Symbol 3194 MovieClip Frame 6
stop();
Symbol 3209 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3246 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3261 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 3262 MovieClip Frame 1
stop();