Frame 3
gotoAndPlay ("checkurl");
Frame 5
disable_check = true;
myURL = _url;
okDomain = "www.mousebreaker.";
okDomain1 = "147.202.48.51";
okDomain2 = "147.202.48.52";
okDomain3 = "147.202.48.53";
okDomain4 = "stotty";
stop();
if (((((((myURL.indexOf(okDomain2) != -1) or (myURL.indexOf(okDomain4) != -1)) or (myURL.indexOf(okDomain3) != -1)) or (myURL.indexOf(okDomain1) != -1)) or (myURL.indexOf(okDomain) != -1)) or disable_check) or keyh) {
if (aSplash._currentframe > (aSplash._totalframes - 2)) {
trace("****" + aSplash._currentframe);
play();
} else {
gotoAndPlay (4);
}
} else {
gotoAndStop ("bad");
}
timestart = getTimer();
Instance of Symbol 281 MovieClip "game_cooky" in Frame 12
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
var _local1 = game_id;
name = "game" + _local1;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + _local1);
so.data.game_id = _local1;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
so.data.f10 = f10;
so.data.f11 = f11;
so.data.f12 = f12;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
trace("f9..." + f9);
trace("f10..." + f10);
trace("f11..." + f11);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
_level0.f10 = so.data.f10;
_level0.f11 = so.data.f11;
_level0.f12 = so.data.f12;
}
return(result);
}
_visible = true;
}
Frame 13
function toggle_sound() {
if (sound_on) {
newsound.setVolume(100);
} else {
newsound.setVolume(0);
}
}
function get_strike_pct() {
cookie_strikes_txt = cookie_strikes;
if (cookie_balls != 0) {
pct = int((cookie_strikes / cookie_balls) * 100) + "%";
cookie_strikes_txt = cookie_strikes_txt + (("(" + pct) + ")");
}
cookie_homeruns_txt = cookie_homeruns;
if (cookie_balls != 0) {
pct = int((cookie_homeruns / cookie_balls) * 100) + "%";
cookie_homeruns_txt = cookie_homeruns_txt + (("(" + pct) + ")");
}
}
function start_add_in(scin) {
thescore = scin;
whas = scin * whas2006;
scnt = 0;
}
function add_in(scin) {
thescore = thescore + scin;
whas = whas + (scin * whas2006);
scnt++;
}
getcolour = new Array();
getcolour[1] = 0;
getcolour[2] = 6710886 /* 0x666666 */;
getcolour[3] = 13421772 /* 0xCCCCCC */;
getcolour[4] = 16777215 /* 0xFFFFFF */;
getcolour[5] = 16711731 /* 0xFF0033 */;
getcolour[6] = 39219;
getcolour[7] = 13311;
getcolour[8] = 16763904 /* 0xFFCC00 */;
getcolour[9] = 16737996 /* 0xFF66CC */;
getcolour[10] = 52428;
getcolour[11] = 16750848 /* 0xFF9900 */;
getcolour[12] = 13382502 /* 0xCC3366 */;
getcolour[13] = 6697932 /* 0x6633CC */;
max_col = 13;
cap_col = getcolour[5];
shirt_col = getcolour[4];
pants_col = getcolour[5];
shoes_col = getcolour[7];
_level0.savegamename = "pinchhitter2";
level0.timestart = getTimer();
form_this_time = "no";
sound_on = true;
newsound = new Sound();
game_id = savegamename;
exists = game_cooky.read_game_cookie(game_id);
trace((("game " + game_id) + " ") + exists);
if (exists == false) {
game_cooky.write_game_cookie(game_id, "", 1, "", 0, 0, 0, 0, 0, cap_col, shirt_col, pants_col, shoes_col);
f1 = "none";
f2 = 1;
f3 = "none";
f4 = -1;
f5 = 0;
f6 = 0;
f7 = 0;
f8 = 0;
f9 = cap_col;
f10 = shirt_col;
f11 = pants_col;
f12 = shoes_col;
}
cookie_name = f1;
myname = cookie_name;
cookie_sound = f2;
sound_on = cookie_sound;
toggle_sound();
cookie_team = f3;
myteam = cookie_team;
cookie_in_uk = f4;
cookie_best = f5;
cookie_homeruns = f6;
cookie_balls = f7;
cookie_strikes = f8;
cap_col = f9;
shirt_col = f10;
pants_col = f11;
shoes_col = f12;
trace("cookie_email" + cookie_email);
trace("cookie_done_survey !" + cookie_done_survey);
get_strike_pct();
whas2006 = random(7) + 2;
Frame 14
cookie_in_uk = 0;
cookie_sound = sound_on;
game_cooky.write_game_cookie(game_id, cookie_name, cookie_sound, cookie_team, cookie_in_uk, cookie_best, cookie_homeruns, cookie_balls, cookie_strikes, cap_col, shirt_col, pants_col, shoes_col);
gotoAndPlay (19);
Frame 15
level_map = new Array(0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3);
rankings = new Array();
rankings[0] = "Junior - Level 0";
rankings[1] = "Junior - Level 1";
rankings[2] = "Junior - Level 2";
rankings[3] = "Junior - Level 3";
rankings[4] = "Amateur - Level 4";
rankings[5] = "Amateur - Level 5";
rankings[6] = "Amateur - Level 6";
rankings[7] = "Amateur - Level 7";
rankings[8] = "Amateur - Level 8";
rankings[9] = "Professional - Level 9";
rankings[10] = "Professional - Level 10";
rankings[11] = "Professional - Level 10";
task_text_a = new Array();
task_text_a[1] = "10 Balls to hit a homerun!";
task_text_a[2] = "10 Balls to avoid an OUT!";
task_text_a[3] = "Score 10,000 points in 10 balls!";
task_text_a[4] = "Score back-to-back homeruns in 10 balls";
task_text_a[5] = "10 Balls to hit a homerun!";
task_text_a[6] = "10 Balls to avoid an OUT!";
task_text_a[7] = "Score 15,000 points in 10 balls!";
task_text_a[8] = "Score back-to-back homeruns in 10 balls";
task_text_a[9] = "Score 20,000 points in 10 balls!";
task_text_a[10] = "Bottom of the 9th and you need 8 runs to win the World Series!";
task_text_a[11] = "Free Play - all your points count to your favourite team!";
task_points_doubled = new Array();
task_points_doubled[1] = 100;
task_points_doubled[2] = 200;
task_points_doubled[3] = 400;
task_points_doubled[4] = 800;
task_points_doubled[5] = 400;
task_points_doubled[6] = 1000;
task_points_doubled[7] = 1200;
task_points_doubled[8] = 1500;
task_points_doubled[9] = 2000;
task_points_doubled[10] = 4000;
Instance of Symbol 286 MovieClip "tasks_cooky" in Frame 15
onClipEvent (load) {
function write_game_cookie(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
trace("writing cookie......f : " + f0);
trace("writing cookie......f : " + f1);
trace("writing cookie......f : " + f2);
trace("writing cookie......f : " + f3);
trace("writing cookie......f : " + f4);
trace("writing cookie......f : " + f5);
trace("writing cookie......f : " + f6);
trace("writing cookie......f : " + f7);
trace("writing cookie......f : " + f8);
trace("writing cookie......f : " + f9);
trace("writing cookie......f : " + f10);
so.data.f0 = f0;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
so.data.f10 = f10;
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.f0 = so.data.f0;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
_level0.f10 = so.data.f10;
}
return(result);
}
_visible = true;
game_id = "task_ph2_v1";
}
Frame 16
exist = tasks_cooky.read_game_cookie();
if (exist) {
trace("exists");
cookie_id = f0;
locked1 = f1;
locked2 = f2;
locked3 = f3;
locked4 = f4;
locked5 = f5;
locked6 = f6;
locked7 = f7;
locked8 = f8;
locked9 = f9;
locked10 = f10;
} else {
trace("dont exists");
my_last_team_select = 1;
cookie_id = 100000 + random(899999);
locked1 = true;
locked2 = true;
locked3 = true;
locked4 = true;
locked5 = true;
locked6 = true;
locked7 = true;
locked8 = true;
locked9 = true;
locked10 = true;
tasks_cooky.write_game_cookie(cookie_id, locked1, locked2, locked3, locked4, locked5, locked6, locked7, locked8, locked9, locked10);
}
levels_done = 0;
i = 1;
while (i <= 10) {
lock = eval ("locked" + i);
trace((("lock " + i) + " ") + lock);
if (!lock) {
levels_done++;
}
i++;
}
my_ranking = "Rank : " + rankings[levels_done];
Frame 17
stop();
Instance of Symbol 343 MovieClip "lock1" in Frame 17
onClipEvent (load) {
_visible = _level0.locked1;
}
Instance of Symbol 343 MovieClip "lock2" in Frame 17
onClipEvent (load) {
_visible = _level0.locked2;
}
Instance of Symbol 343 MovieClip "lock3" in Frame 17
onClipEvent (load) {
_visible = _level0.locked3;
}
Instance of Symbol 343 MovieClip "lock4" in Frame 17
onClipEvent (load) {
_visible = _level0.locked4;
}
Instance of Symbol 343 MovieClip "lock5" in Frame 17
onClipEvent (load) {
_visible = _level0.locked5;
}
Instance of Symbol 343 MovieClip "lock6" in Frame 17
onClipEvent (load) {
_visible = _level0.locked6;
}
Instance of Symbol 343 MovieClip "lock7" in Frame 17
onClipEvent (load) {
_visible = _level0.locked7;
}
Instance of Symbol 343 MovieClip "lock8" in Frame 17
onClipEvent (load) {
_visible = _level0.locked8;
}
Instance of Symbol 343 MovieClip "lock9" in Frame 17
onClipEvent (load) {
_visible = _level0.locked9;
}
Instance of Symbol 343 MovieClip "lock10" in Frame 17
onClipEvent (load) {
_visible = _level0.locked10;
}
Frame 18
function colour_man() {
myColor = new Color(worldMc.batterMC.batterAnim.cap);
myColor.setRGB(cap_col);
myColor = new Color(worldMc.batterMC.batterAnim.shirt);
myColor.setRGB(shirt_col);
myColor = new Color(worldMc.batterMC.batterAnim.pants);
myColor.setRGB(pants_col);
myColor = new Color(worldMc.batterMC.batterAnim.shoes);
myColor.setRGB(shoes_col);
}
function put_batter_on_plate() {
mc = eval ("pitchmap.man" + batter_striking);
mc._x = pitchmap.base0._x;
mc._y = pitchmap.base0._y;
runner_state[batter_striking] = "in";
current_base[batter_striking] = 0;
trace("put_batter_on_plate " + batter_striking);
mc._visible = true;
}
function remove_batter(b_in) {
trace("remove " + b_in);
mc = eval ("pitchmap.man" + b_in);
runner_state[b_in] = "none";
current_base[b_in] = 0;
mc._x = -120;
mc._visible = false;
}
function initialize() {
max_bats = 9;
i = 1;
while (i <= max_bats) {
mc = eval ("pitchmap.man" + i);
mc._visible = false;
i++;
}
current_base = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
next_base = new Array(1, 2, 3, 0);
step_taken = new Array();
stepx = new Array();
stepy = new Array();
runner_state = new Array("", "none", "none", "none", "none", "none", "none", "none", "none", "none");
batter_striking = 1;
put_batter_on_plate();
logstate("initialise");
homerun = false;
task_complete = false;
homerun_straights = 0;
ajslv = level_map[level];
trace((("level " + level) + " ") + ajslv);
worldMc.bgMc.gotoAndStop(ajslv);
wall_m = 1;
ajsbl = 10;
ajssc = 0;
ajsbt = 3;
world.bgMc.total = ajssc;
world.bgMc.balls = ajsbl;
world.bgMc.bats = ajsbt;
start_add_in(0);
pitcher.worldMc.callBack = startPitch;
setDepth(batter);
setBatDepth();
setDepth(pitcher);
this.onEnterFrame = main;
enableForwardSwing();
world.bgMc.gotoAndStop(3);
fielder1.other = fielder2;
fielder2.other = fielder1;
setupFielder(fielder1);
setupFielder(fielder2);
moveTarget();
to2dObject(pitcher, true);
trace("batter - col");
colour_man();
}
function logstate(st) {
var _local1 = st;
if (mystate != _local1) {
diag = diag + (_local1 + "\r");
}
mystate = _local1;
}
function main() {
if (mystate == "done") {
game_cooky.write_game_cookie(game_id, cookie_name, cookie_sound, cookie_team, cookie_in_uk, cookie_best, cookie_homeruns, cookie_balls, cookie_strikes, cap_col, shirt_col, pants_col, shoes_col);
mystate = "timer";
timerc = 0;
need_to_run = false;
trace((("out_or_str " + out_or_strike) + " ") + ball.foul);
if (out_or_strike or ball.foul) {
trace("NO RUN!");
run = false;
} else {
trace("RUN!");
world.bgMc.strikes.gotoAndStop(1);
world.bgMc.strikes.count = 0;
if (!homerun) {
run = true;
need_to_run = true;
}
new_batsman = true;
}
if (proper_baseball and homerun) {
mystate = "homerun_start";
homerun_leg = 1;
}
if (run) {
batsman_id = 1;
while (batsman_id <= max_bats) {
trace((((("no. " + batsman_id) + " ") + runner_state[batsman_id]) + " ") + current_base[batsman_id]);
if (runner_state[batsman_id] == "in") {
mc_1 = eval ("pitchmap.base" + current_base[batsman_id]);
mc_2 = eval ("pitchmap.base" + next_base[current_base[batsman_id]]);
stepx[batsman_id] = mc_2._x - mc_1._x;
stepy[batsman_id] = mc_2._y - mc_1._y;
dist = Math.sqrt((stepx * stepx) + (stepy * stepy));
steps = 20;
stepx[batsman_id] = stepx[batsman_id] / steps;
stepy[batsman_id] = stepy[batsman_id] / steps;
step_taken[batsman_id] = 0;
}
batsman_id++;
}
}
}
if (mystate == "timer") {
if (run) {
batsman_id = 1;
while (batsman_id <= max_bats) {
if (runner_state[batsman_id] == "in") {
if (step_taken[batsman_id] < steps) {
mc_1 = eval ("pitchmap.man" + batsman_id);
mc_1._x = mc_1._x + stepx[batsman_id];
mc_1._y = mc_1._y + stepy[batsman_id];
step_taken[batsman_id]++;
} else {
run = false;
current_base[batsman_id] = next_base[current_base[batsman_id]];
if (current_base[batsman_id] == 0) {
runner_state[batsman_id] = "none";
mc_1 = eval ("pitchmap.man" + batsman_id);
mc_1._x = -100;
mc_1._visible = false;
runs_scored++;
trace("RUNS..." + runs_scored);
last_man_home = batsman_id;
pitchmap.comment = "Runs " + runs_scored;
}
}
}
batsman_id++;
}
}
if (((((level == 10) and need_to_run) and (!run)) and (!man_caught)) and (fielder1.inLine or fielder2.inLine)) {
run = false;
need_to_run = false;
highest_base = 0;
man_out = 0;
found_him = false;
manbase = 1;
while (manbase <= max_bats) {
trace("b " + current_base[manbase]);
if (last_man_home != -1) {
man_out = last_man_home;
found_him = true;
trace("GOT MAN ON HOMEBASE!");
break;
}
if (((!found_him) and (current_base[manbase] > highest_base)) and (runner_state[manbase] == "in")) {
highest_base = current_base[manbase];
man_out = manbase;
}
manbase++;
}
if (man_out != 0) {
trace((("man OUT is ... " + man_out) + " running to ..") + current_base[man_out]);
if (current_base[man_out] == 1) {
out_base = "1st Base";
}
if (current_base[man_out] == 2) {
out_base = "2nd Base";
}
if (current_base[man_out] == 3) {
out_base = "3rd Base";
}
if (current_base[man_out] == 0) {
out_base = "Home Plate!";
runs_scored--;
trace("RUNS..." + runs_scored);
}
pitchmap.comment = "OUT RUNNING TO " + out_base;
ajsbt--;
world.bgMc.bats = ajsbt;
runner_state[man_out] = "none";
remove_batter(man_out);
}
}
timerc++;
if (timerc == 50) {
if (new_batsman) {
batter_striking++;
if (batter_striking > max_bats) {
batter_striking = 1;
}
trace("bat...." + batter_striking);
put_batter_on_plate();
}
if (!homerun) {
homerun_straights = 0;
} else {
homerun_straights++;
}
if (level == 10) {
if (runs_scored >= 8) {
mystate = "submit";
task_complete = true;
gotoAndPlay (41);
} else if (ajsbt <= 0) {
task_complete = false;
mystate = "submit";
gotoAndPlay (41);
}
} else if ((level == 1) or (level == 5)) {
if (homerun) {
mystate = "submit";
task_complete = true;
gotoAndPlay (41);
} else if (ajsbl <= 0) {
mystate = "submit";
gotoAndPlay (41);
}
} else if ((level == 2) or (level == 6)) {
if (out_or_strike) {
mystate = "submit";
gotoAndPlay (41);
} else if (ajsbl <= 0) {
task_complete = true;
mystate = "submit";
gotoAndPlay (41);
}
} else if (((level == 3) or (level == 7)) or (level == 9)) {
trace("balls..." + ajsbl);
if (ajsbl <= 0) {
if ((((ajssc > 15000) and (level == 7)) or ((ajssc > 10000) and (level == 3))) or ((ajssc > 20000) and (level == 9))) {
task_complete = true;
}
mystate = "submit";
gotoAndPlay (41);
}
} else if ((level == 4) or (level == 8)) {
trace("balls..." + ajsbl);
if (homerun_straights >= 2) {
task_complete = true;
mystate = "submit";
gotoAndPlay (41);
} else if (ajsbl <= 0) {
mystate = "submit";
gotoAndPlay (41);
}
} else if ((ajsbl <= 0) or (ajsbt <= 0)) {
mystate = "submit";
gotoAndPlay (44);
}
}
if (timerc == 60) {
backSwing();
enableForwardSwing();
}
if (timerc > 70) {
mystate = "ready";
setBatDepth();
walls_hit = 0;
wall_m = 1;
}
}
if (mystate == "homerun_start") {
batsman_id = 1;
while (batsman_id <= max_bats) {
if (runner_state[batsman_id] == "in") {
home_running = true;
trace((((("BAT " + batsman_id) + " from ") + current_base[batsman_id]) + " to ") + next_base[current_base[batsman_id]]);
mc_1 = eval ("pitchmap.base" + current_base[batsman_id]);
mc_2 = eval ("pitchmap.base" + next_base[current_base[batsman_id]]);
stepx[batsman_id] = mc_2._x - mc_1._x;
stepy[batsman_id] = mc_2._y - mc_1._y;
dist = Math.sqrt((stepx * stepx) + (stepy * stepy));
steps = 20;
stepx[batsman_id] = stepx[batsman_id] / steps;
stepy[batsman_id] = stepy[batsman_id] / steps;
step_taken[batsman_id] = 0;
}
batsman_id++;
}
mystate = "homerun";
}
if (mystate == "homerun") {
trace("DO HOMERUN LEG ! " + homerun_leg);
if (home_running) {
batsman_id = 1;
while (batsman_id <= max_bats) {
if (runner_state[batsman_id] == "in") {
if (step_taken[batsman_id] < steps) {
mc_1 = eval ("pitchmap.man" + batsman_id);
mc_1._x = mc_1._x + stepx[batsman_id];
mc_1._y = mc_1._y + stepy[batsman_id];
step_taken[batsman_id]++;
} else {
home_running = false;
current_base[batsman_id] = next_base[current_base[batsman_id]];
if (current_base[batsman_id] == 0) {
trace("BATTER...home..." + batsman_id);
runner_state[batsman_id] = "none";
mc_1 = eval ("pitchmap.man" + batsman_id);
mc_1._x = -100;
mc_1._visible = false;
runs_scored++;
trace("RUNS..." + runs_scored);
pitchmap.comment = "Runs " + runs_scored;
}
}
}
batsman_id++;
}
} else {
homerun_leg++;
mystate = "homerun_start";
if (homerun_leg > 4) {
mystate = "timer";
}
}
}
if (mystate != "submit") {
functions = (((((((("pointer:" + pointer.moveFct) + "\nball:") + ball.moveFct) + "\nbat:") + bat.moveFct) + "\nworld:") + world.moveFct) + "\ncollision:") + collision.checkFct;
pointer.moveFct();
ball.moveFct();
bat.moveFct();
world.moveFct();
collision.checkFct();
}
}
function setupFielder(f) {
var _local1 = f;
fielder_id++;
var m = _local1.mapMc;
var a = _local1.angles;
var b = bat.mapMc;
var _local2;
_local2 = 1;
while (_local2 < (_local1.bodyMc._totalframes + 1)) {
_local1.bodyMc.gotoAndStop(_local2);
var w = {x:0, y:_local1.gloveMc._y};
_local1.bodyMc.localToGlobal(w);
_local1.worldMc.globalToLocal(w);
_local1.hand[_local2 - 1] = w.y;
_local2++;
}
_local1.bodyMc.gotoAndStop("stand");
_local2 = 1;
while (_local2 < b._totalframes) {
b.gotoAndStop(_local2);
if (Number(b.angleMc._width) == 0) {
}
ajs = b.angleMc._rotation - 90;
if (ajs != -90) {
a[a.length] = b.angleMc._rotation - 90;
}
_local2++;
}
a.pop();
a.shift();
a.shift();
b.gotoAndStop(1);
_local2 = 0;
while (_local2 < 10) {
_local2++;
}
do {
if (fielder_id == 1) {
var e = 1;
} else {
var e = 3;
}
_local1.angle = (m._rotation = a[e]);
var _local3 = {x:400 + random(world.bgMc.dist), y:0};
_local1.distance = _local3.x;
m.localToGlobal(_local3);
mapMc.cameraMc.globalToLocal(_local3);
_local1.x = _local3.x;
_local1.z = _local3.y;
to2dObject(_local1, true);
} while (Math.abs(_local1.x2) > 600);
_local1.angle = (bat.angle = m._rotation);
_local1.ballMc._visible = false;
}
function restoreFielder() {
var _local1 = fielder;
if (_local1.bodyMc._currentframe == _local1.toFrame) {
_local1.toFrame = 5;
}
if (_local1.bodyMc._currentframe < _local1.toFrame) {
_local1.bodyMc.nextFrame();
} else if (_local1.bodyMc._currentframe > _local1.toFrame) {
_local1.bodyMc.prevFrame();
}
if (_local1.bodyMc._currentframe == 5) {
b.pitching = false;
b.moveFct = null;
enableBackSwing();
}
}
function moveFielder(f) {
var _local1 = f;
var count = 20;
var _local3 = _local1.mapMc;
_local1.ballMc._visible = false;
if (_local1.other.angle != bat.angle) {
_local1.angle = (_local3._rotation = bat.angle);
} else {
do {
_local1.angle = (_local3._rotation = _local1.angles[random(_local1.angles.length)]);
} while (_local1.angle == _local1.other.angle);
}
do {
count--;
var _local2 = {x:400 + random(world.bgMc.dist), y:0};
_local1.distance = _local2.x;
_local3.localToGlobal(_local2);
mapMc.cameraMc.globalToLocal(_local2);
_local1.x = _local2.x;
_local1.z = _local2.y;
to2dObject(_local1, true);
maxDistance - 10;
} while (count && (Math.abs(_local1.x2) > 600));
_local1.bodyMc.gotoAndStop("stand");
_local1.caught = false;
_local1.toFrame = 5;
_local1.inLine = false;
}
function moveTarget() {
var _local1 = target;
var _local3 = _local1.mapMc;
_local1.angle = (_local3._rotation = fielder1.angles[random(fielder1.angles.length)]);
var _local2 = {x:350 + random(350), y:0};
_local1.distance = _local2.x;
_local3.localToGlobal(_local2);
mapMc.cameraMc.globalToLocal(_local2);
_local1.x = _local2.x;
_local1.z = _local2.y;
to2dObject(_local1, true);
_local1.worldMc.gotoAndPlay(1);
_local1.inLine = false;
_local1.multiplier = 1;
}
function moveBackground() {
if (world.to == null) {
var t = 0;
} else {
var t = world.to.x2;
}
var _local1 = world.x2 - t;
var _local2 = world.mc;
if (_local1 < 0) {
_local1 = 0;
}
if (_local1 > 640) {
_local1 = 640;
}
if (_local1 == _local2._x) {
if (world.to == null) {
world.moveFct = null;
}
} else {
var _local3 = (_local1 - _local2._x) * world.step;
if (Math.abs(_local3) < 1) {
_local2._x = _local1;
} else {
_local2._x = _local2._x + _local3;
}
var p = (_local2._x - 320);
var f = (int((Math.abs(p) / p) * -1) + 3);
world.bgMc.gotoAndStop(f);
}
}
function enableCollision() {
collision.checkFct = batBallCollision;
bat.mapMc.callBack = disableCollision;
}
function batBallCollision() {
var _local2 = bat;
var a = _local2.mapMc.angleMc;
var _local1 = ball;
var p = {x:0, y:0};
var f = frontMc;
_local1.mapMc.localToGlobal(p);
a.globalToLocal(p);
info = "MISS";
if (p.y > -5) {
frontMc.batMc.gotoAndStop(_local2.mapMc._currentframe);
frontMc.ballMc._x = _local1.x;
frontMc.ballMc._y = _local1.y;
var _local3 = {x:0, y:0};
f.ballMc.localToGlobal(_local3);
f.batMc.angleMc.globalToLocal(_local3);
if ((Math.abs(_local3.y) < 23) && (_local3.x < 100)) {
_local1.foul = false;
_local2.angle = a._rotation - 90;
if (_local2.angle == target.angle) {
target.inLine = true;
}
trace("angle..." + _local2.angle);
if (_local2.angle == fielder1.angle) {
fielder1.inLine = true;
trace("FIELDER 1 in line!");
}
if (_local2.angle == fielder2.angle) {
fielder2.inLine = true;
trace("FIELDER 2 in line!");
}
if (Math.abs(a._rotation) > 45) {
_local1.foul = true;
}
var xs = {x:_local3.x * 0.5, y:0};
angleMc._rotation = _local2.angle;
angleMc.localToGlobal(xs);
angleMc._rotation = (_local3.y * world.bgMc.angle) / 25;
var ys = {x:Math.abs(xs.y), y:0};
angleMc.localToGlobal(ys);
f.pos = ((((((("x=" + xs.x) + ",z=") + ys.x) + ",y=") + ys.y) + "[") + xs.y) + "]";
_local1.speed.z = ys.x * -1;
_local1.speed.x = xs.x;
_local1.speed.y = ys.y;
_local1.gravity = 0.2;
_local1.friction = 0.97;
_local1.moveFct = hitFlight;
_local1.fence = true;
_local1.scored = false;
hitFlight();
sounds.gotoAndPlay("bang");
world.to = ball;
world.moveFct = moveBackground;
_local1.pitching = false;
delete this.onMouseDown;
bat.mapMc.callBack = null;
}
disableCollision();
}
}
function disableCollision() {
collision.checkFct = null;
bat.mapMc.callBack = null;
}
function enableForwardSwing() {
pitcher.worldMc.gotoAndPlay(1);
delete this.onMouseDown;
this.onMouseDown = forwardSwing;
bat.moveFct = null;
enablePointer();
}
function forwardSwing() {
if (ball.pitching == false) {
return(undefined);
}
batterpos = "forward";
bat.backSwing = false;
disablePointer();
delete this.onMouseDown;
bat.mapMc.callBack = enableCollision;
bat.worldMc.play();
bat.mapMc.play();
batter.animMc.play();
bat.moveFct = setBatDepth;
}
function enableBackSwing() {
if (mystate == "pitch") {
mystate = "done";
}
if (bat.worldMc._currentframe == 1) {
delete this.onMouseDown;
enableForwardSwing();
return(undefined);
}
bat.backSwing = true;
bat.moveFct = null;
delete this.onMouseDown;
setBatDepth();
}
function backSwing() {
if (ball.pitching == true) {
return(undefined);
}
world.arrowMc._x = (world.arrowMc._y = -500);
moveFielder(fielder1);
moveFielder(fielder2);
moveTarget();
world.mc.title.removeMovieClip();
world.to = null;
world.moveFct = moveBackground;
if (batterpos == "forward") {
batter.animMc.play();
bat.worldMc.play();
bat.mapMc.play();
batterpos = "back";
}
bat.moveFct = setBatDepth;
ball.moveFct = null;
bat.mapMc.callBack = enableForwardSwing;
delete this.onMouseDown;
}
function startPitch() {
logstate("pitch");
var _local1 = ball;
pitchmap.comment = "8 runs needed to win World Series";
man_caught = false;
last_man_home = -1;
if (level != 10) {
ajsbl--;
}
homerun = false;
out_or_strike = false;
new_batsman = false;
world.bgMc.balls = ajsbl;
_level0.cookie_balls++;
_local1.pitching = true;
_local1.hitGround = false;
_local1.x = 0;
_local1.y = 10;
_local1.z = pitcher.z + 1;
_local1.speed.x = (random(16) - 8) / 60;
_local1.speed.y = (random(12) - 2) / 60;
if (ajslv == 1) {
extra = 0;
}
if (ajslv == 2) {
extra = 1;
}
if (ajslv == 3) {
extra = 2;
}
_local1.speed.z = ((40 + random(10)) / 5) + extra;
_local1.gravity = 0.01;
_local1.friction = 0.99;
to2dObject(_local1, true);
_local1.mapMc._x = _local1.x;
_local1.mapMc._y = _local1.z;
_local1.moveFct = pitchFlight;
_local1.shadowMc._visible = true;
_local1.worldMc._visible = true;
}
function pitchFlight() {
var _local1 = ball;
var m = _local1.worldMc;
_local1.lastX = _local1.x;
_local1.lastY = _local1.y;
_local1.lastZ = _local1.z;
_local1.lastX2 = m._x;
_local1.lastY2 = m._y;
_local1.lastScale = m._xscale;
_local1.lastDepth = m.getDepth();
var _local2 = _local1.speed;
_local1.z = _local1.z + _local2.z;
_local1.y = _local1.y + _local2.y;
_local1.x = _local1.x + _local2.x;
_local2.y = _local2.y + _local1.gravity;
_local2.z = _local2.z * _local1.friction;
_local2.x = _local2.x * _local1.friction;
_local2.y = _local2.y * _local1.friction;
if (_local1.z > -5) {
if (ajssc > 250) {
decr = 250;
} else {
decr = ajssc;
}
add_in(-decr);
ajssc = ajssc - decr;
world.bgMc.total = ajssc;
out_or_strike = true;
trace("STRIKE");
var n = "strike";
sounds1.gotoAndPlay("swish");
cookie_strikes++;
world.bgMc.strikes.play();
trace("world.bgMc.strikes.count=" + world.bgMc.strikes.count);
if (world.bgMc.strikes.count == 2) {
runner_state[batter_striking] = "none";
remove_batter(batter_striking);
new_batsman = true;
ajsbt--;
world.bgMc.bats = ajsbt;
world.bgMc.strikes.gotoAndPlay(1);
world.bgMc.strikes.count = 0;
var n = "youreOut";
if (ajssc > 750) {
decr = 750;
} else {
decr = ajssc;
}
add_in(-decr);
ajssc = ajssc - decr;
world.bgMc.total = ajssc;
trace("OUT " + world.bgMc.strikes.count);
}
displayTitle(n);
_local1.pitching = false;
_local1.moveFct = null;
enableBackSwing();
} else {
to2dObject(_local1, true);
var m = _local1.worldMc;
m._rotation = m._rotation + (_local2.x * 100);
m.spec._rotation = m._rotation * -1;
var _local3 = _local1.shadowMc;
var b0 = {x:_local1.x, y:map.height, z:_local1.z};
to2dPoint(b0);
var b1 = {x:_local1.x, y:map.height, z:_local1.z - 2};
to2dPoint(b1);
var b2 = {x:_local1.x, y:map.height, z:_local1.z + 2};
to2dPoint(b2);
var h = (b2.y2 - b1.y2);
if (h < 2) {
h = 2;
}
_local3._x = b0.x2;
_local3._y = b0.y2;
_local3._xscale = _local1.worldMc._xscale;
_local3._height = h;
_local1.mapMc._x = _local1.x;
_local1.mapMc._y = _local1.z;
if (_local1.y > map.yMax) {
}
}
}
function hitFlight() {
var _local1 = ball;
var i;
var m = _local1.worldMc;
_local1.lastX2 = m._x;
_local1.lastY2 = m._y;
var _local3 = _local1.speed;
var t = _local1.mapMc;
var _local2 = mapMc.cameraMc.homeMc;
var w = {x:t._x - _local2._x, y:t._y - _local2._y};
var d = ((w.x * w.x) + (w.y * w.y));
if (world.bgMc.shape == "circle") {
if (_local1.fence == true) {
if (d > world.bgMc.fence) {
if (_local1.y > world.bgMc.fenceHeight) {
displayValue(int(d / 1000), _local1.x2, _local1.y2, m.getDepth());
_local3.x = _local3.x * -1;
_local3.z = _local3.z * -1;
_local1.y = _local1.y + _local3.y;
_local1.x = _local1.x + _local3.x;
} else {
_local1.shadowMc._visible = false;
_local1.fence = false;
}
}
} else if (_local1.y > world.bgMc.fenceHeight) {
displayValue(4000, _local1.x2, _local1.y2, m.getDepth());
enableBackSwing();
_local1.moveFct = null;
_local1.worldMc._x = (_local1.worldMc._y = (_local1.shadowMc._x = (_local1.shadowMc._y = -900)));
return;
}
} else {
var h = false;
if (_local1.z < map.zMin) {
_local1.z = map.zMin;
_local3.z = _local3.z * -1;
h = true;
}
if (_local1.x > map.xMax) {
_local1.x = map.xMax;
h = true;
_local3.x = _local3.x * -1;
}
if (_local1.x < map.xMin) {
_local1.x = map.xMin;
h = true;
_local3.x = _local3.x * -1;
}
if (h == true) {
walls_hit++;
if (((bat.angle < -118) and (ajslv == 1)) and (walls_hit == 1)) {
sounds.gotoAndPlay("iron");
wall_m = 2;
} else {
sounds.gotoAndPlay("wall");
}
_local3.y = _local3.y * 0.8;
_local3.x = _local3.x * 0.8;
_local3.z = _local3.z * 0.8;
if ((_local1.y < world.bgMc.fenceHeight) && (_local1.hitGround != true)) {
displayValue(4000, _local1.x2, _local1.y2, m.getDepth());
} else {
displayValue(int(d / 1000), _local1.x2, _local1.y2, m.getDepth());
}
}
}
_local1.z = _local1.z + _local3.z;
_local1.y = _local1.y + _local3.y;
_local1.x = _local1.x + _local3.x;
if (_local1.y > map.yMax) {
_local1.hitGround = true;
_local1.y = map.yMax;
_local3.y = _local3.y * -0.8;
_local3.z = _local3.z * (_local1.friction * 0.8);
_local3.x = _local3.x * (_local1.friction * 0.8);
_local3.y = _local3.y * (_local1.friction * 0.8);
}
if (target.inLine == true) {
var c = {x:0, y:0};
_local1.mapMc.localToGlobal(c);
target.mapMc.globalToLocal(c);
if (c.x > target.distance) {
target.worldMc.gotoAndPlay("hit");
target.inLine = false;
target.multiplier = 2;
sounds2.gotoAndPlay("bonus");
}
}
if (fielder1.inLine == true) {
_local2 = fielder1;
}
if (fielder2.inLine == true) {
_local2 = fielder2;
}
fielder = _local2;
if ((_local3.z < 1) && (_local2.inLine == true)) {
var c = {x:0, y:0};
_local1.mapMc.localToGlobal(c);
_local2.mapMc.globalToLocal(c);
var cd = (_local2.distance - c.x);
if ((cd < 150) && (cd > 0)) {
var h = {x:_local2.x, y:_local1.y, z:_local2.z};
to2dPoint(h);
var h2 = {x:h.x2, y:h.y2};
world.mc.localToGlobal(h2);
_local2.bodyMc.globalToLocal(h2);
dec = "";
if (h2.y < _local2.hand[_local2.toFrame - 1]) {
if (_local2.bodyMc._totalframes > _local2.toFrame) {
var dec = "inc";
_local2.toFrame++;
}
} else if (((_local2.toFrame > 1) && (h2.y > _local2.hand[_local2.toFrame - 1])) && (h2.y > _local2.hand[_local2.toFrame - 2])) {
var dec = "dec";
_local2.toFrame--;
}
if (_local2.bodyMc._currentframe < _local2.toFrame) {
_local2.bodyMc.nextFrame();
} else if (_local2.bodyMc._currentframe > _local2.toFrame) {
_local2.bodyMc.prevFrame();
}
} else if (cd < 0) {
var h = {x:_local2.x, y:_local1.y, z:_local2.z};
to2dPoint(h);
var h2 = {x:h.x2, y:h.y2};
world.mc.localToGlobal(h2);
_local2.bodyMc.globalToLocal(h2);
if (_local2.caught == false) {
_local2.caught = true;
if (h2.y > _local2.hand[_local2.hand.length - 1]) {
i = _local2.hand.length - 1;
while ((i > 0) && (_local2.hand[i] < h2.y)) {
i--;
}
_local2.toFrame = i + 1;
_local2.bodyMc.gotoAndStop(_local2.toFrame);
_local1.worldMc._visible = false;
_local1.shadowMc._visible = false;
_local2.ballMc._visible = true;
_local3.x = (_local3.z = 0);
if (_local1.hitGround == false) {
ajsbt--;
man_caught = true;
world.bgMc.bats = ajsbt;
world.bgMc.strikes.gotoAndStop(1);
world.bgMc.strikes.count = 0;
displayTitle("caught");
_level0.cuss.play();
ball.moveFct = restoreFielder;
if (ajssc > 1000) {
decr = 1000;
} else {
decr = ajssc;
}
add_in(-decr);
ajssc = ajssc - decr;
world.bgMc.total = ajssc;
trace("CAUGHT!" + world.bgMc.strikes.count);
out_or_strike = true;
runner_state[batter_striking] = "none";
remove_batter(batter_striking);
new_batsman = true;
return;
}
}
} else if (_local2.bodyMc._currentframe == _local2.toFrame) {
_local2.toFrame = 5;
}
if (_local2.bodyMc._currentframe < _local2.toFrame) {
_local2.bodyMc.nextFrame();
} else if (_local2.bodyMc._currentframe > _local2.toFrame) {
_local2.bodyMc.prevFrame();
}
}
}
_local3.y = _local3.y + _local1.gravity;
_local3.z = _local3.z * _local1.friction;
_local3.x = _local3.x * _local1.friction;
_local3.y = _local3.y * _local1.friction;
to2dObject(_local1, true);
var bs = _local1.shadowMc;
var b0 = {x:_local1.x, y:map.height, z:_local1.z};
to2dPoint(b0);
var b1 = {x:_local1.x, y:map.height, z:_local1.z - 2};
to2dPoint(b1);
var b2 = {x:_local1.x, y:map.height, z:_local1.z + 2};
to2dPoint(b2);
var h = (b2.y2 - b1.y2);
if (h < 2) {
h = 2;
}
bs._x = b0.x2;
bs._y = b0.y2;
bs._xscale = _local1.worldMc._xscale;
bs._height = h;
_local1.mapMc._x = _local1.x;
_local1.mapMc._y = _local1.z;
if ((bat.backSwing == false) && (((Math.abs(_local3.x) + Math.abs(_local3.y)) + Math.abs(_local3.z)) < 2)) {
enableBackSwing();
displayValue(int(d / 1000), _local1.x2, _local1.y2, m.getDepth());
}
var p = {x:_local1.x2, y:_local1.y2};
var m = world.arrowMc;
world.mc.localToGlobal(p);
if ((((p.x < 640) && (p.x > 0)) && (p.y > 0)) && (p.y < 480)) {
m._y = -1000;
m.gotoAndStop(1);
} else {
a = 99;
_local3 = 1;
if (p.x > 640) {
p.x = 640;
a = 0;
}
if (p.x < 0) {
p.x = 0;
_local3 = -1;
a = 0;
}
if (p.y < 0) {
p.y = 0;
if (a == 0) {
a = -45;
} else {
a = -90;
}
}
world.mc.globalToLocal(p);
var c = ((_local3 * Math.abs(_local1.worldMc._xscale)) * 1);
m._rotation = 0;
m._xscale = c;
m._yscale = Math.abs(c);
m._rotation = a;
m._x = p.x;
m._y = p.y;
}
}
function setBatDepth() {
var _local2 = bat.mapMc._currentframe;
var _local1 = bat.mapMc.getBounds(map.cameraMc);
if ((_local2 > 7) && (_local2 < 30)) {
bat.z = _local1.yMin;
} else {
bat.z = _local1.yMax;
}
setDepth(bat);
}
function to3dPoint(p) {
var _local1 = p;
var _local2 = map.vp / (map.vp + _local1.z);
_local1.x = (_local1.x2 / _local2) / map.scale;
_local1.y = (_local1.y2 / _local2) / map.scale;
_local1.ratio = _local2;
}
function to2dPoint(p) {
var _local1 = p;
var _local2 = map.vp / (map.vp + _local1.z);
_local1.x2 = (_local1.x * _local2) * map.scale;
_local1.y2 = (_local1.y * _local2) * map.scale;
_local1.ratio = _local2;
}
function to2dObject(p, d) {
var _local1 = p;
var _local3 = map.vp / (map.vp + _local1.z);
_local1.x2 = (_local1.x * _local3) * map.scale;
_local1.y2 = (_local1.y * _local3) * map.scale;
_local1.ratio = _local3 * map.scale;
var _local2 = _local1.worldMc;
_local2._x = _local1.x2;
_local2._y = _local1.y2;
_local2._xscale = (_local2._yscale = _local1.ratio * _local1.scale);
if (d == true) {
setDepth(_local1);
}
}
function setDepth(obj, m) {
var _local1 = int((obj.z * 20) + 15000);
if (m == null) {
var _local2 = obj.worldMc;
} else {
var _local2 = m;
}
_local2.swapDepths(_local1);
}
function enablePointer() {
var _local2 = pointer;
var _local1 = _local2.zoneMc.getBounds(worldMc);
_local2.worldMc.startDrag(true, _local1.xMin - 5, _local1.yMin - 5, _local1.xMax + 5, _local1.yMax + 5);
_local2.moveFct = movePointer;
}
function movePointer() {
var _local2 = pointer;
var t = batter;
var _local1 = bat;
var f = frontMc.batMc;
_local1.worldMc._x = _local2.worldMc._x - _local2.toBat.x;
t.worldMc._x = _local2.worldMc._x - _local2.toBatter.x;
_local1.z = _local1.zo;
_local1.x2 = _local1.worldMc._x;
_local1.y2 = _local1.worldMc._y;
to3dPoint(_local1);
f._x = (_local1.mapMc._x = _local1.x);
f._y = _local1.y;
_local1.worldMc._y = _local1.yo + ((_local2.worldMc._y - _local2.yo) * 0.5);
var _local3 = (Math.atan2(_local2.worldMc._y - _local1.worldMc._y, _local2.worldMc._x - _local1.worldMc._x) / Math.PI) * 180;
if ((_local3 > -25) && (_local3 < 45)) {
f._rotation = (_local1.worldMc._rotation = _local3);
}
}
function disablePointer() {
var _local1 = pointer;
stopDrag();
_local1.moveFct = null;
}
function displayValue(v, x, y, d) {
if (ball.scored == true) {
} else {
ball.scored = true;
if (ball.foul == true) {
displayTitle("foulBall");
if (world.bgMc.strikes.count < 2) {
world.bgMc.strikes.play();
}
} else {
if (v == 4000) {
displayTitle("homeRun");
sounds1.gotoAndPlay("homerun");
if (ajsbl == 0) {
ajsbl++;
}
world.bgMc.strikes.gotoAndStop(1);
world.bgMc.strikes.count = 0;
world.bgMc.balls = ajsbl;
cookie_homeruns++;
homerun = true;
}
if (v == 4000) {
wall_m = 1;
}
trace((("+++++++++++ SCORE " + v) + " ") + wall_m);
v = v * (target.multiplier * wall_m);
ajssc = ajssc + v;
add_in(v);
world.bgMc.total = ajssc;
d = d - 100;
var w = world;
w.moveFct = null;
var p = {x:x, y:y};
var p = {x:ball.x, y:map.height, z:ball.z};
to2dPoint(p);
var g = {x:p.x2, y:p.y2};
w.mc.localToGlobal(g);
if (g.x > 600) {
g.x = 600;
}
if (g.x < 40) {
g.x = 40;
}
w.mc.globalToLocal(g);
var m = w.mc.attachMovie("number", "number", d, {_x:g.x, _y:g.y});
var s = v;
var b = " ";
var l = length(s);
if (l < 4) {
s = (substring(b, 1, 4 - l)) + s;
}
var _local1;
_local1 = 1;
while (_local1 < 5) {
var _local2 = m["n" + Number(_local1 - 1)];
var _local3 = substring(s, _local1, 1);
if (_local3 == " ") {
_local2.gotoAndStop(11);
} else {
_local2.gotoAndStop(Number(_local3) + 1);
}
_local1++;
}
}
}
}
function displayTitle(n) {
var _local1 = world;
_local1.mc.frameLabel = n;
var _local2 = {x:320, y:180};
_local1.mc.globalToLocal(_local2);
var _local3 = batter.worldMc.getDepth() - 100;
_local1.mc.attachMovie("title", "title", _local3, {_x:_local2.x, _y:_local2.y});
_local1.moveFct = null;
}
task_text = task_text_a[level];
proper_baseball = level == 10;
pitchmap._visible = proper_baseball;
pitchmap.comment = "";
runs_scored = 0;
var map = {mc:mapMc, cameraMc:mapMc.cameraMc, vp:mapMc.cameraMc.vpMc._y, zMin:-850, yMax:23.5, xMax:280, xMin:-310, height:25, scale:160};
var world = {mc:worldMc, x2:worldMc._x, y2:worldMc._y, step:0.4, to:null, moveFct:null, bgMc:worldMc.bgMc.levelMc, arrowMc:worldMc.arrowMc, depth:0};
var target = {mapMc:mapMc.cameraMc.targetMc, worldMc:worldMc.targetMc, y:map.height, angle:0, scale:40, inLine:false, multiplier:1};
var collision = {checkFct:null};
var bat = {backSwing:false, x:0, y:0, z:mapMc.cameraMc.batMc._y, zo:mapMc.cameraMc.batMc._y, xo:worldMc.batMc._x, yo:worldMc.batMc._y, x2:0, y2:0, depth:0, mapMc:mapMc.cameraMc.batMc, worldMc:worldMc.batMc, moveFct:null, fence:true, scored:false, angle:0};
var fielder = null;
var fielder2 = {worldMc:worldMc.fielder2Mc, bodyMc:worldMc.fielder2Mc.bodyMc, gloveMc:worldMc.fielder2Mc.bodyMc.gloveMc, ballMc:worldMc.fielder2Mc.bodyMc.gloveMc.ballMc, mapMc:mapMc.cameraMc.fielder2Mc, y:map.height, distance:0, scale:25, angles:[], hand:[], angle:0, toFrame:5, max:310, caught:false, inLine:false};
var fielder1 = {worldMc:worldMc.fielder1Mc, bodyMc:worldMc.fielder1Mc.bodyMc, gloveMc:worldMc.fielder1Mc.bodyMc.gloveMc, ballMc:worldMc.fielder1Mc.bodyMc.gloveMc.ballMc, mapMc:mapMc.cameraMc.fielder1Mc, y:map.height, distance:0, scale:27, angles:[], hand:[], angle:0, toFrame:5, max:310, caught:false, inLine:false};
var batter = {worldMc:worldMc.batterMc, animMc:worldMc.batterMc.batterAnim, xo:worldMc.batterMc._x, yo:worldMc.batterMc._y, z:mapMc.cameraMc.homeMc._y};
var pitcher = {x:0, y:map.height, z:-349, scale:27, x2:0, y2:0, xo:worldMc.pitcherMc._x, yo:worldMc.pitcherMc._y, worldMc:worldMc.pitcherMc, moveFct:null};
var pointer = {x2:0, y2:0, zoneMc:worldMc.zoneMc, toBatter:{x:worldMc.pointerMc._x - batter.xo, y:worldMc.pointerMc._y - batter.yo}, toBat:{x:worldMc.pointerMc._x - bat.xo, y:worldMc.pointerMc._y - bat.yo}, xo:worldMc.pointerMc._x, yo:worldMc.pointerMc._y, worldMc:worldMc.pointerMc, moveFct:enablePointer};
var ball = {x:0, y:0, z:0, pitching:false, speed:{x:0, y:0, z:0}, x2:0, y2:0, lastX2:0, lastY2:0, scale:30, ratio:0, gravity:0, friction:0, depth:0, hitGround:false, shadowMc:worldMc.shadowMc, mapMc:mapMc.cameraMc.ballMc, worldMc:worldMc.ballMc, foul:false, moveFct:null};
initialize();
fielder_id = 0;
stop();
Instance of Symbol 669 MovieClip "sounds" in Frame 18
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 676 MovieClip "sounds1" in Frame 18
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 680 MovieClip "cuss" in Frame 18
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 684 MovieClip "doh" in Frame 18
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 687 MovieClip "sounds2" in Frame 18
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 281 MovieClip "game_cooky" in Frame 18
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
var _local1 = game_id;
name = "game" + _local1;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + _local1);
so.data.game_id = _local1;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
so.data.f10 = f10;
so.data.f11 = f11;
so.data.f12 = f12;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
trace("f9..." + f9);
trace("f10..." + f10);
trace("f11..." + f11);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
_level0.f10 = so.data.f10;
_level0.f11 = so.data.f11;
_level0.f12 = so.data.f12;
}
return(result);
}
_visible = true;
}
Frame 19
_quality = "best";
stop();
Instance of Symbol 721 MovieClip in Frame 19
onClipEvent (enterFrame) {
_visible = (!_level0.sound_on);
}
Frame 20
no_team = "I don't want a team!";
myColor = new Color(batterMC.batterAnim.cap);
myColor.setRGB(cap_col);
myColor = new Color(batterMC.batterAnim.shirt);
myColor.setRGB(shirt_col);
myColor = new Color(batterMC.batterAnim.pants);
myColor.setRGB(pants_col);
myColor = new Color(batterMC.batterAnim.shoes);
myColor.setRGB(shoes_col);
error_m = "";
Instance of Symbol 281 MovieClip "game_cooky" in Frame 20
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
var _local1 = game_id;
name = "game" + _local1;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + _local1);
so.data.game_id = _local1;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
so.data.f10 = f10;
so.data.f11 = f11;
so.data.f12 = f12;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
trace("f9..." + f9);
trace("f10..." + f10);
trace("f11..." + f11);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
_level0.f10 = so.data.f10;
_level0.f11 = so.data.f11;
_level0.f12 = so.data.f12;
}
return(result);
}
_visible = true;
}
Frame 21
game_cooky.write_game_cookie(game_id, cookie_name, cookie_sound, cookie_team, cookie_in_uk, cookie_best, cookie_homeruns, cookie_balls, cookie_strikes, cap_col, shirt_col, pants_col, shoes_col);
stop();
Frame 23
function teamselected1() {
tid = teamlist1.getSelectedItem().label;
trace("team..." + tid);
myteam = tid;
}
teamlist1.setEnabled(true);
teamlist1.setChangeHandler("teamselected1");
teamlist1.addItem(no_team);
teamlist1.addItem("Arizona");
teamlist1.addItem("Atlanta");
teamlist1.addItem("Baltimore");
teamlist1.addItem("Boston");
teamlist1.addItem("Chicago Cs");
teamlist1.addItem("Chicago Ws");
teamlist1.addItem("Cincinnati");
teamlist1.addItem("Cleveland");
teamlist1.addItem("Colorado");
teamlist1.addItem("Detroit");
teamlist1.addItem("Florida");
teamlist1.addItem("Houston");
teamlist1.addItem("Kansas City");
teamlist1.addItem("Los Angeles As");
teamlist1.addItem("Los Angeles Ds");
teamlist1.addItem("Milwaukee");
teamlist1.addItem("Minnesota");
teamlist1.addItem("New York Ms");
teamlist1.addItem("New York Ys");
teamlist1.addItem("Oakland");
teamlist1.addItem("Philadelphia");
teamlist1.addItem("Pittsburgh");
teamlist1.addItem("San Diego");
teamlist1.addItem("San Francisco");
teamlist1.addItem("Seattle");
teamlist1.addItem("St. Louis");
teamlist1.addItem("Tampa Bay");
teamlist1.addItem("Texas");
teamlist1.addItem("Toronto");
teamlist1.addItem("Washington");
stop();
Instance of Symbol 174 MovieClip [FListBoxSymbol] "teamlist1" in Frame 23
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Frame 40
function remove_squares() {
j = 1;
while (j <= 4) {
i = 1;
while (i <= max_col) {
id = (i + (j * max_col)) - max_col;
removeMovieClip("colour" + id);
i++;
}
j++;
}
}
function pressed(buin) {
var _local1 = buin;
_local1 = Number(_local1.substr(6, 2));
myrow = _local1 % max_col;
mycol = 1 + Math.floor(_local1 / max_col);
if (myrow == 0) {
myrow = max_col;
mycol--;
}
trace((((_local1 + " ") + myrow) + " ") + mycol);
if (mycol == 1) {
myColor = new Color(batterMC.batterAnim.cap);
myColor.setRGB(getcolour[myrow]);
cap_col = getcolour[myrow];
}
if (mycol == 2) {
myColor = new Color(batterMC.batterAnim.shirt);
myColor.setRGB(getcolour[myrow]);
shirt_col = getcolour[myrow];
}
if (mycol == 3) {
myColor = new Color(batterMC.batterAnim.pants);
myColor.setRGB(getcolour[myrow]);
pants_col = getcolour[myrow];
}
if (mycol == 4) {
myColor = new Color(batterMC.batterAnim.shoes);
myColor.setRGB(getcolour[myrow]);
shoes_col = getcolour[myrow];
}
trace("write cap" + cap_col);
trace("write shir" + shirt_col);
trace("write pant" + pants_col);
trace("write sh" + shoes_col);
game_cooky.write_game_cookie(game_id, cookie_name, cookie_sound, cookie_team, cookie_in_uk, cookie_best, cookie_homeruns, cookie_balls, cookie_strikes, cap_col, shirt_col, pants_col, shoes_col);
}
j = 1;
while (j <= 4) {
i = 1;
while (i <= max_col) {
id = (i + (j * max_col)) - max_col;
duplicateMovieClip ("square_temp", "colour" + id, id);
mc = eval ("colour" + id);
mc._x = 280 + (i * 25);
mc._y = 100 + ((j - 1) * 50);
mid = this["colour" + id].middle;
myColor = new Color(mid);
myColor.setRGB(getcolour[i]);
i++;
}
j++;
}
myColor = new Color(batterMC.batterAnim.cap);
myColor.setRGB(cap_col);
myColor = new Color(batterMC.batterAnim.shirt);
myColor.setRGB(shirt_col);
myColor = new Color(batterMC.batterAnim.pants);
myColor.setRGB(pants_col);
myColor = new Color(batterMC.batterAnim.shoes);
myColor.setRGB(shoes_col);
stop();
Instance of Symbol 281 MovieClip "game_cooky" in Frame 40
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
var _local1 = game_id;
name = "game" + _local1;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + _local1);
so.data.game_id = _local1;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
so.data.f10 = f10;
so.data.f11 = f11;
so.data.f12 = f12;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
trace("f9..." + f9);
trace("f10..." + f10);
trace("f11..." + f11);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
_level0.f10 = so.data.f10;
_level0.f11 = so.data.f11;
_level0.f12 = so.data.f12;
}
return(result);
}
_visible = true;
}
Instance of Symbol 286 MovieClip "tasks_cooky" in Frame 41
onClipEvent (load) {
function write_game_cookie(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
trace("writing cookie......f : " + f0);
trace("writing cookie......f : " + f1);
trace("writing cookie......f : " + f2);
trace("writing cookie......f : " + f3);
trace("writing cookie......f : " + f4);
trace("writing cookie......f : " + f5);
trace("writing cookie......f : " + f6);
trace("writing cookie......f : " + f7);
trace("writing cookie......f : " + f8);
trace("writing cookie......f : " + f9);
trace("writing cookie......f : " + f10);
so.data.f0 = f0;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
so.data.f10 = f10;
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.f0 = so.data.f0;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
_level0.f10 = so.data.f10;
}
return(result);
}
_visible = true;
game_id = "task_ph2_v1";
}
Frame 42
function ul(lein) {
trace("call " + lein);
this["locked" + lein] = false;
tasks_cooky.write_game_cookie(cookie_id, locked1, locked2, locked3, locked4, locked5, locked6, locked7, locked8, locked9, locked10);
}
lejustdone = level;
if (task_complete) {
task_message = ("Task " + level) + " completed!";
} else {
task_message = ("Oh dear! Task " + level) + " failed. Try again.";
}
trace("call ul" + lejustdone);
if (task_complete) {
ul(lejustdone);
}
stop();
Frame 43
stop();
Frame 44
function reload() {
secs = 1;
trace("secs..." + secs);
if (secs > 240) {
gotoAndPlay (64);
} else {
gotoAndPlay (15);
}
}
stopAllSounds();
get_strike_pct();
score = ajssc;
if (level <= 10) {
start_add_in(0);
ajssc = task_points_doubled[level];
add_in(ajssc);
score = ajssc;
ajssc = ajssc / 2;
}
trace((("myteam..." + myteam) + " ") + no_team);
myteam_txt = myteam;
if (myteam_txt == no_team) {
myteam_txt = "None";
}
pbest = false;
if (ajssc > cookie_best) {
cookie_best = ajssc;
pbest = true;
}
trace("ajssc " + ajssc);
trace("cookie_best " + cookie_best);
trace("pbest " + pbest);
min_movie._visible = false;
Instance of Symbol 790 MovieClip "pb" in Frame 44
onClipEvent (enterFrame) {
_visible = _level0.pbest;
}
Instance of Symbol 281 MovieClip "game_cooky" in Frame 44
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9) {
var _local1 = game_id;
name = "game" + _local1;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + _local1);
so.data.game_id = _local1;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 46
game_cooky.write_game_cookie(game_id, cookie_name, cookie_sound, cookie_team, cookie_in_uk, cookie_best, cookie_homeruns, cookie_balls, cookie_strikes, cap_col, shirt_col, pants_col, shoes_col);
stop();
Frame 53
stop();
Instance of Symbol 831 MovieClip "xyz" in Frame 53
onClipEvent (load) {
a = _level0.score;
l = _level0.level;
id = _level0.cookie_id;
team = _level0.myteam_txt;
b = _level0.scnt;
c = _level0.thescore;
name = _level0.myname;
d = _level0.whas;
e = _level0.whas2006;
trace("t..." + team);
trace("n..." + name);
trace("score..." + a);
trace("level..." + l);
trace("id..." + id);
trace("score..." + c);
trace("score..." + (d / e));
command = "update";
this.loadVariables("http://www.mousebreaker.com/games/pinchhitter2/highscores_pinchhitter2.php?" + int(Math.random() * 100000), "POST");
}
onClipEvent (data) {
_level0.hstitle = "Top Teams This Week!";
trace("PLAYERS.." + players);
trace("SCORES.." + scores);
_level0.players0 = players;
_level0.scores0 = scores;
_level0.players1 = players1;
_level0.scores1 = scores1;
_level0.players2 = players2;
_level0.scores2 = scores2;
_level0.players = players;
_level0.scores = scores;
}
Instance of Symbol 281 MovieClip "game_cooky" in Frame 64
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9) {
var _local1 = game_id;
name = "game" + _local1;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + _local1);
so.data.game_id = _local1;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 82
trace("here!");
getURL ("http://www.mousebreaker.com/games/pinchhitter2/play.php?" + int(Math.random() * 100000), "_self");
stop();
Frame 83
gotoAndStop (64);
Symbol 13 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 23 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 32 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 33 MovieClip [UpArrow] Frame 1
stop();
Symbol 33 MovieClip [UpArrow] Frame 2
stop();
Symbol 33 MovieClip [UpArrow] Frame 3
stop();
Symbol 40 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 47 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 52 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 53 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 61 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 69 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 77 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 78 MovieClip [DownArrow] Frame 1
stop();
Symbol 78 MovieClip [DownArrow] Frame 2
stop();
Symbol 78 MovieClip [DownArrow] Frame 3
stop();
Symbol 81 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 81 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 81 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 89 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 92 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 95 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 97 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 100 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 103 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 104 MovieClip [fcb_states] Frame 1
stop();
Symbol 104 MovieClip [fcb_states] Frame 2
stop();
Symbol 104 MovieClip [fcb_states] Frame 3
stop();
Symbol 104 MovieClip [fcb_states] Frame 4
stop();
Symbol 104 MovieClip [fcb_states] Frame 5
stop();
Symbol 104 MovieClip [fcb_states] Frame 6
stop();
Symbol 107 MovieClip [FLabelSymbol] Frame 1
#initclip 3
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 108 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 111 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 111 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 114 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 4
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 117 MovieClip [ghost] Frame 11
this.removeMovieClip();
stop();
Symbol 128 MovieClip Frame 1
this.gotoAndStop(_parent._parent.frameLabel);
stop();
Symbol 135 MovieClip [title] Frame 1
var d = 50000;
if (_parent.frameLabel == "homeRun") {
ball.onEnterFrame = function () {
var t = titleText.getBounds(_parent);
var h = titleText._height;
var b = this.getBounds(_parent);
var _local1;
_local1 = 0;
while (_local1 < (random(6) + 1)) {
_parent.attachMovie("star", "s" + d, d++, {_x:b.xMin - random(20), _y:t.yMin + random(h)});
_local1++;
}
spec._rotation = _rotation * -1;
};
}
Symbol 135 MovieClip [title] Frame 69
this.removeMovieClip();
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 157 MovieClip [number] Frame 58
this.removeMovieClip();
stop();
Symbol 163 MovieClip [star] Frame 1
_rotation = random(360);
speed = (8 + random(4)) - 2;
friction = 0.95;
if (random(2) == 1) {
dir = 1;
} else {
dir = -1;
}
this.onEnterFrame = function () {
this._rotation = this._rotation + (random(10) * dir);
this._x = this._x + speed;
speed = speed * friction;
};
Symbol 163 MovieClip [star] Frame 46
this.removeMovieClip();
stop();
Symbol 165 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 166 MovieClip [FScrollBarSymbol] Frame 1
#initclip 6
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 167 MovieClip [FListItemSymbol] Frame 1
#initclip 10
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 168 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
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) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 169 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 8
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
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) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 170 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
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) {
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
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) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
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 _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#endinitclip
Instance of Symbol 168 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 170 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 169 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 170 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 171 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) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
}
};
#endinitclip
Instance of Symbol 166 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 171 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 170 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 171 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 174 MovieClip [FListBoxSymbol] Frame 1
#initclip 9
function FListBoxClass() {
var _local1 = this;
_local1.itemSymbol = "FListItemSymbol";
_local1.init();
_local1.permaScrollBar = true;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.boundingBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._yscale = (_local1._xscale = 100);
_local1.setSize(_local1.width, _local1.height);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local1 = this;
var _local2 = new Array();
for (var _local3 in _local1.selected) {
_local2.push(_local1.selected[_local3].sIndex);
}
if (_local2.length <= 0) {
return(undefined);
}
return(_local2);
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local2 = this.getSelectedIndices();
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(this.getItemAt(_local2[_local1]));
_local1++;
}
if (_local3.length <= 0) {
return(undefined);
}
return(_local3);
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
var _local2 = indexArray;
var _local3 = this;
_local3.clearSelected();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.selectItem(_local2[_local1], true);
_local1++;
}
_local3.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = this;
var _local1 = (count * (_local2.itmHgt - 2)) + 2;
_local2.setSize(_local2.width, _local1);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (!_local1.enable) {
} else {
_local3 = Math.max(_local3, 20);
_local2 = Math.max(_local2, 40);
_local1.container_mc.removeMovieClip();
_local1.container_mc = _local1.createEmptyMovieClip("container", 3);
_local1.measureItmHgt();
_local1.numDisplayed = Math.floor(_local2 / (_local1.itmHgt - 2));
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local3, _local1.height);
}
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
if (_local1.clickFilter) {
var _local3 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local3) == undefined) {
_local1.changeFlag = false;
return;
}
_local1.changeFlag = true;
if (((!_local1.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
_local1.clearSelected();
_local1.selectItem(_local3, true);
_local1.lastSelected = _local3;
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (Key.isDown(16) && (_local1.selectMultiple)) {
if (_local1.lastSelected == -1) {
_local1.lastSelected = _local3;
}
var incr = ((_local1.lastSelected < _local3) ? 1 : -1);
_local1.clearSelected();
var _local2 = _local1.lastSelected;
while (_local2 != _local3) {
_local1.selectItem(_local2, true);
if ((_local2 >= _local1.topDisplayed) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
_local2 = _local2 + incr;
}
_local1.selectItem(_local3, true);
_local1.container_mc[("fListItem" + (_local3 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (key.isDown(17)) {
var selectedFlag = _local1.isSelected(_local3);
if (!_local1.selectMultiple) {
_local1.clearSelected();
}
if (!((!_local1.selectMultiple) && (selectedFlag))) {
_local1.selectItem(_local3, !selectedFlag);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local1.topDisplayed + itemNum), _local1.isSelected(_local1.topDisplayed + itemNum));
}
_local1.lastSelected = _local3;
}
} else {
_local1.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 171 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 174 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 247 MovieClip [bl] Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 247 MovieClip [bl] Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 247 MovieClip [bl] Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 247 MovieClip [bl] Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 254 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 250 MovieClip "bkgd" in Symbol 254 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;
trace("....." + Number(p));
if (Number(p) >= Number(100)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Symbol 260 MovieClip Frame 7
gotoAndPlay (1);
Symbol 263 MovieClip Frame 32
gotoAndPlay (1);
Symbol 268 MovieClip Frame 120
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 303 Button
on (release, keyPress "<Enter>") {
thislevel = 10;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 313 Button
on (release, keyPress "<Enter>") {
thislevel = 1;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 315 Button
on (release, keyPress "<Enter>") {
thislevel = 2;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 317 Button
on (release, keyPress "<Enter>") {
thislevel = 3;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 319 Button
on (release, keyPress "<Enter>") {
thislevel = 4;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 321 Button
on (release, keyPress "<Enter>") {
thislevel = 5;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 323 Button
on (release, keyPress "<Enter>") {
thislevel = 6;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 325 Button
on (release, keyPress "<Enter>") {
thislevel = 7;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 327 Button
on (release, keyPress "<Enter>") {
level = 1;
play();
}
Symbol 329 Button
on (release, keyPress "<Enter>") {
thislevel = 8;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 331 Button
on (release, keyPress "<Enter>") {
thislevel = 9;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 347 Button
on (release) {
if (password_in.toUpperCase() == "37HY44LM") {
_level0.locked1 = false;
_level0.locked2 = false;
_level0.locked3 = false;
_level0.locked4 = false;
_level0.locked5 = false;
_level0.locked6 = false;
_level0.locked7 = false;
_level0.locked8 = false;
_level0.tasks_cooky.write_game_cookie(cookie_id, _level0.locked1, _level0.locked2, _level0.locked3, _level0.locked4, _level0.locked5, _level0.locked6, _level0.locked7, _level0.locked8, _level0.locked9, _level0.locked10);
_level0.gotoAndPlay("firstframe");
}
}
Symbol 359 MovieClip Frame 1
count = 0;
stop();
Symbol 359 MovieClip Frame 2
count = 1;
Symbol 359 MovieClip Frame 20
stop();
Symbol 359 MovieClip Frame 21
count = 2;
Symbol 359 MovieClip Frame 39
stop();
Symbol 363 MovieClip Frame 1
fence = 864900 /* 0x0D3284 */;
fenceHeight = -29;
shape = "square";
angle = 18;
dist = 180;
Symbol 363 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 1
fence = 864900 /* 0x0D3284 */;
fenceHeight = -60;
shape = "circle";
angle = 18;
dist = 310;
Symbol 374 MovieClip Frame 2
stop();
Symbol 384 MovieClip Frame 1
fence = 1102500 /* 0x10D2A4 */;
fenceHeight = 0;
shape = "circle";
angle = 12;
dist = 400;
Symbol 384 MovieClip Frame 3
stop();
Symbol 385 MovieClip Frame 1
_parent.batterMc.gotoAndStop("ll");
stop();
Symbol 385 MovieClip Frame 2
_parent.batterMc.gotoAndStop("ll");
stop();
Symbol 385 MovieClip Frame 3
trace("set big batter!");
_parent.batterMc.gotoAndStop("bl");
_level0.colour_man();
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 28
gotoAndPlay (1);
Symbol 450 MovieClip Frame 49
stop();
Symbol 484 MovieClip Frame 53
callBack();
Symbol 484 MovieClip Frame 63
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 5
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 585 MovieClip Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 585 MovieClip Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 585 MovieClip Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 586 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 9
_parent._parent.setBatDepth();
Symbol 612 MovieClip Frame 12
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 1
callBack();
stop();
Symbol 645 MovieClip Frame 2
callBack();
Symbol 645 MovieClip Frame 10
callBack();
Symbol 645 MovieClip Frame 12
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 59
stop();
Symbol 669 MovieClip Frame 91
stop();
Symbol 669 MovieClip Frame 130
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 120
stop();
Symbol 676 MovieClip Frame 130
_level0.doh.play();
Symbol 676 MovieClip Frame 152
stop();
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 66
gotoAndStop (1);
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 33
stop();
Symbol 684 MovieClip Frame 49
stop();
Symbol 684 MovieClip Frame 100
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 59
stop();
Instance of Symbol 694 MovieClip "base0" in Symbol 695 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 694 MovieClip "base1" in Symbol 695 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 694 MovieClip "base2" in Symbol 695 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 694 MovieClip "base3" in Symbol 695 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 715 Button
on (release) {
gotoAndPlay (20);
}
Symbol 718 Button
on (release) {
gotoAndStop (43);
}
on (rollOver) {
_level0.howto.gotoAndStop(2);
}
on (rollOut) {
_level0.howto.gotoAndStop(1);
}
Symbol 719 Button
on (release) {
sound_on = !sound_on;
toggle_sound();
cookie_sound = sound_on;
game_cooky.write_game_cookie(game_id, cookie_name, cookie_sound, cookie_city, cookie_in_uk, cookie_best, cookie_homeruns, cookie_balls, cookie_strikes, cookie_done_survey);
}
on (rollOver) {
_level0.soundoff.gotoAndStop(2);
}
on (rollOut) {
_level0.soundoff.gotoAndStop(1);
}
Symbol 724 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 2
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 2
stop();
Symbol 730 Button
on (release) {
getURL ("http://www.addictinggames.com/", "_blank");
}
Symbol 732 Button
on (release) {
getURL ("http://www.mousebreaker.com/", "_blank");
}
Symbol 736 Button
on (release) {
gotoAndPlay (40);
}
Symbol 737 Button
on (release) {
gotoAndStop ("pickteam");
}
Symbol 738 Button
on (release) {
gotoAndStop ("pickname");
}
Symbol 739 Button
on (release) {
if ((((myname.length > 0) and (myteam.length > 0)) and (myname != "none")) and (myteam != "none")) {
gotoAndPlay (15);
} else {
error_m = "You need to pick a team and name!";
}
}
Symbol 751 Button
on (release) {
trace("team..." + myteam);
if (myteam != null) {
cookie_team = myteam;
gotoAndPlay (20);
}
}
Symbol 760 Button
on (release) {
trace("nn..." + myname);
if ((myname.length > 2) and (myname.length <= 10)) {
cookie_name = myname;
gotoAndPlay (20);
}
}
Symbol 768 Button
on (release) {
_level0.pressed(_name);
}
Symbol 774 Button
on (release) {
remove_squares();
gotoAndPlay (20);
}
Symbol 782 Button
on (release) {
if (task_complete) {
gotoAndPlay (44);
} else {
gotoAndPlay (15);
}
}
Symbol 788 Button
on (release) {
gotoAndPlay (20);
}
Symbol 790 MovieClip Frame 1
Symbol 790 MovieClip Frame 20
gotoAndPlay (2);
Symbol 792 Button
on (release) {
play();
}
Symbol 793 Button
on (release) {
play();
}
Symbol 796 Button
on (release) {
reload();
}
Symbol 805 Button
on (release) {
gotoAndPlay ("highscores");
}
Symbol 812 Button
on (press) {
textDown.gotoAndPlay("down");
}
on (release, dragOut) {
textDown.gotoAndStop("empty");
}
Symbol 813 Button
on (press) {
textUp.gotoAndPlay("up");
}
on (release, dragOut) {
textUp.gotoAndStop("empty");
}
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 2
if (_parent._parent.players.scroll < _parent._parent.players.maxscroll) {
_parent._parent.players.scroll = _parent._parent.players.scroll + 1;
_parent._parent.scores.scroll = _parent._parent.scores.scroll + 1;
}
Symbol 814 MovieClip Frame 3
gotoAndPlay ("down");
Symbol 815 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 2
_parent._parent.players.scroll = _parent._parent.players.scroll - 1;
_parent._parent.scores.scroll = _parent._parent.scores.scroll - 1;
Symbol 815 MovieClip Frame 3
gotoAndPlay ("up");
Symbol 818 Button
on (release) {
_level0.hstitle = "Top Teams This Week!";
_level0.players = players1;
_level0.scores = scores1;
}
Symbol 819 Button
on (release) {
_level0.hstitle = "Previous Winning Teams!";
_level0.players = players2;
_level0.scores = scores2;
}
Symbol 822 Button
on (release) {
_level0.hstitle = "Top 100 Daily Scores!";
_level0.players = players0;
_level0.scores = scores0;
}
Symbol 828 Button
on (release) {
reload();
}