Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("4ce44e01", this, 10301, true);
Instance of Symbol 279 MovieClip "game_cooky" in Frame 3
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
name = "general_stats_ph2";
so = SharedObject.getLocal(name, "/");
so.data.game_id = game_id;
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;
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
} else {
result = true;
_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 4
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++;
}
cookie_tasks = "task_ph2_atari_v1";
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);
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;
get_strike_pct();
whas2006 = random(7) + 2;
Frame 5
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);
Frame 6
gotoAndPlay (11);
Frame 7
cookie_best_text = ("(best=" + cookie_best) + ")";
level_map = new Array(0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 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";
rankings[12] = "Professional - Level 10";
task_text_a = new Array();
task_text_a[1] = "10 Balls to hit a homerun!";
task_text_a[2] = "Score 8,000 points in 10 balls!";
task_text_a[3] = "3 Balls to avoid an OUT!";
task_text_a[4] = "Hit 2 homeruns in 10 balls";
task_text_a[5] = "10 Balls to hit a homerun!";
task_text_a[6] = "5 Balls to avoid an OUT!";
task_text_a[7] = "Score 12,000 points in 10 balls!";
task_text_a[8] = "Hit 2 homeruns in 10 balls";
task_text_a[9] = "10 Balls to hit a hometrun!";
task_text_a[10] = "Score 20,000 points in 10 balls!";
task_text_a[11] = "Bottom of the 9th and you need 8 runs to win a Championship!";
task_text_a[12] = "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] = 1000;
task_points_doubled[10] = 2000;
task_points_doubled[11] = 4000;
Instance of Symbol 292 MovieClip "tasks_cooky" in Frame 7
onClipEvent (load) {
function write_game_cookie(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
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.data.f11 = f11;
so.flush();
}
function read_game_cookie() {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.f1 == null) {
result = false;
write_mb();
read_mb();
} else {
result = true;
_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;
_level0.f11 = so.data.f11;
}
return(result);
}
_visible = true;
game_id = _level0.cookie_tasks;
}
Frame 8
ajs_testing = false;
exist = tasks_cooky.read_game_cookie();
if (exist) {
cookie_id = f0;
locked1 = f1;
locked2 = f2;
locked3 = f3;
locked4 = f4;
locked5 = f5;
locked6 = f6;
locked7 = f7;
locked8 = f8;
locked9 = f9;
locked10 = f10;
locked11 = f11;
} else {
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;
locked11 = true;
tasks_cooky.write_game_cookie(cookie_id, locked1, locked2, locked3, locked4, locked5, locked6, locked7, locked8, locked9, locked10, locked11);
}
if (ajs_testing) {
locked1 = false;
locked2 = false;
locked3 = false;
locked4 = false;
locked5 = false;
locked6 = false;
locked7 = false;
locked8 = false;
locked9 = false;
locked10 = false;
locked11 = false;
}
levels_done = 0;
i = 1;
while (i <= 11) {
lock = eval ("locked" + i);
if (!lock) {
levels_done++;
}
i++;
}
my_ranking = "Rank : " + rankings[levels_done];
Frame 9
stop();
Instance of Symbol 350 MovieClip "lock1" in Frame 9
onClipEvent (load) {
_visible = _level0.locked1;
}
Instance of Symbol 350 MovieClip "lock2" in Frame 9
onClipEvent (load) {
_visible = _level0.locked2;
}
Instance of Symbol 350 MovieClip "lock3" in Frame 9
onClipEvent (load) {
_visible = _level0.locked3;
}
Instance of Symbol 350 MovieClip "lock4" in Frame 9
onClipEvent (load) {
_visible = _level0.locked4;
}
Instance of Symbol 350 MovieClip "lock5" in Frame 9
onClipEvent (load) {
_visible = _level0.locked5;
}
Instance of Symbol 350 MovieClip "lock6" in Frame 9
onClipEvent (load) {
_visible = _level0.locked6;
}
Instance of Symbol 350 MovieClip "lock7" in Frame 9
onClipEvent (load) {
_visible = _level0.locked7;
}
Instance of Symbol 350 MovieClip "lock8" in Frame 9
onClipEvent (load) {
_visible = _level0.locked8;
}
Instance of Symbol 350 MovieClip "lock9" in Frame 9
onClipEvent (load) {
_visible = _level0.locked9;
}
Instance of Symbol 350 MovieClip "lock10" in Frame 9
onClipEvent (load) {
_visible = _level0.locked10;
}
Instance of Symbol 350 MovieClip "lock11" in Frame 9
onClipEvent (load) {
_visible = _level0.locked11;
}
Frame 10
function checkpowerup() {
if (ajssc >= next_powerup_score) {
while (ajssc >= next_powerup_score) {
next_powerup_score = next_powerup_score + 2500;
}
if ((powerup_passed_10000 == false) and (ajssc > 10000)) {
powerup_passed_10000 = true;
meteorball_activated = true;
firebat_activated = false;
powerupMc.gotoAndPlay("meteorball");
} else {
firebat_activated = true;
meteorball_activated = false;
powerupMc.gotoAndPlay("firebat");
}
}
}
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;
mc._visible = true;
}
function remove_batter(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;
homerun_total = 0;
ajslv = level_map[level];
worldMc.bgMc.gotoAndStop(ajslv);
wall_m = 1;
ajsbl = 10;
if (level == 3) {
ajsbl = 3;
}
if (level == 6) {
ajsbl = 5;
}
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);
colour_man();
}
function logstate(st) {
if (mystate != st) {
diag = diag + (st + "\r");
}
mystate = st;
}
function main() {
fire_level = firebat_activated and ajs_hitball;
_level0.worldMc.ballMc.cloud._visible = fire_level;
_level0.worldMc.ballMc.smoke._visible = fire_level;
if (meteorball_activated) {
i = 1;
while (i <= trail_id) {
eval ("worldMc.trail" + i)._alpha--;
i++;
}
}
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;
if (out_or_strike or ball.foul) {
run = false;
} else {
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) {
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++;
last_man_home = batsman_id;
pitchmap.comment = "Runs " + runs_scored;
}
}
}
batsman_id++;
}
}
if ((((((!ajs_hitwall_inhibit) and (level == 11)) 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) {
if (last_man_home != -1) {
man_out = last_man_home;
found_him = true;
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) {
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--;
}
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;
}
put_batter_on_plate();
}
if (!homerun) {
homerun_straights = 0;
} else {
homerun_straights++;
homerun_total++;
}
_level0.worldMc.ballMc.cloud._visible = false;
_level0.worldMc.ballMc.smoke._visible = false;
firebat_activated = false;
meteorball_activated = false;
checkpowerup();
if (level == 11) {
if (runs_scored >= 8) {
mystate = "submit";
task_complete = true;
gotoAndPlay (28);
} else if (ajsbt <= 0) {
task_complete = false;
mystate = "submit";
gotoAndPlay (28);
}
} else if (((level == 1) or (level == 5)) or (level == 9)) {
if (homerun) {
mystate = "submit";
task_complete = true;
gotoAndPlay (28);
} else if (ajsbl <= 0) {
mystate = "submit";
gotoAndPlay (28);
}
} else if ((level == 3) or (level == 6)) {
if (out_or_strike) {
mystate = "submit";
gotoAndPlay (28);
} else if (ajsbl <= 0) {
task_complete = true;
mystate = "submit";
gotoAndPlay (28);
}
} else if (((level == 2) or (level == 7)) or (level == 10)) {
if (ajsbl <= 0) {
if ((((ajssc > 12000) and (level == 7)) or ((ajssc > 8000) and (level == 2))) or ((ajssc > 20000) and (level == 10))) {
task_complete = true;
}
mystate = "submit";
gotoAndPlay (28);
}
} else if ((level == 4) or (level == 8)) {
if (homerun_total >= 2) {
task_complete = true;
mystate = "submit";
gotoAndPlay (28);
} else if (ajsbl <= 0) {
mystate = "submit";
gotoAndPlay (28);
}
} else if ((ajsbl <= 0) or (ajsbt <= 0)) {
mystate = "submit";
gotoAndPlay (31);
}
}
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;
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") {
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) {
runner_state[batsman_id] = "none";
mc_1 = eval ("pitchmap.man" + batsman_id);
mc_1._x = -100;
mc_1._visible = false;
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) {
fielder_id++;
var _local8 = f.mapMc;
var _local6 = f.angles;
var _local4 = bat.mapMc;
var _local2;
_local2 = 1;
while (_local2 < (f.bodyMc._totalframes + 1)) {
f.bodyMc.gotoAndStop(_local2);
var _local5 = {x:0, y:f.gloveMc._y};
f.bodyMc.localToGlobal(_local5);
f.worldMc.globalToLocal(_local5);
f.hand[_local2 - 1] = _local5.y;
_local2++;
}
f.bodyMc.gotoAndStop("stand");
_local2 = 1;
while (_local2 < _local4._totalframes) {
_local4.gotoAndStop(_local2);
if (Number(_local4.angleMc._width) == 0) {
}
ajs = _local4.angleMc._rotation - 90;
if ((ajs != -90) and (ajs < 0)) {
_local6[_local6.length] = _local4.angleMc._rotation - 90;
}
_local2++;
}
_local6.pop();
_local6.shift();
_local6.shift();
_local4.gotoAndStop(1);
_local2 = 0;
while (_local2 < 10) {
_local2++;
}
do {
if (fielder_id == 1) {
var _local7 = 1;
} else {
var _local7 = 3;
}
f.angle = (_local8._rotation = _local6[_local7]);
var _local3 = {x:400 + random(world.bgMc.dist), y:0};
f.distance = _local3.x;
_local8.localToGlobal(_local3);
mapMc.cameraMc.globalToLocal(_local3);
f.x = _local3.x;
f.z = _local3.y;
to2dObject(f, true);
} while (Math.abs(f.x2) > 600);
f.angle = (bat.angle = _local8._rotation);
f.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 _local4 = 20;
var _local3 = f.mapMc;
f.ballMc._visible = false;
if (f.other.angle != bat.angle) {
f.angle = (_local3._rotation = bat.angle);
} else {
do {
f.angle = (_local3._rotation = f.angles[random(f.angles.length)]);
} while (f.angle == f.other.angle);
}
do {
_local4--;
var _local2 = {x:400 + random(world.bgMc.dist), y:0};
f.distance = _local2.x;
_local3.localToGlobal(_local2);
mapMc.cameraMc.globalToLocal(_local2);
f.x = _local2.x;
f.z = _local2.y;
to2dObject(f, true);
maxDistance - 10;
} while (_local4 && (Math.abs(f.x2) > 600));
f.bodyMc.gotoAndStop("stand");
f.caught = false;
f.toFrame = 5;
f.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 _local5 = 0;
} else {
var _local5 = world.to.x2;
}
var _local1 = world.x2 - _local5;
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;
}
return(undefined);
}
var _local3 = (_local1 - _local2._x) * world.step;
if (Math.abs(_local3) < 1) {
_local2._x = _local1;
} else {
_local2._x = _local2._x + _local3;
}
var _local4 = _local2._x - 320;
var _local6 = int((Math.abs(_local4) / _local4) * -1) + 3;
world.bgMc.gotoAndStop(_local6);
}
function enableCollision() {
collision.checkFct = batBallCollision;
bat.mapMc.callBack = disableCollision;
}
function batBallCollision() {
var _local3 = bat;
var _local8 = _local3.mapMc.angleMc;
var _local2 = ball;
var _local7 = {x:0, y:0};
var _local9 = frontMc;
_local2.mapMc.localToGlobal(_local7);
_local8.globalToLocal(_local7);
info = "MISS";
if (_local7.y > -5) {
frontMc.batMc.gotoAndStop(_local3.mapMc._currentframe);
frontMc.ballMc._x = _local2.x;
frontMc.ballMc._y = _local2.y;
var _local4 = {x:0, y:0};
_local9.ballMc.localToGlobal(_local4);
_local9.batMc.angleMc.globalToLocal(_local4);
if (firebat_activated) {
y_lim = 26;
x_lim = 115;
} else {
y_lim = 23;
x_lim = 110;
}
if ((Math.abs(_local4.y) < y_lim) && (_local4.x < x_lim)) {
_local2.foul = false;
_local3.angle = _local8._rotation - 90;
if (_local3.angle == target.angle) {
target.inLine = true;
}
if (_local3.angle == fielder1.angle) {
fielder1.inLine = true;
}
if (_local3.angle == fielder2.angle) {
fielder2.inLine = true;
}
if (firebat_activated) {
fielder1.inLine = false;
fielder2.inLine = false;
}
if (Math.abs(_local8._rotation) > 45) {
_local2.foul = true;
}
var _local6 = {x:_local4.x * 0.5, y:0};
angleMc._rotation = _local3.angle;
angleMc.localToGlobal(_local6);
angleMc._rotation = (_local4.y * world.bgMc.angle) / 25;
var _local5 = {x:Math.abs(_local6.y), y:0};
angleMc.localToGlobal(_local5);
_local9.pos = ((((((("x=" + _local6.x) + ",z=") + _local5.x) + ",y=") + _local5.y) + "[") + _local6.y) + "]";
_local2.speed.z = _local5.x * -1;
_local2.speed.x = _local6.x;
_local2.speed.y = _local5.y;
if (ajslv == 1) {
ajs_factor = 1.4;
}
if (ajslv == 2) {
ajs_factor = 1.2;
}
if (ajslv == 3) {
ajs_factor = 1.3;
}
_local2.speed.x = _local2.speed.x * ajs_factor;
_local2.speed.y = _local2.speed.y * ajs_factor;
_local2.speed.z = _local2.speed.z * ajs_factor;
if (firebat_activated) {
fireinthehole.gotoAndPlay(2);
ajs_hitball = true;
}
if (meteorball_activated) {
duck.gotoAndPlay(2);
if (_local2.speed.x < -12) {
_local2.speed.x = -31.6;
_local2.speed.y = -10.7;
_local2.speed.z = -56;
} else if (_local2.speed.x > 12) {
_local2.speed.x = 22.6;
_local2.speed.y = -10.5;
_local2.speed.z = -60;
} else {
_local2.speed.x = -1.2;
_local2.speed.y = -9.1;
_local2.speed.z = -71;
}
}
_local2.gravity = 0.2;
_local2.friction = 0.97;
_local2.moveFct = hitFlight;
_local2.fence = true;
_local2.scored = false;
hitFlight();
sounds.gotoAndPlay("bang");
world.to = ball;
world.moveFct = moveBackground;
_local2.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");
ajs_hitball = false;
trail_id = 1;
i = 1;
while (i <= 100) {
eval ("worldMc.trail" + i)._x = -20000;
i++;
}
var b = ball;
pitchmap.comment = "8 runs needed to win a Championship";
man_caught = false;
last_man_home = -1;
ajs_hitwall_inhibit = false;
if (level != 11) {
ajsbl--;
}
homerun = false;
out_or_strike = false;
new_batsman = false;
world.bgMc.balls = ajsbl;
_level0.cookie_balls++;
b.pitching = true;
b.hitGround = false;
b.x = 0;
b.y = 5;
b.z = pitcher.z + 1;
b.speed.x = (random(16) - 8) / 60;
b.speed.y = (random(12) - 2) / 60;
if (ajslv == 1) {
extra = 0;
b.speed.y = (random(3) + 8) / 60;
}
if (ajslv == 2) {
extra = 1;
b.speed.y = (random(6) + 5) / 60;
}
if (ajslv == 3) {
extra = 2;
b.speed.y = random(11) / 60;
}
b.speed.z = ((40 + random(10)) / 5) + extra;
b.gravity = 0.01;
b.friction = 0.99;
to2dObject(b, true);
b.mapMc._x = b.x;
b.mapMc._y = b.z;
b.moveFct = pitchFlight;
b.shadowMc._visible = true;
b.worldMc._visible = true;
}
function pitchFlight() {
var _local1 = ball;
var _local4 = _local1.worldMc;
_local1.lastX = _local1.x;
_local1.lastY = _local1.y;
_local1.lastZ = _local1.z;
_local1.lastX2 = _local4._x;
_local1.lastY2 = _local4._y;
_local1.lastScale = _local4._xscale;
_local1.lastDepth = _local4.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;
var _local9 = "strike";
sounds1.gotoAndPlay("swish");
cookie_strikes++;
world.bgMc.strikes.play();
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;
_local9 = "youreOut";
if (ajssc > 750) {
decr = 750;
} else {
decr = ajssc;
}
add_in(-decr);
ajssc = ajssc - decr;
world.bgMc.total = ajssc;
}
displayTitle(_local9);
_local1.pitching = false;
_local1.moveFct = null;
enableBackSwing();
return(undefined);
}
to2dObject(_local1, true);
_local4 = _local1.worldMc;
_local4.ballicon._rotation = _local4.ballicon._rotation + (_local2.x * 100);
_local4.spec._rotation = _local4._rotation * -1;
var _local3 = _local1.shadowMc;
var _local5 = {x:_local1.x, y:map.height, z:_local1.z};
to2dPoint(_local5);
var _local8 = {x:_local1.x, y:map.height, z:_local1.z - 2};
to2dPoint(_local8);
var _local7 = {x:_local1.x, y:map.height, z:_local1.z + 2};
to2dPoint(_local7);
var _local6 = _local7.y2 - _local8.y2;
if (_local6 < 2) {
_local6 = 2;
}
_local3._x = _local5.x2;
_local3._y = _local5.y2;
_local3._xscale = _local1.worldMc._xscale;
_local3._height = _local6;
_local1.mapMc._x = _local1.x;
_local1.mapMc._y = _local1.z;
if (_local1.y > map.yMax) {
}
}
function hitFlight() {
var b = ball;
var i;
var m = b.worldMc;
b.lastX2 = m._x;
b.lastY2 = m._y;
var s = b.speed;
var t = b.mapMc;
var f = mapMc.cameraMc.homeMc;
var w = {x:t._x - f._x, y:t._y - f._y};
var d = ((w.x * w.x) + (w.y * w.y));
if (world.bgMc.shape == "circle") {
if (b.fence == true) {
if (d > world.bgMc.fence) {
if (b.y > world.bgMc.fenceHeight) {
displayValue(int(d / 1000), b.x2, b.y2, m.getDepth());
s.x = s.x * -0.5;
s.z = s.z * -0.5;
b.y = b.y + s.y;
b.x = b.x + s.x;
if (!ajs_hitwall_inhibit) {
sounds.gotoAndPlay("wall");
}
ajs_hitwall_inhibit = true;
} else {
b.shadowMc._visible = false;
b.fence = false;
}
}
} else if (b.y > world.bgMc.fenceHeight) {
displayValue(4000, b.x2, b.y2, m.getDepth());
enableBackSwing();
b.moveFct = null;
b.worldMc._x = (b.worldMc._y = (b.shadowMc._x = (b.shadowMc._y = -900)));
return(undefined);
}
} else {
var h = false;
if (b.z < map.zMin) {
b.z = map.zMin;
s.z = s.z * -1;
h = true;
}
if (b.x > map.xMax) {
b.x = map.xMax;
h = true;
s.x = s.x * -1;
}
if (b.x < map.xMin) {
b.x = map.xMin;
h = true;
s.x = s.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");
}
s.y = s.y * 0.8;
s.x = s.x * 0.8;
s.z = s.z * 0.8;
if ((b.y < world.bgMc.fenceHeight) && (b.hitGround != true)) {
displayValue(4000, b.x2, b.y2, m.getDepth());
} else {
displayValue(int(d / 1000), b.x2, b.y2, m.getDepth());
}
}
}
b.z = b.z + s.z;
b.y = b.y + s.y;
b.x = b.x + s.x;
if (b.y > map.yMax) {
b.hitGround = true;
b.y = map.yMax;
bounce_factor = 0.7;
s.y = s.y * (-bounce_factor);
s.z = s.z * (b.friction * bounce_factor);
s.x = s.x * (b.friction * bounce_factor);
s.y = s.y * (b.friction * bounce_factor);
}
if (target.inLine == true) {
var c = {x:0, y:0};
b.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) {
var f = fielder1;
}
if (fielder2.inLine == true) {
var f = fielder2;
}
fielder = f;
if ((s.z < 1) && (f.inLine == true)) {
var c = {x:0, y:0};
b.mapMc.localToGlobal(c);
f.mapMc.globalToLocal(c);
var cd = (f.distance - c.x);
if ((cd < 150) && (cd > 0)) {
var h = {x:f.x, y:b.y, z:f.z};
to2dPoint(h);
var h2 = {x:h.x2, y:h.y2};
world.mc.localToGlobal(h2);
f.bodyMc.globalToLocal(h2);
dec = "";
if (h2.y < f.hand[f.toFrame - 1]) {
if (f.bodyMc._totalframes > f.toFrame) {
var dec = "inc";
f.toFrame++;
}
} else if (((f.toFrame > 1) && (h2.y > f.hand[f.toFrame - 1])) && (h2.y > f.hand[f.toFrame - 2])) {
var dec = "dec";
f.toFrame--;
}
if (f.bodyMc._currentframe < f.toFrame) {
f.bodyMc.nextFrame();
} else if (f.bodyMc._currentframe > f.toFrame) {
f.bodyMc.prevFrame();
}
} else if (cd < 0) {
var h = {x:f.x, y:b.y, z:f.z};
to2dPoint(h);
var h2 = {x:h.x2, y:h.y2};
world.mc.localToGlobal(h2);
f.bodyMc.globalToLocal(h2);
if (f.caught == false) {
f.caught = true;
if (h2.y > f.hand[f.hand.length - 1]) {
i = f.hand.length - 1;
while ((i > 0) && (f.hand[i] < h2.y)) {
i--;
}
f.toFrame = i + 1;
f.bodyMc.gotoAndStop(f.toFrame);
b.worldMc._visible = false;
b.shadowMc._visible = false;
f.ballMc._visible = true;
s.x = (s.z = 0);
if (b.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;
out_or_strike = true;
runner_state[batter_striking] = "none";
remove_batter(batter_striking);
new_batsman = true;
return(undefined);
}
}
} else if (f.bodyMc._currentframe == f.toFrame) {
f.toFrame = 5;
}
if (f.bodyMc._currentframe < f.toFrame) {
f.bodyMc.nextFrame();
} else if (f.bodyMc._currentframe > f.toFrame) {
f.bodyMc.prevFrame();
}
}
}
s.y = s.y + b.gravity;
s.z = s.z * b.friction;
s.x = s.x * b.friction;
s.y = s.y * b.friction;
to2dObject(b, true);
if (meteorball_activated) {
trail_id++;
eval ("worldMc.trail" + trail_id)._x = keepx;
eval ("worldMc.trail" + trail_id)._y = keepy;
eval ("worldMc.trail" + trail_id)._alpha = 40;
}
var bs = b.shadowMc;
var b0 = {x:b.x, y:map.height, z:b.z};
to2dPoint(b0);
var b1 = {x:b.x, y:map.height, z:b.z - 2};
to2dPoint(b1);
var b2 = {x:b.x, y:map.height, z:b.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 = b.worldMc._xscale;
bs._height = h;
b.mapMc._x = b.x;
b.mapMc._y = b.z;
if ((bat.backSwing == false) && (((Math.abs(s.x) + Math.abs(s.y)) + Math.abs(s.z)) < 2)) {
enableBackSwing();
displayValue(int(d / 1000), b.x2, b.y2, m.getDepth());
}
var p = {x:b.x2, y:b.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;
s = 1;
if (p.x > 640) {
p.x = 640;
a = 0;
}
if (p.x < 0) {
p.x = 0;
s = -1;
a = 0;
}
if (p.y < 0) {
p.y = 0;
if (a == 0) {
a = -45;
} else {
a = -90;
}
}
world.mc.globalToLocal(p);
var c = ((s * Math.abs(b.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 _local2 = map.vp / (map.vp + p.z);
p.x = (p.x2 / _local2) / map.scale;
p.y = (p.y2 / _local2) / map.scale;
p.ratio = _local2;
}
function to2dPoint(p) {
var _local2 = map.vp / (map.vp + p.z);
p.x2 = (p.x * _local2) * map.scale;
p.y2 = (p.y * _local2) * map.scale;
p.ratio = _local2;
}
function to2dObject(p, d) {
var _local3 = map.vp / (map.vp + p.z);
p.x2 = (p.x * _local3) * map.scale;
p.y2 = (p.y * _local3) * map.scale;
p.ratio = _local3 * map.scale;
var _local2 = p.worldMc;
_local2._x = p.x2;
_local2._y = p.y2;
keepx = p.x2;
keepy = p.y2;
_local2._xscale = (_local2._yscale = p.ratio * p.scale);
if (d == true) {
setDepth(p);
}
}
function setDepth(obj, m) {
var _local1 = int((obj.z * 20) + 15000);
if (m == null) {
var _local2 = obj.worldMc;
} else {
var _local2 = m;
}
if (_local2 == "_level0.worldMc.fielder2Mc") {
_local1 = _local1 + 1;
}
_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 _local5 = batter;
var _local1 = bat;
var _local4 = frontMc.batMc;
_local1.worldMc._x = _local2.worldMc._x - _local2.toBat.x;
_local5.worldMc._x = _local2.worldMc._x - _local2.toBatter.x;
_local1.z = _local1.zo;
_local1.x2 = _local1.worldMc._x;
_local1.y2 = _local1.worldMc._y;
to3dPoint(_local1);
_local4._x = (_local1.mapMc._x = _local1.x);
_local4._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)) {
_local4._rotation = (_local1.worldMc._rotation = _local3);
}
}
function disablePointer() {
var _local1 = pointer;
stopDrag();
_local1.moveFct = null;
}
function displayValue(v, x, y, d) {
if (ball.scored == true) {
return(undefined);
}
ball.scored = true;
if (ball.foul == true) {
displayTitle("foulBall");
if (world.bgMc.strikes.count < 2) {
world.bgMc.strikes.play();
}
return(undefined);
}
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;
}
v = v * (target.multiplier * wall_m);
ajssc = ajssc + v;
add_in(v);
world.bgMc.total = ajssc;
d = d - 100;
var _local8 = world;
_local8.moveFct = null;
var _local9 = {x:x, y:y};
_local9 = {x:ball.x, y:map.height, z:ball.z};
to2dPoint(_local9);
var _local5 = {x:_local9.x2, y:_local9.y2};
_local8.mc.localToGlobal(_local5);
if (_local5.x > 600) {
_local5.x = 600;
}
if (_local5.x < 40) {
_local5.x = 40;
}
_local8.mc.globalToLocal(_local5);
var _local6 = _local8.mc.attachMovie("number", "number", d, {_x:_local5.x, _y:_local5.y});
var _local4 = v;
var _local11 = " ";
var _local10 = length(_local4);
if (_local10 < 4) {
_local4 = (substring(_local11, 1, 4 - _local10)) + _local4;
}
var _local1;
_local1 = 1;
while (_local1 < 5) {
var _local2 = _local6["n" + Number(_local1 - 1)];
var _local3 = substring(_local4, _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;
}
i = 1;
while (i <= 100) {
duplicateMovieClip ("worldMc.trail", "trail" + i, 10000 + i);
eval ("worldMc.trail" + i)._x = -10000;
i++;
}
meteorball_activated = false;
firebat_activated = false;
next_powerup_score = 2500;
powerup_passed_10000 = false;
task_text = task_text_a[level];
proper_baseball = level == 11;
pitchmap._visible = proper_baseball;
pitchmap.comment = "";
runs_scored = 0;
fielder_id = 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 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};
mybatterid = mychoice;
worldMc.batterMc.gotoAndStop(Number(mybatterid));
if (mybatterid == 1) {
ajs_pitcher = 2;
f1m = 3;
f2m = 4;
} else if (mybatterid == 2) {
ajs_pitcher = 3;
f1m = 4;
f2m = 1;
} else if (mybatterid == 3) {
ajs_pitcher = 4;
f1m = 1;
f2m = 2;
} else {
mybatterid = 4;
ajs_pitcher = 1;
f1m = 2;
f2m = 3;
}
worldMc.pitcherMc1._visible = false;
worldMc.pitcherMc2._visible = false;
worldMc.pitcherMc3._visible = false;
worldMc.pitcherMc4._visible = false;
worldMc.pitcherMc1.gotoAndStop(1);
worldMc.pitcherMc2.gotoAndStop(1);
worldMc.pitcherMc3.gotoAndStop(1);
worldMc.pitcherMc4.gotoAndStop(1);
if (ajs_pitcher == 1) {
var pitcher = {x:0, y:map.height, z:-349, scale:27, x2:0, y2:0, xo:worldMc.pitcherMc1._x, yo:worldMc.pitcherMc1._y, worldMc:worldMc.pitcherMc1, moveFct:null};
worldMc.pitcherMc1._visible = true;
} else if (ajs_pitcher == 2) {
var pitcher = {x:0, y:map.height, z:-349, scale:27, x2:0, y2:0, xo:worldMc.pitcherMc2._x, yo:worldMc.pitcherMc2._y, worldMc:worldMc.pitcherMc2, moveFct:null};
worldMc.pitcherMc2._visible = true;
} else if (ajs_pitcher == 3) {
var pitcher = {x:0, y:map.height, z:-349, scale:27, x2:0, y2:0, xo:worldMc.pitcherMc3._x, yo:worldMc.pitcherMc3._y, worldMc:worldMc.pitcherMc3, moveFct:null};
worldMc.pitcherMc3._visible = true;
} else if (ajs_pitcher == 4) {
var pitcher = {x:0, y:map.height, z:-349, scale:27, x2:0, y2:0, xo:worldMc.pitcherMc4._x, yo:worldMc.pitcherMc4._y, worldMc:worldMc.pitcherMc4, moveFct:null};
worldMc.pitcherMc4._visible = true;
}
worldMc.fielder1Mc.gotoAndStop(Number(f1m));
worldMc.fielder2Mc.gotoAndStop(Number(f2m));
initialize();
stop();
_level0.fire_level = false;
xfirepos = 0;
yfirepos = 0;
Smoke_amount = 3;
Fire_amount = 1;
Smoke_Y_offset = -12;
Fire_Y_offset = 3;
Smoke_X_amp = 12;
Fire_X_amp = 5;
Smoke_riseSpd = 0.18;
Fire_riseSpd = 5;
Smoke_fade_rate = 1;
Fire_fade_rate = 18;
Fire_resart = 32;
Smoke_grth_rate = 3;
Fire_grth_Xrate = -4;
Fire_grth_Yrate = -4;
Smoke_rotationRate = 2.3;
Fire_rotationAmp = 4;
FireAngle_max = 60;
Smoke_size_min = 26;
Smoke_size_max = 112;
Fire_size_min = 5;
Fire_size_max = 100;
Instance of Symbol 978 MovieClip "sounds" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 983 MovieClip "sounds1" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 987 MovieClip "cuss" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 990 MovieClip "doh" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 993 MovieClip "sounds2" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 996 MovieClip "duck" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 999 MovieClip "fireinthehole" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 279 MovieClip "game_cooky" in Frame 10
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
so.data.game_id = game_id;
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;
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
} else {
result = true;
_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 11
_quality = "best";
stop();
Instance of Symbol 1030 MovieClip in Frame 11
onClipEvent (enterFrame) {
_visible = (!_level0.sound_on);
}
Frame 12
no_team = "I don't want a team!";
var myColor = new Color(batterMc.batterAnim.cap);
myColor.setRGB(cap_col);
var myColor = new Color(batterMc.batterAnim.shirt);
myColor.setRGB(shirt_col);
var myColor = new Color(batterMc.batterAnim.pants);
myColor.setRGB(pants_col);
var myColor = new Color(batterMc.batterAnim.shoes);
myColor.setRGB(shoes_col);
error_m = "";
Instance of Symbol 279 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) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
so.data.game_id = game_id;
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;
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
} else {
result = true;
_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
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 16
function pickcountry(cid) {
buin = Number(cid.substr(8, 2));
myteam = team[buin];
i = 1;
while (i <= 10) {
mc = eval ("cdisplay" + i);
removeMovieClip(mc);
i++;
}
if (myteam != null) {
cookie_team = myteam;
gotoAndPlay (12);
}
}
teams = 10;
team = new Array();
team[1] = "Downtown Thunder";
team[2] = "The Bears";
team[3] = "The Rockets";
team[4] = "The Bullies";
team[5] = "The Bunsen Burners";
team[6] = "The All Stars";
team[7] = "The Geminis";
team[8] = "North End Knights";
team[9] = "7th Street Sluggers";
team[10] = "Uptown Royalty";
i = 1;
while (i <= 10) {
duplicateMovieClip ("countrytemp", "cdisplay" + i, i + 100);
mc = eval ("cdisplay" + i);
mc._x = 240;
mc._y = ((i * 29) - 29) + 150;
mc.txt = team[i];
i++;
}
stop();
Instance of Symbol 247 MovieClip [FListBoxSymbol] "teamlist1" in Frame 16
//component parameters
onClipEvent (construct) {
selectMultiple = false;
changeHandler = "";
}
Instance of Symbol 292 MovieClip "tasks_cooky" in Frame 28
onClipEvent (load) {
function write_game_cookie(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
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.data.f11 = f11;
so.flush();
}
function read_game_cookie() {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.f1 == null) {
result = false;
write_mb();
read_mb();
} else {
result = true;
_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;
_level0.f11 = so.data.f11;
}
return(result);
}
_visible = true;
game_id = _level0.cookie_tasks;
}
Frame 29
function ul(lein) {
this["locked" + lein] = false;
tasks_cooky.write_game_cookie(cookie_id, locked1, locked2, locked3, locked4, locked5, locked6, locked7, locked8, locked9, locked10, locked11);
}
lejustdone = level;
if (task_complete) {
task_message = ("Task " + level) + " completed!";
} else {
task_message = ("Oh man! Task " + level) + " failed. Try again.";
}
if (task_complete) {
ul(lejustdone);
}
stop();
Frame 30
stop();
Frame 31
function reload() {
gotoAndPlay (7);
}
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;
}
myteam_txt = myteam;
if (myteam_txt == no_team) {
myteam_txt = "None";
}
pbest = false;
if (ajssc > cookie_best) {
cookie_best = ajssc;
pbest = true;
}
min_movie._visible = false;
Instance of Symbol 1119 MovieClip "pb" in Frame 31
onClipEvent (enterFrame) {
_visible = _level0.pbest;
}
Instance of Symbol 279 MovieClip "game_cooky" in Frame 31
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) {
name = "general_stats_ph2";
so = SharedObject.getLocal(name, "/");
so.data.game_id = game_id;
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;
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
} else {
result = true;
_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 33
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();
Symbol 73 MovieClip [bl] Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 73 MovieClip [bl] Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 73 MovieClip [bl] Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 73 MovieClip [bl] Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 74 MovieClip [FUIComponentSymbol] Frame 1
#initclip 3
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 87 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 97 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 106 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 107 MovieClip [UpArrow] Frame 1
stop();
Symbol 107 MovieClip [UpArrow] Frame 2
stop();
Symbol 107 MovieClip [UpArrow] Frame 3
stop();
Symbol 114 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 121 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 126 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 127 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 135 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 143 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 151 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 152 MovieClip [DownArrow] Frame 1
stop();
Symbol 152 MovieClip [DownArrow] Frame 2
stop();
Symbol 152 MovieClip [DownArrow] Frame 3
stop();
Symbol 155 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 155 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 155 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 158 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local2 = this.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
this.labelField.embedFonts = _local2;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var _local2 = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
this.setColor(_local2);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 166 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 169 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 172 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 174 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 177 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 180 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 181 MovieClip [fcb_states] Frame 1
stop();
Symbol 181 MovieClip [fcb_states] Frame 2
stop();
Symbol 181 MovieClip [fcb_states] Frame 3
stop();
Symbol 181 MovieClip [fcb_states] Frame 4
stop();
Symbol 181 MovieClip [fcb_states] Frame 5
stop();
Symbol 181 MovieClip [fcb_states] Frame 6
stop();
Symbol 184 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 184 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 187 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 4
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var _local7 = this.fLabel_mc._height / 2;
var _local8 = this.fcb_states_mc._height / 2;
var _local5 = _local8 - _local7;
var _local6 = this.fcb_states_mc._width;
var _local4 = this.fcb_states_mc;
var _local9 = this.fLabel_mc;
var _local2 = 0;
if (_local4._width > this.width) {
_local2 = 0;
} else {
_local2 = this.width - _local4._width;
}
this.fLabel_mc.setSize(_local2);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = _local6;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - _local6;
this.txtFormat("right");
}
this.fLabel_mc._y = _local5;
this.fcb_hitArea_mc._y = _local5;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local3 = this.textStyle;
var _local4 = this.styleTable;
_local3.align = ((_local4.textAlign.value == undefined) ? ((_local3.align = pos)) : undefined);
_local3.leftMargin = ((_local4.textLeftMargin.value == undefined) ? ((_local3.leftMargin = 0)) : undefined);
_local3.rightMargin = ((_local4.textRightMargin.value == undefined) ? ((_local3.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local3 = this.fcb_hitArea_mc;
this.hitArea = _local3;
if (this.fcb_states_mc._width > w) {
_local3._width = this.fcb_states_mc._width;
} else {
_local3._width = w;
}
_local3._visible = false;
if (arguments.length > 1) {
_local3._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var _local3 = this.fcb_states_mc;
if (this.getValue()) {
_local3.gotoAndStop("checkedPress");
} else {
_local3.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local2 = this.fcb_states_mc;
if (this.getValue()) {
_local2.gotoAndStop("checkedEnabled");
} else {
_local2.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local2 = this.fcb_states_mc;
if (this.getValue()) {
_local2.gotoAndStop("checkedEnabled");
} else {
_local2.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local2 = this.fcb_states_mc;
if (this.getValue()) {
_local2.gotoAndStop("checkedPress");
} else {
_local2.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local2 = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
_local2.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
_local2.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
_local2.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.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 () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.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 190 MovieClip [ghost] Frame 11
this.removeMovieClip();
stop();
Symbol 201 MovieClip Frame 1
this.gotoAndStop(_parent._parent.frameLabel);
stop();
Symbol 208 MovieClip [title] Frame 1
var d = 50000;
if (_parent.frameLabel == "homeRun") {
ball.onEnterFrame = function () {
var _local6 = titleText.getBounds(_parent);
var _local8 = titleText._height;
var _local7 = this.getBounds(_parent);
var _local3;
_local3 = 0;
while (_local3 < (random(6) + 1)) {
_parent.attachMovie("star", "s" + d, d++, {_x:_local7.xMin - random(20), _y:_local6.yMin + random(_local8)});
_local3++;
}
spec._rotation = _rotation * -1;
};
}
Symbol 208 MovieClip [title] Frame 69
this.removeMovieClip();
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 230 MovieClip [number] Frame 58
this.removeMovieClip();
stop();
Symbol 236 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 236 MovieClip [star] Frame 46
this.removeMovieClip();
stop();
Symbol 238 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 239 MovieClip [FScrollBarSymbol] Frame 1
#initclip 6
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 240 MovieClip [FListItemSymbol] Frame 1
#initclip 10
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 241 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {event:"updateAll"};
viewRef.modelChanged(_local2);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var _local4 = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(_local4);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local4 = this.items[index];
this.items.splice(index, 1);
var _local3 = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(_local3);
return(_local4);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var _local4 = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = _local4;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = 0;
while (_local2 < this.views.length) {
this.views[_local2].modelChanged(eventObj);
_local2++;
}
};
#endinitclip
Symbol 242 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 8
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local2 = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = "";
if (itmObj.label != undefined) {
_local2 = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
if (this.fLabel_mc.labelField.text != _local2) {
this.fLabel_mc.setLabel(_local2);
}
var _local5 = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (_local5 == undefined) {
_local5 = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(_local5);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 243 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var _local2 = this.getItemAt(index);
this.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) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (_local2 != undefined) {
return(_local2);
}
}
};
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 _local2 = this.getSelectedItem();
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local2 = 0;
while (_local2 < obj.length) {
var _local4 = ((typeof(obj[_local2]) == "string") ? ({label:obj[_local2]}) : (obj[_local2]));
this.dataProvider.addItem(_local4);
_local2++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var _local4 = Math.min(this.numDisplayed, this.getLength());
var _local3 = 0;
while (_local3 < _local4) {
this.container_mc[("fListItem" + _local3) + "_mc"].setEnabled(this.enable);
_local3++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = 0;
while (_local2 < this.numDisplayed) {
this.container_mc[("fListItem" + _local2) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + _local2), this.isSelected(this.topDisplayed + _local2));
_local2++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + _local3) + "_mc", 10 + _local3, {controller:this, itemNum:_local3});
var _local4 = this.container_mc[("fListItem" + _local3) + "_mc"];
var _local5 = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
_local4.setSize(this.width - _local5, this.itmHgt);
_local4._y = (this.itmHgt - 2) * _local3;
_local3++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local4 = eventObj.firstRow;
var _local6 = eventObj.lastRow;
var _local8 = eventObj.event;
if (_local8 == "addRows") {
for (var _local2 in this.selected) {
if ((this.selected[_local2].sIndex != undefined) && (this.selected[_local2].sIndex >= _local4)) {
this.selected[_local2].sIndex = this.selected[_local2].sIndex + ((_local6 - _local4) + 1);
this.setSelectedIndex(this.selected[_local2].sIndex, false);
}
}
} else if (_local8 == "deleteRows") {
if (_local4 == _local6) {
var _local5 = _local4;
if (this.selectHolder == _local5) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((_local5 - 1) >= 0)) {
this.setSelectedIndex(_local5 - 1, false);
}
} else if (this.selectionDeleted) {
var _local7 = this.getLength();
if (((_local5 == (_local7 - 1)) && (_local7 > 1)) || (_local5 > (_local7 / 2))) {
this.setSelectedIndex(_local5 - 1, false);
} else {
this.setSelectedIndex(_local5, false);
}
}
for (var _local2 in this.selected) {
if (this.selected[_local2].sIndex > _local4) {
this.selected[_local2].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (_local8 == "sort") {
var _local7 = this.getLength();
var _local2 = 0;
while (_local2 < _local7) {
if (this.isSelected(_local2)) {
var _local3 = this.dataProvider.getItemID(_local2);
if (_local3 == this.lastSelID) {
this.lastSelected = _local2;
}
this.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (((_local2 != undefined) && (this.topDisplayed <= _local2)) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local2 = this.topDisplayed + itemNum;
if (this.getItemAt(_local2 == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(_local2, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local3 = this.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(this.getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < this.topDisplayed) || (_local3 >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(_local3);
}
if ((_local2 >= (this.topDisplayed + this.numDisplayed)) || (_local2 < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(_local2 - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local3++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local3++;
}
};
#endinitclip
Instance of Symbol 241 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 243 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 242 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 243 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 244 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 7
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local3 = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(_local3);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = scrollBar.getScrollPosition();
this.topDisplayed = _local2;
if (this.lastPosition != _local2) {
this.updateControl();
}
this.lastPosition = _local2;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var _local2 = 0;
while (_local2 < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[_local2])) {
this.moveSelBy(this.keyIncrs[_local2]);
return(undefined);
}
_local2++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
this.findString(String.fromCharCode(_local2));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var _local4 = this.getSelectedIndex();
var _local6 = 0;
var _local2 = _local4 + 1;
while (_local2 != _local4) {
var _local3 = this.getItemAt(_local2).label.substring(0, str.length);
if ((str == _local3) || (str.toUpperCase() == _local3.toUpperCase())) {
_local6 = _local2 - _local4;
break;
}
if (_local2 >= (this.getLength() - 1)) {
_local2 = -1;
}
_local2++;
}
if (_local6 != 0) {
this.moveSelBy(_local6);
}
};
#endinitclip
Instance of Symbol 239 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 244 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 243 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 244 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 247 MovieClip [FListBoxSymbol] Frame 1
#initclip 9
function FListBoxClass() {
this.itemSymbol = "FListItemSymbol";
this.init();
this.permaScrollBar = true;
var _local2 = 0;
while (_local2 < this.labels.length) {
this.addItem(this.labels[_local2], this.data[_local2]);
_local2++;
}
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local2 = new Array();
for (var _local3 in this.selected) {
_local2.push(this.selected[_local3].sIndex);
}
return(((_local2.length > 0) ? (_local2) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local3 = this.getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(this.getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var _local2 = 0;
while (_local2 < indexArray.length) {
this.selectItem(indexArray[_local2], true);
_local2++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = (count * (this.itmHgt - 2)) + 2;
this.setSize(this.width, _local2);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
h = Math.max(h, 40);
this.container_mc.removeMovieClip();
this.container_mc = this.createEmptyMovieClip("container", 3);
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.clickFilter) {
var _local3 = this.topDisplayed + itemNum;
if (this.getItemAt(_local3) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(_local3, true);
this.lastSelected = _local3;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local3), this.isSelected(_local3));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = _local3;
}
var _local4 = ((this.lastSelected < _local3) ? 1 : -1);
this.clearSelected();
var _local2 = this.lastSelected;
while (_local2 != _local3) {
this.selectItem(_local2, true);
if ((_local2 >= this.topDisplayed) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
}
_local2 = _local2 + _local4;
}
this.selectItem(_local3, true);
this.container_mc[("fListItem" + (_local3 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local3), this.isSelected(_local3));
} else if (key.isDown(17)) {
var _local6 = this.isSelected(_local3);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (_local6))) {
this.selectItem(_local3, !_local6);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = _local3;
}
} else {
this.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 244 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 247 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
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) + " KB of ") + int(total / 1000)) + " KB";
_parent.percent = int(p) + "% LOADED";
_parent.bar._xscale = 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 279 MovieClip Frame 1
stop();
Symbol 307 Button
on (release, keyPress "<Enter>") {
thislevel = 11;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 310 Button
on (release, keyPress "<Enter>") {
thislevel = 8;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 319 Button
on (release, keyPress "<Enter>") {
thislevel = 1;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 321 Button
on (release, keyPress "<Enter>") {
thislevel = 2;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 323 Button
on (release, keyPress "<Enter>") {
thislevel = 3;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 325 Button
on (release, keyPress "<Enter>") {
thislevel = 4;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 327 Button
on (release, keyPress "<Enter>") {
thislevel = 5;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 329 Button
on (release, keyPress "<Enter>") {
thislevel = 6;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 331 Button
on (release, keyPress "<Enter>") {
thislevel = 7;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 333 Button
on (release, keyPress "<Enter>") {
level = 1;
play();
}
Symbol 335 Button
on (release, keyPress "<Enter>") {
thislevel = 9;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 337 Button
on (release, keyPress "<Enter>") {
thislevel = 10;
va = this["locked" + thislevel];
if (va) {
} else {
level = thislevel + 1;
play();
}
}
Symbol 357 MovieClip Frame 1
count = 0;
stop();
Symbol 357 MovieClip Frame 2
count = 1;
Symbol 357 MovieClip Frame 20
stop();
Symbol 357 MovieClip Frame 21
count = 2;
Symbol 357 MovieClip Frame 39
stop();
Symbol 360 MovieClip Frame 1
fence = 1102500 /* 0x10D2A4 */;
fenceHeight = -40;
shape = "circle";
angle = 12;
dist = 400;
Symbol 360 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 1
fence = 1102500 /* 0x10D2A4 */;
fenceHeight = 0;
shape = "circle";
angle = 12;
dist = 400;
Symbol 367 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 1
fence = 1102500 /* 0x10D2A4 */;
fenceHeight = -30;
shape = "circle";
angle = 12;
dist = 400;
Symbol 374 MovieClip Frame 3
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
stop();
Symbol 375 MovieClip Frame 3
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 28
gotoAndPlay (1);
Symbol 440 MovieClip Frame 49
stop();
Symbol 465 MovieClip Frame 53
callBack();
Symbol 465 MovieClip Frame 63
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 5
stop();
Symbol 527 MovieClip Frame 5
stop();
Symbol 556 MovieClip Frame 5
stop();
Symbol 585 MovieClip Frame 5
stop();
Symbol 586 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 3
stop();
Symbol 586 MovieClip Frame 4
stop();
Symbol 611 MovieClip Frame 53
callBack();
Symbol 611 MovieClip Frame 63
stop();
Symbol 636 MovieClip Frame 53
callBack();
Symbol 636 MovieClip Frame 63
stop();
Symbol 661 MovieClip Frame 53
callBack();
Symbol 661 MovieClip Frame 63
stop();
Symbol 708 MovieClip Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 708 MovieClip Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 708 MovieClip Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 708 MovieClip Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 753 MovieClip Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 753 MovieClip Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 753 MovieClip Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 753 MovieClip Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 798 MovieClip Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 798 MovieClip Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 798 MovieClip Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 798 MovieClip Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 843 MovieClip Frame 1
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 843 MovieClip Frame 2
cap.gotoAndPlay(2);
shoes.gotoAndPlay(2);
shirt.gotoAndPlay(2);
pants.gotoAndPlay(2);
Symbol 843 MovieClip Frame 12
stop();
cap.stop();
shoes.stop();
shirt.stop();
pants.stop();
Symbol 843 MovieClip Frame 13
cap.gotoAndPlay(13);
shoes.gotoAndPlay(13);
shirt.gotoAndPlay(13);
pants.gotoAndPlay(13);
Symbol 844 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 9
_parent._parent.setBatDepth();
Symbol 893 MovieClip Frame 12
stop();
Symbol 905 MovieClip Frame 1
stop();
Symbol 908 MovieClip Frame 1
j = 0;
while (j <= _level0.Fire_amount) {
duplicateMovieClip (fire0, "sc" + j, j);
j++;
}
stop();
Instance of Symbol 905 MovieClip "fire0" in Symbol 908 MovieClip Frame 1
onClipEvent (load) {
_alpha = (5 + (Math.random() * 50));
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_level0.fire_level) {
this._visible = true;
pym = 0 + _level0.Fire_Y_offset;
pxm = 0;
_xscale = (_xscale + _level0.Fire_grth_Xrate);
_yscale = (_yscale + _level0.Fire_grth_Yrate);
if (_xscale >= _level0.Fire_size_max) {
_xscale = _level0.Fire_size_max;
} else if (_xscale <= _level0.Fire_size_min) {
_xscale = _level0.Fire_size_min;
}
if (_yscale >= _level0.Fire_size_max) {
_yscale = _level0.Fire_size_max;
} else if (_yscale <= _level0.Fire_size_min) {
_yscale = _level0.Fire_size_min;
}
_y = (_y - int(_level0.Fire_riseSpd));
_alpha = (_alpha - int(0.13 + ((_level0.Fire_fade_rate * Math.random()) * 0.73)));
xm = pxm - x;
x = pxm;
xxx = int((((xm * 3) / 14) - pxm) + x);
if (_alpha < (_level0.Fire_resart + random(_level0.Fire_resart * 2))) {
_alpha = ((20 + random(40)) + random(100));
_rotation = ((-xm) * _level0.Fire_rotationAmp);
_y = pym;
_x = (pxm + ((-_level0.Fire_X_amp) + (Math.random() * (_level0.Fire_X_amp * 2))));
scale = Math.round(_level0.Fire_size_min + (Math.random() * _level0.Fire_size_max));
_xscale = scale;
_yscale = scale;
if (_rotation >= _level0.FireAngle_max) {
xm = _level0.FireAngle_max;
_rotation = _level0.FireAngle_max;
} else if (_rotation <= (-_level0.FireAngle_max)) {
xm = -_level0.FireAngle_max;
_rotation = (-_level0.FireAngle_max);
}
this.gotoAndStop(1 + random(5));
}
updateAfterEvent(enterFrame);
} else {
this._visible = false;
}
}
Symbol 920 MovieClip Frame 1
stop();
Symbol 921 MovieClip Frame 1
i = 0;
while (i <= _level0.Smoke_amount) {
duplicateMovieClip (smoke0, "sc" + i, i);
i++;
}
stop();
Instance of Symbol 920 MovieClip "smoke0" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
_alpha = (5 + (Math.random() * 50));
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_level0.fire_level) {
this._visible = true;
pym = _level0.Smoke_Y_offset;
pxm = 0;
if (_xscale < _level0.Smoke_size_min) {
_xscale = _level0.Smoke_size_min;
} else if (_xscale > _level0.Smoke_size_max) {
_xscale = _level0.Smoke_size_max;
}
_xscale = (_xscale + _level0.Smoke_grth_rate);
_yscale = _xscale;
_y = (_y - ((1980 + ((-_yscale) * 1.83)) * (_level0.Smoke_riseSpd / 100)));
_x = (_x + (xxx / 8));
_alpha = (_alpha - ((0.13 + _level0.Smoke_fade_rate) + (Math.random() * 0.23)));
if (rr > 0) {
_rotation = (_rotation + _level0.Smoke_rotationRate);
} else if (rr < 0) {
_rotation = (_rotation - _level0.Smoke_rotationRate);
}
if (_alpha <= random(5)) {
rx = (-_level0.Smoke_X_amp) + ((Math.random() * _level0.Smoke_X_amp) * 2);
rr = -6 + random(12);
_alpha = (35 + (Math.random() * 65));
xm = pxm - x;
x = pxm;
xxx = int(((xm / 12) - pxm) + x);
_y = pym;
_x = (rx + pxm);
rscale = int(Math.random() * 12);
_xscale = rscale;
_yscale = rscale;
_rotation = (-45 + (Math.random() * 90));
this.gotoAndStop(1 + random(6));
}
updateAfterEvent(enterFrame);
} else {
this._visible = false;
}
}
Symbol 928 MovieClip Frame 1
stop();
Symbol 955 MovieClip Frame 1
callBack();
stop();
Symbol 955 MovieClip Frame 2
callBack();
Symbol 955 MovieClip Frame 10
callBack();
Symbol 955 MovieClip Frame 12
stop();
Symbol 972 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 59
stop();
Symbol 978 MovieClip Frame 91
stop();
Symbol 978 MovieClip Frame 130
stop();
Symbol 983 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 120
stop();
Symbol 983 MovieClip Frame 130
_level0.doh.play();
Symbol 983 MovieClip Frame 152
stop();
Symbol 987 MovieClip Frame 1
stop();
Symbol 987 MovieClip Frame 66
gotoAndStop (1);
Symbol 990 MovieClip Frame 1
stop();
Symbol 990 MovieClip Frame 33
stop();
Symbol 990 MovieClip Frame 49
stop();
Symbol 990 MovieClip Frame 100
stop();
Symbol 993 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 59
stop();
Symbol 996 MovieClip Frame 1
stop();
Symbol 999 MovieClip Frame 1
stop();
Instance of Symbol 1005 MovieClip "base0" in Symbol 1006 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1005 MovieClip "base1" in Symbol 1006 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1005 MovieClip "base2" in Symbol 1006 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1005 MovieClip "base3" in Symbol 1006 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 15
if (_level0.firebat_activated) {
gotoAndPlay ("firebat");
} else {
gotoAndStop (1);
}
Symbol 1019 MovieClip Frame 35
if (_level0.meteorball_activated) {
gotoAndPlay ("meteorball");
} else {
gotoAndStop (1);
}
Symbol 1027 Button
on (release) {
gotoAndStop (30);
}
on (rollOver) {
_level0.howto.gotoAndStop(2);
}
on (rollOut) {
_level0.howto.gotoAndStop(1);
}
Symbol 1028 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 1036 Button
on (release) {
gotoAndPlay ("pickteam");
}
Symbol 1038 MovieClip Frame 1
stop();
Symbol 1038 MovieClip Frame 2
stop();
Symbol 1040 MovieClip Frame 1
stop();
Symbol 1040 MovieClip Frame 2
stop();
Symbol 1042 Button
on (release) {
gotoAndPlay (27);
}
Symbol 1046 Button
on (release) {
gotoAndStop ("pickteam");
}
Symbol 1055 Button
on (release) {
mychoice = 2;
gotoAndPlay (7);
}
Symbol 1058 Button
on (release) {
mychoice = 1;
gotoAndPlay (7);
}
Symbol 1061 Button
on (release) {
mychoice = 3;
gotoAndPlay (7);
}
Symbol 1064 Button
on (release) {
mychoice = 4;
gotoAndPlay (7);
}
Symbol 1067 Button
on (release) {
if (myteam != null) {
cookie_team = myteam;
gotoAndPlay (12);
}
}
Symbol 1104 Button
on (release) {
_level0.pickcountry(_name);
}
Symbol 1109 Button
on (release) {
getURL ("http://www.backyardsports.com", "_blank");
}
Symbol 1111 Button
on (release) {
if (level == 12) {
gotoAndPlay (31);
} else {
gotoAndPlay (7);
}
}
Symbol 1115 Button
on (release) {
gotoAndPlay (11);
}
Symbol 1119 MovieClip Frame 1
Symbol 1119 MovieClip Frame 20
gotoAndPlay (2);
Symbol 1122 Button
on (release) {
gotoAndPlay (7);
}