Frame 1
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
fscommand ("showmenu", false);
_root.tips_show = 0;
_root.game_started = false;
_root.game_name = "World Cup Headers";
_root.game_id = "1468";
_root.main_link = "http://www.2DPlay.com/index.php?gameid=" + _root.game_id;
_root.download_link = "http://www.2DPlay.com/downloadgame.php?gameid=" + _root.game_id;
_root.get_game_link = "http://www.2DPlay.com/freecontent.htm";
_root.scores_link = ("http://www.2Dplay.com/highscores.php?gameid=" + _root.game_id) + "&hiscore=";
_root.viewscores_link = "http://www.2Dplay.com/showscores.php?gameid=" + _root.game_id;
Frame 2
stop();
Frame 4
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_vm_test() {
return(hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var i = 0;
while (i < x.length) {
var olda = a;
var oldb = _local3;
var oldc = _local2;
var oldd = _local1;
a = md5_ff(a, _local3, _local2, _local1, x[i + 0], 7, -680876936);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, _local3, _local2, _local1, x[i + 4], 7, -176418897);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 7], 22, -45705983);
a = md5_ff(a, _local3, _local2, _local1, x[i + 8], 7, 1770035416);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, _local3, _local2, _local1, x[i + 12], 7, 1804603682);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, _local3, _local2, _local1, x[i + 1], 5, -165796510);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 0], 20, -373897302);
a = md5_gg(a, _local3, _local2, _local1, x[i + 5], 5, -701558691);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 4], 20, -405537848);
a = md5_gg(a, _local3, _local2, _local1, x[i + 9], 5, 568446438);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, _local3, _local2, _local1, x[i + 13], 5, -1444681467);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, _local3, _local2, _local1, x[i + 5], 4, -378558);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 14], 23, -35309556);
a = md5_hh(a, _local3, _local2, _local1, x[i + 1], 4, -1530992060);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, _local3, _local2, _local1, x[i + 13], 4, 681279174);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 6], 23, 76029189);
a = md5_hh(a, _local3, _local2, _local1, x[i + 9], 4, -640364487);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 2], 23, -995338651);
a = md5_ii(a, _local3, _local2, _local1, x[i + 0], 6, -198630844);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 5], 21, -57434055);
a = md5_ii(a, _local3, _local2, _local1, x[i + 12], 6, 1700485571);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, _local3, _local2, _local1, x[i + 8], 6, 1873313359);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, _local3, _local2, _local1, x[i + 4], 6, -145523070);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
_local3 = safe_add(_local3, oldb);
_local2 = safe_add(_local2, oldc);
_local1 = safe_add(_local1, oldd);
i = i + 16;
}
return(Array(a, _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) {
var _local1 = b;
return(md5_cmn((_local1 & c) | ((~_local1) & d), a, _local1, 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 core_hmac_md5(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_md5(_local2, key.length * chrsz);
}
var _local3 = Array(16);
var opad = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
opad[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var hash = core_md5(_local3.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_md5(opad.concat(hash), 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 _local2 = str;
var _local3 = Array();
var mask = ((1 << chrsz) - 1);
var _local1 = 0;
while (_local1 < (_local2.length * chrsz)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((_local2.charCodeAt(_local1 / chrsz) & mask) << (_local1 % 32));
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2str(bin) {
var _local2 = bin;
var _local3 = "";
var mask = ((1 << chrsz) - 1);
var _local1 = 0;
while (_local1 < (_local2.length * 32)) {
_local3 = _local3 + String.fromCharCode((_local2[_local1 >> 5] >>> (_local1 % 32)) & mask);
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local2 = binarray;
var _local3 = (hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var str = "";
var _local1 = 0;
while (_local1 < (_local2.length * 4)) {
str = str + (_local3.charAt((_local2[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((_local2[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(str);
}
function binl2b64(binarray) {
var _local3 = binarray;
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var str = "";
var _local2 = 0;
while (_local2 < (_local3.length * 4)) {
var triplet = (((((_local3[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((_local3[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((_local3[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255));
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (_local3.length * 32)) {
str = str + b64pad;
} else {
str = str + tab.charAt((triplet >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(str);
}
lang_data = new LanguageData();
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
stop();
Frame 5
stopAllSounds();
SFX_manager = new SFXManager();
SFX_manager.playSFX("splash_music");
SO_manager = new SOManager();
KeyManager = new ControlsManager();
KeyManager.Init();
Frame 6
_root.game_started = true;
stop();
Instance of Symbol 472 MovieClip [uni_button] "flashing_1" in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "single_player_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.multiplayer = false;
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"start_game"});
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "multi_player_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.multiplayer = true;
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"start_game"});
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "get_game_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.get_game_link, "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "options_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"options"});
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "view_high_scores_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.viewscores_link, "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "play_more_games_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.main_link, "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 6
//component parameters
onClipEvent (initialize) {
label_var = "change_language_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"select_language"});
}
Instance of Symbol 357 MovieClip [2dplay button] in Frame 6
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.main_link, "_blank");
}
Frame 7
stop();
Instance of Symbol 472 MovieClip [uni_button] "flashing" in Frame 7
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"main_menu"});
}
Frame 8
stop();
Instance of Symbol 472 MovieClip [uni_button] in Frame 8
//component parameters
onClipEvent (initialize) {
label_var = "current_quality_str";
}
onClipEvent (load) {
this.showLabels = function () {
var _local1 = this;
var _local2 = _root;
switch (_quality) {
case "HIGH" :
_local1.label_str = _local2.high_quality_str;
return;
case "MEDIUM" :
_local1.label_str = _local2.medium_quality_str;
return;
case "LOW" :
_local1.label_str = _local2.low_quality_str;
}
};
showLabels();
}
on (press) {
_root.SFX_manager.playSFX("button");
switch (_quality) {
case "HIGH" :
_quality = "LOW";
break;
case "MEDIUM" :
_quality = "HIGH";
break;
case "LOW" :
_quality = "MEDIUM";
}
showLabels();
_root.SO_manager.setQualitySettings(_quality);
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 8
//component parameters
onClipEvent (initialize) {
label_var = "current_sound_str";
}
onClipEvent (load) {
this.label_str = (_root.SO_manager.game_so.data.sound_on ? (_root.sound_off_str) : (_root.sound_on_str));
}
on (press) {
_root.SFX_manager.playSFX("button");
this.label_str = _root.SO_manager.toggleSound();
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 8
//component parameters
onClipEvent (initialize) {
label_var = "play_more_games_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.main_link, "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] "flashing" in Frame 8
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"main_menu"});
}
Instance of Symbol 360 MovieClip [DefinedKey] in Frame 8
//component parameters
onClipEvent (initialize) {
key_index = 0;
}
Instance of Symbol 360 MovieClip [DefinedKey] in Frame 8
//component parameters
onClipEvent (initialize) {
key_index = 1;
}
Instance of Symbol 360 MovieClip [DefinedKey] in Frame 8
//component parameters
onClipEvent (initialize) {
key_index = 2;
}
Instance of Symbol 360 MovieClip [DefinedKey] in Frame 8
//component parameters
onClipEvent (initialize) {
key_index = 3;
}
Instance of Symbol 360 MovieClip [DefinedKey] in Frame 8
//component parameters
onClipEvent (initialize) {
key_index = 4;
}
Instance of Symbol 360 MovieClip [DefinedKey] in Frame 8
//component parameters
onClipEvent (initialize) {
key_index = 5;
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 8
//component parameters
onClipEvent (initialize) {
label_var = "get_game_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.get_game_link, "_blank");
}
Frame 9
stop();
Frame 10
stop();
Instance of Symbol 472 MovieClip [uni_button] "flashing" in Frame 10
//component parameters
onClipEvent (initialize) {
label_var = "world_cup_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.world_cup_game = true;
_root.TeamStats = new TeamStatistics();
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"select_team"});
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 10
//component parameters
onClipEvent (initialize) {
label_var = "international_friendly_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.world_cup_game = false;
_root.TeamStats = new TeamStatistics();
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"select_team"});
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 10
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"main_menu"});
}
Frame 11
SFX_manager.playSFX("screen_music");
stop();
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_0" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 0;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_1" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 1;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_2" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 2;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_3" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 3;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_4" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 4;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_5" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 5;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_6" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 6;
}
Instance of Symbol 502 MovieClip [select_team_cell] "selection_group_7" in Frame 11
//component parameters
onClipEvent (initialize) {
group_index = 7;
}
Instance of Symbol 558 MovieClip [uni_button_small_13_points_font] in Frame 11
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"classes_init"});
}
Instance of Symbol 558 MovieClip [uni_button_small_13_points_font] "start_match_button" in Frame 11
//component parameters
onClipEvent (initialize) {
label_var = "start_match_str";
}
onClipEvent (load) {
_visible = false;
if ((!_root.world_cup_game) || (!_root.multiplayer)) {
_root.flashing_2._y = _y;
_root.team_preview_mc._y = 210;
}
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.TeamStats.startMultiCup();
}
Instance of Symbol 558 MovieClip [uni_button_small_13_points_font] "flashing_2" in Frame 11
//component parameters
onClipEvent (initialize) {
label_var = "select_team_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.TeamStats.selectPlayer();
}
Frame 12
stop();
Instance of Symbol 523 MovieClip [uni_button_small] in Frame 12
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("quit_confirm", "quit_confirm", 9);
}
Instance of Symbol 523 MovieClip [uni_button_small] "flashing_2" in Frame 12
//component parameters
onClipEvent (initialize) {
label_var = "continue_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.TeamStats.tournamentTeamsSelect();
}
Frame 13
_root.score_left = 0;
_root.score_right = 0;
_root.TeamStats.showTeamsTypes();
stop();
Instance of Symbol 405 MovieClip "left_flag" in Frame 13
onClipEvent (load) {
gotoAndStop(_root.TeamStats.teams_info[_root.TeamStats.team_left_match_index].label);
}
Instance of Symbol 405 MovieClip "right_flag" in Frame 13
onClipEvent (load) {
gotoAndStop(_root.TeamStats.teams_info[_root.TeamStats.team_right_match_index].label);
}
Instance of Symbol 523 MovieClip [uni_button_small] "flashing_2" in Frame 13
//component parameters
onClipEvent (initialize) {
label_var = "continue_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"match"});
}
Instance of Symbol 517 MovieClip [team_select_preview_2] "right_team_preview" in Frame 13
onClipEvent (load) {
showPreview(_root.TeamStats.team_right_match_index);
}
Instance of Symbol 512 MovieClip [team_select_preview] "left_team_preview" in Frame 13
onClipEvent (load) {
showPreview(_root.TeamStats.team_left_match_index);
}
Frame 14
_root.TeamStats.current_time = 1;
_root.TeamStats.startMatch();
SFX_manager.playSFX("stadium");
stop();
Instance of Symbol 637 MovieClip "volley_mc" in Frame 14
onClipEvent (load) {
this.swapDepths(2);
}
Instance of Symbol 520 MovieClip [uni_button_medium] in Frame 14
//component parameters
onClipEvent (initialize) {
label_var = "pause_menu_str";
}
on (press) {
if (!_root.game_paused) {
_root.SFX_manager.playSFX("button");
_root.game_paused = true;
_root.player_mc.body_mc.stop();
_root.player_mc_2.body_mc.stop();
_root.attachMovie("pause_clip", "pause_clip", 9);
}
}
Instance of Symbol 357 MovieClip [2dplay button] in Frame 14
on (press) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 405 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop(_root.TeamStats.teams_info[_root.TeamStats.team_left_match_index].label);
_root.left_label = _root.TeamStats.teams_info[_root.TeamStats.team_left_match_index].label;
}
Instance of Symbol 405 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop(_root.TeamStats.teams_info[_root.TeamStats.team_right_match_index].label);
_root.right_label = _root.TeamStats.teams_info[_root.TeamStats.team_right_match_index].label;
}
Frame 15
if (_root.player_left != _root.player_right) {
SFX_manager.playSFX("screen_music");
}
_root.player_mc.removeMovieClip();
_root.player_mc_2.removeMovieClip();
_root.ball_mc.removeMovieClip();
_root.volley_mc.removeMovieClip();
_root["teams_pair_" + _root.TeamStats.current_round][_root.TeamStats.current_match][0].head_for = _root.score_left;
_root["teams_pair_" + _root.TeamStats.current_round][_root.TeamStats.current_match][1].head_for = _root.score_right;
_root["teams_pair_" + _root.TeamStats.current_round][_root.TeamStats.current_match][0].head_against = _root.score_right;
_root["teams_pair_" + _root.TeamStats.current_round][_root.TeamStats.current_match][1].head_against = _root.score_left;
_root.match_results = (_root.score_left + ":") + _root.score_right;
switch (_root.TeamStats.game_type) {
case 0 :
case 2 :
_root.current_round_str = _root.int_friendly_results_str;
break;
default :
_root.current_round_str = (_root.current_round_str + " ") + _root.match_results_str;
}
stop();
Instance of Symbol 405 MovieClip "left_flag" in Frame 15
onClipEvent (load) {
gotoAndStop(_root.TeamStats.teams_info[_root.TeamStats.team_left_match_index].label);
}
Instance of Symbol 405 MovieClip "right_flag" in Frame 15
onClipEvent (load) {
gotoAndStop(_root.TeamStats.teams_info[_root.TeamStats.team_right_match_index].label);
}
Instance of Symbol 523 MovieClip [uni_button_small] in Frame 15
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("quit_confirm", "quit_confirm", 9);
}
Instance of Symbol 523 MovieClip [uni_button_small] "flashing_2" in Frame 15
//component parameters
onClipEvent (initialize) {
label_var = "continue_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.TeamStats.nextMatch();
}
Instance of Symbol 517 MovieClip [team_select_preview_2] "right_team_preview" in Frame 15
onClipEvent (load) {
showPreview(_root.TeamStats.team_right_match_index);
}
Instance of Symbol 512 MovieClip [team_select_preview] "left_team_preview" in Frame 15
onClipEvent (load) {
showPreview(_root.TeamStats.team_left_match_index);
}
Frame 16
_root.game_over_str = (((_root.congratulations_str + "\r") + _root.final_score_str) + "\r") + _root.TeamStats.single_score;
stop();
Instance of Symbol 472 MovieClip [uni_button] in Frame 16
//component parameters
onClipEvent (initialize) {
label_var = "main_menu_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"classes_init"});
}
Instance of Symbol 472 MovieClip [uni_button] "flashing_submit" in Frame 16
//component parameters
onClipEvent (initialize) {
label_var = "submit_score_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
var hashkey = _root.hex_md5(((("gameid=" + _root.game_id) + "&hiscore=") + _root.TeamStats.single_score) + "2DPlay.com/");
getURL (String(((_root.scores_link + _root.TeamStats.single_score) + "&hash=") + hashkey), "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] in Frame 16
//component parameters
onClipEvent (initialize) {
label_var = "play_more_games_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.main_link, "_blank");
}
Frame 17
_root.game_over_str = (((_root.cup_lost_str + "\r") + _root.final_score_str) + "\r") + _root.TeamStats.single_score;
stop();
Frame 18
_root.game_over_str = (((_root.congratulations_str + "\r") + _root.final_score_str) + "\r") + _root.TeamStats.single_score;
stop();
Instance of Symbol 472 MovieClip [uni_button] in Frame 18
//component parameters
onClipEvent (initialize) {
label_var = "play_more_games_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.main_link, "_blank");
}
Symbol 9 MovieClip [preloader] Frame 1
onEnterFrame = function () {
var _local1 = _root.xml_object.getBytesTotal();
var _local3 = _root.xml_object.getBytesLoaded();
var _local2 = (100 * _local3) / _local1;
this.loadbar._xscale = _local2;
};
Symbol 673 MovieClip [__Packages.TimerControl] Frame 0
class TimerControl
{
var timer_offset, time_disp;
function TimerControl () {
var _local1 = this;
_local1.round_time = _root.Settings.round_time;
_local1.timer_init = _local1.round_time * 1000;
_local1.timer_offset = getTimer();
}
function Update() {
var _local1 = this;
var _local3 = _root;
_local1.time_disp = getTimer() - _local1.timer_offset;
_local1.level_time = (_local1.timer_init - (getTimer() - _local1.timer_offset)) / 1000;
var minutes = String(Math.floor(_local1.level_time / 60));
var _local2 = String(Math.floor(_local1.level_time % 60));
_local2 = ((_local2.length == 1) ? ("0" + _local2) : (_local2));
_local3.current_timer_str = (minutes + ":") + _local2;
if (_local1.level_time < 0) {
_local3.current_timer_str = "0:00";
_local3.TeamStats.endTime();
}
}
function PauseOFF() {
timer_offset = getTimer() - time_disp;
}
}
Symbol 674 MovieClip [__Packages.CPUBot] Frame 0
class CPUBot extends MovieClip
{
var center;
function CPUBot () {
var _local1 = this;
var _local2 = _root;
super();
_local1.head_guide._visible = (_local1.hotspot._visible = (_local1.tri_hotspot._visible = false));
_local1.shadow_mc = _local2.right_shadow;
_local1.speed = _local2.TeamStats.teams_info[_local2.TeamStats.team_right_match_index].speed;
_local1.cpu_jump_height = _local2.TeamStats.teams_info[_local2.TeamStats.team_right_match_index].jump;
_local1.field_limit_1 = _local2.Settings.right_limit_1;
_local1.field_limit_2 = _local2.Settings.right_limit_2;
_local1._x = (_local1.field_limit_1 + _local1.field_limit_2) / 2;
_local1.center = (_local1.field_limit_1 + _local1.field_limit_2) / 2;
_local1.dx = 0;
_local1.dy = 0;
var _local3 = _local2.TeamStats.getOblique(_local1.team_index);
_local1.hair_mc.gotoAndStop(_local3.hair_index);
_local1.skin_color = _local3.skin_color;
_local1.shirt_color = _local3.shirt_color;
_local1.pants_color = _local3.pants_color;
_local1.shadow_mc._x = _local1._x;
}
function humanGoal(ball_x) {
center = (center + ball_x) / 2;
}
function Update() {
var _local1 = this;
var _local2 = _root;
var _local3 = _local2.ball_mc._x;
var ball_y = _local2.ball_mc._y;
var ang = ((Math.atan2(-Math.abs((ball_y - _local1._y) - (_local1.head_guide._y / 2)), _local3 - _local1._x) / Math.PI) * 180);
_local1.head_guide._rotation = (ang + 90) / 1.3;
if (_local1.hotspot.hitTest(_local3, ball_y, true)) {
var myPoint = {x:_local1.hotspot._x, y:_local1.hotspot._y};
_local1.localToGlobal(myPoint);
var hotspot_gx = myPoint.x;
var hotspot_gy = myPoint.y;
var g_dx = (_local2.ball_mc._x - hotspot_gx);
var g_dy = (_local2.ball_mc._y - hotspot_gy);
var ball_dist = Math.sqrt((g_dx * g_dx) + (g_dy * g_dy));
var min_ball_dist = ((_local2.ball_mc._width + _local1.hotspot._width) / 2);
var hit_angle = Math.atan2(g_dy, g_dx);
_local2.ball_mc.PlayerHit(_local1._x, _local1._y, _local1.dx, _local1.dy, hotspot_gx + (Math.cos(hit_angle) * min_ball_dist), hotspot_gy + (Math.sin(hit_angle) * min_ball_dist), false);
}
if (_local3 < 300) {
if (_local1.center != _local1._x) {
if (_local1.center > _local1._x) {
var direct = -1;
_local1.state = "run_backward";
} else {
var direct = 1;
_local1.state = "run_forward";
}
if (Math.abs(_local1.center - _local1._x) <= _local1.speed) {
_local1.state = "idle";
var direct = 0;
_local1._x = _local1.center;
}
} else {
_local1.state = "idle";
var direct = 0;
_local1._x = _local1.center;
}
} else {
var player_ball_dx = ((_local2.ball_mc.dx > 0) ? 10 : 16);
var guide_dx = ((((_local2.ball_guide._x + _local3) / 2) - _local1._x) + player_ball_dx);
if (Math.abs(guide_dx) > _local1.speed) {
if (guide_dx > 0) {
var direct = -1;
_local1.state = "run_backward";
} else {
var direct = 1;
_local1.state = "run_forward";
}
} else {
var direct = 0;
_local1.state = ((_local1._x > (((_local2.ball_guide._x + _local3) / 2) + player_ball_dx)) ? "run_forward" : "run_backward");
}
}
direct = (_local2.ball_mc.fallen ? 0 : (direct));
_local1.state = (_local2.ball_mc.fallen ? "idle" : (_local1.state));
_local1.dx = _local1.speed * direct;
if (!_local1.jump) {
if (_local1.tri_hotspot.hitTest(_local3, ball_y, true)) {
_local1.dy = _local1.cpu_jump_height;
_local1.dx = (-_local1.speed) / 2;
_local1.jump = true;
_local1.fall = false;
}
if (_local1.head_guide.hitTest(_local3, ball_y, true) && (_local1._x > _local3)) {
_local1.dy = _local1.cpu_jump_height;
_local1.jump = true;
_local1.fall = false;
}
} else if (!_local1.fall) {
_local1.dy = _local1.dy * _local2.Settings.gravity;
if (_local1.dy < 1) {
_local1.dy = -1;
_local1.fall = true;
}
} else {
_local1.dy = _local1.dy / _local2.Settings.gravity;
if ((_local1._y - _local1.dy) >= _local2.Settings.floor_y) {
_local1.jump = false;
_local1.fall = false;
_local1.dy = 0;
_local1._y = _local2.Settings.floor_y;
}
}
_local1.state = ((_local1.dy < 0) ? "fall" : (_local1.state));
_local1.state = ((_local1.dy > 0) ? "jump" : (_local1.state));
_local1.gotoAndStop(_local1.state);
_local1._y = _local1._y - _local1.dy;
_local1._x = _local1._x - _local1.dx;
if (_local1._x > _local1.field_limit_2) {
_local1._x = _local1.field_limit_2;
}
if (_local1._x < _local1.field_limit_1) {
_local1._x = _local1.field_limit_1;
}
_local1.shadow_mc._x = _local1._x;
_local1.shadow_mc._xscale = (_local1.shadow_mc._yscale = (_local1._y / 2) - 90);
}
var jump = false;
var fall = false;
}
Symbol 675 MovieClip [__Packages.PlayerBot] Frame 0
class PlayerBot extends MovieClip
{
function PlayerBot () {
var _local1 = this;
var _local2 = _root;
var _local3 = _global;
super();
_local1.hotspot._visible = false;
_local1.dx = 0;
_local1.dy = 0;
if (_local1.left_player) {
_local1.shadow_mc = _local2.left_shadow;
_local1.key_left = _local3.ControlsManager.cont_keys[0];
_local1.key_right = _local3.ControlsManager.cont_keys[1];
_local1.key_jump = _local3.ControlsManager.cont_keys[2];
_local1.field_limit_1 = _local2.Settings.left_limit_1;
_local1.field_limit_2 = _local2.Settings.left_limit_2;
_local1.speed = _local2.TeamStats.teams_info[_local2.TeamStats.team_left_match_index].speed;
_local1.player_jump_height = _local2.TeamStats.teams_info[_local2.TeamStats.team_left_match_index].jump;
} else {
_local1.shadow_mc = _local2.right_shadow;
_local1._xscale = -100;
_local1.key_left = _local3.ControlsManager.cont_keys[3];
_local1.key_right = _local3.ControlsManager.cont_keys[4];
_local1.key_jump = _local3.ControlsManager.cont_keys[5];
_local1.field_limit_1 = _local2.Settings.right_limit_1;
_local1.field_limit_2 = _local2.Settings.right_limit_2;
_local1.speed = _local2.TeamStats.teams_info[_local2.TeamStats.team_right_match_index].speed;
_local1.player_jump_height = _local2.TeamStats.teams_info[_local2.TeamStats.team_right_match_index].jump;
}
_local1._x = (_local1.field_limit_1 + _local1.field_limit_2) / 2;
var team_oblique = _local2.TeamStats.getOblique(_local1.team_index);
_local1.hair_mc.gotoAndStop(team_oblique.hair_index);
_local1.skin_color = team_oblique.skin_color;
_local1.shirt_color = team_oblique.shirt_color;
_local1.pants_color = team_oblique.pants_color;
_local1.shadow_mc._x = _local1._x;
}
function Update() {
var _local1 = this;
var _local2 = _root;
if (_local1.hotspot.hitTest(_local2.ball_mc._x, _local2.ball_mc._y, true)) {
var _local3 = {x:_local1.hotspot._x, y:_local1.hotspot._y};
_local1.localToGlobal(_local3);
var hotspot_gx = _local3.x;
var hotspot_gy = _local3.y;
var g_dx = (_local2.ball_mc._x - hotspot_gx);
var g_dy = (_local2.ball_mc._y - hotspot_gy);
var ball_dist = Math.sqrt((g_dx * g_dx) + (g_dy * g_dy));
var min_ball_dist = ((_local2.ball_mc._width + _local1.hotspot._width) / 2);
var hit_angle = Math.atan2(g_dy, g_dx);
_local2.ball_mc.PlayerHit(_local1._x, _local1._y, _local1.dx, _local1.dy, hotspot_gx + (Math.cos(hit_angle) * min_ball_dist), hotspot_gy + (Math.sin(hit_angle) * min_ball_dist), _local1.left_player);
}
_local1.dx = _local1.speed * (Key.isDown(_local1.key_left) - Key.isDown(_local1.key_right));
if (_local1.dx == 0) {
_local1.state = "idle";
} else if (_local1.dx > 0) {
_local1.state = (_local1.left_player ? "run_backward" : "run_forward");
} else {
_local1.state = (_local1.left_player ? "run_forward" : "run_backward");
}
if (!_local1.jump) {
if (Key.isDown(_local1.key_jump)) {
_local1.dy = _local1.player_jump_height;
_local1.jump = true;
_local1.fall = false;
}
} else if (!_local1.fall) {
_local1.dy = _local1.dy * _local2.Settings.gravity;
if (_local1.dy < 1) {
_local1.dy = -1;
_local1.fall = true;
}
} else {
_local1.dy = _local1.dy / _local2.Settings.gravity;
if ((_local1._y - _local1.dy) >= _local2.Settings.floor_y) {
_local1.jump = false;
_local1.fall = false;
_local1.state = "idle";
_local1.dy = 0;
_local1._y = _local2.Settings.floor_y;
}
}
_local1.state = ((_local1.dy < 0) ? "fall" : (_local1.state));
_local1.state = ((_local1.dy > 0) ? "jump" : (_local1.state));
_local1.gotoAndStop(_local1.state);
_local1._y = _local1._y - _local1.dy;
_local1._x = _local1._x - _local1.dx;
if (_local1._x > _local1.field_limit_2) {
_local1._x = _local1.field_limit_2;
}
if (_local1._x < _local1.field_limit_1) {
_local1._x = _local1.field_limit_1;
}
_local1.shadow_mc._x = _local1._x;
_local1.shadow_mc._xscale = (_local1.shadow_mc._yscale = (_local1._y / 2) - 90);
}
var jump = false;
var fall = false;
}
Symbol 676 MovieClip [__Packages.MCButton] Frame 0
class MCButton extends MovieClip
{
function MCButton () {
super();
Init();
}
function Init() {
var _local1 = this;
_local1.label_str = _root[_local1.label_var];
_local1.ColorObject = new Color(_local1);
if (_local1._name.substr(0, 8) != "flashing") {
_local1.onRollOver = _local1.MouseOver;
_local1.onRollOut = (_local1.onDragOut = _local1.MouseOut);
} else {
_local1.onRollOver = function () {
};
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.color_t = Math.abs(Math.sin(_local1.sinus) * 128) + 127;
_local1.sinus = _local1.sinus + 0.1;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
};
}
}
function MouseOver() {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.color_t < 255) {
_local1.color_t = _local1.color_t + 30;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
} else {
delete _local1.onEnterFrame;
}
};
}
function MouseOut() {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.color_t > 0) {
_local1.color_t = _local1.color_t - 30;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
} else {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
delete _local1.onEnterFrame;
}
};
}
var color_t = 0;
var sinus = 0;
}
Symbol 677 MovieClip [__Packages.DefinedKey] Frame 0
class DefinedKey extends MovieClip
{
function DefinedKey () {
super();
Init();
}
function Init() {
var _local1 = this;
var _local3 = _root;
_local1.ColorObject = new Color(_local1);
_local1.onRollOver = _local1.MouseOver;
_local1.onRollOut = (_local1.onDragOut = _local1.MouseOut);
_local1.key_label = _global.ControlsManager.GetKeyLabel(_local1.key_index);
_local1.onPress = function () {
if (!DefinedKey.key_waiting) {
_root.SFX_manager.playSFX("button");
DefinedKey.key_pressed = this;
DefinedKey.key_waiting = true;
this.key_label = _root.press_key_str;
}
};
keyListener.onKeyDown = function () {
if (DefinedKey.key_waiting) {
_root.SFX_manager.playSFX("button");
var _local1 = _global.ControlsManager.SetKey(DefinedKey.key_pressed.key_index, Key.getCode());
if (_local1 != "defined") {
DefinedKey.key_pressed.key_label = _local1;
DefinedKey.key_waiting = false;
}
}
};
Key.addListener(keyListener);
}
function MouseOver() {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.color_t < 255) {
_local1.color_t = _local1.color_t + 30;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
} else {
delete _local1.onEnterFrame;
}
};
}
function MouseOut() {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.color_t > 0) {
_local1.color_t = _local1.color_t - 30;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
} else {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
delete _local1.onEnterFrame;
}
};
}
static var key_waiting = false;
static var keyListener = {};
var color_t = 0;
}
Symbol 678 MovieClip [__Packages.MatchGraph] Frame 0
class MatchGraph extends MovieClip
{
function MatchGraph () {
super();
showGraph();
}
function showGraph() {
var _local1 = this;
_local1.current_round = _root.TeamStats.current_round;
_local1.current_match = _root.TeamStats.current_match;
switch (_local1.current_round) {
case 0 :
_root.current_round_str = _root.round_16_str;
break;
case 1 :
_root.current_round_str = _root.quarter_final_str;
break;
case 2 :
_root.current_round_str = _root.semi_final_str;
break;
case 3 :
_root.current_round_str = _root.final_str;
}
var l = 0;
while (l < 8) {
var match_array = _root.teams_pair_0;
var team_index_1 = match_array[l][0].team_index;
var flag_label_1 = _root.TeamStats.teams_info[team_index_1].label;
var team_index_2 = match_array[l][1].team_index;
var flag_label_2 = _root.TeamStats.teams_info[team_index_2].label;
_local1["country_" + (l * 2)] = flag_label_1;
_local1["country_" + Number((l * 2) + 1)] = flag_label_2;
l++;
}
var r = 0;
while (r < 5) {
var match_array = _root["teams_pair_" + r];
var _local2 = 0;
while (_local2 < match_array.length) {
var team_index_1 = match_array[_local2][0].team_index;
var flag_label_1 = _root.TeamStats.teams_info[team_index_1].label;
var flag_mc_1 = _local1[(("flag_" + r) + "_") + (_local2 * 2)];
flag_mc_1.gotoAndStop(flag_label_1);
var team_index_2 = match_array[_local2][1].team_index;
var flag_label_2 = _root.TeamStats.teams_info[team_index_2].label;
var _local3 = _local1[(("flag_" + r) + "_") + ((_local2 * 2) + 1)];
_local3.gotoAndStop(flag_label_2);
if ((r == _local1.current_round) && (_local2 == _local1.current_match)) {
flag_mc_1.sinus = (_local3.sinus = 0);
flag_mc_1.ColorObject = new Color(flag_mc_1);
_local3.ColorObject = new Color(_local3);
flag_mc_1.onEnterFrame = (_local3.onEnterFrame = function () {
var _local1 = this;
_local1.color_t = Math.abs(Math.sin(_local1.sinus) * 128) + 127;
_local1.sinus = _local1.sinus + 0.1;
_local1.color_transform = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local1.color_transform);
});
}
_local2++;
}
r++;
}
var r = 1;
while (r < (_local1.current_round + 2)) {
var match_array = _root["teams_pair_" + (r - 1)];
var _local2 = 0;
while (_local2 < match_array.length) {
if (_local1[(("flag_" + r) + "_") + _local2]._currentframe != 1) {
_local1[(("result_" + r) + "_") + _local2] = (match_array[_local2][0].head_for + ":") + match_array[_local2][0].head_against;
}
_local2++;
}
r++;
}
}
}
Symbol 679 MovieClip [__Packages.SelectTeamCell] Frame 0
class SelectTeamCell extends MovieClip
{
function SelectTeamCell () {
super();
Init();
}
function Init() {
var _local1 = this;
if (_local1.group_index == 0) {
_local1.team_selected = 0;
_root.player_team_index = 0;
}
_local1.group_name = _root[("group_" + String.fromCharCode(97 + _local1.group_index)) + "_str"];
_local1.player_label = (_root.player_str + " ") + (_local1.group_index + 1);
var _local2 = 0;
while (_local2 < 4) {
var _local3 = _local1["flag_" + _local2];
var team_info = _root.TeamStats.teams_info[(_local1.group_index * 4) + _local2];
_local3.label = (_local1["label_" + _local2] = team_info.label);
_local3.team_index = (_local1.group_index * 4) + _local2;
_local3.flag_index = _local2;
_local3.onPress = function () {
var _local1 = this;
var _local2 = _root;
_local2.team_preview_mc.showPreview(_local1.team_index);
_local2.player_team_index = (_local1._parent.group_index * 4) + _local1.flag_index;
_local2.TeamStats.group_sel_index = _local1._parent.group_index;
_local1._parent.team_selected = _local1.flag_index;
_local1._parent.showFlags();
};
_local2++;
}
_local1.showFlags();
}
function showFlags() {
var _local1 = this;
var j = 0;
while (j < 8) {
var _local3 = _root["selection_group_" + j];
if (_root.TeamStats.group_sel_index == _local3.group_index) {
var _local2 = 0;
while (_local2 < 4) {
var flag_mc = _local3["flag_" + _local2];
var color_object = new Color(flag_mc);
if (_local2 != _local3.team_selected) {
delete flag_mc.onEnterFrame;
var color_transform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
color_object.setTransform(color_transform);
} else {
flag_mc.sinus = 0;
flag_mc.ColorObject = new Color(flag_mc);
flag_mc.onEnterFrame = function () {
var _local1 = this;
_local1.color_t = Math.abs(Math.sin(_local1.sinus) * 128) + 127;
_local1.sinus = _local1.sinus + 0.1;
_local1.color_transform = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local1.color_transform);
};
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < 4) {
var flag_mc = _local3["flag_" + _local2];
delete flag_mc.onEnterFrame;
var color_object = new Color(flag_mc);
var color_transform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
color_object.setTransform(color_transform);
_local2++;
}
}
j++;
}
}
function Disable() {
var _local3 = this;
_local3.disabled = true;
var _local1 = 0;
while (_local1 < 4) {
var _local2 = _local3["flag_" + _local1];
delete _local2.onPress;
delete _local2.onRollOver;
_local1++;
}
_local3.tri_btn._visible = false;
var color_object = new Color(_local3);
var color_transform = {ra:70, rb:0, ga:70, gb:0, ba:70, bb:0, aa:100, ab:0};
color_object.setTransform(color_transform);
}
var disabled = false;
}
Symbol 680 MovieClip [__Packages.TeamPreview] Frame 0
class TeamPreview extends MovieClip
{
function TeamPreview () {
super();
Init();
}
function Init() {
showPreview(0);
}
function showPreview(team_index) {
var _local2 = this;
var _local3 = _root;
var _local1 = _local3.TeamStats.teams_info[team_index];
_local2.country = _local1.country;
_local2.hair_mc.gotoAndStop(_local1.hair_type);
var skin_color_obj = new Color(_local2.skin_mc);
skin_color_obj.setRGB(_local3.TeamStats.getColor(_local1.skin_color));
var shirt_color_obj = new Color(_local2.shirt_mc);
shirt_color_obj.setRGB(_local3.TeamStats.getColor(_local1.shirt_color));
var pants_color_obj = new Color(_local2.pants_mc);
pants_color_obj.setRGB(_local3.TeamStats.getColor(_local1.pants_color));
_local2.speed_bar.gotoAndStop(Math.floor((_local1.speed / 10) * 15));
_local2.jump_bar.gotoAndStop(Math.floor((_local1.jump / 25) * 15));
_local2.skill_bar.gotoAndStop(Math.floor((_local1.skill / 10) * 15));
}
}
Symbol 681 MovieClip [__Packages.Ball] Frame 0
class Ball extends MovieClip
{
var fallen;
function Ball () {
var _local1 = this;
var _local2 = _root;
super();
_local1.ball_hits = -1;
_local1.guide = _local2.ball_guide;
_local1.guide._visible = false;
_local1.shadow_mc = _local2.ball_shadow;
_local1.shadow_mc._visible = true;
_local1._y = 260;
_local1.dx = (Math.random() * 2) + 3;
_local1.dy = ((-Math.random()) * 2) - 18;
if (_local2.Settings.left_has_ball) {
_local1._x = 0;
} else {
_local1._x = 650;
_local1.dx = -_local1.dx;
}
_local1.radius = _local1._height / 2;
_local1.fallen = false;
}
function Update() {
var _local1 = this;
var _local2 = _root;
_local1.dy = _local1.dy + _local1.gravity;
if (((_local1._y + _local1.dy) + _local1.radius) >= _local2.Settings.floor_y) {
if (!_local1.fallen) {
if (_local1._x < 325) {
_local1.Fall(true);
} else {
_local2.player_mc_2.humanGoal(_local1._x);
_local1.Fall(false);
}
}
_local1.dy = (-_local1.dy) * _local1.elasticity;
_local1._y = (_local2.Settings.floor_y - _local1.radius) - _local1.dy;
if (Math.abs(_local1.dy) < 0.4) {
_local1.shadow_mc._visible = false;
if (_local2.TeamStats.current_time == 3) {
_local2.game_paused = true;
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"match_result"});
} else {
_local2.TeamStats.attachBall();
}
}
}
if (_local2.volley_hotspot.hitTest(_local1._x + _local1.dx, _local1._y, true)) {
if (_local1.dx < 0) {
_local2.volley_mc.gotoAndPlay("right_kick");
} else {
_local2.volley_mc.gotoAndPlay("left_kick");
}
_local1.dx = -_local1.dx;
_local1._x = _local1._x + _local1.dx;
}
if (_local2.volley_hotspot.hitTest(_local1._x, (_local1._y + _local1.dy) + _local1.radius, true)) {
_local2.volley_mc.gotoAndPlay("top_kick");
_local1.dy = (-_local1.dy) * _local1.elasticity;
_local1._y = (_local2.volley_hotspot.getBounds(_local2).yMin - _local1.radius) - _local1.dy;
}
if ((_local1._x + _local1.dx) <= _local1.radius) {
_local1._x = _local1.radius;
_local1.dx = Math.abs(_local1.dx);
} else if ((_local1._x + _local1.dx) >= (650 - _local1.radius)) {
_local1._x = 650 - _local1.radius;
_local1.dx = -Math.abs(_local1.dx);
}
var _local3 = Math.sqrt((_local1.dx * _local1.dx) + (_local1.dy * _local1.dy));
if (_local3 > (_local1.radius * 1.5)) {
var dist_cor = ((_local1.radius * 1.5) / _local3);
_local1.dx = _local1.dx * dist_cor;
_local1.dy = _local1.dy * dist_cor;
}
_local1._x = _local1._x + _local1.dx;
_local1._y = _local1._y + _local1.dy;
_local1._rotation = _local1._rotation + _local1.dx;
_local1.dx = _local1.dx * 0.995;
var temp_dy = ((_local1.dx > 0) ? (Math.abs(_local1.dy)) : (-Math.abs(_local1.dy)));
_local1.guide._x = (_local1._x + (5 * _local1.dx)) + temp_dy;
if (_local1.guide._x > 625) {
_local1.guide._x = 625 - (_local1.guide._x - 625);
}
_local1.shadow_mc._x = _local1._x;
var shadow_scale = ((_local1._y > 0) ? ((_local1._y / 8) + 30) : 30);
_local1.shadow_mc._xscale = (_local1.shadow_mc._yscale = shadow_scale);
}
function PlayerHit(player_x, player_y, player_dx, player_dy, cor_x, cor_y, left_player) {
var _local1 = this;
var _local2 = player_dy;
var _local3 = left_player;
if (!_local1.fallen) {
_root.SFX_manager.playSFX("ball");
_local1._x = cor_x;
_local1._y = cor_y;
_local2 = ((_local2 < 0) ? 0 : (_local2));
_local1.dx = ((_local1._x - player_x) * 0.4) - (player_dx * 0.3);
_local1.dy = ((-Math.abs(_local1.dy)) * 0.9) - (_local2 * 0.2);
}
_local1.ball_hits = ((_local3 != _local1.left_last_hit) ? 1 : (_local1.ball_hits + 1));
_local1.left_last_hit = _local3;
if ((_local1.ball_hits == _root.Settings.hit_to_foul) && (!_local1.fallen)) {
_root.attachMovie("game_message", "game_message", 5, {label:"foul"});
_local1.Fall(_local3);
}
}
function Fall(left_player) {
var _local1 = _root;
fallen = true;
_local1.SFX_manager.playSFX("stadium_cheers");
if (left_player) {
_local1.Settings.left_has_ball = true;
_local1.score_right = _local1.score_right + 1;
} else {
_local1.Settings.left_has_ball = false;
_local1.score_left = _local1.score_left + 1;
}
}
var elasticity = 0.5;
var gravity = 1;
}
Symbol 682 MovieClip [__Packages.LanguageData] Frame 0
class LanguageData
{
var selected_flag, lang_files;
function LanguageData () {
Init();
}
function Init() {
var _local2 = this;
_local2.lang_files = [{language:"English", flag:"ENG", file:"english.xml"}, {language:"Spanish", flag:"ESP", file:"spanish.xml"}, {language:"German", flag:"GER", file:"german.xml"}, {language:"French", flag:"FRA", file:"french.xml"}, {language:"Portuguese", flag:"POR", file:"portuguese.xml"}, {language:"Dutch", flag:"NED", file:"dutch.xml"}, {language:"Italian", flag:"ITA", file:"italian.xml"}, {language:"Japanese", flag:"JPN", file:"japanese.xml"}, {language:"Korean", flag:"KOR", file:"korean.xml"}, {language:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439", flag:"RUS", file:"russian.xml"}, {language:"Chinese", flag:"CHN", file:"chinese.xml"}];
var _local1 = 0;
while (_local1 < _local2.lang_files.length) {
_local2.lang_files[_local1].file = _local2.lang_files_folder + _local2.lang_files[_local1].file;
_local1++;
}
if (_level0.lang == undefined) {
_local2.showLanguages();
} else {
_local2.loadLangFile(_level0.lang);
}
}
function loadLangFile(file_path) {
var _local2 = _root;
_level0.lang = undefined;
if (file_path != "english") {
var this_obj = this;
var xml_object = new XML();
xml_object.ignoreWhite = true;
xml_object.onLoad = function (success) {
var _local2 = _root;
if (success) {
var parsed_array = [];
var _local1 = this.firstChild.childNodes;
for (var _local3 in _local1) {
_local2[_local1[_local3].nodeName + "_str"] = _local1[_local3].firstChild.nodeValue;
}
this_obj.loadLangSuccess();
} else {
this_obj.loadingError();
}
};
xml_object.load(file_path);
} else {
setDefaultLanguage();
loadLangSuccess();
}
}
function showLanguages() {
var _local2 = this;
var total_languages = _local2.lang_files.length;
var dy = 25;
var y_init = (Math.floor((310 - (total_languages * dy)) / 2) + 95);
var this_object = _local2;
var _local1 = 0;
while (_local1 < total_languages) {
var init_obj = {_y:y_init + (_local1 * dy), _x:325};
var _local3 = _root.select_lang_mc.attachMovie("select_lang_mc", "lang_mc_" + _local1, _local1 + 10, init_obj);
_local3.flag = _local2.lang_files[_local1].flag;
_local3.language = _local2.lang_files[_local1].language;
_local3.language_index = _local1;
_local3.btn.onPress = function () {
var _local1 = this;
this_object.selected_flag = _local1._parent.flag;
for (var _local2 in _local1._parent._parent) {
delete _local1._parent._parent[_local2].lang_btn.onPress;
}
this_object.loadLangData(_local1._parent.language_index);
};
_local1++;
}
}
function loadingError() {
_root.select_lang_mc._visible = false;
_root.attachMovie("xml_loader_window", "xml_loader_window", 10, {_x:325, _y:200, flag:selected_flag});
}
function loadLangData(lang_index) {
var _local2 = _root;
if (lang_index != 0) {
var this_obj = this;
_local2.xml_object = new XML();
_local2.xml_object.ignoreWhite = true;
_local2.xml_object.onLoad = function (success) {
var _local2 = _root;
if (success) {
var parsed_array = [];
var _local1 = this.firstChild.childNodes;
for (var _local3 in _local1) {
_local2[_local1[_local3].nodeName + "_str"] = _local1[_local3].firstChild.nodeValue;
}
this_obj.loadLangSuccess();
} else {
this_obj.loadingError();
}
};
_local2.xml_object.load(lang_files[lang_index].file);
_local2.attachMovie("preloader", "preloader", 10);
} else {
setDefaultLanguage();
loadLangSuccess();
}
}
function loadLangSuccess() {
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"classes_init"});
}
function setDefaultLanguage() {
var _local1 = _root;
_local1.language_select_str = "Choose Your Language";
_local1.quit_confirm_str = "Are you sure you want to quit?";
_local1.cup_lost_str = "You were knocked out of the competition.";
_local1.final_score_str = "Your final score is:";
_local1.congratulations_str = "Congratulations!";
_local1.official_sponsor_str = "Official Sponsor of World Cup Headers 2006";
_local1.foul_str = "Foul";
_local1.match_results_str = "Match Results";
_local1.int_friendly_results_str = "International Friendly Match Results";
_local1.final_str = "Final";
_local1.semi_final_str = "Semi-Final";
_local1.quarter_final_str = "Quarter-Final";
_local1.round_16_str = "Round of 16";
_local1.knockout_round_str = "Knockout Round";
_local1.full_time_str = "Full Time";
_local1.half_time_str = "Half Time";
_local1.get_ready_str = "Get Ready";
_local1.speed_str = "Speed";
_local1.jump_str = "Jump";
_local1.right_str = "Right";
_local1.left_str = "Left";
_local1.keys_tip_str = "To control your player use the keys";
_local1.press_key_str = "Press key";
_local1.define_control_keys_str = "Define Control Keys";
_local1.right_player_str = "Right Player";
_local1.left_player_str = "Left Player";
_local1.team_str = "Team";
_local1.cpu_str = "Computer";
_local1.human_str = "Human";
_local1.player_str = "Player";
_local1.group_h_str = "Group H";
_local1.group_g_str = "Group G";
_local1.group_f_str = "Group F";
_local1.group_e_str = "Group E";
_local1.group_d_str = "Group D";
_local1.group_c_str = "Group C";
_local1.group_b_str = "Group B";
_local1.group_a_str = "Group A";
_local1.select_opponent_team_str = "Select Opponent Team";
_local1.select_your_team_str = "Select Your Team";
_local1.no_str = "No";
_local1.yes_str = "Yes";
_local1.select_team_str = "Select Team";
_local1.start_match_str = "Start Match";
_local1.change_language_str = "Change Language";
_local1.sound_off_str = "Switch Sound OFF";
_local1.sound_on_str = "Switch Sound ON";
_local1.low_quality_str = "Graphics Quality: LOW";
_local1.medium_quality_str = "Graphics Quality: MEDIUM";
_local1.high_quality_str = "Graphics Quality: HIGH";
_local1.pause_menu_str = "Pause/Menu";
_local1.international_friendly_str = "International Friendly";
_local1.world_cup_str = "World Cup";
_local1.multi_player_str = "Start Multiplayer";
_local1.single_player_str = "Start Single Player";
_local1.submit_score_str = "Submit Score";
_local1.quit_game_str = "Quit Game";
_local1.resume_game_str = "Resume Game";
_local1.get_game_str = "Get Game For Your Site";
_local1.play_more_games_str = "Play More Games";
_local1.view_high_scores_str = "View High Scores";
_local1.main_menu_str = "Main Menu";
_local1.continue_str = "Continue";
_local1.options_str = "Options";
_local1.help_str = "Help";
_local1.start_game_str = "Start game";
_local1.saudi_arabia_str = "Saudi Arabia";
_local1.tunisia_str = "Tunisia";
_local1.ukraine_str = "Ukraine";
_local1.spain_str = "Spain";
_local1.togo_str = "Togo";
_local1.france_str = "France";
_local1.korea_str = "Korea";
_local1.switzerland_str = "Switzerland";
_local1.japan_str = "Japan";
_local1.croatia_str = "Croatia";
_local1.australia_str = "Australia";
_local1.brazil_str = "Brazil";
_local1.usa_str = "USA";
_local1.ghana_str = "Ghana";
_local1.czech_republic_str = "Czech Republic";
_local1.italy_str = "Italy";
_local1.iran_str = "Iran";
_local1.angola_str = "Angola";
_local1.mexico_str = "Mexico";
_local1.portugal_str = "Portugal";
_local1.serbia_montenegro_str = "Serbia & Montenegro";
_local1.cote_d_ivoire_str = "Cote d'Ivoire";
_local1.netherlands_str = "Netherlands";
_local1.argentina_str = "Argentina";
_local1.paraguay_str = "Paraguay";
_local1.trinidad_str = "Trinidad";
_local1.sweden_str = "Sweden";
_local1.england_str = "England";
_local1.costa_rica_str = "Costa Rica";
_local1.poland_str = "Poland";
_local1.germany_str = "Germany";
_local1.ecuador_str = "Ecuador";
}
var lang_files_folder = "";
}
Symbol 683 MovieClip [__Packages.ControlsManager] Frame 0
class ControlsManager
{
static var key_codes, cont_keys;
function ControlsManager () {
}
function Init() {
key_codes = [[65, "A"], [66, "B"], [67, "C"], [68, "D"], [69, "E"], [70, "F"], [71, "G"], [72, "H"], [73, "I"], [74, "J"], [75, "K"], [76, "L"], [77, "M"], [78, "N"], [79, "O"], [80, "P"], [81, "Q"], [82, "R"], [83, "S"], [84, "T"], [85, "U"], [86, "V"], [87, "W"], [88, "X"], [89, "Y"], [90, "Z"], [48, "0"], [49, "1"], [50, "2"], [51, "3"], [52, "4"], [53, "5"], [54, "6"], [55, "7"], [56, "8"], [57, "9"], [96, "Numpad 0"], [97, "Numpad 1"], [98, "Numpad 2"], [99, "Numpad 3"], [100, "Numpad 4"], [101, "Numpad 5"], [102, "Numpad 6"], [103, "Numpad 7"], [104, "Numpad 8"], [105, "Numpad 9"], [106, "Numpad *"], [107, "Numpad +"], [109, "Numpad -"], [110, "Numpad ."], [111, "Numpad /"], [112, "F1"], [113, "F2"], [114, "F3"], [115, "F4"], [116, "F5"], [117, "F6"], [118, "F7"], [119, "F8"], [120, "F9"], [122, "F11"], [123, "F12"], [124, "F13"], [125, "F14"], [126, "F15"], [8, "Backspace"], [9, "Tab"], [13, "Enter"], [16, "Shift"], [17, "Control"], [20, "Caps Lock"], [27, "Esc"], [32, "Space"], [33, "Page Up"], [34, "Page Down"], [35, "End"], [36, "Home"], [37, "Arrow Left"], [38, "Arrow Up"], [39, "Arrow Right"], [40, "Arrow Down"], [45, "Insert"], [46, "Delete"], [144, "Num Lock"], [145, "Scr Lock"], [19, "Pause/Break"], [186, ";"], [187, "="], [189, "-"], [191, "/"], [192, "~"], [219, "["], [220, "\\"], [221, "]"], [222, "\""], [188, ","], [190, "."], [191, "/"]];
cont_keys = _root.SO_manager.getControlKeys();
}
static function SetKey(key_index, set_key_code) {
var _local2 = set_key_code;
var old_key_code = cont_keys[key_index];
var _local3 = cont_keys.length;
var _local1 = 0;
while (_local1 < _local3) {
if ((cont_keys[_local1] == _local2) && (old_key_code != _local2)) {
return("defined");
}
_local1++;
}
cont_keys[key_index] = _local2;
_root.SO_manager.setControlKeys(cont_keys);
return(GetKeyLabel(key_index));
}
static function GetKeyLabel(key_index) {
var _local3 = cont_keys[key_index];
var _local2 = key_codes.length;
var _local1 = 0;
while (_local1 < _local2) {
if (key_codes[_local1][0] == _local3) {
return(key_codes[_local1][1]);
}
_local1++;
}
return(undefined);
}
}
Symbol 684 MovieClip [__Packages.SOManager] Frame 0
class SOManager
{
var game_so;
function SOManager () {
var _local1 = this;
_local1.game_so = SharedObject.getLocal("world_cup_headers_so");
if (_local1.game_so.data.played == undefined) {
_local1.game_so.data.played = true;
_local1.game_so.data.graphics_quality = "HIGH";
_local1.game_so.data.sound_on = true;
_local1.game_so.data.control_key_0 = 65;
_local1.game_so.data.control_key_1 = 68;
_local1.game_so.data.control_key_2 = 87;
_local1.game_so.data.control_key_3 = 37;
_local1.game_so.data.control_key_4 = 39;
_local1.game_so.data.control_key_5 = 38;
_local1.game_so.data.sound_on = true;
_local1.game_so.flush();
}
_quality = _local1.game_so.data.graphics_quality;
if (_local1.game_so.data.sound_on) {
_root.whistle_sfx.setVolume(100);
} else {
_root.whistle_sfx.setVolume(0);
}
}
function getControlKeys() {
var _local1 = this;
var _local2 = [_local1.game_so.data.control_key_0, _local1.game_so.data.control_key_1, _local1.game_so.data.control_key_2, _local1.game_so.data.control_key_3, _local1.game_so.data.control_key_4, _local1.game_so.data.control_key_5];
return(_local2);
}
function setControlKeys(keys_array) {
var _local2 = this;
var _local3 = keys_array;
var _local1 = 0;
while (_local1 < 6) {
_local2.game_so.data["control_key_" + _local1] = _local3[_local1];
_local1++;
}
_local2.game_so.flush();
}
function setQualitySettings(graphics_quality) {
game_so.data.graphics_quality = graphics_quality;
game_so.flush();
}
function toggleSound() {
var _local1 = this;
var _local2 = _root;
_local1.game_so.data.sound_on = !_local1.game_so.data.sound_on;
if (_local1.game_so.data.sound_on) {
var _local3 = _local2.sound_off_str;
_local2.whistle_sfx.setVolume(100);
} else {
var _local3 = _local2.sound_on_str;
_local2.whistle_sfx.setVolume(0);
}
_local1.game_so.flush();
return(_local3);
}
}
Symbol 685 MovieClip [__Packages.SFXManager] Frame 0
class SFXManager
{
function SFXManager () {
Init();
}
function Init() {
var _local1 = _root;
_local1.ball_sfx = new Sound();
_local1.whistle_sfx = new Sound();
_local1.whistle_sfx.attachSound("whistle.wav");
_local1.stadium_cheers_sfx = new Sound();
_local1.button_sfx = new Sound();
_local1.button_sfx.attachSound("button_click.wav");
_local1.music_sfx = new Sound();
}
function playSFX(id) {
var _local1 = _root;
switch (id) {
case "splash_music" :
_local1.music_sfx.stop();
_local1.music_sfx.attachSound("brazi_splash");
_local1.music_sfx.start(0, 999999);
return;
case "screen_music" :
_local1.music_sfx.stop();
_local1.music_sfx.attachSound("brazil_bed");
_local1.music_sfx.start(0, 999999);
return;
case "stadium" :
_local1.music_sfx.stop();
_local1.music_sfx.attachSound("stadium_big.wav");
_local1.music_sfx.start(0, 999999);
return;
case "ball" :
_local1.ball_sfx.attachSound("ball_0" + Math.floor((Math.random() * 4) + 1));
_local1.ball_sfx.start(0, 1);
return;
case "button" :
_local1.button_sfx.start(0, 1);
return;
case "whistle" :
_local1.whistle_sfx.start(0, 1);
return;
case "stadium_cheers" :
if (Math.random() < 0.5) {
_local1.stadium_cheers_sfx.attachSound("stadium_cheers_01.wav");
} else {
_local1.stadium_cheers_sfx.attachSound("stadium_cheers_02.wav");
}
_local1.stadium_cheers_sfx.start(0, 1);
}
}
}
Symbol 686 MovieClip [__Packages.TeamStatistics] Frame 0
class TeamStatistics
{
var multi_cup_groups_selected, playing_teams, game_type, current_time;
function TeamStatistics () {
var _local1 = this;
var _local2 = _root;
_local1.current_match = 0;
_local1.current_round = 0;
_local1.group_sel_index = 0;
_local1.playing_teams = [];
_local1.teams_info = [];
_local1.human_player_index = 1;
_local1.teams_info.push({country:_local2.ecuador_str, label:"ECU", hair_type:6, skin_color:"tanned", shirt_color:"yellow", pants_color:"blue", jump:3, speed:3});
_local1.teams_info.push({country:_local2.poland_str, label:"POL", hair_type:2, skin_color:"fair", shirt_color:"white", pants_color:"red", jump:2.5, speed:2});
_local1.teams_info.push({country:_local2.costa_rica_str, label:"CRC", hair_type:1, skin_color:"dark", shirt_color:"red", pants_color:"blue", jump:1, speed:1});
_local1.teams_info.push({country:_local2.germany_str, label:"GER", hair_type:7, skin_color:"fair", shirt_color:"white", pants_color:"black", jump:4, speed:4.5});
_local1.teams_info.push({country:_local2.sweden_str, label:"SWE", hair_type:14, skin_color:"fair", shirt_color:"yellow", pants_color:"blue", jump:3, speed:3});
_local1.teams_info.push({country:_local2.trinidad_str, label:"TRI", hair_type:1, skin_color:"dark", shirt_color:"darkred", pants_color:"black", jump:2, speed:2});
_local1.teams_info.push({country:_local2.paraguay_str, label:"PAR", hair_type:11, skin_color:"tanned", shirt_color:"red", pants_color:"blue", jump:2.5, speed:2});
_local1.teams_info.push({country:_local2.england_str, label:"ENG", hair_type:5, skin_color:"fair", shirt_color:"white", pants_color:"darkblue", jump:4, speed:4});
_local1.teams_info.push({country:_local2.netherlands_str, label:"NED", hair_type:4, skin_color:"fair", shirt_color:"orange", pants_color:"white", jump:3.5, speed:3.5});
_local1.teams_info.push({country:_local2.cote_d_ivoire_str, label:"CIV", hair_type:3, skin_color:"dark", shirt_color:"orange", pants_color:"orange", jump:1, speed:1.5});
_local1.teams_info.push({country:_local2.serbia_montenegro_str, label:"SCG", hair_type:4, skin_color:"fair", shirt_color:"blue", pants_color:"white", jump:2.5, speed:2});
_local1.teams_info.push({country:_local2.argentina_str, label:"ARG", hair_type:6, skin_color:"fair", shirt_color:"cyan", pants_color:"black", jump:4.5, speed:4.5});
_local1.teams_info.push({country:_local2.mexico_str, label:"MEX", hair_type:1, skin_color:"tanned", shirt_color:"green", pants_color:"white", jump:3.5, speed:4});
_local1.teams_info.push({country:_local2.angola_str, label:"ANG", hair_type:12, skin_color:"dark", shirt_color:"red", pants_color:"black", jump:2, speed:2});
_local1.teams_info.push({country:_local2.iran_str, label:"IRN", hair_type:7, skin_color:"fair", shirt_color:"white", pants_color:"white", jump:2.5, speed:3});
_local1.teams_info.push({country:_local2.portugal_str, label:"POR", hair_type:9, skin_color:"tanned", shirt_color:"darkred", pants_color:"darkred", jump:4, speed:4});
_local1.teams_info.push({country:_local2.czech_republic_str, label:"CZE", hair_type:10, skin_color:"fair", shirt_color:"red", pants_color:"white", jump:1.5, speed:1.5});
_local1.teams_info.push({country:_local2.ghana_str, label:"GHA", hair_type:12, skin_color:"dark", shirt_color:"white", pants_color:"white", jump:3, speed:3});
_local1.teams_info.push({country:_local2.usa_str, label:"USA", hair_type:2, skin_color:"fair", shirt_color:"white", pants_color:"darkblue", jump:2, speed:2});
_local1.teams_info.push({country:_local2.italy_str, label:"ITA", hair_type:9, skin_color:"fair", shirt_color:"blue", pants_color:"white", jump:4, speed:4});
_local1.teams_info.push({country:_local2.australia_str, label:"AUS", hair_type:8, skin_color:"fair", shirt_color:"orange", pants_color:"green", jump:2.5, speed:3});
_local1.teams_info.push({country:_local2.croatia_str, label:"CRO", hair_type:8, skin_color:"fair", shirt_color:"red", pants_color:"white", jump:3, speed:3});
_local1.teams_info.push({country:_local2.japan_str, label:"JPN", hair_type:15, skin_color:"fair", shirt_color:"blue", pants_color:"white", jump:2.5, speed:2.5});
_local1.teams_info.push({country:_local2.brazil_str, label:"BRA", hair_type:16, skin_color:"tanned", shirt_color:"yellow", pants_color:"blue", jump:5, speed:5});
_local1.teams_info.push({country:_local2.switzerland_str, label:"SUI", hair_type:13, skin_color:"fair", shirt_color:"red", pants_color:"white", jump:3, speed:3});
_local1.teams_info.push({country:_local2.korea_str, label:"KOR", hair_type:8, skin_color:"fair", shirt_color:"red", pants_color:"white", jump:3, speed:2.5});
_local1.teams_info.push({country:_local2.togo_str, label:"TOG", hair_type:8, skin_color:"dark", shirt_color:"yellow", pants_color:"green", jump:2, speed:2});
_local1.teams_info.push({country:_local2.france_str, label:"FRA", hair_type:1, skin_color:"tanned", shirt_color:"blue", pants_color:"white", jump:4.5, speed:4});
_local1.teams_info.push({country:_local2.ukraine_str, label:"UKR", hair_type:10, skin_color:"fair", shirt_color:"yellow", pants_color:"yellow", jump:3.5, speed:3});
_local1.teams_info.push({country:_local2.tunisia_str, label:"TUN", hair_type:6, skin_color:"tanned", shirt_color:"white", pants_color:"white", jump:3, speed:2.5});
_local1.teams_info.push({country:_local2.saudi_arabia_str, label:"KSA", hair_type:1, skin_color:"tanned", shirt_color:"green", pants_color:"green", jump:2.5, speed:2});
_local1.teams_info.push({country:_local2.spain_str, label:"ESP", hair_type:9, skin_color:"tanned", shirt_color:"red", pants_color:"blue", jump:4, speed:4});
var _local3 = 0;
while (_local3 < _local1.teams_info.length) {
_local1.teams_info[_local3].jump = 10 + (_local1.teams_info[_local3].jump * 3);
_local1.teams_info[_local3].speed = 5 + (_local1.teams_info[_local3].speed * 1);
_local3++;
}
_local2.select_some_team_str = (_local2.player_str + " 1 ") + _local2.select_your_team_str;
if ((!_local2.multiplayer) && (!_local2.world_cup_game)) {
_local1.game_type = 0;
} else if ((!_local2.multiplayer) && (_local2.world_cup_game)) {
_local1.game_type = 1;
} else if (_local2.multiplayer && (!_local2.world_cup_game)) {
_local1.game_type = 2;
} else if (_local2.multiplayer && (_local2.world_cup_game)) {
_local1.game_type = 3;
_local1.multi_cup_groups_selected = [];
_local3 = 0;
while (_local3 < 8) {
_local1.multi_cup_groups_selected.push(_local3);
_local3++;
}
}
}
function getOblique(team_index) {
var _local1 = this;
var _local3 = team_index;
var _local2 = {hair_index:_local1.teams_info[_local3].hair_type};
_local2.skin_color = _local1.getColor(_local1.teams_info[_local3].skin_color);
_local2.shirt_color = _local1.getColor(_local1.teams_info[_local3].shirt_color);
_local2.pants_color = _local1.getColor(_local1.teams_info[_local3].pants_color);
return(_local2);
}
function getColor(color_name) {
switch (color_name) {
case "fair" :
return(16769476);
case "tanned" :
return(13408614);
case "dark" :
return(10040064);
case "yellow" :
return(16776960);
case "blue" :
return(26367);
case "white" :
return(16777215);
case "black" :
return(0);
case "red" :
return(16711680);
case "darkblue" :
return(13209);
case "darkred" :
return(13369344);
case "cyan" :
return(3394815);
case "orange" :
return(16750848);
case "green" :
return(39168);
}
}
function selectPlayer() {
var _local1 = this;
var _local2 = _root;
switch (_local1.game_type) {
case 0 :
case 2 :
if (_local1.playing_teams.length == 0) {
var cell_mc = _local2["selection_group_" + _local1.group_sel_index];
cell_mc.Disable();
_local1.team_left_match_index = _local2.player_team_index;
var temp_object = {player:1, team_index:_local2.player_team_index, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
_local1.nextGroup();
var cell_mc = _local2["selection_group_" + _local1.group_sel_index];
cell_mc.team_selected = 0;
_local2.player_team_index = _local1.group_sel_index * 4;
_local2.team_preview_mc.showPreview(_local2.player_team_index);
cell_mc.showFlags();
if (_local1.game_type != 0) {
_local2.select_some_team_str = (_local2.player_str + " 2 ") + _local2.select_your_team_str;
} else {
_local2.select_some_team_str = _local2.select_opponent_team_str;
}
} else {
var player_type = ((_local1.game_type == 0) ? 0 : 2);
_local1.team_right_match_index = _local2.player_team_index;
var temp_object = {player:player_type, team_index:_local2.player_team_index, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
_local2.teams_pair = _local1.playing_teams;
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"show_teams"});
}
return;
case 1 :
var temp_object = {player:1, team_index:_local2.player_team_index, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
var random_team_index = ((_local1.group_sel_index * 4) + Math.floor(Math.random() * 4));
do {
random_team_index = (_local1.group_sel_index * 4) + Math.floor(Math.random() * 4);
} while (random_team_index == _local2.player_team_index);
var temp_object = {player:0, team_index:random_team_index, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
var i = 0;
while (i < 8) {
if (i != _local1.group_sel_index) {
var _local3;
var second_random_team;
switch (Math.floor(Math.random() * 6)) {
case 0 :
_local3 = 0;
second_random_team = 1;
break;
case 1 :
_local3 = 0;
second_random_team = 2;
break;
case 2 :
_local3 = 0;
second_random_team = 3;
break;
case 3 :
_local3 = 1;
second_random_team = 2;
break;
case 4 :
_local3 = 1;
second_random_team = 3;
break;
case 5 :
_local3 = 2;
second_random_team = 3;
}
_local3 = (i * 4) + _local3;
second_random_team = (i * 4) + second_random_team;
var temp_object = {player:0, team_index:_local3, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
var temp_object = {player:0, team_index:second_random_team, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
}
i++;
}
_local2.teams_pair_0 = [];
_local2.teams_pair_1 = [];
_local2.teams_pair_1.push(new Array(), new Array(), new Array(), new Array());
_local2.teams_pair_2 = [];
_local2.teams_pair_2.push(new Array(), new Array());
_local2.teams_pair_3 = [];
_local2.teams_pair_3.push(new Array());
_local2.teams_pair_4 = [];
_local2.teams_pair_4.push(new Array());
var j = 0;
while (j < 8) {
var temp_ar = [_local1.playing_teams[j * 2], _local1.playing_teams[(j * 2) + 1]];
_local2.teams_pair_0.push(temp_ar);
j++;
}
_local1.single_score = 0;
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"show_match_table"});
return;
case 3 :
var cell_mc = _local2["selection_group_" + _local1.group_sel_index];
cell_mc.Disable();
var i = 0;
while (i < _local1.multi_cup_groups_selected.length) {
if (_local1.multi_cup_groups_selected[i] == _local1.group_sel_index) {
_local1.multi_cup_groups_selected.splice(i, 1);
break;
}
i++;
}
var temp_object = {player:_local1.human_player_index, team_index:_local2.player_team_index, head_for:0, head_against:0};
_local1.human_player_index = _local1.human_player_index + 1;
_local1.playing_teams.push(temp_object);
var random_team_index = ((_local1.group_sel_index * 4) + Math.floor(Math.random() * 4));
do {
random_team_index = (_local1.group_sel_index * 4) + Math.floor(Math.random() * 4);
} while (random_team_index == _local2.player_team_index);
var temp_object = {player:0, team_index:random_team_index, head_for:0, head_against:0};
_local1.playing_teams.push(temp_object);
_local1.nextGroup();
var cell_mc = _local2["selection_group_" + _local1.group_sel_index];
cell_mc.team_selected = 0;
_local2.player_team_index = _local1.group_sel_index * 4;
_local2.team_preview_mc.showPreview(_local2.player_team_index);
cell_mc.showFlags();
_local2.select_some_team_str = (((_local2.player_str + " ") + _local1.human_player_index) + " ") + _local2.select_your_team_str;
if (_local1.playing_teams.length == 4) {
_local2.start_match_button._visible = true;
}
if (_local1.playing_teams.length != 16) {
break;
}
_local2.teams_pair_0 = [];
_local2.teams_pair_1 = [];
_local2.teams_pair_1.push(new Array(), new Array(), new Array(), new Array());
_local2.teams_pair_2 = [];
_local2.teams_pair_2.push(new Array(), new Array());
_local2.teams_pair_3 = [];
_local2.teams_pair_3.push(new Array());
_local2.teams_pair_4 = [];
_local2.teams_pair_4.push(new Array());
var j = 0;
while (j < 8) {
var temp_ar = [_local1.playing_teams[j * 2], _local1.playing_teams[(j * 2) + 1]];
_local2.teams_pair_0.push(temp_ar);
j++;
}
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"show_match_table"});
}
}
function startMultiCup() {
var _local1 = _root;
var i = 0;
while (i < multi_cup_groups_selected.length) {
var _local3;
var second_random_team;
switch (Math.floor(Math.random() * 6)) {
case 0 :
_local3 = 0;
second_random_team = 1;
break;
case 1 :
_local3 = 0;
second_random_team = 2;
break;
case 2 :
_local3 = 0;
second_random_team = 3;
break;
case 3 :
_local3 = 1;
second_random_team = 2;
break;
case 4 :
_local3 = 1;
second_random_team = 3;
break;
case 5 :
_local3 = 2;
second_random_team = 3;
}
_local3 = (multi_cup_groups_selected[i] * 4) + _local3;
second_random_team = (multi_cup_groups_selected[i] * 4) + second_random_team;
var temp_object = {player:0, team_index:_local3, head_for:0, head_against:0};
playing_teams.push(temp_object);
var temp_object = {player:0, team_index:second_random_team, head_for:0, head_against:0};
playing_teams.push(temp_object);
_local1.teams_pair_0 = [];
_local1.teams_pair_1 = [];
_local1.teams_pair_1.push(new Array(), new Array(), new Array(), new Array());
_local1.teams_pair_2 = [];
_local1.teams_pair_2.push(new Array(), new Array());
_local1.teams_pair_3 = [];
_local1.teams_pair_3.push(new Array());
_local1.teams_pair_4 = [];
_local1.teams_pair_4.push(new Array());
var _local2 = 0;
while (_local2 < 8) {
var temp_ar = [playing_teams[_local2 * 2], playing_teams[(_local2 * 2) + 1]];
_local1.teams_pair_0.push(temp_ar);
_local2++;
}
_local1.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"show_match_table"});
i++;
}
}
function showTeamsTypes() {
var _local1 = _root;
switch (game_type) {
case 0 :
_local1.player_left = _local1.player_str + " 1";
_local1.player_right = _local1.cpu_str;
return;
case 2 :
_local1.player_left = _local1.player_str + " 1";
_local1.player_right = _local1.player_str + " 2";
return;
default :
_local1.player_left = ((_local1.teams_pair[0].player > 0) ? ((_local1.player_str + " ") + _local1.teams_pair[0].player) : (_local1.cpu_str));
_local1.player_right = ((_local1.teams_pair[1].player > 0) ? ((_local1.player_str + " ") + _local1.teams_pair[1].player) : (_local1.cpu_str));
}
}
function nextGroup() {
var _local3 = this;
var _local1 = 0;
while (_local1 < 8) {
var _local2 = _root["selection_group_" + _local1];
if (!_local2.disabled) {
_local3.group_sel_index = _local1;
return;
}
_local1++;
}
}
function startMatch() {
var _local1 = _root;
var _local2 = this;
_local1.current_timer_str = "1:30";
_local1.Settings = new GameSettings();
_local2.showTeamsTypes();
_local1.player_mc.removeMovieClip();
_local1.player_mc_2.removeMovieClip();
_local1.ball_mc.removeMovieClip();
_local1.attachMovie("player_mc", "player_mc", 3, {left_player:true, _y:_local1.Settings.floor_y, team_index:_local2.team_left_match_index});
if (_local1.teams_pair[1].player > 0) {
_local1.attachMovie("player_mc", "player_mc_2", 1, {left_player:false, _y:_local1.Settings.floor_y, team_index:_local2.team_right_match_index});
} else {
_local1.attachMovie("cpubot_mc", "player_mc_2", 1, {_y:_local1.Settings.floor_y, team_index:_local2.team_right_match_index});
}
if (_local2.current_time != 3) {
_local1.attachMovie("game_message", "game_message", 6, {label:"get_ready"});
} else {
_local1.attachMovie("game_message", "game_message", 6, {label:"knockout"});
}
_local1.onEnterFrame = function () {
var _local1 = _root;
if (!_local1.game_paused) {
_local1.Timer.Update();
_local1.player_mc.Update();
_local1.player_mc_2.Update();
_local1.ball_mc.Update();
}
};
}
function attachBall() {
_root.ball_mc.removeMovieClip();
_root.attachMovie("ball_mc", "ball_mc", 4);
}
function endTime() {
var _local1 = _root;
_local1.game_paused = true;
_local1.player_mc.body_mc.stop();
_local1.player_mc_2.body_mc.stop();
if (current_time == 1) {
current_time = 2;
_local1.attachMovie("game_message", "game_message", 5, {label:"half_time"});
} else {
_local1.attachMovie("game_message", "game_message", 5, {label:"full_time"});
}
}
function tournamentTeamsSelect() {
var _local1 = _root;
var _local2 = this;
_local1.teams_pair = [];
_local1.teams_pair = _local1["teams_pair_" + _local2.current_round][_local2.current_match];
if ((_local1.teams_pair[0].player == 0) && (_local1.teams_pair[1].player != 0)) {
_local1.teams_pair.reverse();
_local2.teams_reverse = true;
} else {
_local2.teams_reverse = false;
}
_local2.team_left_match_index = _local1.teams_pair[0].team_index;
_local2.team_right_match_index = _local1.teams_pair[1].team_index;
_local2.showTeamsTypes();
if ((_local2.current_round == 3) && (_local2.current_match == 1)) {
switch (_local2.game_type) {
case 1 :
_local1.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"cup_final"});
break;
case 3 :
_local1.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"multi_cup_final"});
}
} else if (_local1.player_left == _local1.player_right) {
_local1.TeamStats.randomResults();
_local1.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"match_result"});
} else {
_local1.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"show_teams"});
}
}
function nextMatch() {
var _local1 = this;
var _local2 = _root;
if (_local1.teams_reverse) {
_local2.teams_pair.reverse();
}
if ((_local1.game_type == 0) || (_local1.game_type == 2)) {
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"classes_init"});
} else if ((_local1.game_type == 1) && (_local2.teams_pair[0].player == 1)) {
_local1.single_score = _local1.single_score + (_local2.score_left * _local2.score_multiplier);
if (_local2.score_left < _local2.score_right) {
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"cup_lost"});
return;
}
} else {
_local1.current_match = _local1.current_match + 1;
switch (_local1.current_round) {
case 0 :
if (_local2.teams_pair_0[_local1.current_match - 1][0].head_for > _local2.teams_pair_0[_local1.current_match - 1][1].head_for) {
var _local3 = _local2.teams_pair_0[_local1.current_match - 1][0];
} else {
var _local3 = _local2.teams_pair_0[_local1.current_match - 1][1];
}
var new_team = {player:_local3.player, team_index:_local3.team_index, head_for:_local3.head_for, head_against:_local3.head_against};
_local2.teams_pair_1[Math.floor((_local1.current_match - 1) / 2)].push(new_team);
if (_local1.current_match == 8) {
_local1.current_match = 0;
_local1.current_round = _local1.current_round + 1;
}
break;
case 1 :
if (_local2.teams_pair_1[_local1.current_match - 1][0].head_for > _local2.teams_pair_1[_local1.current_match - 1][1].head_for) {
var _local3 = _local2.teams_pair_1[_local1.current_match - 1][0];
} else {
var _local3 = _local2.teams_pair_1[_local1.current_match - 1][1];
}
var new_team = {player:_local3.player, team_index:_local3.team_index, head_for:_local3.head_for, head_against:_local3.head_against};
_local2.teams_pair_2[Math.floor((_local1.current_match - 1) / 2)].push(new_team);
if (_local1.current_match == 4) {
_local1.current_match = 0;
_local1.current_round = _local1.current_round + 1;
}
break;
case 2 :
if (_local2.teams_pair_2[_local1.current_match - 1][0].head_for > _local2.teams_pair_2[_local1.current_match - 1][1].head_for) {
var _local3 = _local2.teams_pair_2[_local1.current_match - 1][0];
} else {
var _local3 = _local2.teams_pair_2[_local1.current_match - 1][1];
}
var new_team = {player:_local3.player, team_index:_local3.team_index, head_for:_local3.head_for, head_against:_local3.head_against};
_local2.teams_pair_3[Math.floor((_local1.current_match - 1) / 2)].push(new_team);
if (_local1.current_match == 2) {
_local1.current_match = 0;
_local1.current_round = _local1.current_round + 1;
}
break;
case 3 :
if (_local2.teams_pair_3[_local1.current_match - 1][0].head_for > _local2.teams_pair_3[_local1.current_match - 1][1].head_for) {
var _local3 = _local2.teams_pair_3[_local1.current_match - 1][0];
} else {
var _local3 = _local2.teams_pair_3[_local1.current_match - 1][1];
}
var new_team = {player:_local3.player, team_index:_local3.team_index, head_for:_local3.head_for, head_against:_local3.head_against};
_local2.teams_pair_4[Math.floor((_local1.current_match - 1) / 2)].push(new_team);
}
_local2.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"show_match_table"});
}
}
function randomResults() {
var _local2 = this;
var _local1 = _local2.teams_info[_local2.team_left_match_index].jump + (_local2.teams_info[_local2.team_left_match_index].speed * 1.5);
var right_team_rate = (_local2.teams_info[_local2.team_right_match_index].jump + (_local2.teams_info[_local2.team_right_match_index].speed * 1.5));
if (_local1 == right_team_rate) {
_local1 = ((Math.random() < 0.5) ? (_local1 + 1) : (_local1 - 1));
}
var sum_team_rate = (_local1 + right_team_rate);
var _local3 = Math.floor(Math.random() * 15) + 15;
var max_random_score = ((_local3 + 1) + Math.floor(Math.random() * 10));
if (Math.random() < (_local1 / sum_team_rate)) {
_root.score_left = max_random_score;
_root.score_right = _local3;
} else {
_root.score_right = max_random_score;
_root.score_left = _local3;
}
}
}
Symbol 687 MovieClip [__Packages.GameSettings] Frame 0
class GameSettings
{
var left_has_ball;
function GameSettings () {
_root.score_multiplier = 10;
left_has_ball = ((Math.random() < 0.5) ? true : false);
}
var hit_to_foul = 4;
var round_time = 90;
var gravity = 0.7;
var floor_y = 375;
var left_limit_1 = 35;
var left_limit_2 = 275;
var right_limit_1 = 375;
var right_limit_2 = 615;
}
Symbol 11 MovieClip Frame 1
var gameBytesTotal = 0;
var gameBytesLoaded = 0;
var percent = 0;
Symbol 11 MovieClip Frame 3
gameBytesTotal = _root.getBytesTotal();
gameBytesLoaded = _root.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
bar.loadbar._xscale = percent;
if (((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (_root.logo._currentframe >= _root.logo._totalframes)) {
_root.gotoAndPlay("select_language");
stop();
} else {
gotoAndPlay ("preload");
}
Symbol 14 Button
on (press) {
getURL (_root.main_link, "_blank");
}
Symbol 84 MovieClip Frame 1
_root.loading._visible = false;
Symbol 84 MovieClip Frame 207
_root.loading._visible = true;
stop();
Symbol 87 MovieClip [ball_mc] Frame 1
#initclip 28
Object.registerClass("ball_mc", Ball);
#endinitclip
Symbol 89 MovieClip [big_hit_mc] Frame 5
this.removeMovieClip();
Symbol 122 MovieClip Frame 1
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 122 MovieClip Frame 3
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 122 MovieClip Frame 5
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 122 MovieClip Frame 7
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 3
stop();
Symbol 138 MovieClip Frame 5
stop();
Symbol 138 MovieClip Frame 8
stop();
Symbol 138 MovieClip Frame 11
stop();
Symbol 138 MovieClip Frame 14
stop();
Symbol 138 MovieClip Frame 16
stop();
Symbol 239 MovieClip Frame 1
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 2
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 3
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 4
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 5
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 6
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 7
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 8
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 9
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 10
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 11
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 239 MovieClip Frame 12
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 1
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 2
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 3
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 4
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 5
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 6
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 7
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 8
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 9
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 10
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 11
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 326 MovieClip Frame 12
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 343 MovieClip Frame 1
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 343 MovieClip Frame 3
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 352 MovieClip Frame 1
skin_color_obj = new Color(skin_mc);
skin_color_obj.setRGB(_parent.skin_color);
shirt_color_obj = new Color(shirt_mc);
shirt_color_obj.setRGB(_parent.shirt_color);
pants_color_obj = new Color(pants_mc);
pants_color_obj.setRGB(_parent.pants_color);
Symbol 353 MovieClip [cpubot_mc] Frame 1
#initclip 16
Object.registerClass("cpubot_mc", CPUBot);
#endinitclip
stop();
Symbol 353 MovieClip [cpubot_mc] Frame 2
stop();
Symbol 353 MovieClip [cpubot_mc] Frame 3
stop();
Symbol 353 MovieClip [cpubot_mc] Frame 4
stop();
Symbol 353 MovieClip [cpubot_mc] Frame 5
stop();
Symbol 354 MovieClip [player_mc] Frame 1
#initclip 17
Object.registerClass("player_mc", PlayerBot);
#endinitclip
stop();
Symbol 354 MovieClip [player_mc] Frame 2
stop();
Symbol 354 MovieClip [player_mc] Frame 3
stop();
Symbol 354 MovieClip [player_mc] Frame 4
stop();
Symbol 354 MovieClip [player_mc] Frame 5
stop();
Symbol 357 MovieClip [2dplay button] Frame 1
#initclip 18
Object.registerClass("2dplay button", MCButton);
#endinitclip
Symbol 360 MovieClip [DefinedKey] Frame 1
#initclip 19
Object.registerClass("DefinedKey", DefinedKey);
#endinitclip
Instance of Symbol 362 MovieClip in Symbol 363 MovieClip [fade_in_and_go] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (press) {
}
Symbol 363 MovieClip [fade_in_and_go] Frame 10
_root.gotoAndPlay(frame_label);
Symbol 363 MovieClip [fade_in_and_go] Frame 19
this.removeMovieClip();
Symbol 366 MovieClip [game_message] Frame 1
_root.game_paused = true;
switch (label) {
case "get_ready" :
message_str = _root.get_ready_str;
break;
case "half_time" :
_root.SFX_manager.playSFX("whistle");
message_str = _root.half_time_str;
break;
case "full_time" :
_root.SFX_manager.playSFX("whistle");
message_str = _root.full_time_str;
break;
case "knockout" :
message_str = _root.knockout_round_str;
break;
case "foul" :
_root.SFX_manager.playSFX("whistle");
_root.game_paused = false;
message_str = _root.foul_str;
}
Symbol 366 MovieClip [game_message] Frame 60
switch (label) {
case "get_ready" :
_root.SFX_manager.playSFX("whistle");
_root.Timer = new TimerControl();
_root.TeamStats.attachBall();
_root.game_paused = false;
this.removeMovieClip();
break;
case "half_time" :
match_result = "half_time";
break;
case "full_time" :
if (_root.score_left != _root.score_right) {
match_result = "full_time";
} else {
_root.TeamStats.current_time = 3;
match_result = "knockout";
}
break;
case "knockout" :
_root.SFX_manager.playSFX("whistle");
_root.Timer = new TimerControl();
_root.TeamStats.attachBall();
_root.game_paused = false;
this.removeMovieClip();
break;
case "foul" :
this.removeMovieClip();
}
Instance of Symbol 362 MovieClip in Symbol 366 MovieClip [game_message] Frame 61
onClipEvent (load) {
this.useHandCursor = false;
}
on (press) {
}
Symbol 366 MovieClip [game_message] Frame 70
switch (match_result) {
case "half_time" :
_root.TeamStats.startMatch();
break;
case "full_time" :
_root.gotoAndPlay("match_result");
break;
case "knockout" :
_root.TeamStats.startMatch();
}
Symbol 366 MovieClip [game_message] Frame 79
this.removeMovieClip();
Symbol 405 MovieClip Frame 1
if (label != undefined) {
gotoAndStop(label);
} else {
stop();
}
Symbol 470 MovieClip [match_graph] Frame 1
#initclip 20
Object.registerClass("match_graph", MatchGraph);
#endinitclip
Symbol 472 MovieClip [uni_button] Frame 1
#initclip 21
Object.registerClass("uni_button", MCButton);
#endinitclip
Symbol 473 MovieClip [pause_clip] Frame 1
btn.useHandCursor = false;
Instance of Symbol 472 MovieClip [uni_button] in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "view_high_scores_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.viewscores_link, "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "play_more_games_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.main_link, "_blank");
}
Instance of Symbol 472 MovieClip [uni_button] "flashing_3" in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "resume_game_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.player_mc.body_mc.play();
_root.player_mc_2.body_mc.play();
_root.game_paused = false;
_root.Timer.PauseOFF();
_parent.removeMovieClip();
}
Instance of Symbol 472 MovieClip [uni_button] in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "quit_game_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_root.attachMovie("quit_confirm", "quit_confirm", 10);
}
Instance of Symbol 472 MovieClip [uni_button] in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "current_quality_str";
}
onClipEvent (load) {
this.showLabels = function () {
var _local1 = this;
var _local2 = _root;
switch (_quality) {
case "HIGH" :
_local1.label_str = _local2.high_quality_str;
return;
case "MEDIUM" :
_local1.label_str = _local2.medium_quality_str;
return;
case "LOW" :
_local1.label_str = _local2.low_quality_str;
}
};
showLabels();
}
on (press) {
_root.SFX_manager.playSFX("button");
switch (_quality) {
case "HIGH" :
_quality = "LOW";
break;
case "MEDIUM" :
_quality = "HIGH";
break;
case "LOW" :
_quality = "MEDIUM";
}
showLabels();
_root.SO_manager.setQualitySettings(_quality);
}
Instance of Symbol 472 MovieClip [uni_button] in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "current_sound_str";
}
onClipEvent (load) {
this.label_str = (_root.SO_manager.game_so.data.sound_on ? (_root.sound_off_str) : (_root.sound_on_str));
}
on (press) {
_root.SFX_manager.playSFX("button");
this.label_str = _root.SO_manager.toggleSound();
}
Instance of Symbol 472 MovieClip [uni_button] in Symbol 473 MovieClip [pause_clip] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "get_game_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
getURL (_root.get_game_link, "_blank");
}
Symbol 494 MovieClip Frame 1
if (label != undefined) {
gotoAndStop(label);
} else {
stop();
}
Instance of Symbol 494 MovieClip in Symbol 495 MovieClip [select_lang_mc] Frame 1
onClipEvent (load) {
this.label = _parent.flag;
}
Symbol 502 MovieClip [select_team_cell] Frame 1
#initclip 22
Object.registerClass("select_team_cell", SelectTeamCell);
#endinitclip
stop();
Symbol 509 MovieClip Frame 1
stop();
Symbol 512 MovieClip [team_select_preview] Frame 1
#initclip 23
Object.registerClass("team_select_preview", TeamPreview);
#endinitclip
Symbol 517 MovieClip [team_select_preview_2] Frame 1
#initclip 24
Object.registerClass("team_select_preview_2", TeamPreview);
#endinitclip
Symbol 520 MovieClip [uni_button_medium] Frame 1
#initclip 25
Object.registerClass("uni_button_medium", MCButton);
#endinitclip
Symbol 523 MovieClip [uni_button_small] Frame 1
#initclip 26
Object.registerClass("uni_button_small", MCButton);
#endinitclip
Symbol 530 Button
on (press) {
_root.attachMovie("fade_in_and_go", "fadein", 10, {frame_label:"classes_init"});
_parent.removeMovieClip();
}
Symbol 553 MovieClip [xml_loader_window] Frame 1
if (_root.game_started) {
button_back._visible = true;
} else {
button_back._visible = false;
}
game_link.onPress = function () {
getURL (_root.main_link, "_blank");
};
get_game_link.onPress = function () {
getURL (_root.get_game_link, "_blank");
};
gotoAndStop(flag);
Symbol 556 MovieClip [quit_confirm] Frame 1
btn.useHandCursor = false;
Instance of Symbol 523 MovieClip [uni_button_small] in Symbol 556 MovieClip [quit_confirm] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "yes_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
for (var s in _root) {
var root_mc = _root[s];
if ((root_mc != _parent) && (typeof(root_mc) == "movieclip")) {
root_mc.removeMovieClip();
}
}
_root.attachMovie("fade_in_and_go", "fadein", 11, {frame_label:"classes_init"});
_parent.removeMovieClip();
}
Instance of Symbol 523 MovieClip [uni_button_small] in Symbol 556 MovieClip [quit_confirm] Frame 1
//component parameters
onClipEvent (initialize) {
label_var = "no_str";
}
on (press) {
_root.SFX_manager.playSFX("button");
_parent.removeMovieClip();
}
Symbol 558 MovieClip [uni_button_small_13_points_font] Frame 1
#initclip 27
Object.registerClass("uni_button_small_13_points_font", MCButton);
#endinitclip
Symbol 559 MovieClip Frame 1
stop();
Instance of Symbol 360 MovieClip [DefinedKey] in Symbol 559 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
key_index = 0;
}
Instance of Symbol 502 MovieClip [select_team_cell] in Symbol 559 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
group_index = 0;
}
Instance of Symbol 472 MovieClip [uni_button] in Symbol 559 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label_var = "defaultValue";
}
Instance of Symbol 520 MovieClip [uni_button_medium] in Symbol 559 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label_var = "defaultValue";
}
Instance of Symbol 523 MovieClip [uni_button_small] in Symbol 559 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label_var = "defaultValue";
}
Instance of Symbol 558 MovieClip [uni_button_small_13_points_font] in Symbol 559 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label_var = "defaultValue";
}
Symbol 572 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 15
gotoAndStop (1);
Symbol 637 MovieClip Frame 25
gotoAndStop (1);
Symbol 643 MovieClip Frame 66
switch (_root.tips_show) {
case 2 :
stop();
break;
case 0 :
if (_root.player_right != _root.cpu_str) {
gotoAndPlay ("both_tips");
} else {
gotoAndPlay ("left_tip");
}
break;
case 1 :
if (_root.player_right != _root.cpu_str) {
gotoAndPlay ("right_tip");
} else {
stop();
}
}
Instance of Symbol 642 MovieClip in Symbol 643 MovieClip Frame 67
onClipEvent (load) {
var left_label = _global.ControlsManager.GetKeyLabel(0);
var right_label = _global.ControlsManager.GetKeyLabel(1);
var jump_label = _global.ControlsManager.GetKeyLabel(2);
tip_txt = (((((((((((_root.keys_tip_str + "\r") + _root.left_str) + ": ") + left_label) + "\r") + _root.right_str) + ": ") + right_label) + "\r") + _root.jump_str) + ": ") + jump_label;
}
Symbol 643 MovieClip Frame 237
_root.tips_show = 1;
gotoAndStop (1);
Instance of Symbol 642 MovieClip in Symbol 643 MovieClip Frame 238
onClipEvent (load) {
var left_label = _global.ControlsManager.GetKeyLabel(3);
var right_label = _global.ControlsManager.GetKeyLabel(4);
var jump_label = _global.ControlsManager.GetKeyLabel(5);
tip_txt = (((((((((((_root.keys_tip_str + "\r") + _root.left_str) + ": ") + left_label) + "\r") + _root.right_str) + ": ") + right_label) + "\r") + _root.jump_str) + ": ") + jump_label;
}
Instance of Symbol 642 MovieClip in Symbol 643 MovieClip Frame 238
onClipEvent (load) {
var left_label = _global.ControlsManager.GetKeyLabel(0);
var right_label = _global.ControlsManager.GetKeyLabel(1);
var jump_label = _global.ControlsManager.GetKeyLabel(2);
tip_txt = (((((((((((_root.keys_tip_str + "\r") + _root.left_str) + ": ") + left_label) + "\r") + _root.right_str) + ": ") + right_label) + "\r") + _root.jump_str) + ": ") + jump_label;
}
Symbol 643 MovieClip Frame 408
_root.tips_show = 2;
gotoAndStop (1);
Instance of Symbol 642 MovieClip in Symbol 643 MovieClip Frame 409
onClipEvent (load) {
var left_label = _global.ControlsManager.GetKeyLabel(3);
var right_label = _global.ControlsManager.GetKeyLabel(4);
var jump_label = _global.ControlsManager.GetKeyLabel(5);
tip_txt = (((((((((((_root.keys_tip_str + "\r") + _root.left_str) + ": ") + left_label) + "\r") + _root.right_str) + ": ") + right_label) + "\r") + _root.jump_str) + ": ") + jump_label;
}
Symbol 643 MovieClip Frame 579
_root.tips_show = 2;
gotoAndStop (1);