Frame 3
gotoAndPlay (5);
Frame 5
disable_check = true;
myURL = _url;
okDomain = "www.mousebreaker.net";
okDomain1 = "www.playforyourclub.com";
okDomain2 = "uefa.com";
okDomain3 = "STOTTY";
if (((((myURL.indexOf(okDomain2) != -1) or (myURL.indexOf(okDomain3) != -1)) or (myURL.indexOf(okDomain) != -1)) or (myURL.indexOf(okDomain1) != -1)) or disable_check) {
gotoAndPlay (8);
} else {
gotoAndStop (4);
}
Frame 7
stop();
Frame 8
Frame 9
loadVariables ("languages.txt", this);
Frame 23
language = "eng";
lid = 1;
Frame 24
function trim_name(name_in) {
last_char = name_in.charAt(name_in.length - 1);
extra_spaces = 0;
if (last_char == " ") {
do {
extra_spaces++;
last_char = name_in.charAt((name_in.length - extra_spaces) - 1);
} while (last_char == " ");
name_out = name_in.substring(0, name_in.length - extra_spaces);
} else {
name_out = name_in;
}
return(name_out);
}
function convert_col_to_number(team_in) {
if (team_in == "red") {
rcol = 1;
}
if (team_in == "white") {
rcol = 2;
}
if (team_in == "blue") {
rcol = 3;
}
if (team_in == "black") {
rcol = 4;
}
if (team_in == "yellow") {
rcol = 5;
}
if (team_in == "green") {
rcol = 6;
}
if (team_in == "claret") {
rcol = 7;
}
if (team_in == "skyblue") {
rcol = 8;
}
if (team_in == "orange") {
rcol = 9;
}
if (team_in == "rovers") {
rcol = 10;
}
return(rcol);
}
function add_new_team(id, submitid, rat, add_name, add_colour, add_shorts, add_socks, add_socks_top, add_stripe, add_sleeves, add_collar, add_song) {
thid = id;
team[thid] = add_name;
subid[thid] = submitid;
rating[thid] = rat;
colour[thid] = add_colour;
collar[thid] = add_collar;
shorts[thid] = add_shorts;
stripe1[thid] = add_stripe;
sleeves[thid] = add_sleeves;
socks[thid] = add_socks;
socks_top[thid] = add_socks_top;
best_song[id] = add_name + "!";
}
function sort_teams() {
sorted = false;
while (!sorted) {
sorted = true;
ii = 1;
while (ii < teams) {
if (team[ii] > team[ii + 1]) {
temp = team[ii];
team[ii] = team[ii + 1];
team[ii + 1] = temp;
temp = index[ii];
index[ii] = index[ii + 1];
index[ii + 1] = temp;
sorted = false;
}
ii++;
}
}
}
teams = 16;
games = teams / 2;
maxgames = games;
team = new Array();
picked = new Array();
pos = new Array();
v = new Array();
rating = new Array();
round = 0;
index = new Array();
subid = new Array();
colour = new Array();
shorts = new Array();
socks = new Array();
socks_top = new Array();
shorts = new Array();
best_song = new array();
stripe1 = new Array();
sleeves = new Array();
collar = new Array();
selected = false;
myteamid = 1;
add_new_team(1, -9, 9, "Portugal", "red", "green", "red", "green", "red", "red", "red", "Portugal !");
add_new_team(2, -6, 4, "Greece", "blue", "blue", "blue", "white", "blue", "blue", "blue", "Greece !");
add_new_team(3, -10, 9, "Spain", "red", "darkblue", "darkblue", "red", "red", "red", "red", "Espanya !");
add_new_team(4, -15, 6, "Russia", "white", "white", "white", "white", "white", "white", "white", "YOU REDS !");
add_new_team(5, -4, 10, "France", "blue", "white", "red", "blue", "blue", "blue", "blue", "Alez le Bleues !");
add_new_team(6, -3, 7, "England", "white", "darkblue", "white", "darkblue", "white", "white", "red", "Football's coming home !");
add_new_team(7, -12, 5, "Switzerland", "red", "white", "red", "red", "red", "red", "red", "Swiss !");
add_new_team(8, -13, 4, "Croatia", "white", "white", "white", "white", "red", "red", "white", "Croatia !");
add_new_team(9, -11, 7, "Sweden", "yellow", "blue", "yellow", "yellow", "yellow", "yellow", "yellow", "Ulrika-ka-ka-ka!");
add_new_team(10, -1, 6, "Bulgaria", "white", "green", "white", "red", "white", "white", "white", "Bulgaria !");
add_new_team(11, -2, 6, "Denmark", "red", "white", "red", "white", "red", "white", "white", "Denmark !");
add_new_team(12, -7, 9, "Italy", "blue", "white", "blue", "blue", "blue", "blue", "white", "Italia !");
add_new_team(13, -16, 7, "Czech Rep", "red", "white", "blue", "blue", "red", "red", "red", "GOAL !");
add_new_team(14, -14, 3, "Latvia", "red", "red", "red", "red", "red", "red", "red", "LATVIA !!");
add_new_team(15, -5, 6, "Germany", "white", "black", "white", "white", "white", "black", "white", "Uber alles !");
add_new_team(16, -8, 8, "Netherlands", "orange", "orange", "white", "white", "orange", "orange", "orange", "Always look on the bright side of life!");
i = 1;
while (i <= teams) {
team[i] = trim_name(team[i]);
index[i] = i;
i++;
}
display_list = new array();
display_list[1] = "Bulgaria";
index[1] = 10;
display_list[2] = "Denmark";
index[2] = 11;
display_list[3] = "England";
index[3] = 6;
display_list[4] = "France";
index[4] = 5;
display_list[5] = "Germany";
index[5] = 15;
display_list[6] = "Greece";
index[6] = 2;
display_list[7] = "Italy";
index[7] = 12;
display_list[8] = "Netherlands";
index[8] = 16;
display_list[9] = "Portugal";
index[9] = 1;
display_list[10] = "Spain";
index[10] = 3;
display_list[11] = "Sweden";
index[11] = 9;
display_list[12] = "Switzerland";
index[12] = 7;
display_list[13] = "Croatia";
index[13] = 8;
display_list[14] = "Latvia";
index[14] = 14;
display_list[15] = "Russia";
index[15] = 4;
display_list[16] = "Czech Republic";
index[16] = 13;
ply_array = new array("dummy", "Play", "Spielen", "Jouer", "Gioca", "Jugar", "Jogue");
Ply_Again_array = new array("dummy", "Play Again", "Neues Spiel", "Rejouer", "Gioca ancora", "Volver a jugar", "Jogue novamente");
Select_team_array = new array("dummy", "Select your team", "W\u00E4hlen Sie Ihre Mannschaft", "S\u00E9lectionner l'\u00E9quipe", "Scegli la tua squadra", "Seleccione un equipo", "Seleccione a sua equipa");
Team_selected_array = new array("dummy", "Team selected", "Gew\u00E4hlte Mannschaft", "Equipe s\u00E9lectionn\u00E9e", "Scegli la formazione", "Equipo eligido", "Equipa seleccionada ");
Control_player_array = new array("dummy", "Control player", "Spieler kontrollieren", "Commander le joueur", "Dettagli giocatori", "Controlar jugador", "Controle o jogador");
Pass_array = new array("dummy", "Pass", "Zuspiel", "Passe", "Passaggio", "Pasar", "Passe");
Tackle_array = new array("dummy", "Tackle", "Tackling", "Tacle", "Scivolata", "Entrar", "Rasteira");
Move_player_array = new array("dummy", "Move player", "Spieler bewegen", "D\u00E9placer le joueur", "Muovi il giocatore", "Mover jugador", "Movimentar jogador");
Kick_array = new array("dummy", "Kick", "Ball treten", "Coup", "Calcia", "Chutar", "Remate");
Shoot_array = new array("dummy", "Shoot", "Schuss", "Tir", "Tiro", "Tirar", "Pontap\u00E9");
Submit_score_array = new array("dummy", "Submit score", "Punktzahl speichern", "Enregistrer le score", "Punteggio", "Enviar resultado", "Submeter resultado");
target_array = new array("dummy", "You must score xxx goals in this match to win", "Sie m\u00FCssen in diesem Spiel xxx Tore erzielen, um dieses Spiel zu gewinnen", "Vous devez marquer xxx buts pour gagner ce match", "In questa partita devi segnare almeno XX gol per vincere", "Tiene que marcar xxx goles para hacerse con la victoria", "Tem de marcar xxx golos para ganhar o jogo");
you_scored_array = new array("dummy", "You scored xxx points for your team", "Sie haben xxx Punkte f\u00FCr Ihre Mannschaft erzielt", "Votre \u00E9quipe r\u00E9colte xxx points ", "Hai totalizzato XX punti per la tua squadra", "Ha conseguido xxx puntos", "A sua equipa ganhou xxx pontos ");
Unlucky_array = new array("dummy", "Unlucky! You have been knocked out!", "Schade! Sie sind ausgeschieden!", "Dommage! Vous avez \u00E9t\u00E9 \u00E9limin\u00E9.", "Che sfortuna! Sei stato eliminato!", "\u00A1Qu\u00E9 pena! \u00A1Ha sido eliminado!", "Teve azar! Acabou de ser eliminado!");
how_to_freeKICK_array = new array("dummy", "HOW TO TAKE A FREE KICK", "WIE TRETEN SIE EINEN FREISTOSS", "COMMENT TIRER UN COUP FRANC", "COME CALCIARE UN CALCIO DI PUNIZIONE", "C\u00D3MO TIRAR UNA FALTA", "COMO MARCAR UM LIVRE");
Move_the_mouse_array = new array("dummy", "Move the mouse behind the ball to determine the shot strength and direction", "Bewegen Sie die Maus hinter den Ball, um die St\u00E4rke des Schusses und die Richtung zu bestimmen.", "D\u00E9placer la souris derri\u00E8re le ballon pour d\u00E9finir la puissance et la direction du tir.", "Sposta il mouse duetro la palla per decidere la forza e la direzione del tiro", "Coloque el rat\u00F3n detr\u00E1s del bal\u00F3n para determinar la potencia y la direcci\u00F3n del remate.", "Movimente o rato por detr\u00E1s da bola para determinar a for\u00E7a e direc\u00E7\u00E3o do remate");
Release_and_press_array = new array("dummy", "Release and press the left mouse button to shoot!", "Lassen Sie die linke Maustaste los und klicken Sie sie erneut, um zu schiessen.", "L\u00E2cher et appuyer le bouton de gauche de la souris pour effectuer le tir!", "Lascia e premi il tasto di sinistra per calciare", "Cargue y suelte el bot\u00F3n izquierdo del rat\u00F3n para rematar. ", "Liberte e pressione o bot\u00E3o esquerdo do rato para rematar");
HOW_TO_VOLLEY_array = new array("dummy", "HOW TO VOLLEY THE BALL", "WIE NEHMEN SIE DEN BALL DIREKT AB", "COMMENT FRAPPER LA BALLE DE VOL\u00C9E", "COME INDIRIZZARE LA PALLA", "C\u00D3MO REMATAR DE VOLEA", "PARA REMATAR DE PRIMEIRA");
height_of_ball_array = new array("dummy", "The height of the ball when you kick it determines the elevation of the shot.", "Die H\u00F6he des Balls \u00FCber dem Boden zum Zeitpunkt des Schusses bestimmt die Flugh\u00F6he des Schusses.", "La hauteur du ballon lorsque vous le frappez d\u00E9termine l'inclinaison du tir.", "L'altezza della palla quando calci \u00E8 determinata dalla parabola del calcio", "La altura a la que se encuentra el bal\u00F3n a la hora de rematarlo determinar\u00E1 la elevaci\u00F3n del tiro.", "A altura da bola no momento do remate determina a eleva\u00E7\u00E3o do mesmo");
freekick_array = new array("dummy", "Click the mouse on the BOTTOM half of the ball. The position of this click determines the elevation of the shot and also the amount of swerve, especially if you click nearer the edge.", "Positionieren Sie die Maus auf die untere H\u00E4lfte des Balls und klicken Sie die Taste. Die Position des Cursors bestimmt die Flugbahn des Balls und den Drall des Schusses, insbesondere wenn Sie am Rand des Balls klicken.", "Cliquer sur la moiti\u00E9 inf\u00E9rieure du ballon. La position de la souris d\u00E9termine la hauteur du tir et l'effet, particuli\u00E8rement si vous cliquez proche du bord.", "Clicca il tasto del mouse sul pallone. La sua posizione determina la parabola del tiro cos\u00EC come l'effetto della palla", "Coloque el rat\u00F3n en la parte baja del bal\u00F3n. La posici\u00F3n del impacto determinar\u00E1 la altura m\u00E1xima que alcanzar\u00E1 el esf\u00E9rico as\u00ED como el efecto que le d\u00E9 a su remate.", "Clique com o rato na parte debaixo da bola. A posi\u00E7\u00E3o do cursor determina a eleva\u00E7\u00E3o do remate, bem como o efeito, especialmente se clicar nas extremidades ");
Press_the_space_bar_array = new array("dummy", "Press the space bar early to kick the ball to the left or press it late to shoot to the right", "Dr\u00FCcken Sie die Leertaste fr\u00FCh, um den Ball nach links, und eher sp\u00E4t, um ihn nach rechts zu schiessen.", "Presser la bar Espace t\u00F4t pour tirer sur la gauche du cadre et plus tard pour viser le c\u00F4t\u00E9 droit du cadre. ", "Premi prima del calcio la barra dello spazio per indirizzare a sinistra, dopo il calcio per indirizzare a destra", "Cargue sobre la barra espaciadora justo antes de que el bal\u00F3n le llegu\u00E9 al pie para dirigir el remate hacia la izquierda o espere un poco para chutar hacia la derecha.", "Pressione a tecla 'Space bar' antes de rematar, para um pontap\u00E9 para o lado esquerdo. Pressione a mesma tecla um pouco depois para um remate para o lado direito ");
scoring_text_array = new array("dummy", "Scoring", "Punktzahl", "Score", "Punteggio", "Puntuaci\u00F3n", "Pontua\u00E7\u00E3o");
scoring_text = scoring_text_array[lid].toUpperCase();
instruction_text_array = new array("dummy", "Instructions", "Spielanleitung", "Instructions", "Istruzioni", "Instrucciones", "Instru\u00E7\u00F5es");
instruction_text = instruction_text_array[lid].toUpperCase();
how_to_volley_text = HOW_TO_VOLLEY_array[lid].toUpperCase();
play_txt = ply_array[lid].toUpperCase();
txt_select_a_team = Select_team_array[lid].toUpperCase();
txt_submit_score = Submit_score_array[lid].toUpperCase();
txt_play_again = Ply_Again_array[lid].toUpperCase();
if (language == "eng") {
gotoAndStop (24);
}
if (language == "fra") {
gotoAndStop (32);
}
if (language == "ger") {
gotoAndStop (26);
}
if (language == "esp") {
gotoAndStop (43);
}
if (language == "por") {
gotoAndStop (49);
}
if (language == "rus") {
instructions_main_text = (((rus_in1 + " ") + rus_in2) + " ") + rus_in3;
scoring_main_text = ((((((((((rus_sc1 + "\r") + rus_sc2) + "\r") + rus_sc3) + "\r") + rus_sc4) + "\r") + rus_sc5) + "\r") + rus_sc6) + "\r";
play_txt = rus_play;
txt_select_a_team = rus_select_a_team;
txt_submit_score = rus_submit_score;
txt_play_again = rus_play_again;
rus_target = rus_you_must_score;
how_to_volley_text = rus_how_to_volley;
how_to_volley1_text = (rus_press_space + " ") + rus_the_height;
trace("rus play..." + txt_select_a_team);
gotoAndStop (56);
}
if (language == "ita") {
gotoAndStop (37);
}
instruction_name = "INSTRUCTION";
stop();
Frame 49
Frame 69
function find_team(find_v) {
rv = 0;
i = 1;
while (i <= teams) {
if (index[i] == find_v) {
rv = i;
}
i++;
}
return(rv);
}
function get_txt() {
if (myteamid <= 80) {
divvy = 4;
}
if (myteamid <= 50) {
divvy = 3;
}
if (myteamid <= 40) {
divvy = 2;
}
if (myteamid <= 20) {
divvy = 1;
}
if (divvy == 1) {
divvy_txt = "Premier League";
}
if (divvy == 2) {
divvy_txt = "1st Division";
}
if (divvy == 3) {
divvy_txt = "2nd Division";
}
if (divvy == 4) {
divvy_txt = "3rd Division";
}
rtext = boselecta;
return(rtext);
}
function myhandler() {
trace("here!");
done = true;
boselecta = listBox1.getSelectedItem().label;
myteamid = listBox1.getSelectedItem().data;
boselectan = myteamid;
sorted_team_index = find_team(myteamid);
trace((("selected..." + myteamid) + " raw") + raw_team);
song = best_song[myteamid];
boselecta_txt = get_txt();
}
done = false;
i = 1;
while (i <= teams) {
listBox1.addItem(team[index[i]], index[i]);
i++;
}
listBox1.setchangehandler("myhandler");
Instance of Symbol 101 MovieClip [FListBoxSymbol] "listbox1" in Frame 69
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Instance of Symbol 308 MovieClip "game_cooky" in Frame 69
onClipEvent (load) {
function write_mb() {
name = "mbbb" + game_id;
so = SharedObject.getLocal(name, "/");
terry = random(9999999) + 10000000;
so.data.mb1 = terry;
so.data.mb3 = terry + 1;
so.flush();
}
function bling() {
name = "mbbb" + game_id;
so = SharedObject.getLocal(name, "/");
_level0.mb3++;
so.data.mb1 = _level0.mb1;
so.data.mb3 = _level0.mb3;
so.flush();
}
function read_mb() {
name = "mbbb" + game_id;
so = SharedObject.getLocal(name, "/");
_level0.mb1 = so.data.mb1;
_level0.mb3 = so.data.mb3;
trace((("m" + _level0.mb1) + " ") + _level0.mb3);
}
function write_game_cookie(f1, f2) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.f1 = f1;
so.data.f2 = f2;
so.flush();
}
function read_game_cookie() {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.f1 == null) {
result = false;
trace("no cookie....");
write_mb();
read_mb();
} else {
result = true;
trace("reading cookie....");
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
}
return(result);
}
_visible = true;
game_id = "uefa_volley2";
}
Frame 70
boselecta = "Select a Team";
boselecta_txt = get_txt();
exist = game_cooky.read_game_cookie();
trace((("exists..." + exist) + " ") + f1);
if (exist) {
done = true;
myteamid = f1;
trace("raw team in..." + raw_team);
sorted_team_index = find_team(f1);
boselecta = team[f1];
song = best_song[f1];
game_cooky.read_mb();
game_cooky.bling();
boselecta_txt = get_txt();
trace((((("team.." + f1) + " ") + boselecta) + " ") + song);
}
boselectan = myteamid;
trace((("m" + _level0.mb1) + " ") + _level0.mb3);
stop();
Frame 71
function pad_name(name_in, len) {
wlength = name_in.length;
name_out = name_in;
extra_spaces = len - wlength;
es = 1;
while (es <= extra_spaces) {
name_out = name_out + " ";
es++;
}
return(name_out);
}
my_round = 1;
played = new Array();
won = new Array();
drawn = new Array();
lost = new Array();
gfor = new Array();
gagainst = new Array();
points = new Array();
position = new Array();
group_round = 0;
group_phase = true;
new_score = 0;
i = 1;
while (i <= teams) {
played[i] = 0;
won[i] = 0;
drawn[i] = 0;
lost[i] = 0;
gfor[i] = 0;
gagainst[i] = 0;
position[i] = 0;
points[i] = 0;
i++;
}
Frame 75
group_round++;
heading_text = new Array();
heading_text[1] = "MATCH 1";
heading_text[2] = "MATCH 2";
heading_text[3] = "MATCH 3";
heading = heading_text[group_round];
i = 1;
while (i <= 8) {
num = i;
this["v" + num] = "v";
i++;
}
i = 1;
while (i <= 16) {
eval ("shirt" + i).gotoandstop(2);
num = i;
this["t" + num] = "";
i++;
}
Frame 84
game = 1;
mtp = false;
Frame 85
function convert_col_to_number(team_in) {
if (team_in == "red") {
rcol = 1;
}
if (team_in == "white") {
rcol = 2;
}
if (team_in == "blue") {
rcol = 3;
}
if (team_in == "black") {
rcol = 4;
}
if (team_in == "yellow") {
rcol = 5;
}
if (team_in == "green") {
rcol = 6;
}
if (team_in == "claret") {
rcol = 7;
}
if (team_in == "skyblue") {
rcol = 8;
}
if (team_in == "orange") {
rcol = 9;
}
if (team_in == "rovers") {
rcol = 10;
}
return(rcol);
}
group = int((game + 1) / 2);
if ((game / 2) == int(game / 2)) {
if (group_round == 1) {
r1 = 1;
r2 = 2;
}
if (group_round == 2) {
r1 = 1;
r2 = 4;
}
if (group_round == 3) {
r1 = 1;
r2 = 3;
}
} else {
if (group_round == 1) {
r1 = 3;
r2 = 4;
}
if (group_round == 2) {
r1 = 2;
r2 = 3;
}
if (group_round == 3) {
r1 = 2;
r2 = 4;
}
}
r1 = r1 + ((group - 1) * 4);
r2 = r2 + ((group - 1) * 4);
num = (game * 2) - 1;
this["t" + num] = pad_name(team[r1], 12);
pos[num] = r1;
col = convert_col_to_number(colour[r1]);
str = convert_col_to_number(stripe1[r1]);
slv = convert_col_to_number(sleeves[r1]);
cla = convert_col_to_number(collar[r1]);
if (team[r1] == "Croatia") {
this["shirt" + num].gotoandstop(4);
} else {
this["shirt" + num].gotoandstop(1);
this["shirt" + num].colour.gotoandstop(col);
this["shirt" + num].collar.gotoandstop(cla);
this["shirt" + num].sleeves.gotoandstop(slv);
this["shirt" + num].stripe1.gotoandstop(str);
}
num = game * 2;
this["t" + num] = pad_name(team[r2], 12);
pos[num] = r2;
col = convert_col_to_number(colour[r2]);
slv = convert_col_to_number(sleeves[r2]);
str = convert_col_to_number(stripe1[r2]);
cla = convert_col_to_number(collar[r2]);
if (team[r2] == "Croatia") {
this["shirt" + num].gotoandstop(4);
} else {
this["shirt" + num].gotoandstop(1);
this["shirt" + num].colour.gotoandstop(col);
this["shirt" + num].collar.gotoandstop(cla);
this["shirt" + num].sleeves.gotoandstop(slv);
this["shirt" + num].stripe1.gotoandstop(str);
}
Frame 86
game++;
if (game <= 8) {
gotoAndPlay (85);
}
Frame 95
ig = 1;
Frame 96
numh = (ig * 2) - 1;
numa = ig * 2;
tm1 = pos[numh];
tm2 = pos[numa];
if ((tm1 == myteamid) or (tm2 == myteamid)) {
trace("my team is playing !!");
mtp = true;
if (tm1 == myteamid) {
my_opponents = tm2;
} else {
my_opponents = tm1;
}
this_cycle = true;
s1t1 = team[pos[numh]];
s1t2 = team[pos[numa]];
s1tm1 = tm1;
s1tm2 = tm2;
} else {
this_cycle = false;
}
Frame 97
homeodds = new array(10);
scoreodds = new array(10);
score_hg = new array(10);
score_ag = new array(10);
homeodds[0] = 50;
homeodds[1] = 55;
homeodds[2] = 59;
homeodds[3] = 63;
homeodds[4] = 67;
homeodds[5] = 73;
homeodds[6] = 77;
homeodds[7] = 81;
homeodds[8] = 85;
homeodds[9] = 89;
homeodds[10] = 93;
score_hg[0] = 1;
score_ag[0] = 0;
scoreodds[0] = 30;
score_hg[1] = 2;
score_ag[1] = 0;
scoreodds[1] = 60;
score_hg[2] = 2;
score_ag[2] = 1;
scoreodds[2] = 70;
score_hg[3] = 3;
score_ag[3] = 0;
scoreodds[3] = 75;
score_hg[4] = 3;
score_ag[4] = 1;
scoreodds[4] = 80;
score_hg[5] = 3;
score_ag[5] = 2;
scoreodds[5] = 84;
score_hg[6] = 4;
score_ag[6] = 0;
scoreodds[6] = 86;
score_hg[7] = 4;
score_ag[7] = 1;
scoreodds[7] = 90;
score_hg[8] = 4;
score_ag[8] = 2;
scoreodds[8] = 94;
score_hg[9] = 4;
score_ag[9] = 3;
scoreodds[9] = 97;
score_hg[10] = 5;
score_ag[10] = 0;
scoreodds[10] = 100;
difference = rating[tm1] - rating[tm2];
minus = false;
if (difference < 0) {
difference = -1 * difference;
minus = true;
}
ho = homeodds[difference];
if (minus) {
ho = 100 - ho;
}
scorenumber = random(100);
score_random = random(100);
trace("t1 = " + team[tm1]);
trace("t2 = " + team[tm2]);
trace("diff = " + difference);
trace("ho= " + ho);
found_scr = false;
isc = 0;
while (isc <= 10) {
trace("isc= " + isc);
trace("odds= " + scoreodds[isc]);
if (!found_scr) {
if (score_random < scoreodds[isc]) {
gls1 = score_hg[isc];
gls2 = score_ag[isc];
found_scr = true;
}
}
isc++;
}
if (scorenumber < ho) {
home = gls1;
away = gls2;
} else {
home = gls2;
away = gls1;
}
if (random(100) < 25) {
home = random(3);
away = home;
if (random(100) < 10) {
home = 3;
away = 3;
}
}
Frame 98
if (!this_cycle) {
this["t" + numh] = (this["t" + numh] + " ") + home;
this["t" + numa] = (this["t" + numa] + " ") + away;
played[tm1]++;
played[tm2]++;
gfor[tm1] = gfor[tm1] + home;
gfor[tm2] = gfor[tm2] + away;
gagainst[tm1] = gagainst[tm1] + away;
gagainst[tm2] = gagainst[tm2] + home;
if (home > away) {
won[tm1]++;
lost[tm2]++;
points[tm1] = points[tm1] + 3;
}
if (home < away) {
won[tm2]++;
lost[tm1]++;
points[tm2] = points[tm2] + 3;
}
if (home == away) {
drawn[tm1]++;
drawn[tm2]++;
points[tm1]++;
points[tm2]++;
}
} else {
this["t" + numh] = (this["t" + numh] + " ") + "L";
this["t" + numa] = (this["t" + numa] + " ") + "L";
}
ig++;
Frame 99
trace("IG --->>>" + ig);
trace("Games --->>>" + games);
if (ig <= games) {
gotoAndPlay (96);
}
Frame 108
stop();
Frame 165
if (mtp) {
gotoAndPlay (232);
}
Frame 166
trace("back again!!");
if (mtp) {
played[myteamid]++;
played[my_opponents]++;
home = 1;
away = 0;
if (success) {
won[myteamid]++;
lost[my_opponents]++;
points[myteamid] = points[myteamid] + 3;
gfor[myteamid] = gfor[myteamid] + home;
gfor[my_opponents] = gfor[my_opponents] + away;
gagainst[myteamid] = gagainst[myteamid] + away;
gagainst[my_opponents] = gagainst[my_opponents] + home;
} else {
lost[myteamid]++;
won[my_opponents]++;
points[my_opponents] = points[my_opponents] + 3;
gfor[myteamid] = gfor[myteamid] + away;
gfor[my_opponents] = gfor[my_opponents] + home;
gagainst[myteamid] = gagainst[myteamid] + home;
gagainst[my_opponents] = gagainst[my_opponents] + away;
}
}
Frame 167
gotoAndPlay (353);
Frame 168
trace("BACK FROM TABLES");
Frame 169
if (group_round < 3) {
gotoAndPlay (75);
}
Frame 171
group_phase = false;
i = 1;
while (i <= 32) {
picked[i] = true;
i++;
}
qualifiers_2nd_phase = new Array();
picked[position[1]] = false;
picked[position[2]] = false;
picked[position[5]] = false;
picked[position[6]] = false;
picked[position[9]] = false;
picked[position[10]] = false;
picked[position[13]] = false;
picked[position[14]] = false;
picked[position[17]] = false;
picked[position[18]] = false;
picked[position[21]] = false;
picked[position[22]] = false;
picked[position[25]] = false;
picked[position[26]] = false;
picked[position[29]] = false;
picked[position[39]] = false;
qualifiers_2nd_phase[1] = position[1];
qualifiers_2nd_phase[2] = position[2];
qualifiers_2nd_phase[3] = position[5];
qualifiers_2nd_phase[4] = position[6];
qualifiers_2nd_phase[5] = position[9];
qualifiers_2nd_phase[6] = position[10];
qualifiers_2nd_phase[7] = position[13];
qualifiers_2nd_phase[8] = position[14];
qualifiers_2nd_phase[9] = position[17];
qualifiers_2nd_phase[10] = position[18];
qualifiers_2nd_phase[11] = position[21];
qualifiers_2nd_phase[12] = position[22];
qualifiers_2nd_phase[13] = position[25];
qualifiers_2nd_phase[14] = position[26];
qualifiers_2nd_phase[15] = position[29];
qualifiers_2nd_phase[16] = position[30];
i = 1;
while (i <= 16) {
trace("qualified ....." + qualifiers_2nd_phase[i]);
i++;
}
winners = team[myteamid];
winningt = myteamid;
num = 1;
i = winningt;
col = convert_col_to_number(colour[i]);
str = convert_col_to_number(stripe1[i]);
slv = convert_col_to_number(sleeves[i]);
cla = convert_col_to_number(collar[i]);
this["shirt" + num].gotoandstop(1);
this["shirt" + num].colour.gotoandstop(col);
this["shirt" + num].collar.gotoandstop(cla);
this["shirt" + num].sleeves.gotoandstop(slv);
this["shirt" + num].stripe1.gotoandstop(str);
Frame 228
trace("knock out stage");
gotoAndPlay (379);
Frame 232
team_diff = rating[myteamid] - rating[my_opponents];
if (s1tm1 == myteamid) {
team_diff++;
} else {
team_diff--;
}
team_diff = team_diff * -1;
trace(" rating[myteamid] " + rating[myteamid]);
trace(" rating[my_opponents] " + rating[my_opponents]);
trace("****ROUND **** " + round);
if (round == 0) {
ptarget = 15000 + (team_diff * 1000);
} else {
ptarget = (15000 * round) + ((team_diff * 1000) * round);
}
your_target = ptarget + " Points";
target_text = ptarget;
r1 = s1tm1;
r2 = s1tm2;
col = convert_col_to_number(colour[r1]);
str = convert_col_to_number(stripe1[r1]);
slv = convert_col_to_number(sleeves[r1]);
cla = convert_col_to_number(collar[r1]);
if (team[r1] == "Croatia") {
s1shirt1.gotoandstop(4);
} else {
s1shirt1.gotoandstop(1);
s1shirt1.colour.gotoandstop(col);
s1shirt1.collar.gotoandstop(cla);
s1shirt1.sleeves.gotoandstop(slv);
s1shirt1.stripe1.gotoandstop(str);
}
col = convert_col_to_number(colour[r2]);
str = convert_col_to_number(stripe1[r2]);
slv = convert_col_to_number(sleeves[r2]);
cla = convert_col_to_number(collar[r2]);
if (team[r2] == "Croatia") {
s1shirt2.gotoandstop(4);
} else {
s1shirt2.gotoandstop(1);
s1shirt2.colour.gotoandstop(col);
s1shirt2.collar.gotoandstop(cla);
s1shirt2.sleeves.gotoandstop(slv);
s1shirt2.stripe1.gotoandstop(str);
}
if (language == "fra") {
target_txt = ("Vous devez marquer " + your_target) + " pour gagner ce match";
}
if (language == "eng") {
target_txt = ("You must score " + your_target) + " to win this match";
}
if (language == "ger") {
target_txt = ("Sie m\u00FCssen in diesem Spiel " + your_target) + " erzielen, um dieses Spiel zu gewinnen";
}
if (language == "esp") {
target_txt = ("Tiene que marcar " + your_target) + " para hacerse con la victoria";
}
if (language == "por") {
target_txt = ("Tem de marcar " + your_target) + " para ganhar o jogo";
}
if (language == "ita") {
target_txt = ("In questa partita devi segnare almeno " + your_target) + " per vincere";
}
if (language == "rus") {
target_txt = (rus_target + " ") + your_target;
}
Frame 240
stop();
Frame 243
_quality = "high";
attempts = 10;
trace("kp" + keeps._xscale);
trace("kp" + keeps._yscale);
newsound = new Sound();
trace("game....." + myteamid);
trace("******************game....." + boselecta);
if ((boselecta == "Germany") or (boselecta == "Denmark")) {
duplicateMovieClip ("man-sleeves", "man", 1);
} else if (boselecta == "Croatia") {
duplicateMovieClip ("bristolr", "man", 1);
} else {
duplicateMovieClip ("owen", "man", 1);
}
flag1.gotoandstop(myteamid);
flag2.gotoandstop(myteamid);
flag3.gotoandstop(myteamid);
flag4.gotoandstop(myteamid);
flag5.gotoandstop(my_opponents);
flag6.gotoandstop(my_opponents);
flag7.gotoandstop(my_opponents);
if ((((((((((((boselecta == "Aberdeen") or (boselecta == "Hibernian")) or (boselecta == "Partick T")) or (boselecta == "Livingston")) or (boselecta == "St Mirren")) or (boselecta == "East Fife")) or (boselecta == "Hearts")) or (boselecta == "Dundee Utd")) or (boselecta == "Dundee")) or (boselecta == "Motherwell")) or (boselecta == "Airdrie")) or (boselecta == "Kilmarnock")) {
celticflag._visible = true;
celticflag.gotoandstop(2);
}
if (boselecta == "Rangers") {
celticflag._visible = true;
celticflag.gotoandstop(3);
}
if ((boselecta == "Cardiff") or (boselecta == "Wrexham")) {
celticflag._visible = true;
celticflag.gotoandstop(4);
}
if (boselecta == "Swansea") {
celticflag._visible = true;
celticflag.gotoandstop(5);
}
_level0.tcat = colour[myteamid];
time_to_next_goal = 0;
opponent1.bubble._visible = false;
opponent2.bubble._visible = false;
opponent3.bubble._visible = false;
if (td < 10) {
wenger_is_a_poof = (" " + td1) + "goals";
} else {
wenger_is_a_poof = td1 + "goals";
}
man._x = 450;
man._y = 300;
score = 0;
peep.gotoandplay("whistle");
songtxt = "";
Instance of Symbol 509 MovieClip "opponent2" in Frame 243
onClipEvent (load) {
function opp_convert_col_to_hex(team_in) {
if (team_in == "red") {
rcol = 16711680 /* 0xFF0000 */;
}
if (team_in == "white") {
rcol = 16777215 /* 0xFFFFFF */;
}
if (team_in == "blue") {
rcol = 255;
}
if (team_in == "black") {
rcol = 0;
}
if (team_in == "yellow") {
rcol = 16776960 /* 0xFFFF00 */;
}
if (team_in == "green") {
rcol = 3394560 /* 0x33CC00 */;
}
if (team_in == "claret") {
rcol = 8650752 /* 0x840000 */;
}
if (team_in == "skyblue") {
rcol = 52479;
}
if (team_in == "orange") {
rcol = 16750848 /* 0xFF9900 */;
}
if (team_in == "rovers") {
rcol = 16777215 /* 0xFFFFFF */;
}
if (team_in == "darkblue") {
rcol = 2041655 /* 0x1F2737 */;
}
return(rcol);
}
if (_level0.team[_level0.my_opponents] == "Croatia") {
_level0.opponent1.gotoandstop(2);
_level0.opponent2.gotoandstop(2);
_level0.opponent3.gotoandstop(2);
} else {
trace((("my opps " + _level0.my_opponents) + " ") + _level0.socks[_level0.my_opponents]);
myColor = new Color(_level0.opponent1.man.socks);
myColor.setRGB(opp_convert_col_to_hex(_level0.socks[_level0.my_opponents]));
myColor1 = new Color(_level0.opponent1.man.shorts);
myColor1.setRGB(opp_convert_col_to_hex(_level0.shorts[_level0.my_opponents]));
myColor2 = new Color(_level0.opponent1.man.shirt);
myColor2.setRGB(opp_convert_col_to_hex(_level0.colour[_level0.my_opponents]));
myColor = new Color(_level0.opponent2.man.socks);
myColor.setRGB(opp_convert_col_to_hex(_level0.socks[_level0.my_opponents]));
myColor1 = new Color(_level0.opponent2.man.shorts);
myColor1.setRGB(opp_convert_col_to_hex(_level0.shorts[_level0.my_opponents]));
myColor2 = new Color(_level0.opponent2.man.shirt);
myColor2.setRGB(opp_convert_col_to_hex(_level0.colour[_level0.my_opponents]));
myColor = new Color(_level0.opponent3.man.socks);
myColor.setRGB(opp_convert_col_to_hex(_level0.socks[_level0.my_opponents]));
myColor1 = new Color(_level0.opponent3.man.shorts);
myColor1.setRGB(opp_convert_col_to_hex(_level0.shorts[_level0.my_opponents]));
myColor2 = new Color(_level0.opponent3.man.shirt);
myColor2.setRGB(opp_convert_col_to_hex(_level0.colour[_level0.my_opponents]));
myColor3 = new Color(_level0.opponent1.man.sleeves);
myColor3.setRGB(opp_convert_col_to_hex(_level0.sleeves[_level0.my_opponents]));
myColor3 = new Color(_level0.opponent2.man.sleeves);
myColor3.setRGB(opp_convert_col_to_hex(_level0.sleeves[_level0.my_opponents]));
myColor3 = new Color(_level0.opponent3.man.sleeves);
myColor3.setRGB(opp_convert_col_to_hex(_level0.sleeves[_level0.my_opponents]));
}
}
Instance of Symbol 518 MovieClip "keane" in Frame 243
onClipEvent (load) {
function kick() {
if (!_level0.kicked) {
_level0.man.gotoandplay("kick");
_level0.kicked = true;
}
}
}
onClipEvent (mouseDown) {
kick();
}
onClipEvent (enterFrame) {
if (Key.isDown(39) or Key.isDown(88)) {
_level0.man._x = _level0.man._x + 5;
if (_level0.man._x > 500) {
_level0.man._x = 500;
}
}
if (Key.isDown(37) or Key.isDown(90)) {
_level0.man._x = _level0.man._x - 5;
if (_level0.man._x < 50) {
_level0.man._x = 50;
}
}
if (Key.isDown(32)) {
kick();
}
}
Instance of Symbol 591 MovieClip "owen" in Frame 243
onClipEvent (load) {
function draw_kit() {
trace("**** myteamid" + _level0.myteamid);
trace("socks = " + _level0.socks[_level0.myteamid]);
trace("shirt = " + _level0.colour[_level0.myteamid]);
trace("stripe1 = " + _level0.stripe1[_level0.myteamid]);
trace("shorts = " + _level0.shorts[_level0.myteamid]);
myColor = new Color(this.socks);
myColor.setRGB(convert_col_to_hex(_level0.socks[_level0.myteamid]));
myColor1 = new Color(this.shorts);
myColor1.setRGB(convert_col_to_hex(_level0.shorts[_level0.myteamid]));
myColor2 = new Color(this.shirt);
myColor2.setRGB(convert_col_to_hex(_level0.colour[_level0.myteamid]));
myColor3 = new Color(this.cuffs);
myColor3.setRGB(convert_col_to_hex(_level0.socks_top[_level0.myteamid]));
myColor4 = new Color(this.stripes);
myColor4.setRGB(convert_col_to_hex(_level0.stripe1[_level0.myteamid]));
}
function convert_col_to_hex(team_in) {
if (team_in == "red") {
rcol = 16711680 /* 0xFF0000 */;
}
if (team_in == "white") {
rcol = 16777215 /* 0xFFFFFF */;
}
if (team_in == "blue") {
rcol = 255;
}
if (team_in == "black") {
rcol = 0;
}
if (team_in == "yellow") {
rcol = 16776960 /* 0xFFFF00 */;
}
if (team_in == "darkblue") {
rcol = 2041655 /* 0x1F2737 */;
}
if (team_in == "green") {
rcol = 65280;
rcol = 4692578 /* 0x479A62 */;
rcol = 3394560 /* 0x33CC00 */;
}
if (team_in == "claret") {
rcol = 8650752 /* 0x840000 */;
}
if (team_in == "skyblue") {
rcol = 52479;
}
if (team_in == "orange") {
rcol = 16750848 /* 0xFF9900 */;
}
if (team_in == "rovers") {
rcol = 16777215 /* 0xFFFFFF */;
}
return(rcol);
}
draw_kit();
}
Instance of Symbol 628 MovieClip "man-sleeves" in Frame 243
onClipEvent (load) {
function draw_kit() {
trace("socks = " + _level0.socks[_level0.myteamid]);
trace("shirt = " + _level0.colour[_level0.myteamid]);
trace("stripe1 = " + _level0.stripe1[_level0.myteamid]);
trace("shorts = " + _level0.shorts[_level0.myteamid]);
myColor = new Color(this.socks);
myColor.setRGB(convert_col_to_hex(_level0.socks[_level0.myteamid]));
myColor1 = new Color(this.shorts);
myColor1.setRGB(convert_col_to_hex(_level0.shorts[_level0.myteamid]));
myColor2 = new Color(this.shirt);
myColor2.setRGB(convert_col_to_hex(_level0.colour[_level0.myteamid]));
myColor3 = new Color(this.cuffs);
myColor3.setRGB(convert_col_to_hex(_level0.socks_top[_level0.myteamid]));
myColor4 = new Color(this.stripes);
myColor4.setRGB(convert_col_to_hex(_level0.stripe1[_level0.myteamid]));
myColor5 = new Color(this.sleeves);
myColor5.setRGB(convert_col_to_hex(_level0.sleeves[_level0.myteamid]));
}
function convert_col_to_hex(team_in) {
if (team_in == "red") {
rcol = 16711680 /* 0xFF0000 */;
}
if (team_in == "white") {
rcol = 16777215 /* 0xFFFFFF */;
}
if (team_in == "blue") {
rcol = 255;
}
if (team_in == "black") {
rcol = 0;
}
if (team_in == "yellow") {
rcol = 16776960 /* 0xFFFF00 */;
}
if (team_in == "green") {
rcol = 3394560 /* 0x33CC00 */;
}
if (team_in == "claret") {
rcol = 8650752 /* 0x840000 */;
}
if (team_in == "skyblue") {
rcol = 52479;
}
if (team_in == "orange") {
rcol = 16750848 /* 0xFF9900 */;
}
if (team_in == "rovers") {
rcol = 16777215 /* 0xFFFFFF */;
}
return(rcol);
}
draw_kit();
}
Instance of Symbol 641 MovieClip "bristolr" in Frame 243
onClipEvent (load) {
function draw_kit() {
myColor1 = new Color(this.shorts);
myColor1.setRGB(convert_col_to_hex(_level0.shorts[_level0.myteamid]));
myColor2 = new Color(this.shirt);
myColor2.setRGB(convert_col_to_hex(_level0.colour[_level0.myteamid]));
myColor3 = new Color(this.cuffs);
myColor3.setRGB(convert_col_to_hex(_level0.socks_top[_level0.myteamid]));
myColor5 = new Color(this.socks);
myColor5.setRGB(convert_col_to_hex(_level0.socks[_level0.myteamid]));
myColor4 = new Color(this.quarters);
myColor4.setRGB(convert_col_to_hex(_level0.stripe1[_level0.myteamid]));
}
function convert_col_to_hex(team_in) {
if (team_in == "red") {
rcol = 16711680 /* 0xFF0000 */;
}
if (team_in == "white") {
rcol = 16777215 /* 0xFFFFFF */;
}
if (team_in == "blue") {
rcol = 255;
}
if (team_in == "black") {
rcol = 0;
}
if (team_in == "yellow") {
rcol = 16776960 /* 0xFFFF00 */;
}
if (team_in == "green") {
rcol = 65280;
rcol = 4692578 /* 0x479A62 */;
}
if (team_in == "claret") {
rcol = 13382502 /* 0xCC3366 */;
}
if (team_in == "skyblue") {
rcol = 52479;
}
if (team_in == "orange") {
rcol = 16750848 /* 0xFF9900 */;
}
if (team_in == "rovers") {
rcol = 16777215 /* 0xFFFFFF */;
}
return(rcol);
}
draw_kit();
}
Frame 244
man.gotoandstop(1);
keeps.gotoandplay(1);
keeps._x = 263;
status = 0;
bounce = 0;
bounced = 1;
bounceyball = 0;
cchecked = false;
end = 0;
dy = 0;
ybit = 8;
lpost = 135;
rpost = 430;
barpos = 50;
barh = 105;
posttolerance = 13;
bwidth = 10;
rightcorner = 0;
leftcorner = 0;
corner = 0;
topnet = 0;
hitbar = false;
rposthit = false;
lposthit = false;
checked = false;
innet = false;
dive = false;
_level0.kicked = false;
_level0.checked = false;
Frame 246
x = 0;
y = 0;
z = 0;
move_count = 0;
man1chk = false;
man2chk = false;
man3chk = false;
opponent1.bubble._visible = false;
opponent2.bubble._visible = false;
opponent3.bubble._visible = false;
held = false;
velocity = random(5) + 18;
angle = random(5) + 35;
complete_miss = false;
bwidth = 12;
hitkeeper = 0;
t = 0;
cangle = Math.cos((Math.PI/180) * angle);
sangle = Math.sin((Math.PI/180) * angle);
booted = false;
checked = false;
sc = 0;
no_dive = true;
stopAllSounds();
Frame 247
function saved_check() {
hitkeeper = 0;
if (keeps.hittest(ball._x, ball._y, true)) {
hitkeeper = 1;
}
if (keeps.hittest(ball._x - bwidth, ball._y - bwidth, true)) {
hitkeeper = 1;
}
if (keeps.hittest(ball._x + bwidth, ball._y - bwidth, true)) {
hitkeeper = 1;
}
if (keeps.hittest(ball._x, ball._y - bwidth, true)) {
hitkeeper = 1;
}
if (keeps.hittest(ball._x - bwidth, ball._y, true)) {
hitkeeper = 1;
}
if (keeps.hittest(ball._x + bwidth, ball._y, true)) {
hitkeeper = 1;
}
if (hitkeeper == 0) {
trace("not hit keeper bill");
} else {
trace("borft keeper");
peep.gotoandplay("near_miss");
}
trace("dbx = " + dbx);
if ((dbx > 1) and (xball < 170)) {
leftcorner = 1;
rightcorner = 0;
corner = 1;
trace("left corner");
}
if ((dbx < 1) and (xball > 400)) {
rightcorner = 1;
leftcorner = 0;
corner = 1;
trace("right corner");
}
if (z > 75) {
trace("top net set to 1 when z = " + z);
topnet = 1;
znet = z;
}
}
t = t + 0.06;
move_count++;
if ((move_count > 50) and (move_count <= 60)) {
}
if (booted == 0) {
yball = 300;
xball = 0 + (y * 10);
y = ((cangle * velocity) * t) + bounce;
z = ((sangle * velocity) * t) - ((5 * t) * t);
z = z * 10;
if (z < 0) {
trace("bounce");
t = 0;
bounce = y;
bounced = 2;
bounceyball = yball - 200;
velocity = velocity * 0.7;
z = 0;
}
yscale = 10 + ((90 * yball) / 325);
} else if (innet == false) {
xball = xball - dbx;
yball = yball - ybit;
z = z + (dby / 13);
yscale = 10 + ((90 * yball) / 325);
if ((yball < 160) and (checked == false)) {
saved_check();
checked = true;
trace("xball = " + xball);
trace("z = " + z);
if (hitkeeper == 0) {
trace("lpost " + Math.abs(xball - lpost));
trace("rpost " + Math.abs(xball - rpost));
trace("bar " + (barpos - ball._y));
if ((Math.abs(xball - rpost) < posttolerance) and (z < barh)) {
rposthit = true;
trace("post--r");
ybit = -ybit;
dbx = -10;
score = score + (200 / bounced);
crink.gotoandplay(2);
if (random(10) > 5) {
peep.gotoandplay("near_miss");
}
}
if ((Math.abs(xball - lpost) < posttolerance) and (z < barh)) {
lposthit = true;
trace("post--l");
ybit = -ybit;
dbx = 10;
score = score + (200 / bounced);
crink.gotoandplay(2);
if (random(10) > 5) {
peep.gotoandplay("near_miss");
}
}
if ((((z >= (barh - 15)) and (z <= barh)) and (xball > lpost)) and (xball < rpost)) {
if (lposthit or rposthit) {
hitbar = false;
} else {
hitbar = true;
trace("bar !!!!");
ybit = ybit;
dbx = dbx;
dby = 10;
score = score + (200 / bounced);
crink.gotoandplay(2);
if (random(10) > 5) {
peep.gotoandplay("near_miss");
}
}
}
if ((((((xball > lpost) and (xball < rpost)) and (z < barh)) and (rposthit == false)) and (lposthit == false)) and (hitbar == false)) {
lposthit = false;
rposthit = false;
hitbar = false;
innet = true;
trace("GOOOOOOOOOAAAAAAAALLLLLLLLLL");
}
} else {
score = score + (400 / bounced);
if (divedirn == "left") {
ybit = -ybit;
dbx = 10;
dby = -dby;
} else {
ybit = -ybit;
dbx = -10;
dby = -dby;
}
if (no_dive) {
trace("zzz=" + z);
if (z < 30) {
keeps.gotoandstop("low_catch");
} else if (z < 60) {
keeps.gotoandstop("mid_catch");
} else {
keeps.gotoandstop("high_catch");
}
held = true;
}
}
}
} else {
xball = xball - dbx;
yball = yball - 6;
z = z + (dby / 12);
yscale = 10 + ((90 * yball) / 325);
if (rightcorner == 1) {
trace("RIGHTCORNER");
dbx = 10;
rightcorner = 0;
}
if (leftcorner == 1) {
trace("leftCORNER********");
dbx = -10;
leftcorner = 0;
}
if (topnet == 1) {
trace("top of the net !");
z = znet - 20;
}
if (yball < 150) {
end = 1;
score = score + (5000 / bounced);
sc = 1;
_level0.goalnet.gotoandplay("goal");
_level0.peep.gotoandplay("goal");
time_to_next_goal++;
wenger_is_a_poof = wenger_is_a_poof + String(bounced - 1);
jim = random(4);
jimb = 1;
while (jimb <= jim) {
j2im = random(4);
numlarry = array("4", "r", "5", "e");
wenger_is_a_poof = wenger_is_a_poof + numlarry[j2im];
jimb++;
}
}
}
if (yball < 100) {
end = 1;
}
if (hitbar) {
if (z > 200) {
end = 1;
}
}
if ((lposthit or rposthit) or (hitkeeper == 1)) {
if (yball > 200) {
end = 1;
}
}
if (held) {
ball._visible = false;
ball2._visible = false;
shadow._visible = false;
} else {
if (yball < 130) {
shadow._visible = false;
} else {
shadow._visible = true;
}
if (innet == false) {
setProperty("/ball", _y , yball - z);
setProperty("/ball", _x , xball);
setProperty("/ball", _xscale , yscale * 0.8);
setProperty("/ball", _yscale , yscale * 0.8);
ball2._visible = false;
ball._visible = true;
} else {
setProperty("/ball2", _y , yball - z);
setProperty("/ball2", _x , xball);
setProperty("/ball2", _xscale , yscale);
setProperty("/ball2", _yscale , yscale);
ball._visible = false;
ball2._visible = true;
}
setProperty("/shadow", _y , yball);
setProperty("/shadow", _x , xball);
setProperty("/shadow", _xscale , yscale);
setProperty("/shadow", _yscale , yscale);
}
Frame 248
if ((!man1chk) and (shadow._y < 240)) {
man1chk = true;
trace("CHECK***********");
if (opponent1.man.hitTest(ball._x, ball._y, false)) {
dbx = dbx - (10 + random(8));
man1chk = 2;
}
}
if ((!man2chk) and (shadow._y < 200)) {
man2chk = true;
trace("CHECK***********");
if (opponent2.man.hitTest(ball._x, ball._y, false)) {
dbx = dbx - (20 + random(8));
man2chk = 2;
}
}
if ((!man3chk) and (shadow._y < 200)) {
man3chk = true;
trace("CHECK***********");
if (opponent3.man.hitTest(ball._x, ball._y, false)) {
dbx = (dbx + 10) + random(8);
man3chk = 2;
}
}
if (((_level0.kicked == true) and (cchecked == false)) and man.finished) {
cchecked = true;
dbx = (man._x + 15) - xball;
dby = z;
diag = int(dbx);
trace((("BANG!" + z) + " ") + dbx);
if ((z < 40) and (Math.abs(dbx) < 30)) {
booted = true;
innet = false;
score = score + (100 / bounced);
shotsnd.gotoandPlay(2);
} else {
complete_miss = true;
}
}
dby = z;
if (dive and no_dive) {
if (destination > keeps._x) {
keeps._x = keeps._x + 1;
}
if (destination < keeps._x) {
keeps._x = keeps._x - 1;
}
}
if ((booted == true) and (dive == false)) {
dive = true;
destination = xball - (18 * dbx);
divedirn = "up";
if (random(10) < 8) {
if ((destination > 310) and (destination < 500)) {
divedirn = "right";
keeps.gotoandplay("dive_right");
no_dive = false;
}
if ((destination < 250) and (destination > 50)) {
no_dive = false;
divedirn = "left";
keeps.gotoandplay("dive_left");
}
}
}
if (t > 7) {
end = 1;
}
if ((end == 0) and (xball < 600)) {
gotoAndPlay (247);
}
Frame 249
if (sc == 1) {
songtxt = song;
if (random(100) > 80) {
opponent2.bubble.message = "you want some ?!";
}
} else {
songtxt = "";
}
mb2 = td;
if (complete_miss and (random(100) > 50)) {
opponent1.bubble.message = "unlucky !";
opponent1.bubble._visible = true;
}
if ((random(100) > 90) and (sc != 1)) {
opponent3.bubble.message = boselecta + " are clattie!";
} else {
if (man1chk == 2) {
opponent1.bubble.message = " THAT REALLY HURT !";
opponent1.bubble._visible = true;
}
if (man2chk == 2) {
opponent2.bubble.message = " OI !";
opponent2.bubble._visible = true;
}
if (man3chk == 2) {
opponent3.bubble.message = " Ouch !";
opponent3.bubble._visible = true;
}
}
Frame 272
if (sc == 0) {
attempts--;
}
if (attempts > 0) {
gotoAndPlay (244);
}
Frame 273
peep.gotoandplay("time_up");
Frame 281
success = score > ptarget;
in_play = score;
temp = score;
timer = in_play;
in_play = in_play > (score - 1);
gandalf = mb2;
mb2 = int((getTimer() - mb22) / 1000);
if (success) {
result_movie.gotoandstop(1);
} else {
result_movie.gotoandstop(2);
}
man._x = -450;
Frame 352
_quality = "high";
if (group_phase) {
gotoAndPlay (166);
} else {
gotoAndPlay (554);
}
Frame 353
function pad_name(name_in, len) {
wlength = name_in.length;
name_out = name_in;
extra_spaces = len - wlength;
es = 1;
while (es <= extra_spaces) {
name_out = name_out + " ";
es++;
}
return(name_out);
}
i = 1;
while (i <= 32) {
this["t" + i] = pad_name(team[i], 12);
this["t" + i] = (((((((this["t" + i] + played[i]) + " ") + won[i]) + " ") + drawn[i]) + " ") + lost[i]) + " ";
if (gfor[i] > 9) {
this["t" + i] = (this["t" + i] + gfor[i]) + " ";
} else {
this["t" + i] = (this["t" + i] + gfor[i]) + " ";
}
if (gagainst[i] > 9) {
this["t" + i] = (this["t" + i] + gagainst[i]) + " ";
} else {
this["t" + i] = (this["t" + i] + gagainst[i]) + " ";
}
this["t" + i] = this["t" + i] + points[i];
i++;
}
grp = 1;
while (grp <= 4) {
base_index = 1 + ((grp - 1) * 4);
base_offset = (grp - 1) * 4;
position[base_index] = base_index;
position[base_index + 1] = base_index + 1;
position[base_index + 2] = base_index + 2;
position[base_index + 3] = base_index + 3;
allsorted = false;
while (!allsorted) {
allsorted = true;
i = 1;
while (i <= 3) {
gd1 = gfor[position[base_offset + i]] - gagainst[position[base_offset + i]];
gd2 = gfor[position[(base_offset + 1) + i]] - gagainst[position[(base_offset + 1) + i]];
level_with_better_gd = (points[position[base_offset + i]] == points[position[(base_offset + i) + 1]]) and (gd2 > gd1);
level_with_better_goals = ((points[position[base_offset + i]] == points[position[(base_offset + i) + 1]]) and (gd2 == gd1)) and (gfor[position[base_offset + i]] < gfor[position[(base_offset + i) + 1]]);
if (((points[position[base_offset + i]] < points[position[(base_offset + i) + 1]]) or level_with_better_gd) or level_with_better_goals) {
allsorted = false;
temp = position[base_offset + i];
position[base_offset + i] = position[(base_offset + i) + 1];
position[(base_offset + i) + 1] = temp;
}
i++;
}
}
i = base_index;
while (i <= (base_index + 3)) {
this["t" + i] = pad_name(team[position[i]], 12);
this["t" + i] = (((((((this["t" + i] + played[position[i]]) + " ") + won[position[i]]) + " ") + drawn[position[i]]) + " ") + lost[position[i]]) + " ";
if (gfor[position[i]] > 9) {
this["t" + i] = (this["t" + i] + gfor[position[i]]) + " ";
} else {
this["t" + i] = (this["t" + i] + gfor[position[i]]) + " ";
}
if (gagainst[position[i]] > 9) {
this["t" + i] = (this["t" + i] + gagainst[position[i]]) + " ";
} else {
this["t" + i] = (this["t" + i] + gagainst[position[i]]) + " ";
}
this["t" + i] = this["t" + i] + points[position[i]];
i++;
}
grp++;
}
Frame 377
stop();
Frame 378
gotoAndPlay (168);
Frame 379
i = 1;
while (i <= 8) {
num = i;
this["t" + num] = "";
i++;
}
round = 0;
games = 4;
qualifiers_3 = new array();
Frame 383
round++;
heading_text = new Array();
heading_text[1] = "QUARTER FINALS";
heading_text[2] = "SEMI FINALS";
heading_text[3] = "FINAL";
heading = heading_text[round];
i = 1;
while (i <= maxgames) {
num = i;
this["v" + num] = "v";
if (i > games) {
this["v" + num] = "";
}
i++;
}
i = 1;
while (i <= teams) {
this["shirt" + i].gotoandstop(2);
i++;
}
Frame 392
game = 1;
mtp = false;
Frame 393
function convert_col_to_number(team_in) {
if (team_in == "red") {
rcol = 1;
}
if (team_in == "white") {
rcol = 2;
}
if (team_in == "blue") {
rcol = 3;
}
if (team_in == "black") {
rcol = 4;
}
if (team_in == "yellow") {
rcol = 5;
}
if (team_in == "green") {
rcol = 6;
}
if (team_in == "claret") {
rcol = 7;
}
if (team_in == "skyblue") {
rcol = 8;
}
if (team_in == "orange") {
rcol = 9;
}
return(rcol);
}
round_2_draw = new array(0, 1, 4, 2, 3, 5, 8, 6, 7);
round_3_draw = new array(0, 1, 3, 2, 4);
round_4_draw = new array(0, 1, 2);
if (round == 1) {
r1 = qualifiers_2nd_phase[round_2_draw[(game * 2) - 1]];
r2 = qualifiers_2nd_phase[round_2_draw[game * 2]];
picked[r1] = true;
picked[r2] = true;
}
if (round == 2) {
r1 = qualifiers_3[round_3_draw[(game * 2) - 1]];
r2 = qualifiers_3[round_3_draw[game * 2]];
picked[r1] = true;
picked[r2] = true;
}
if (round == 3) {
r1 = qualifiers_3[round_4_draw[(game * 2) - 1]];
r2 = qualifiers_3[round_4_draw[game * 2]];
picked[r1] = true;
picked[r2] = true;
}
if (round == 4) {
r1 = qualifiers_3[round_5_draw[(game * 2) - 1]];
r2 = qualifiers_3[round_5_draw[game * 2]];
picked[r1] = true;
picked[r2] = true;
}
num = (game * 2) - 1;
this["t" + num] = pad_name(team[r1], 12);
pos[num] = r1;
col = convert_col_to_number(colour[r1]);
str = convert_col_to_number(stripe1[r1]);
slv = convert_col_to_number(sleeves[r1]);
cla = convert_col_to_number(collar[r1]);
if (team[r1] == "Croatia") {
this["shirt" + num].gotoandstop(4);
} else {
this["shirt" + num].gotoandstop(1);
this["shirt" + num].colour.gotoandstop(col);
this["shirt" + num].collar.gotoandstop(cla);
this["shirt" + num].sleeves.gotoandstop(slv);
this["shirt" + num].stripe1.gotoandstop(str);
}
num = game * 2;
this["t" + num] = pad_name(team[r2], 12);
pos[num] = r2;
col = convert_col_to_number(colour[r2]);
slv = convert_col_to_number(sleeves[r2]);
str = convert_col_to_number(stripe1[r2]);
cla = convert_col_to_number(collar[r2]);
if (team[r2] == "Croatia") {
this["shirt" + num].gotoandstop(4);
} else {
this["shirt" + num].gotoandstop(1);
this["shirt" + num].colour.gotoandstop(col);
this["shirt" + num].collar.gotoandstop(cla);
this["shirt" + num].sleeves.gotoandstop(slv);
this["shirt" + num].stripe1.gotoandstop(str);
}
Frame 394
game++;
if (game <= games) {
gotoAndPlay (393);
}
Frame 403
ig = 1;
Frame 404
numh = (ig * 2) - 1;
numa = ig * 2;
tm1 = pos[numh];
tm2 = pos[numa];
if ((tm1 == myteamid) or (tm2 == myteamid)) {
trace("my team is playing !!");
my_round++;
mtp = true;
if (tm1 == myteamid) {
my_opponents = tm2;
} else {
my_opponents = tm1;
}
this_cycle = true;
s1t1 = team[pos[numh]];
s1t2 = team[pos[numa]];
s1tm1 = tm1;
s1tm2 = tm2;
my_game_id = ig;
} else {
this_cycle = false;
}
Frame 410
homeodds = new array(10);
scoreodds = new array(10);
score_hg = new array(10);
score_ag = new array(10);
homeodds[0] = 50;
homeodds[1] = 55;
homeodds[2] = 59;
homeodds[3] = 63;
homeodds[4] = 67;
homeodds[5] = 73;
homeodds[6] = 77;
homeodds[7] = 81;
homeodds[8] = 85;
homeodds[9] = 89;
homeodds[10] = 93;
score_hg[0] = 1;
score_ag[0] = 0;
scoreodds[0] = 30;
score_hg[1] = 2;
score_ag[1] = 0;
scoreodds[1] = 60;
score_hg[2] = 2;
score_ag[2] = 1;
scoreodds[2] = 70;
score_hg[3] = 3;
score_ag[3] = 0;
scoreodds[3] = 75;
score_hg[4] = 3;
score_ag[4] = 1;
scoreodds[4] = 80;
score_hg[5] = 3;
score_ag[5] = 2;
scoreodds[5] = 84;
score_hg[6] = 4;
score_ag[6] = 0;
scoreodds[6] = 86;
score_hg[7] = 4;
score_ag[7] = 1;
scoreodds[7] = 90;
score_hg[8] = 4;
score_ag[8] = 2;
scoreodds[8] = 94;
score_hg[9] = 4;
score_ag[9] = 3;
scoreodds[9] = 97;
score_hg[10] = 5;
score_ag[10] = 0;
scoreodds[10] = 100;
difference = rating[tm1] - rating[tm2];
minus = false;
if (difference < 0) {
difference = -1 * difference;
minus = true;
}
ho = homeodds[difference];
if (minus) {
ho = 100 - ho;
}
scorenumber = random(100);
score_random = random(100);
trace("t1 = " + team[tm1]);
trace("t2 = " + team[tm2]);
trace("diff = " + difference);
trace("ho= " + ho);
found_scr = false;
isc = 0;
while (isc <= 10) {
trace("isc= " + isc);
trace("odds= " + scoreodds[isc]);
if (!found_scr) {
if (score_random < scoreodds[isc]) {
gls1 = score_hg[isc];
gls2 = score_ag[isc];
found_scr = true;
}
}
isc++;
}
if (scorenumber < ho) {
home = gls1;
away = gls2;
} else {
home = gls2;
away = gls1;
}
Frame 411
if (!this_cycle) {
if (home == away) {
home++;
}
this["t" + numh] = (this["t" + numh] + " ") + home;
this["t" + numa] = (this["t" + numa] + " ") + away;
if (home > away) {
qualifiers_3[ig] = tm1;
} else {
qualifiers_3[ig] = tm2;
}
} else {
this["t" + numh] = (this["t" + numh] + " ") + "L";
this["t" + numa] = (this["t" + numa] + " ") + "L";
}
ig++;
Frame 415
if (ig <= games) {
gotoAndPlay (404);
}
Frame 416
stop();
Frame 553
if (mtp) {
gotoAndPlay (232);
}
Frame 554
trace("back again!!");
if (mtp) {
if (success) {
qualifiers_3[my_game_id] = myteamid;
} else {
qualifiers_3[my_game_id] = my_opponents;
}
}
Frame 557
games = games / 2;
if (games >= 1) {
i = 1;
while (i <= teams) {
num = i;
this["t" + num] = "";
i++;
}
gotoAndPlay (383);
}
Frame 559
winners = team[qualifiers_3[1]];
winningt = qualifiers_3[1];
num = 1;
if (winners == boselecta) {
we_won = true;
my_round++;
} else {
we_won = false;
}
num = 1;
i = winningt;
lfc_shirt._visible = false;
shirt1._visible = true;
col = convert_col_to_number(colour[i]);
str = convert_col_to_number(stripe1[i]);
slv = convert_col_to_number(sleeves[i]);
cla = convert_col_to_number(collar[i]);
if (team[i] == "Croatia") {
this["shirt" + num].gotoandstop(4);
} else {
this["shirt" + num].gotoandstop(1);
this["shirt" + num].colour.gotoandstop(col);
this["shirt" + num].collar.gotoandstop(cla);
this["shirt" + num].sleeves.gotoandstop(slv);
this["shirt" + num].stripe1.gotoandstop(str);
}
Frame 560
Frame 635
gotoAndStop (1148);
Frame 1148
function jencrypt(s_in, thekey) {
var w = 0;
var chk = 0;
var l_in;
var l_key;
var i;
var j;
var k;
var o;
var start_idx;
var s_out;
var temp;
var temp2;
var temp3;
s_out = "";
l_in = s_in.length;
l_key = thekey.length;
i = 0;
while (i < l_in) {
w = w ^ s_in.charCodeAt(i);
i++;
}
start_idx = w % l_key;
j = start_idx;
i = 0;
while (i < l_in) {
k = thekey.charCodeAt(j);
o = s_in.charCodeAt(i) + (i + 1);
chk = chk ^ o;
temp = "00" + (k ^ (o + ""));
s_out = s_out + temp.substring(temp.length - 3, temp.length);
j = j + 1;
if (j >= l_key) {
j = 0;
}
i++;
}
i = l_in;
while (i < l_key) {
k = thekey.charCodeAt(j);
o = 32 + (i + 1);
chk = chk ^ o;
temp = "00" + (k ^ (o + ""));
s_out = s_out + temp.substring(temp.length - 3, temp.length);
j = j + 1;
if (j >= l_key) {
j = 0;
}
i++;
}
temp = "00" + chk;
temp = temp.substring(temp.length - 3, temp.length);
temp2 = "00" + ((start_idx + 1) + "");
temp2 = temp2.substring(temp2.length - 3, temp2.length);
temp = (temp + temp2) + s_out;
return(temp);
}
a_raw = "45972";
b_raw = String(subid[boselectan]);
c_raw = String(my_round);
a = jencrypt(a_raw, "NoSiLa9");
b = jencrypt(b_raw, "NoSiLa9");
c = jencrypt(c_raw, "NoSiLa9");
filename = "/asp/Games/scoring/uefacom123pele.asp";
return_message = "idle";
man._x = -450;
locked = true;
man._y = -300;
_level0.bacon = (_level0.boselectan + _level0.mb3) + _level0.timer;
stop();
Instance of Symbol 759 MovieClip "xyz" in Frame 1148
onClipEvent (load) {
function send() {
a = _level0.a;
b = _level0.b;
c = _level0.c;
filename = _level0.filename;
command = "update";
trace("send to ..." + filename);
if (_level0.locked) {
this.loadVariables((filename + "?") + int(Math.random() * 100000), "POST");
_level0.locked = false;
}
}
}
onClipEvent (data) {
_level0.return_message = return_message;
}
Frame 1150
gotoAndStop (1151);
Frame 1151
stop();
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 3
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 82 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 82 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 85 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 88 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 89 MovieClip [FScrollBarSymbol] Frame 1
#initclip 4
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 90 MovieClip [FListItemSymbol] Frame 1
#initclip 9
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 91 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
#endinitclip
Symbol 92 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 6
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var LOWEST_DEPTH = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", LOWEST_DEPTH);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var tmpLabel = "";
if (itmObj.label != undefined) {
tmpLabel = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var i in itmObj) {
if (i != "__ID__") {
tmpLabel = (itmObj[i] + ", ") + tmpLabel;
}
}
tmpLabel = tmpLabel.substring(0, tmpLabel.length - 2);
} else {
tmpLabel = itmObj;
}
if (this.fLabel_mc.labelField.text != tmpLabel) {
this.fLabel_mc.setLabel(tmpLabel);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 93 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var item = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(item);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var uniqueID in this.selected) {
var tmpInd = this.selected[uniqueID].sIndex;
if (tmpInd != undefined) {
return(tmpInd);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var item = this.getSelectedItem();
return(((item.data == undefined) ? (item.label) : (item.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var i = 0;
while (i < obj.length) {
var value = ((typeof(obj[i]) == "string") ? ({label:obj[i]}) : (obj[i]));
this.dataProvider.addItem(value);
i++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var limit = Math.min(this.numDisplayed, this.getLength());
var i = 0;
while (i < limit) {
this.container_mc[("fListItem" + i) + "_mc"].setEnabled(this.enable);
i++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + i), this.isSelected(this.topDisplayed + i));
i++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var i = 0;
while (i < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + i) + "_mc", 10 + i, {controller:this, itemNum:i});
var item_mc = this.container_mc[("fListItem" + i) + "_mc"];
var offset = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
item_mc.setSize(this.width - offset, this.itmHgt);
item_mc._y = (this.itmHgt - 2) * i;
i++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var i in this.selected) {
if ((this.selected[i].sIndex != undefined) && (this.selected[i].sIndex >= firstRow)) {
this.selected[i].sIndex = this.selected[i].sIndex + ((lastRow - firstRow) + 1);
this.setSelectedIndex(this.selected[i].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (this.selectHolder == index) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((index - 1) >= 0)) {
this.setSelectedIndex(index - 1, false);
}
} else if (this.selectionDeleted) {
var len = this.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
this.setSelectedIndex(index - 1, false);
} else {
this.setSelectedIndex(index, false);
}
}
for (var i in this.selected) {
if (this.selected[i].sIndex > firstRow) {
this.selected[i].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (event == "sort") {
var len = this.getLength();
var i = 0;
while (i < len) {
if (this.isSelected(i)) {
var id = this.dataProvider.getItemID(i);
if (id == this.lastSelID) {
this.lastSelected = i;
}
this.selected[String(id)].sIndex = i;
}
i++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var uniqueID in this.selected) {
var index = this.selected[uniqueID].sIndex;
if (((index != undefined) && (this.topDisplayed <= index)) && (index < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var tmpInd = (this.topDisplayed + itemNum);
if (this.getItemAt(tmpInd == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(tmpInd, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(tmpInd), this.isSelected(tmpInd));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var itmNum = this.getSelectedIndex();
var newItm = (itmNum + incr);
newItm = Math.max(0, newItm);
newItm = Math.min(this.getLength() - 1, newItm);
if (newItm == itmNum) {
return(undefined);
}
if ((itmNum < this.topDisplayed) || (itmNum >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(itmNum);
}
if ((newItm >= (this.topDisplayed + this.numDisplayed)) || (newItm < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(newItm - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("enabled");
i++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("unfocused");
i++;
}
};
#endinitclip
Instance of Symbol 91 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 93 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 92 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 93 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 94 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 7
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var pos = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(pos);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var pos = scrollBar.getScrollPosition();
this.topDisplayed = pos;
if (this.lastPosition != pos) {
this.updateControl();
}
this.lastPosition = pos;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var i = 0;
while (i < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[i])) {
this.moveSelBy(this.keyIncrs[i]);
return(undefined);
}
i++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var tmpCode = Key.getAscii();
if ((tmpCode >= 33) && (tmpCode <= 126)) {
this.findString(String.fromCharCode(tmpCode));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var itemNum = this.getSelectedIndex();
var jump = 0;
var i = (itemNum + 1);
while (i != itemNum) {
var itmStr = this.getItemAt(i).label.substring(0, str.length);
if ((str == itmStr) || (str.toUpperCase() == itmStr.toUpperCase())) {
var jump = (i - itemNum);
break;
}
if (i >= (this.getLength() - 1)) {
i = -1;
}
i++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
};
#endinitclip
Instance of Symbol 89 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 94 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 93 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 94 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 98 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 98 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 101 MovieClip [FListBoxSymbol] Frame 1
#initclip 8
function FListBoxClass() {
this.itemSymbol = "FListItemSymbol";
this.init();
this.permaScrollBar = true;
var i = 0;
while (i < this.labels.length) {
this.addItem(this.labels[i], this.data[i]);
i++;
}
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var tmpArray = new Array();
for (var i in this.selected) {
tmpArray.push(this.selected[i].sIndex);
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var indices = this.getSelectedIndices();
var tmpArray = new Array();
var i = 0;
while (i < indices.length) {
tmpArray.push(this.getItemAt(indices[i]));
i++;
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var i = 0;
while (i < indexArray.length) {
this.selectItem(indexArray[i], true);
i++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var hgt = ((count * (this.itmHgt - 2)) + 2);
this.setSize(this.width, hgt);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
h = Math.max(h, 40);
this.container_mc.removeMovieClip();
this.container_mc = this.createEmptyMovieClip("container", 3);
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.clickFilter) {
var index = (this.topDisplayed + itemNum);
if (this.getItemAt(index) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = index;
}
var incr = ((this.lastSelected < index) ? 1 : -1);
this.clearSelected();
var i = this.lastSelected;
while (i != index) {
this.selectItem(i, true);
if ((i >= this.topDisplayed) && (i < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (i - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(i), this.isSelected(i));
}
i = i + incr;
}
this.selectItem(index, true);
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (key.isDown(17)) {
var selectedFlag = this.isSelected(index);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (selectedFlag))) {
this.selectItem(index, !selectedFlag);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = index;
}
} else {
this.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 94 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 101 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 111 MovieClip Frame 7
gotoAndPlay (1);
Symbol 114 MovieClip Frame 32
gotoAndPlay (1);
Symbol 119 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 116 MovieClip "bkgd" in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100 * (isLoaded / total);
_parent.bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p) > Number(99)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Symbol 132 Button
on (release) {
getURL ("http://www.mousebreaker.com", "_self");
}
Symbol 157 Button
on (release) {
language = "eng";
lid = 1;
play();
}
Symbol 158 Button
on (release) {
language = "fra";
lid = 3;
play();
}
Symbol 159 Button
on (release) {
language = "ger";
lid = 2;
play();
}
Symbol 160 Button
on (release) {
language = "ita";
lid = 4;
play();
}
Symbol 161 Button
on (release) {
language = "por";
lid = 6;
play();
}
Symbol 162 Button
on (release) {
language = "esp";
lid = 5;
play();
}
Symbol 163 Button
on (release) {
language = "rus";
lid = 7;
play();
}
Symbol 199 Button
on (release) {
gotoAndPlay (69);
}
Symbol 297 Button
on (release) {
if (done) {
trace("save..." + raw_team);
game_cooky.write_game_cookie(myteamid, f2);
mb22 = getTimer();
trace("mb2=" + mb22);
myDate = new Date();
td1 = myDate.getHours();
td = (((td1 + "goals") + myDate.getMinutes()) + "misses") + myDate.getSeconds();
play();
}
}
Symbol 299 Button
on (keyPress "@") {
gotoAndPlay (1148);
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 3
stop();
Symbol 413 MovieClip Frame 4
stop();
Symbol 418 Button
on (release) {
gotoAndPlay (147);
}
Symbol 433 Button
on (release) {
play();
}
Symbol 468 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 8
gotoAndStop (1);
Symbol 483 MovieClip Frame 39
gotoAndStop (1);
Symbol 483 MovieClip Frame 81
gotoAndStop (1);
Symbol 483 MovieClip Frame 114
gotoAndStop (1);
Symbol 483 MovieClip Frame 145
gotoAndStop (1);
Symbol 496 MovieClip Frame 20
gotoAndPlay (1);
Symbol 496 MovieClip Frame 90
gotoAndPlay (1);
Symbol 496 MovieClip Frame 141
gotoAndPlay (1);
Symbol 496 MovieClip Frame 167
gotoAndPlay (1);
Symbol 496 MovieClip Frame 221
gotoAndPlay (1);
Symbol 496 MovieClip Frame 273
gotoAndPlay (1);
Symbol 496 MovieClip Frame 296
gotoAndPlay (1);
Symbol 496 MovieClip Frame 319
gotoAndPlay (1);
Symbol 496 MovieClip Frame 347
gotoAndPlay (1);
Symbol 496 MovieClip Frame 371
gotoAndPlay (1);
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 2
stop();
Symbol 510 Button
on (keyPress "s") {
if (newsound.getVolume() == 0) {
newsound.setVolume(100);
} else {
newsound.setVolume(0);
}
}
Symbol 514 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 11
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 11
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 11
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 11
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 11
stop();
Symbol 591 MovieClip Frame 1
this.socks.gotoandstop(1);
this.shirt.gotoandstop(1);
this.shorts.gotoandstop(1);
this.cuffs.gotoandstop(1);
finished = false;
this.stripes.gotoandstop(1);
stop();
Symbol 591 MovieClip Frame 2
this.socks.gotoandplay(2);
this.shirt.gotoandplay(2);
this.cuffs.gotoandplay(2);
this.shorts.gotoandplay(2);
this.stripes.gotoandplay(2);
Symbol 591 MovieClip Frame 7
finished = true;
Symbol 591 MovieClip Frame 11
this.socks.gotoandstop(11);
this.cuffs.gotoandstop(11);
this.shirt.gotoandstop(11);
this.shorts.gotoandstop(11);
this.stripes.gotoandstop(11);
Symbol 591 MovieClip Frame 35
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 11
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 11
stop();
Symbol 628 MovieClip Frame 1
this.socks.gotoandstop(1);
this.shirt.gotoandstop(1);
this.shorts.gotoandstop(1);
this.cuffs.gotoandstop(1);
finished = false;
this.stripes.gotoandstop(1);
this.sleeves.gotoandstop(1);
stop();
Symbol 628 MovieClip Frame 2
this.socks.gotoandplay(2);
this.shirt.gotoandplay(2);
this.cuffs.gotoandplay(2);
this.shorts.gotoandplay(2);
this.stripes.gotoandplay(2);
this.sleeves.gotoandplay(2);
Symbol 628 MovieClip Frame 7
finished = true;
Symbol 628 MovieClip Frame 11
this.socks.gotoandstop(11);
this.cuffs.gotoandstop(11);
this.shirt.gotoandstop(11);
this.shorts.gotoandstop(11);
this.stripes.gotoandstop(11);
this.sleeves.gotoandstop(11);
Symbol 628 MovieClip Frame 35
stop();
Symbol 641 MovieClip Frame 1
this.socks.gotoandstop(1);
this.shirt.gotoandstop(1);
this.shorts.gotoandstop(1);
this.cuffs.gotoandstop(1);
finished = false;
this.stripes.gotoandstop(1);
this.quarters.gotoandstop(1);
stop();
Symbol 641 MovieClip Frame 2
this.socks.gotoandplay(2);
this.shirt.gotoandplay(2);
this.cuffs.gotoandplay(2);
this.shorts.gotoandplay(2);
this.stripes.gotoandplay(2);
this.quarters.gotoandplay(2);
Symbol 641 MovieClip Frame 7
finished = true;
Symbol 641 MovieClip Frame 11
this.socks.gotoandstop(11);
this.cuffs.gotoandstop(11);
this.shirt.gotoandstop(11);
this.shorts.gotoandstop(11);
this.stripes.gotoandstop(11);
this.quarters.gotoandstop(11);
Symbol 641 MovieClip Frame 35
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 2
stop();
Symbol 748 Button
on (release) {
gotoAndPlay (550);
}
Symbol 782 Button
on (release) {
gotoAndStop (24);
}
Symbol 784 Button
on (release) {
xyz.send();
gotoAndPlay (1151);
}
Symbol 786 Button
on (release) {
xyz.send();
gotoAndPlay (1151);
}