Frame 1
stop();
gamename = "elviswolf";
url = "www.gamesonly.com.cn";
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if (((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) {
load_Mc.nextFrame();
delete onEnterFrame;
}
};
Frame 6
stop();
Frame 21
stop();
Frame 41
stop();
var main = new Main();
Frame 58
stop();
score = ControllCenter.score;
if (_root.completed) {
_root.text_completed._visible = true;
} else {
_root.text_completed._visible = false;
}
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(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 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_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 md5_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 md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
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 _local2 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
var hexcase = 0;
var strsize = 8;
Frame 69
stop();
score = ControllCenter.score;
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(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 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_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 md5_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 md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
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 _local2 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
var hexcase = 0;
var strsize = 8;
Symbol 21 MovieClip Frame 80
stop();
Symbol 25 MovieClip Frame 107
stop();
Symbol 48 Button
on (release) {
msound.stop();
_root.gotoAndStop("menu");
}
Symbol 61 MovieClip Frame 1
msound = new Sound();
msound.attachSound("f8i815.MP3");
msound.start(0, 99);
Symbol 61 MovieClip Frame 174
msound.stop();
_root.gotoAndStop("menu");
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 330 MovieClip [__Packages.Main] Frame 0
class Main
{
var screen, controllCenter;
function Main () {
newGame();
screen = new Screen();
}
function newGame() {
controllCenter = new ControllCenter();
ControllCenter.run();
}
}
Symbol 331 MovieClip [__Packages.ControllCenter] Frame 0
class ControllCenter
{
static var intervalTime, intervalTime_addFish, pause, fishArray, LEVEL_TIME, current_level_time, level, score, caughtCounter, caughtTarget, tools_timer_box, tools_timer_hooker, box, setIntervalId, setIntervalId_addFish, timeBonus, hooker;
function ControllCenter () {
intervalTime = 100;
intervalTime_addFish = 1000;
pause = true;
fishArray = new Array();
LEVEL_TIME = 50;
current_level_time = LEVEL_TIME;
level = 1;
score = 0;
caughtCounter = 0;
caughtTarget = 5;
tools_timer_box = 0;
tools_timer_hooker = 0;
box = _root.Container.Box;
initHooker();
loadEvent();
}
function loadEvent() {
setIntervalId = setInterval(this, "process", intervalTime);
setIntervalId_addFish = setInterval(this, "addFish", intervalTime_addFish);
}
function addFish() {
if (pause) {
return(undefined);
}
if ((current_level_time--) <= 0) {
gameover();
} else if (caughtCounter >= caughtTarget) {
trace("get time bonus");
timeBonus = score;
addScore(current_level_time);
timeBonus = score - timeBonus;
Screen.updateTimeBonus();
levelUp();
Screen.updateLevel();
Screen.showNextLevel();
Pause();
if (level == 11) {
gameCompleted();
}
}
Screen.updateLevelTime();
if (fishArray.length < MAX_FISH_NUMBER) {
fishArray.push(new Fish());
}
if ((--tools_timer_box) == 0) {
normalBox();
}
if ((--tools_timer_hooker) == 0) {
normalHooker();
}
Screen.updateTimeBar(current_level_time, LEVEL_TIME);
}
function initHooker() {
hooker = new Hooker();
}
static function removeAll() {
hooker.unloadMc();
var _local1 = fishArray.length - 1;
while (_local1 >= 0) {
if (fishArray[_local1] != null) {
fishArray[_local1].unloadMc();
fishArray.pop();
}
_local1--;
}
clearInterval(setIntervalId_addFish);
clearInterval(setIntervalId);
}
static function run() {
pause = false;
Hooker.pause = false;
Fish.pause = false;
}
static function Pause() {
pause = true;
Hooker.pause = true;
Fish.pause = true;
}
function levelUp() {
if (LEVEL_TIME < LEVEL_TIME_MAX) {
LEVEL_TIME = LEVEL_TIME + 10;
}
current_level_time = LEVEL_TIME;
level++;
caughtCounter = 0;
if (caughtTarget < MAX_TARGET) {
caughtTarget = caughtTarget + 5;
}
Screen.updateTarget();
Screen.updateCaughtCounter();
Fish.moreFish();
}
static function addScore(bonus) {
score = score + 100;
var _local1 = 0;
while (_local1 < bonus) {
score = score + 100;
_local1++;
}
Screen.updateScore();
}
function gameover() {
removeAll();
Screen.gotoGameover();
}
function gameCompleted() {
removeAll();
Screen.gotoGameCompleted();
}
function process() {
if (pause) {
return(undefined);
}
var _local1 = 0;
while (_local1 < fishArray.length) {
if (fishArray[_local1].mc == null) {
fishArray.splice(_local1, 1);
_local1--;
} else if ((!hooker.isCatching) && (hooker.isFishing())) {
var _local2 = fishArray[_local1];
if (_local2.mc.hitTest(hooker.hook)) {
hooker.catchFish(_local2.getColor());
_local2.remove();
}
}
_local1++;
}
if (hooker.isCatching && (hooker.isFishing())) {
if (box.hitTest(hooker.hook)) {
hooker.releaseFish();
box.play();
switch (hooker.catchedFishColor) {
case 1 :
subCurrentLevelTime();
break;
case 2 :
addScore(0);
caughtCounter++;
break;
case 3 :
addScore(0);
caughtCounter++;
break;
case 4 :
addScore(0);
caughtCounter++;
break;
case 5 :
addScore(0);
caughtCounter++;
break;
case 6 :
addScore(0);
caughtCounter++;
break;
case 7 :
addScore(2);
caughtCounter++;
break;
case 8 :
addScore(1);
caughtCounter++;
break;
case 9 :
addScore(1);
caughtCounter++;
break;
case 10 :
addScore(2);
caughtCounter++;
break;
case 11 :
addScore(1);
caughtCounter++;
break;
case 12 :
addScore(3);
caughtCounter++;
break;
case 13 :
addScore(0);
caughtCounter++;
break;
case 14 :
addScore(4);
caughtCounter++;
break;
case Fish.MAX_COLOR + 1 :
addCurrentLevelTime();
break;
case Fish.MAX_COLOR + 2 :
biggerBox();
break;
case Fish.MAX_COLOR + 3 :
biggerHooker();
}
Screen.updateCaughtCounter();
}
}
}
static function addCurrentLevelTime() {
current_level_time = current_level_time + 10;
if (current_level_time > LEVEL_TIME_MAX) {
current_level_time = LEVEL_TIME_MAX;
}
}
static function subCurrentLevelTime() {
current_level_time = current_level_time - 10;
if (current_level_time < 0) {
current_level_time = 0;
}
}
static function biggerBox() {
if (tools_timer_box < 0) {
Screen.biggerBox();
}
tools_timer_box = TOOLS_TIMER;
}
static function normalBox() {
Screen.normalBox();
}
static function biggerHooker() {
if (tools_timer_hooker < 0) {
hooker.biggerHooker();
}
tools_timer_hooker = TOOLS_TIMER;
}
static function normalHooker() {
hooker.normalHooker();
}
static var MAX_FISH_NUMBER = 8;
static var TOOLS_TIMER = 16;
static var LEVEL_TIME_MAX = 300;
static var MAX_TARGET = 200;
}
Symbol 332 MovieClip [__Packages.McLoader] Frame 0
class McLoader
{
var srcName, orgWidth, direction;
function McLoader (parentMc, _srcName, posX, posY, newName) {
if (Utils.isNull(parentMc)) {
trace("McLoader: parentMc is null");
return;
}
if (Utils.isNull(_srcName)) {
trace("McLoader: srcName is null");
return;
}
if (Utils.isNull(posX)) {
posX = 0;
}
if (Utils.isNull(posY)) {
posY = 0;
}
if (Utils.isNull(newName)) {
newName = _srcName + (defaultNewNameCounter++);
}
srcName = _srcName;
loadMc(parentMc, srcName, posX, posY, newName);
}
function unloadMc() {
removeMovieClip(mc);
mc = null;
}
function loadMc(parentMc, srcName, posX, posY, newName) {
parentMc.attachMovie(srcName, newName, parentMc.getNextHighestDepth(), {_x:posX, _y:posY});
mc = parentMc[newName];
orgWidth = mc._width;
}
function setX(__x) {
if (Utils.isNull(__x)) {
trace("McLoader: __x is null");
__x = 0;
}
mc._x = __x;
}
function setY(__y) {
if (Utils.isNull(__y)) {
trace("McLoader: __y is null");
__y = 0;
}
mc._y = __y;
}
function getX() {
return(mc._x);
}
function getY() {
return(mc._y);
}
function setWidth(_w) {
if (Utils.isNull(_w)) {
trace("McLoader: _w is null");
_w = 0;
}
mc._width = _w;
}
function setHeight(_h) {
if (Utils.isNull(_h)) {
trace("McLoader: _h is null");
_h = 0;
}
mc._height = _h;
}
function getWidth() {
return(mc._width);
}
function getOrgWidth() {
return(orgWidth);
}
function getHeight() {
return(mc._height);
}
function getDirection() {
return(direction);
}
function reverseMc() {
mc._xscale = mc._xscale * -1;
direction = direction * -1;
}
function getState() {
return(mc.state);
}
function setGlobalPoint(_p) {
mc._parent.globalToLocal(_p);
mc._x = _p.x;
mc._y = _p.y;
}
function getGlobalPoint() {
var _local2 = new flash.geom.Point(mc._x, mc._y);
mc._parent.localToGlobal(_local2);
return(_local2);
}
function setGlobalX(__x) {
var _local2 = new flash.geom.Point(__x, 0);
mc._parent.globalToLocal(_local2);
mc._x = _local2.x;
}
function getGlobalX() {
var _local2 = new flash.geom.Point(mc._x, mc._y);
mc._parent.localToGlobal(_local2);
return(_local2.x);
}
var mc = null;
static var DIRECTION_RIGHT = 1;
static var DIRECTION_LEFT = -1;
static var defaultNewNameCounter = 0;
}
Symbol 333 MovieClip [__Packages.Utils] Frame 0
class Utils
{
function Utils () {
}
static function isNull(obj) {
if ((typeof(obj) == "undefined") || (obj == null)) {
return(true);
}
return(false);
}
static function getRandom(max) {
return(Math.round(((max * Math.random()) * 100) / 100));
}
static function submitScore(_score) {
if (_root.username == undefined) {
_root.username = "Guest";
}
sendScore(_score);
}
static function sendScore(_score) {
if (_score < 0) {
_score = 0;
}
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.user_id = _root.user_id;
_local2.game_id = _root.game_id;
_local2.score = _score;
_local3.onLoad = function (success) {
if (success) {
}
};
if (_root.username == undefined) {
_local2.sendAndLoad((("addscore.php?username=Guset&game_id=" + _root.game_id) + "&score=") + _score, _local3);
} else {
_local2.sendAndLoad((((("addscore.php?username=" + _root.username) + "&game_id=") + _root.game_id) + "&score=") + _score, _local3);
}
}
}
Symbol 334 MovieClip [__Packages.Hooker] Frame 0
class Hooker extends McLoader
{
static var pause;
var mc, pole, hook, isCatching, catchedFishColor;
function Hooker () {
super(_root.Container, "Poler");
mc._x = 382.9;
mc._y = 99.7;
pause = true;
pole = mc.Pole;
hook = mc.Pole.Hook;
isCatching = false;
loadEvent();
}
function biggerHooker() {
mc._width = mc._width * 1.5;
mc._height = mc._height * 1.5;
}
function normalHooker() {
mc._width = mc._width / 1.5;
mc._height = mc._height / 1.5;
}
function loadEvent() {
var ins = this;
mc.onMouseDown = function () {
if (!Hooker.pause) {
ins.shoot();
}
};
}
function catchFish(_color) {
catchedFishColor = _color;
trace("catch fish " + catchedFishColor);
hook.gotoAndStop("catching");
hook.Fish.gotoAndStop(catchedFishColor);
isCatching = true;
goBack();
}
function isFishing() {
if (pole._currentframe == 1) {
if (!isCatching) {
hook.gotoAndStop("normal");
}
return(false);
}
return(true);
}
function shoot() {
trace("shoot");
pole.play();
if (!isCatching) {
hook.gotoAndStop("open");
}
mc.stop();
}
function releaseFish() {
hook.gotoAndStop("normal");
isCatching = false;
goBack();
}
function goBack() {
var _local2 = pole._currentframe;
if (_local2 < (pole._totalframes / 2)) {
pole.gotoAndPlay(pole._totalframes - _local2);
}
}
}
Symbol 335 MovieClip [__Packages.Screen] Frame 0
class Screen
{
function Screen () {
init();
}
function init() {
_root.screen_pause._visible = false;
_root.screen_nextLevel._visible = false;
updateTarget();
updateLevel();
updateScore();
updateLevelTime();
updateCaughtCounter();
loadEvent();
}
function loadEvent() {
var _local4 = this;
_root.btn_pause.onRelease = function () {
if (_root.screen_pause._visible) {
_root.screen_pause._visible = false;
ControllCenter.run();
} else {
_root.screen_pause._visible = true;
ControllCenter.Pause();
}
};
_root.screen_pause.btn_continue.onRelease = function () {
_root.screen_pause._visible = false;
ControllCenter.run();
};
_root.screen_nextLevel.btn_nextLevel.onRelease = function () {
_root.screen_nextLevel._visible = false;
ControllCenter.run();
};
_root.btn_menu.onRelease = function () {
ControllCenter.removeAll();
_root.gotoAndStop("menu");
};
_root.btn_sound.onRelease = function () {
var _local2 = new Sound();
if (this._currentframe == 1) {
this.gotoAndStop(2);
_local2.setVolume(0);
} else {
this.gotoAndStop(1);
_local2.setVolume(100);
}
};
}
static function gotoGameover() {
_root.gotoAndStop("gameover");
_root.completed = false;
}
static function gotoGameCompleted() {
_root.gotoAndStop("gameover");
_root.completed = true;
}
static function showNextLevel() {
_root.screen_nextLevel._visible = true;
_root.screen_nextLevel.text_level = ControllCenter.level - 1;
_root.screen_nextLevel.text_target = ControllCenter.caughtTarget;
ramdomBg();
}
static function updateLevel() {
_root.text_level = ControllCenter.level;
}
static function updateLevelTime() {
_root.text_levelTime = ControllCenter.current_level_time;
}
static function updateScore() {
_root.text_score = ControllCenter.score;
}
static function updateTarget() {
_root.text_target = ControllCenter.caughtTarget;
}
static function updateCaughtCounter() {
_root.text_caughtCounter = ControllCenter.caughtCounter;
}
static function biggerBox() {
_root.Container.Box._width = _root.Container.Box._width * 1.5;
_root.Container.Box._height = _root.Container.Box._height * 1.5;
}
static function normalBox() {
_root.Container.Box._width = _root.Container.Box._width / 1.5;
_root.Container.Box._height = _root.Container.Box._height / 1.5;
}
static function updateTimeBar(time, maxTime) {
var _local2 = Math.round((time / maxTime) * 100);
_root.timeBar.percentMc.gotoAndStop(100 - _local2);
}
static function ramdomBg() {
_root.Container.bg.gotoAndStop(Utils.getRandom(_root.Container.bg.totalFrames - 1) + 1);
if ((ControllCenter.level % 3) == 0) {
if (_root.Container._currentframe != _root.Container.totalFrames) {
_root.Container.nextFrame();
} else {
_root.Container.gotoAndStop(1);
}
}
}
static function updateTimeBonus() {
_root.screen_nextLevel.text_timeBonus = ControllCenter.timeBonus;
}
}
Symbol 336 MovieClip [__Packages.Fish] Frame 0
class Fish extends McLoader
{
static var pause;
var color, speed, mc, reverseMc, unloadMc;
function Fish () {
super(_root.Container, "Fish");
if (Utils.getRandom(5) == 2) {
setColor((MAX_COLOR + Utils.getRandom(MAX_TOOLS - 1)) + 1);
} else {
setColor(Utils.getRandom(TotalColor - 1) + 1);
}
switch (color) {
case 5 :
speed = SPEED_SLOW;
break;
case 10 :
case 11 :
speed = SPEED_FAST;
break;
case 12 :
speed = SPEED_VERY_FAST;
break;
case 9 :
case 13 :
speed = SPEED_SLOW;
break;
default :
speed = SPEED_NORMAL;
}
var _local4 = Utils.getRandom(1);
if (_local4 == 0) {
mc._x = mc._parent.Pool._width + mc._width;
speed = -speed;
} else {
reverseMc();
mc._x = -mc._width;
}
mc._y = Math.round(Math.random() * (mc._parent.Pool._height - mc._height)) + mc._parent.Pool._y;
pause = false;
loadEvent();
}
static function moreFish() {
if (TotalColor < MAX_COLOR) {
TotalColor++;
}
}
function loadEvent() {
var ins = this;
mc.onEnterFrame = function () {
if (!Fish.pause) {
ins.move();
}
};
}
function move() {
mc._x = mc._x + speed;
if ((mc._x < (-mc._width)) || (mc._x > (mc._parent.Pool._width + mc._width))) {
remove();
}
}
function remove() {
mc.onEnterFrame = null;
unloadMc();
}
function setColor(_color) {
color = _color;
mc.gotoAndStop(_color);
}
function getColor() {
return(color);
}
static var pool = _root.Container.Pool;
static var SPEED_NORMAL = 3;
static var SPEED_FAST = 5;
static var SPEED_VERY_FAST = 8;
static var SPEED_SLOW = 1;
static var MAX_COLOR = 14;
static var TotalColor = 6;
static var MAX_TOOLS = 3;
}
Symbol 86 MovieClip [Fish] Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 10
stop();
Symbol 115 MovieClip Frame 20
stop();
Symbol 117 MovieClip Frame 1
stop();
this._parent.play();
Symbol 156 Button
on (release) {
getURL (("http://" + _root.url) + "/highscore.php?game=elviswolf", "_blank");
}
Symbol 157 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 158 Button
on (release) {
getURL ("http://" + _root.url, "_blank");
}
Symbol 159 Button
on (release) {
_root.gotoAndStop("howTo");
}
Symbol 160 MovieClip Frame 31
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 12
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 100
stop();
Symbol 319 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 322 Button
on (release) {
submitScore();
}