Frame 1
play();
Instance of Symbol 70 MovieClip "theinterface" in Frame 1
onClipEvent (load) {
sweepstakes_button._visible = false;
}
Frame 2
theversion = getVersion();
if (theversion.charAt(4) < 6) {
stop();
}
Instance of Symbol 72 MovieClip "loadingbar" in Frame 2
onClipEvent (load) {
oktoproceed = getTimer() + 2000;
}
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() >= _root.getBytesTotal()) && (getTimer() >= oktoproceed)) {
_root.gotoAndPlay("init");
} else {
_root.loadingbar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
}
}
Frame 5
num_questions = 1;
question_1 = "1001~How often do you play boardgames?~Every day~Once a week~Once a month~Every Few Months~Never";
shareObj = SharedObject.getLocal("shareObj");
you_name = shareObj.data.you_name;
you_email = shareObj.data.you_email;
you_surveys = shareObj.data.you_surveys;
stop();
Frame 10
function ClearAllClips() {
var _local1 = _root;
_local1.needClearClips = 0;
_local1.Snd_GameLoop.stop("Snd_GameLoop");
_local1.Snd_MusicLoop.stop("Snd_MusicLoop");
_local1.Snd_MusicLoop.start(0, 999);
i = 0;
while (i <= 20) {
_local1["carnage" + i].removeMovieClip();
i++;
}
_local1.Overlay_Touchdown.removeMovieClip();
_local1.Overlay_Tackleoff.removeMovieClip();
_local1.Overlay_PlayerRoll.removeMovieClip();
_local1.Overlay_EndGame.removeMovieClip();
_local1.Overlay_Status.removeMovieClip();
_local1.Overlay_Lives.removeMovieClip();
_local1.Overlay_Ouch.removeMovieClip();
_local1.Overlay_ComputersTurn.removeMovieClip();
if (_local1.enemy_black_1.getDepth() != 0) {
_local1.enemy_black_1.removeMovieClip();
}
if (_local1.enemy_black_2.getDepth() != 0) {
_local1.enemy_black_2.removeMovieClip();
}
if (_local1.enemy_blue_1.getDepth() != 0) {
_local1.enemy_blue_1.removeMovieClip();
}
if (_local1.enemy_blue_2.getDepth() != 0) {
_local1.enemy_blue_2.removeMovieClip();
}
if (_local1.enemy_green_1.getDepth() != 0) {
_local1.enemy_green_1.removeMovieClip();
}
if (_local1.enemy_green_2.getDepth() != 0) {
_local1.enemy_green_2.removeMovieClip();
}
if (_local1.enemy_red_1.getDepth() != 0) {
_local1.enemy_red_1.removeMovieClip();
}
if (_local1.enemy_red_2.getDepth() != 0) {
_local1.enemy_red_2.removeMovieClip();
}
if (_local1.enemy_red_3.getDepth() != 0) {
_local1.enemy_red_3.removeMovieClip();
}
if (_local1.enemy_yellow_1.getDepth() != 0) {
_local1.enemy_yellow_1.removeMovieClip();
}
if (_local1.enemy_heavy_yellow.getDepth() != 0) {
_local1.enemy_heavy_yellow.removeMovieClip();
}
if (_local1.player_black_1.getDepth() != 0) {
_local1.player_black_1.removeMovieClip();
}
if (_local1.player_black_2.getDepth() != 0) {
_local1.player_black_2.removeMovieClip();
}
if (_local1.player_blue_1.getDepth() != 0) {
_local1.player_blue_1.removeMovieClip();
}
if (_local1.player_blue_2.getDepth() != 0) {
_local1.player_blue_2.removeMovieClip();
}
if (_local1.player_green_1.getDepth() != 0) {
_local1.player_green_1.removeMovieClip();
}
if (_local1.player_green_2.getDepth() != 0) {
_local1.player_green_2.removeMovieClip();
}
if (_local1.player_red_1.getDepth() != 0) {
_local1.player_red_1.removeMovieClip();
}
if (_local1.player_red_2.getDepth() != 0) {
_local1.player_red_2.removeMovieClip();
}
if (_local1.player_red_3.getDepth() != 0) {
_local1.player_red_3.removeMovieClip();
}
if (_local1.player_yellow_1.getDepth() != 0) {
_local1.player_yellow_1.removeMovieClip();
}
if (_local1.player_yellow_heavy.getDepth() != 0) {
_local1.player_yellow_heavy.removeMovieClip();
}
if (_local1.player_highlight_heavy.getDepth() != 0) {
_local1.player_highlight_heavy.removeMovieClip();
}
if (_local1.player_highlight.getDepth() != 0) {
_local1.player_highlight.removeMovieClip();
}
}
function saveMyCookie(themode) {
var _local1 = _root;
if (themode == "save") {
_local1.shareObj.data.you_name = _local1.you_name;
_local1.shareObj.data.you_email = _local1.you_email;
} else {
_local1.shareObj.data.you_name = "";
_local1.shareObj.data.you_email = "";
}
_local1.shareObj.data.flush();
}
function updateSurveyCookie(addthis) {
shareObj = SharedObject.getLocal("shareObj");
tStr = shareObj.data.you_surveys;
if (addthis > 100) {
tStr = (tStr + ",") + addthis;
_root.shareObj.data.you_surveys = tStr;
_root.shareObj.data.flush();
}
return(tStr);
}
function createChallengeString(score, name, email) {
t1 = new String((name + ":") + email);
checksum = Number(score);
i = 0;
while (i < t1.length) {
checksum = checksum + Number(t1.charCodeAt(i));
i++;
}
return((checksum + ":") + t1);
}
function parseChallengeString(string) {
var _local1 = _root;
tArr = string.split(":");
score = tArr[0];
name = tArr[1];
email = tArr[2];
t1 = (("" + tArr[1]) + ":") + tArr[2];
i = 0;
while (i < t1.length) {
score = score - t1.charCodeAt(i);
i++;
}
_local1.them_name = name;
_local1.them_score = score;
_local1.them_email = email;
}
function checkNameField(t_str) {
var _local1 = _root;
var _local2 = t_str;
_local2 = new String(_local2).toLowerCase();
if (_local2.length < 1) {
_local1.oopsMessage = _local1.oopsMessage + "- NAME FIELDS MUST NOT BE LEFT BLANK.\n";
return(0);
}
if (_local2.indexOf(" ") != -1) {
_local1.oopsMessage = _local1.oopsMessage + "- NAME FILED MUST NOT CONTAIN SPACES.\n";
return(0);
}
hasbadword = 0;
i = 0;
while (i < _local1.bad_wordsArr.length) {
if (_local2.indexOf(new String(_local1.bad_wordsArr[i])) != -1) {
hasbadword = 1;
}
i++;
}
if (hasbadword == 1) {
_local1.oopsMessage = _local1.oopsMessage + "- NAME FIELDS CONTAINS INAPPROPRIATE WORD(s).\n";
return(0);
}
return(1);
}
function checkEmailField(t_str) {
var _local1 = t_str;
_local1 = new String(_local1);
if (_local1.length >= 1) {
t1 = _local1.indexOf("@");
t2 = _local1.lastIndexOf(".");
if ((t1 != -1) and (t2 > (t1 + 1))) {
return(1);
}
_root.oopsMessage = _root.oopsMessage + "- EMAIL ADDRESS FIELD HAS IMPROPER FORMATTING.\n";
return(0);
}
_root.oopsMessage = _root.oopsMessage + "- EMAIL ADDRESS FIELD IS REQUIRED.\n";
return(0);
}
function makeHTTPSendable(t_str) {
var _local1 = t_str;
p_str = new String(_local1);
p_arr = p_str.split("&");
p_str = p_arr.join("%26");
p_arr = p_str.split("'");
p_str = p_arr.join("%60");
p_arr = p_str.split("=");
p_str = p_arr.join("%3D");
p_arr = p_str.split("?");
p_str = p_arr.join("%3F");
_local1 = "";
i = 0;
while (i < p_str.length) {
if (p_str.charCodeAt(i) == 13) {
_local1 = _local1 + " ";
} else {
_local1 = _local1 + p_str.charAt(i);
}
i++;
}
return(_local1);
}
function checkBadWords(t_str) {
var _local1 = _root;
var _local2 = t_str;
_local2 = new String(_local2).toLowerCase();
i = 0;
if (i < _local1.bad_wordsArr.length) {
if (_local2.indexOf(new String(_local1.bad_wordsArr[i])) != -1) {
_local1.oopsMessage = _local1.oopsMessage + "- INAPPROPRIATE WORD(s) FOUND -- PLEASE KEEP IT CLEAN!.\n";
return(0);
}
return(1);
}
return(undefined);
}
_root.theinterface.swapDepths(600001);
_root.theinterface.sweepstakes_button._visible = true;
_root.needClearClips = 0;
_root.Challenge_URL = "http://cgi.cnnsi.com/entries/sikids-bb-challenge";
_root.ResultsWIN_URL = "http://cgi.cnnsi.com/entries/sikids-bb-responsewin";
_root.ResultsLOSE_URL = "http://cgi.cnnsi.com/entries/sikids-bb-responselose";
_root.ResultsTIE_URL = "http://cgi.cnnsi.com/entries/sikids-bb-responsetie";
_root.Sweepstakes_URL = "http://cgi.cnnsi.com/entries/sikids-bb-sweeps";
_root.Survey_URL = "http://cgi.cnnsi.com/entries/sikids-bb-survey";
_root.Game_URL = "http://www.sikids.com/sponsors/battleball/index.html";
_root.rematch = 0;
_root.currentframe = "init";
_root.lastframe = "welcome";
_root.framehistory = new Array();
_root.framehistory.push("welcome");
bgloop = new Sound(_root);
Snd_Teletype = new Sound();
Snd_Teletype.attachSound("Snd_Teletype");
Snd_MusicLoop = new Sound();
Snd_MusicLoop.attachSound("Snd_IntroLoop");
Snd_GameLoop = new Sound();
Snd_GameLoop.attachSound("Snd_GameLoop");
Snd_MusicLoop.start(0, 999);
Snd_Tackle_1 = new Sound();
Snd_Tackle_1.attachSound("Snd_Tackle_1");
Snd_Tackle_2 = new Sound();
Snd_Tackle_2.attachSound("Snd_Tackle_2");
Snd_Tackle_3 = new Sound();
Snd_Tackle_3.attachSound("Snd_Tackle_3");
Snd_Tackle_4 = new Sound();
Snd_Tackle_4.attachSound("Snd_Tackle_4");
Snd_Tackle_5 = new Sound();
Snd_Tackle_5.attachSound("Snd_Tackle_5");
Snd_MoveTick = new Sound();
Snd_MoveTick.attachSound("Snd_MoveTick");
_root.playTeletype_Welcome = true;
_root.playTeletype_Players = true;
_root.playTeletype_Make = true;
_root.playTeletype_Accept = true;
_root.playTeletype_Team = true;
_root.playTeletype_Rank = true;
_root.playTeletype_Sweeps = true;
_root.playTeletype_SweepsThanks = true;
if ((_root.you_name.length >= 3) && (_root.you_email.length >= 3)) {
_root.rememberme = 1;
} else {
_root.rememberme = 0;
}
playersArr = new Array("stalwart", "ironjudge", "stealultimatus", "colossor", "brutus", "darkisis");
selectedPlayer = random(playersArr.length);
player_swapper.gotoAndStop(_root.selectedPlayer);
bad_wordsArr = new Array("fuck", "bitch", "shit", "cunt", "nigger", "clit", "pussy", "cock");
if (ID.length > 4) {
temp = parseChallengeString(ID);
if (((_root.them_name.length >= 2) && (_root.them_score >= 0)) && (_root.them_email.length >= 4)) {
loadMovieNum ("STATS_AcceptCount.html", 101);
gotoAndPlay ("accept");
} else {
gotoAndPlay ("welcome");
}
} else {
gotoAndPlay ("welcome");
}
Instance of Symbol 113 MovieClip "oops" in Frame 10
onClipEvent (load) {
_root.oops._visible = false;
_root.oops.gotoAndPlay(3);
}
Frame 15
_root.framehistory.push("welcome");
_root.temp_mouse_x = _root._xmouse;
_root.temp_mouse_y = _root._ymouse;
_root.afterplayframe = "make_com";
stop();
Instance of Symbol 207 MovieClip "timelineDatePanel" in Frame 15
onClipEvent (load) {
var dead_space_width = 300;
var max_speed = 12;
var speed = 0;
var decelerate = 0.5;
var slider_left = 0;
var slider_top = 409;
var scrolldirection = 1;
var slider_width = 512;
var slider_height = 35;
var slider_right = (slider_left + slider_width);
var slider_bottom = (slider_top + slider_height);
hotArea = (slider_width / 2) - (dead_space_width / 2);
temp_x = slider_left + (tile_spacing / 2);
_root.timeline_textPanel.oktofade = false;
_root.currentTimelineFrame = "timeline_intro";
_root.timeline_textPanel.gotoAndPlay("trans_in");
}
onClipEvent (enterFrame) {
if ((_root.temp_mouse_x != _root._xmouse) && (_root.temp_mouse_y != _root._ymouse)) {
if ((((_root._xmouse >= slider_left) && (_root._xmouse <= slider_right)) && (_root._ymouse >= slider_top)) && (_root._ymouse <= slider_bottom)) {
if (_root._xmouse > ((slider_width / 2) + (dead_space_width / 2))) {
distFromEdge = Math.min(hotArea, slider_width - _root._xmouse);
distFromMid = hotArea - distFromEdge;
scrolldirection = -1;
} else {
distFromEdge = Math.min(hotArea, _root._xmouse);
distFromMid = hotArea - distFromEdge;
scrolldirection = 1;
}
speed = (distFromMid / hotArea) * max_speed;
_root.timeline_textPanel.oktofade = false;
} else {
if (speed >= 2) {
speed = speed - decelerate;
} else if (speed <= -2) {
speed = speed + decelerate;
} else {
speed = 0;
}
_root.timeline_textPanel.oktofade = true;
}
tPos = this._x + (speed * scrolldirection);
if (tPos >= 27) {
tPos = 27;
} else if (tPos <= -406) {
tPos = -406;
}
this._x = tPos;
}
}
Instance of Symbol 263 MovieClip in Frame 15
onClipEvent (load) {
this.textFinal = "WELCOME TO BATTLEBALL CHALLENGE!\n PLAY SINGLE PLAYER OR BATTLE A FRIEND.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Welcome) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Welcome = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 20
_root.framehistory.push("players");
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
stop();
Instance of Symbol 263 MovieClip in Frame 20
onClipEvent (load) {
this.textFinal = "CLICK THE PLAYER ICONS BELOW TO LEARN MORE AND SELECT YOUR FAVORITE.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Players) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Players = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 25
_root.framehistory.push("make");
if (_root.rematch == 0) {
_root.them_name = "";
_root.them_email = "";
_root.rematch = 0;
}
stop();
Instance of Symbol 263 MovieClip in Frame 25
onClipEvent (load) {
this.textFinal = "CHALLENGING A FRIEND IS EASY. JUST FILL OUT AND SUBMIT THIS SIMPLE FORM, THEN PLAY YOUR HEART OUT! YOUR FRIEND WILL GET YOUR CHALLENGE VIA EMAIL.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Make) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Make = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Instance of Symbol 359 MovieClip "checkbox_P0" in Frame 25
onClipEvent (load) {
_root.checkbox_P0.gotoAndStop(_root.rememberme + 1);
}
Frame 26
thelink = (_root.Game_URL + "?ID=") + _root.createChallengeString(you_score, you_name, you_email);
THEURL = _root.Challenge_URL;
THEURL = THEURL + ("?FromName=" + _root.you_name);
THEURL = THEURL + ("&Email=" + _root.you_email);
THEURL = THEURL + ("&ToName=" + _root.them_name);
THEURL = THEURL + ("&friend_email=" + _root.them_email);
THEURL = THEURL + ("&Score=" + _root.you_score);
THEURL = THEURL + ("&ChallengeLink=" + thelink);
COMTIMEOUT = getTimer() + 4000;
_root.STATUS = "INIT";
loadMovieNum (THEURL, 99);
loadMovieNum ("STATS_ChallengeCount.html", 102);
Frame 28
if ((_root.STATUS != "SENT") && (getTimer() < COMTIMEOUT)) {
gotoAndPlay(_currentframe - 1);
} else {
oops._visible = false;
}
Frame 45
gotoAndPlay ("welcome");
Frame 50
_root.framehistory.push("accept");
_root.rematch = 1;
stop();
Instance of Symbol 263 MovieClip in Frame 50
onClipEvent (load) {
this.textFinal = ((("YOUR FRIEND " + _root.them_name) + " HAS CHALLENGED YOU TO AN ONLINE BATTLEBALL CHALLENGE WITH A SCORE TO BEAT OF ") + _root.them_score) + "!";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Accept) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Accept = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 51
if (_root.you_score < _root.them_score) {
THEURL = _root.ResultsWIN_URL;
gameStatus = "lose";
} else if (_root.you_score > _root.them_score) {
THEURL = _root.ResultsLOSE_URL;
gameStatus = "win";
} else {
THEURL = _root.ResultsTIE_URL;
gameStatus = "tie";
}
THEURL = THEURL + ("?FromName=" + _root.you_name);
THEURL = THEURL + ("&Email=" + _root.you_email);
THEURL = THEURL + ("&ToName=" + _root.them_name);
THEURL = THEURL + ("&friend_email=" + _root.them_email);
THEURL = THEURL + ("&Score=" + _root.you_score);
THEURL = THEURL + "&ChallengeLink=http://www.sikids.com/sponsors/battleball/index.html";
COMTIMEOUT = getTimer() + 4000;
_root.STATUS = "INIT";
loadMovieNum (THEURL, 99);
Frame 53
if ((_root.STATUS != "SENT") && (getTimer() < COMTIMEOUT)) {
gotoAndPlay(_currentframe - 1);
} else {
oops._visible = false;
gotoAndPlay("accept_" + gameStatus);
}
Frame 55
_root.framehistory.push("accept_win");
stop();
Instance of Symbol 263 MovieClip in Frame 55
onClipEvent (load) {
this.textFinal = "YOU BEAT YOUR FRIEND IN TRUE BATTLEBALL STYLE! NOW KEEP IT GOING AND CHALLENGE ANOTHER FRIEND.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
_root.Snd_Teletype.start(0, 999);
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Instance of Symbol 416 MovieClip in Frame 55
onClipEvent (load) {
questionArr = new Array();
i = 1;
while (i <= _root.num_questions) {
questionArr[i] = _root["question_" + i].split("~");
i++;
}
Used_questionArr = new Array();
Used_questionArr = _root.updateSurveyCookie().split(",");
questionfound = false;
i = 0;
while (i <= questionArr.length) {
tQ = questionArr[i][0];
questionduplicate = false;
ii = 0;
while (ii <= Used_questionArr.length) {
if (Used_questionArr[ii] == tQ) {
questionduplicate = true;
break;
}
ii++;
}
if (!questionduplicate) {
question_ID = questionArr[i][0];
surveyquestion = questionArr[i][1].toUpperCase();
surveyanswer_a = questionArr[i][2].toUpperCase();
surveyanswer_b = questionArr[i][3].toUpperCase();
surveyanswer_c = questionArr[i][4].toUpperCase();
surveyanswer_d = questionArr[i][5].toUpperCase();
surveyanswer_e = questionArr[i][6].toUpperCase();
questionfound = true;
break;
}
i++;
}
if (String(surveyanswer_a).length == 0) {
button_a._visible = false;
}
if (String(surveyanswer_b).length == 0) {
button_b._visible = false;
}
if (String(surveyanswer_c).length == 0) {
button_c._visible = false;
}
if (String(surveyanswer_d).length == 0) {
button_d._visible = false;
}
if (String(surveyanswer_e).length == 0) {
button_e._visible = false;
}
if (!questionfound) {
this.gotoAndPlay("default");
}
}
Frame 56
_root.framehistory.push("accept_lose");
stop();
Instance of Symbol 263 MovieClip in Frame 56
onClipEvent (load) {
this.textFinal = "OUCH! YOU GOT YOUR BUTT KICKED! BUT DON'T LET YOUR FRIEND HAVE THE UPPER HAND. DEMAND A REMATCH NOW!";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
_root.Snd_Teletype.start(0, 999);
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Instance of Symbol 416 MovieClip in Frame 56
onClipEvent (load) {
questionArr = new Array();
i = 1;
while (i <= _root.num_questions) {
questionArr[i] = _root["question_" + i].split("~");
i++;
}
Used_questionArr = new Array();
Used_questionArr = _root.updateSurveyCookie().split(",");
questionfound = false;
i = 0;
while (i <= questionArr.length) {
tQ = questionArr[i][0];
questionduplicate = false;
ii = 0;
while (ii <= Used_questionArr.length) {
if (Used_questionArr[ii] == tQ) {
questionduplicate = true;
break;
}
ii++;
}
if (!questionduplicate) {
question_ID = questionArr[i][0];
surveyquestion = questionArr[i][1].toUpperCase();
surveyanswer_a = questionArr[i][2].toUpperCase();
surveyanswer_b = questionArr[i][3].toUpperCase();
surveyanswer_c = questionArr[i][4].toUpperCase();
surveyanswer_d = questionArr[i][5].toUpperCase();
surveyanswer_e = questionArr[i][6].toUpperCase();
questionfound = true;
break;
}
i++;
}
if (String(surveyanswer_a).length == 0) {
button_a._visible = false;
}
if (String(surveyanswer_b).length == 0) {
button_b._visible = false;
}
if (String(surveyanswer_c).length == 0) {
button_c._visible = false;
}
if (String(surveyanswer_d).length == 0) {
button_d._visible = false;
}
if (String(surveyanswer_e).length == 0) {
button_e._visible = false;
}
if (!questionfound) {
this.gotoAndPlay("default");
}
}
Frame 57
_root.framehistory.push("accept_tie");
stop();
Instance of Symbol 263 MovieClip in Frame 57
onClipEvent (load) {
this.textFinal = "YOU BOTH TIED THE CHALLENGE. BUT YOU'LL FIND NO GLORY IN A TIE SO DEMAND A REMATCH NOW!";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
_root.Snd_Teletype.start(0, 999);
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 65
_root.framehistory.push("end_practice");
stop();
Instance of Symbol 263 MovieClip in Frame 65
onClipEvent (load) {
this.textFinal = "THANKS FOR PLAYING. NOW INVOLVE A FRIEND BY CHALLENGING SOMEONE!";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
_root.Snd_Teletype.start(0, 999);
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 70
_root.framehistory.push("select_team");
stop();
Instance of Symbol 263 MovieClip in Frame 70
onClipEvent (load) {
this.textFinal = "PLEASE CHOOSE THE TEAM THAT YOU WANT TO PLAY ON. CLICK A TEAM BUTTON BELOW TO CONTINUE.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Team) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Team = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 75
_root.framehistory.push("select_rank_iw");
stop();
Instance of Symbol 263 MovieClip in Frame 75
onClipEvent (load) {
this.textFinal = "SELECT YOUR DESIRED RANK ACCORDING TO SPEED VS. POWER TO ESTABLISH YOUR STRATEGY.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Rank) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Rank = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 76
_root.framehistory.push("select_rank_bh");
stop();
Frame 85
_root.framehistory.push("sweepstakes");
loadMovieNum ("STATS_SweepsHitCount.html", 100);
stop();
Instance of Symbol 263 MovieClip in Frame 85
onClipEvent (load) {
this.textFinal = "YES! WE'RE GIVING AWAY 4 TICKETS TO THE BIGGEST FOOTBALL GAME OF THE YEAR IN HOUSTON THIS JANUARY. SIMPLY FILL OUT THIS SWEEPSTAKES ENTRY FORM AND YOU'RE IN THE RUNNING.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_Sweeps) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_Sweeps = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Frame 106
_root.framehistory.push("sweeps_thanks");
loadMovieNum ("STATS_SweepsEntryCount.html", 100);
stop();
Instance of Symbol 263 MovieClip in Frame 106
onClipEvent (load) {
this.textFinal = "THANKS! YOUR ENTRY HAS BEEN RECIEVED.";
this.textBuild = "";
this.textIndex = 0;
_root.Snd_Teletype.stop("Snd_Teletype");
if (_root.playTeletype_SweepsThanks) {
_root.Snd_Teletype.start(0, 999);
_root.playTeletype_SweepsThanks = false;
}
}
onClipEvent (enterFrame) {
if (this.textFinal != this.textBuild) {
this.textBuild = this.textBuild + this.textFinal.substr(this.textIndex, 3);
this.textIndex = this.textIndex + 3;
} else {
_root.Snd_Teletype.stop("Snd_Teletype");
}
}
Instance of Symbol 416 MovieClip in Frame 106
onClipEvent (load) {
questionArr = new Array();
i = 1;
while (i <= _root.num_questions) {
questionArr[i] = _root["question_" + i].split("~");
i++;
}
Used_questionArr = new Array();
Used_questionArr = _root.updateSurveyCookie().split(",");
questionfound = false;
i = 0;
while (i <= questionArr.length) {
tQ = questionArr[i][0];
questionduplicate = false;
ii = 0;
while (ii <= Used_questionArr.length) {
if (Used_questionArr[ii] == tQ) {
questionduplicate = true;
break;
}
ii++;
}
if (!questionduplicate) {
question_ID = questionArr[i][0];
surveyquestion = questionArr[i][1].toUpperCase();
surveyanswer_a = questionArr[i][2].toUpperCase();
surveyanswer_b = questionArr[i][3].toUpperCase();
surveyanswer_c = questionArr[i][4].toUpperCase();
surveyanswer_d = questionArr[i][5].toUpperCase();
surveyanswer_e = questionArr[i][6].toUpperCase();
questionfound = true;
break;
}
i++;
}
if (String(surveyanswer_a).length == 0) {
button_a._visible = false;
}
if (String(surveyanswer_b).length == 0) {
button_b._visible = false;
}
if (String(surveyanswer_c).length == 0) {
button_c._visible = false;
}
if (String(surveyanswer_d).length == 0) {
button_d._visible = false;
}
if (String(surveyanswer_e).length == 0) {
button_e._visible = false;
}
if (!questionfound) {
this.gotoAndPlay("default");
}
}
Frame 130
_root.needClearClips = 1;
_root.Snd_Teletype.stop("Snd_Teletype");
_root.Snd_MusicLoop.stop("Snd_IntroLoop");
_root.Snd_GameLoop.start(0, 999);
_root.Overlay_GameOver.swapDepths(500001);
_root.Overlay_Touchdown.swapDepths(500002);
_root.Overlay_Ouch.swapDepths(500003);
_root.Overlay_Tackleoff.swapDepths(500004);
_root.Overlay_PlayerRoll.swapDepths(500005);
_root.Overlay_EndGame.swapDepths(500007);
_root.Overlay_ComputersTurn.swapDepths(500008);
_root.Overlay_Status.swapDepths(700004);
_root.Overlay_Lives.swapDepths(700006);
_root.Overlay_Lives.gotoAndStop(4);
gamestatus = "play";
loadMovieNum ("STATS_PlayCount.html", 100);
stop();
Instance of Symbol 524 MovieClip "battlefield" in Frame 130
onClipEvent (load) {
function setupComputer() {
var _local1 = _root;
posArray = [];
i = 0;
while (i < _local1.enemyClips.length) {
thisPieceRow = Math.ceil(Math.random() * 6);
thisPieceCol = Math.ceil(Math.random() * 13) + 1;
isPos = false;
j = 0;
while (j < posArray.length) {
if (((posArray[j][1] == thisPieceCol) || ((posArray[j][0] == thisPieceRow) && ((posArray[j][1] + 1) == thisPieceCol))) || ((posArray[j][0] == thisPieceRow) && ((posArray[j][1] - 1) == thisPieceCol))) {
isPos = true;
break;
}
j++;
}
if (!isPos) {
posArray.push([thisPieceRow, thisPieceCol]);
} else {
i--;
}
i++;
}
return(posArray);
}
function calcCorrectX(row, col) {
var _local1 = _root;
var _local2 = row;
correctX = ((_local1.firstColOffset * _local1.boardZoom) + (((_local1.boardSlopeX * _local2) * 0.92) * _local1.boardZoom)) - ((_local1.boardSlopeX * col) * _local1.boardZoom);
if ((_local2 % 2) != 0) {
correctX = correctX + ((_local1.boardSlopeX * _local1.boardZoom) / 2);
}
if (_local2 <= 16) {
numYardLines = Math.max(0, Math.floor((_local2 / 3) - 0.1));
} else {
numYardLines = 6 + Math.floor(((_local2 - 16) / 3) - 0.1);
}
correctX = correctX - ((numYardLines * _local1.yardLineSlopeX) * _local1.boardZoom);
return(Math.floor(correctX));
}
function calcCorrectY(row, col) {
var _local1 = _root;
var _local2 = row;
correctY = ((_local1.firstRowOffset * _local1.boardZoom) - ((_local2 * _local1.boardSlopeY) * _local1.boardZoom)) - ((_local1.boardSlopeY * col) * _local1.boardZoom);
if (_local2 <= 16) {
numYardLines = Math.max(0, Math.floor((_local2 / 3) - 0.1));
} else {
numYardLines = 6 + Math.floor(((_local2 - 16) / 3) - 0.1);
}
if ((_local2 % 2) != 0) {
correctY = correctY + ((_local1.boardSlopeY * _local1.boardZoom) / 2);
}
correctY = correctY + ((numYardLines * _local1.yardLineSlopeY) * _local1.boardZoom);
return(Math.floor(correctY));
}
function movePlayer() {
var _local1 = _root;
if (_local1.player_numMovesLeft == -1) {
} else if ((_local1.player_numMovesLeft == 0) && (_local1.playerHasRolled == 1)) {
_local1.isMoving = false;
_local1.player_highlight._visible = false;
_local1.player_highlight_heavy._visible = false;
_local1.turn = 1;
_local1.player_numMovesLeft = -1;
_local1.numMovesLeft = -1;
_local1.playerHasRolled = 0;
} else if (_local1.isMoving) {
if (doArrowKey_UP) {
doArrowKey_UP = false;
isCarnageCollision = false;
i = 0;
while (i < _local1.carnageSpots.length) {
if ((_local1.carnageSpots[i][0] == _local1.currentMoveRowHighlight) && (_local1.carnageSpots[i][1] == _local1.currentMoveColHighlight)) {
isCarnageCollision = true;
break;
}
if (((_local1.playerColor == "yellow_heavy") && (_local1.carnageSpots[i][0] == _local1.currentMoveRowHighlight)) && (_local1.carnageSpots[i][1] == (_local1.currentMoveColHighlight + 1))) {
isCarnageCollision = true;
break;
}
i++;
}
isBoundaryCollision = false;
if ((_local1.currentMoveRowHighlight % 2) != 0) {
if ((_local1.currentMoveColHighlight <= 0) || (_local1.currentMoveColHighlight >= 17)) {
isBoundaryCollision = true;
}
} else if ((_local1.currentMoveColHighlight <= 0) || (_local1.currentMoveColHighlight >= 16)) {
isBoundaryCollision = true;
}
if ((!isCarnageCollision) && (!isBoundaryCollision)) {
tOffsetCol = _local1.currentMoveColHighlight - _local1.currentColFocus;
tOffsetRow = _local1.currentMoveRowHighlight - _local1.currentRowFocus;
if (tOffsetRow <= -1) {
_local1.you_score = _local1.you_score + 10;
}
_local1.currentColFocus = _local1.currentMoveColHighlight;
_local1.currentRowFocus = _local1.currentMoveRowHighlight;
_local1.player_numMovesLeft--;
_local1.statusdisplay = "MOVES REMAINING: " + _local1.player_numMovesLeft;
if (_local1.currentRowFocus >= 16) {
fieldFocus = (32 - _local1.currentRowFocus) * 3;
} else {
fieldFocus = _local1.currentRowFocus * 3;
}
if (fieldFocus == 48) {
fieldFocus = 50;
}
_local1.Snd_MoveTick.start();
_local1.field_pos = fieldFocus;
_local1.newDepths = true;
_local1.currentMoveRowHighlight = _local1.currentRowFocus + tOffsetRow;
if (_local1.currentMoveRowHighlight != _local1.currentRowFocus) {
if ((_local1.currentRowFocus % 2) != 0) {
additionalOffset = -1;
} else {
additionalOffset = 1;
}
} else {
additionalOffset = 0;
}
_local1.currentMoveColHighlight = (_local1.currentColFocus + tOffsetCol) + additionalOffset;
if (_local1.player_numMovesLeft == 0) {
_local1.player_highlight._visible = false;
_local1.player_highlight_heavy._visible = false;
}
_local1.isCheckTackle = this.checktackle(_local1.currentRowFocus, _local1.currentColFocus, false);
} else {
_local1.statusdisplay = "ILLEGAL MOVE";
}
}
if (doArrowKey_LEFT) {
doArrowKey_LEFT = false;
if ((_local1.currentMoveColHighlight == _local1.currentColFocus) && (_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveRowHighlight--;
_local1.currentMoveColHighlight++;
} else {
_local1.currentMoveColHighlight++;
}
return;
}
if ((_local1.currentMoveColHighlight == (_local1.currentColFocus + 1)) && (_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1))) {
_local1.currentMoveRowHighlight--;
} else if ((_local1.currentMoveRowHighlight == _local1.currentRowFocus) && (_local1.currentMoveColHighlight == (_local1.currentColFocus + 1))) {
_local1.currentMoveRowHighlight--;
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight--;
}
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus + 1))) {
_local1.currentMoveColHighlight--;
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == _local1.currentColFocus)) {
_local1.currentMoveColHighlight--;
if ((_local1.currentRowFocus % 2) == 0) {
_local1.currentMoveRowHighlight++;
}
} else if ((_local1.currentMoveRowHighlight == _local1.currentRowFocus) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) == 0) {
_local1.currentMoveColHighlight++;
}
_local1.currentMoveRowHighlight++;
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight++;
}
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveRowHighlight++;
}
} else if (doArrowKey_RIGHT) {
doArrowKey_RIGHT = false;
if ((_local1.currentMoveColHighlight == _local1.currentColFocus) && (_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight--;
} else {
_local1.currentMoveColHighlight--;
_local1.currentMoveRowHighlight--;
}
} else if ((_local1.currentMoveColHighlight == (_local1.currentColFocus + 1)) && (_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1))) {
_local1.currentMoveColHighlight--;
} else if ((_local1.currentMoveRowHighlight == _local1.currentRowFocus) && (_local1.currentMoveColHighlight == (_local1.currentColFocus + 1))) {
_local1.currentMoveRowHighlight++;
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight--;
}
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus + 1))) {
_local1.currentMoveRowHighlight++;
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == _local1.currentColFocus)) {
_local1.currentMoveColHighlight++;
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveRowHighlight++;
}
} else if ((_local1.currentMoveRowHighlight == _local1.currentRowFocus) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) == 0) {
_local1.currentMoveColHighlight++;
}
_local1.currentMoveRowHighlight--;
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveRowHighlight--;
}
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight++;
}
}
}
} else if (doArrowKey_RIGHT) {
doArrowKey_RIGHT = false;
if ((_local1.currentMoveColHighlight == _local1.currentColFocus) && (_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight--;
} else {
_local1.currentMoveColHighlight--;
_local1.currentMoveRowHighlight--;
}
} else if ((_local1.currentMoveColHighlight == (_local1.currentColFocus + 1)) && (_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1))) {
_local1.currentMoveColHighlight--;
} else if ((_local1.currentMoveRowHighlight == _local1.currentRowFocus) && (_local1.currentMoveColHighlight == (_local1.currentColFocus + 1))) {
_local1.currentMoveRowHighlight++;
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight--;
}
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus + 1))) {
_local1.currentMoveRowHighlight++;
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == _local1.currentColFocus)) {
_local1.currentMoveColHighlight++;
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveRowHighlight++;
}
} else if ((_local1.currentMoveRowHighlight == _local1.currentRowFocus) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) == 0) {
_local1.currentMoveColHighlight++;
}
_local1.currentMoveRowHighlight--;
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus + 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveRowHighlight--;
}
} else if ((_local1.currentMoveRowHighlight == (_local1.currentRowFocus - 1)) && (_local1.currentMoveColHighlight == (_local1.currentColFocus - 1))) {
if ((_local1.currentRowFocus % 2) != 0) {
_local1.currentMoveColHighlight++;
}
}
}
}
}
function moveComputer() {
var _local1 = _root;
if (_local1.numMovesLeft >= 1) {
_local1.Snd_MoveTick.start();
}
if (_local1.numMovesLeft == 0) {
_local1.turn = 0;
_local1.isMoving = false;
_local1.numMovesLeft = -1;
_local1.Overlay_PlayerRoll.gotoAndPlay(2);
_local1.animationPlaying = true;
} else {
dieRange = 0;
if (_local1.numMovesLeft == -1) {
if (_local1.levelNum <= 2) {
_local1.charNum = Math.ceil(Math.random() * (_local1.enemyClips.length - 1));
} else {
minDist = 500;
_local1.charNum = 0;
i = 0;
while (i < _local1.AIPositions.length) {
rowDist = Math.abs(_local1.AIPositions[i][0] - _local1.currentRowFocus);
colDist = Math.abs(_local1.AIPositions[i][1] - _local1.currentColFocus);
switch (_local1.enemyClips[i]._name.substring(6, 9)) {
case "yel" :
case "hea" :
dieRange = 6;
break;
case "hea" :
dieRange = 6;
break;
case "gre" :
dieRange = 12;
break;
case "bla" :
dieRange = 8;
break;
case "blu" :
dieRange = 10;
break;
case "red" :
dieRange = 20;
break;
default :
dieRange = 6;
}
advantageOffset = Math.floor(dieRange / 2);
if ((_local1.levelNum > 2) && (_local1.levelNum <= 5)) {
thisDist = rowDist + colDist;
} else {
thisDist = Math.abs((rowDist + colDist) - advantageOffset);
}
if (thisDist < minDist) {
minDist = thisDist;
_local1.charNum = i;
}
i++;
}
}
switch (_local1.enemyClips[_local1.charNum]._name.substring(6, 9)) {
case "yel" :
case "hea" :
dieRange = 6;
break;
case "hea" :
dieRange = 6;
break;
case "gre" :
dieRange = 12;
break;
case "bla" :
dieRange = 8;
break;
case "blu" :
dieRange = 10;
break;
case "red" :
dieRange = 20;
break;
default :
dieRange = 6;
}
_local1.numMovesLeft = Math.ceil(Math.random() * dieRange);
_local1.statusdisplay = "COMPUTER ROLL: " + _local1.numMovesLeft;
moveTrackerArr = [];
}
moveTrackerArr.push([_local1.AIPositions[_local1.charNum][0], _local1.AIPositions[_local1.charNum][1]]);
if (_local1.currentColFocus < _local1.AIPositions[_local1.charNum][1]) {
offsetCol = -1;
} else if (_local1.currentColFocus > _local1.AIPositions[_local1.charNum][1]) {
offsetCol = 1;
} else if (_local1.currentColFocus == _local1.AIPositions[_local1.charNum][1]) {
offsetCol = 0;
}
if (_local1.currentRowFocus < _local1.AIPositions[_local1.charNum][0]) {
offsetRow = -1;
} else if (_local1.currentRowFocus > _local1.AIPositions[_local1.charNum][0]) {
offsetRow = 1;
} else if (_local1.currentRowFocus == _local1.AIPositions[_local1.charNum][0]) {
offsetRow = 0;
}
if (((_local1.AIPositions[_local1.charNum][0] % 2) == 0) && (offsetRow != 0)) {
offSetCol = Math.max(0, offSetCol);
altCol = 1;
} else if (((_local1.AIPositions[_local1.charNum][0] % 2) != 0) && (offsetRow != 0)) {
offSetCol = Math.min(0, offSetCol);
altCol = -1;
} else {
altCol = 0;
}
possibleMoves = [[offsetRow, offsetCol], [offsetRow, 0], [offsetRow, AltCol], [0, 1], [0, -1], [-1, offsetCol], [-1, 0], [-1, altCol], [1, offsetCol], [1, 0], [1, altCol]];
i = 0;
while (i < possibleMoves.length) {
if ((possibleMoves[i][0] == 0) && (possibleMoves[i][1] == 0)) {
possibleMoves.splice(i, 1);
} else {
ii = i + 1;
while (ii < possibleMoves.length) {
if ((possibleMoves[i][0] == possibleMoves[ii][0]) && (possibleMoves[i][1] == possibleMoves[ii][1])) {
possibleMoves.splice(ii, 1);
}
ii++;
}
}
i++;
}
i = 0;
while (i < possibleMoves.length) {
pMove_x = _local1.AIPositions[_local1.charNum][0] + possibleMoves[i][0];
pMove_y = _local1.AIPositions[_local1.charNum][1] + possibleMoves[i][1];
ii = 0;
while (ii < moveTrackerArr.length) {
if ((pMove_x == moveTrackerArr[ii][0]) && (pMove_y == moveTrackerArr[ii][1])) {
possibleMoves.push([possibleMoves[i][0], possibleMoves[i][1]]);
possibleMoves.splice(i, 1);
i = possibleMoves.length;
break;
}
ii++;
}
i++;
}
ii = 0;
while (ii < moveTrackerArr.length) {
usedMove_x = moveTrackerArr[ii][0];
usedMove_y = moveTrackerArr[ii][1];
i = 0;
while (i < possibleMoves.length) {
pMove_x = _local1.AIPositions[_local1.charNum][0] + possibleMoves[i][0];
pMove_y = _local1.AIPositions[_local1.charNum][1] + possibleMoves[i][1];
if ((pMove_x == usedMove_x) && (pMove_y == usedMove_y)) {
possibleMoves.push([possibleMoves[i][0], possibleMoves[i][1]]);
possibleMoves.splice(i, 1);
i = possibleMoves.length;
}
i++;
}
ii++;
}
debugOutput = "POSSIBLE MOVES = ";
i = 0;
while (i < possibleMoves.length) {
debugOutput = debugOutput + ((_local1.AIPositions[_local1.charNum][0] + possibleMoves[i][0]) + ",");
debugOutput = debugOutput + (_local1.AIPositions[_local1.charNum][1] + possibleMoves[i][1]);
debugOutput = debugOutput + " | ";
i++;
}
isCollided = true;
newSpaceX = 0;
newSpaceY = 0;
j = 0;
j = 0;
while (j < possibleMoves.length) {
testSpaceX = _local1.AIPositions[_local1.charNum][0] + possibleMoves[j][0];
testSpaceY = _local1.AIPositions[_local1.charNum][1] + possibleMoves[j][1];
isEnemyCollision = false;
i = 0;
while (i < _local1.AIPositions.length) {
if (i == _local1.charNum) {
} else {
if ((_local1.AIPositions[i][0] == testSpaceX) && (_local1.AIPositions[i][1] == testSpaceY)) {
isEnemyCollision = true;
}
if ((_local1.enemyClips[i]._name.substring(6, 9) == "hea") && ((_local1.AIPositions[i][0] == testSpaceX) && ((_local1.AIPositions[i][1] + 1) == testSpaceY))) {
isEnemyCollision = true;
}
if (((_local1.enemyClips[_local1.charNum]._name.substring(6, 9) == "hea") && (_local1.AIPositions[i][0] == testSpaceX)) && ((_local1.AIPositions[i][1] + 1) == testSpaceY)) {
isEnemyCollision = true;
}
}
i++;
}
isBoardLimitCollision = false;
if ((testSpaceX < 1) || (testSpaceX > 31)) {
isBoardLimitCollision = true;
} else if ((testSpaceX % 2) != 0) {
if ((testSpaceY < 1) || (testSpaceY > 16)) {
isBoardLimitCollision = true;
}
} else if ((testSpaceY < 1) || (testSpaceY > 15)) {
isBoardLimitCollision = true;
}
isCarnageCollision = false;
i = 0;
while (i < _local1.carnageSpots.length) {
if ((_local1.carnageSpots[i][0] == testSpaceX) && (_local1.carnageSpots[i][1] == testSpaceY)) {
isCarnageCollision = true;
break;
}
if ((_local1.enemyClips[_local1.charNum]._name.substring(6, 9) == "hea") && ((_local1.carnageSpots[i][0] == testSpaceX) && (_local1.carnageSpots[i][1] == (testSpaceY + 1)))) {
isCarnageCollision = true;
break;
}
i++;
}
if (((!isEnemyCollision) && (!isCarnageCollision)) && (!isBoardLimitCollision)) {
isCollided = false;
newSpaceX = testSpaceX;
newSpaceY = testSpaceY;
break;
}
j++;
}
if ((!isCollided) && (_local1.numMovesLeft > 0)) {
_local1.AIPositions[_local1.charNum][0] = newSpaceX;
_local1.AIPositions[_local1.charNum][1] = newSpaceY;
_local1.numMovesLeft--;
_local1.newDepths = true;
_local1.statusdisplay = "COMPUTER MOVES LEFT: " + _local1.numMovesLeft;
} else {
_local1.statusdisplay = "COMPUTER MOVES LEFT: 0";
_local1.numMovesLeft = 0;
}
}
}
function dispComputer() {
var _local1 = _root;
var _local2 = this;
i = 0;
while (i < _local1.enemyClips.length) {
correctX_AI = _local1.correctXPosArr[_local1.AIPositions[i][0]][_local1.AIPositions[i][1]];
correctY_AI = _local1.correctYPosArr[_local1.AIPositions[i][0]][_local1.AIPositions[i][1]];
_local1.enemyClips[i]._x = _local2._x + correctX_AI;
_local1.enemyClips[i]._y = _local2._y + correctY_AI;
i++;
}
}
function dispCarnageSpots() {
var _local1 = _root;
var _local2 = this;
i = 0;
while (i < _local1.carnageSpots.length) {
correctX_carnage = _local1.correctXPosArr[_local1.carnageSpots[i][0]][_local1.carnageSpots[i][1]];
correctY_carnage = _local1.correctYPosArr[_local1.carnageSpots[i][0]][_local1.carnageSpots[i][1]];
thisCarnageSpot = _local1["carnage" + (i + 1)];
thisCarnageSpot._x = _local2._x + correctX_carnage;
thisCarnageSpot._y = _local2._y + correctY_carnage;
if ((thisCarnageSpot._currentframe == 1) && (thisCarnageSpot._x <= 700)) {
thisCarnageSpot.gotoAndPlay(2);
}
i++;
}
}
function updateDepths() {
var _local1 = _root;
depthArray = [];
if (_local1.depthOffset == 1000) {
_local1.depthOffset = 1500;
} else {
_local1.depthOffset = 1000;
}
i = 0;
while (i < _local1.enemyClips.length) {
depthArray.push(_local1.enemyClips[i]);
i++;
}
depthArray.push(_local1.playerClip);
i = 0;
while (i < _local1.carnageSpots.length) {
depthArray.push(_local1["carnage" + (i + 1)]);
i++;
}
i = 0;
while (i < depthArray.length) {
depthArray[i].swapDepths(depthArray[i]._y + i);
i++;
}
}
function checkTackle(playerRow, playerCol, recurse) {
var _local1 = _root;
var _local2 = playerCol;
var _local3 = playerRow;
if (_local1.isTouchdown) {
return(false);
}
if (_local1.doContinue == false) {
return(true);
}
i = 0;
while (i < _local1.AIPositions.length) {
if ((_local1.AIPositions[i][0] % 2) == 0) {
possibleMoves = [[1, 1], [1, 0], [0, 1], [0, -1], [-1, 0], [-1, 1]];
} else {
possibleMoves = [[1, -1], [1, 0], [0, 1], [0, -1], [-1, 0], [-1, -1]];
}
isTackle = false;
j = 0;
while (j < possibleMoves.length) {
if (((_local1.AIPositions[i][0] + possibleMoves[j][0]) == _local3) && ((_local1.AIPositions[i][1] + possibleMoves[j][1]) == _local2)) {
_local1.compChallenger = _local1.enemyClips[i];
isTackle = true;
break;
}
if (_local1.enemyClips[i]._name.substring(6, 9) == "hea") {
if (((_local1.AIPositions[i][0] + possibleMoves[j][0]) == _local3) && (((_local1.AIPositions[i][1] + 1) + possibleMoves[j][1]) == _local2)) {
_local1.compChallenger = _local1.enemyClips[i];
isTackle = true;
break;
}
}
j++;
}
if (isTackle) {
return(isTackle);
}
i++;
}
if ((_local1.playerColor == "yellow_heavy") && (!recurse)) {
return(checkTackle(_local1.currentRowFocus, _local1.currentColFocus + 1, true));
}
return(false);
}
_root.needClearClips = 1;
isDragging = 0;
correctX_highlight = 1000;
correctY_highlight = 1000;
_root.player_highlight._x = 1000;
_root.player_highlight._y = 1000;
_root.player_highlight_heavy._x = 1000;
_root.player_highlight_heavy._y = 1000;
_root.currentMoveRowHighlight = 99;
_root.currentMoveColHighlight = 99;
_root.isCheckTackle = false;
_root.levelNum = 1;
_root.you_level = _root.levelNum;
_root.you_score = 0;
_root.numTackles = 0;
_root.turn = 0;
_root.numMovesLeft = -1;
_root.statusdisplay = "";
_root.playerHasRolled = 0;
_root.stopGame = false;
_root.isTouchdown = false;
doArrowKey_UP = false;
doArrowKey_LEFT = false;
doArrowKey_RIGHT = false;
_root.playerClip._visible = true;
switch (_root.playerColor) {
case "red" :
_root.playerClip = _root.player_red_1;
break;
case "yellow_heavy" :
_root.playerClip = _root.player_yellow_heavy;
break;
case "yellow" :
_root.playerClip = _root.player_yellow_1;
break;
case "blue" :
_root.playerClip = _root.player_blue_1;
break;
case "green" :
_root.playerClip = _root.player_green_1;
break;
case "black" :
_root.playerClip = _root.player_black_1;
break;
default :
_root.playerClip = _root.player_red_1;
}
_root.numRows = 30;
_root.numRowTilesMin = 14;
_root.defaultRowFocus = 16;
_root.defaultColFocus = 8;
_root.currentRowFocus = _root.defaultRowFocus;
_root.currentColFocus = _root.defaultColFocus;
_root.depthOffset = 0;
_root.cameraLocked = true;
_root.boardSlopeX = -30;
_root.boardSlopeY = -15;
_root.yardLineSlopeX = 7.6;
_root.yardLineSlopeY = 0.3;
_root.firstRowOffset = 55;
_root.firstColOffset = 1034;
_root.boardFocusX = 141;
_root.boardFocusY = 376;
_root.boardZoom = 1;
_root.zoomLock = 1;
_root.enemyClips = [_root.enemy_black_1, _root.enemy_black_2, _root.enemy_blue_1, _root.enemy_blue_2, _root.enemy_green_1, _root.enemy_green_2, _root.enemy_red_1, _root.enemy_red_2, _root.enemy_red_3, _root.enemy_yellow_1, _root.enemy_heavy_yellow];
_root.carnageSpots = [];
if (_root.currentRowFocus >= 16) {
fieldFocus = (32 - _root.currentRowFocus) * 3;
} else {
fieldFocus = _root.currentRowFocus * 3;
}
if (fieldFocus == 48) {
fieldFocus = 50;
}
_root.field_pos = fieldFocus;
_root.AIPositions = setupComputer();
_root.newDepths = true;
_root.Overlay_PlayerRoll.gotoAndPlay("buildpanel");
_root.correctXPosArr = new Array();
trow = 0;
while (trow <= 40) {
_root.correctXPosArr[trow] = new Array();
tcol = 0;
while (tcol <= 20) {
_root.correctXPosArr[trow][tcol] = calcCorrectX(trow, tcol);
tcol++;
}
trow++;
}
_root.correctYPosArr = new Array();
trow = 0;
while (trow <= 40) {
_root.correctYPosArr[trow] = new Array();
tcol = 0;
while (tcol <= 20) {
_root.correctYPosArr[trow][tcol] = calcCorrectY(trow, tcol);
tcol++;
}
trow++;
}
dispComputer();
updateDepths();
_root.newDepths = true;
}
onClipEvent (enterFrame) {
correctX_player = _root.correctXPosArr[_root.currentRowFocus][_root.currentColFocus];
correctX_highlight = _root.correctXPosArr[_root.currentMoveRowHighlight][_root.currentMoveColHighlight];
correctY_player = _root.correctYPosArr[_root.currentRowFocus][_root.currentColFocus];
correctY_highlight = _root.correctYPosArr[_root.currentMoveRowHighlight][_root.currentMoveColHighlight];
moveX = 0;
moveY = 0;
if ((_root.numTackles >= 3) && (!_root.stopGame)) {
_root.stopGame = true;
_root.animationPlaying = false;
_root.statusdisplay = "3 TACKLES - GAME OVER!";
_root.Overlay_GameOver.gotoAndPlay(2);
}
if (isDragging == 0) {
if (_root.boardFocusX != _root.playerClip._x) {
differenceX = _root.boardFocusX - _root.playerClip._x;
moveX = Math.floor(differenceX / 10);
}
if (_root.boardFocusY != _root.playerClip._y) {
differenceY = _root.boardFocusY - _root.playerClip._y;
moveY = Math.floor(differenceY / 10);
}
if (_root.cameraLocked) {
this._x = Math.floor(Math.max(512 - this._width, this._x + moveX));
this._y = Math.floor(Math.min(100, this._y + moveY));
}
}
_root.playerClip._x = this._x + correctX_player;
_root.playerClip._y = this._y + correctY_player;
if (_root.playerColor != "yellow_heavy") {
_root.player_highlight._x = this._x + correctX_highlight;
_root.player_highlight._y = this._y + correctY_highlight;
} else {
_root.player_highlight_heavy._x = this._x + correctX_highlight;
_root.player_highlight_heavy._y = this._y + correctY_highlight;
}
if ((_root.currentRowFocus <= 0) && (!_root.JustTouchedDown)) {
_root.statusdisplay = "TOUCHDOWN!";
_root.JustTouchedDown = true;
_root.isTouchdown = true;
_root.levelNum++;
_root.you_score = _root.you_score + 500;
_root.you_level = _root.levelNum;
_root.animationPlaying = true;
_root.Overlay_Touchdown.gotoAndPlay(2);
_root.carnageSpots = [];
i = 0;
while (i < 22) {
_root["carnage" + i]._x = 700;
_root["carnage" + i]._y = 700;
_root["carnage" + i].gotoAndStop(1);
i++;
}
_root.isMoving = false;
_root.turn = 0;
_root.newDepths = true;
_root.player_highlight._visible = false;
_root.player_highlight_heavy._visible = false;
}
if ((!_root.stopGame) && (!_root.animationPlaying)) {
updateDepths();
if (!_root.isCheckTackle) {
if (!isTouchdown) {
if (_root.turn == 0) {
movePlayer();
} else {
_root.isCheckTackle = this.checktackle(_root.currentRowFocus, _root.currentColFocus, false);
if ((getTimer() - _root.keyTimeDelay) > 500) {
if (!_root.isCheckTackle) {
_root.Overlay_ComputersTurn.gotoAndPlay(2);
moveComputer();
_root.keyTimeDelay = getTimer();
}
}
}
}
} else {
_root.isCheckTackle = false;
_root.player_highlight._visible = false;
_root.player_highlight_heavy._visible = false;
_root.zoomLock = 1;
_root.animationPlaying = true;
_root.Overlay_Tackleoff.gotoAndPlay(2);
}
}
dispComputer();
dispCarnageSpots();
if (_root.newDepths) {
updateDepths();
_root.newDepths = false;
}
}
onClipEvent (keyUp) {
Key_UP_eligable = getTimer();
Key_LEFT_eligable = getTimer();
Key_RIGHT_eligable = getTimer();
doArrowKey_UP = false;
doArrowKey_LEFT = false;
doArrowKey_RIGHT = false;
}
on (keyPress "<Space>") {
}
on (keyPress "<Up>") {
doArrowKey_UP = true;
thisKey = null;
Key_UP_eligable = getTimer() + 500;
}
on (keyPress "<Left>") {
doArrowKey_LEFT = true;
thisKey = null;
Key_LEFT_eligable = getTimer() + 500;
}
on (keyPress "<Right>") {
doArrowKey_RIGHT = true;
thisKey = null;
Key_RIGHT_eligable = getTimer() + 500;
}
on (press) {
this.startDrag(false, 512 - this._width, 460 - this._height, 0, 90);
isDragging = 1;
}
on (release) {
stopDrag();
isDragging = 0;
}
Instance of Symbol 583 MovieClip "player_highlight" in Frame 130
onClipEvent (enterFrame) {
}
Instance of Symbol 601 MovieClip "leftScroll" in Frame 130
onClipEvent (mouseUp) {
_root.isLeftDown = false;
}
onClipEvent (enterFrame) {
if (_root.isLeftDown) {
_root.cameraLocked = false;
_root.battlefield._x = _root.battlefield._x + 10;
_root.battlefield._y = _root.battlefield._y - 5;
}
this.onPress = function () {
_root.isLeftDown = true;
};
}
Instance of Symbol 606 MovieClip "rightScroll" in Frame 130
onClipEvent (mouseUp) {
_root.isRightDown = false;
}
onClipEvent (enterFrame) {
if (_root.isRightDown) {
_root.cameraLocked = false;
_root.battlefield._x = _root.battlefield._x - 10;
_root.battlefield._y = _root.battlefield._y + 5;
}
this.onPress = function () {
_root.isRightDown = true;
};
}
Instance of Symbol 609 MovieClip "scrollLock" in Frame 130
onClipEvent (mouseDown) {
_root.cameraLocked = true;
}
Frame 131
_root.needClearClips = 1;
_root.Snd_Teletype.stop("Snd_Teletype");
_root.Snd_MusicLoop.stop("Snd_IntroLoop");
_root.Snd_GameLoop.start(0, 999);
_root.Overlay_GameOver.swapDepths(500001);
_root.Overlay_Touchdown.swapDepths(500002);
_root.Overlay_Ouch.swapDepths(500003);
_root.Overlay_Tackleoff.swapDepths(500004);
_root.Overlay_PlayerRoll.swapDepths(500005);
_root.Overlay_EndGame.swapDepths(500007);
_root.Overlay_ComputersTurn.swapDepths(500008);
_root.Overlay_Status.swapDepths(700004);
_root.Overlay_Lives.swapDepths(700006);
_root.Overlay_Lives.gotoAndStop(4);
gamestatus = "play";
loadMovieNum ("STATS_PlayCount.html", 100);
stop();
Symbol 12 MovieClip [arrow_hit] Frame 30
this.removeMovieClip();
stop();
Symbol 14 MovieClip [arrow] Frame 1
stop();
Symbol 14 MovieClip [arrow] Frame 3
if ((ypos > 0) && (speed > 0)) {
_root.arrowReady = 0;
fall = fall + 0.5;
loft = loft - fall;
ypos = ypos + loft;
zpos = zpos + speed;
zposAdj = Math.floor(zpos);
this._xscale = _root.scalearray[zposAdj];
this._yscale = _root.scalearray[zposAdj];
this._x = xpos;
this._y = _root.y_positionarray[zposAdj] - (ypos * (_root.scalearray[zposAdj] * 0.01));
gotoAndPlay(_currentframe - 1);
} else {
if (_root.pointsThisShot > 0) {
_root.you_score = _root.you_score + _root.pointsThisShot;
}
speed = 0;
loft = 0;
_root.arrowReady = 1;
if (_root.pointsThisShot == 0) {
_root.lives = _root.lives - 1;
_root.ammo.gotoAndPlay(_root.lives + 1);
if (_root.lives <= 0) {
_root.arrowReady = 0;
_root.gotoAndPlay("game_over");
}
}
this._x = -20;
this._y = -20;
this._xscale = 100;
this._yscale = 100;
stop();
}
Symbol 37 Button
on (release) {
this.gotoAndPlay("open");
}
Symbol 38 Button
on (release) {
this.gotoAndPlay("close");
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 15
stop();
Symbol 39 MovieClip Frame 21
gotoAndStop (1);
Symbol 47 Button
on (release) {
_root.bgLoop.setVolume(0);
gotoAndStop (2);
}
Symbol 52 Button
on (release) {
_root.bgLoop.setVolume(100);
gotoAndStop (1);
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 61 Button
on (release) {
if (_root.framehistory[_root.framehistory.length - 1] != "sweepstakes") {
if (_root.needClearClips == 1) {
_root.ClearAllClips();
}
_root.gotoAndPlay("sweepstakes");
}
}
Symbol 69 Button
on (release) {
getURL ("http://www.miltonbradley.com", "_blank");
}
Instance of Symbol 53 MovieClip "bg_sound_buttons" in Symbol 70 MovieClip Frame 1
/* no clip actions */
Symbol 82 Button
on (release) {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English", "_self");
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 4
stop();
Symbol 103 MovieClip Frame 5
stop();
Symbol 103 MovieClip Frame 6
stop();
Symbol 111 Button
on (release) {
_root.oops._visible = false;
}
Symbol 113 MovieClip Frame 5
stop();
Symbol 121 Button
on (release) {
_root.Snd_Teletype.stop("Snd_Teletype");
gotoAndPlay ("make");
}
Symbol 124 Button
on (release) {
practice = true;
afterplayframe = "end_practice";
_root.Snd_Teletype.stop("Snd_Teletype");
gotoAndPlay ("select_team");
}
Symbol 130 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2153";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 135 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2155";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 140 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2158";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 145 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2159";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 150 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2160";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 155 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2161";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 160 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2162";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 165 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2163";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 170 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2165";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 175 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2167";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 180 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2168";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 185 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2169";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 191 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2170";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 196 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2202";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 201 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2209";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 206 Button
on (rollOver) {
_root.currentTimelineFrame = "timeline_2210";
if (_root.timeline_textPanel.oktoTrans == true) {
_root.timeline_textPanel.gotoAndPlay("trans_in");
} else {
_root.timeline_textPanel.gotoAndPlay("full_in");
}
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 260 MovieClip Frame 3
stop();
Symbol 260 MovieClip Frame 4
stop();
Symbol 260 MovieClip Frame 5
stop();
Symbol 260 MovieClip Frame 6
stop();
Symbol 260 MovieClip Frame 7
stop();
Symbol 260 MovieClip Frame 8
stop();
Symbol 260 MovieClip Frame 9
stop();
Symbol 260 MovieClip Frame 10
stop();
Symbol 260 MovieClip Frame 11
stop();
Symbol 260 MovieClip Frame 12
stop();
Symbol 260 MovieClip Frame 13
stop();
Symbol 260 MovieClip Frame 14
stop();
Symbol 260 MovieClip Frame 15
stop();
Symbol 260 MovieClip Frame 16
stop();
Symbol 260 MovieClip Frame 17
stop();
Symbol 261 MovieClip Frame 1
_root.timeline_textPanel.oktofade = false;
_root.currentTimelineFrame = "timeline_intro";
Symbol 261 MovieClip Frame 2
oktoTrans = false;
timeline_textSwapper.gotoAndStop(_root.currentTimelineFrame);
Symbol 261 MovieClip Frame 7
oktoTrans = true;
oktoTransTime = getTimer();
timeline_textSwapper.gotoAndStop(_root.currentTimelineFrame);
Symbol 261 MovieClip Frame 10
if ((!oktofade) || (_root.currentTimelineFrame == "timeline_intro")) {
gotoAndPlay(_currentframe - 1);
}
Symbol 261 MovieClip Frame 31
_root.currentTimelineFrame = "timeline_intro";
gotoAndPlay ("trans_in");
Symbol 271 Button
on (release) {
gotoAndPlay ("players");
}
Symbol 279 Button
on (press) {
scrollstep = 1;
}
on (release) {
scrollstep = 0;
}
Symbol 280 Button
on (press) {
scrollstep = -1;
}
on (release) {
scrollstep = 0;
}
Symbol 299 MovieClip Frame 1
thetext = "ONE OF THE \"NEXT WAVE\" PLAYERS SPORTING THE LATEST IMPROVEMENTS IN CYBERTRONICS, IRON JUDGE HAS PLAYED IN 13 GAMES FOR THE IRON WOLVES AND IS THE LEADING TACKLER FOR HIS TEAM WITH AN ASTOUNDING 4.8 TACKLES A GAME.\n\nNOBODY KNOWS HIS REAL NAME; HE EARNED THE NAME IRON JUDGE IN HIS BATTLEBALL TRY-OUTS WHEN HE PASSED JUDGEMENT ON A PLAYER NAMED GUILTY TOM WITH A BONE-CRUSHING TACKLE THAT SENT OLD TOM OUT FOR MAJOR RECONSTRUCTIVE CYBER-SURGERY. TOM SAID LATER THAT IT FELT LIKE A LOAD OF IRON LANDING ON HIM. IRON JUDGE MERELY GRUNTED THAT TOM HAD BEEN MEASURED AND DEEMED UNWORTHY. AND THE NAME STUCK.\n\nTHE FIRST SECOND-GENERATION PLAYER, IRON JUDGE IS LIVING UP TO THE GIANT FOOTSTEPS OF HIS FATHER, ONE OF THE GREATEST LINEMEN THE LEAGUE HAS EVER SEEN. GROWING UP IN THE HARSH FROZEN NORTHLANDS OF THE ENCLAVE OF THE BEAR PREPARED IRON JUDGE WELL FOR THE INTENSITY OF BATTLEBALL, ESPECIALLY IN THE WINTER GAMES.";
stop();
Instance of Symbol 282 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.thetext.scroll = _parent.thetext.scroll + _parent.scrollstep;
}
Symbol 299 MovieClip Frame 2
thetext = "JUST OUT OF HIS ROOKIE SEASON, STEEL ULTIMATUS IS A FAN FAVORITE. HAILING FROM THE MOON COLONY RHAETICUS, STEEL ULTIMATUS DREAMED OF ONE DAY BECOMING A STAR BATTLEBALL PLAYER, AND HE HAS MADE HIS MARK. WATCHING HIM PLAY, YOU'D NEVER GUESS HE USES SPECIAL 3-CON LEG ADAPTERS AS HE ADJUSTS TO THE EARTH'S GRAVITY.\n\nTHIS YEAR, FANS ARE IN FOR A TREAT. STEEL ULTIMATUS, DURING THE OFF-SEASON, UNDERWENT THE RADICAL NEW TECHNOCARNAL MORDIFICATION SURGERY TO REPLACE HIS HEAD WITH A TOP OF THE LINE JX-3 CHROMIUM ROBOCRANIUM. HIS BRAIN WAS THEN MOVED TO HIS TORSO FOR MAXIMUM PROTECTION AGAINST CONCUSSIONS AND BLACKOUTS. IT'S GOING TO BE HARDER THAN EVER TO TAKE THIS GUY DOWN!";
stop();
Symbol 299 MovieClip Frame 3
thetext = "STALWART THE FORGE IS THE BREAKOUT STAR OF LAST SEASON, AND THE SOURCE OF BATTLEBALL'S BIGGEST SCANDAL.\n\nA ROBOTIC WHIZ KID, STALWART THE FORGE CREATED THE \"ROBOTIC EXOSKELETON\" THAT ALLOWED HIM TO GET DRAFTED INTO THE BIG LEAGUES AT THE AGE OF 12. BY THE TIME THE AUTHORITIES REALIZED HOW OLD HE WAS, IT WAS TOO LATE - STALWART THE FORGE WAS WELL ON HIS WAY TO STARDOM. THE BATTLE BETWEEN THE LEAGUE AND THE IRON WOLVES LOBBYING TO KEEP THEIR STAR PLAYER WENT ON FOR MONTHS. THE DECISION WAS FINALLY PASSED AT THE END OF LAST SEASON TO LOWER THE MINIMUM PLAYER AGE TO 12 - PROVIDED THE PLAYER HAS A ROBOTIC EXOSKELETON. AROUND THE SAME TIME, STALWART THE FORGE PATENTED THE ROBOTIC EXOSKELETON MODEL 2.96.";
stop();
Symbol 299 MovieClip Frame 4
thetext = "RAISED IN THE ISOLATED BACK STREETS OF SAKHA, COLOSSOR THE DIM WAS DISCOVERED BY A BLACK HARTS TALENT SCOUT. THOUGH HE'D NEVER HEARD OF BATTLEBALL (AS LEAST, NOT THAT HE COULD REMEMBER), COLOSSOR THE DIM JUMPED AT THE CHANCE TO PLAY. HE'S STILL NOT SURE WHAT BATTLEBALL IS, AND THOUGH HE HAS THE SMALLEST CONTRACT IN THE LEAGUE, HE'S HAPPY TO GET PAID \"LOTS OF MONEY\" TO HIT PEOPLE. HIS 5.2 TACKLES PER GAME OVER 18 GAMES LEADS THE LEAGUE, AND MORE THAN MAKES UP FOR HIS HAVING TO HAVE THE PLAYS EXPLAINED TO HIM FOUR TIMES PER PLAY.";
stop();
Symbol 299 MovieClip Frame 5
thetext = "BRUTUS MAY HAVE A LONG HISTORY OF PIRACY, THEFT AND OTHER PETTY CRIMES, BUT THE BLACK HARTS WERE MORE THAN HAPPY TO SNAP HIM UP IN LAST YEAR'S TRADE, AND THAT DECISION HAS PAID OFF FOR THE TEAM IN A MAJOR WAY. WITH AN AMAZING ABILITY TO ANTICIPATE PLAYS AND PLACE HIS SELF IN THE MOST STRATEGIC POSITIONS, BRUTUS HAS THE BEST 7-GAME RECORD IN THE LEAGUE.";
stop();
Symbol 299 MovieClip Frame 6
thetext = "DARK ISIS IS ONE PART OF THE \"TERROR TRIO\" - THE THREE FASTEST PLAYERS IN THE LEAGUE - AND ONE OF THE ONLY TWO WOMEN IN BATTLEBALL. THOUGH SHE GREW UP IN EGYPT, DARK ISIS BECAME A CONTENDER DURING THE GREAT COMMUNICATION JAM OF THE 90'S (2190'S THAT IS) RUNNING MESSAGES BETWEEN ALEXANDRIA AND CASABLANCA. THE DESERT HEAT AND HER ABILITY TO ENDURE LONG MARATHON-LIKE RUNS MADE HER A PERFECT CANDIDATE FOR THE BLACK HARTS RUNNING BACK POSITION THAT OPENED WHEN GUILTY TOM LEFT THE GAME. HER PSYTRONIC 2199 LEG IMPLANTS DIDN'T HURT EITHER. SHE STARTS HER SECOND SEASON IN THE LEAGUE HOLDING THE RECORD FOR A 40-YARD SPRINT. A TRULY DEDICATED ATHLETE, DARK ISIS TRAINS YEAR-ROUND WITH HER FIANC\u00C9, FELLOW BLACK HARTS RUNNING BACK AND \"TERROR TRIO\" MEMBER, GLOOM BRINGER.";
stop();
Symbol 300 MovieClip Frame 1
_root.player_textPanel.oktofade = false;
Symbol 300 MovieClip Frame 2
oktoTrans = false;
player_textSwapper.gotoAndStop(_root.selectedPlayer);
Symbol 300 MovieClip Frame 7
oktoTrans = true;
oktoTransTime = getTimer();
player_textSwapper.gotoAndStop(_root.selectedPlayer);
Symbol 300 MovieClip Frame 10
if (!oktofade) {
gotoAndPlay(_currentframe - 1);
}
Symbol 300 MovieClip Frame 31
_root.playerTimelineFrame = "player_intro";
gotoAndPlay ("trans_in");
Symbol 306 Button
on (press) {
_root.currentPlayerFrame = "stalwart";
_root.player_swapper.gotoAndStop(_root.currentPlayerFrame);
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
_root.selectedPlayer = _root.currentPlayerFrame;
_root.player_swapper.gotoAndStop(_root.selectedPlayer);
}
Symbol 310 Button
on (press) {
_root.currentPlayerFrame = "ironjudge";
_root.player_swapper.gotoAndStop(_root.currentPlayerFrame);
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
_root.selectedPlayer = _root.currentPlayerFrame;
_root.player_swapper.gotoAndStop(_root.selectedPlayer);
}
Symbol 314 Button
on (press) {
_root.currentPlayerFrame = "stealultimatus";
_root.player_swapper.gotoAndStop(_root.currentPlayerFrame);
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
_root.selectedPlayer = _root.currentPlayerFrame;
_root.player_swapper.gotoAndStop(_root.selectedPlayer);
}
Symbol 318 Button
on (press) {
_root.currentPlayerFrame = "colossor";
_root.player_swapper.gotoAndStop(_root.currentPlayerFrame);
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
_root.selectedPlayer = _root.currentPlayerFrame;
_root.player_swapper.gotoAndStop(_root.selectedPlayer);
}
Symbol 322 Button
on (press) {
_root.currentPlayerFrame = "brutus";
_root.player_swapper.gotoAndStop(_root.currentPlayerFrame);
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
_root.selectedPlayer = _root.currentPlayerFrame;
_root.player_swapper.gotoAndStop(_root.selectedPlayer);
}
Symbol 326 Button
on (press) {
_root.currentPlayerFrame = "darkisis";
_root.player_swapper.gotoAndStop(_root.currentPlayerFrame);
if (_root.player_textPanel.oktoTrans == true) {
_root.player_textPanel.gotoAndPlay("trans_in");
} else {
_root.player_textPanel.gotoAndPlay("full_in");
}
_root.selectedPlayer = _root.currentPlayerFrame;
_root.player_swapper.gotoAndStop(_root.selectedPlayer);
}
Symbol 328 Button
on (release) {
gotoAndPlay ("welcome");
}
Symbol 336 Button
on (press) {
_root.oopsMessage = "";
formIsok = 0;
tt1 = checkNameField(_root.you_name);
tt2 = checkEmailField(_root.you_email);
tt3 = checkNameField(_root.them_name);
tt4 = checkEmailField(_root.them_email);
tt5 = checkBadWords(_root.you_message);
if (((((tt1 == 1) && (tt2 == 1)) && (tt3 == 1)) && (tt4 == 1)) && (tt5 == 1)) {
formIsok = 1;
} else {
formIsok = 0;
}
}
on (release) {
if (formIsok == 1) {
_root.saveMyCookie();
afterplayframe = "make_com";
gotoAndPlay ("select_team");
} else {
_root.oopsMessage = "THE FOLLOWING ERRORS HAVE OCCURRED.\n\n" + _root.oopsMessage;
_root.oops._visible = true;
_root.oops.gotoAndPlay(1);
}
}
Symbol 353 Button
on (release) {
gotoAndPlay ("welcome");
}
Symbol 356 Button
on (release) {
_root.rememberme = 1;
this.gotoAndStop(2);
}
Symbol 358 Button
on (release) {
_root.rememberme = 0;
this.gotoAndStop(1);
}
Symbol 359 MovieClip Frame 1
_root.rememberme = 0;
stop();
Symbol 359 MovieClip Frame 2
_root.rememberme = 1;
stop();
Symbol 371 Button
on (press) {
_root.oopsMessage = "";
formIsok = 0;
tt1 = checkNameField(_root.you_name);
tt2 = checkEmailField(_root.you_email);
if ((tt1 == 1) && (tt2 == 1)) {
formIsok = 1;
} else {
formIsok = 0;
}
}
on (release) {
if (formIsok == 1) {
afterplayframe = "accept_com";
gotoAndPlay ("select_team");
} else {
_root.oopsMessage = "THE FOLLOWING ERRORS HAVE OCCURRED.\n\n" + _root.oopsMessage;
_root.oops._visible = true;
_root.oops.gotoAndPlay(1);
}
}
Symbol 378 Button
on (release) {
gotoAndPlay ("welcome");
}
Symbol 383 Button
on (release) {
_root.rematch = 1;
gotoAndPlay ("welcome");
}
Symbol 389 Button
on (release) {
_root.updateSurveyCookie(question_ID);
THEURL = ((_root.surveyURL + "?ID=") + question_ID) + "&RESPONSE=A";
loadMovieNum (THEURL, 99);
gotoAndPlay ("thanks");
}
Symbol 394 Button
on (release) {
_root.updateSurveyCookie(question_ID);
THEURL = ((_root.surveyURL + "?ID=") + question_ID) + "&RESPONSE=B";
loadMovieNum (THEURL, 99);
gotoAndPlay ("thanks");
}
Symbol 398 Button
on (release) {
_root.updateSurveyCookie(question_ID);
THEURL = ((_root.surveyURL + "?ID=") + question_ID) + "&RESPONSE=C";
loadMovieNum (THEURL, 99);
gotoAndPlay ("thanks");
}
Symbol 402 Button
on (release) {
_root.updateSurveyCookie(question_ID);
THEURL = ((_root.surveyURL + "?ID=") + question_ID) + "&RESPONSE=D";
loadMovieNum (THEURL, 99);
gotoAndPlay ("thanks");
}
Symbol 406 Button
on (release) {
_root.updateSurveyCookie(question_ID);
THEURL = ((_root.surveyURL + "?ID=") + question_ID) + "&RESPONSE=E";
loadMovieNum (THEURL, 99);
gotoAndPlay ("thanks");
}
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 29
_root.gotoAndPlay("welcome");
Symbol 416 MovieClip Frame 30
stop();
Symbol 425 Button
on (release) {
_root.rematch = 0;
_root.gotoAndPlay("welcome");
}
Symbol 439 Button
on (release) {
_root.you_team = "black_harts";
gotoAndPlay ("select_rank_bh");
}
Symbol 440 Button
on (release) {
_root.you_team = "iron_wolves";
gotoAndPlay ("select_rank_iw");
}
Symbol 441 Button
on (release) {
_root.framehistory.pop();
gotoAndPlay(_root.framehistory.pop());
}
Symbol 445 Button
on (release) {
_root.framehistory.pop();
_root.framehistory.pop();
gotoAndPlay ("select_team");
}
Symbol 452 Button
on (release) {
_root.tackleBonus = 500;
_root.playerColor = "red";
gotoAndPlay ("playgame_iw");
}
Symbol 457 Button
on (release) {
_root.tackleBonus = 200;
_root.playerColor = "black";
gotoAndPlay ("playgame_iw");
}
Symbol 462 Button
on (release) {
_root.tackleBonus = 100;
_root.playerColor = "yellow";
gotoAndPlay ("playgame_iw");
}
Symbol 467 Button
on (release) {
_root.tackleBonus = 400;
_root.playerColor = "green";
gotoAndPlay ("playgame_iw");
}
Symbol 472 Button
on (release) {
_root.tackleBonus = 300;
_root.playerColor = "blue";
gotoAndPlay ("playgame_iw");
}
Symbol 477 Button
on (release) {
_root.tackleBonus = 500;
_root.playerColor = "red";
gotoAndPlay ("playgame_bh");
}
Symbol 481 Button
on (release) {
_root.tackleBonus = 200;
_root.playerColor = "black";
gotoAndPlay ("playgame_bh");
}
Symbol 485 Button
on (release) {
_root.tackleBonus = 100;
_root.playerColor = "yellow";
gotoAndPlay ("playgame_bh");
}
Symbol 489 Button
on (release) {
_root.tackleBonus = 400;
_root.playerColor = "green";
gotoAndPlay ("playgame_bh");
}
Symbol 493 Button
on (release) {
_root.tackleBonus = 300;
_root.playerColor = "blue";
gotoAndPlay ("playgame_bh");
}
Symbol 499 Button
on (release) {
getURL ("http://www.sikids.com/admin/privacy.html", "_blank");
}
Symbol 502 Button
on (release) {
getURL ("sweepstakes_facts.htm", "_blank");
}
Symbol 505 Button
on (release) {
getURL ("sweepstakes_rules.htm", "_blank");
}
Symbol 508 Button
on (press) {
_root.oopsMessage = "";
formIsok = 0;
tt1 = checkNameField(_root.you_name);
tt2 = checkNameField(_root.you_lastinitial);
tt3 = checkEmailField(_root.you_email);
if (((tt1 == 1) && (tt2 == 1)) && (tt3 == 1)) {
formIsok = 1;
} else {
formIsok = 0;
}
}
on (release) {
if (formIsok == 1) {
THEURL = _root.Sweepstakes_URL;
THEURL = THEURL + ("?FirstName=" + _root.you_name);
THEURL = THEURL + ("&LastInitial=" + _root.you_lastinitial);
THEURL = THEURL + ("&Email=" + _root.you_email);
loadMovieNum (THEURL, 99);
gotoAndPlay ("sweeps_send");
} else {
_root.oopsMessage = "THE FOLLOWING ERRORS HAVE OCCURRED.\n\n" + _root.oopsMessage;
_root.oops._visible = true;
_root.oops.gotoAndPlay(1);
}
}
Symbol 521 Button
on (release) {
_root.rematch = 0;
gotoAndPlay ("welcome");
}
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
play();
Symbol 528 MovieClip Frame 61
_root.animationPlaying = false;
_root.ClearAllClips();
_root.gotoAndPlay(_root.afterplayframe);
this.removeMovieClip();
Symbol 542 Button
on (release) {
switch (_root.playerClip._name.substring(7, 10)) {
case "yel" :
dieRange = 6;
break;
case "gre" :
dieRange = 12;
break;
case "bla" :
dieRange = 8;
break;
case "blu" :
dieRange = 10;
break;
case "red" :
dieRange = 20;
break;
default :
dieRange = 6;
}
_root.rollNum = Math.ceil(Math.random() * dieRange);
switch (_root.compChallenger._name.substring(6, 9)) {
case "yel" :
dieRange = 6;
break;
case "hea" :
dieRange = 6;
break;
case "gre" :
dieRange = 12;
break;
case "bla" :
dieRange = 8;
break;
case "blu" :
dieRange = 9;
break;
case "red" :
dieRange = 20;
break;
default :
dieRange = 6;
}
if (dieRange != 9) {
_root.compRoll = Math.ceil(Math.random() * dieRange);
} else {
_root.compRoll = Math.floor(Math.random() * (dieRange + 1));
}
this.play();
}
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
_root.Overlay_ComputersTurn.gotoAndStop(1);
play();
Symbol 560 MovieClip Frame 30
play();
Symbol 560 MovieClip Frame 48
roll_display_text = "?";
roll_display_COMP = "?";
switch (_root.playerClip._name.substring(7, 10)) {
case "yel" :
roll_panel_die.gotoAndStop("yellow");
t_dieRange = 6;
break;
case "gre" :
roll_panel_die.gotoAndStop("green");
t_dieRange = 12;
break;
case "bla" :
roll_panel_die.gotoAndStop("black");
t_dieRange = 8;
break;
case "blu" :
roll_panel_die.gotoAndStop("blue");
t_dieRange = 10;
break;
case "red" :
roll_panel_die.gotoAndStop("red");
t_dieRange = 20;
break;
default :
roll_panel_die.gotoAndStop("yellow");
t_dieRange = 6;
}
switch (_root.compChallenger._name.substring(6, 9)) {
case "yel" :
roll_panel_die_COMP.gotoAndStop("yellow");
COMP_t_dieRange = 6;
break;
case "hea" :
roll_panel_die_COMP.gotoAndStop("yellow_heavy");
COMP_t_dieRange = 6;
break;
case "gre" :
roll_panel_die_COMP.gotoAndStop("green");
COMP_t_dieRange = 12;
break;
case "bla" :
roll_panel_die_COMP.gotoAndStop("black");
COMP_t_dieRange = 8;
break;
case "blu" :
roll_panel_die_COMP.gotoAndStop("blue");
COMP_t_dieRange = 10;
break;
case "red" :
roll_panel_die_COMP.gotoAndStop("red");
COMP_t_dieRange = 20;
break;
default :
roll_panel_die_COMP.gotoAndStop("yellow");
COMP_t_dieRange = 6;
}
_root.compRoll = Math.ceil(Math.random() * dieRange);
_root.compRoll2 = Math.ceil(Math.random() * dieRange);
if (_root.compChallenger._name.substring(6, 9) == "hea") {
_root.compRoll = Math.min(_root.compRoll, _root.compRoll2);
}
stop();
Symbol 560 MovieClip Frame 51
roll_display_text = random(t_dieRange) + 1;
roll_display_COMP = random(COMP_t_dieRange) + 1;
Symbol 560 MovieClip Frame 53
roll_display_text = random(t_dieRange) + 1;
roll_display_COMP = random(COMP_t_dieRange) + 1;
Symbol 560 MovieClip Frame 55
roll_display_text = random(t_dieRange) + 1;
roll_display_COMP = random(COMP_t_dieRange) + 1;
Symbol 560 MovieClip Frame 57
roll_display_text = random(t_dieRange) + 1;
roll_display_COMP = random(COMP_t_dieRange) + 1;
Symbol 560 MovieClip Frame 59
roll_display_text = random(t_dieRange) + 1;
roll_display_COMP = random(COMP_t_dieRange) + 1;
Symbol 560 MovieClip Frame 61
roll_display_text = _root.rollNum;
roll_display_COMP = _root.compRoll;
Symbol 560 MovieClip Frame 93
if (_root.rollNum == _root.compRoll) {
tRnd = random(5) + 1;
_root["Snd_Tackle_" + tRnd].start();
_root.turn = 0;
_root.playerHasRolled = 0;
_root.statusdisplay = "YOU'VE BEEN TACKLED!";
_root.numTackles++;
_root.carnageSpots.push([_root.currentRowFocus, _root.currentColFocus]);
if (_root.numTackles < 3) {
_root.Overlay_Ouch.gotoAndPlay(2);
_root.Overlay_PlayerRoll.gotoAndPlay(2);
_root.currentRowFocus = _root.defaultRowFocus;
_root.currentColFocus = _root.defaultColFocus;
} else {
_root.playerClip._visible = false;
}
_root.Overlay_Lives.gotoAndStop(4 - _root.numTackles);
i = 0;
while (i < _root.enemyClips.length) {
if (_root.enemyClips[i] == _root.compChallenger) {
_root.enemyClips[i]._visible = false;
_root.enemyClips.splice(i, 1);
_root.carnageSpots.push(_root.AIPositions[i]);
if (_root.compChallenger._name.substring(6, 9) == "hea") {
_root.carnageSpots.push([_root.AIPositions[i][0], _root.AIPositions[i][1] + 1]);
}
_root.AIPositions.splice(i, 1);
}
i++;
}
} else if (_root.rollNum > _root.compRoll) {
tRnd = random(5) + 1;
_root["Snd_Tackle_" + tRnd].start();
_root.turn = 0;
_root.playerHasRolled = 0;
_root.statusdisplay = "YOU'VE BEEN TACKLED!";
_root.numTackles++;
_root.carnageSpots.push([_root.currentRowFocus, _root.currentColFocus]);
if (_root.numTackles < 3) {
_root.Overlay_Ouch.gotoAndPlay(2);
_root.Overlay_PlayerRoll.gotoAndPlay(2);
_root.currentRowFocus = _root.defaultRowFocus;
_root.currentColFocus = _root.defaultColFocus;
} else {
_root.playerClip._visible = false;
}
_root.Overlay_Lives.gotoAndStop(4 - _root.numTackles);
} else if (_root.compRoll > _root.rollNum) {
_root.statusdisplay = "NICE TACKLE!";
tRnd = random(5) + 1;
_root["Snd_Tackle_" + tRnd].start();
_root.you_score = _root.you_score + _root.tackleBonus;
if (_root.turn == 0) {
_root.turn = 1;
} else {
_root.turn = 0;
_root.playerHasRolled = 0;
_root.Overlay_PlayerRoll.gotoAndPlay(2);
}
i = 0;
while (i < _root.enemyClips.length) {
if (_root.enemyClips[i] == _root.compChallenger) {
_root.enemyClips[i]._visible = false;
_root.enemyClips.splice(i, 1);
_root.carnageSpots.push(_root.AIPositions[i]);
if (_root.compChallenger._name.substring(6, 9) == "hea") {
_root.carnageSpots.push([_root.AIPositions[i][0], _root.AIPositions[i][1] + 1]);
}
_root.AIPositions.splice(i, 1);
}
i++;
}
}
_root.player_highlight._visible = false;
_root.player_highlight_heavy._visible = false;
_root.isMoving = false;
_root.newDepths = true;
_root.animationPlaying = false;
this.gotoAndStop(1);
Symbol 565 Button
on (release) {
switch (_root.playerClip._name.substring(7, 10)) {
case "yel" :
dieRange = 6;
break;
case "gre" :
dieRange = 12;
break;
case "bla" :
dieRange = 8;
break;
case "blu" :
dieRange = 10;
break;
case "red" :
dieRange = 20;
break;
default :
dieRange = 6;
}
rollNum = Math.ceil(Math.random() * dieRange);
_root.isRolling = true;
_root.isMoving = true;
_root.animationPlaying = true;
this.play();
}
Symbol 568 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 2
_root.playerHasRolled = 0;
play();
Symbol 568 MovieClip Frame 20
switch (_root.playerClip._name.substring(7, 10)) {
case "yel" :
roll_panel_die.gotoAndStop("yellow");
t_dieRange = 6;
break;
case "gre" :
roll_panel_die.gotoAndStop("green");
t_dieRange = 12;
break;
case "bla" :
roll_panel_die.gotoAndStop("black");
t_dieRange = 8;
break;
case "blu" :
roll_panel_die.gotoAndStop("blue");
t_dieRange = 10;
break;
case "red" :
roll_panel_die.gotoAndStop("red");
t_dieRange = 20;
break;
default :
roll_panel_die.gotoAndStop("yellow");
t_dieRange = 6;
}
roll_display_text = "?";
stop();
Symbol 568 MovieClip Frame 23
roll_display_text = random(t_dieRange) + 1;
Symbol 568 MovieClip Frame 25
roll_display_text = random(t_dieRange) + 1;
Symbol 568 MovieClip Frame 27
roll_display_text = random(t_dieRange) + 1;
Symbol 568 MovieClip Frame 29
roll_display_text = random(t_dieRange) + 1;
Symbol 568 MovieClip Frame 31
roll_display_text = random(t_dieRange) + 1;
Symbol 568 MovieClip Frame 33
roll_display_text = rollNum;
Symbol 568 MovieClip Frame 65
_root.currentMoveColHighlight = _root.currentColFocus;
_root.currentMoveRowHighlight = _root.currentRowFocus - 1;
_root.player_numMovesLeft = rollNum;
_root.statusdisplay = "PLAYER ROLL: " + _root.player_numMovesLeft;
_root.player_highlight._visible = true;
_root.player_highlight_heavy._visible = true;
_root.animationPlaying = false;
_root.playerRolled = true;
_root.playerHasRolled = 1;
gotoAndStop (1);
Symbol 572 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 2
stop();
Symbol 572 MovieClip Frame 3
stop();
Symbol 572 MovieClip Frame 4
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 61
_root.animationPlaying = false;
_root.JustTouchedDown = false;
_root.currentRowFocus = _root.defaultRowFocus;
_root.currentColFocus = _root.defaultColFocus;
_root.turn = 0;
_root.playerHasRolled = 0;
_root.enemyClips = [_root.enemy_black_1, _root.enemy_black_2, _root.enemy_blue_1, _root.enemy_blue_2, _root.enemy_green_1, _root.enemy_green_2, _root.enemy_red_1, _root.enemy_red_2, _root.enemy_red_3, _root.enemy_yellow_1, _root.enemy_heavy_yellow];
i = 0;
while (i < _root.enemyClips.length) {
_root.enemyClips[i]._visible = true;
i++;
}
_root.AIPositions = _root.battlefield.setupComputer();
_root.isTouchdown = false;
_root.Overlay_PlayerRoll.gotoAndPlay(2);
this.gotoAndStop(1);
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 20
this.gotoAndStop(1);
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
play();
Symbol 581 MovieClip Frame 21
_root.animationPlaying = false;
this.gotoAndStop(1);
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 30
stop();
Symbol 614 Button
on (release) {
_root.ClearAllClips();
_root.gotoAndPlay(_root.afterplayframe);
}