Frame 1
Mouse.show();
stopsound();
Frame 2
function senturl(a, b, c, d) {
getURL ((((((((("http://user.game.com.cn/game/?action=highscore&id=" + _global.gameID) + "&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 Vector(cx, cy);
verts = new Array();
normal = new Vector(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 Vector(_local3, _local2));
verts.push(new Vector(_local3, _local1));
verts.push(new Vector(_local4, _local1));
verts.push(new Vector(_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 Vector(x1, y1);
var _local6 = new Vector(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 Vector(x1, y1);
current = _local19.dot(_local6);
nextdot = _local19.cross(_local6);
current = current + nextdot;
var _local17 = new Vector(x1, y1);
current = _local17.dot(_local6);
nextdot = _local17.cross(_local6);
current = current + nextdot;
var _local16 = new Vector(x1, y1);
current = _local16.dot(_local6);
nextdot = _local16.cross(_local6);
current = current + nextdot;
_local19 = new Vector(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));
}
_root.localization_url1 = "http://www.gamesgames.com/moregames/";
_root.localization_url2 = "http://www.gamesgames.com/freegames/";
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_global.gameID = 6;
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
randomStr = Randoms(10);
Frame 3
Frame 5
Frame 6
txt = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
gotoAndPlay ("gameintro1");
}
Frame 16
Frame 27
gotoAndPlay ("loading");
Frame 31
_root.createEmptyMovieClip("bgm_sound", 99999);
S_mainscreen = new Sound(_root.bgm_sound);
S_mainscreen.attachSound("S_mainscreen");
S_level_music_1 = new Sound(_root.bgm_sound);
S_level_music_1.attachSound("S_level_music_1");
S_level_music_2 = new Sound(_root.bgm_sound);
S_level_music_2.attachSound("S_level_music_2");
S_level_music_3 = new Sound(_root.bgm_sound);
S_level_music_3.attachSound("S_level_music_3");
S_level_music_4 = new Sound(_root.bgm_sound);
S_level_music_4.attachSound("S_level_music_4");
S_level_failed = new Sound(_root.bgm_sound);
S_level_failed.attachSound("S_level_failed");
S_level_map = new Sound(_root.bgm_sound);
S_level_map.attachSound("S_level_map");
S_level_complete = new Sound(_root.bgm_sound);
S_level_complete.attachSound("S_level_complete");
S_mainscreen.start(0, 99999);
Frame 34
Mouse.show();
stopsound();
Frame 47
function stopsound() {
j = 1;
while (j < 4) {
bread["\u9762\u5305\u673A" + j].sound_breads.stop();
j++;
}
j = 1;
while (j < 4) {
i = 0;
while (i < 4) {
grill["\u70E7\u70E4\u53F0" + j].loa["grill" + i].sound_grill.stop();
i++;
}
j++;
}
OS.clic.sound_clock.stop();
}
function savegame(n) {
if (n == 1) {
_root.dates.data.again = true;
totalscore = 0;
i = 0;
while (i < gamedate.length) {
gamedate[i][0] = 0;
i++;
}
}
if (n == 3) {
_root.dates.data.again = false;
}
if (_root.level == 22) {
_root.maxlevel = 1;
_root.level = 1;
} else {
_root.totalscores();
if (_root.maxlevel < _root.level) {
_root.maxlevel = _root.level;
}
}
_root.dates.data.maxlevel = _root.maxlevel;
_root.dates.data.gamedate = _root.gamedate;
_root.dates.data.highscorelist = _root.highscorelist;
_root.dates.flush();
}
function sub_socre(n) {
upscore = 11;
i = 0;
while (i < highscorelist.length) {
trace((((("\u52A0\u5165\u6392\u884C\u699C\u7684\u4F4D\u7F6E " + i) + " highscorelist[i][1] ") + highscorelist[i][1]) + " highscorelist[i+1][1] ") + highscorelist[i + 1][1]);
if ((highscorelist[i][1] < totalscore) and ((highscorelist[i + 1][1] > totalscore) or (highscorelist[i + 1][1] == undefined))) {
highscorelist[i][1] = totalscore;
highscorelist[i][0] = n;
upscore = i + 1;
}
i++;
}
savegame();
}
function scoreup(n) {
_root.score = _root.score + n;
if ((_root.score >= gamedate[level - 1][1]) and (!showwelldones)) {
attachMovie("welldones", "welldones", 50);
timeover = true;
showwelldones = true;
clearInterval(scoreupss);
scoreupss = setInterval(scoreup2, 300);
}
}
function scoreup2() {
if (((((locguest[0][1] == 0) and (locguest[1][1] == 0)) and (locguest[2][1] == 0)) and (locguest[3][1] == 0)) and (welldones._x == undefined)) {
OS.gotoAndPlay("levelup");
clearInterval(scoreupss);
}
}
function totalscores(n) {
if (n == 1) {
totalscore = 0;
i = 0;
while (i < gamedate.length) {
if (i != (level - 1)) {
totalscore = totalscore + gamedate[i][0];
}
i++;
}
} else {
totalscore = 0;
i = 0;
while (i < gamedate.length) {
totalscore = totalscore + gamedate[i][0];
i++;
}
}
}
function showguest() {
if (((((time1 - gtime) > (gtime2 * 1000)) and (!timeover)) and (\u5B66\u4E60 != true)) and gamestart) {
if (loadgame2.n_guest == undefined) {
loadgame2.n_guest = 1000;
} else if (loadgame2.n_guest < 10) {
loadgame2.n_guest = 1000;
}
gtime = time1;
jq = 3 - level;
if (jq < 0) {
jq = 0;
}
var _local3 = guest[level - 1].length;
var _local2 = guest[level - 1][random(_local3)];
if (_local2 == 8) {
i = 0;
while (i < locguest.length) {
if (locguest[i][0] == 8) {
j = 0;
while (j < 10000) {
if (_local2 == 8) {
_local2 = guest[level - 1][random(_local3)];
} else {
j = 10000;
i = locguest.length;
}
j++;
}
}
i++;
}
}
gtime2 = random(14 + jq);
if (level < 5) {
sl = level;
} else {
sl = locguest.length;
}
i = 0;
while (i < sl) {
if (locguest[i][1] == 0) {
loadgame2.attachMovie("guests", "guests" + loadgame2.n_guest, loadgame2.n_guest);
loadgame2["guests" + loadgame2.n_guest]._x = locguestwz[i][1];
loadgame2["guests" + loadgame2.n_guest].x1 = loadgame2["guests" + loadgame2.n_guest]._x;
loadgame2["guests" + loadgame2.n_guest]._y = locguestwz[i][0];
loadgame2["guests" + loadgame2.n_guest].id = i;
loadgame2["guests" + loadgame2.n_guest].n = _local2;
loadgame2["guests" + loadgame2.n_guest].m1 = locguestwz[i][2];
loadgame2["guests" + loadgame2.n_guest].m2 = locguestwz[i][3];
locguest[i][0] = _local2;
locguest[i][1] = "guests" + loadgame2.n_guest;
if ((i < (locguest.length - 1)) and (_local2 == 9)) {
locguest[i + 1][0] = 10;
locguest[i + 1][1] = 10;
}
loadgame2.n_guest--;
_root["sound_\u8FDB\u95E8"].start(0, 1);
break;
}
i++;
}
}
}
function showhighscore() {
j = 10;
while (j > 0) {
trace("h" + j);
this["h" + j].txt1 = 11 - j;
this["h" + j].txt2 = highscorelist[j - 1][0];
this["h" + j].txt3 = highscorelist[j - 1][1];
j--;
}
this["h" + upscore].gotoAndStop(2);
}
function buildlevel() {
showwelldones = false;
goods = [[], [0, 0]];
i = 1;
while (i < 22) {
this["l" + i].n = i;
this["l" + i]._visible = false;
this["l" + i].bt._visible = false;
i++;
}
i = 1;
while (i <= maxlevel) {
this["l" + i]._visible = true;
if (maxlevel > 21) {
this["l" + i].bt._visible = true;
} else if (i != maxlevel) {
this["l" + i]._xscale = 80;
this["l" + i]._yscale = 80;
this["l" + i]._y = this["l" + i]._y + 2;
}
if (i == maxlevel) {
this["l" + i].gotoAndStop(2);
this["l" + i].bt._visible = true;
}
i++;
}
}
function buildgood() {
good = 1;
good0 = [2];
good1 = [4];
good2 = [];
good3 = [];
if (level > 1) {
good1.push(5);
}
if (level > 2) {
good1.push(7);
}
if (level > 4) {
good2.push(11);
good = 2;
}
if (level > 6) {
good0.push(3);
}
if (level > 10) {
good = 3;
good3.push(14);
}
if (level > 11) {
good1.push(10);
}
if (level > 10) {
good1.push(8);
}
if (level > 13) {
good2.push(13);
}
if (level > 15) {
good2.push(12);
}
if (level > 17) {
good1.push(9);
}
if (level > 18) {
good1.push(6);
}
}
function setup() {
loadgame.attachMovie("op", "op", 3);
loadgame.op._x = 225;
loadgame.op._y = 325;
loadgame.op.gotoAndStop(level);
loadgame.attachMovie("Char", "Char", 5);
loadgame.Char.y1 = 13;
loadgame.Char.x1 = 7;
loadgame.Char._x = loadgame.Char.x1 * (widths / 2);
loadgame.Char._y = loadgame.Char.y1 * heights;
loadgame.Char.gotoAndStop("st");
boxdate2 = [[11, 2, 1, 3, 5], [11, 3, 1, 3, 5], [12, 4, 1, 3, 5], [12, 5, 1, 3, 5], [13, 6, 1, 3, 5], [13, 7, 1, 3, 5], [14, 8, 1, 3, 5], [13, 9, 2, 4, 5], [13, 10, 2, 4, 5], [12, 11, 2, 4, 5], [12, 12, 2, 4, 5], [11, 13, 2, 4, 5], [11, 14, 2, 4, 5], [10, 15, 2, 4, 5], [10, 16, 2, 4, 5], [9, 17, 2, 4, 5], [9, 16, 3, 1, 1], [8, 15, 3, 1, 1], [8, 14, 3, 1, 1], [7, 13, 3, 1, 1], [7, 12, 3, 1, 1], [6, 11, 3, 1, 1], [7, 10, 4, 2, 1], [7, 9, 4, 2, 1], [8, 8, 4, 2, 1], [8, 7, 4, 2, 1], [9, 6, 4, 2, 1], [9, 5, 4, 2, 1], [10, 4, 4, 2, 1], [10, 3, 4, 2, 1]];
boxdate3 = [[11, 2, 1], [11, 3, 1], [12, 4, 1], [12, 5, 1], [13, 6, 1], [13, 7, 1], [14, 8, 1], [13, 9, 2], [13, 10, 2], [12, 11, 2], [12, 12, 2], [11, 13, 2], [11, 14, 2], [10, 15, 2], [10, 16, 2], [9, 17, 2], [9, 16, 3], [8, 15, 3], [8, 14, 3], [7, 13, 3], [7, 12, 3], [6, 11, 4], [7, 10, 4], [7, 9, 4], [8, 8, 4], [8, 7, 4], [9, 6, 4], [9, 5, 4], [10, 4, 4], [10, 3, 4]];
moveTarget = [];
boxdate = new Array(17);
buildgood();
}
function order(a, b) {
var _local2 = a[2];
var _local1 = b[2];
if (_local2 < _local1) {
return(-1);
}
if (_local2 > _local1) {
return(1);
}
return(0);
}
function shown4(m1, m2) {
if ((m1 == moveTarget[0][0]) and (m2 == moveTarget[0][1])) {
moveTarget.shift();
}
if ((m1 == moveTarget[1][0]) and (m2 == moveTarget[1][1])) {
moveTarget.pop();
}
}
function shown2(n1, n2) {
moveTarget.push([n1, n2]);
clearInterval(shownzx);
shownzx = setInterval(shown3, 300);
}
function shown3() {
if (!charmoving) {
if (moveTarget.length > 0) {
shown(moveTarget[0][0], moveTarget[0][1]);
moveTarget.shift();
}
}
}
function shown(n1, n2) {
if (!charmoving) {
moves = 0;
k = 0;
while (k < boxdate3.length) {
if ((n1 == boxdate3[k][0]) and (n2 == boxdate3[k][1])) {
moves = 1;
break;
}
k++;
}
if (moves == 1) {
moveready(n1, n2);
} else {
k = 0;
while (k < boxdate3.length) {
tmp1 = Math.abs(boxdate3[k][0] - n1);
tmp2 = Math.abs(boxdate3[k][1] - n2);
if (tmp1 == 0) {
tmp1 = 1;
}
if (tmp2 == 0) {
tmp2 = 1;
}
boxdate3[k][2] = (tmp1 * 20) + (tmp2 * 10);
k++;
}
boxdate3.sort(order);
k = 0;
while (k < boxdate3.length) {
this.loa[(("box_" + boxdate3[k][0]) + "_") + boxdate3[k][1]].txt2 = boxdate3[k][2];
k++;
}
j = boxdate3[0][1];
i = boxdate3[0][0];
if (((n1 - i) > 1) or ((n2 - j) > 1)) {
} else {
if ((j % 2) == 1) {
tmp = heights / 2;
} else {
tmp = 0;
}
moveready(i, j);
}
}
}
}
function moveready(y1, x1) {
charmoving = true;
k = 0;
while (k < boxdate2.length) {
if ((boxdate2[k][1] == loadgame.Char.x1) and (boxdate2[k][0] == loadgame.Char.y1)) {
station1 = k;
}
if ((boxdate2[k][1] == x1) and (boxdate2[k][0] == y1)) {
station2 = k;
}
k++;
}
if (station2 > station1) {
jl1 = station2 - station1;
jl2 = ((boxdate2.length + station1) - station2) - 1;
}
if (station2 < station1) {
jl2 = station1 - station2;
jl1 = ((boxdate2.length - station1) + station2) - 1;
}
if (jl1 < jl2) {
Set("\u65B9\u5411", "\u6B63");
} else {
Set("\u65B9\u5411", "\u53CD");
}
clearInterval(_root.mv);
_root.mv = setInterval(movechar, 20);
}
function movechar() {
if ((loadgame.Char.x1 == boxdate2[station1][1]) and (loadgame.Char.y1 == boxdate2[station1][0])) {
if (station1 == station2) {
trace("\u4EBA\u7269\u8FD0\u52A8\u7ED3\u675F");
Listener.broadcastMessage("_make");
Listener.broadcastMessage("_make2");
loadgame.Char.gotoAndStop("st");
charmoving = false;
clearInterval(mv);
return(undefined);
}
if (\u65B9\u5411 == "\u6B63") {
station1++;
if (station1 == boxdate2.length) {
station1 = 0;
}
} else {
station1--;
if (station1 < 0) {
station1 = boxdate2.length - 1;
}
}
}
Set("x\u76EE\u6807", boxdate2[station1][1] * (widths / 2));
if ((boxdate2[station1][1] % 2) == 1) {
tmp = heights / 2;
} else {
tmp = 0;
}
Set("y\u76EE\u6807", (boxdate2[station1][0] * heights) + tmp);
angle = Math.atan2(y\u76EE\u6807 - loadgame.Char._y, x\u76EE\u6807 - loadgame.Char._x);
ym = speed * Math.sin(angle);
xm = speed * Math.cos(angle);
loadgame.Char._x = loadgame.Char._x + xm;
loadgame.Char._y = loadgame.Char._y + ym;
if ((loadgame.Char.x1 % 2) == 0) {
tmp = 0;
} else {
tmp = heights / 2;
}
loadgame.Char.x1 = Math.round((loadgame.Char._x * 2) / widths);
loadgame.Char.y1 = Math.round((loadgame.Char._y - tmp) / heights);
if (\u65B9\u5411 == "\u6B63") {
loadgame.Char.gotoAndStop(boxdate2[station1][2] + 1);
} else {
loadgame.Char.gotoAndStop(boxdate2[station1][3] + 1);
}
loadgame.Char.swapDepths(boxdate2[station1][4]);
loadgame.Char.txt = (loadgame.Char.y1 + " ") + loadgame.Char.x1;
}
function boxs() {
this.createEmptyMovieClip("loa", 1);
loa._y = 6;
loa._x = 20;
i = 0;
while (i < 17) {
boxdate[i] = new Array(24);
j = 0;
while (j < 24) {
boxdate[i][j] = [i, j, 0];
loa.attachMovie("box", (("box_" + i) + "_") + j, loa.getNextHighestDepth());
if ((j % 2) == 1) {
tmp = heights / 2;
} else {
tmp = 0;
}
this.loa[(("box_" + i) + "_") + j]._x = j * (widths / 2);
this.loa[(("box_" + i) + "_") + j]._y = (i * heights) + tmp;
this.loa[(("box_" + i) + "_") + j].n1 = i;
this.loa[(("box_" + i) + "_") + j].n2 = j;
this.loa[(("box_" + i) + "_") + j].txt = (i + "_") + j;
k = 0;
while (k < boxdate2.length) {
if ((boxdate[i][j][0] == boxdate2[k][0]) and (boxdate[i][j][1] == boxdate2[k][1])) {
boxdate[i][j][3] = 1;
this.loa[(("box_" + i) + "_") + j].gotoAndStop(2);
}
k++;
}
j++;
}
i++;
}
}
function md5(randomStr) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local1 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local2 = -1732584194;
var _local3 = 271733878 /* 0x10325476 */;
var _local10 = str2binl(key);
if (_local10.length > 16) {
_local10 = core_average(_local10, key.length * chrsz);
}
var _local12 = Array(16);
var _local11 = Array(16);
var _local5 = 0;
while (_local5 < 16) {
_local12[_local5] = _local10[_local5] ^ 909522486;
_local11[_local5] = _local10[_local5] ^ 1549556828;
_local5++;
}
var _local13 = core_average(_local12.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_average(_local11.concat(_local13), 640));
while (_local5 < x.length) {
var _local6 = _local1;
var _local7 = _local4;
var _local8 = _local2;
var _local9 = _local3;
_local1 = average_ff(_local1, _local4, _local2, _local3, x[_local5 + 0], 7, -680876936);
_local3 = average_ff(_local3, _local1, _local4, _local2, x[_local5 + 1], 12, -389564586);
_local2 = average_ff(_local2, _local3, _local1, _local4, x[_local5 + 2], 17, 606105819);
_local4 = average_ff(_local4, _local2, _local3, _local1, x[_local5 + 3], 22, -1044525330);
_local1 = average_ff(_local1, _local4, _local2, _local3, x[_local5 + 4], 7, -176418897);
_local3 = average_ff(_local3, _local1, _local4, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = average_ff(_local2, _local3, _local1, _local4, x[_local5 + 6], 17, -1473231341);
_local4 = average_ff(_local4, _local2, _local3, _local1, x[_local5 + 7], 22, -45705983);
_local1 = average_ff(_local1, _local4, _local2, _local3, x[_local5 + 8], 7, 1770035416);
_local3 = average_ff(_local3, _local1, _local4, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = average_ff(_local2, _local3, _local1, _local4, x[_local5 + 10], 17, -42063);
_local4 = average_ff(_local4, _local2, _local3, _local1, x[_local5 + 11], 22, -1990404162);
_local1 = average_ff(_local1, _local4, _local2, _local3, x[_local5 + 12], 7, 1804603682);
_local3 = average_ff(_local3, _local1, _local4, _local2, x[_local5 + 13], 12, -40341101);
_local2 = average_ff(_local2, _local3, _local1, _local4, x[_local5 + 14], 17, -1502002290);
_local4 = average_ff(_local4, _local2, _local3, _local1, x[_local5 + 15], 22, 1236535329);
_local1 = average_gg(_local1, _local4, _local2, _local3, x[_local5 + 1], 5, -165796510);
_local3 = average_gg(_local3, _local1, _local4, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = average_gg(_local2, _local3, _local1, _local4, x[_local5 + 11], 14, 643717713);
_local4 = average_gg(_local4, _local2, _local3, _local1, x[_local5 + 0], 20, -373897302);
_local1 = average_gg(_local1, _local4, _local2, _local3, x[_local5 + 5], 5, -701558691);
_local3 = average_gg(_local3, _local1, _local4, _local2, x[_local5 + 10], 9, 38016083);
_local2 = average_gg(_local2, _local3, _local1, _local4, x[_local5 + 15], 14, -660478335);
_local1 = average_ii(_local1, _local4, _local2, _local3, x[_local5 + 12], 6, 1700485571);
_local3 = average_ii(_local3, _local1, _local4, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = average_ii(_local2, _local3, _local1, _local4, x[_local5 + 10], 15, -1051523);
_local4 = average_ii(_local4, _local2, _local3, _local1, x[_local5 + 1], 21, -2054922799);
_local1 = average_ii(_local1, _local4, _local2, _local3, x[_local5 + 8], 6, 1873313359);
_local3 = average_ii(_local3, _local1, _local4, _local2, x[_local5 + 15], 10, -30611744);
_local2 = average_ii(_local2, _local3, _local1, _local4, x[_local5 + 6], 15, -1560198380);
_local4 = average_ii(_local4, _local2, _local3, _local1, x[_local5 + 13], 21, 1309151649);
_local1 = average_ii(_local1, _local4, _local2, _local3, x[_local5 + 4], 6, -145523070);
_local3 = average_ii(_local3, _local1, _local4, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = average_ii(_local2, _local3, _local1, _local4, x[_local5 + 2], 15, 718787259);
_local4 = average_ii(_local4, _local2, _local3, _local1, x[_local5 + 9], 21, -343485551);
_local1 = safe_add(_local1, _local6);
_local4 = safe_add(_local4, _local7);
_local2 = safe_add(_local2, _local8);
_local3 = safe_add(_local3, _local9);
_local5 = _local5 + 16;
}
return(Array(_local1, _local4, _local2, _local3));
}
goods = [[], [0, 0]];
_global.widths = 47;
_global.heights = 27;
_global.speed = 3.5;
_global.mspeed = 100;
charmoving = false;
level = 1;
score = 0;
gamestart = false;
timeover = false;
time1 = getTimer();
time0 = 0;
dates = SharedObject.getLocal("Burger_Restaurant2");
highscorelist = [["cpu", 500], ["cpu", 1400], ["cpu", 2700], ["cpu", 3900], ["cpu", 5000], ["cpu", 6500], ["cpu", 8400], ["cpu", 9500], ["cpu", 11000], ["cpu", 12900]];
if ((_root.dates.data.highscorelist == null) or (_root.dates.data.highscorelist == undefined)) {
_root.dates.data.highscorelist = _root.highscorelist;
_root.dates.flush();
} else {
_root.highscorelist = _root.dates.data.highscorelist;
}
gamedate = [[0, 100, 3], [0, 200, 3.5], [0, 300, 4], [0, 400, 4.5], [0, 500, 5], [0, 600, 5.5], [0, 700, 6], [0, 300, 3], [0, 400, 3.5], [0, 500, 4], [0, 600, 4.5], [0, 700, 5], [0, 800, 5.5], [0, 900, 6], [0, 500, 3], [0, 600, 3.5], [0, 700, 4], [0, 800, 4.5], [0, 900, 5], [0, 1000, 5.5], [0, 1100, 6]];
if ((_root.dates.data.gamedate == null) or (_root.dates.data.gamedate == undefined)) {
_root.dates.data.gamedate = _root.gamedate;
_root.dates.data.again = false;
_root.dates.flush();
} else {
_root.gamedate = _root.dates.data.gamedate;
}
if ((_root.dates.data.maxlevel == null) or (_root.dates.data.maxlevel == undefined)) {
_root.level = 1;
_root.maxlevel = 1;
} else {
_root.level = _root.dates.data.maxlevel;
_root.maxlevel = _root.dates.data.maxlevel;
}
var Listener = new Object();
AsBroadcaster.initialize(Listener);
onEnterFrame = function () {
if (gamestart or \u5B66\u4E60) {
time1 = getTimer() - time0;
} else {
time0 = getTimer() - time1;
}
};
guest_star = [[0, 0], [4, 0], [4, 0], [3, 0], [5, 0], [4, 0], [3, 0], [4, 0], [4, 0], [4, 0]];
guest = [[1, 2], [1, 2], [1, 2, 3], [1, 2, 3], [1, 2, 9], [1, 2, 9], [1, 2, 3], [1, 2, 4], [4, 5, 1], [1, 5, 3], [4, 5, 8], [1, 5, 8], [2, 4, 9], [1, 5, 8, 9], [1, 5, 6], [2, 5, 6, 7, 8, 9], [1, 4, 5, 6], [1, 6, 7], [2, 5, 6, 7, 8], [1, 5, 6, 7, 8, 9], [1, 2, 5, 6, 7, 8, 9]];
locguestwz = [[521, 264, 14, 8], [480, 341, 13, 10], [439, 418, 10, 15], [391, 495, 9, 17]];
locguest = [[0, 0], [0, 0], [0, 0], [0, 0]];
gtime = time1;
gtime2 = 1.5;
clearInterval(showguests);
showguests = setInterval(showguest, 1500);
unshowgoods = function () {
loadgame.Char.loa.loa.removeMovieClip();
};
showgoods = function () {
loadgame.Char.loa.createEmptyMovieClip("loa", 1);
if (goods[1][0] > 0) {
j = 0;
k = 0;
if ((goods[0][0] == 2) or (goods[0][0] == 3)) {
loadgame.Char.loa.loa.attachMovie("plate", "plate", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.plate._y = 2;
loadgame.Char.loa.loa.plate._x = 2;
if (goods[0][0] == 2) {
loadgame.Char.loa.loa.attachMovie("_grill", "grill", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.grill._y = -5;
loadgame.Char.loa.loa.grill._x = 2;
}
if (goods[0][0] == 3) {
loadgame.Char.loa.loa.attachMovie("_chicken", "chicken", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.chicken._y = -5;
loadgame.Char.loa.loa.chicken._x = 2;
}
}
i = 0;
while (i < goods[0].length) {
if (goods[0][i] == 1) {
loadgame.Char.loa.loa.attachMovie("bread1", "bread1", loadgame.Char.loa.loa.getNextHighestDepth());
j++;
}
if ((goods[0][i] == 2) and (goods[0][0] == 1)) {
loadgame.Char.loa.loa.attachMovie("_grill", "grill", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.grill._y = (j * -8) + k;
j++;
}
if ((goods[0][i] == 3) and (goods[0][0] == 1)) {
loadgame.Char.loa.loa.attachMovie("_chicken", "chicken", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.chicken._y = (j * -8) + k;
j++;
}
if ((goods[0][i] > 10) and (goods[0][i] < 14)) {
loadgame.Char.loa.loa.attachMovie("cup", "cup", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.cup.n = goods[0][i] - 10;
loadgame.Char.loa.loa.cup._y = -5;
}
if (goods[0][i] == 14) {
loadgame.Char.loa.loa.attachMovie("frying", "frying", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.frying._y = -5;
}
if (goods[0][i] == 15) {
loadgame.Char.loa.loa.attachMovie("badfrying", "badfrying", loadgame.Char.loa.loa.getNextHighestDepth());
}
i++;
}
if (goods[0][0] == 1) {
if (goods[0].length == 1) {
m = -5.5;
} else {
m = -9;
}
loadgame.Char.loa.loa.attachMovie("bread2", "bread2", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa.bread2._y = m;
}
if (goods[1][0] == 2) {
loadgame.Char.loa.loa.attachMovie("\u9ED1\u70DF", "\u9ED1\u70DF", loadgame.Char.loa.loa.getNextHighestDepth());
loadgame.Char.loa.loa["\u9ED1\u70DF"]._y = -20;
loadgame.Char.loa.loa.grill.gotoAndStop(2);
loadgame.Char.loa.loa.chicken.gotoAndStop(2);
}
}
};
sound_mouseover = new Sound(this);
sound_mouseover.attachSound("sound_mouseover");
sound_mousedown = new Sound(this);
sound_mousedown.attachSound("sound_mousedown");
sound_levelup = new Sound(this);
sound_levelup.attachSound("sound_levelup");
sound_gold = new Sound(this);
sound_gold.attachSound("sound_gold");
Set("sound_\u5783\u573E\u7BB1", new Sound(this));
sound_\u5783\u573E\u7BB1.attachSound("sound_\u5783\u573E\u7BB1");
Set("sound_\u8FDB\u95E8", new Sound(this));
sound_\u8FDB\u95E8.attachSound("sound_\u8FDB\u95E8");
sound_err = new Sound(this);
sound_err.attachSound("sound_err");
S_Level_Complete_short = new Sound(this);
S_Level_Complete_short.attachSound("S_Level_Complete_short");
Set("\u5B57\u7B26\u51FD\u6570", function () {
});
go = function (m) {
Set("\u76EE\u7684", m);
gotoAndPlay ("gameintro2");
};
Instance of Symbol 852 MovieClip in Frame 97
onClipEvent (load) {
n = 1;
}
Instance of Symbol 854 MovieClip in Frame 99
onClipEvent (load) {
n = 2;
}
Instance of Symbol 856 MovieClip in Frame 101
onClipEvent (load) {
n = 3;
}
Instance of Symbol 858 MovieClip in Frame 103
onClipEvent (load) {
n = 4;
}
Instance of Symbol 860 MovieClip in Frame 105
onClipEvent (load) {
n = 5;
}
Frame 135
prevFrame();
Frame 136
_level0._x = 0;
_level0._y = 0;
Mouse.show();
Frame 152
gotoAndPlay(\u76EE\u7684);
Frame 153
_level0._x = 0;
_level0._y = 0;
Mouse.show();
stopsound();
Frame 194
prevFrame();
Frame 195
_level0._x = 0;
_level0._y = 0;
Mouse.show();
stopsound();
Frame 210
totalscores();
Listener.broadcastMessage("_clear");
S_level_music_1.stop();
S_level_music_2.stop();
S_level_music_3.stop();
S_level_music_4.stop();
S_level_map.start(0, 99999);
buildlevel();
_level0._x = 0;
_level0._y = 0;
Mouse.show();
stopsound();
Frame 245
prevFrame();
Frame 246
_level0._x = 0;
_level0._y = 0;
Listener.broadcastMessage("_clear");
Mouse.show();
stopsound();
Frame 256
if ((level == 1) and (_root["\u5DF2\u5B66\u4E60"] != true)) {
_root["\u5B66\u4E60"] = true;
}
msgs = [1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1];
stopAllSounds();
this["S_level_music_" + msgs[level - 1]].start(0, 99999);
gotoAndStop ("game");
Frame 257
gamedate[level - 1][0] = score;
totalscores();
scoress = totalscore;
_level0._x = 0;
_level0._y = 0;
Listener.broadcastMessage("_clear");
Mouse.show();
Frame 305
prevFrame();
_level0._x = 0;
_level0._y = 0;
Listener.broadcastMessage("_clear");
Frame 306
gamedate[level - 1][0] = score;
totalscores();
scoress = totalscore;
stopAllSounds();
S_level_complete.start(0, 1);
_level0._x = 0;
_level0._y = 0;
Listener.broadcastMessage("_clear");
Mouse.show();
stopsound();
Frame 327
prevFrame();
_level0._x = 0;
_level0._y = 0;
Listener.broadcastMessage("_clear");
Frame 328
showhighscore();
_level0._x = 0;
_level0._y = 0;
Mouse.show();
stopsound();
Frame 344
prevFrame();
_level0._x = 0;
_level0._y = 0;
Listener.broadcastMessage("_clear");
Frame 345
stop();
setup();
Mouse.hide();
Instance of Symbol 1268 MovieClip in Frame 345
onClipEvent (load) {
gotoAndStop(_root.level +344);
}
Instance of Symbol 1350 MovieClip "milkshake" in Frame 345
onClipEvent (load) {
m1 = 9;
m2 = 5;
}
Instance of Symbol 160 MovieClip "loadgold" in Frame 345
onClipEvent (load) {
n = 1;
}
Instance of Symbol 1818 MovieClip "鼠标" in Frame 345
onClipEvent (mouseMove) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
onClipEvent (mouseMove) {
Mouse.hide();
}
Frame 351
prevFrame();
Frame 354
gotoAndStop ("game");
Symbol 16 MovieClip [golds] Frame 1
moves = function () {
Set("x\u76EE\u6807", 400);
Set("y\u76EE\u6807", 60);
angle = Math.atan2(y\u76EE\u6807 - _y, x\u76EE\u6807 - _x);
ym = 21 * Math.sin(angle);
xm = 21 * Math.cos(angle);
_x = (_x + xm);
_y = (_y + ym);
if ((Math.abs(x\u76EE\u6807 - _x) < 10) and (Math.abs(y\u76EE\u6807 - _y) < 10)) {
sound_goldss = new Sound();
sound_goldss.attachSound("sound_goldss");
sound_goldss.start(0, 1);
clearInterval(id);
removeMovieClip(_root.loadgold[_name]);
}
};
this.onUnload = function () {
clearInterval(id);
};
id = setInterval(moves, 28);
Symbol 16 MovieClip [golds] Frame 12
gotoAndPlay (2);
Symbol 19 MovieClip [效果] Frame 22
stop();
Symbol 40 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 42 MovieClip [welldones] Frame 18
_parent.OS.clic.txts.textColor = 12775433 /* 0xC2F009 */;
Symbol 42 MovieClip [welldones] Frame 57
removeMovieClip(this);
Symbol 1819 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var x, y;
function Vector (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 Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new Vector(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 Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 106 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Instance of Symbol 55 MovieClip in Symbol 106 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 66 MovieClip in Symbol 106 MovieClip Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 69 MovieClip in Symbol 106 MovieClip Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 72 MovieClip in Symbol 106 MovieClip Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 75 MovieClip in Symbol 106 MovieClip Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 78 MovieClip in Symbol 106 MovieClip Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 81 MovieClip in Symbol 106 MovieClip Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 84 MovieClip in Symbol 106 MovieClip Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 87 MovieClip in Symbol 106 MovieClip Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 90 MovieClip in Symbol 106 MovieClip Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 93 MovieClip in Symbol 106 MovieClip Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 96 MovieClip in Symbol 106 MovieClip Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 99 MovieClip in Symbol 106 MovieClip Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 102 MovieClip in Symbol 106 MovieClip Frame 15
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 16
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 112 Button
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 122 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 122 MovieClip Frame 2
_parent.logos._visible = false;
Symbol 159 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(2);
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
n = 1;
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl2.select.gotoAndStop(1);
_parent.pl3.select.gotoAndStop(1);
_parent.pl2.makeready = false;
_parent.pl3.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods1[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods1[0][n4 - 1] > 3) and (_parent.locgoods1[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods1[0][n4 - 2] > 3) and (_parent.locgoods1[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods1[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods1[0].length > 1))) and (n2 < 2)) and (_parent.making1 == 0)) {
if (_parent.locgoods1[0][0] == 1) {
play();
_parent.making1 = 1;
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(1);
play();
_parent.making1 = 1;
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
_root.Listener.addListener(this);
Symbol 188 MovieClip Frame 20
Set("sound_\u914D\u6599", new Sound(this));
sound_\u914D\u6599.attachSound("sound_\u914D\u6599");
sound_\u914D\u6599.start(0, 999);
Symbol 188 MovieClip Frame 21
if (n > 5) {
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
gotoAndPlay ("end");
}
Symbol 188 MovieClip Frame 36
n++;
gotoAndPlay ("xh");
Symbol 188 MovieClip Frame 37
_parent.locgoods1[0].push(4);
_parent.showgood(1);
_parent.making1 = 0;
this["sound_\u914D\u6599"].stop();
Symbol 199 MovieClip Frame 1
stop();
Set("sound_\u914D\u65992", new Sound(this));
sound_\u914D\u65992.attachSound("sound_\u914D\u65992");
Symbol 199 MovieClip Frame 2
sound_\u914D\u65992.start(0, 1);
Symbol 199 MovieClip Frame 17
sound_\u914D\u65992.start(0, 1);
Symbol 199 MovieClip Frame 31
gotoAndPlay (2);
Symbol 220 MovieClip Frame 1
stop();
n = 1;
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl1.select.gotoAndStop(1);
_parent.pl3.select.gotoAndStop(1);
_parent.pl1.makeready = false;
_parent.pl3.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods1[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods1[0][n4 - 1] > 3) and (_parent.locgoods1[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods1[0][n4 - 2] > 3) and (_parent.locgoods1[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods1[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods1[0].length > 1))) and (n2 < 2)) and (_parent.making1 == 0)) {
if (_parent.locgoods1[0][0] == 1) {
play();
_parent.making1 = 1;
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(1);
play();
_parent.making1 = 1;
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
_root.Listener.addListener(this);
Symbol 220 MovieClip Frame 20
Set("sound_\u914D\u6599", new Sound(this));
sound_\u914D\u6599.attachSound("sound_\u914D\u6599");
sound_\u914D\u6599.start(0, 999);
Symbol 220 MovieClip Frame 21
if (n > 5) {
gotoAndPlay ("end");
}
Symbol 220 MovieClip Frame 36
n++;
gotoAndPlay ("xh");
Symbol 220 MovieClip Frame 37
_parent.locgoods1[0].push(5);
_parent.making1 = 0;
_parent.showgood(1);
this["sound_\u914D\u6599"].stop();
Symbol 227 MovieClip Frame 1
function make2() {
if ((getTimer() - t1) > 2800) {
_parent.locgoods2[0].push(7);
_parent.showgood(2);
_parent["\u70DF\u96FE"].gotoAndStop(1);
gotoAndStop (1);
_parent.making2 = 0;
clearInterval(glbt2);
}
}
stop();
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl12.select.gotoAndStop(1);
_parent.pl13.select.gotoAndStop(1);
_parent.pl14.select.gotoAndStop(1);
_parent.pl12.makeready = false;
_parent.pl13.makeready = false;
_parent.pl14.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods2[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 1] > 3) and (_parent.locgoods2[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 2] > 3) and (_parent.locgoods2[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods2[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods2[0].length > 1))) and (n2 < 2)) and (_parent.making2 == 0)) {
if (_parent.locgoods2[0][0] == 1) {
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
glbt2 = setInterval(make2, 500);
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(2);
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
glbt2 = setInterval(make2, 500);
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
this._clear = function () {
clearInterval(glbt2);
};
this.onUnload = function () {
clearInterval(glbt2);
};
_root.Listener.addListener(this);
Symbol 227 MovieClip Frame 11
_parent["\u70DF\u96FE"].gotoAndStop(1);
Symbol 234 MovieClip Frame 1
function make2() {
if ((getTimer() - t1) > 2800) {
_parent.locgoods2[0].push(8);
_parent.showgood(2);
_parent["\u70DF\u96FE"].gotoAndStop(1);
gotoAndStop (1);
_parent.making2 = 0;
clearInterval(glbt2);
}
}
stop();
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl11.select.gotoAndStop(1);
_parent.pl12.select.gotoAndStop(1);
_parent.pl14.select.gotoAndStop(1);
_parent.pl11.makeready = false;
_parent.pl12.makeready = false;
_parent.pl14.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods2[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 1] > 3) and (_parent.locgoods2[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 2] > 3) and (_parent.locgoods2[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods2[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods2[0].length > 1))) and (n2 < 2)) and (_parent.making2 == 0)) {
if (_parent.locgoods2[0][0] == 1) {
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
glbt2 = setInterval(make2, 500);
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(2);
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
glbt2 = setInterval(make2, 500);
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
this._clear = function () {
clearInterval(glbt2);
};
this.onUnload = function () {
clearInterval(glbt2);
};
_root.Listener.addListener(this);
Symbol 234 MovieClip Frame 11
_parent["\u70DF\u96FE"].gotoAndStop(1);
Symbol 242 MovieClip Frame 1
function make2() {
if ((getTimer() - t1) > 2800) {
_parent.locgoods2[0].push(10);
_parent.showgood(2);
_parent["\u70DF\u96FE"].gotoAndStop(1);
gotoAndStop (1);
_parent.making2 = 0;
clearInterval(ycbt2);
}
}
stop();
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl11.select.gotoAndStop(1);
_parent.pl13.select.gotoAndStop(1);
_parent.pl14.select.gotoAndStop(1);
_parent.pl11.makeready = false;
_parent.pl13.makeready = false;
_parent.pl14.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods2[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 1] > 3) and (_parent.locgoods2[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 2] > 3) and (_parent.locgoods2[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods2[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods2[0].length > 1))) and (n2 < 2)) and (_parent.making2 == 0)) {
if (_parent.locgoods2[0][0] == 1) {
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
ycbt2 = setInterval(make2, 500);
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(2);
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
clearInterval(ycbt2);
ycbt2 = setInterval(make2, 500);
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
this._clear = function () {
clearInterval(ycbt2);
};
this.onUnload = function () {
clearInterval(ycbt2);
};
_root.Listener.addListener(this);
Symbol 242 MovieClip Frame 11
_parent["\u70DF\u96FE"].gotoAndStop(1);
Symbol 250 MovieClip Frame 1
function make2() {
if ((getTimer() - t1) > 2800) {
_parent.locgoods2[0].push(9);
_parent.showgood(2);
_parent["\u70DF\u96FE"].gotoAndStop(1);
gotoAndStop (1);
_parent.making2 = 0;
clearInterval(xhsbt2);
}
}
stop();
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl11.select.gotoAndStop(1);
_parent.pl12.select.gotoAndStop(1);
_parent.pl13.select.gotoAndStop(1);
_parent.pl11.makeready = false;
_parent.pl12.makeready = false;
_parent.pl13.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods2[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 1] > 3) and (_parent.locgoods2[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods2[0][n4 - 2] > 3) and (_parent.locgoods2[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods2[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods2[0].length > 1))) and (n2 < 2)) and (_parent.making2 == 0)) {
if (_parent.locgoods2[0][0] == 1) {
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
xhsbt2 = setInterval(make2, 500);
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(2);
_parent["\u70DF\u96FE"].play();
t1 = getTimer();
gotoAndStop ("made");
_parent.making2 = 1;
xhsbt2 = setInterval(make2, 500);
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
this._clear = function () {
clearInterval(xhsbt2);
};
this.onUnload = function () {
clearInterval(xhsbt2);
};
_root.Listener.addListener(this);
Symbol 250 MovieClip Frame 11
_parent["\u70DF\u96FE"].gotoAndStop(1);
Symbol 270 MovieClip Frame 1
stop();
n = 1;
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
_parent.pl1.select.gotoAndStop(1);
_parent.pl2.select.gotoAndStop(1);
_parent.pl1.makeready = false;
_parent.pl2.makeready = false;
select.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent._parent.loadgame.Char.y1 == m1) and (_parent._parent._parent.loadgame.Char.x1 == m2)) and makeready) {
n2 = 0;
n3 = _root.goods[0].length;
n4 = _parent.locgoods1[0].length;
if ((_root.goods[0][n3 - 1] > 3) and (_root.goods[0][n3 - 1] < 11)) {
n2++;
}
if ((_root.goods[0][n3 - 2] > 3) and (_root.goods[0][n3 - 2] < 11)) {
n2++;
}
if ((_parent.locgoods1[0][n4 - 1] > 3) and (_parent.locgoods1[0][n4 - 1] < 11)) {
n2++;
}
if ((_parent.locgoods1[0][n4 - 2] > 3) and (_parent.locgoods1[0][n4 - 2] < 11)) {
n2++;
}
if (((((_root.goods[0][0] == 1) or (_parent.locgoods1[0][0] == 1)) and ((_root.goods[0].length > 1) or (_parent.locgoods1[0].length > 1))) and (n2 < 2)) and (_parent.making1 == 0)) {
if (_parent.locgoods1[0][0] == 1) {
play();
_parent.making1 = 1;
} else if (_root.goods[0][0] == 1) {
_root.unshowgoods();
_parent.showgood(1);
play();
_parent.making1 = 1;
}
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
}
};
_root.Listener.addListener(this);
Symbol 270 MovieClip Frame 20
Set("sound_\u914D\u6599", new Sound(this));
sound_\u914D\u6599.attachSound("sound_\u914D\u6599");
sound_\u914D\u6599.start(0, 999);
Symbol 270 MovieClip Frame 21
if (n > 5) {
gotoAndPlay ("end");
}
Symbol 270 MovieClip Frame 36
n++;
gotoAndPlay ("xh");
Symbol 270 MovieClip Frame 37
_parent.locgoods1[0].push(6);
_parent.showgood(1);
_parent.making1 = 0;
this["sound_\u914D\u6599"].stop();
Symbol 271 MovieClip [op] Frame 1
stop();
making1 = 0;
making2 = 0;
locgoods1 = [[], [0, 0]];
locgoods2 = [[], [0, 0]];
bt1.onPress = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
m1 = 11;
m2 = 14;
_root.shown2(m1, m2);
select1.gotoAndStop(2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_parent._parent.loadgame.Char.y1 == m1) and (_parent._parent.loadgame.Char.x1 == m2)) and makeready) {
if ((((locgoods1[1][0] > 0) and (_root.goods[1][0] == 0)) and (making1 == 0)) and (good1.loa._y != undefined)) {
good1.loa.removeMovieClip();
unshowgood(1);
_root.showgoods();
} else if (((((locgoods1[0][0] == 1) and (locgoods1[0].length == 1)) and ((_root.goods[0][0] == 2) or (_root.goods[0][0] == 3))) and (making1 == 0)) and (good1.loa._y != undefined)) {
good1.loa.removeMovieClip();
_root.goods[0].unshift(1);
locgoods1 = [[], [0, 0]];
_root.showgoods();
} else if ((((_root.goods[0][0] > 0) and (_root.goods[0][0] != 2)) and (_root.goods[0][0] != 3)) and (good1.loa._y == undefined)) {
showgood(1);
_root.unshowgoods();
} else {
_root.sound_err.start(0, 1);
}
select1.gotoAndStop(1);
makeready = false;
}
};
bt2.onPress = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
m1 = 12;
m2 = 12;
_root.shown2(m1, m2);
select2.gotoAndStop(2);
makeready2 = true;
}
};
makeready2 = false;
this._make2 = function () {
if (((_parent._parent.loadgame.Char.y1 == m1) and (_parent._parent.loadgame.Char.x1 == m2)) and makeready2) {
if ((((locgoods2[1][0] > 0) and (_root.goods[1][0] == 0)) and (making2 == 0)) and (good2.loa._y != undefined)) {
good2.loa.removeMovieClip();
unshowgood(2);
_root.showgoods();
} else if (((((locgoods2[0][0] == 1) and (locgoods2[0].length == 1)) and ((_root.goods[0][0] == 2) or (_root.goods[0][0] == 3))) and (making2 == 0)) and (good2.loa._y != undefined)) {
good2.loa.removeMovieClip();
_root.goods[0].unshift(1);
locgoods2 = [[], [0, 0]];
_root.showgoods();
} else if ((((_root.goods[0][0] > 0) and (_root.goods[0][0] != 2)) and (_root.goods[0][0] != 3)) and (good2.loa._y == undefined)) {
showgood(2);
_root.unshowgoods();
} else {
_root.sound_err.start(0, 1);
}
select2.gotoAndStop(1);
makeready2 = false;
}
};
unshowgood = function (m) {
i = 0;
while (i < this["locgoods" + m][0].length) {
_root.goods[0][i] = this["locgoods" + m][0][i];
i++;
}
_root.goods[1][0] = this["locgoods" + m][1][0];
_root.goods[1][1] = this["locgoods" + m][1][1];
this["locgoods" + m] = [[], [0, 0]];
};
showgood = function (m) {
if (this["locgoods" + m][1][0] == 0) {
i = 0;
while (i < _root.goods[0].length) {
this["locgoods" + m][0][i] = _root.goods[0][i];
i++;
}
this["locgoods" + m][1][0] = _root.goods[1][0];
this["locgoods" + m][1][1] = _root.goods[1][1];
_root.goods = [[], [0, 0]];
}
loc = this["good" + m];
loc.createEmptyMovieClip("loa", 1);
if (this["locgoods" + m][1][0] > 0) {
j = 0;
k = 0;
i = 0;
while (i < this["locgoods" + m][0].length) {
if (this["locgoods" + m][0][i] == 1) {
loc.loa.attachMovie("bread1", "bread1", loc.loa.getNextHighestDepth());
j++;
}
if (this["locgoods" + m][0][i] == 2) {
loc.loa.attachMovie("_grill", "grill", loc.loa.getNextHighestDepth());
loc.loa.grill._y = (j * -8) + k;
j++;
}
if (this["locgoods" + m][0][i] == 3) {
loc.loa.attachMovie("_chicken", "chicken", loc.loa.getNextHighestDepth());
loc.loa.chicken._y = (j * -8) + k;
j++;
}
if (this["locgoods" + m][0][i] > 3) {
loc.loa.attachMovie("sauce", "sauce" + i, loc.loa.getNextHighestDepth());
loc.loa["sauce" + i]._y = (j * -8) + k;
loc.loa["sauce" + i].n = this["locgoods" + m][0][i];
k = k - 3;
}
i++;
}
if (this["locgoods" + m][1][0] == 2) {
loc.loa.attachMovie("\u9ED1\u70DF", "\u9ED1\u70DF", loc.loa.getNextHighestDepth());
loc.loa["\u9ED1\u70DF"]._y = -20;
loc.loa.grill.gotoAndStop(2);
loc.loa.chicken.gotoAndStop(2);
}
if (this["locgoods" + m][0][0] == 1) {
loc.loa.attachMovie("bread2", "bread2", loc.loa.getNextHighestDepth());
loc.loa.bread2._y = -5;
loc.loa.bread2._x = -8;
loc.loa.bread2._rotation = -50;
}
}
};
_root.Listener.addListener(this);
Instance of Symbol 188 MovieClip "pl1" in Symbol 271 MovieClip [op] Frame 1
onClipEvent (load) {
m1 = 11;
m2 = 14;
}
Instance of Symbol 220 MovieClip "pl2" in Symbol 271 MovieClip [op] Frame 2
onClipEvent (load) {
m1 = 11;
m2 = 14;
}
Instance of Symbol 227 MovieClip "pl11" in Symbol 271 MovieClip [op] Frame 3
onClipEvent (load) {
m1 = 12;
m2 = 12;
}
Instance of Symbol 234 MovieClip "pl13" in Symbol 271 MovieClip [op] Frame 11
onClipEvent (load) {
m1 = 12;
m2 = 12;
}
Instance of Symbol 242 MovieClip "pl12" in Symbol 271 MovieClip [op] Frame 12
onClipEvent (load) {
m1 = 12;
m2 = 12;
}
Instance of Symbol 250 MovieClip "pl14" in Symbol 271 MovieClip [op] Frame 18
onClipEvent (load) {
m1 = 12;
m2 = 12;
}
Instance of Symbol 270 MovieClip "pl3" in Symbol 271 MovieClip [op] Frame 19
onClipEvent (load) {
m1 = 11;
m2 = 14;
}
Symbol 288 MovieClip [cup] Frame 1
gotoAndStop(n + 1);
Symbol 295 MovieClip [sauce] Frame 1
gotoAndStop(n);
Instance of Symbol 288 MovieClip [cup] in Symbol 295 MovieClip [sauce] Frame 11
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 288 MovieClip [cup] in Symbol 295 MovieClip [sauce] Frame 12
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 288 MovieClip [cup] in Symbol 295 MovieClip [sauce] Frame 13
onClipEvent (load) {
gotoAndStop (4);
}
Symbol 318 MovieClip Frame 9
gotoAndStop (1);
Symbol 335 MovieClip Frame 9
gotoAndStop (1);
Symbol 352 MovieClip Frame 9
gotoAndStop (1);
Symbol 369 MovieClip Frame 9
gotoAndStop (1);
Symbol 386 MovieClip Frame 9
gotoAndStop (1);
Symbol 403 MovieClip Frame 9
gotoAndStop (1);
Symbol 420 MovieClip Frame 9
gotoAndStop (1);
Symbol 433 MovieClip Frame 9
gotoAndStop (1);
Symbol 450 MovieClip Frame 9
gotoAndStop (1);
Symbol 475 MovieClip Frame 9
gotoAndStop (1);
Symbol 492 MovieClip Frame 9
gotoAndStop (1);
Symbol 506 MovieClip Frame 12
stop();
Symbol 511 MovieClip Frame 11
stop();
Symbol 512 MovieClip [Char] Frame 1
function moves() {
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
txt = (y1 + " ") + x1;
arm1.nextFrame();
arm2.nextFrame();
body1.nextFrame();
}
clearInterval(ms);
ms = setInterval(moves, mspeed);
this.onUnload = function () {
clearInterval(ms);
};
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
loa._visible = true;
Symbol 512 MovieClip [Char] Frame 2
stop();
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
loa._visible = true;
Symbol 512 MovieClip [Char] Frame 3
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
loa._visible = true;
Symbol 512 MovieClip [Char] Frame 4
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
loa._visible = false;
Symbol 512 MovieClip [Char] Frame 5
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
loa._visible = true;
Symbol 512 MovieClip [Char] Frame 6
if (_root.goods[1][0] > 0) {
arm2._visible = false;
arm1._visible = true;
} else {
arm2._visible = true;
arm1._visible = false;
}
loa._visible = true;
Symbol 516 MovieClip [_chicken] Frame 1
stop();
Symbol 523 MovieClip [done] Frame 44
stop();
Symbol 524 MovieClip [chicken] Frame 1
function made() {
if ((_root.time1 - t1) > 5000) {
n = 1;
gotoAndStop ("end");
}
if ((_root.time1 - t1) > 35000) {
n = 2;
gotoAndStop ("bad");
clearInterval(kr);
}
}
function remove() {
_parent.select = false;
sound_grill.stop();
clearInterval(kr);
_root.Listener.removeListener(this);
removeMovieClip(this);
}
stop();
n = 0;
t1 = _root.time1;
sound_grill = new Sound(this);
sound_grill.attachSound("sound_grill");
sound_grill.start(0, 9000);
clearInterval(kr);
kr = setInterval(made, 300);
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(_parent._parent.m1, _parent._parent.m2);
select.gotoAndStop(2);
_parent.select = true;
makeready = true;
}
};
this._clear = function () {
clearInterval(kr);
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == _parent._parent.m1) and (_parent._root.loadgame.Char.x1 == _parent._parent.m2)) and makeready) {
_root.shown4(_parent._parent.m1, _parent._parent.m2);
n2 = false;
i = 0;
while (i < _root.goods[0].length) {
if ((_root.goods[0][i] == 2) or (_root.goods[0][i] == 3)) {
n2 = true;
}
i++;
}
if (_root.goods[0][0] > 10) {
n2 = true;
}
if ((!n2) and (n > 0)) {
if (n == 2) {
trace("\u574F\u4E86");
_root.goods[1][0] = 2;
}
if (n > 0) {
if (n == 1) {
_root.goods[1][0] = 1;
}
_root.goods[0].push(3);
_parent._parent.datas[n3][2] = 0;
}
_root.showgoods();
remove();
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
_parent.select = false;
makeready = false;
}
};
onUnload = function () {
sound_grill.stop();
};
onUnload = function () {
clearInterval(kr);
_root.Listener.removeListener(this);
sound_grill.stop();
};
_root.Listener.addListener(this);
Symbol 528 MovieClip [_grill] Frame 1
stop();
Symbol 529 MovieClip [grill] Frame 1
function made() {
if ((_root.time1 - t1) > 5000) {
n = 1;
gotoAndStop ("end");
}
if (((_root.time1 - t1) > 35000) and (!_root["\u5B66\u4E60"])) {
n = 2;
gotoAndStop ("bad");
clearInterval(kr);
}
}
function remove() {
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
_parent.select = false;
sound_grill.stop();
clearInterval(kr);
_root.Listener.removeListener(this);
removeMovieClip(this);
}
stop();
n = 0;
t1 = _root.time1;
sound_grill = new Sound(this);
sound_grill.attachSound("sound_grill");
sound_grill.start(0, 9000);
clearInterval(kr);
kr = setInterval(made, 300);
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(_parent._parent.m1, _parent._parent.m2);
select.gotoAndStop(2);
_parent.select = true;
makeready = true;
}
};
this._clear = function () {
clearInterval(kr);
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == _parent._parent.m1) and (_parent._root.loadgame.Char.x1 == _parent._parent.m2)) and makeready) {
_root.shown4(_parent._parent.m1, _parent._parent.m2);
n2 = false;
i = 0;
while (i < _root.goods[0].length) {
if ((_root.goods[0][i] == 2) or (_root.goods[0][i] == 3)) {
n2 = true;
}
i++;
}
if (_root.goods[0][0] > 10) {
n2 = true;
}
if ((!n2) and (n > 0)) {
if (n == 2) {
_root.goods[1][0] = 2;
}
if (n > 0) {
if (n == 1) {
_root.goods[1][0] = 1;
}
_root.goods[0].push(2);
_parent._parent.datas[n3][2] = 0;
select.gotoAndStop(1);
}
if (((_root.goods[0][1] == 2) or (_root.goods[0][1] == 3)) and _root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
_root.showgoods();
remove();
} else {
_root.sound_err.start(0, 1);
}
_parent.select = false;
select.gotoAndStop(1);
makeready = false;
}
};
onUnload = function () {
clearInterval(kr);
_root.Listener.removeListener(this);
sound_grill.stop();
};
_root.Listener.addListener(this);
Symbol 530 Button
on (rollOver) {
if (!_parent.angry_last) {
_parent.gotoAndStop("over");
_root["\u9F20\u6807"].gotoAndStop(2);
}
}
on (rollOut, release, dragOut, releaseOutside) {
if (!_parent.angry_last) {
_parent.gotoAndStop("out");
}
}
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 68
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 69
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 572 Button
on (rollOver) {
if (!_parent.angry_last) {
_parent.gotoAndStop("over");
_root["\u9F20\u6807"].gotoAndStop(2);
}
}
on (rollOut, release, dragOut, releaseOutside) {
if (!_parent.angry_last) {
_parent.gotoAndStop("out");
}
}
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 69
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 69
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 69
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 608 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 69
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 620 MovieClip Frame 1
n = 0;
Symbol 620 MovieClip Frame 43
n++;
if (n > 6) {
_parent._parent._parent.stl = true;
_parent.gotoAndPlay("st1");
}
gotoAndPlay (2);
Symbol 632 MovieClip Frame 1
n = 0;
Symbol 632 MovieClip Frame 43
n++;
if (n > 6) {
_parent._parent._parent.stl = true;
_parent.gotoAndPlay("st2");
}
gotoAndPlay (2);
Symbol 653 MovieClip Frame 1
txt = "- " + (_parent._parent.g * 10);
Symbol 654 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 7
stop();
Symbol 669 MovieClip Frame 41
_parent.over = false;
Symbol 669 MovieClip Frame 97
_parent._parent.t2 = _root.time1;
_parent._parent.stready = false;
Symbol 669 MovieClip Frame 98
trace("\u6253\u5B8C");
if (_parent._parent.f > 2) {
gotoAndStop ("happy");
} else {
gotoAndStop ("irritated");
}
_parent._parent.t2 = _root.time1;
_parent._parent.sts = setInterval(_parent._parent.stst, 900);
_parent._parent.facials = setInterval(_parent._parent.facial, 900);
Symbol 669 MovieClip Frame 116
g = 5;
if (_root.score > 0) {
_root.score = _root.score - (g * 10);
}
if (_root.score < 0) {
_root.score = 0;
}
\u91D1\u5E01ss.play();
Symbol 669 MovieClip Frame 160
_parent._parent.st = random(30) + 20;
_parent._parent.stready = false;
_parent._parent.stl = false;
gotoAndStop ("happy");
_parent._parent.setup2();
stop();
Symbol 669 MovieClip Frame 179
g = 5;
if (_root.score > (g * 10)) {
_root.score = _root.score - (g * 10);
}
\u91D1\u5E01ss.play();
Symbol 669 MovieClip Frame 225
_parent._parent.st = random(30) + 20;
_parent._parent.stready = false;
_parent._parent.stl = false;
gotoAndStop ("happy");
_parent._parent.setup2();
stop();
Symbol 669 MovieClip Frame 234
stop();
_parent._parent.gotoAndPlay("dis");
Symbol 669 MovieClip Frame 237
stop();
_parent._parent.gotoAndPlay("dis");
Symbol 670 Button
on (rollOver) {
if (!_parent.angry_last) {
over = true;
_parent.gotoAndStop("over");
if ((((_parent.n == 7) and _parent.stready) and (!_parent.stl)) and ((guest._currentframe < 40) or (guest._currentframe > 54))) {
_root["\u9F20\u6807"].gotoAndStop(4);
} else {
_root["\u9F20\u6807"].gotoAndStop(2);
}
}
}
on (release) {
if (!_parent.angry_last) {
_parent.gotoAndStop("out");
}
}
on (rollOut, dragOut, releaseOutside) {
if (!_parent.angry_last) {
over = false;
_parent.gotoAndStop("out");
}
}
Symbol 688 MovieClip Frame 1
stop();
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Symbol 688 MovieClip Frame 11
stop();
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 28
onClipEvent (load) {
gotoAndPlay(random(20));
}
Symbol 688 MovieClip Frame 80
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 689 Button
on (rollOver) {
if (!_parent.angry_last) {
_parent.gotoAndStop("over");
_root["\u9F20\u6807"].gotoAndStop(2);
}
}
on (rollOut, release, dragOut, releaseOutside) {
if (!_parent.angry_last) {
_parent.gotoAndStop("out");
}
}
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 69
stop();
_parent._parent.angry2 = true;
_parent._parent.gotoAndPlay("dis");
Symbol 699 MovieClip Frame 1
gotoAndStop(_parent.n + 1);
over = false;
Symbol 699 MovieClip Frame 8
onEnterFrame = function () {
if (((guest._currentframe > 40) and (guest._currentframe < 54)) and over) {
_root["\u9F20\u6807"].gotoAndStop(2);
}
};
onUnload = function () {
delete this.onEnterFrame;
};
Symbol 716 MovieClip Frame 14
bz.n = 3;
Symbol 725 MovieClip Frame 1
gotoAndStop(_parent._parent.goods.length);
s1.gotoAndStop(_parent._parent.goods[0]);
s2.gotoAndStop(_parent._parent.goods[1]);
s3.gotoAndStop(_parent._parent.goods[2]);
s4.gotoAndStop(_parent._parent.goods[3]);
s5.gotoAndStop(_parent._parent.goods[4]);
Symbol 725 MovieClip Frame 2
s1.gotoAndStop(_parent._parent.goods[0]);
s2.gotoAndStop(_parent._parent.goods[1]);
s3.gotoAndStop(_parent._parent.goods[2]);
s4.gotoAndStop(_parent._parent.goods[3]);
s5.gotoAndStop(_parent._parent.goods[4]);
Symbol 725 MovieClip Frame 3
s1.gotoAndStop(_parent._parent.goods[0]);
s2.gotoAndStop(_parent._parent.goods[1]);
s3.gotoAndStop(_parent._parent.goods[2]);
s4.gotoAndStop(_parent._parent.goods[3]);
s5.gotoAndStop(_parent._parent.goods[4]);
Symbol 725 MovieClip Frame 4
s1.gotoAndStop(_parent._parent.goods[0]);
s2.gotoAndStop(_parent._parent.goods[1]);
s3.gotoAndStop(_parent._parent.goods[2]);
s4.gotoAndStop(_parent._parent.goods[3]);
s5.gotoAndStop(_parent._parent.goods[4]);
Symbol 725 MovieClip Frame 5
s1.gotoAndStop(_parent._parent.goods[0]);
s2.gotoAndStop(_parent._parent.goods[1]);
s3.gotoAndStop(_parent._parent.goods[2]);
s4.gotoAndStop(_parent._parent.goods[3]);
s5.gotoAndStop(_parent._parent.goods[4]);
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 2
function \u9762\u5305() {
_parent.goods.push(1);
_parent.goods.push(_root.good0[random(_root.good0.length)]);
a = random(2);
if ((a == 1) and (_root.level > 3)) {
_parent.goods.push(_root.good1[random(_root.good1.length)]);
}
_parent.goods.push(_root.good1[random(_root.good1.length)]);
}
function \u5976\u6614() {
_parent.goods.push(_root.good2[random(_root.good2.length)]);
}
function \u85AF\u6761() {
_parent.goods.push(_root.good3[random(_root.good3.length)]);
}
if (_root.good < 2) {
\u9762\u5305();
} else if (_root.good == 2) {
r = random(11);
if (r < 5) {
\u9762\u5305();
} else if ((r > 4) and (r < 7)) {
\u5976\u6614();
} else if ((r > 6) and (r < 9)) {
\u5976\u6614();
\u5976\u6614();
} else {
\u9762\u5305();
\u5976\u6614();
}
if ((_root.level > 6) and (_parent.goods.length < 2)) {
\u5976\u6614();
}
} else if (_root.good == 3) {
r = random(14);
if (r < 3) {
\u9762\u5305();
} else if ((r > 3) and (r < 5)) {
\u5976\u6614();
} else if ((r > 4) and (r < 6)) {
\u85AF\u6761();
} else if ((r > 5) and (r < 9)) {
\u9762\u5305();
\u5976\u6614();
} else if ((r > 8) and (r < 12)) {
\u9762\u5305();
\u85AF\u6761();
} else {
\u85AF\u6761();
\u5976\u6614();
}
} else {
\u9762\u5305();
}
_parent.goods.sort(Array.NUMERIC);
txt = _parent.goods;
if (_parent.goods.length < 4) {
this._x = this._x + 28;
}
if (_parent.goods.length == 4) {
this._x = this._x + 14;
}
Set("\u6570\u503C", 0);
xx = 0;
while (xx < _parent.goods.length) {
if (_parent.goods[xx] == 1) {
\u6570\u503C++;
}
xx++;
}
if (\u6570\u503C > 1) {
_parent.goods.sort(Array.NUMERIC);
_parent.goods.splice(0, \u6570\u503C - 1);
}
Symbol 726 MovieClip Frame 16
stop();
Symbol 726 MovieClip Frame 17
Set("\u6570\u503C", 0);
xx = 0;
while (xx < _parent.goods.length) {
if (_parent.goods[xx] == 1) {
\u6570\u503C++;
}
xx++;
}
if (\u6570\u503C > 1) {
_parent.goods.sort(Array.NUMERIC);
_parent.goods.splice(0, \u6570\u503C - 1);
}
Symbol 726 MovieClip Frame 28
stop();
Symbol 733 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(2);
}
Symbol 735 MovieClip Frame 1
txt = "+ " + _parent._parent.g;
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 25
stop();
Symbol 737 MovieClip [guests] Frame 1
guest._visible = false;
Instance of Symbol 703 MovieClip "star" in Symbol 737 MovieClip [guests] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 731 MovieClip "think" in Symbol 737 MovieClip [guests] Frame 1
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 736 MovieClip "金币" in Symbol 737 MovieClip [guests] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 737 MovieClip [guests] Frame 2
function setup() {
f = _root.guest_star[n][0];
i = 1;
while (i < 6) {
if (i > f) {
star["star" + i]._visible = false;
}
i++;
}
if (_root["\u5B66\u4E60"]) {
t1 = getTimer();
} else {
t1 = _root.time1;
}
t3 = _root.time1;
star._visible = true;
if (_root["\u5B66\u4E60"] != true) {
clearInterval(facials);
facials = setInterval(facial, 1000);
}
clearInterval(sts);
if (n == 7) {
t2 = _root.time1;
sts = setInterval(stst, 900);
}
}
function setup2() {
t3 = _root.time1;
clearInterval(facials);
facials = setInterval(facial, 1000);
}
function stst() {
if ((_root.time1 - t2) > (st * 1000)) {
clearInterval(facials);
if (f > 2) {
stready = true;
guest.guest.gotoAndStop("happy2");
clearInterval(sts);
} else {
stready = true;
guest.guest.gotoAndStop("irritated2");
clearInterval(sts);
}
}
}
function facial() {
if (n == 8) {
if (_x == x1) {
_root.loadgame2[_root.locguest[id - 1][1]].times = 12000;
_root.loadgame2[_root.locguest[id + 1][1]].times = 12000;
_root.loadgame2[_root.locguest[id + 1][1]].faces2 = 1;
_root.loadgame2[_root.locguest[id - 1][1]].faces2 = 1;
} else {
_root.loadgame2[_root.locguest[id + 1][1]].faces2 = 0;
_root.loadgame2[_root.locguest[id - 1][1]].faces2 = 0;
_root.loadgame2[_root.locguest[id - 1][1]].times = 30000;
_root.loadgame2[_root.locguest[id + 1][1]].times = 30000;
}
}
if ((_root.time1 - t3) > times) {
t3 = _root.time1;
if (f > 0) {
f--;
}
i = 1;
while (i < 6) {
if (i > f) {
star["star" + i]._visible = false;
}
i++;
}
if (f == 2) {
faces = 2;
sound_face.start(0, 1);
}
if (f == 1) {
faces = 3;
sound_face.start(0, 1);
}
if (f == 0) {
faces = 4;
sound_face.start(0, 1);
clearInterval(sts);
clearInterval(facials);
}
}
if ((faces2 == 1) and (faces < 4)) {
guest.guest.gotoAndStop("smelly");
} else if (faces == 1) {
guest.guest.gotoAndStop("happy");
} else if (faces == 2) {
guest.guest.gotoAndStop("irritated");
} else if (faces == 3) {
guest.guest.gotoAndStop("angry");
} else if (faces == 4) {
angry_last = true;
bt.visible = false;
guest.guest.gotoAndPlay("angry2");
clearInterval(sts);
clearInterval(facials);
}
}
function goldflys() {
_root.loadgold.attachMovie("golds", "golds" + _root.loadgold.n, _root.loadgold.n);
nxx2 = nxx;
nyy2 = nyy;
_root.loadgold["golds" + _root.loadgold.n]._x = nxx2;
_root.loadgold["golds" + _root.loadgold.n]._y = nyy2;
_root.loadgold.n++;
count++;
trace("count" + count);
if (count > 4) {
clearInterval(goldfly);
disp();
}
}
function disp() {
if (_root.locguest[id][0] == 9) {
xx = 2;
} else {
xx = 1;
}
_root.locguest.splice(id, xx);
if (_root.locguest.length == 3) {
_root.locguest.push([0, 0]);
} else if (_root.locguest.length == 2) {
_root.locguest.push([0, 0], [0, 0]);
}
i = 0;
while (i < _root.locguest.length) {
if (_root.locguest[i][1] != 0) {
if (_root.loadgame2[_root.locguest[i][1]]._x == _root.loadgame2[_root.locguest[i][1]].x1) {
_root.loadgame2[_root.locguest[i][1]]._x = _root.locguestwz[i][1];
_root.loadgame2[_root.locguest[i][1]].x1 = _root.locguestwz[i][1];
} else {
_root.loadgame2[_root.locguest[i][1]]._x = _root.locguestwz[i][1] + 50;
_root.loadgame2[_root.locguest[i][1]].x1 = _root.locguestwz[i][1];
}
_root.loadgame2[_root.locguest[i][1]]._y = _root.locguestwz[i][0];
_root.loadgame2[_root.locguest[i][1]].y1 = _root.locguestwz[i][0];
_root.loadgame2[_root.locguest[i][1]].m1 = _root.locguestwz[i][2];
_root.loadgame2[_root.locguest[i][1]].m2 = _root.locguestwz[i][3];
if (_root.loadgame2[_root.locguest[i][1]].makeready or _root.loadgame2[_root.locguest[i][1]].makeready2) {
_root.shown2(_root.locguestwz[i][2], _root.locguestwz[i][3]);
}
_root.loadgame2[_root.locguest[i][1]].id = i;
if (_root.locguest[i][0] == 9) {
_root.locguest[i + 1][0] = 10;
_root.locguest[i + 1][1] = 10;
}
}
i++;
}
_root.Listener.removeListener(this);
clearInterval(goldfly);
removeMovieClip(_parent._parent._name);
}
function think4() {
Set("\u540E\u9000", false);
_x = x1;
_y = y1;
clearInterval(thinks4);
}
function think2() {
if (_root["\u5B66\u4E60"]) {
if ((_root.time1 - t1) > 9500) {
think.play();
think._visible = false;
good.gotoAndPlay(2);
clearInterval(thinks9);
t1 = _root.time1;
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
} else if ((_root.time1 - t1) > 3600) {
think.play();
think._visible = false;
good.gotoAndPlay(2);
clearInterval(thinks9);
t1 = _root.time1;
}
}
goods = [];
x1 = _x;
y1 = _y;
times = 30000;
stready = false;
stl = false;
st = random(10) + 20;
faces = 1;
faces2 = 0;
char_dis = false;
angry_last = false;
Set("\u540E\u9000", false);
this.onUnload = function () {
clearInterval(facials);
clearInterval(sts);
clearInterval(thinks9);
clearInterval(thinks3);
clearInterval(thinks4);
clearInterval(goldfly);
};
this._clear = function () {
clearInterval(facials);
clearInterval(sts);
clearInterval(thinks9);
clearInterval(thinks3);
clearInterval(thinks4);
clearInterval(goldfly);
};
setup();
sound_face = new Sound(this);
sound_face.attachSound("sound_face");
\u91D1\u5E01.bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready2)) {
select2.gotoAndStop(2);
count = 1;
nxx = _root._xmouse;
nyy = _root._ymouse - 10;
_root.shown2(m1, m2);
makeready2 = true;
}
};
makeready2 = false;
this._make2 = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready2) {
select2.gotoAndStop(1);
if (_root["\u5B66\u4E60"]) {
_root.OS.gotoAndPlay("g3");
}
clearInterval(goldfly);
goldfly = setInterval(goldflys, 100);
_root.shown4(m1, m2);
_root.sound_gold.start(0, 1);
if (_root.level < 15) {
g = (70 + (n * 2)) - ((_root.guest_star[n][0] - f) * 10);
} else if (_root.level > 18) {
g = (64 + (n * 2)) - ((_root.guest_star[n][0] - f) * 10);
} else {
g = (50 + (n * 2)) - ((_root.guest_star[n][0] - f) * 10);
}
\u91D1\u5E01.play();
_root.scoreup(g);
makeready2 = false;
}
};
guest.bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
guest.select1.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
guest.select1.gotoAndStop(1);
_root.shown4(m1, m2);
zx = false;
if (angry_last == false) {
if (_root.goods[1][0] == 2) {
clearInterval(facials);
guest.bt._visible = false;
_root.goods[0] = [];
_root.goods[1][0] = 0;
_root.unshowgoods();
star._visible = false;
sound_face.start(0, 1);
angry_last = true;
bt.visible = false;
guest.guest.gotoAndPlay("angry2");
angry3 = true;
_root.sound_err.start(0, 1);
clearInterval(sts);
clearInterval(facials);
} else {
if ((_x == x1) and (n == 8)) {
fff2 = true;
if (f > 2) {
st = random(10) + 20;
guest.guest.gotoAndStop("happy2");
} else {
st = random(10) + 20;
guest.guest.gotoAndStop("irritated2");
}
if (!\u540E\u9000) {
Set("\u540E\u9000", true);
_x = (_x + 50);
clearInterval(thinks4);
thinks4 = setInterval(think4, 60000);
}
}
if (((n == 7) and stready) and (!stl)) {
clearInterval(sts);
clearInterval(facials);
guest.guest.gotoAndPlay("hits");
} else if (goods.length == 0) {
} else if (_root.goods[0].length == 1) {
if (_root.goods[0][0] == goods[goods.length - 1]) {
goods.pop();
_root.goods[0] = [];
_root.goods[1][0] = 0;
_root.unshowgoods();
good.gotoAndPlay("showagain");
} else if ((_root.goods[0][0] == goods[0]) and (goods[0] != 1)) {
goods.shift();
_root.goods[0] = [];
_root.goods[1][0] = 0;
_root.unshowgoods();
good.gotoAndPlay("showagain");
} else {
_root.sound_err.start(0, 1);
}
if (goods.length == 0) {
good.gotoAndStop(1);
\u91D1\u5E01._visible = true;
_x = x1;
bt._visible = false;
star._visible = false;
guest._visible = false;
clearInterval(sts);
clearInterval(facials);
char_dis = true;
gotoAndPlay ("dis2");
}
} else {
goods2 = [];
i = 0;
while (i < _root.goods[0].length) {
goods2[i] = _root.goods[0][i];
i++;
}
if (goods2[0] == 0) {
goods2.shift();
}
if (goods2[0] == 0) {
goods2.shift();
}
goods2.sort(Array.NUMERIC);
goods3 = [];
i = 0;
while (i < goods.length) {
goods3[i] = goods[i];
i++;
}
goods3.sort(Array.NUMERIC);
ns = 0;
ns2 = 0;
ns3 = _root.goods[0].length;
i = 0;
while (i < goods3.length) {
if (goods3[i] == goods2[i]) {
ns++;
}
i++;
}
i = 0;
while (i < goods3.length) {
if (goods3[i] < 11) {
ns2++;
}
i++;
}
if ((ns == ns2) and (ns2 == ns3)) {
goods.splice(0, _root.goods[0].length);
_root.goods[0] = [];
_root.goods[1][0] = 0;
_root.unshowgoods();
good.gotoAndPlay("showagain");
} else {
_root.sound_err.start(0, 1);
}
if (goods.length == 0) {
good.gotoAndStop(1);
_root.goods[0] = [];
_root.goods[1][0] = 0;
bt._visible = false;
_root.unshowgoods();
clearInterval(sts);
clearInterval(facials);
guest._visible = false;
\u91D1\u5E01._visible = true;
_x = x1;
star._visible = false;
if (_root["\u5B66\u4E60"]) {
_root.OS.gotoAndStop("g1");
}
char_dis = true;
gotoAndPlay ("dis2");
}
}
}
}
makeready = false;
}
};
think.play();
think._visible = true;
t1 = _root.time1;
clearInterval(thinks9);
thinks9 = setInterval(think2, 500);
guest._visible = true;
stop();
_root.Listener.addListener(this);
Symbol 737 MovieClip [guests] Frame 6
if (angry_last) {
gotoAndPlay ("dis");
}
if (fff2 and (n == 8)) {
if (f > 2) {
guest.guest.gotoAndStop("happy2");
} else {
guest.guest.gotoAndStop("irritated2");
}
}
Symbol 737 MovieClip [guests] Frame 10
if (angry_last) {
gotoAndPlay ("dis");
}
if (fff2 and (n == 8)) {
if (f > 2) {
guest.guest.gotoAndStop("happy2");
} else {
guest.guest.gotoAndStop("irritated2");
}
}
Symbol 737 MovieClip [guests] Frame 14
star._visible = false;
if (n == 8) {
_root.loadgame2[_root.locguest[id + 1][1]].faces2 = 0;
_root.loadgame2[_root.locguest[id - 1][1]].faces2 = 0;
_root.loadgame2[_root.locguest[id - 1][1]].times = 30000;
_root.loadgame2[_root.locguest[id + 1][1]].times = 30000;
}
if (angry3) {
g = 3;
\u91D1\u5E012.play();
if (_root.score > 0) {
_root.score = _root.score - (g * 10);
}
if (_root.score < 0) {
_root.score = 0;
}
}
clearInterval(facials);
Symbol 737 MovieClip [guests] Frame 28
if (char_dis) {
star._visible = false;
if (n == 8) {
_root.loadgame2[_root.locguest[id + 1][1]].faces2 = 0;
_root.loadgame2[_root.locguest[id - 1][1]].faces2 = 0;
_root.loadgame2[_root.locguest[id - 1][1]].times = 30000;
_root.loadgame2[_root.locguest[id + 1][1]].times = 30000;
}
clearInterval(facials);
}
Symbol 737 MovieClip [guests] Frame 34
if (!char_dis) {
disp();
}
Symbol 737 MovieClip [guests] Frame 35
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 769 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 774 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 779 MovieClip Frame 10
stop();
Symbol 780 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.S_mainscreen.stop();
_root.sound_mousedown.start(0, 1);
_root["\u88AB\u52A8"] = true;
_root["\u5B66\u4E60"] = false;
_root.go("levels03");
}
Symbol 792 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 803 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 816 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 827 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 850 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 851 MovieClip Frame 1
gotoAndStop(_parent.n);
Symbol 853 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.S_mainscreen.stop();
_root.sound_mousedown.start(0, 1);
_root.S_level_music_2.start(0, 99999);
_root["\u5B66\u4E60"] = true;
_root["\u88AB\u52A8"] = false;
_root.level = 1;
_root.go("game");
}
Symbol 855 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
if (_root.localization_language_nr == 2) {
getURL ("http://user.game.com.cn/game/?action=highscore&ID=" + gameID, "_blank");
} else {
_root.go("highscores");
}
}
Symbol 857 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
getURL (_root.localization_url1, "_blank");
}
Symbol 859 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
getURL (_root.localization_url2, "_blank");
}
Symbol 874 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 885 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 896 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 897 MovieClip Frame 1
_quality = "HIGH";
stop();
Symbol 897 MovieClip Frame 2
_quality = "MEDIUM";
stop();
Symbol 897 MovieClip Frame 3
_quality = "LOW";
stop();
Symbol 897 MovieClip Frame 4
gotoAndStop (1);
Symbol 908 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 922 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 923 MovieClip Frame 1
stop();
mysound = new Sound();
mysound.setVolume(100);
Symbol 923 MovieClip Frame 2
stop();
mysound = new Sound();
mysound.setVolume(0);
Symbol 923 MovieClip Frame 3
gotoAndStop (1);
Symbol 924 MovieClip Frame 1
bt1.onRelease = function () {
quality.nextFrame();
};
bt2.onRelease = function () {
sound.nextFrame();
};
Symbol 959 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 967 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
_root.level = n;
_parent.gotoAndPlay("levels04");
}
Symbol 977 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1019 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
_parent.gotoAndPlay("unpause2");
}
Symbol 1030 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1032 MovieClip Frame 1
trace("_root.dates.data.again " + _root.dates.data.again);
if (_root.dates.data.again == true) {
} else {
_visible = false;
}
Symbol 1032 MovieClip Frame 33
stop();
Symbol 1032 MovieClip Frame 34
_root.savegame(3);
Symbol 1032 MovieClip Frame 48
_visible = false;
Symbol 1037 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1055 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1085 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1096 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
playername = "Player";
Symbol 1096 MovieClip Frame 2
playername = "\u73A9\u5BB6";
Symbol 1096 MovieClip Frame 3
playername = "Speler";
Symbol 1096 MovieClip Frame 4
playername = "Joueur";
Symbol 1096 MovieClip Frame 5
playername = "Spieler";
Symbol 1096 MovieClip Frame 6
playername = "Gracz";
Symbol 1096 MovieClip Frame 7
playername = "Spelare";
Symbol 1096 MovieClip Frame 8
playername = "Giocatore";
Symbol 1096 MovieClip Frame 9
playername = "Jugador";
Symbol 1096 MovieClip Frame 10
playername = "Jogador";
Symbol 1096 MovieClip Frame 11
playername = "Jogador";
Symbol 1115 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1116 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.S_level_failed.stop();
_root.S_mainscreen.start(0, 99999);
if (_parent.playername.playername != "") {
if (_root.localization_language_nr == 2) {
var time = new Date().getTime();
b = _root.SortT();
a = _root.hex_average(((String(_global.gameID) + _parent.scoress) + b) + time);
_root.DrawLine(a, b, 10, 10, 15, 15);
c = _global.strqq;
_root.senturl(_parent.scoress, b, c, time);
_root.sound_mousedown.start(0, 1);
_root.sub_socre(_parent.playername.playername);
_root.gotoAndPlay("highscores");
} else {
_root.sound_mousedown.start(0, 1);
_root.sub_socre(_parent.playername.playername);
_root.gotoAndPlay("highscores");
}
}
}
Symbol 1128 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1140 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1154 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1157 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.S_level_failed.stop();
_root.S_mainscreen.start(0, 99999);
if (_parent.playername.playername != "") {
if (_root.localization_language_nr == 2) {
var time = new Date().getTime();
b = _root.SortT();
a = _root.hex_average(((String(_global.gameID) + _parent.scoress) + b) + time);
_root.DrawLine(a, b, 10, 10, 15, 15);
c = _global.strqq;
_root.senturl(_parent.scoress, b, c, time);
_root.sound_mousedown.start(0, 1);
_root.sub_socre(_parent.playername.playername);
_root.savegame(1);
_root.gotoAndPlay("highscores");
} else {
_root.sound_mousedown.start(0, 1);
_root.sub_socre(_parent.playername.playername);
_root.savegame(1);
_root.gotoAndPlay("highscores");
}
}
}
Symbol 1172 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1174 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
_root.gotoAndPlay("gameintro");
}
Symbol 1186 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1203 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1205 MovieClip Frame 1
stop();
Symbol 1219 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1231 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1242 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1253 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1254 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(1);
}
Symbol 1265 MovieClip Frame 1
stop();
gotoAndStop(_root.level);
Symbol 1267 Button
on (press) {
if (moveTarget.length < 3) {
n2 = (loadgame._xmouse * 2) / widths;
if ((n1 % 2) == 1) {
tmp = heights / 2;
} else {
tmp = 0;
}
n1 = (loadgame._ymouse - tmp) / heights;
shown2(n1, n2);
}
}
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(3);
}
Symbol 1274 MovieClip Frame 1
stop();
m1 = 7;
m2 = 10;
makeready = false;
bt.onPress = function () {
if ((_parent.moveTarget.length < 6) and (!makeready)) {
select.gotoAndStop(2);
_parent.shown2(m1, m2);
makeready = true;
}
};
this._make = function () {
if (((_parent.loadgame.Char.y1 == m1) and (_parent.loadgame.Char.x1 == m2)) and makeready) {
if (_root.goods[0].length > 0) {
if (_root["\u5B66\u4E60"]) {
_root.OS.gotoAndStop("g2");
}
_root["sound_\u5783\u573E\u7BB1"].start(0, 1);
g = _root.goods[0].length;
if (_root.score > (g * 10)) {
_root.score = _root.score - (g * 10);
trace(g);
}
\u91D1\u5E01.play();
_root.goods[0] = [];
_root.goods[1] = [0];
_root.showgoods();
play();
} else {
_root.sound_err.start(0, 1);
makeready = false;
select.gotoAndStop(1);
}
}
};
_root.Listener.addListener(this);
Symbol 1300 MovieClip Frame 1
function makebread() {
_root.shown4(m1, m2);
sound_breads = new Sound(_root.bread[m]);
sound_breads.attachSound("sound_bread");
sound_breads.start(0, 1);
gotoAndStop ("making");
makeready = false;
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
t1 = _root.time1;
clearInterval(makes);
makes = setInterval(makes2, 500);
}
function makes2() {
if ((_root.time1 - t1) > 5000) {
sound_breads.stop();
gotoAndPlay ("end");
clearInterval(makes);
}
}
stop();
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
makebread();
}
};
this._clear = function () {
clearInterval(makes);
};
onUnload = function () {
clearInterval(makes);
sound_breads.stop();
};
bt.onPress = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
makeready = true;
select.gotoAndStop(2);
_root.shown2(m1, m2);
}
};
_root.Listener.addListener(this);
Symbol 1300 MovieClip Frame 55
stop();
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (((_root.goods[1][0] == 0) or (_root.goods[0][0] == 2)) or (_root.goods[0][0] == 3)) {
play();
_root.goods[0].unshift(1);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
}
_root.showgoods();
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
makeready = false;
}
};
bt2.onPress = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
select.gotoAndStop(2);
makeready = true;
}
};
Symbol 1300 MovieClip Frame 64
stop();
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (((_root.goods[1][0] == 0) or (_root.goods[0][0] == 2)) or (_root.goods[0][0] == 3)) {
play();
_root.goods[0].unshift(1);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
}
_root.showgoods();
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
makeready = false;
}
};
bt1.onPress = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
select.gotoAndStop(2);
makeready = true;
}
};
Symbol 1300 MovieClip Frame 73
stop();
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
gotoAndStop ("making");
makebread();
}
};
bt3.onPress = function () {
if ((_root.moveTarget.length < 2) and (!makeready)) {
_root.shown2(m1, m2);
select.gotoAndStop(2);
makeready = true;
}
};
Symbol 1301 MovieClip Frame 1
stop();
gotoAndStop(_root.level);
Instance of Symbol 1300 MovieClip "面包机1" in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
m1 = 7;
m2 = 10;
m = "\u9762\u5305\u673A1";
}
Instance of Symbol 1300 MovieClip "面包机2" in Symbol 1301 MovieClip Frame 8
onClipEvent (load) {
m1 = 8;
m2 = 7;
m = "\u9762\u5305\u673A2";
}
Instance of Symbol 1300 MovieClip "面包机3" in Symbol 1301 MovieClip Frame 15
onClipEvent (load) {
m1 = 7;
m2 = 12;
m = "\u9762\u5305\u673A3";
}
Symbol 1319 MovieClip Frame 1
function make() {
if ((_root.time1 - t1s) > 5000) {
t2s = _root.time1;
t1s = 70000000 + _root.time1;
gotoAndStop ("end");
}
if ((_root.time1 - t2s) > 65000) {
gotoAndStop ("bad");
clearInterval(makes);
}
}
stop();
sound_\u85AF\u6761.stop();
makeready = false;
bt.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
select.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
Set("sound_\u85AF\u6761", new Sound(this));
sound_\u85AF\u6761.attachSound("sound_\u85AF\u6761");
sound_\u85AF\u6761.start(0, 500);
t1s = _root.time1;
t2s = _root.time1;
gotoAndStop ("making");
makeready = false;
clearInterval(makes);
makes = setInterval(make, 500);
}
};
this._clear = function () {
clearInterval(makes);
};
onUnload = function () {
clearInterval(makes);
sound_\u85AF\u6761.stop();
};
_root.Listener.addListener(this);
Symbol 1319 MovieClip Frame 8
bt1.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
select.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
_root.goods[0][0] = 14;
_root.showgoods();
nextFrame();
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
makeready = false;
}
};
Symbol 1319 MovieClip Frame 9
bt1.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
select.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
_root.goods[0][0] = 14;
_root.showgoods();
nextFrame();
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
makeready = false;
}
};
Symbol 1319 MovieClip Frame 10
bt1.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
select.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
_root.goods[0][0] = 14;
_root.showgoods();
nextFrame();
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
makeready = false;
}
};
Symbol 1319 MovieClip Frame 11
sound_\u85AF\u6761.stop();
bt1.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready)) {
select.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
_root.goods[0][0] = 14;
_root.showgoods();
nextFrame();
} else {
_root.sound_err.start(0, 1);
}
select.gotoAndStop(1);
makeready = false;
}
};
Symbol 1319 MovieClip Frame 12
gotoAndStop (1);
Symbol 1319 MovieClip Frame 13
bt2.onRelease = function () {
if (_root.moveTarget.length < 2) {
select.gotoAndStop(2);
_root.shown2(m1, m2);
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 2;
_root.goods[0][0] = 15;
_root.showgoods();
gotoAndStop (1);
} else {
_root.sound_err.start(0, 1);
select.gotoAndStop(1);
}
makeready = false;
clearInterval(makes9);
}
};
Symbol 1321 MovieClip Frame 1
stop();
locgoods1 = [[], [0, 0]];
bt1.onPress = function () {
if ((_parent._parent.moveTarget.length < 6) and (!makeready)) {
_root.shown2(m1, m2);
makeready = true;
select1.gotoAndStop(2);
}
};
makeready = false;
this._make = function () {
if (((_parent._parent.loadgame.Char.y1 == m1) and (_parent._parent.loadgame.Char.x1 == m2)) and makeready) {
if (((locgoods1[1][0] > 0) and (_root.goods[1][0] == 0)) and (good1.loa._y != undefined)) {
good1.loa.removeMovieClip();
unshowgood(1);
_root.showgoods();
} else if ((((locgoods1[0][0] == 2) or (locgoods1[0][0] == 3)) and ((_root.goods[1][0] == 0) or ((_root.goods[0][0] == 1) and (_root.goods[0].length == 1)))) and (good1.loa._y != undefined)) {
good1.loa.removeMovieClip();
locgoods1[0].unshift(1);
_root.goods[0][0] = 0;
unshowgood(1);
_root.showgoods();
} else if ((((locgoods1[0][0] == 1) and (locgoods1[0].length == 1)) and ((_root.goods[0][0] == 2) or (_root.goods[0][0] == 3))) and (good1.loa._y != undefined)) {
good1.loa.removeMovieClip();
locgoods1[0].push(_root.goods[0][0]);
_root.goods[0][0] = 0;
unshowgood(1);
_root.showgoods();
} else if ((_root.goods[1][0] > 0) and (good1.loa._y == undefined)) {
showgood(1);
_root.unshowgoods();
} else if (((_root.goods[0][0] > 10) and (_root.goods[0].length == 1)) and (good1.loa._y == undefined)) {
showgood(1);
_root.unshowgoods();
} else {
_root.sound_err.start(0, 1);
}
select1.gotoAndStop(1);
makeready = false;
}
};
unshowgood = function (m) {
i = 0;
while (i < this["locgoods" + m][0].length) {
_root.goods[0][i] = this["locgoods" + m][0][i];
i++;
}
_root.goods[1][0] = this["locgoods" + m][1][0];
_root.goods[1][1] = this["locgoods" + m][1][1];
this["locgoods" + m] = [[], [0, 0]];
};
showgood = function (m) {
if (this["locgoods" + m][1][0] == 0) {
i = 0;
while (i < _root.goods[0].length) {
this["locgoods" + m][0][i] = _root.goods[0][i];
i++;
}
this["locgoods" + m][1][0] = _root.goods[1][0];
this["locgoods" + m][1][1] = _root.goods[1][1];
_root.goods = [[], [0, 0]];
}
loc = this["good" + m];
loc.createEmptyMovieClip("loa", 1);
if (this["locgoods" + m][1][0] > 0) {
j = 0;
k = 0;
if ((this["locgoods" + m][0][0] == 2) or (this["locgoods" + m][0][0] == 3)) {
loc.loa.attachMovie("plate", "plate", loc.loa.getNextHighestDepth());
loc.loa.plate._y = 1;
loc.loa.plate._x = -3;
if (this["locgoods" + m][0][0] == 2) {
loc.loa.attachMovie("_grill", "grill", loc.loa.getNextHighestDepth());
loc.loa.grill._y = -5;
loc.loa.grill._x = -3;
}
if (this["locgoods" + m][0][0] == 3) {
loc.loa.attachMovie("_chicken", "chicken", loc.loa.getNextHighestDepth());
loc.loa.chicken._y = -5;
loc.loa.chicken._x = -3;
}
}
i = 0;
while (i < this["locgoods" + m][0].length) {
if (this["locgoods" + m][0][i] == 1) {
loc.loa.attachMovie("bread1", "bread1", loc.loa.getNextHighestDepth());
j++;
}
if ((this["locgoods" + m][0][i] == 2) and (this["locgoods" + m][0][0] == 1)) {
loc.loa.attachMovie("_grill", "grill", loc.loa.getNextHighestDepth());
loc.loa.grill._y = (j * -8) + k;
j++;
}
if ((this["locgoods" + m][0][i] == 3) and (this["locgoods" + m][0][0] == 1)) {
loc.loa.attachMovie("_chicken", "chicken", loc.loa.getNextHighestDepth());
loc.loa.chicken._y = (j * -8) + k;
j++;
}
if ((this["locgoods" + m][0][i] > 3) and (this["locgoods" + m][0][i] < 10)) {
loc.loa.attachMovie("sauce", "sauce" + i, loc.loa.getNextHighestDepth());
loc.loa["sauce" + i]._y = (j * -8) + k;
loc.loa["sauce" + i].n = this["locgoods" + m][0][i];
k = k - 3;
}
i++;
}
if (this["locgoods" + m][0][0] == 1) {
loc.loa.attachMovie("bread2", "bread2", loc.loa.getNextHighestDepth());
loc.loa.bread2._y = -5;
loc.loa.bread2._x = -8;
loc.loa.bread2._rotation = -50;
}
if ((this["locgoods" + m][0][0] > 10) and (this["locgoods" + m][0][0] < 14)) {
loc.loa.attachMovie("cup", "cup", loc.loa.getNextHighestDepth());
loc.loa.cup.n = this["locgoods" + m][0][0] - 10;
loc.loa.cup._y = -5;
}
if (this["locgoods" + m][0][0] == 14) {
loc.loa.attachMovie("frying", "frying", loc.loa.getNextHighestDepth());
loc.loa.frying._y = -6;
loc.loa.frying._x = -4;
}
if (this["locgoods" + m][0][0] == 15) {
loc.loa.attachMovie("badfrying", "badfrying", loc.loa.getNextHighestDepth());
loc.loa.badfrying._y = -5;
loc.loa.badfrying._x = -4;
}
if (this["locgoods" + m][1][0] == 2) {
loc.loa.attachMovie("\u9ED1\u70DF", "\u9ED1\u70DF", loc.loa.getNextHighestDepth());
loc.loa["\u9ED1\u70DF"]._y = -20;
loc.loa.grill.gotoAndStop(2);
loc.loa.chicken.gotoAndStop(2);
}
}
};
_root.Listener.addListener(this);
Symbol 1328 MovieClip Frame 1
\u85AF\u67611._visible = false;
\u85AF\u67612._visible = false;
\u85AF\u67613._visible = false;
w1._visible = false;
w2._visible = false;
if (_root.level > 10) {
\u85AF\u67611._visible = true;
\u85AF\u67612._visible = true;
} else {
w1._visible = true;
w2._visible = true;
}
if (_root.level > 14) {
\u85AF\u67613._visible = true;
}
gotoAndStop(_root.level);
Instance of Symbol 1319 MovieClip "薯条1" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
m1 = 6;
m2 = 11;
}
Instance of Symbol 1319 MovieClip "薯条2" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
m1 = 7;
m2 = 13;
}
Instance of Symbol 1319 MovieClip "薯条3" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
m1 = 8;
m2 = 15;
}
Instance of Symbol 1321 MovieClip "w1" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
m1 = 6;
m2 = 11;
}
Instance of Symbol 1321 MovieClip "w2" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
m1 = 7;
m2 = 13;
}
Symbol 1337 MovieClip Frame 1
gotoAndStop((_parent._parent._parent.n2 - 10) + 1);
Symbol 1338 MovieClip Frame 1
stop();
Symbol 1338 MovieClip Frame 68
_parent._parent.attachMovie("done", "done", 1);
_parent._parent.done._x = 50;
_parent._parent.done._y = 65;
_parent._parent.bt4._visible = true;
stop();
Symbol 1343 MovieClip Frame 1
stop();
Symbol 1343 MovieClip Frame 53
\u676F\u5B50.play();
stop();
Symbol 1345 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(2);
}
Symbol 1347 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(2);
}
Symbol 1349 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(2);
}
Symbol 1350 MovieClip Frame 1
function makes(m) {
if ((_root.moveTarget.length < 6) and (!makeready)) {
makeready2 = false;
makeready = true;
select11.gotoAndStop(1);
select12.gotoAndStop(1);
select13.gotoAndStop(1);
select4.gotoAndStop(1);
n = 1;
if (\u676F\u5B50._currentframe == 1) {
n2 = m;
\u676F\u5B50.n = m;
}
this["select" + m].gotoAndStop(2);
_root.shown2(m1, m2);
}
}
n = 0;
n2 = 0;
bt1.onRelease = function () {
makes(11);
};
bt2.onRelease = function () {
makes(12);
};
bt3.onRelease = function () {
makes(13);
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_root.loadgame.Char.x1 == m2)) and makeready) {
select11.gotoAndStop(1);
select12.gotoAndStop(1);
select13.gotoAndStop(1);
select4.gotoAndStop(1);
makeready2 = false;
makeready = false;
if (\u676F\u5B50._currentframe == 1) {
\u676F\u5B50.play();
}
}
};
bt1._visible = false;
bt2._visible = false;
bt3._visible = false;
bt4._visible = false;
body._visible = false;
\u676F\u5B50._visible = false;
bt4.onRelease = function () {
if ((_root.moveTarget.length < 6) and (!makeready2)) {
makeready = false;
makeready2 = true;
select11.gotoAndStop(1);
select12.gotoAndStop(1);
select13.gotoAndStop(1);
select4.gotoAndStop(2);
_root.shown2(m1, m2);
}
};
makeready2 = false;
this._make2 = function () {
if (((_root.loadgame.Char.y1 == m1) and (_root.loadgame.Char.x1 == m2)) and makeready2) {
select11.gotoAndStop(1);
select12.gotoAndStop(1);
select13.gotoAndStop(1);
select4.gotoAndStop(1);
if (_root.goods[1][0] == 0) {
_root.goods[1][0] = 1;
_root.goods[0][0] = n2;
n = 0;
bt4._visible = false;
_root.showgoods();
\u676F\u5B50.gotoAndStop(1);
} else {
_root.sound_err.start(0, 1);
}
makeready = false;
makeready2 = false;
}
};
if (_root.level > 4) {
\u676F\u5B50._visible = true;
bt1._visible = true;
body._visible = true;
}
if (_root.level > 15) {
bt2._visible = true;
}
if (_root.level > 13) {
bt3._visible = true;
}
_root.Listener.addListener(this);
Symbol 1359 MovieClip Frame 1
datas = [[0, 0, 0, 2], [13, 22, 0, 4], [-12, 20, 0, 1], [0, 41, 0, 3]];
select = false;
n = 0;
\u80891.bt.onRelease = function () {
if (_root.moveTarget.length < 6) {
select2.gotoAndStop(2);
select1.gotoAndStop(1);
_root.shown2(m1, m2);
m3 = 2;
makeready = true;
}
};
\u80892.bt.onRelease = function () {
if (_root.moveTarget.length < 6) {
select1.gotoAndStop(2);
select2.gotoAndStop(1);
_root.shown2(m1, m2);
m3 = 1;
makeready = true;
}
};
makeready = false;
this._make = function () {
if (((_root.loadgame.Char.y1 == m1) and (_parent._root.loadgame.Char.x1 == m2)) and makeready) {
_root.shown4(m1, m2);
if (_root["\u5B66\u4E60"]) {
if (!_root["\u5B66\u4E60\u5B8C\u6210"]) {
_root.OS.nextFrame();
}
}
i = 0;
while (i < datas.length) {
if (datas[i][2] == 0) {
datas[i][2] = m3;
if (m3 == 2) {
loa.attachMovie("grill", "grill" + i, datas[i][3]);
loa["grill" + i]._y = datas[i][0];
loa["grill" + i]._x = datas[i][1];
loa["grill" + i].n3 = i;
break;
}
loa.attachMovie("chicken", "chicken" + i, datas[i][3]);
loa["chicken" + i]._y = datas[i][0];
loa["chicken" + i]._x = datas[i][1];
loa["chicken" + i].n3 = i;
break;
}
i++;
}
select1.gotoAndStop(1);
select2.gotoAndStop(1);
makeready = false;
}
};
_root.Listener.addListener(this);
Symbol 1364 MovieClip Frame 1
i = 1;
while (i < 4) {
this["\u70E7\u70E4\u53F0" + i]._visible = false;
if (_root.level < 7) {
this["\u70E7\u70E4\u53F0" + i]["\u80892"]._visible = false;
}
i++;
}
\u70E7\u70E4\u53F01._visible = true;
if (_root.level > 7) {
\u70E7\u70E4\u53F02._visible = true;
}
if (_root.level > 15) {
\u70E7\u70E4\u53F03._visible = true;
w1._visible = false;
} else {
w1._visible = true;
}
gotoAndStop(_root.level);
stop();
Instance of Symbol 1359 MovieClip "烧烤台1" in Symbol 1364 MovieClip Frame 1
onClipEvent (load) {
m1 = 11;
m2 = 3;
}
Instance of Symbol 1359 MovieClip "烧烤台2" in Symbol 1364 MovieClip Frame 1
onClipEvent (load) {
m1 = 12;
m2 = 5;
}
Instance of Symbol 1359 MovieClip "烧烤台3" in Symbol 1364 MovieClip Frame 1
onClipEvent (load) {
m1 = 13;
m2 = 7;
}
Instance of Symbol 1321 MovieClip "w1" in Symbol 1364 MovieClip Frame 1
onClipEvent (load) {
m1 = 13;
m2 = 7;
}
Symbol 1404 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1409 MovieClip Frame 1
stop();
gotoAndStop(_root.level);
Symbol 1415 MovieClip Frame 1
stop();
gotoAndStop(_root.level);
Symbol 1417 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(1);
}
Symbol 1421 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 2
clearInterval(_parent.clic.timezx);
Symbol 1423 MovieClip Frame 6
_root.S_level_music_1.stop();
_root.S_level_music_2.stop();
_root.S_level_music_3.stop();
_root.S_level_music_4.stop();
_root.S_level_failed.start(0, 1);
Symbol 1423 MovieClip Frame 64
_root.gotoAndPlay("gameover");
stop();
Symbol 1427 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
_root.timeover = false;
_root.gamestart = true;
_parent.gotoAndPlay("starts");
}
Symbol 1451 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1499 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1505 MovieClip Frame 2
Symbol 1505 MovieClip Frame 4
Symbol 1505 MovieClip Frame 6
Symbol 1505 MovieClip Frame 8
Symbol 1505 MovieClip Frame 10
gotoAndPlay (2);
Symbol 1519 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1542 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1555 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1573 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1575 MovieClip Frame 1
stop();
Symbol 1575 MovieClip Frame 19
stop();
Symbol 1576 MovieClip Frame 1
function times() {
if (_root.timeover != true) {
t2 = _root.time1 - t1;
tf = Math.round((t2 / timetotal) * 100);
rotation = Math.round((360 * tf) / 100);
if ((((timetotal - t2) < 20000) and (!lasts2)) and (_root.score < _root.gamedate[_root.level - 1][1])) {
sound_clock = new Sound(this);
sound_clock.attachSound("sound_clock");
sound_clock.start(0, 1);
lasts.play();
lasts2 = true;
}
\u6307\u9488._rotation = rotation;
}
if (tf > 98) {
if ((_root.timeover != true) and (closes2._currentframe == 1)) {
lasts.gotoAndStop(1);
this.sound_clock.stop;
sound_clock.stop;
this.sound_clock.stop();
closes2.play();
_root.timeover = true;
}
if ((((((_parent.timeout._currentframe == 1) and (_root.score < _root.gamedate[_root.level - 1][1])) and (_root.locguest[0][1] == 0)) and (_root.locguest[1][1] == 0)) and (_root.locguest[2][1] == 0)) and (_root.locguest[3][1] == 0)) {
_parent.timeout.play();
clearInterval(timezx);
}
}
}
txt = _root.gamedate[_root.level - 1][1];
txts.textColor = 16777215 /* 0xFFFFFF */;
if (_root.level < 10) {
txt1 = "0" + _root.level;
} else {
txt1 = _root.level;
}
_root.totalscores(1);
timetotal = (_root.gamedate[_root.level - 1][2] * 60) * 1000;
t1 = _root.time1;
clearInterval(timezx);
timezx = setInterval(times, 150);
lasts2 = false;
closes = false;
this.onUnload = function () {
clearInterval(timezx);
};
Symbol 1585 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1587 Button
on (release) {
gotoAndPlay ("pause");
}
Symbol 1600 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1602 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
_root.gamestart = true;
_parent.gotoAndPlay("unpause");
}
Symbol 1624 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1626 Button
on (rollOver) {
_root["\u9F20\u6807"].gotoAndStop(1);
}
Symbol 1627 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
if (_root["\u88AB\u52A8"]) {
}
_root.sound_mousedown.start(0, 1);
_parent.gotoAndPlay("pl");
_parent.go1 = false;
_root["\u5DF2\u5B66\u4E60"] = true;
}
Symbol 1639 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1641 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.sound_mousedown.start(0, 1);
_parent.gotoAndPlay("pl");
_parent.go1 = true;
}
Symbol 1654 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1666 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1678 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1692 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1708 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1720 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1732 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1744 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1756 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1768 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1780 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1781 Button
on (rollOver) {
_root.sound_mouseover.start(0, 1);
}
on (release) {
_root.stopsound();
stopAllSounds();
_root.S_level_music_1.start(0, 99999);
_root.sound_mousedown.start(0, 1);
_root["\u5B66\u4E60"] = false;
if (_root["\u88AB\u52A8"]) {
_parent.gotoAndPlay("reload");
}
if (!_root["\u88AB\u52A8"]) {
_root.gotoAndPlay("levels03");
}
}
Symbol 1794 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1806 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1808 MovieClip Frame 1
if (_root["\u5B66\u4E60"]) {
gotoAndPlay ("\u5B66\u4E60");
}
Instance of Symbol 1416 MovieClip in Symbol 1808 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_root.gamestart) and (!_root["\u5B66\u4E60"])) {
_root["\u9F20\u6807"].gotoAndStop(1);
}
}
Symbol 1808 MovieClip Frame 12
txt1 = _root.level;
txt2 = _root.gamedate[_root.level - 1][1];
Symbol 1808 MovieClip Frame 24
stop();
Symbol 1808 MovieClip Frame 49
stop();
Symbol 1808 MovieClip Frame 50
_root.gamestart = false;
Symbol 1808 MovieClip Frame 63
stop();
Symbol 1808 MovieClip Frame 64
_root.gamestart = false;
_root.gamedate[_root.level - 1][0] = _root.score;
_root.score = 0;
_root.level++;
_root.gtime2 = 2;
_root.stopsound();
Symbol 1808 MovieClip Frame 70
_root.S_level_music_1.stop();
_root.S_level_music_2.stop();
_root.S_level_music_3.stop();
_root.S_level_music_4.stop();
_root.S_Level_Complete_short.start(0, 1);
Symbol 1808 MovieClip Frame 156
if (_root.level < 22) {
_root.savegame();
_root.gotoAndPlay("levels03");
} else {
_root.savegame();
_root.gotoAndPlay("welldone");
}
stop();
Symbol 1808 MovieClip Frame 179
stop();
Symbol 1808 MovieClip Frame 192
if ((!go1) and (!_root["\u88AB\u52A8"])) {
stopAllSounds();
}
if (!go1) {
_root["\u5B66\u4E60"] = false;
if (_root["\u88AB\u52A8"]) {
gotoAndPlay (1);
}
if (!_root["\u88AB\u52A8"]) {
_root.gotoAndPlay("levels03");
}
} else {
ns2 = 1;
n_guest = 1000;
i = 0;
while (i < _root.locguest.length) {
if (_root.locguest[i][1] == 0) {
_root.loadgame2.attachMovie("guests", "guests" + n_guest, n_guest);
_root.loadgame2["guests" + n_guest]._x = _root.locguestwz[i][1];
_root.loadgame2["guests" + n_guest].x1 = _root.loadgame2["guests" + n_guest]._x;
_root.loadgame2["guests" + n_guest]._y = _root.locguestwz[i][0];
_root.loadgame2["guests" + n_guest].id = i;
_root.loadgame2["guests" + n_guest].n = ns2;
_root.loadgame2["guests" + n_guest].m1 = _root.locguestwz[i][2];
_root.loadgame2["guests" + n_guest].m2 = _root.locguestwz[i][3];
_root.locguest[i][0] = ns2;
_root.locguest[i][1] = "guests" + n_guest;
break;
}
i++;
}
}
Symbol 1808 MovieClip Frame 193
_root["\u5B66\u4E60\u5B8C\u6210"] = false;
Symbol 1808 MovieClip Frame 204
function nexts() {
nextFrame();
}
stop();
Symbol 1808 MovieClip Frame 211
_root["\u5B66\u4E60\u5B8C\u6210"] = true;
Symbol 1808 MovieClip Frame 215
_root["\u5DF2\u5B66\u4E60"] = true;
_root.score = 0;
Symbol 1808 MovieClip Frame 239
stop();
Symbol 1808 MovieClip Frame 246
_root.gotoAndPlay("reload");
Symbol 1817 MovieClip Frame 1
stop();
Symbol 1818 MovieClip Frame 1
stop();