Frame 1
game = new Object();
_domain = new LocalConnection();
game.domain = _domain.domain();
Frame 129
total_data = this.getBytesTotal();
Frame 130
data_loaded = this.getBytesLoaded();
value = Math.round((data_loaded / total_data) * 100);
percent_loaded = ("LOADING: " + value) + " PERCENT COMPLETE";
if (data_loaded >= total_data) {
gotoAndPlay (133);
percent_loaded = "";
}
Frame 131
gotoAndPlay(_currentframe - 1);
Frame 134
this.createEmptyMovieClip("sound", 311);
loadMovie ("sound_object.swf", "sound");
Frame 139
sound_total = sound.getBytesTotal();
Frame 140
sound_loaded = sound.getBytesLoaded();
sound_value = Math.round((sound_loaded / sound_total) * 100);
percent_loaded = sound_value + " PERCENT COMPLETE SOUND ASSETS";
if (sound_loaded >= sound_total) {
gotoAndPlay (145);
percent_loaded = "";
}
Frame 141
gotoAndPlay(_currentframe - 1);
Frame 169
function game_mode(mode) {
if (mode == "init") {
_global.current_mode = "init";
gotoAndPlay (169);
}
if (mode == "instructions") {
_global.current_mode = "instructions";
gotoAndPlay (176);
}
if (mode == "god") {
_global.current_mode = "main";
gotoAndPlay (201);
}
if (mode == "main") {
_global.current_mode = "main";
gotoAndPlay (201);
}
if (mode == "new_game") {
_global.current_mode = "new_game";
gotoAndPlay (211);
}
if (mode == "load_game") {
_global.current_mode = "load_game";
gotoAndPlay (215);
}
if (mode == "level") {
_global.current_mode = "level";
gotoAndPlay (224);
}
if (mode == "save") {
_global.current_mode = "save";
gotoAndPlay (244);
}
if (mode == "bonus_stats") {
_global.current_mode = "bonus_stats";
gotoAndPlay (1);
}
if (mode == "stats") {
_global.current_mode = "stats";
gotoAndPlay (234);
}
if (mode == "career") {
_global.current_mode = "career";
gotoAndPlay (254);
}
if (mode == "over") {
_global.current_mode = "over";
gotoAndPlay (264);
}
if (mode == "high_score") {
gotoAndPlay (286);
}
}
function set_vars() {
player.name = name;
player.level = Number(level);
player.score = Number(score);
player.career_score = Number(career_score);
player.power = Number(power);
player.speed = Number(speed);
player.team = Number(team);
}
function get_stats() {
name = player.name;
result = (level_result + " ") + name;
level = player.level;
score = game.score;
career_score = player.career_score;
passes_completed = game.passes_completed;
pass_attempts = game.pass_attempts;
interceptions = game.interceptions;
percentage = game.passes_completed / game.pass_attempts;
if (percentage == 1) {
percentage = 100;
} else {
percentage = Math.ceil(percentage * 100);
}
deep_passes = game.deep_passes;
medium_passes = game.medium_passes;
short_passes = game.short_passes;
}
function get_game_over_stats() {
name = player.name;
career_score = player.career_score;
if (player.career_score > 50000) {
conclusion = conclusions[3];
} else if (player.career_score > 25000) {
conclusion = conclusions[2];
} else if (player.career_score > 10000) {
conclusion = conclusions[1];
} else {
conclusion = conclusions[0];
}
}
function level_complete(score, pass_attempts, passes_completed, interceptions, deep_passes, medium_passes, short_passes) {
game.score = score;
game.level_min = game.min_score * (player.level * 0.2);
player.career_score = player.career_score + score;
game.pass_attempts = pass_attempts;
game.passes_completed = passes_completed;
game.interceptions = interceptions;
game.deep_passes = deep_passes;
game.medium_passes = medium_passes;
game.short_passes = short_passes;
game_mode("stats");
if (game.score >= game.level_min) {
level_result = "congratulations";
game.mode = "level_up";
} else {
level_result = "nice try";
game.mode = "game_over";
}
}
function level_up() {
player.level = player.level + 1;
level = player.level;
if (((level == 4) || (level == 7)) || (level == 10)) {
game_mode("career");
} else {
game_mode("save");
}
}
function career_up() {
if (player.team < 4) {
player.team = player.team + 1;
}
game_mode("save");
}
function get_career() {
team_name = team_names[player.team - 1];
career_score = player.career_score;
message = carrer_offers[player.team - 1];
player_speed.gotoAndStop(player.team);
}
function enter_high_score() {
saved_state = sharedobject.getLocal("espn_qb_challenge");
saved_state.data.qb_info = "";
form_data.gotoAndPlay("send_data");
}
function get_high_score_data() {
form_data.name = player.name;
form_data.score = player.career_score;
form_data.level = player.level;
}
function post_high_score(name, score, level) {
encode_score(score);
score = game.encoded_user_score;
insert_data = new LoadVars();
insert_data.onLoad = function (success) {
if (insert_data.insert == "success") {
form_data.gotoAndPlay("submit_success");
} else {
form_data.gotoAndPlay("submit_error");
}
};
insert_data.load((((("http://www.l4b3l.com/function_library/insert_high_score_QBC.php?name=" + name) + "&score=") + score) + "&level=") + level);
}
function play_again() {
gotoAndPlay (169);
}
function save(user_name, user_score, user_level, user_month, user_day, user_year) {
saved_state = sharedobject.getLocal("espn_qb_challenge");
encode_score(user_score);
saved_state.data.qb_info = new Array();
saved_state.data.qb_info[0] = user_name;
saved_state.data.qb_info[1] = user_score;
saved_state.data.qb_info[2] = user_level;
saved_state.data.qb_info[3] = user_month;
saved_state.data.qb_info[4] = user_day;
saved_state.data.qb_info[5] = user_year;
}
function load_save() {
saved_state = sharedobject.getLocal("espn_qb_challenge");
player.name = saved_state.data.qb_info[0];
trace("player name: " + player.name);
decode_score(saved_state.data.qb_info[1]);
player.career_score = Number(saved_state.data.qb_info[1]);
trace("player score: " + player.career_score);
player.level = Number(saved_state.data.qb_info[2]);
trace("player level: " + player.level);
save_month = saved_state.data.qb_info[3];
save_day = saved_state.data.qb_info[4];
save_year = saved_state.data.qb_info[5];
save_date = (((save_month + "-") + save_day) + "-") + save_year;
trace("save date: " + save_date);
}
function encode_score(score) {
monkey = score.toString();
var i = 0;
while (i < numbers.length) {
monkey = SeekAndEncode(monkey, numbers[i], letters[i]);
i++;
}
game.encoded_user_score = monkey;
}
function decode_score(score) {
slave = score;
var i = 0;
while (i < numbers.length) {
slave = SeekAndEncode(slave, letters[i], numbers[i]);
i++;
}
decoded_user_score = slave;
}
function SeekAndEncode(the_string, search_string, replace_string, occurrences, backward) {
if (search_string == replace_string) {
return(the_string);
}
var found = 0;
if (backward == true) {
var pos = the_string.lastIndexOf(search_string);
while (pos >= 0) {
found++;
var start_string = the_string.substr(0, pos);
var end_string = the_string.substr(pos + search_string.length);
the_string = (start_string + replace_string) + end_string;
pos = the_string.lastIndexOf(search_string, start_string.length);
if (found == occurrences) {
pos = -1;
}
}
} else {
var pos = the_string.indexOf(search_string);
while (pos >= 0) {
found++;
var start_string = the_string.substr(0, pos);
var end_string = the_string.substr(pos + search_string.length);
the_string = (start_string + replace_string) + end_string;
pos = the_string.indexOf(search_string, pos + replace_string.length);
if (found == occurrences) {
pos = -1;
}
}
}
return(the_string);
}
function start_load_game() {
name = player.name;
level = Number(player.level);
if (player.level <= 3) {
player.team = 1;
} else if ((player.level >= 4) && (player.level <= 6)) {
player.team = 2;
} else if ((player.level >= 7) && (player.level <= 9)) {
player.team = 3;
} else {
player.team = 4;
}
game_mode("level");
}
function audio_off() {
volume_set(0);
trace("all sounds off");
}
function audio_on() {
volume_set(100);
trace("all sounds on");
}
function volume_set(volume) {
sound.globalvolume.setVolume(volume);
}
function check_save_game() {
trace("sol check: " + saved_state.data.qb_info[0]);
if (saved_state.data.qb_info[0] == undefined) {
load_game_button.gotoAndPlay("inactive");
}
}
saved_state = sharedobject.getLocal("espn_qb_challenge");
numbers = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
letters = new Array("/", "@", "k", "D", "Z", "q", "X", "w", "U", "*");
local_date = new Date();
local_date_month = local_date.getMonth();
local_date_month = Number(local_date_month + 1);
local_date_day = local_date.getDay();
local_date_year = local_date.getFullYear();
player = new Object();
player.name = "";
player.level = 1;
player.bonus_level = 1;
player.score = 0;
player.career_score = 0;
player.power = 0;
player.speed = 0;
player.team = 1;
game.audio = "on";
game.min_score = 750;
game.passes_completed = 0;
game.pass_attempts = 0;
game.interceptions = 0;
game.deep_passes = 0;
game.medium_passes = 0;
game.short_passes = 0;
game.mode = "";
team_names = new Array();
team_names[0] = "ORION";
team_names[1] = "SOLARIS";
team_names[2] = "HALCYON";
team_names[3] = "CYCLONE";
carrer_offers = new Array();
carrer_offers[0] = "Time to step up to parallel processors. In the Solaris environment its gonna take a lot more skill to hype the crowd and keep your circuits cool.";
carrer_offers[1] = "Brace yourself for true multi-processor, multi-threaded game simulation speed - the following tests will separate the elite QBs from the hacks.";
carrer_offers[2] = "Think you can handle network supercomputer cluster speed? Nanosecond decisions are the difference between all-star fame and a hard core system reboot.";
carrer_offers[3] = "Amazing performance under maximum traffic. Think you can handle nework supercomputer cluster speed? Nanosecond decisions are the difference between all-star fame and a hard core system reboot.";
conclusions = new Array();
conclusions[0] = "Ranking: High School Veteran\nYou're gonna need to do a little better to start hitting the big points.\n\nTIP: Hit your receivers when they turn red for the most points.";
conclusions[1] = "Ranking: College Star QB\nMaybe you'll make the pros with some more practice.\n\nTIP: Throwing the ball faster will allow you to get more completions.";
conclusions[2] = "Ranking: Pro Starter\nImpressive, keep making throws like that and you could be an all-star.\n\nTIP: Throwing interceptions takes away points and wastes valuable time on the clock.";
conclusions[3] = "Ranking: All-Star\nAmazing presence in the pocket and a rocket arm - you've got it all.";
stopAllSounds();
intro_vo_playing = false;
Frame 170
sound.background_music2.start(0, 100);
game_mode("main");
Frame 185
stop();
Frame 186
stop();
Frame 200
stop();
Frame 201
check_save_game();
Frame 208
if (intro_vo_playing == false) {
sound.ss_intro.start();
intro_vo_playing = true;
sound.ss_intro.onSoundComplete = function () {
sound.vo_system_intro2.start();
};
}
Frame 209
if (Key.isDown(17) && (Key.isDown(38))) {
game_mode("god");
}
Frame 210
gotoAndPlay (209);
Frame 211
name = "";
field_1.setFocus();
field_1.restrict = "A-Z 0-9 []-_:";
Frame 214
stop();
Frame 215
load_save();
name = player.name;
level = player.level;
date_field = save_date;
Frame 223
stop();
Frame 224
game.mode = "playing";
game.level_min = game.min_score * (player.level * 0.2);
stats_vo_playing = false;
Frame 233
stop();
Frame 234
if (stats_vo_playing == false) {
stopAllSounds();
sound.background_music2.start(0, 99);
}
get_stats();
if (stats_vo_playing == false) {
if (game.score < game.level_min) {
stats_vo_playing = true;
sound.ss_stat_3.start();
}
if ((game.score > game.level_min) && (game.score < (game.level_min + 500))) {
stats_vo_playing = true;
sound.ss_stat_2.start();
}
if (game.score >= (game.level_min + 500)) {
stats_vo_playing = true;
sound.ss_stat_1.start();
}
}
Instance of Symbol 485 MovieClip "team_names" in Frame 234
onClipEvent (load) {
if (_parent.player.team == 1) {
this.gotoAndPlay("ice");
} else if (_parent.player.team == 2) {
this.gotoAndPlay("rattlers");
} else if (_parent.player.team == 3) {
this.gotoAndPlay("big_kats");
} else {
this.gotoAndPlay("hurricane");
}
}
Frame 243
stop();
Frame 244
stop();
Frame 253
Frame 254
get_career();
Instance of Symbol 504 MovieClip "new_teams" in Frame 254
onClipEvent (load) {
if ((_parent.player.team + 1) == 1) {
this.gotoAndPlay("ice");
} else if ((_parent.player.team + 1) == 2) {
this.gotoAndPlay("rattlers");
} else if ((_parent.player.team + 1) == 3) {
this.gotoAndPlay("big_kats");
} else {
this.gotoAndPlay("hurricane");
}
}
Instance of Symbol 513 MovieClip "player_speed" in Frame 254
/* no clip actions */
Frame 263
stop();
Frame 264
get_game_over_stats();
Frame 272
stop();
Frame 273
stop();
Frame 280
stop();
Frame 296
stop();
Symbol 5 Button
on (release) {
getURL ("http://forums.l4b3l.com", "_blank");
}
Symbol 24 Button
on (release) {
gotoAndPlay (129);
}
Symbol 42 Button
on (release) {
_parent.game_mode("high_score");
}
Symbol 45 Button
on (release) {
_parent._parent.audio_off();
this.gotoAndPlay("off");
}
Symbol 49 Button
on (release) {
_parent._parent.audio_on();
this.gotoAndPlay("on");
}
Symbol 50 MovieClip Frame 1
_parent._parent.sound_value = "off";
stop();
Symbol 50 MovieClip Frame 2
_parent._parent.sound_value = "on";
stop();
Instance of Symbol 50 MovieClip "sound_toggle" in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.sound_value == "off") {
this.gotoAndStop("off");
}
if (_parent._parent.sound_value == "on") {
this.gotoAndStop("on");
}
}
Symbol 58 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
game_mode("new_game");
}
Symbol 69 Button
on (release) {
gotoAndPlay (7);
}
Symbol 72 Button
on (release) {
gotoAndPlay (8);
}
Symbol 76 Button
on (release) {
gotoAndPlay (6);
}
Symbol 79 Button
on (release) {
gotoAndPlay (7);
}
Symbol 80 MovieClip Frame 6
stop();
Symbol 80 MovieClip Frame 7
stop();
Symbol 80 MovieClip Frame 8
stop();
Symbol 89 Button
on (release, keyPress "<Enter>") {
if (access_code == "morphius") {
gotoAndPlay (191);
} else {
gotoAndPlay (201);
}
}
Symbol 96 Button
on (release) {
set_vars();
}
Symbol 107 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
set_vars();
game_mode("main");
}
Symbol 109 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
set_vars();
game_mode("stats");
}
Symbol 111 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
set_vars();
game_mode("over");
}
Symbol 113 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
set_vars();
game_mode("career");
}
Symbol 116 Button
on (release) {
set_vars();
game_mode("level");
}
Symbol 118 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
game_mode("main");
}
Symbol 121 Button
on (release) {
set_vars();
game_mode("bonus");
}
Symbol 127 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
game_mode("new_game");
}
Symbol 131 Button
on (rollOver) {
_parent.sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
_parent.sound.button_click.start();
_parent.game_mode("load_game");
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
load_button.enabled = false;
Symbol 139 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
if (name != "") {
sound.button_click.start();
player.name = name;
game_mode("level");
}
}
Symbol 141 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
game_mode("instructions");
}
Symbol 143 Button
on (release, keyPress "<Enter>") {
game_mode("main");
}
Symbol 145 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
start_load_game();
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 17
gotoAndPlay (12);
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 4
stop();
Symbol 232 MovieClip Frame 16
Symbol 233 MovieClip Frame 16
Symbol 234 MovieClip Frame 1
_parent.digitized = "";
brand_image.gotoAndPlay(_parent._parent.player.team);
Symbol 234 MovieClip Frame 8
Symbol 234 MovieClip Frame 42
_parent.digitized = "complete";
stop();
Symbol 234 MovieClip Frame 44
_parent._parent.sound.woosh.start();
Symbol 234 MovieClip Frame 55
_parent.gotoAndPlay("start");
stop();
Symbol 312 MovieClip Frame 29
reloaded = true;
stop();
Symbol 312 MovieClip Frame 30
_parent.throw_in_progress = true;
Symbol 312 MovieClip Frame 34
_parent.throw_ball(_parent.game_level.footballID);
Symbol 312 MovieClip Frame 36
_parent.throw_in_progress = false;
gotoAndStop (29);
Symbol 312 MovieClip Frame 40
stop();
Symbol 312 MovieClip Frame 41
stop();
Symbol 312 MovieClip Frame 42
_parent.throw_in_progress = true;
Symbol 312 MovieClip Frame 46
_parent.throw_ball(_parent.game_level.footballID);
Symbol 312 MovieClip Frame 48
_parent.throw_in_progress = false;
gotoAndStop (41);
Symbol 312 MovieClip Frame 52
stop();
Symbol 312 MovieClip Frame 53
stop();
Symbol 312 MovieClip Frame 54
_parent.throw_in_progress = true;
Symbol 312 MovieClip Frame 58
_parent.throw_ball(_parent.game_level.footballID);
Symbol 312 MovieClip Frame 60
_parent.throw_in_progress = false;
gotoAndStop (53);
Symbol 312 MovieClip Frame 61
_parent._parent.sound.sfx_qb_reload.start();
Symbol 312 MovieClip Frame 75
gotoAndPlay (1);
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 339 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 339 MovieClip Frame 12
throw_depth = "medium";
Instance of Symbol 327 MovieClip "X2" in Symbol 339 MovieClip Frame 17
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 339 MovieClip Frame 21
throw_depth = "deep";
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 339 MovieClip Frame 63
O2.O.O_fill._visible = false;
_parent.active = false;
_parent.load_x_o();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 340 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 340 MovieClip Frame 10
throw_depth = "medium";
Instance of Symbol 327 MovieClip "X2" in Symbol 340 MovieClip Frame 13
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 340 MovieClip Frame 17
throw_depth = "deep";
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 340 MovieClip Frame 51
O2.O.O_fill._visible = false;
_parent.active = false;
_parent.load_x_o();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 341 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 341 MovieClip Frame 8
throw_depth = "medium";
Instance of Symbol 327 MovieClip "X2" in Symbol 341 MovieClip Frame 9
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 341 MovieClip Frame 13
throw_depth = "deep";
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 341 MovieClip Frame 31
O2.O.O_fill._visible = false;
_parent.active = false;
_parent.load_x_o();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
throw_depth = "short";
hitO2._visible = false;
hitX2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 342 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 342 MovieClip Frame 29
throw_depth = "medium";
Symbol 342 MovieClip Frame 46
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 342 MovieClip Frame 56
_parent.load_x_o();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
throw_depth = "short";
hitO2._visible = false;
hitX2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 343 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 343 MovieClip Frame 22
throw_depth = "medium";
Symbol 343 MovieClip Frame 35
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 343 MovieClip Frame 41
_parent.load_x_o();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
throw_depth = "short";
hitO2._visible = false;
hitX2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 344 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 344 MovieClip Frame 16
throw_depth = "medium";
Symbol 344 MovieClip Frame 24
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 344 MovieClip Frame 28
_parent.load_x_o();
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 345 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 345 MovieClip Frame 8
throw_depth = "medium";
Symbol 345 MovieClip Frame 16
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 345 MovieClip Frame 44
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 345 MovieClip Frame 59
throw_depth = "deep";
Symbol 345 MovieClip Frame 63
_parent.load_x_o();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 346 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 346 MovieClip Frame 8
throw_depth = "medium";
Symbol 346 MovieClip Frame 16
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 346 MovieClip Frame 32
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 346 MovieClip Frame 51
_parent.load_x_o();
Symbol 346 MovieClip Frame 53
throw_depth = "deep";
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 347 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 347 MovieClip Frame 6
throw_depth = "medium";
Symbol 347 MovieClip Frame 13
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 347 MovieClip Frame 23
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 347 MovieClip Frame 29
_parent.load_x_o();
Symbol 347 MovieClip Frame 34
throw_depth = "deep";
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 348 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 348 MovieClip Frame 14
throw_depth = "medium";
Instance of Symbol 327 MovieClip "X2" in Symbol 348 MovieClip Frame 17
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 348 MovieClip Frame 21
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 348 MovieClip Frame 56
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 348 MovieClip Frame 68
_parent.load_x_o();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 349 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 349 MovieClip Frame 11
throw_depth = "medium";
Instance of Symbol 327 MovieClip "X2" in Symbol 349 MovieClip Frame 13
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 349 MovieClip Frame 17
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 349 MovieClip Frame 40
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 349 MovieClip Frame 52
_parent.load_x_o();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 350 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 350 MovieClip Frame 9
throw_depth = "medium";
Instance of Symbol 327 MovieClip "X2" in Symbol 350 MovieClip Frame 9
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 350 MovieClip Frame 13
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 350 MovieClip Frame 25
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 350 MovieClip Frame 37
_parent.load_x_o();
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 351 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 351 MovieClip Frame 39
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 351 MovieClip Frame 42
throw_depth = "medium";
Symbol 351 MovieClip Frame 51
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 351 MovieClip Frame 60
_parent.load_x_o();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 352 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 352 MovieClip Frame 24
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 352 MovieClip Frame 31
throw_depth = "medium";
Symbol 352 MovieClip Frame 36
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 352 MovieClip Frame 45
_parent.load_x_o();
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 353 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 353 MovieClip Frame 13
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 353 MovieClip Frame 24
throw_depth = "medium";
Symbol 353 MovieClip Frame 27
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 353 MovieClip Frame 32
_parent.load_x_o();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 354 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 354 MovieClip Frame 22
throw_depth = "medium";
Symbol 354 MovieClip Frame 66
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 354 MovieClip Frame 71
throw_depth = "deep";
Symbol 354 MovieClip Frame 76
_parent.load_x_o();
Symbol 354 MovieClip Frame 86
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 355 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 355 MovieClip Frame 16
throw_depth = "medium";
Symbol 355 MovieClip Frame 50
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 355 MovieClip Frame 55
throw_depth = "deep";
Symbol 355 MovieClip Frame 60
_parent.load_x_o();
Symbol 355 MovieClip Frame 70
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
throw_depth = "short";
hitX2._visible = false;
hitO2._visible = false;
O2.O.O_fill._visible = false;
_parent.active = false;
Instance of Symbol 338 MovieClip "O2" in Symbol 356 MovieClip Frame 2
onClipEvent (enterFrame) {
this.x = "X: " + this._x;
this.y = "Y: " + this._y;
}
Symbol 356 MovieClip Frame 10
throw_depth = "medium";
Symbol 356 MovieClip Frame 35
O2.O.O_fill._visible = true;
_parent.active = true;
Symbol 356 MovieClip Frame 42
throw_depth = "deep";
Symbol 356 MovieClip Frame 45
_parent.load_x_o();
Symbol 356 MovieClip Frame 55
O2.O.O_fill._visible = false;
_parent.active = false;
Symbol 366 MovieClip Frame 1
field_bg.gotoAndStop(_parent._parent.player.team);
Symbol 366 MovieClip Frame 2
_parent._parent.sound.woosh.start();
_parent._parent.sound.mx_game.start(0, 999);
Symbol 366 MovieClip Frame 22
_parent.noise_bg.gotoAndPlay(1);
stop();
Symbol 366 MovieClip Frame 23
_parent.unload_x_o_interception();
_parent.noise_bg.gotoAndStop(1);
_parent._parent.sound.mx_game.stop();
_parent._parent.sound.sfx_interseption.start();
Symbol 366 MovieClip Frame 40
_parent.vo_interception();
_parent.noise_bg.gotoAndPlay("start");
Symbol 366 MovieClip Frame 44
_parent.load_x_o();
gotoAndPlay (2);
Symbol 370 MovieClip Frame 1
f_depth = 0;
stop();
Symbol 370 MovieClip Frame 2
f_depth = 0;
Symbol 370 MovieClip Frame 3
f_depth = 5;
Symbol 370 MovieClip Frame 4
f_depth = 10;
Symbol 370 MovieClip Frame 5
f_depth = 15;
Symbol 370 MovieClip Frame 6
f_depth = 20;
Symbol 370 MovieClip Frame 7
f_depth = 25;
Symbol 370 MovieClip Frame 8
f_depth = 30;
Symbol 370 MovieClip Frame 9
f_depth = 35;
Symbol 370 MovieClip Frame 10
stop();
Symbol 370 MovieClip Frame 11
f_depth = 0;
Symbol 370 MovieClip Frame 12
f_depth = 5;
Symbol 370 MovieClip Frame 13
f_depth = 10;
Symbol 370 MovieClip Frame 14
f_depth = 15;
Symbol 370 MovieClip Frame 15
f_depth = 20;
Symbol 370 MovieClip Frame 16
f_depth = 25;
Symbol 370 MovieClip Frame 17
f_depth = 30;
Symbol 370 MovieClip Frame 18
f_depth = 35;
Symbol 370 MovieClip Frame 19
stop();
Symbol 370 MovieClip Frame 20
f_depth = 0;
Symbol 370 MovieClip Frame 21
f_depth = 5;
Symbol 370 MovieClip Frame 22
f_depth = 10;
Symbol 370 MovieClip Frame 23
f_depth = 15;
Symbol 370 MovieClip Frame 24
f_depth = 20;
Symbol 370 MovieClip Frame 25
f_depth = 25;
Symbol 370 MovieClip Frame 26
f_depth = 30;
Symbol 370 MovieClip Frame 27
f_depth = 35;
Symbol 370 MovieClip Frame 28
stop();
Symbol 373 MovieClip Frame 1
stop();
stop();
Symbol 373 MovieClip Frame 16
gotoAndStop (1);
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
stop();
Symbol 388 MovieClip Frame 3
stop();
Symbol 388 MovieClip Frame 4
stop();
Symbol 388 MovieClip Frame 5
stop();
Symbol 388 MovieClip Frame 6
stop();
Symbol 388 MovieClip Frame 7
stop();
Symbol 388 MovieClip Frame 8
stop();
Symbol 388 MovieClip Frame 9
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 7
if (total == 50) {
frame = 2;
} else if (total == 100) {
frame = 3;
} else if (total == 150) {
frame = 4;
} else if (total == 200) {
frame = 5;
} else if (total == 250) {
frame = 6;
} else if (total == 300) {
frame = 7;
} else if (total == 350) {
frame = 8;
} else if (total == 400) {
frame = 9;
}
numbers_clip.gotoAndPlay(frame);
Symbol 392 MovieClip Frame 30
gotoAndStop (1);
Symbol 414 MovieClip Frame 1
_parent.status_o_reaction = false;
this._x = -100;
this._y = -100;
this._xscale = 100;
this._yscale = 100;
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 3
_parent._parent.sound.sfx_completion.start();
Symbol 414 MovieClip Frame 15
_parent.random_cheer();
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 2
_parent.load_x_o();
time = new Date();
seconds_start = time.getSeconds();
user_time = 30;
Symbol 424 MovieClip Frame 3
time = new Date();
seconds = time.getSeconds();
if (seconds != seconds_record) {
_parent._parent.sound.sfx_timer_beep.start();
}
seconds_record = seconds;
seconds_passed = Math.abs(seconds - seconds_start);
seconds = Math.abs(user_time - seconds_passed);
if ((seconds == 15) && (played_15 != true)) {
_parent._parent.sound.vo_system_time_15.start();
played_15 = true;
}
if ((seconds == 5) && (played_5 != true)) {
_parent._parent.sound.vo_system_time_5.start();
played_5 = true;
}
if (seconds < 10) {
seconds = "0" + seconds;
}
if (seconds == 0) {
gotoAndPlay (5);
}
Symbol 424 MovieClip Frame 4
gotoAndPlay (3);
Symbol 424 MovieClip Frame 5
_parent.gotoAndPlay("level_complete");
stop();
Symbol 441 MovieClip Frame 1
_parent.throw_in_progress = false;
_parent._parent.sound.count_3.start();
Symbol 441 MovieClip Frame 11
_parent._parent.sound.count_2.start();
Symbol 441 MovieClip Frame 21
_parent._parent.sound.count_1.start();
Symbol 441 MovieClip Frame 30
_parent.timer.gotoAndPlay("start");
Symbol 441 MovieClip Frame 48
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
_parent._parent.sound.vo_system_hype1.start();
_parent._parent.sound.vo_system_hype1.onSoundComplete = function () {
_parent._parent.sound.crowd_loop_1.start(0, 599);
};
if ((_parent.active != true) && (_parent.game_level.completed == 1)) {
_parent._parent.sound.ss_taunt_4.start();
_parent.cheer_playing = true;
_parent._parent.sound.ss_taunt_4.onSoundComplete = function () {
_parent.cheer_playing = false;
};
}
Symbol 456 MovieClip Frame 7
stop();
Symbol 456 MovieClip Frame 8
_parent._parent.sound.vo_system_hype2.start();
_parent._parent.sound.vo_system_hype2.onSoundComplete = function () {
_parent._parent.sound.crowd_loop_2.start(0, 599);
};
Symbol 456 MovieClip Frame 13
stop();
Symbol 456 MovieClip Frame 14
_parent._parent.sound.vo_system_hype3.start();
_parent._parent.sound.vo_system_hype3.onSoundComplete = function () {
_parent._parent.sound.crowd_loop_3.start(0, 599);
};
Symbol 456 MovieClip Frame 19
stop();
Symbol 456 MovieClip Frame 20
_parent._parent.sound.vo_system_hype4.start();
_parent._parent.sound.ss_hype_4.start();
_parent.cheer_playing = true;
_parent._parent.sound.ss_hype_4.onSoundComplete = function () {
_parent.cheer_playing = false;
};
_parent._parent.sound.vo_system_hype4.onSoundComplete = function () {
_parent._parent.sound.crowd_loop_4.start(0, 599);
};
Symbol 456 MovieClip Frame 25
stop();
Symbol 457 MovieClip Frame 1
function random_gen() {
if (plays_used.length == plays.length) {
plays_used.length = 0;
play_key = 0;
}
swf_play = random(plays.length);
valid_play(swf_play);
}
function valid_play(play_id) {
_global.valid_play = true;
l = 0;
while (l <= plays_used.length) {
if (play_id == plays_used[l]) {
_global.valid_play = false;
}
l++;
}
return_play(play_id);
}
function return_play(id) {
if (_global.valid_play == true) {
plays_used[play_key] = id;
play_group[play_key] = plays[id];
trace(play_group[play_key]);
play_key = play_key + 1;
} else if (_global.valid_question == false) {
random_gen();
}
}
digitized = "";
player = new Object();
player.level = _parent.player.level;
play_key = 0;
if (player.level <= 3) {
num_plays = 3;
skill_level = 1;
QB_velocity = 15;
FB_velocity = 6;
} else if ((player.level >= 4) && (player.level <= 6)) {
num_plays = 4;
skill_level = 2;
QB_velocity = 25;
FB_velocity = 8;
} else if ((player.level >= 7) && (player.level <= 9)) {
num_plays = 5;
skill_level = 3;
QB_velocity = 35;
FB_velocity = 15;
} else {
num_plays = 6;
skill_level = 3;
QB_velocity = 45;
FB_velocity = 20;
}
plays = new Array("short_cross_" + skill_level, "post_" + skill_level, "deep_cross_" + skill_level, "slant_" + skill_level, "up_and_out_" + skill_level, "hook_" + skill_level);
play_group = new Array();
plays_used = new Array();
while (plays_used.length < num_plays) {
random_gen();
}
stopAllSounds();
vo_playing = false;
Symbol 457 MovieClip Frame 2
noise_bg.gotoAndPlay("start");
_parent.sound.game_opener2.start();
Symbol 457 MovieClip Frame 39
duplicateMovieClip ("QB_4", "QB", 50);
Symbol 457 MovieClip Frame 44
loading_plays._visible = false;
swf_files = play_group.length;
swf_file_load = random(swf_files) + 1;
patternID = swf_file_load - 1;
swf_array = new Array();
swf_array_count = 0;
swf_array[swf_array_count] = swf_file_load;
Symbol 457 MovieClip Frame 45
loading_plays.load_response = "LOADING SWF FILE " + swf_file_load;
duplicateMovieClip (play_group[swf_file_load - 1], "O" + swf_file_load, swf_file_load);
Symbol 457 MovieClip Frame 46
if (swf_array.length < swf_files) {
if (swf_file_load < swf_files) {
swf_file_load = swf_file_load + 1;
} else {
swf_file_load = 1;
}
swf_array_count = swf_array_count + 1;
swf_array[swf_array_count] = swf_file_load;
gotoAndPlay (45);
} else {
gotoAndPlay (61);
}
Symbol 457 MovieClip Frame 62
if (digitized == "complete") {
intro.gotoAndPlay("close");
stop();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 457 MovieClip Frame 63
function prepare_stage() {
QB._visible = false;
QB._x = 179;
QB._y = 245;
throw_in_progress = true;
score = 0;
}
function game_objects() {
game_level = new Object();
game_level.accel = 1;
game_level.accel_max = 7;
game_level.accel_factor = 1;
game_level.completed = 0;
game_level.interceptions = 0;
game_level.deep = 0;
game_level.medium = 0;
game_level.short = 0;
game_level.consecutive = 0;
game_level.footballID = 0;
game_level.limit = 2;
game_level.velocity = QB_velocity;
}
function game_stats() {
if (this["O" + patternID].throw_depth == "deep") {
game_level.deep = game_level.deep + 1;
}
if (this["O" + patternID].throw_depth == "medium") {
game_level.medium = game_level.medium + 1;
}
if (this["O" + patternID].throw_depth == "short") {
game_level.short = game_level.short + 1;
}
if (game_level.consecutive < 4) {
game_level.consecutive = game_level.consecutive + 1;
hype_meter.gotoAndPlay("hype_" + game_level.consecutive);
}
game_level.completed = game_level.completed + 1;
}
function load_x_o() {
if (patternID < swf_files) {
patternID++;
} else {
patternID = 1;
}
this["O" + patternID].gotoAndPlay("start");
this["O" + patternID].O2._visible = true;
}
function unload_x_o() {
this["O" + patternID].gotoAndPlay(1);
load_x_o();
}
function unload_x_o_interception() {
this["O" + patternID].gotoAndPlay(1);
}
function stage_info() {
stage_info = new Object();
stage_info.w = Stage.width;
stage_info.limit_1 = Math.round(stage_info.w / 3);
stage_info.limit_2 = stage_info.limit_1 * 2;
stage_info.limit_3 = stage_info.w;
stage_info.h = Stage.height;
stage_info.version = _parent.$version;
}
function qb_info() {
qb_info = new Object();
clip = this.QB;
qb_info.w = clip._width;
qb_info.w2 = qb_info.w / 2;
qb_info.h = clip._height;
qb_info.x = clip._x;
qb_info.orig_x = clip._x;
qb_info.x_left = qb_info.x - (qb_info.w / 2);
qb_info.x_right = qb_info.x + (qb_info.w / 2);
qb_info.limit = 2;
qb_info.state = "center";
}
function qb_move(direction) {
if (game_level.accel < game_level.accel_max) {
game_level.accel = game_level.accel + game_level.accel_factor;
}
if ((direction == 37) || (direction == 65)) {
qb_info.x = qb_info.x - game_level.velocity;
if (qb_info.x <= (qb_info.w2 - qb_info.x_left)) {
qb_info.x = qb_info.w2 - qb_info.x_left;
}
} else if ((direction == 39) || (direction == 68)) {
qb_info.x = qb_info.x + game_level.velocity;
if (qb_info.x >= ((stage_info.w - qb_info.x_right) + qb_info.w2)) {
qb_info.x = (stage_info.w - qb_info.x_right) + qb_info.w2;
}
} else {
qb_info.x = qb_info.x;
}
if ((qb_info.x <= stage_info.limit_1) && (qb_info.limit != 1)) {
qb_info.limit = 1;
}
if ((qb_info.x > stage_info.limit_1) && (qb_info.limit != 2)) {
qb_info.limit = 2;
}
if ((qb_info.x > stage_info.limit_2) && (qb_info.limit != 3)) {
qb_info.limit = 3;
}
qb_render();
}
function qb_render() {
QB._x = qb_info.x;
}
function key_status() {
code = Key.getCode();
if (Key.isDown(37)) {
key_37 = true;
} else {
key_37 = false;
}
if (Key.isDown(39)) {
key_39 = true;
} else {
key_39 = false;
}
if (Key.isDown(65)) {
key_65 = true;
} else {
key_65 = false;
}
if (Key.isDown(68)) {
key_68 = true;
} else {
key_68 = false;
}
if ((((key_37 == true) && (key_39 == false)) && (key_65 == false)) && (key_68 == false)) {
qb_move(37);
}
if ((((key_37 == false) && (key_39 == true)) && (key_65 == false)) && (key_68 == false)) {
qb_move(39);
}
if ((((key_37 == false) && (key_39 == false)) && (key_65 == true)) && (key_68 == false)) {
qb_move(65);
}
if ((((key_37 == false) && (key_39 == false)) && (key_65 == false)) && (key_68 == true)) {
qb_move(68);
}
}
function fb_info(football_info) {
this["football_" + football_info] = new Object();
clip = this["ball_" + football_info];
this["football_" + football_info].x = clip._x;
this["football_" + football_info].y = clip._y;
this["football_" + football_info].w = clip._width;
this["football_" + football_info].h = clip._height;
this["football_" + football_info].velocity = FB_velocity;
}
function throw_ball(football_throw) {
game_level.throws = game_level.throws + 1;
user_throws = (game_level.completed + "/") + game_level.throws;
fb_info(football_throw);
football_position_info(football_throw);
time_to_move_ball = true;
this["ball_" + football_throw]._visible = true;
QB.swapDepths(this["ball_" + game_level.footballID].getDepth());
if (qb_info.state == "center") {
this["ball_" + football_throw].gotoAndPlay("throw");
}
if (qb_info.state == "left") {
this["ball_" + football_throw].gotoAndPlay("l_throw");
}
if (qb_info.state == "right") {
this["ball_" + football_throw].gotoAndPlay("r_throw");
}
_parent.sound.sfx_qb_throw.start();
}
function football_position_info(current_football) {
if (qb_info.state == "center") {
this["ball_" + current_football].xoffset = 153.4;
this["ball_" + current_football].yoffset = 38.7;
}
if (qb_info.state == "left") {
this["ball_" + current_football].xoffset = 188.6;
this["ball_" + current_football].yoffset = 18.4;
}
if (qb_info.state == "right") {
this["ball_" + current_football].xoffset = 131;
this["ball_" + current_football].yoffset = 52.8;
}
this["ball_" + current_football]._x = this["ball_" + current_football].xoffset + QB._x;
this["ball_" + current_football]._y = this["ball_" + current_football].yoffset + QB._y;
collided = false;
clip = this["ball_" + current_football];
this["football_" + current_football].x = clip._x;
this["football_" + current_football].y = clip._y;
this["football_" + current_football].new_x = Math.round(crosshair._x);
this["football_" + current_football].new_y = Math.round(crosshair._y);
this["football_" + current_football].dif_x = this["football_" + current_football].new_x - this["football_" + current_football].x;
this["football_" + current_football].dif_y = this["football_" + current_football].new_y - this["football_" + current_football].y;
this["football_" + current_football].angle = Math.atan2(this["football_" + current_football].dif_y, this["football_" + current_football].dif_x);
this["football_" + current_football].xmov = this["football_" + current_football].velocity * Math.cos(this["football_" + current_football].angle);
this["football_" + current_football].ymov = this["football_" + current_football].velocity * Math.sin(this["football_" + current_football].angle);
if (this["football_" + current_football].dif_x <= 0) {
this["football_" + current_football].dir_x = "negative";
} else {
this["football_" + current_football].dir_x = "positive";
}
if (this["football_" + current_football].dif_y < 0) {
this["football_" + current_football].dir_y = "negative";
} else {
this["football_" + current_football].dir_y = "positive";
}
}
function calculate_football_animation() {
this["football_" + game_level.footballID].tmp_x = this["football_" + game_level.footballID].tmp_x + this["football_" + game_level.footballID].xmov;
this["football_" + game_level.footballID].tmp_y = this["football_" + game_level.footballID].tmp_y + this["football_" + game_level.footballID].ymov;
this["football_" + game_level.footballID].x = this["football_" + game_level.footballID].x + this["football_" + game_level.footballID].tmp_x;
this["football_" + game_level.footballID].y = this["football_" + game_level.footballID].y + this["football_" + game_level.footballID].tmp_y;
if (this["football_" + game_level.footballID].dir_x == "negative") {
if (((this["football_" + game_level.footballID].x = this["football_" + game_level.footballID].x + this["football_" + game_level.footballID].tmp_x)) <= this["football_" + game_level.footballID].new_x) {
this["football_" + game_level.footballID].x = this["football_" + game_level.footballID].new_x;
this["football_" + game_level.footballID].x_move_complete = true;
}
} else if (this["football_" + game_level.footballID].dir_x == "positive") {
if (((this["football_" + game_level.footballID].x = this["football_" + game_level.footballID].x + this["football_" + game_level.footballID].tmp_x)) >= this["football_" + game_level.footballID].new_x) {
this["football_" + game_level.footballID].x = this["football_" + game_level.footballID].new_x;
this["football_" + game_level.footballID].x_move_complete = true;
}
}
if (this["football_" + game_level.footballID].dir_y == "negative") {
if (((this["football_" + game_level.footballID].y = this["football_" + game_level.footballID].y + this["football_" + game_level.footballID].tmp_y)) <= this["football_" + game_level.footballID].new_y) {
this["football_" + game_level.footballID].y = this["football_" + game_level.footballID].new_y;
this["football_" + game_level.footballID].y_move_complete = true;
}
} else if (this["football_" + game_level.footballID].dir_y == "positive") {
if (((this["football_" + game_level.footballID].y = this["football_" + game_level.footballID].y + this["football_" + game_level.footballID].tmp_y)) >= this["football_" + game_level.footballID].new_y) {
this["football_" + game_level.footballID].y = this["football_" + game_level.footballID].new_y;
this["football_" + game_level.footballID].y_move_complete = true;
}
}
render_football();
}
function render_football() {
this["ball_" + game_level.footballID]._x = this["football_" + game_level.footballID].x;
this["ball_" + game_level.footballID]._y = this["football_" + game_level.footballID].y;
}
function football_reset() {
collided = false;
throw_in_progress = false;
this["ball_" + game_level.footballID]._visible = false;
this["ball_" + game_level.footballID]._x = -50;
this["ball_" + game_level.footballID]._y = -50;
this["football_" + game_level.footballID].x_move_complete = false;
this["football_" + game_level.footballID].y_move_complete = false;
this["football_" + game_level.footballID].x = -50;
this["football_" + game_level.footballID].y = -50;
this["football_" + game_level.footballID].tmp_x = 0;
this["football_" + game_level.footballID].tmp_y = 0;
this["football_" + game_level.footballID].new_x = 0;
this["football_" + game_level.footballID].new_y = 0;
this["football_" + game_level.footballID].dif_x = 0;
this["football_" + game_level.footballID].dif_y = 0;
this["football_" + game_level.footballID].angle = 0;
this["football_" + game_level.footballID].xmov = 0;
this["football_" + game_level.footballID].ymov = 0;
}
function collision_interception() {
if (!collided) {
if (this["O" + patternID].hitX2.hitTest(this["ball_" + game_level.footballID]._x, this["ball_" + game_level.footballID]._y, true)) {
throw_in_progress = false;
collided = true;
this["ball_" + game_level.footballID].x_move_complete = true;
this["ball_" + game_level.footballID].y_move_complete = true;
interception.play();
game_level.interceptions = game_level.interceptions + 1;
QB.gotoAndPlay("unload");
field.gotoAndPlay("unload");
score = score - 50;
removeMovieClip(this["ball_" + game_level.footballID]);
}
}
}
function collision_pass_complete() {
if (!collided) {
if (this["O" + patternID].hitO1.hitTest(this["ball_" + game_level.footballID]._x, this["ball_" + game_level.footballID]._y, true) || (this["O" + patternID].hitO2.hitTest(this["ball_" + game_level.footballID]._x, this["ball_" + game_level.footballID]._y, true))) {
throw_in_progress = false;
collided = true;
reaction_count = 0;
this["ball_" + game_level.footballID].x_move_complete = true;
this["ball_" + game_level.footballID].y_move_complete = true;
status_o_reaction = true;
reaction_anim();
this["O" + patternID].O2._visible = false;
O_reaction.gotoAndPlay("start");
completion._y = this["ball_" + game_level.footballID]._y;
completion.play();
game_stats();
user_throws = (game_level.completed + "/") + game_level.throws;
if (game_level.consecutive >= 1) {
completion.bonus = "x" + game_level.consecutive;
bonus = game_level.consecutive;
} else {
bonus = 1;
}
if (active == true) {
completion.points = 100;
} else {
completion.points = 50;
}
completion.total = completion.points * bonus;
score = score + completion.total;
removeMovieClip(this["ball_" + game_level.footballID]);
unload_x_o();
}
if (!collided) {
hype_meter.gotoAndStop("hype_0");
game_level.consecutive = 0;
collision_interception();
}
}
}
function reaction_anim() {
if ((status_o_reaction == true) && (reaction_count != 1)) {
O_reaction._x = this["O" + patternID].O2._x + 320;
O_reaction._y = this["O" + patternID].O2._y + 230;
O_reaction._xscale = this["O" + patternID].O2._xscale * 0.45;
O_reaction._yscale = this["O" + patternID].O2._yscale * 0.45;
reaction_count = 1;
}
}
function crosshair_move() {
crosshair._x = _root._xmouse;
if ((_root._ymouse >= 245) && (_root._ymouse <= 315)) {
crosshair._y = _root._ymouse;
}
}
function QB_aim() {
if ((crosshair._x <= stage_info.limit_1) && (game_level.limit != 1)) {
game_level.limit = 1;
}
if ((crosshair._x > stage_info.limit_1) && (game_level.limit != 2)) {
game_level.limit = 2;
}
if ((crosshair._x > stage_info.limit_2) && (game_level.limit != 3)) {
game_level.limit = 3;
}
if (((game_level.limit < qb_info.limit) && (qb_info.state != "left")) && (throw_in_progress == false)) {
QB.gotoAndPlay("L");
qb_info.state = "left";
}
if (((game_level.limit == qb_info.limit) && (qb_info.state != "center")) && (throw_in_progress == false)) {
QB.gotoAndPlay("setup");
qb_info.state = "center";
}
if (((game_level.limit > qb_info.limit) && (qb_info.state != "right")) && (throw_in_progress == false)) {
QB.gotoAndPlay("R");
qb_info.state = "right";
}
}
function mouse_up() {
game_level.footballID = game_level.footballID + 1;
duplicateMovieClip ("ball_0", "ball_" + game_level.footballID, game_level.footballID * 10);
this["ball_" + game_level.footballID]._visible = false;
if (qb_info.state == "left") {
QB.gotoAndPlay("L_throw");
} else if (qb_info.state == "right") {
QB.gotoAndPlay("R_throw");
} else {
QB.gotoAndPlay("throw");
}
}
function init_game() {
QB._visible = true;
keyTracker = new Object();
Key.addListener(keyTracker);
this.gotoAndPlay("loop");
}
function random_cheer() {
if (cheers_played.length == cheers_total) {
cheers_played.length = 0;
cheers_key = 0;
}
sfx_id = random(cheers_total);
valid_cheer(sfx_id);
}
function valid_cheer(cheer_id) {
_global.valid_cheer = true;
c = 0;
while (c <= cheers_played.length) {
if (cheer_id == cheers_played[c]) {
_global.valid_cheer = false;
}
c++;
}
if (cheer_playing != true) {
vo_completion(cheer_id);
}
}
function vo_completion(id) {
if (_global.valid_cheer == true) {
cheer_repeat = random(10);
if (cheer_repeat >= 5) {
if (cheer_playing != true) {
trace("cheer id -------->>>>>> " + id);
cheers_played[cheers_key] = id;
cheers_key = cheers_key + 1;
cheer_sound = _parent.sound.ss_cheer[id];
cheer_sound.start();
}
vo_playing = true;
cheer_sound.onSoundComplete = function () {
vo_playing = false;
};
}
} else if (_global.valid_cheer == false) {
random_cheer();
}
}
function vo_interception() {
int_repeat = random(10);
if (int_repeat >= 3) {
if (vo_playing != true) {
sfx_id_2 = random(3);
taunt_sound = _parent.sound.ss_taunt[sfx_id_2];
trace("taunt id ---->>>>>> " + sfx_id_2);
}
taunt_sound.start();
vo_playing = true;
taunt_sound.onSoundComplete = function () {
vo_playing = false;
};
}
}
function vo_miss() {
miss_repeat = random(10);
if (miss_repeat >= 3) {
if (vo_playing != true) {
sfx_id_3 = random(2);
miss_sound = _parent.sound.ss_miss[sfx_id_3];
trace("miss id ---->>>>>> " + sfx_id_2);
}
miss_sound.start();
vo_playing = true;
miss_sound.onSoundComplete = function () {
vo_playing = false;
};
}
}
vo_playing = false;
cheers_played = new Array();
cheers_total = 3;
cheers_key = 0;
level_min = _parent.game.level_min;
points_needed = "POINTS NEEDED: " + level_min;
level = " LEVEL" + player.level;
stage_info();
prepare_stage();
game_objects();
qb_info();
fb_info(game_level.footballID);
init_game();
stop();
Instance of Symbol 370 MovieClip "ball_0" in Symbol 457 MovieClip Frame 63
/* no clip actions */
Symbol 457 MovieClip Frame 69
this.onEnterFrame = function () {
key_status();
crosshair_move();
QB_aim();
calculate_football_animation();
reaction_anim();
if (((this["football_" + game_level.footballID].x_move_complete == true) && (this["football_" + game_level.footballID].y_move_complete == true)) && (this["ball_" + game_level.footballID].f_depth == 35)) {
removeMovieClip(this["ball_" + game_level.footballID]);
throw_in_progress = false;
this["ball_" + game_level.footballID].f_depth = 0;
vo_miss();
football_reset();
}
if ((this["ball_" + game_level.footballID].f_depth >= 25) && (this["ball_" + game_level.footballID].f_depth <= 35)) {
throw_in_progress = false;
collision_pass_complete();
}
};
this.onMouseUp = function () {
if (throw_in_progress == false) {
mouse_up();
}
};
Symbol 457 MovieClip Frame 70
gotoAndPlay (69);
Symbol 457 MovieClip Frame 77
_parent.level_complete(score, game_level.throws, game_level.completed, game_level.interceptions, game_level.deep, game_level.medium, game_level.short);
trace("go to stats");
_parent.gotoAndPlay("stats");
Symbol 479 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
trace(game.mode);
if (game.mode == "level_up") {
level_up();
} else {
game_mode("over");
}
}
Symbol 485 MovieClip Frame 1
stop();
Symbol 489 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
save(player.name, player.career_score, player.level, local_date_month, local_date_day, local_date_year);
game_mode("init");
}
Symbol 492 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release) {
sound.button_click.start();
game_mode("level");
}
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 11
stop();
Symbol 504 MovieClip Frame 21
stop();
Symbol 504 MovieClip Frame 31
stop();
Symbol 507 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
career_up();
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
stop();
Symbol 513 MovieClip Frame 3
stop();
Symbol 513 MovieClip Frame 4
stop();
Symbol 519 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
gotoAndStop (273);
}
Symbol 522 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
play_again();
}
Symbol 535 MovieClip Frame 6
gotoAndPlay (1);
Symbol 538 MovieClip Frame 1
_parent.get_high_score_data();
stop();
Symbol 538 MovieClip Frame 2
_parent.post_high_score(name, score, level);
Symbol 538 MovieClip Frame 25
stop();
Symbol 538 MovieClip Frame 50
_parent.play_again();
Symbol 538 MovieClip Frame 75
gotoAndPlay (1);
Symbol 547 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
enter_high_score();
gotoAndPlay (280);
}
Symbol 548 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
gotoAndPlay (264);
}
Symbol 552 Button
on (rollOver) {
sound.button_rollover.start();
}
on (release, keyPress "<Enter>") {
sound.button_click.start();
game_mode(_global.current_mode);
}
Symbol 559 Button
on (release) {
forward();
}
Symbol 560 Button
on (release) {
back();
}
Symbol 562 MovieClip Frame 1
function build_score_output(first, last) {
if (_global.begin <= 1) {
back_button._visible = false;
} else {
back_button._visible = true;
}
if (_global.high_score_rows < (_global.begin + 7)) {
forward_button._visible = false;
} else {
forward_button._visible = true;
}
var i = 1;
while (i <= last) {
if (high_score["score_" + first].rank != undefined) {
duplicateMovieClip ("score_output", "score_output_" + i, i);
this["score_output_" + i]._y = -40 + (20 * i);
this["score_output_" + i].rank = high_score["score_" + first].rank;
this["score_output_" + i].player = high_score["score_" + first].name;
this["score_output_" + i].level = "LEVEL " + high_score["score_" + first].level;
this["score_output_" + i].score = high_score["score_" + first].score;
} else if (high_score["score_" + first].rank == undefined) {
removeMovieClip(this["score_output_" + i]);
}
first = first + 1;
i++;
}
}
function build_score_obj() {
loading = "";
trace(scores.num_rows);
_global.high_score_rows = Number(scores.num_rows);
var i = 1;
while (i <= _global.high_score_rows) {
high_score["score_" + i] = {};
high_score["score_" + i].rank = i;
high_score["score_" + i].name = scores["name" + i];
high_score["score_" + i].level = scores["level" + i];
high_score["score_" + i].score = scores["score" + i];
i++;
}
scores = {};
build_score_output(_global.begin, _global.end);
}
function forward() {
_global.begin = _global.begin + 8;
build_score_output(_global.begin, _global.end);
}
function back() {
_global.begin = _global.begin - 8;
build_score_output(_global.begin, _global.end);
}
back_button._visible = false;
forward_button._visible = false;
loading = "LOADING HIGH SCORES... PLEASE WAIT";
_global.begin = 1;
_global.end = 8;
high_score = {};
scores = new LoadVars();
scores.onLoad = build_score_obj;
scores.load("http://www.l4b3l.com/function_library/get_high_scores_QBC.php");
stop();