Frame 1
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
loaded = ("LOADING " + nPercentLoaded) + "%";
loaderbar.movLoader.gotoAndStop(nPercentLoaded);
if (nBytesLoaded >= nBytesTotal) {
var blnFX = 1;
var blnMusic = 0;
var blnIns = 0;
gotoAndPlay ("LOADED");
}
Frame 2
gotoAndPlay ("LOADING");
Frame 3
function fCreateCup(round, p1s, cpu) {
if (round == 1) {
nW2 = 16;
}
if (round == 2) {
nW2 = 8;
}
if (round == 3) {
nW2 = 4;
}
if (round == 4) {
nW2 = 2;
}
if (round == 5) {
nW2 = 1;
}
if (round > 1) {
i = 0;
while (i < nW2) {
arrScores[round - 1][i] = random(5);
arrScores[round - 1][i + nW2] = random(5);
if (arrScores[round - 1][i] == arrScores[round - 1][i + nW2]) {
arrScores[round - 1][i]++;
}
if (arrRound[round - 1][i] == 0) {
arrScores[round - 1][i] = p1s;
arrScores[round - 1][i + nW2] = cpu;
}
if (arrRound[round - 1][i + nW2] == 0) {
arrScores[round - 1][i] = cpu;
arrScores[round - 1][i + nW2] = p1s;
}
i++;
}
}
arrScores[round] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
arrRound[round] = new Array();
if (round == 1) {
arrRound[round] = randomizeArray("arrTeamID");
} else {
tmpArr = new Array();
i = 0;
while (i < nW2) {
if (arrScores[round - 1][i] > arrScores[round - 1][i + nW2]) {
tmpArr[i] = arrRound[round - 1][i];
} else {
tmpArr[i] = arrRound[round - 1][i + nW2];
}
i++;
}
arrRound[round] = randomizeArray("tmpArr");
}
}
function remItem(source, index) {
var _local3 = _root[source].slice(0, index);
var _local4 = _root[source].slice(index + 1, _root[source].length);
_root[source] = _local3.concat(_local4);
}
function randomizeArray(source) {
var _local5 = [];
var _local6 = _root[source].length;
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = Math.floor(Math.random() * _root[source].length);
_local5[_local2] = _root[source][_local3];
remItem(source, _local3);
_local2++;
}
return(_local5);
}
var TEAMNAME = "";
var SHIRT = 1;
var SHORTS = 1;
var SOCKS = 1;
var ROUND = 1;
var TOURNSCORE = 0;
_quality = "high";
var arrTeamStrips = new Array();
i = 0;
while (i < 16) {
arrTeamStrips[i] = new Array();
i++;
}
arrTeamStrips[1][0] = "2";
arrTeamStrips[1][1] = "2";
arrTeamStrips[1][2] = "2";
arrTeamStrips[2][0] = "3";
arrTeamStrips[2][1] = "3";
arrTeamStrips[2][2] = "3";
arrTeamStrips[3][0] = "4";
arrTeamStrips[3][1] = "4";
arrTeamStrips[3][2] = "4";
arrTeamStrips[4][0] = "5";
arrTeamStrips[4][1] = "5";
arrTeamStrips[4][2] = "5";
arrTeamStrips[5][0] = "6";
arrTeamStrips[5][1] = "6";
arrTeamStrips[5][2] = "6";
arrTeamStrips[6][0] = "7";
arrTeamStrips[6][1] = "7";
arrTeamStrips[6][2] = "7";
arrTeamStrips[7][0] = "8";
arrTeamStrips[7][1] = "8";
arrTeamStrips[7][2] = "8";
arrTeamStrips[8][0] = "9";
arrTeamStrips[8][1] = "9";
arrTeamStrips[8][2] = "9";
arrTeamStrips[9][0] = "10";
arrTeamStrips[9][1] = "10";
arrTeamStrips[9][2] = "10";
arrTeamStrips[10][0] = "11";
arrTeamStrips[10][1] = "11";
arrTeamStrips[10][2] = "11";
arrTeamStrips[11][0] = "12";
arrTeamStrips[11][1] = "12";
arrTeamStrips[11][2] = "12";
arrTeamStrips[12][0] = "13";
arrTeamStrips[12][1] = "13";
arrTeamStrips[12][2] = "13";
arrTeamStrips[13][0] = "14";
arrTeamStrips[13][1] = "14";
arrTeamStrips[13][2] = "14";
arrTeamStrips[14][0] = "15";
arrTeamStrips[14][1] = "15";
arrTeamStrips[14][2] = "15";
arrTeamStrips[15][0] = "16";
arrTeamStrips[15][1] = "16";
arrTeamStrips[15][2] = "16";
var arrColors = new Array();
arrColors[0] = "0x000000";
arrColors[1] = "0xD70000";
arrColors[2] = "0x585768";
arrColors[3] = "0x2972CA";
arrColors[4] = "0xFFFFFF";
arrColors[5] = "0x159C12";
arrColors[6] = "0x666666";
arrColors[7] = "0x000000";
arrColors[8] = "0xFF8000";
arrColors[9] = "0x800040";
arrColors[10] = "0x000080";
arrColors[11] = "0x004000";
arrColors[12] = "0x8080C0";
arrColors[13] = "0x804040";
arrColors[14] = "0xFFFF00";
arrColors[15] = "0x000040";
arrColors[16] = "0x9ADFE4";
var arrTeams = new Array();
arrTeams[0] = "USER";
arrTeams[1] = "MUMCHESTER UTD";
arrTeams[2] = "OXBRIDGE";
arrTeams[3] = "GOONERS";
arrTeams[4] = "HATS ON VILLA";
arrTeams[5] = "BHUM CITY";
arrTeams[6] = "LONDONPOOL FC";
arrTeams[7] = "OLDCASTLE UTD";
arrTeams[8] = "FALHUM";
arrTeams[9] = "SOUTHUMP TOWN";
arrTeams[10] = "WOLTON";
arrTeams[11] = "TOTSPUR TOWN";
arrTeams[12] = "WETFORD";
arrTeams[13] = "LEFTSBOROUGH";
arrTeams[14] = "AVERTON";
arrTeams[15] = "MUMCHESTER CITY";
var arrTeamID = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
var arrRound = new Array();
var arrScores = new Array();
fCreateCup(1, 0, 0);
Frame 4
stop();
Frame 5
stop();
Instance of Symbol 84 MovieClip "comHighscores" in Frame 5
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.TOURNSCORE";
gamename = "cokefootball";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 6
stop();
Instance of Symbol 110 MovieClip in Frame 6
/* no clip actions */
Instance of Symbol 114 MovieClip "movTeamName" in Frame 6
onClipEvent (load) {
if (_root.TEAMNAME != "") {
txtTeam = _root.TEAMNAME;
gotoAndStop (2);
}
}
Frame 7
var SHOWINGROUND = 1;
stop();
Instance of Symbol 176 MovieClip "movCup" in Frame 7
onClipEvent (load) {
function FillGrid() {
j = 1;
while (j < 5) {
if (j == 1) {
nW = 8;
}
if (j == 2) {
nW = 4;
}
if (j == 3) {
nW = 2;
}
if (j == 4) {
nW = 1;
}
i = 0;
while (i < nW) {
Set(((("anim.R" + j) + "H") + String(i + 1)) + ".text", _root.arrTeams[_root.arrRound[j][i]]);
Set(((("anim.R" + j) + "A") + String(i + 1)) + ".text", _root.arrTeams[_root.arrRound[j][i + nW]]);
if (_root.arrTeams[_root.arrRound[j][i]] == "USER") {
Set(((("anim.R" + j) + "H") + String(i + 1)) + ".textColor", 16750848) /* 0xFF9900 */;
Set(((("anim.R" + j) + "H") + String(i + 1)) + ".text", _root.TEAMNAME);
_root.OPPOID = _root.arrRound[j][i + nW];
}
if (_root.arrTeams[_root.arrRound[j][i + nW]] == "USER") {
Set(((("anim.R" + j) + "A") + String(i + 1)) + ".textColor", 16750848) /* 0xFF9900 */;
Set(((("anim.R" + j) + "A") + String(i + 1)) + ".text", _root.TEAMNAME);
_root.OPPOID = _root.arrRound[j][i];
}
Set(((("anim.R" + j) + "S") + String(i + 1)) + ".text", (_root.arrScores[j][i] + "-") + _root.arrScores[j][i + nW]);
i++;
}
j++;
}
}
var nC = 0;
var REWIND = 0;
FillGrid();
}
onClipEvent (enterFrame) {
if (REWIND == 1) {
nC++;
if (nC < 11) {
prevFrame();
} else {
nC = 0;
REWIND = 0;
}
}
}
Frame 9
var nP1Gender = 1;
_root.TEAMNAME = "PLAYER ONE";
_root.TEAMNAME2 = "PLAYER TWO";
_root.OPPOID = 2;
var nPlayers = 1;
play();
Frame 10
stop();
Frame 11
if (blnMusic == 1) {
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(4);
}
if (blnFX == 1) {
loadMovieNum ("crowd3.swf", 3);
loadMovieNum ("crowd2.swf", 2);
}
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
function fSetColors() {
trace((("setcolor-" + nPlayers) + "---") + movGame.blnP1GoingUp);
if (nPlayers == 1) {
if (movGame.blnP1GoingUp == 1) {
P1P1c = new Color(movGame.movP1P1.shirt);
P1P1c.setRGB(_root.arrColors[_root.SHIRT]);
P1P2c = new Color(movGame.movP1P2.shirt);
P1P2c.setRGB(_root.arrColors[_root.SHIRT]);
P1P3c = new Color(movGame.movP1P3.shirt);
P1P3c.setRGB(_root.arrColors[_root.SHIRT]);
P1P4c = new Color(movGame.movP1P4.shirt);
P1P4c.setRGB(_root.arrColors[_root.SHIRT]);
P1P1c2 = new Color(movGame.movP1P1.shorts);
P1P1c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P2c2 = new Color(movGame.movP1P2.shorts);
P1P2c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P3c2 = new Color(movGame.movP1P3.shorts);
P1P3c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P4c2 = new Color(movGame.movP1P4.shorts);
P1P4c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P1c3 = new Color(movGame.movP1P1.socks);
P1P1c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P2c3 = new Color(movGame.movP1P2.socks);
P1P2c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P3c3 = new Color(movGame.movP1P3.socks);
P1P3c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P4c3 = new Color(movGame.movP1P4.socks);
P1P4c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P1c = new Color(movGame.movP2P1.shirt);
P2P1c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P2P2c = new Color(movGame.movP2P2.shirt);
P2P2c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P2P3c = new Color(movGame.movP2P3.shirt);
P2P3c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P2P4c = new Color(movGame.movP2P4.shirt);
P2P4c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P2P1c2 = new Color(movGame.movP2P1.shorts);
P2P1c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P2P2c2 = new Color(movGame.movP2P2.shorts);
P2P2c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P2P3c2 = new Color(movGame.movP2P3.shorts);
P2P3c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P2P4c2 = new Color(movGame.movP2P4.shorts);
P2P4c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P2P1c3 = new Color(movGame.movP2P1.socks);
P2P1c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
P2P2c3 = new Color(movGame.movP2P2.socks);
P2P2c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
P2P3c3 = new Color(movGame.movP2P3.socks);
P2P3c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
P2P4c3 = new Color(movGame.movP2P4.socks);
P2P4c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
} else {
P2P1c = new Color(movGame.movP2P1.shirt);
P2P1c.setRGB(_root.arrColors[_root.SHIRT]);
P2P2c = new Color(movGame.movP2P2.shirt);
P2P2c.setRGB(_root.arrColors[_root.SHIRT]);
P2P3c = new Color(movGame.movP2P3.shirt);
P2P3c.setRGB(_root.arrColors[_root.SHIRT]);
P2P4c = new Color(movGame.movP2P4.shirt);
P2P4c.setRGB(_root.arrColors[_root.SHIRT]);
P2P1c2 = new Color(movGame.movP2P1.shorts);
P2P1c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P2c2 = new Color(movGame.movP2P2.shorts);
P2P2c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P3c2 = new Color(movGame.movP2P3.shorts);
P2P3c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P4c2 = new Color(movGame.movP2P4.shorts);
P2P4c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P1c3 = new Color(movGame.movP2P1.socks);
P2P1c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P2c3 = new Color(movGame.movP2P2.socks);
P2P2c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P3c3 = new Color(movGame.movP2P3.socks);
P2P3c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P4c3 = new Color(movGame.movP2P4.socks);
P2P4c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P1c = new Color(movGame.movP1P1.shirt);
P1P1c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P1P2c = new Color(movGame.movP1P2.shirt);
P1P2c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P1P3c = new Color(movGame.movP1P3.shirt);
P1P3c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P1P4c = new Color(movGame.movP1P4.shirt);
P1P4c.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][0]]);
P1P1c2 = new Color(movGame.movP1P1.shorts);
P1P1c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P1P2c2 = new Color(movGame.movP1P2.shorts);
P1P2c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P1P3c2 = new Color(movGame.movP1P3.shorts);
P1P3c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P1P4c2 = new Color(movGame.movP1P4.shorts);
P1P4c2.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][1]]);
P1P1c3 = new Color(movGame.movP1P1.socks);
P1P1c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
P1P2c3 = new Color(movGame.movP1P2.socks);
P1P2c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
P1P3c3 = new Color(movGame.movP1P3.socks);
P1P3c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
P1P4c3 = new Color(movGame.movP1P4.socks);
P1P4c3.setRGB(_root.arrColors[_root.arrTeamStrips[_root.OPPOID][2]]);
}
} else if (movGame.blnP1GoingUp == 1) {
P1P1c = new Color(movGame.movP1P1.shirt);
P1P1c.setRGB(_root.arrColors[_root.SHIRT]);
P1P2c = new Color(movGame.movP1P2.shirt);
P1P2c.setRGB(_root.arrColors[_root.SHIRT]);
P1P3c = new Color(movGame.movP1P3.shirt);
P1P3c.setRGB(_root.arrColors[_root.SHIRT]);
P1P4c = new Color(movGame.movP1P4.shirt);
P1P4c.setRGB(_root.arrColors[_root.SHIRT]);
P1P1c2 = new Color(movGame.movP1P1.shorts);
P1P1c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P2c2 = new Color(movGame.movP1P2.shorts);
P1P2c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P3c2 = new Color(movGame.movP1P3.shorts);
P1P3c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P4c2 = new Color(movGame.movP1P4.shorts);
P1P4c2.setRGB(_root.arrColors[_root.SHORTS]);
P1P1c3 = new Color(movGame.movP1P1.socks);
P1P1c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P2c3 = new Color(movGame.movP1P2.socks);
P1P2c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P3c3 = new Color(movGame.movP1P3.socks);
P1P3c3.setRGB(_root.arrColors[_root.SOCKS]);
P1P4c3 = new Color(movGame.movP1P4.socks);
P1P4c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P1c = new Color(movGame.movP2P1.shirt);
P2P1c.setRGB(_root.arrColors[_root.SHIRT2]);
P2P2c = new Color(movGame.movP2P2.shirt);
P2P2c.setRGB(_root.arrColors[_root.SHIRT2]);
P2P3c = new Color(movGame.movP2P3.shirt);
P2P3c.setRGB(_root.arrColors[_root.SHIRT2]);
P2P4c = new Color(movGame.movP2P4.shirt);
P2P4c.setRGB(_root.arrColors[_root.SHIRT2]);
P2P1c2 = new Color(movGame.movP2P1.shorts);
P2P1c2.setRGB(_root.arrColors[_root.SHORTS2]);
P2P2c2 = new Color(movGame.movP2P2.shorts);
P2P2c2.setRGB(_root.arrColors[_root.SHORTS2]);
P2P3c2 = new Color(movGame.movP2P3.shorts);
P2P3c2.setRGB(_root.arrColors[_root.SHORTS2]);
P2P4c2 = new Color(movGame.movP2P4.shorts);
P2P4c2.setRGB(_root.arrColors[_root.SHORTS2]);
P2P1c3 = new Color(movGame.movP2P1.socks);
P2P1c3.setRGB(_root.arrColors[_root.SOCKS2]);
P2P2c3 = new Color(movGame.movP2P2.socks);
P2P2c3.setRGB(_root.arrColors[_root.SOCKS2]);
P2P3c3 = new Color(movGame.movP2P3.socks);
P2P3c3.setRGB(_root.arrColors[_root.SOCKS2]);
P2P4c3 = new Color(movGame.movP2P4.socks);
P2P4c3.setRGB(_root.arrColors[_root.SOCKS2]);
} else {
P1P1c = new Color(movGame.movP1P1.shirt);
P1P1c.setRGB(_root.arrColors[_root.SHIRT2]);
P1P2c = new Color(movGame.movP1P2.shirt);
P1P2c.setRGB(_root.arrColors[_root.SHIRT2]);
P1P3c = new Color(movGame.movP1P3.shirt);
P1P3c.setRGB(_root.arrColors[_root.SHIRT2]);
P1P4c = new Color(movGame.movP1P4.shirt);
P1P4c.setRGB(_root.arrColors[_root.SHIRT2]);
P1P1c2 = new Color(movGame.movP1P1.shorts);
P1P1c2.setRGB(_root.arrColors[_root.SHORTS2]);
P1P2c2 = new Color(movGame.movP1P2.shorts);
P1P2c2.setRGB(_root.arrColors[_root.SHORTS2]);
P1P3c2 = new Color(movGame.movP1P3.shorts);
P1P3c2.setRGB(_root.arrColors[_root.SHORTS2]);
P1P4c2 = new Color(movGame.movP1P4.shorts);
P1P4c2.setRGB(_root.arrColors[_root.SHORTS2]);
P1P1c3 = new Color(movGame.movP1P1.socks);
P1P1c3.setRGB(_root.arrColors[_root.SOCKS2]);
P1P2c3 = new Color(movGame.movP1P2.socks);
P1P2c3.setRGB(_root.arrColors[_root.SOCKS2]);
P1P3c3 = new Color(movGame.movP1P3.socks);
P1P3c3.setRGB(_root.arrColors[_root.SOCKS2]);
P1P4c3 = new Color(movGame.movP1P4.socks);
P1P4c3.setRGB(_root.arrColors[_root.SOCKS2]);
P2P1c = new Color(movGame.movP2P1.shirt);
P2P1c.setRGB(_root.arrColors[_root.SHIRT]);
P2P2c = new Color(movGame.movP2P2.shirt);
P2P2c.setRGB(_root.arrColors[_root.SHIRT]);
P2P3c = new Color(movGame.movP2P3.shirt);
P2P3c.setRGB(_root.arrColors[_root.SHIRT]);
P2P4c = new Color(movGame.movP2P4.shirt);
P2P4c.setRGB(_root.arrColors[_root.SHIRT]);
P2P1c2 = new Color(movGame.movP2P1.shorts);
P2P1c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P2c2 = new Color(movGame.movP2P2.shorts);
P2P2c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P3c2 = new Color(movGame.movP2P3.shorts);
P2P3c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P4c2 = new Color(movGame.movP2P4.shorts);
P2P4c2.setRGB(_root.arrColors[_root.SHORTS]);
P2P1c3 = new Color(movGame.movP2P1.socks);
P2P1c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P2c3 = new Color(movGame.movP2P2.socks);
P2P2c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P3c3 = new Color(movGame.movP2P3.socks);
P2P3c3.setRGB(_root.arrColors[_root.SOCKS]);
P2P4c3 = new Color(movGame.movP2P4.socks);
P2P4c3.setRGB(_root.arrColors[_root.SOCKS]);
}
}
var nP1PlayDir = 1;
var nKickingOff = 1;
var nP1Score = 0;
var nP2Score = 0;
var nTotalMins = 1;
var THISGAMESCORE = 0;
var GOLDENGOAL = 0;
var nEndo = 0;
if (blnMusic == 1) {
blnMusic = -1;
} else {
blnMusic = 0;
}
if (nLevel == 1) {
var arrSpeeds = new Array(8.5, 9, 4, 4);
var nGoalieMinSpd = 3;
var nGoalieMaxSpd = 12;
} else if (nLevel == 2) {
var arrSpeeds = new Array(8.5, 9, 7, 7);
var nGoalieMinSpd = 7;
var nGoalieMaxSpd = 25;
} else if (nLevel == 3) {
var arrSpeeds = new Array(8.5, 9, 10, 9);
var nGoalieMinSpd = 9;
var nGoalieMaxSpd = 30;
}
var arrP1Boxes = new Array();
var arrP2Boxes = new Array();
arrP1Boxes[1] = new Array(-620, -620, 80, 100);
arrP1Boxes[2] = new Array(-620, -100, 80, 620);
arrP1Boxes[3] = new Array(0, -620, 620, 100);
arrP1Boxes[4] = new Array(0, -100, 620, 620);
arrP1Boxes[5] = new Array(350, -200, 620, 200);
arrP2Boxes[1] = new Array(-80, -620, 620, 100);
arrP2Boxes[2] = new Array(-80, 100, 620, 620);
arrP2Boxes[3] = new Array(-620, -620, -100, 100);
arrP2Boxes[4] = new Array(-620, -100, -100, 620);
arrP2Boxes[5] = new Array(350, -200, 480, 200);
Frame 15
if (blnFX == 1) {
_level2.sndCrowd1.play();
loadMovieNum ("crowd1.swf", 1);
}
movGame.inPlay = -1;
_quality = "low";
Instance of Symbol 568 MovieClip "movGame" in Frame 15
onClipEvent (load) {
function fChangeControl(pid, teamid) {
if (teamid == 1) {
if (eval ("movP1P" + pid).inControl == 0) {
if (eval ("movP1P" + pid).isPressed[0] == 0) {
eval ("movP1P" + pid).up = 0;
}
if (eval ("movP1P" + pid).isPressed[1] == 0) {
eval ("movP1P" + pid).down = 0;
}
if (eval ("movP1P" + pid).isPressed[2] == 0) {
eval ("movP1P" + pid).left = 0;
}
if (eval ("movP1P" + pid).isPressed[3] == 0) {
eval ("movP1P" + pid).right = 0;
}
i = 1;
while (i <= nPlayers) {
if (i != pid) {
eval ("movP1P" + i).inControl = 0;
eval ("movP1P" + i).up = 0;
eval ("movP1P" + i).down = 0;
eval ("movP1P" + i).left = 0;
eval ("movP1P" + i).right = 0;
eval ("movP1P" + i).blnDribble = 0;
}
i++;
}
}
eval ("movP1P" + pid).inControl = 1;
} else {
if (eval ("movP2P" + pid).inControl == 0) {
i = 1;
while (i <= nPlayers) {
if (i != pid) {
eval ("movP2P" + i).inControl = 0;
eval ("movP2P" + i).up = 0;
eval ("movP2P" + i).down = 0;
eval ("movP2P" + i).left = 0;
eval ("movP2P" + i).right = 0;
eval ("movP2P" + i).blnDribble = 0;
}
i++;
}
}
eval ("movP2P" + pid).inControl = 1;
}
}
function fKickBall(dir, pow, team, x, y, pid, shottype) {
_root.movP1Bar._alpha = 0;
_root.movP2Bar._alpha = 0;
_root.movP1Bar._xscale = 1;
_root.movP2Bar._xscale = 1;
if (pow <= 25) {
_root.sndKickQuiet.play();
} else {
_root.sndKick.play();
}
nBallDir = dir;
if (((((pid != 5) && (team == 1)) && (blnP1GoingUp == 1)) && (((dir == 7) || (dir == 1)) || (dir == 2))) && (y < -630)) {
pow = 5;
}
if (((((pid != 5) && (team == 1)) && (blnP1GoingUp == 2)) && (((dir == 4) || (dir == 5)) || (dir == 6))) && (y > 630)) {
pow = 5;
}
if (((((pid != 5) && (team == 2)) && (blnP1GoingUp == 2)) && (((dir == 7) || (dir == 1)) || (dir == 2))) && (y < -630)) {
pow = 5;
}
if (((((pid != 5) && (team == 2)) && (blnP1GoingUp == 1)) && (((dir == 4) || (dir == 5)) || (dir == 6))) && (y > 630)) {
pow = 5;
}
switch (dir) {
case 1 :
nAng = 270;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x > (x - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._x < (x + (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= y)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = (eval ((("movP" + team) + "P") + i)._y - y) - 100;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 2 :
nAng = 315;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x > x)) && (eval ((("movP" + team) + "P") + i)._x < (x + (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= y)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = (eval ((("movP" + team) + "P") + i)._y - y) - 100;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 3 :
nAng = 0;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x >= x)) && (eval ((("movP" + team) + "P") + i)._y > (y - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y < (y + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 4 :
nAng = 45;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x > x)) && (eval ((("movP" + team) + "P") + i)._y >= y)) && (eval ((("movP" + team) + "P") + i)._y < (y + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 5 :
nAng = 90;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._y >= y)) && (eval ((("movP" + team) + "P") + i)._x >= (x - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._x < (x + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 6 :
nAng = 135;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._y >= y)) && (eval ((("movP" + team) + "P") + i)._x >= (x - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._x < x)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 7 :
nAng = 180;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x <= x)) && (eval ((("movP" + team) + "P") + i)._y >= (y - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= (y + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 8 :
nAng = 225;
if (shottype != 1) {
break;
}
i = 1;
for(;;){
if (i > nPlayers) {
break;
}
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x <= x)) && (eval ((("movP" + team) + "P") + i)._y >= (y - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= y)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
};
}
if ((nAng >= 0) && (nAng < 90)) {
adj = Math.cos((Math.PI/180) * nAng) * pow;
opp = Math.tan((Math.PI/180) * nAng) * adj;
movBall.nXSpd = adj;
movBall.nYSpd = opp;
} else if ((nAng >= 90) && (nAng < 180)) {
nAng = nAng - 90;
adj = -(Math.cos((Math.PI/180) * nAng) * pow);
opp = -(Math.tan((Math.PI/180) * nAng) * adj);
movBall.nXSpd = -opp;
movBall.nYSpd = -adj;
} else if ((nAng >= 180) && (nAng < 270)) {
nAng = nAng - 180;
adj = Math.cos((Math.PI/180) * nAng) * pow;
opp = Math.tan((Math.PI/180) * nAng) * adj;
movBall.nXSpd = -adj;
movBall.nYSpd = -opp;
} else if ((nAng >= 270) && (nAng < 360)) {
nAng = nAng - 270;
adj = -(Math.cos((Math.PI/180) * nAng) * pow);
opp = -(Math.tan((Math.PI/180) * nAng) * adj);
movBall.nXSpd = opp;
movBall.nYSpd = adj;
}
movBall._x = movBall._x + movBall.nXSpd;
movBall._y = movBall._y + movBall.nYSpd;
if (shottype == 2) {
var nXS = movBall.nXSpd;
var nYS = movBall.nYSpd;
if (nXS < 0) {
nXS = -nXS;
}
if (nYS < 0) {
nYS = -nYS;
}
if (nXS == 0) {
nXS = 0.1;
}
if (nYS == 0) {
nYS = 0.1;
}
if (nXS >= nYS) {
movBall.nHighPoint = nXS;
movBall.nHighCount = 0;
movBall.blnUpwards = 1;
movBall.nZSpd = 4;
} else if (nYS > nXS) {
movBall.nHighPoint = nYS;
movBall.nHighCount = 0;
movBall.blnUpwards = 1;
movBall.nZSpd = 4;
}
}
nKickedBy = pid;
}
var nXDiff;
var nYDiff;
var nSpd = 5;
var nManXSpd = 25;
var nStartX = 250;
var nStartY = 200;
var nTopY = 750;
var nBotY = -400;
var nLeftX = 750;
var nRightX = -250;
var xRatio = 17.7777777777778;
var yRatio = 15.1020408163265;
var nPlayers = 4;
var friction = 0.96;
var friction2 = 0.85;
var nLeftWall = -600;
var nRightWall = 600;
var nTopWall = -640;
var nBotWall = 640;
var nGoalWidth = 140;
var nDefMax = 190;
var nDefMin = 175;
var inPlay = -1;
var blnKeepersBall = 0;
var blnGoal = 0;
var blnP1GoingUp = _root.nP1PlayDir;
var nKickedBy = 0;
var nGCount = 0;
var nBallDir = 0;
var nLagStored = 0;
var controlCount1 = 0;
var controlCount2 = 0;
_root.sndWhistle.play();
duplicateMovieClip ("swapper", "movS1", 161);
duplicateMovieClip ("swapper", "movS2", 162);
duplicateMovieClip ("swapper", "movS3", 163);
duplicateMovieClip ("swapper", "movS4", 164);
duplicateMovieClip ("swapper", "movS5", 165);
duplicateMovieClip ("swapper", "movS6", 166);
duplicateMovieClip ("swapper", "movS7", 167);
duplicateMovieClip ("swapper", "movS8", 168);
duplicateMovieClip ("swapper", "movS9", 169);
duplicateMovieClip ("swapper", "movS10", 170);
_root.fSetColors();
if (_root.nPlayers == 1) {
if (blnP1GoingUp == 1) {
duplicateMovieClip ("player1", "movP1P1", 101);
duplicateMovieClip ("player1", "movP1P2", 102);
duplicateMovieClip ("player1", "movP1P3", 103);
duplicateMovieClip ("player1", "movP1P4", 104);
duplicateMovieClip ("goalie1player", "movP1P5", 180);
duplicateMovieClip ("computer4", "movP2P1", 106);
duplicateMovieClip ("computer4", "movP2P2", 107);
duplicateMovieClip ("computer4", "movP2P3", 108);
duplicateMovieClip ("computer4", "movP2P4", 109);
duplicateMovieClip ("goalie2", "movP2P5", 110);
movP1P1.headvalue = 1;
movP1P2.headvalue = 2;
movP1P3.headvalue = 3;
movP1P4.headvalue = 4;
movP2P1.headvalue = 4;
movP2P2.headvalue = 5;
movP2P3.headvalue = 6;
movP2P4.headvalue = 7;
if ((_root.nP1Score == 0) && (_root.nP2Score == 0)) {
_root.movFixture.gotoAndStop(2);
_root.movFixture.txtFixture1 = _root.TEAMNAME;
_root.movFixture.txtFixture2 = _root.arrTeams[_root.OPPOID];
}
} else {
duplicateMovieClip ("computer3", "movP1P1", 101);
duplicateMovieClip ("computer3", "movP1P2", 102);
duplicateMovieClip ("computer3", "movP1P3", 103);
duplicateMovieClip ("computer3", "movP1P4", 104);
duplicateMovieClip ("goalie1", "movP1P5", 180);
duplicateMovieClip ("player2", "movP2P1", 106);
duplicateMovieClip ("player2", "movP2P2", 107);
duplicateMovieClip ("player2", "movP2P3", 108);
duplicateMovieClip ("player2", "movP2P4", 109);
duplicateMovieClip ("goalie2player", "movP2P5", 110);
movP1P1.headvalue = 4;
movP1P2.headvalue = 5;
movP1P3.headvalue = 6;
movP1P4.headvalue = 7;
movP2P1.headvalue = 1;
movP2P2.headvalue = 2;
movP2P3.headvalue = 3;
movP2P4.headvalue = 4;
}
} else if (blnP1GoingUp == 1) {
duplicateMovieClip ("player1", "movP1P1", 101);
duplicateMovieClip ("player1", "movP1P2", 102);
duplicateMovieClip ("player1", "movP1P3", 103);
duplicateMovieClip ("player1", "movP1P4", 104);
duplicateMovieClip ("goalie1player", "movP1P5", 180);
duplicateMovieClip ("player4", "movP2P1", 106);
duplicateMovieClip ("player4", "movP2P2", 107);
duplicateMovieClip ("player4", "movP2P3", 108);
duplicateMovieClip ("player4", "movP2P4", 109);
duplicateMovieClip ("goalie2player", "movP2P5", 110);
movP1P1.headvalue = 1;
movP1P2.headvalue = 2;
movP1P3.headvalue = 3;
movP1P4.headvalue = 4;
movP2P1.headvalue = 4;
movP2P2.headvalue = 5;
movP2P3.headvalue = 6;
movP2P4.headvalue = 7;
_root.movFixture.gotoAndStop(2);
_root.movFixture.txtFixture1 = "PLAYER ONE";
_root.movFixture.txtFixture2 = "PLAYER TWO";
} else {
duplicateMovieClip ("player3", "movP1P1", 101);
duplicateMovieClip ("player3", "movP1P2", 102);
duplicateMovieClip ("player3", "movP1P3", 103);
duplicateMovieClip ("player3", "movP1P4", 104);
duplicateMovieClip ("goalie1player", "movP1P5", 180);
duplicateMovieClip ("player2", "movP2P1", 106);
duplicateMovieClip ("player2", "movP2P2", 107);
duplicateMovieClip ("player2", "movP2P3", 108);
duplicateMovieClip ("player2", "movP2P4", 109);
duplicateMovieClip ("goalie2player", "movP2P5", 110);
movP1P1.headvalue = 4;
movP1P2.headvalue = 5;
movP1P3.headvalue = 6;
movP1P4.headvalue = 7;
movP2P1.headvalue = 1;
movP2P2.headvalue = 2;
movP2P3.headvalue = 3;
movP2P4.headvalue = 4;
}
movP1P1._visible = 0;
movP1P2._visible = 0;
movP1P3._visible = 0;
movP1P4._visible = 0;
movP2P1._visible = 0;
movP2P2._visible = 0;
movP2P3._visible = 0;
movP2P4._visible = 0;
trace("2ijlskjd");
movP1P2.head.gotoAndStop(5);
movP1P2.hitmovie.movPointer._alpha = 0;
if (_root.nPlayers == 1) {
if (blnP1GoingUp == 1) {
movP2P1.hitmovie.movPointer._alpha = 0;
} else {
movP1P1.hitmovie.movPointer._alpha = 0;
}
}
movP2P2.head.gotoAndStop(5);
movP2P2.hitmovie.movPointer._alpha = 0;
duplicateMovieClip ("ball", "movBall", 150);
duplicateMovieClip ("movTheGoals", "movGoals", 200);
movP1P1.inControl = 1;
movP1P2.inControl = 0;
movP1P3.inControl = 0;
movP1P4.inControl = 0;
movP1P5.inControl = 0;
movP1P1.nPlayerPos = 1;
movP1P2.nPlayerPos = 2;
movP1P3.nPlayerPos = 3;
movP1P4.nPlayerPos = 4;
movP1P5.nPlayerPos = 5;
movP2P1.inControl = 1;
movP2P2.inControl = 0;
movP2P3.inControl = 0;
movP2P4.inControl = 0;
movP2P5.inControl = 0;
movP2P1.nPlayerPos = 1;
movP2P2.nPlayerPos = 2;
movP2P3.nPlayerPos = 3;
movP2P4.nPlayerPos = 4;
movP2P5.nPlayerPos = 5;
movP1P3._x = -180;
movP1P3._y = 380;
movP1P4._x = 180;
movP1P4._y = 380;
movP1P5._x = 0;
movP1P5._y = nBotWall - (_root.nLevel * 5);
movP2P3._x = -180;
movP2P3._y = -380;
movP2P4._x = 180;
movP2P4._y = -380;
movP2P5._x = 0;
movP2P5._y = (-nBotWall) + (_root.nLevel * 5);
if (_root.nKickingOff == 1) {
movP1P1._x = -20;
movP1P1._y = 5;
movP1P2._x = 45;
movP1P2._y = 5;
movP2P1._x = -250;
movP2P1._y = -110;
movP2P2._x = 250;
movP2P2._y = -90;
} else {
movP1P1._x = -250;
movP1P1._y = 110;
movP1P2._x = 250;
movP1P2._y = 90;
movP2P1._x = -20;
movP2P1._y = 5;
movP2P2._x = 45;
movP2P2._y = 5;
}
movBall._x = 0;
movBall._y = 0;
var arrXDiffs1 = new Array();
var arrYDiffs1 = new Array();
var arrXDiffs2 = new Array();
var arrYDiffs2 = new Array();
}
onClipEvent (enterFrame) {
if (inPlay == 0) {
} else if (inPlay == 1) {
controlCount1++;
controlCount2++;
i = 1;
while (i <= nPlayers) {
arrXDiffs1[i] = movBall._x - eval ("movP1P" + i)._x;
arrYDiffs1[i] = movBall._y - eval ("movP1P" + i)._y;
if (arrXDiffs1[i] < 0) {
arrXDiffs1[i] = -arrXDiffs1[i];
}
if (arrYDiffs1[i] < 0) {
arrYDiffs1[i] = -arrYDiffs1[i];
}
arrXDiffs2[i] = movBall._x - eval ("movP2P" + i)._x;
arrYDiffs2[i] = movBall._y - eval ("movP2P" + i)._y;
if (arrXDiffs2[i] < 0) {
arrXDiffs2[i] = -arrXDiffs2[i];
}
if (arrYDiffs2[i] < 0) {
arrYDiffs2[i] = -arrYDiffs2[i];
}
i++;
}
if ((_x >= nRightX) && (_x <= nLeftX)) {
_x = (nStartX - movBall._x);
}
if (_x < nRightX) {
_x = nRightX;
}
if (_x > nLeftX) {
_x = nLeftX;
}
if ((_y <= nTopY) && (_y >= nBotY)) {
_y = (nStartY - movBall._y);
}
if (_y < nBotY) {
_y = nBotY;
}
if (_y > nTopY) {
_y = nTopY;
}
} else if (inPlay == 2) {
nGCount++;
if (nGCount == 10) {
_root.movMsgs.gotoAndStop(2);
if (nTeamScored == 1) {
_root.nP1Score++;
if (blnP1GoingUp == 1) {
_root.THISGAMESCORE = _root.THISGAMESCORE + (1000 - (_root.movTimer.nTime * 5));
} else {
_root.THISGAMESCORE = _root.THISGAMESCORE + (1000 - ((_root.movTimer.nTime + 60) * 5));
}
}
if (nTeamScored == 2) {
_root.nP2Score++;
}
}
if (nGCount == 100) {
if (nTeamScored == 1) {
if (blnP1GoingUp == 1) {
_root.nKickingOff = 2;
} else {
_root.nKickingOff = 1;
}
}
if (nTeamScored == 2) {
if (blnP1GoingUp == 1) {
_root.nKickingOff = 1;
} else {
_root.nKickingOff = 2;
}
}
_root.movScores.txtP1Score = _root.nP1Score;
_root.movScores.txtP2Score = _root.nP2Score;
}
if (nGCount >= 110) {
_root.play();
} else if (nGCount > 20) {
if (nTeamScored == 1) {
if (blnP1GoingUp == 1) {
if ((_x >= nRightX) && (_x <= nLeftX)) {
_x = (nStartX - eval ("movP1P" + nScorer)._x);
}
if (_x < nRightX) {
_x = nRightX;
}
if (_x > nLeftX) {
_x = nLeftX;
}
if ((_y <= nTopY) && (_y >= nBotY)) {
_y = ((nStartY - eval ("movP1P" + nScorer)._y) + 50);
}
if (_y < nBotY) {
_y = nBotY;
}
if (_y > nTopY) {
_y = nTopY;
}
eval ("movP1P" + nScorer)._y = eval ("movP1P" + nScorer)._y + 5;
if (nGCount == 21) {
eval ("movP1P" + nScorer).head.gotoAndStop(17);
eval ("movP1P" + nScorer).shirt.gotoAndStop(17);
eval ("movP1P" + nScorer).shorts.gotoAndStop(17);
eval ("movP1P" + nScorer).body.gotoAndStop(17);
eval ("movP1P" + nScorer).socks.gotoAndStop(17);
eval ("movP1P" + nScorer).hitmovie.gotoAndStop(17);
_root.fSetColors();
}
} else {
if ((_x >= nRightX) && (_x <= nLeftX)) {
_x = (nStartX - eval ("movP2P" + nScorer)._x);
}
if (_x < nRightX) {
_x = nRightX;
}
if (_x > nLeftX) {
_x = nLeftX;
}
if ((_y <= nTopY) && (_y >= nBotY)) {
_y = ((nStartY - eval ("movP2P" + nScorer)._y) + 50);
}
if (_y < nBotY) {
_y = nBotY;
}
if (_y > nTopY) {
_y = nTopY;
}
eval ("movP2P" + nScorer)._y = eval ("movP2P" + nScorer)._y - 5;
if (nGCount == 21) {
eval ("movP2P" + nScorer).head.gotoAndStop(18);
eval ("movP2P" + nScorer).shirt.gotoAndStop(18);
eval ("movP2P" + nScorer).shorts.gotoAndStop(18);
eval ("movP2P" + nScorer).body.gotoAndStop(18);
eval ("movP2P" + nScorer).socks.gotoAndStop(18);
eval ("movP2P" + nScorer).hitmovie.gotoAndStop(18);
_root.fSetColors();
}
}
} else if (blnP1GoingUp == 1) {
if ((_x >= nRightX) && (_x <= nLeftX)) {
_x = (nStartX - eval ("movP2P" + nScorer)._x);
}
if (_x < nRightX) {
_x = nRightX;
}
if (_x > nLeftX) {
_x = nLeftX;
}
if ((_y <= nTopY) && (_y >= nBotY)) {
_y = ((nStartY - eval ("movP2P" + nScorer)._y) + 50);
}
if (_y < nBotY) {
_y = nBotY;
}
if (_y > nTopY) {
_y = nTopY;
}
eval ("movP2P" + nScorer)._y = eval ("movP2P" + nScorer)._y - 5;
if (nGCount == 21) {
eval ("movP2P" + nScorer).head.gotoAndStop(18);
eval ("movP2P" + nScorer).shirt.gotoAndStop(18);
eval ("movP2P" + nScorer).shorts.gotoAndStop(18);
eval ("movP2P" + nScorer).body.gotoAndStop(18);
eval ("movP2P" + nScorer).socks.gotoAndStop(18);
eval ("movP2P" + nScorer).hitmovie.gotoAndStop(18);
}
} else {
if ((_x >= nRightX) && (_x <= nLeftX)) {
_x = (nStartX - eval ("movP1P" + nScorer)._x);
}
if (_x < nRightX) {
_x = nRightX;
}
if (_x > nLeftX) {
_x = nLeftX;
}
if ((_y <= nTopY) && (_y >= nBotY)) {
_y = ((nStartY - eval ("movP1P" + nScorer)._y) + 50);
}
if (_y < nBotY) {
_y = nBotY;
}
if (_y > nTopY) {
_y = nTopY;
}
eval ("movP1P" + nScorer)._y = eval ("movP1P" + nScorer)._y + 5;
if (nGCount == 21) {
eval ("movP1P" + nScorer).head.gotoAndStop(17);
eval ("movP1P" + nScorer).shirt.gotoAndStop(17);
eval ("movP1P" + nScorer).shorts.gotoAndStop(17);
eval ("movP1P" + nScorer).body.gotoAndStop(17);
eval ("movP1P" + nScorer).socks.gotoAndStop(17);
eval ("movP1P" + nScorer).hitmovie.gotoAndStop(17);
}
}
}
} else if (inPlay == 3) {
if (_root.nP1PlayDir == 1) {
_root.nP1PlayDir = 0;
}
_root.movTimer.txtTime = _root.nTotalMins + ":00";
_root.movTimer.strMins = _root.nTotalMins - 1;
_root.movTimer.strSecs = 0;
_root.movTimer.nTime = 0;
_root.movTimer.strSecSubtract = 60;
_root.movTimer.nTimeWasted = 0;
_root.play();
} else if (inPlay == 4) {
_root.movMsgs.gotoAndStop(3);
}
}
Instance of Symbol 613 MovieClip "movTimer" in Frame 15
onClipEvent (load) {
secCheater = 15;
txtTime = _root.nTotalMins + ":00";
strMins = _root.nTotalMins - 1;
strSecs = 0;
nTime = 0;
strSecSubtract = secCheater;
nFrRate = 22;
nTCount = 0;
}
onClipEvent (enterFrame) {
if (_parent.movGame.inPlay == 1) {
nTCount++;
if ((nTCount / nFrRate) == Math.round(nTCount / nFrRate)) {
nTime++;
}
strSecs = strSecSubtract - nTime;
if (strSecs < 0) {
strSecSubtract = strSecSubtract + secCheater;
strMins--;
nTime = 0;
}
if (strSecs >= 60) {
strAdd = 1;
} else {
strAdd = 0;
}
if ((strSecs <= 0) || (strSecs >= 60)) {
strSecs = "00";
}
if ((strSecs > 0) && (strSecs < 10)) {
strSecs = "0" + String(strSecs);
}
if (strMins > -1) {
txtTime = (Number(strMins + strAdd) + ":") + strSecs;
} else {
txtTime = "0:" + strSecs;
}
if (((strMins + strAdd) < 0) && (strSecs == 0)) {
if (_root.movGame.blnP1GoingUp == 1) {
_root.nEndo = 2;
_root.movGame.inPlay = 3;
} else if (_root.nP1Score == _root.nP2Score) {
strMins = 90;
strSecs = 60;
nTCount = 0;
nTime = 0;
_root.movMsgs.gotoAndStop(4);
_root.GOLDENGOAL = 1;
} else {
_root.movGame.inPlay = 3;
_root.nEndo = 3;
}
}
} else if (_root.movGame.inPlay != 3) {
}
}
Instance of Symbol 617 MovieClip "movScores" in Frame 15
onClipEvent (load) {
txtP1Score = _root.nP1Score;
txtP2Score = _root.nP2Score;
}
Frame 27
function fGoFr1() {
movGame.movP1P1.gotoAndStop(1);
movGame.movP1P2.gotoAndStop(1);
movGame.movP2P1.gotoAndStop(1);
movGame.movP2P2.gotoAndStop(1);
fSetColors();
}
movGame.movP1P1._visible = 1;
movGame.movP1P2._visible = 1;
movGame.movP1P3._visible = 1;
movGame.movP1P4._visible = 1;
movGame.movP2P1._visible = 1;
movGame.movP2P2._visible = 1;
movGame.movP2P3._visible = 1;
movGame.movP2P4._visible = 1;
movGame.movP1P1.gotoAndStop(4);
movGame.movP1P2.gotoAndStop(5);
movGame.movP2P1.gotoAndStop(4);
movGame.movP2P2.gotoAndStop(5);
fSetColors();
gotoAndStop ("GAME");
Frame 28
stop();
Instance of Symbol 625 MovieClip in Frame 28
onClipEvent (load) {
_parent.movGame.movP1P1._visible = 1;
_parent.movGame.movP1P2._visible = 1;
_parent.movGame.movP1P3._visible = 1;
_parent.movGame.movP1P4._visible = 1;
_parent.movGame.movP2P1._visible = 1;
_parent.movGame.movP2P2._visible = 1;
_parent.movGame.movP2P3._visible = 1;
_parent.movGame.movP2P4._visible = 1;
_parent.movGame.movP1P1.gotoAndStop(4);
_parent.movGame.movP1P2.gotoAndStop(4);
_parent.movGame.movP2P1.gotoAndStop(4);
_parent.movGame.movP2P2.gotoAndStop(4);
_root.nextFrame();
}
onClipEvent (enterFrame) {
}
Frame 29
if (blnFX) {
snWhistle.play();
}
movGame.inPlay = 0;
stop();
Frame 35
if ((nEndo == 2) || (nEndo == 3)) {
if (blnFX) {
sndWhistle.play();
}
}
_quality = "high";
Frame 43
if (nEndo == 1) {
if (GOLDENGOAL == 1) {
gotoAndStop ("FT");
} else {
gotoAndPlay ("PLAY");
}
} else if (nEndo == 2) {
nKickingOff = 1;
loadMovieNum ("endings.swf", 11);
var nHTCount = 0;
gotoAndPlay ("HT");
} else if (nEndo == 3) {
gotoAndStop ("FT");
} else if (nEndo == 4) {
gotoAndStop ("INTRO");
}
unloadMovieNum (1);
Frame 44
txtScore = (nP1Score + " - ") + nP2Score;
if (FRIENDLY == 0) {
txtScoreTourn = TOURNSCORE;
} else {
txtScoreTourn = "";
}
nHTCount++;
if (nHTCount == 100) {
gotoAndPlay ("PLAY");
}
Frame 45
gotoAndPlay ("HT");
Frame 46
txtScore = (nP1Score + " - ") + nP2Score;
txtScoreTourn = TOURNSCORE;
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(4);
if ((blnMusic == 1) || (blnMusic == -1)) {
blnMusic = 1;
sndMusic0.gotoAndPlay(2);
}
if (nPlayers == 1) {
if (nP1Score > nP2Score) {
txtWin = "WINNER!";
txtLine = "Congratulations, you won!";
TOURNSCORE = TOURNSCORE + THISGAMESCORE;
TOURNSCORE = TOURNSCORE + 2000;
TOURNSCORE = TOURNSCORE + (500 * (nP1Score - nP2Score));
txtBon1 = "Goals Scored Bonus = " + THISGAMESCORE;
txtBon2 = "Goal Difference Bonus = " + (500 * (nP1Score - nP2Score));
txtBon3 = "Match Win Bonus = 2000";
if ((FRIENDLY == 0) && (_root.ROUND == 4)) {
movCont.gotoAndStop(3);
}
if ((FRIENDLY == 0) && (_root.ROUND != 4)) {
movCont.gotoAndStop(2);
}
}
if (nP1Score < nP2Score) {
txtWin = "LOSER!";
txtLine = "Unlucky you lost!";
}
if (nP1Score == nP2Score) {
txtWin = "DRAW";
txtLine = "It's a tie!";
}
if (FRIENDLY == 0) {
if (nP1Score < nP2Score) {
txtBon1 = "Goals Scored Bonus = " + THISGAMESCORE;
txtBon2 = "Goal Difference Bonus = 0";
txtBon3 = "Match Win Bonus = 0";
TOURNSCORE = TOURNSCORE + THISGAMESCORE;
}
txtScoreTourn = TOURNSCORE;
txtSoFar = "TOTAL SCORE:";
} else {
txtBon1 = "";
txtBon2 = "";
txtBon3 = "";
txtScoreTourn = "";
txtSoFar = "";
}
if (nP1Score < nP2Score) {
nextFrame();
}
} else {
if (nP1Score > nP2Score) {
txtWin = "P1 WINS!";
txtLine = "Congratulations, Player One";
}
if (nP1Score < nP2Score) {
txtWin = "P2 WINS!";
txtLine = "Congratulations, Player Two";
}
if (nP1Score == nP2Score) {
txtWin = "DRAW!";
txtLine = "Have another go...";
}
}
play();
Frame 49
stop();
Frame 51
stop();
Frame 52
stop();
Instance of Symbol 84 MovieClip "comHighscores" in Frame 52
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.TOURNSCORE";
gamename = "cokefootball";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 100
function doBack() {
if (blnFX) {
sndClick.play();
}
unloadMovieNum (10);
gotoAndStop ("INTRO");
}
loadMovieNum ("howto.swf", 10);
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
stop();
Symbol 21 MovieClip Frame 3
stop();
Symbol 21 MovieClip Frame 4
stop();
Symbol 21 MovieClip Frame 5
stop();
Symbol 21 MovieClip Frame 6
stop();
Symbol 21 MovieClip Frame 7
stop();
Symbol 21 MovieClip Frame 8
stop();
Symbol 21 MovieClip Frame 9
stop();
Symbol 21 MovieClip Frame 10
stop();
Symbol 21 MovieClip Frame 11
stop();
Symbol 21 MovieClip Frame 12
stop();
Symbol 21 MovieClip Frame 13
stop();
Symbol 21 MovieClip Frame 14
stop();
Symbol 21 MovieClip Frame 15
stop();
Symbol 21 MovieClip Frame 16
stop();
Symbol 21 MovieClip Frame 17
stop();
Symbol 21 MovieClip Frame 18
stop();
Symbol 21 MovieClip Frame 19
stop();
Symbol 21 MovieClip Frame 20
stop();
Symbol 21 MovieClip Frame 21
stop();
Symbol 21 MovieClip Frame 22
stop();
Symbol 21 MovieClip Frame 23
stop();
Symbol 21 MovieClip Frame 24
stop();
Symbol 21 MovieClip Frame 25
stop();
Symbol 21 MovieClip Frame 26
stop();
Symbol 21 MovieClip Frame 27
stop();
Symbol 21 MovieClip Frame 28
stop();
Symbol 21 MovieClip Frame 29
stop();
Symbol 21 MovieClip Frame 30
stop();
Symbol 21 MovieClip Frame 31
stop();
Symbol 21 MovieClip Frame 32
stop();
Symbol 21 MovieClip Frame 33
stop();
Symbol 21 MovieClip Frame 34
stop();
Symbol 21 MovieClip Frame 35
stop();
Symbol 21 MovieClip Frame 36
stop();
Symbol 21 MovieClip Frame 37
stop();
Symbol 21 MovieClip Frame 38
stop();
Symbol 21 MovieClip Frame 39
stop();
Symbol 21 MovieClip Frame 40
stop();
Symbol 21 MovieClip Frame 41
stop();
Symbol 21 MovieClip Frame 42
stop();
Symbol 21 MovieClip Frame 43
stop();
Symbol 21 MovieClip Frame 44
stop();
Symbol 21 MovieClip Frame 45
stop();
Symbol 21 MovieClip Frame 46
stop();
Symbol 21 MovieClip Frame 47
stop();
Symbol 21 MovieClip Frame 48
stop();
Symbol 21 MovieClip Frame 49
stop();
Symbol 21 MovieClip Frame 50
stop();
Symbol 21 MovieClip Frame 51
stop();
Symbol 21 MovieClip Frame 52
stop();
Symbol 21 MovieClip Frame 53
stop();
Symbol 21 MovieClip Frame 54
stop();
Symbol 21 MovieClip Frame 55
stop();
Symbol 21 MovieClip Frame 56
stop();
Symbol 21 MovieClip Frame 57
stop();
Symbol 21 MovieClip Frame 58
stop();
Symbol 21 MovieClip Frame 59
stop();
Symbol 21 MovieClip Frame 60
stop();
Symbol 21 MovieClip Frame 61
stop();
Symbol 21 MovieClip Frame 62
stop();
Symbol 21 MovieClip Frame 63
stop();
Symbol 21 MovieClip Frame 64
stop();
Symbol 21 MovieClip Frame 65
stop();
Symbol 21 MovieClip Frame 66
stop();
Symbol 21 MovieClip Frame 67
stop();
Symbol 21 MovieClip Frame 68
stop();
Symbol 21 MovieClip Frame 69
stop();
Symbol 21 MovieClip Frame 70
stop();
Symbol 21 MovieClip Frame 71
stop();
Symbol 21 MovieClip Frame 72
stop();
Symbol 21 MovieClip Frame 73
stop();
Symbol 21 MovieClip Frame 74
stop();
Symbol 21 MovieClip Frame 75
stop();
Symbol 21 MovieClip Frame 76
stop();
Symbol 21 MovieClip Frame 77
stop();
Symbol 21 MovieClip Frame 78
stop();
Symbol 21 MovieClip Frame 79
stop();
Symbol 21 MovieClip Frame 80
stop();
Symbol 21 MovieClip Frame 81
stop();
Symbol 21 MovieClip Frame 82
stop();
Symbol 21 MovieClip Frame 83
stop();
Symbol 21 MovieClip Frame 84
stop();
Symbol 21 MovieClip Frame 85
stop();
Symbol 21 MovieClip Frame 86
stop();
Symbol 21 MovieClip Frame 87
stop();
Symbol 21 MovieClip Frame 88
stop();
Symbol 21 MovieClip Frame 89
stop();
Symbol 21 MovieClip Frame 90
stop();
Symbol 21 MovieClip Frame 91
stop();
Symbol 21 MovieClip Frame 92
stop();
Symbol 21 MovieClip Frame 93
stop();
Symbol 21 MovieClip Frame 94
stop();
Symbol 21 MovieClip Frame 95
stop();
Symbol 21 MovieClip Frame 96
stop();
Symbol 21 MovieClip Frame 97
stop();
Symbol 21 MovieClip Frame 98
stop();
Symbol 21 MovieClip Frame 99
stop();
Symbol 21 MovieClip Frame 100
stop();
Symbol 21 MovieClip Frame 101
stop();
Symbol 21 MovieClip Frame 102
stop();
Symbol 21 MovieClip Frame 103
stop();
_Parent.nextFrame();
Symbol 22 MovieClip Frame 1
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
movLoader.gotoAndStop(Math.round(nPercentLoaded / 2));
if (nBytesLoaded >= nBytesTotal) {
gotoAndStop (3);
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 22 MovieClip Frame 3
stop();
Symbol 29 Button
on (release) {
if (_root.blnMusic == 0) {
loadMovieNum ("music1.swf", 50);
_root.blnMusic = 1;
} else {
unloadMovieNum (50);
_root.blnMusic = 0;
}
}
Symbol 31 Button
on (release) {
if (_root.blnFX == 0) {
_root.blnFX = 1;
} else {
_root.blnFX = 0;
}
}
Symbol 34 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 39 Button
on (release, keyPress "3") {
if (blnFX) {
sndClick.play();
}
gotoAndStop ("INSTRUCS");
}
Symbol 42 Button
on (release) {
if (blnIns == 0) {
GAMETYPE = 1;
FRIENDLY = 1;
SHIRT = 7;
SHORTS = 7;
SOCKS = 7;
var SHIRT2 = 4;
var SHORTS2 = 4;
var SOCKS2 = 4;
gotoAndStop ("friendly");
}
}
Symbol 44 Button
on (release) {
if (blnIns == 0) {
GAMETYPE = 1;
FRIENDLY = 0;
var nLevel = 1;
gotoAndStop ("kitselect");
}
}
Symbol 47 Button
on (release) {
gotoAndStop ("HSCORES");
}
Symbol 54 Button
on (release) {
_root.blnIns = 0;
gotoAndStop (1);
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
this._visible = false;
Symbol 78 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 62 MovieClip "mcHighscores" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 84 MovieClip Frame 2
if (_url.indexOf("miniclip.com") == -1) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
stop();
}
Symbol 84 MovieClip Frame 3
stop();
Symbol 86 Button
on (release) {
prevFrame();
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 5
stop();
Symbol 91 MovieClip Frame 6
stop();
Symbol 91 MovieClip Frame 7
stop();
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 9
stop();
Symbol 91 MovieClip Frame 10
stop();
Symbol 91 MovieClip Frame 11
stop();
Symbol 91 MovieClip Frame 12
stop();
Symbol 91 MovieClip Frame 13
stop();
Symbol 91 MovieClip Frame 14
stop();
Symbol 91 MovieClip Frame 15
stop();
Symbol 91 MovieClip Frame 16
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 6
stop();
Symbol 93 MovieClip Frame 7
stop();
Symbol 93 MovieClip Frame 8
stop();
Symbol 93 MovieClip Frame 9
stop();
Symbol 93 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 11
stop();
Symbol 93 MovieClip Frame 12
stop();
Symbol 93 MovieClip Frame 13
stop();
Symbol 93 MovieClip Frame 14
stop();
Symbol 93 MovieClip Frame 15
stop();
Symbol 93 MovieClip Frame 16
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 95 MovieClip Frame 4
stop();
Symbol 95 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 6
stop();
Symbol 95 MovieClip Frame 7
stop();
Symbol 95 MovieClip Frame 8
stop();
Symbol 95 MovieClip Frame 9
stop();
Symbol 95 MovieClip Frame 10
stop();
Symbol 95 MovieClip Frame 11
stop();
Symbol 95 MovieClip Frame 12
stop();
Symbol 95 MovieClip Frame 13
stop();
Symbol 95 MovieClip Frame 14
stop();
Symbol 95 MovieClip Frame 15
stop();
Symbol 95 MovieClip Frame 16
stop();
Symbol 104 Button
on (release) {
if (_root.SHIRT < 16) {
_root.SHIRT++;
}
shirt.nextFrame();
}
Symbol 105 Button
on (release) {
if (_root.SHORTS < 16) {
_root.SHORTS++;
}
shorts.nextFrame();
}
Symbol 106 Button
on (release) {
if (_root.SOCKS < 16) {
_root.SOCKS++;
}
socks.nextFrame();
}
Symbol 107 Button
on (release) {
if (_root.SHIRT > 1) {
_root.SHIRT--;
}
shirt.prevFrame();
}
Symbol 108 Button
on (release) {
if (_root.SHORTS > 1) {
_root.SHORTS--;
}
shorts.prevFrame();
}
Symbol 109 Button
on (release) {
if (_root.SOCKS > 1) {
_root.SOCKS--;
}
socks.prevFrame();
}
Symbol 113 Button
on (press) {
txtTeam = "";
gotoAndStop (2);
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 115 Button
on (release) {
prevFrame();
}
Symbol 116 Button
on (release) {
TEAMNAME = movTeamName.txtTeam.toUpperCase();
nextFrame();
}
Symbol 120 Button
on (release) {
if (SHOWINGROUND == ROUND) {
var nPlayers = 1;
var nP1Gender = 1;
gotoAndPlay ("INITGAME");
} else if (SHOWINGROUND == 4) {
gotoAndStop ("winner");
} else {
movCup.play();
SHOWINGROUND++;
}
}
Symbol 121 Button
on (release) {
if (SHOWINGROUND > 1) {
movCup.REWIND = 1;
SHOWINGROUND--;
} else {
prevFrame();
}
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 11
stop();
Symbol 176 MovieClip Frame 21
stop();
Symbol 176 MovieClip Frame 31
stop();
Symbol 180 Button
on (press) {
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
}
}
on (release) {
var nPlayers = 1;
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
}
if (blnFX) {
sndClick.play();
}
play();
}
on (keyPress "1") {
var nPlayers = 1;
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
}
if (blnFX) {
sndClick.play();
}
play();
}
Symbol 182 Button
on (press) {
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
}
}
on (release) {
sndMusic0.gotoAndPlay(4);
if (blnFX) {
sndClick.play();
}
var nPlayers = 2;
var nLevel = 1;
gotoAndPlay ("INITGAME");
}
on (keyPress "2") {
if (blnFX) {
sndClick.play();
}
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(4);
}
var nPlayers = 2;
var nLevel = 1;
gotoAndPlay ("INITGAME");
}
Symbol 185 Button
on (release, keyPress "1") {
var nLevel = 1;
if (blnFX) {
sndClick.play();
}
gotoAndPlay ("INITGAME");
}
Symbol 187 Button
on (release, keyPress "2") {
var nLevel = 2;
if (blnFX) {
sndClick.play();
}
gotoAndPlay ("INITGAME");
}
Symbol 189 Button
on (release, keyPress "3") {
var nLevel = 3;
if (blnFX) {
sndClick.play();
}
gotoAndPlay ("INITGAME");
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 3
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 205 Button
on (keyPress "5") {
if (_root.blnFX) {
unloadMovieNum (1);
_root.blnFX = 0;
} else {
if (_root.movGame.inPlay == 1) {
loadMovieNum ("crowd1.swf", 1);
}
_root.blnFX = 1;
}
}
Symbol 206 Button
on (keyPress "6") {
if (_root.blnMusic) {
_root.sndMusic0.gotoAndPlay(4);
_root.sndMusic1.gotoAndPlay(4);
_root.blnMusic = 0;
} else {
_root.sndMusic1.gotoAndPlay(2);
_root.blnMusic = 1;
}
}
Symbol 226 MovieClip Frame 1
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 3
stop();
Symbol 238 MovieClip Frame 4
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 244 MovieClip Frame 3
stop();
Symbol 244 MovieClip Frame 4
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 13
gotoAndPlay (2);
Symbol 253 MovieClip Frame 1
_parent.nDir = 3;
stop();
Symbol 253 MovieClip Frame 2
_parent.nDir = 4;
stop();
Symbol 253 MovieClip Frame 3
_parent.nDir = 5;
stop();
Symbol 253 MovieClip Frame 4
_parent.nDir = 6;
stop();
Symbol 253 MovieClip Frame 5
_parent.nDir = 7;
stop();
Symbol 253 MovieClip Frame 6
_parent.nDir = 8;
stop();
Symbol 253 MovieClip Frame 7
_parent.nDir = 1;
stop();
Symbol 253 MovieClip Frame 8
_parent.nDir = 2;
stop();
Symbol 253 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 253 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 253 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 253 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 253 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 253 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 253 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 253 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 253 MovieClip Frame 17
stop();
Symbol 253 MovieClip Frame 18
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
stop();
Symbol 301 MovieClip Frame 3
stop();
Symbol 301 MovieClip Frame 4
stop();
Symbol 301 MovieClip Frame 5
stop();
Symbol 301 MovieClip Frame 6
stop();
Symbol 301 MovieClip Frame 7
stop();
Symbol 301 MovieClip Frame 8
stop();
Symbol 301 MovieClip Frame 9
stop();
Symbol 301 MovieClip Frame 10
stop();
Symbol 301 MovieClip Frame 11
stop();
Symbol 301 MovieClip Frame 12
stop();
Symbol 301 MovieClip Frame 13
stop();
Symbol 301 MovieClip Frame 14
stop();
Symbol 301 MovieClip Frame 15
stop();
Symbol 301 MovieClip Frame 16
stop();
Symbol 301 MovieClip Frame 17
stop();
Symbol 301 MovieClip Frame 18
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 3
stop();
Symbol 349 MovieClip Frame 4
stop();
Symbol 349 MovieClip Frame 5
stop();
Symbol 349 MovieClip Frame 6
stop();
Symbol 349 MovieClip Frame 7
stop();
Symbol 349 MovieClip Frame 8
stop();
Symbol 349 MovieClip Frame 9
stop();
Symbol 349 MovieClip Frame 10
stop();
Symbol 349 MovieClip Frame 11
stop();
Symbol 349 MovieClip Frame 12
stop();
Symbol 349 MovieClip Frame 13
stop();
Symbol 349 MovieClip Frame 14
stop();
Symbol 349 MovieClip Frame 15
stop();
Symbol 349 MovieClip Frame 16
stop();
Symbol 349 MovieClip Frame 17
stop();
Symbol 349 MovieClip Frame 18
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 3
stop();
Symbol 397 MovieClip Frame 4
stop();
Symbol 397 MovieClip Frame 5
stop();
Symbol 397 MovieClip Frame 6
stop();
Symbol 397 MovieClip Frame 7
stop();
Symbol 397 MovieClip Frame 8
stop();
Symbol 397 MovieClip Frame 9
stop();
Symbol 397 MovieClip Frame 10
stop();
Symbol 397 MovieClip Frame 11
stop();
Symbol 397 MovieClip Frame 12
stop();
Symbol 397 MovieClip Frame 13
stop();
Symbol 397 MovieClip Frame 14
stop();
Symbol 397 MovieClip Frame 15
stop();
Symbol 397 MovieClip Frame 16
stop();
Symbol 397 MovieClip Frame 17
stop();
Symbol 397 MovieClip Frame 18
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
stop();
Symbol 445 MovieClip Frame 3
stop();
Symbol 445 MovieClip Frame 4
stop();
Symbol 445 MovieClip Frame 5
stop();
Symbol 445 MovieClip Frame 6
stop();
Symbol 445 MovieClip Frame 7
stop();
Symbol 445 MovieClip Frame 8
stop();
Symbol 445 MovieClip Frame 9
stop();
Symbol 445 MovieClip Frame 10
stop();
Symbol 445 MovieClip Frame 11
stop();
Symbol 445 MovieClip Frame 12
stop();
Symbol 445 MovieClip Frame 13
stop();
Symbol 445 MovieClip Frame 14
stop();
Symbol 445 MovieClip Frame 15
stop();
Symbol 445 MovieClip Frame 16
stop();
Symbol 445 MovieClip Frame 17
stop();
Symbol 445 MovieClip Frame 18
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 2
stop();
Symbol 460 MovieClip Frame 3
stop();
Symbol 460 MovieClip Frame 4
stop();
Symbol 460 MovieClip Frame 5
stop();
Symbol 460 MovieClip Frame 6
stop();
Symbol 460 MovieClip Frame 7
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 3
stop();
Symbol 475 MovieClip Frame 4
stop();
Symbol 475 MovieClip Frame 5
stop();
Symbol 475 MovieClip Frame 6
stop();
Symbol 475 MovieClip Frame 7
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 3
stop();
Symbol 490 MovieClip Frame 4
stop();
Symbol 490 MovieClip Frame 5
stop();
Symbol 490 MovieClip Frame 6
stop();
Symbol 490 MovieClip Frame 7
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 2
stop();
Symbol 505 MovieClip Frame 3
stop();
Symbol 505 MovieClip Frame 4
stop();
Symbol 505 MovieClip Frame 5
stop();
Symbol 505 MovieClip Frame 6
stop();
Symbol 505 MovieClip Frame 7
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 2
stop();
Symbol 520 MovieClip Frame 3
stop();
Symbol 520 MovieClip Frame 4
stop();
Symbol 520 MovieClip Frame 5
stop();
Symbol 520 MovieClip Frame 6
stop();
Symbol 520 MovieClip Frame 7
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 2
stop();
Symbol 535 MovieClip Frame 3
stop();
Symbol 535 MovieClip Frame 4
stop();
Symbol 535 MovieClip Frame 5
stop();
Symbol 535 MovieClip Frame 6
stop();
Symbol 535 MovieClip Frame 7
stop();
Symbol 536 MovieClip Frame 1
stop();
Instance of Symbol 460 MovieClip "head" in Symbol 536 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 2
stop();
Instance of Symbol 475 MovieClip "head" in Symbol 536 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 3
stop();
Instance of Symbol 490 MovieClip "head" in Symbol 536 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 4
stop();
Instance of Symbol 475 MovieClip "head" in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 5
stop();
Instance of Symbol 460 MovieClip "head" in Symbol 536 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 6
stop();
Instance of Symbol 505 MovieClip "head" in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 7
stop();
Instance of Symbol 520 MovieClip "head" in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 8
stop();
Instance of Symbol 505 MovieClip "head" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 9
stop();
Instance of Symbol 535 MovieClip "head" in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 10
stop();
Symbol 536 MovieClip Frame 11
stop();
Symbol 536 MovieClip Frame 12
stop();
Symbol 536 MovieClip Frame 13
stop();
Symbol 536 MovieClip Frame 14
stop();
Symbol 536 MovieClip Frame 15
stop();
Symbol 536 MovieClip Frame 16
stop();
Symbol 536 MovieClip Frame 17
stop();
Instance of Symbol 490 MovieClip "head" in Symbol 536 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 536 MovieClip Frame 18
stop();
Instance of Symbol 520 MovieClip "head" in Symbol 536 MovieClip Frame 18
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 541 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 545 MovieClip Frame 1
stop();
Instance of Symbol 460 MovieClip "head" in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.headvalue);
}
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 2
stop();
Symbol 547 MovieClip Frame 3
stop();
Symbol 547 MovieClip Frame 4
stop();
Symbol 547 MovieClip Frame 5
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
stop();
Symbol 560 MovieClip Frame 3
stop();
Symbol 560 MovieClip Frame 4
stop();
Symbol 560 MovieClip Frame 5
stop();
Symbol 560 MovieClip Frame 6
stop();
Symbol 560 MovieClip Frame 7
stop();
Symbol 560 MovieClip Frame 8
stop();
Symbol 560 MovieClip Frame 9
stop();
Symbol 560 MovieClip Frame 10
stop();
Symbol 560 MovieClip Frame 11
stop();
Symbol 560 MovieClip Frame 12
stop();
Symbol 560 MovieClip Frame 13
stop();
Symbol 560 MovieClip Frame 14
stop();
Symbol 560 MovieClip Frame 15
stop();
Symbol 560 MovieClip Frame 16
stop();
Symbol 560 MovieClip Frame 17
stop();
Symbol 560 MovieClip Frame 18
stop();
Instance of Symbol 238 MovieClip "goalie2" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
}
onClipEvent (enterFrame) {
if ((_name != "goalie2") && (_parent.inPlay == 1)) {
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) < 15) {
gotoAndStop (1);
nSpd = _root.nGoalieMinSpd;
} else if ((_parent.movBall._y + _parent.movBall.nYSpd) < -725) {
if ((_parent.movBall.nXSpd < 10) && (_parent.movBall._x < _x)) {
nSpd = _root.nGoalieMaxSpd;
gotoAndStop (4);
}
if (_parent.movBall._x > (_x + 65)) {
nSpd = _root.nGoalieMaxSpd;
gotoAndStop (3);
}
} else {
nSpd = _root.nGoalieMaxSpd;
}
if (hitTest(_parent.movBall)) {
if ((nXS + nYS) > 15) {
_parent.movBall.nYSpd = (-_parent.movBall.nYSpd) * 0.5;
if (_x < _parent.movBall._x) {
gotoAndStop (3);
}
if (_x > _parent.movBall._x) {
gotoAndStop (4);
}
} else {
_parent.movBall._x = _x;
_parent.movBall._y = _y + 11;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
blnDribble = 1;
inControl = 1;
_parent.blnKeepersBall = 1;
nCount++;
if (nCount > 50) {
_parent.movBall._y = _parent.movBall._y + 20;
_parent.fKickBall(random(3) + 4, 25, 2, _x, _y, nPlayerPos, 2);
blnDribble = 0;
inControl = 0;
nCount = 0;
_parent.blnKeepersBall = 0;
}
}
} else if (_parent.blnKeepersBall != 2) {
_parent.blnKeepersBall = 0;
}
if (_x > (_parent.movBall._x - 8)) {
left = 1;
} else {
left = 0;
}
if (_x < (_parent.movBall._x + 8)) {
right = 1;
} else {
right = 0;
}
if (left) {
if (_x >= nMaxLeft) {
_x = (_x - nSpd);
}
}
if (right) {
if (_x <= nMaxRight) {
_x = (_x + nSpd);
}
}
}
}
Instance of Symbol 244 MovieClip "goalie1" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
}
onClipEvent (enterFrame) {
if ((_name != "goalie1") && (_parent.inPlay == 1)) {
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) < 15) {
gotoAndStop (1);
nSpd = _root.nGoalieMinSpd;
} else if ((_parent.movBall._y + _parent.movBall.nYSpd) > 725) {
if ((_parent.movBall.nXSpd < 10) && (_parent.movBall._x < _x)) {
nSpd = _root.nGoalieMaxSpd;
gotoAndStop (4);
}
if (_parent.movBall._x > (_x + 65)) {
nSpd = _root.nGoalieMaxSpd;
gotoAndStop (3);
}
} else {
nSpd = _root.nGoalieMaxSpd;
}
if (hitTest(_parent.movBall)) {
if ((nXS + nYS) > 15) {
_parent.movBall.nYSpd = (-_parent.movBall.nYSpd) * 0.5;
if (_x < _parent.movBall._x) {
gotoAndStop (3);
}
if (_x > _parent.movBall._x) {
gotoAndStop (4);
}
} else {
_parent.movBall._x = _x;
_parent.movBall._y = _y - 11;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
blnDribble = 1;
inControl = 1;
_parent.blnKeepersBall = 2;
nCount++;
if (nCount > 50) {
_parent.movBall._y = _parent.movBall._y - 20;
var nRand = random(3);
if (nRand == 0) {
nRand = 8;
}
_parent.fKickBall(nRand, 25, 1, _x, _y, nPlayerPos, 2);
blnDribble = 0;
inControl = 0;
nCount = 0;
_parent.blnKeepersBall = 0;
}
}
} else if (_parent.blnKeepersBall != 1) {
_parent.blnKeepersBall = 0;
}
if (_x > (_parent.movBall._x - 8)) {
left = 1;
} else {
left = 0;
}
if (_x < (_parent.movBall._x + 8)) {
right = 1;
} else {
right = 0;
}
if (left) {
if (_x >= nMaxLeft) {
_x = (_x - nSpd);
}
}
if (right) {
if (_x <= nMaxRight) {
_x = (_x + nSpd);
}
}
}
}
Instance of Symbol 244 MovieClip "goalie1player" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
if (_name != "goalie1player") {
K = Key.getCode();
if (((K == K1) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if (((K == K2) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
if (_name != "goalie1player") {
K = Key.getCode();
if ((K == K1) && (pass)) {
pass = 0;
_parent.movBall._y = _parent.movBall._y - 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(1, nPow, 2, _x, _y, nPlayerPos, 1);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
nPow = 10;
}
if ((K == K2) && (shoot)) {
shoot = 0;
_parent.movBall._y = _parent.movBall._y - 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(1, nPow, 2, _x, _y, nPlayerPos, 2);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
blnSwerve = 1;
nSwerveCount = 8;
nPow = 10;
}
}
}
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
var nPow = 0;
var left = 0;
var right = 0;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
if (_root.nPlayers == 1) {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
} else if (_parent.blnP1GoingUp == 1) {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
} else {
var K1 = 81;
var K2 = 65;
var Pbar = 2;
}
}
onClipEvent (enterFrame) {
if ((_name != "goalie1player") && (_parent.inPlay == 1)) {
if (_root.nPlayers == 1) {
if (_root.nP1Gender == 1) {
if (_parent.movKeys.isPressed[2] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[3] == 1) {
right = 1;
} else {
right = 0;
}
} else {
if (_parent.movKeys.isPressed[6] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[7] == 1) {
right = 1;
} else {
right = 0;
}
}
} else if (_parent.blnP1GoingUp == 1) {
if (_parent.movKeys.isPressed[2] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[3] == 1) {
right = 1;
} else {
right = 0;
}
} else {
if (_parent.movKeys.isPressed[6] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[7] == 1) {
right = 1;
} else {
right = 0;
}
}
if (hitTest(_parent.movBall)) {
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
blnDribble = 1;
inControl = 1;
_parent.blnKeepersBall = 2;
if ((pass == 1) && (nPow < 30)) {
nPow = nPow + 5;
eval (("_root.movP" + Pbar) + "Bar")._alpha = nPow * 3;
eval (("_root.movP" + Pbar) + "Bar")._xscale = nPow * 3;
}
if ((shoot == 1) && (nPow < 45)) {
nPow = nPow + 8;
eval (("_root.movP" + Pbar) + "Bar")._alpha = nPow * 2;
eval (("_root.movP" + Pbar) + "Bar")._xscale = nPow * 2;
}
if ((shoot == 0) && (pass == 0)) {
eval (("_root.movP" + Pbar) + "Bar")._alpha = 0;
eval (("_root.movP" + Pbar) + "Bar")._xscale = 1;
}
if (left) {
if (_x > -90) {
_x = (_x - 5);
}
}
if (right) {
if (_x < 90) {
_x = (_x + 5);
}
}
_parent.movBall._x = _x;
_parent.movBall._y = _y - 11;
_parent.movBall.nXSpd = 0;
_parent.movBall.nYSpd = 0;
} else {
if (_parent.blnKeepersBall != 1) {
_parent.blnKeepersBall = 0;
}
if (blnSwerve) {
nSwerveCount--;
if (nSwerveCount <= 0) {
blnSwerve = 0;
nSwerveCount = 8;
}
if (nSwerveCount < 8) {
if (_parent.nBallDir == 1) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 5) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
}
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) < 15) {
gotoAndStop (1);
nSpd = 9;
} else if ((_parent.movBall._y + _parent.movBall.nYSpd) > 725) {
if ((_parent.movBall.nXSpd < 10) && (_parent.movBall._x < _x)) {
nSpd = 15;
gotoAndStop (4);
}
if (_parent.movBall._x > (_x + 65)) {
nSpd = 15;
gotoAndStop (3);
}
} else {
gotoAndStop (2);
nSpd = 15;
}
if (_x > (_parent.movBall._x - 8)) {
left = 1;
} else {
left = 0;
}
if (_x < (_parent.movBall._x + 8)) {
right = 1;
} else {
right = 0;
}
if (left) {
if (_x > (nMaxLeft + 15)) {
_x = (_x - 5);
}
}
if (right) {
if (_x < (nMaxRight - 15)) {
_x = (_x + 5);
}
}
}
}
Instance of Symbol 238 MovieClip "goalie2player" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
if ((_name != "goalie1player") && (_parent.inPlay == 1)) {
K = Key.getCode();
if (((K == K1) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if (((K == K2) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
if ((_name != "goalie2player") && (_parent.inPlay == 1)) {
K = Key.getCode();
if ((K == K1) && (pass)) {
pass = 0;
_parent.movBall._y = _parent.movBall._y + 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(5, nPow, 2, _x, _y, nPlayerPos, 1);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
nPow = 10;
}
if ((K == K2) && (shoot)) {
shoot = 0;
_parent.movBall._y = _parent.movBall._y + 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(5, nPow, 2, _x, _y, nPlayerPos, 2);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
blnSwerve = 1;
nSwerveCount = 8;
nPow = 10;
}
}
}
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
var nPow = 0;
var left = 0;
var right = 0;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
if (_root.nPlayers == 1) {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
} else if (_parent.blnP1GoingUp == 1) {
var K1 = 81;
var K2 = 65;
var Pbar = 2;
} else {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "goalie2player") && (_parent.inPlay == 1)) {
if (_root.nPlayers == 1) {
if (_root.nP1Gender == 1) {
if (_parent.movKeys.isPressed[2] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[3] == 1) {
right = 1;
} else {
right = 0;
}
} else {
if (_parent.movKeys.isPressed[6] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[7] == 1) {
right = 1;
} else {
right = 0;
}
}
} else if (_parent.blnP1GoingUp == 1) {
if (_parent.movKeys.isPressed[6] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[7] == 1) {
right = 1;
} else {
right = 0;
}
} else {
if (_parent.movKeys.isPressed[2] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[3] == 1) {
right = 1;
} else {
right = 0;
}
}
if (hitTest(_parent.movBall)) {
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
blnDribble = 1;
inControl = 1;
_parent.blnKeepersBall = 1;
if ((pass == 1) && (nPow < 30)) {
nPow = nPow + 5;
eval (("_root.movP" + Pbar) + "Bar")._alpha = nPow * 3;
eval (("_root.movP" + Pbar) + "Bar")._xscale = nPow * 3;
}
if ((shoot == 1) && (nPow < 45)) {
nPow = nPow + 8;
eval (("_root.movP" + Pbar) + "Bar")._alpha = nPow * 2;
eval (("_root.movP" + Pbar) + "Bar")._xscale = nPow * 2;
}
if ((shoot == 0) && (pass == 0)) {
eval (("_root.movP" + Pbar) + "Bar")._alpha = 0;
eval (("_root.movP" + Pbar) + "Bar")._xscale = 1;
}
if (left) {
if (_x > -160) {
_x = (_x - 5);
}
}
if (right) {
if (_x < 160) {
_x = (_x + 5);
}
}
_parent.movBall._x = _x;
_parent.movBall._y = _y + 11;
_parent.movBall.nXSpd = 0;
_parent.movBall.nYSpd = 0;
} else {
if (_parent.blnKeepersBall != 2) {
_parent.blnKeepersBall = 0;
}
if (blnSwerve) {
nSwerveCount--;
if (nSwerveCount <= 0) {
blnSwerve = 0;
nSwerveCount = 8;
}
if (nSwerveCount < 8) {
if (_parent.nBallDir == 1) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 5) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
}
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) < 15) {
gotoAndStop (1);
nSpd = 9;
} else if ((_parent.movBall._y + _parent.movBall.nYSpd) < -725) {
if ((_parent.movBall.nXSpd < 10) && (_parent.movBall._x < _x)) {
nSpd = 15;
gotoAndStop (4);
}
if (_parent.movBall._x > (_x + 65)) {
nSpd = 15;
gotoAndStop (3);
}
} else {
gotoAndStop (2);
nSpd = 15;
}
if (_x > (_parent.movBall._x - 8)) {
left = 1;
} else {
left = 0;
}
if (_x < (_parent.movBall._x + 8)) {
right = 1;
} else {
right = 0;
}
if (left) {
if (_x > (nMaxLeft + 15)) {
_x = (_x - 5);
}
}
if (right) {
if (_x < (nMaxRight - 15)) {
_x = (_x + 5);
}
}
}
}
Instance of Symbol 547 MovieClip "player1" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (((K == 78) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 78) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
_root.movFixture.gotoAndStop(1);
_root.fGoFr1();
}
if (((((K == 77) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 77) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((K == 78) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 77) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 1;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
var nGap = 15;
var inControl = 0;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
var blnSlide = 0;
var nSlideCount = 0;
var nSlideSpeed = 15;
var blnHoofed = 0;
}
onClipEvent (enterFrame) {
if ((_name != "player1") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 100;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 0;
}
if (blnSlide == 1) {
nSlideCount++;
up = 0;
left = 0;
right = 0;
down = 0;
switch (nSlideDir) {
case 1 :
_y = (_y - nSlideSpeed);
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl) {
hitmovie.movPointer.arrglow.play();
if (_parent.movKeys.isPressed[0] == 1) {
up = 1;
} else {
up = 0;
}
if (_parent.movKeys.isPressed[1] == 1) {
down = 1;
} else {
down = 0;
}
if (_parent.movKeys.isPressed[2] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[3] == 1) {
right = 1;
} else {
right = 0;
}
if ((pass == 1) && (nPow < 30)) {
nPow = nPow + 5;
_root.movP1Bar._alpha = nPow * 3;
_root.movP1Bar._xscale = nPow * 3;
}
if ((shoot == 1) && (nPow < 32)) {
nPow = nPow + 8;
_root.movP1Bar._alpha = nPow * 3;
_root.movP1Bar._xscale = nPow * 3;
}
if ((shoot == 0) && (pass == 0)) {
_root.movP1Bar._alpha = 0;
_root.movP1Bar._xscale = 1;
}
if (blnSwerve) {
nSwerveCount--;
if (nSwerveCount <= 0) {
blnSwerve = 0;
nSwerveCount = 8;
}
if (nSwerveCount < 8) {
if (_parent.nBallDir == 1) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 5) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if ((_parent.nBallDir == 3) || (_parent.nBallDir == 7)) {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 8) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 2) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 4) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 6) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
}
}
} else {
hitmovie.movPointer.arrglow.gotoAndStop(1);
blnSlide = 0;
if (_parent.blnKeepersBall == 0) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs1[nPlayerPos] + _parent.arrYDiffs1[nPlayerPos]) < (_parent.arrXDiffs1[i] + _parent.arrYDiffs1[i])) {
isCloser++;
}
i++;
}
if ((isCloser >= (_parent.nPlayers - 1)) && (_parent.controlCount1 > 12)) {
_parent.controlCount1 = 0;
_parent.fChangeControl(nPlayerPos, 1);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP1Boxes[nPlayerPos][0])) && (_y < _root.arrP1Boxes[nPlayerPos][2])) && (_x > _root.arrP1Boxes[nPlayerPos][1])) && (_x < _root.arrP1Boxes[nPlayerPos][3])) {
if (nPlayerPos <= 2) {
if (_y <= (_parent.movBall._y - 57)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - 43)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y + _parent.nDefMin)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + _parent.nDefMax)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if (nPlayerPos <= 2) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP1Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP1Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > -300) {
up = 1;
} else {
up = 0;
}
if (_y < -350) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 450) {
up = 1;
} else {
up = 0;
}
if (_y < 400) {
down = 1;
} else {
down = 0;
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x > -150) {
left = 1;
} else {
left = 0;
}
if (_x < -200) {
right = 1;
} else {
right = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x > 200) {
left = 1;
} else {
left = 0;
}
if (_x < 150) {
right = 1;
} else {
right = 0;
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if ((inControl == 0) && (!blnSlide)) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
}
i++;
}
}
if (blnSlide && (!blnHoofed)) {
_parent.fKickBall(nSlideDir, 20, 1, _x, _y, nPlayerPos, 2);
blnHoofed = 1;
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (!blnSlide) {
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "player2" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (((K == 78) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 78) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
_root.fGoFr1();
_root.movFixture.gotoAndStop(1);
}
if (((((K == 77) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 77) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((K == 78) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 77) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 1;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
var nGap = 12;
var inControl = 0;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
var blnSlide = 0;
var nSlideCount = 0;
var nSlideSpeed = 15;
var blnHoofed = 0;
}
onClipEvent (enterFrame) {
if ((_name != "player2") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 100;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 0;
}
hitmovie.movPointer.txtD = nPlayerPos;
if (blnSlide == 1) {
nSlideCount++;
up = 0;
left = 0;
right = 0;
down = 0;
switch (nSlideDir) {
case 1 :
_y = (_y - nSlideSpeed);
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl == 1) {
hitmovie.movPointer.arrglow.play();
if (_parent.movKeys.isPressed[0] == 1) {
up = 1;
} else {
up = 0;
}
if (_parent.movKeys.isPressed[1] == 1) {
down = 1;
} else {
down = 0;
}
if (_parent.movKeys.isPressed[2] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[3] == 1) {
right = 1;
} else {
right = 0;
}
if ((pass == 1) && (nPow < 30)) {
nPow = nPow + 5;
_root.movP1Bar._alpha = nPow * 3;
_root.movP1Bar._xscale = nPow * 3;
}
if ((shoot == 1) && (nPow < 32)) {
nPow = nPow + 8;
_root.movP1Bar._alpha = nPow * 3;
_root.movP1Bar._xscale = nPow * 3;
}
if ((shoot == 0) && (pass == 0)) {
_root.movP1Bar._alpha = 0;
_root.movP1Bar._xscale = 1;
}
if (blnSwerve) {
nSwerveCount--;
if (nSwerveCount <= 0) {
blnSwerve = 0;
nSwerveCount = 8;
}
if (nSwerveCount < 8) {
if (_parent.nBallDir == 1) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 5) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if ((_parent.nBallDir == 3) || (_parent.nBallDir == 7)) {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 8) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 2) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 4) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 6) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
}
}
} else {
hitmovie.movPointer.arrglow.gotoAndStop(1);
blnSlide = 0;
if (_parent.blnKeepersBall == 0) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs2[nPlayerPos] + _parent.arrYDiffs2[nPlayerPos]) < (_parent.arrXDiffs2[i] + _parent.arrYDiffs2[i])) {
isCloser++;
}
i++;
}
if ((isCloser >= (_parent.nPlayers - 1)) && (_parent.controlCount2 > 12)) {
_parent.controlCount2 = 0;
_parent.fChangeControl(nPlayerPos, 2);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP2Boxes[nPlayerPos][0])) && (_y < _root.arrP2Boxes[nPlayerPos][2])) && (_x > _root.arrP2Boxes[nPlayerPos][1])) && (_x < _root.arrP2Boxes[nPlayerPos][3])) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= (_parent.movBall._y + 43)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + 57)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y - _parent.nDefMax)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - _parent.nDefMin)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP2Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP2Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > -450) {
up = 1;
} else {
up = 0;
}
if (_y < -500) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 1)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 250) {
up = 1;
} else {
up = 0;
}
if (_y < 275) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if ((inControl == 0) && (!blnSlide)) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
}
if (blnSlide && (!blnHoofed)) {
_parent.fKickBall(nSlideDir, 20, 2, _x, _y, nPlayerPos, 2);
blnHoofed = 1;
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (!blnSlide) {
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "computer1" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 3;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 6;
var nGap = 5;
var inControl;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
}
onClipEvent (enterFrame) {
if ((_name != "computer1") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 0;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 0;
}
if (inControl == 1) {
if (!blnDribble) {
nSpd = 2;
if (_x <= ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 1;
} else {
right = 0;
}
if (_x >= ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 1;
} else {
left = 0;
}
if (_y <= ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 1;
} else {
down = 0;
}
if (_y >= ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 1;
} else {
up = 0;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
} else {
nSpd = 3;
if (_y > -300) {
if (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 1, _x, _y, nPlayerPos, 1);
}
up = 1;
left = 0;
right = 0;
down = 0;
} else if ((_y <= -300) && (_y > -640)) {
if (_x <= -50) {
up = 1;
down = 0;
left = 0;
right = 1;
}
if ((_x > -50) && (_x < 100)) {
up = 1;
down = 0;
left = 0;
right = 0;
}
if (_x >= 50) {
up = 1;
down = 0;
left = 1;
right = 0;
}
if ((_x < 50) && (_x > 100)) {
up = 1;
down = 0;
left = 0;
right = 0;
}
} else if (_y <= -700) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x > 100) {
left = 1;
} else {
left = 0;
}
if (_x < -100) {
right = 1;
} else {
right = 0;
}
}
if ((_y <= -250) && (_y > -670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 1, _x, _y, nPlayerPos, 2);
}
}
}
} else {
if (!_parent.blnKeepersBall) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs1[nPlayerPos] + _parent.arrYDiffs1[nPlayerPos]) < (_parent.arrXDiffs1[i] + _parent.arrYDiffs1[i])) {
isCloser++;
}
i++;
}
if (isCloser >= (_parent.nPlayers - 1)) {
_parent.fChangeControl(nPlayerPos, 1);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP1Boxes[nPlayerPos][0])) && (_y < _root.arrP1Boxes[nPlayerPos][2])) && (_x > _root.arrP1Boxes[nPlayerPos][1])) && (_x < _root.arrP1Boxes[nPlayerPos][3])) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= (_parent.movBall._y - 57)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - 43)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y + _parent.nDefMin)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + _parent.nDefMax)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP1Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP1Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 450) {
up = 1;
} else {
up = 0;
}
if (_y < 400) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 250) {
up = 1;
} else {
up = 0;
}
if (_y < 275) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x > -150) {
left = 1;
} else {
left = 0;
}
if (_x < -200) {
right = 1;
} else {
right = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x > 200) {
left = 1;
} else {
left = 0;
}
if (_x < 150) {
right = 1;
} else {
right = 0;
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if (inControl == 0) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
}
i++;
}
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "computer2" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 3;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 6;
var nGap = 5;
var inControl;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
}
onClipEvent (enterFrame) {
if ((_name != "computer2") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 0;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 0;
}
if (inControl == 1) {
if (!blnDribble) {
nSpd = 2;
if (_x <= ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 1;
} else {
right = 0;
}
if (_x >= ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 1;
} else {
left = 0;
}
if (_y <= ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 1;
} else {
down = 0;
}
if (_y >= ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 1;
} else {
up = 0;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
} else {
nSpd = 3;
if (_y < 300) {
if (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 2, _x, _y, nPlayerPos, 1);
}
up = 0;
left = 0;
right = 0;
down = 1;
} else if ((_y >= 300) && (_y < 640)) {
if (_x <= -50) {
up = 0;
down = 1;
left = 0;
right = 1;
}
if ((_x > -50) && (_x < 100)) {
up = 0;
down = 1;
left = 0;
right = 0;
}
if (_x >= 50) {
up = 0;
down = 1;
left = 1;
right = 0;
}
if ((_x < 50) && (_x > 100)) {
up = 0;
down = 1;
left = 0;
right = 0;
}
} else if (_y >= 700) {
_parent.fKickBall(nDir, 30, 2, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x > 100) {
left = 1;
} else {
left = 0;
}
if (_x < -100) {
right = 1;
} else {
right = 0;
}
}
if ((_y >= 250) && (_y < 670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 2, _x, _y, nPlayerPos, 2);
}
}
}
} else {
if (!_parent.blnKeepersBall) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs2[nPlayerPos] + _parent.arrYDiffs2[nPlayerPos]) < (_parent.arrXDiffs2[i] + _parent.arrYDiffs2[i])) {
isCloser++;
}
i++;
}
if (isCloser >= (_parent.nPlayers - 1)) {
_parent.fChangeControl(nPlayerPos, 2);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP2Boxes[nPlayerPos][0])) && (_y < _root.arrP2Boxes[nPlayerPos][2])) && (_x > _root.arrP2Boxes[nPlayerPos][1])) && (_x < _root.arrP2Boxes[nPlayerPos][3])) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= (_parent.movBall._y + 43)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + 57)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y - _parent.nDefMax)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - _parent.nDefMin)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP2Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP2Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 450) {
up = 1;
} else {
up = 0;
}
if (_y < 400) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 250) {
up = 1;
} else {
up = 0;
}
if (_y < 275) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x > -150) {
left = 1;
} else {
left = 0;
}
if (_x < -200) {
right = 1;
} else {
right = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x > 200) {
left = 1;
} else {
left = 0;
}
if (_x < 150) {
right = 1;
} else {
right = 0;
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if (inControl == 0) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "player3" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nP1Gender == 1) && (_root.nPlayers == 1))) {
if (((K == 81) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 81) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
_root.fGoFr1();
_root.movFixture.gotoAndStop(1);
}
if (((((K == 65) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 65) && (blnDribble)) && (!pass)) {
shoot = 1;
}
} else {
if (((K == 78) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 78) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
_root.fGoFr1();
_root.movFixture.gotoAndStop(1);
}
if (((((K == 77) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 77) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nP1Gender == 1) && (_root.nPlayers == 1))) {
if ((K == 81) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 65) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
} else {
if ((K == 78) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 77) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
}
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 1;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
var nGap = 15;
var inControl;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
var blnSlide = 0;
var nSlideCount = 0;
var nSlideSpeed = 15;
var blnHoofed = 0;
}
onClipEvent (enterFrame) {
if ((_name != "player3") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 100;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 0;
}
if (blnSlide == 1) {
nSlideCount++;
up = 0;
left = 0;
right = 0;
down = 0;
switch (nSlideDir) {
case 1 :
_y = (_y - nSlideSpeed);
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl) {
hitmovie.movPointer.arrglow.play();
if (_parent.movKeys.isPressed[4] == 1) {
up = 1;
} else {
up = 0;
}
if (_parent.movKeys.isPressed[5] == 1) {
down = 1;
} else {
down = 0;
}
if (_parent.movKeys.isPressed[6] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[7] == 1) {
right = 1;
} else {
right = 0;
}
if ((pass == 1) && (nPow < 30)) {
nPow = nPow + 5;
_root.movP2Bar._alpha = nPow * 3;
_root.movP2Bar._xscale = nPow * 3;
}
if ((shoot == 1) && (nPow < 32)) {
nPow = nPow + 8;
_root.movP2Bar._alpha = nPow * 3;
_root.movP2Bar._xscale = nPow * 3;
}
if ((shoot == 0) && (pass == 0)) {
_root.movP2Bar._alpha = 0;
_root.movP2Bar._xscale = 1;
}
if (blnSwerve) {
nSwerveCount--;
if (nSwerveCount <= 0) {
blnSwerve = 0;
nSwerveCount = 8;
}
if (nSwerveCount < 8) {
if (_parent.nBallDir == 1) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 5) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if ((_parent.nBallDir == 3) || (_parent.nBallDir == 7)) {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 8) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 2) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 4) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 6) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
}
}
} else {
hitmovie.movPointer.arrglow.gotoAndStop(1);
blnSlide = 0;
if (_parent.blnKeepersBall == 0) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs1[nPlayerPos] + _parent.arrYDiffs1[nPlayerPos]) < (_parent.arrXDiffs1[i] + _parent.arrYDiffs1[i])) {
isCloser++;
}
i++;
}
if (isCloser >= (_parent.nPlayers - 1)) {
_parent.fChangeControl(nPlayerPos, 1);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP1Boxes[nPlayerPos][0])) && (_y < _root.arrP1Boxes[nPlayerPos][2])) && (_x > _root.arrP1Boxes[nPlayerPos][1])) && (_x < _root.arrP1Boxes[nPlayerPos][3])) {
if (nPlayerPos <= 2) {
if (_y <= (_parent.movBall._y - 57)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - 43)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y + _parent.nDefMin)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + _parent.nDefMax)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if (nPlayerPos <= 2) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP1Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP1Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > -300) {
up = 1;
} else {
up = 0;
}
if (_y < -350) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 450) {
up = 1;
} else {
up = 0;
}
if (_y < 400) {
down = 1;
} else {
down = 0;
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x > -150) {
left = 1;
} else {
left = 0;
}
if (_x < -200) {
right = 1;
} else {
right = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x > 200) {
left = 1;
} else {
left = 0;
}
if (_x < 150) {
right = 1;
} else {
right = 0;
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if ((inControl == 0) && (!blnSlide)) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
}
i++;
}
}
if (blnSlide && (!blnHoofed)) {
_parent.fKickBall(nSlideDir, 20, 1, _x, _y, nPlayerPos, 2);
blnHoofed = 1;
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (!blnSlide) {
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "player4" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nP1Gender == 1) && (_root.nPlayers == 1))) {
if (((K == 81) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 81) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
_root.fGoFr1();
_root.movFixture.gotoAndStop(1);
}
if (((((K == 65) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 65) && (blnDribble)) && (!pass)) {
shoot = 1;
}
} else {
if (((K == 78) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 78) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
_root.fGoFr1();
_root.movFixture.gotoAndStop(1);
}
if (((((K == 77) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 77) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nP1Gender == 1) && (_root.nPlayers == 1))) {
if ((K == 81) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 65) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
} else {
if ((K == 78) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 77) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
}
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 1;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
var nGap = 12;
var inControl;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
var blnSlide = 0;
var nSlideCount = 0;
var nSlideSpeed = 15;
var blnHoofed = 0;
}
onClipEvent (enterFrame) {
if ((_name != "player4") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 100;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 0;
}
if (blnSlide == 1) {
nSlideCount++;
up = 0;
left = 0;
right = 0;
down = 0;
switch (nSlideDir) {
case 1 :
_y = (_y - nSlideSpeed);
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
fChangeAllMovies(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
fChangeAllMovies(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl == 1) {
hitmovie.movPointer.arrglow.play();
if (_parent.movKeys.isPressed[4] == 1) {
up = 1;
} else {
up = 0;
}
if (_parent.movKeys.isPressed[5] == 1) {
down = 1;
} else {
down = 0;
}
if (_parent.movKeys.isPressed[6] == 1) {
left = 1;
} else {
left = 0;
}
if (_parent.movKeys.isPressed[7] == 1) {
right = 1;
} else {
right = 0;
}
if ((pass == 1) && (nPow < 30)) {
nPow = nPow + 5;
_root.movP2Bar._alpha = nPow * 3;
_root.movP2Bar._xscale = nPow * 3;
}
if ((shoot == 1) && (nPow < 32)) {
nPow = nPow + 8;
_root.movP2Bar._alpha = nPow * 3;
_root.movP2Bar._xscale = nPow * 3;
}
if ((shoot == 0) && (pass == 0)) {
_root.movP2Bar._alpha = 0;
_root.movP2Bar._xscale = 1;
}
if (blnSwerve) {
nSwerveCount--;
if (nSwerveCount <= 0) {
blnSwerve = 0;
nSwerveCount = 8;
}
if (nSwerveCount < 8) {
if (_parent.nBallDir == 1) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 5) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
} else if ((_parent.nBallDir == 3) || (_parent.nBallDir == 7)) {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
} else if (_parent.nBallDir == 8) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 2) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 4) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
} else if (_parent.nBallDir == 6) {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
}
}
} else {
hitmovie.movPointer.arrglow.gotoAndStop(1);
blnSlide = 0;
if (_parent.blnKeepersBall == 0) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs2[nPlayerPos] + _parent.arrYDiffs2[nPlayerPos]) < (_parent.arrXDiffs2[i] + _parent.arrYDiffs2[i])) {
isCloser++;
}
i++;
}
if (isCloser >= (_parent.nPlayers - 1)) {
_parent.fChangeControl(nPlayerPos, 2);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP2Boxes[nPlayerPos][0])) && (_y < _root.arrP2Boxes[nPlayerPos][2])) && (_x > _root.arrP2Boxes[nPlayerPos][1])) && (_x < _root.arrP2Boxes[nPlayerPos][3])) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= (_parent.movBall._y + 43)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + 57)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y - _parent.nDefMax)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - _parent.nDefMin)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP2Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP2Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > -450) {
up = 1;
} else {
up = 0;
}
if (_y < -500) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 1)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 250) {
up = 1;
} else {
up = 0;
}
if (_y < 275) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if ((inControl == 0) && (!blnSlide)) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
}
if (blnSlide && (!blnHoofed)) {
_parent.fKickBall(nSlideDir, 20, 2, _x, _y, nPlayerPos, 2);
blnHoofed = 1;
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (!blnSlide) {
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "computer3" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 3;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 6;
var nGap = 5;
var inControl;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
}
onClipEvent (enterFrame) {
if ((_name != "computer3") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 0;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 0;
}
if (inControl == 1) {
if (!blnDribble) {
nSpd = 2;
if (_x <= ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 1;
} else {
right = 0;
}
if (_x >= ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 1;
} else {
left = 0;
}
if (_y <= ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 1;
} else {
down = 0;
}
if (_y >= ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 1;
} else {
up = 0;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
} else {
nSpd = 3;
if (_y > -300) {
if (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 1, _x, _y, nPlayerPos, 1);
}
up = 1;
left = 0;
right = 0;
down = 0;
} else if ((_y <= -300) && (_y > -640)) {
if (_x <= -50) {
up = 1;
down = 0;
left = 0;
right = 1;
}
if ((_x > -50) && (_x < 100)) {
up = 1;
down = 0;
left = 0;
right = 0;
}
if (_x >= 50) {
up = 1;
down = 0;
left = 1;
right = 0;
}
if ((_x < 50) && (_x > 100)) {
up = 1;
down = 0;
left = 0;
right = 0;
}
} else if (_y <= -700) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 1);
up = 0;
down = 1;
if (_x > 100) {
left = 1;
} else {
left = 0;
}
if (_x < -100) {
right = 1;
} else {
right = 0;
}
}
if ((_y <= -250) && (_y > -670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 1, _x, _y, nPlayerPos, 2);
}
}
}
} else {
hitmovie.movPointer._alpha = 0;
if (_parent.blnKeepersBall == 0) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs1[nPlayerPos] + _parent.arrYDiffs1[nPlayerPos]) < (_parent.arrXDiffs1[i] + _parent.arrYDiffs1[i])) {
isCloser++;
}
i++;
}
if (isCloser >= (_parent.nPlayers - 1)) {
_parent.fChangeControl(nPlayerPos, 1);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP1Boxes[nPlayerPos][0])) && (_y < _root.arrP1Boxes[nPlayerPos][2])) && (_x > _root.arrP1Boxes[nPlayerPos][1])) && (_x < _root.arrP1Boxes[nPlayerPos][3])) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= (_parent.movBall._y - 57)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - 43)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y + _parent.nDefMin)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + _parent.nDefMax)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP1Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP1Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP1Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > -300) {
up = 1;
} else {
up = 0;
}
if (_y < -350) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 0) {
up = 1;
} else {
up = 0;
}
if (_y < -100) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 450) {
up = 1;
} else {
up = 0;
}
if (_y < 400) {
down = 1;
} else {
down = 0;
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x > -150) {
left = 1;
} else {
left = 0;
}
if (_x < -200) {
right = 1;
} else {
right = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x > 200) {
left = 1;
} else {
left = 0;
}
if (_x < 150) {
right = 1;
} else {
right = 0;
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if (inControl == 0) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP1P" + i).inControl = 0;
eval ("_parent.movP1P" + i).blnDribble = 0;
}
i++;
}
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 547 MovieClip "computer4" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
function fChangeAllMovies(num) {
head.gotoAndStop(num);
shirt.gotoAndStop(num);
shorts.gotoAndStop(num);
body.gotoAndStop(num);
socks.gotoAndStop(num);
hitmovie.gotoAndStop(num);
}
var nSpd = 3;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 6;
var nGap = 5;
var inControl;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
}
onClipEvent (enterFrame) {
if ((_name != "computer4") && (_parent.inPlay == 1)) {
hitmovie.movPointer._alpha = 0;
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 0;
}
if (inControl == 1) {
if (!blnDribble) {
nSpd = 2;
if (_x <= ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 1;
} else {
right = 0;
}
if (_x >= ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 1;
} else {
left = 0;
}
if (_y <= ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 1;
} else {
down = 0;
}
if (_y >= ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 1;
} else {
up = 0;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
} else {
nSpd = 3;
if (_y < 300) {
if (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 2, _x, _y, nPlayerPos, 1);
}
up = 0;
left = 0;
right = 0;
down = 1;
} else if ((_y >= 300) && (_y < 640)) {
if (_x <= -50) {
up = 0;
down = 1;
left = 0;
right = 1;
}
if ((_x > -50) && (_x < 100)) {
up = 0;
down = 1;
left = 0;
right = 0;
}
if (_x >= 50) {
up = 0;
down = 1;
left = 1;
right = 0;
}
if ((_x < 50) && (_x > 100)) {
up = 0;
down = 1;
left = 0;
right = 0;
}
} else if (_y >= 700) {
_parent.fKickBall(nDir, 30, 2, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x > 100) {
left = 1;
} else {
left = 0;
}
if (_x < -100) {
right = 1;
} else {
right = 0;
}
}
if ((_y >= 250) && (_y < 670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 2, _x, _y, nPlayerPos, 2);
}
}
}
} else {
if (_parent.blnKeepersBall == 0) {
if (!blnDribble) {
var isCloser = 0;
i = 1;
while (i <= _parent.nPlayers) {
if ((_parent.arrXDiffs2[nPlayerPos] + _parent.arrYDiffs2[nPlayerPos]) < (_parent.arrXDiffs2[i] + _parent.arrYDiffs2[i])) {
isCloser++;
}
i++;
}
if (isCloser >= (_parent.nPlayers - 1)) {
_parent.fChangeControl(nPlayerPos, 2);
}
}
if (((((hasStopped == 0) && (_y > _root.arrP2Boxes[nPlayerPos][0])) && (_y < _root.arrP2Boxes[nPlayerPos][2])) && (_x > _root.arrP2Boxes[nPlayerPos][1])) && (_x < _root.arrP2Boxes[nPlayerPos][3])) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= (_parent.movBall._y + 43)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y + 57)) {
up = 1;
} else {
up = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= (_parent.movBall._y - _parent.nDefMax)) {
down = 1;
} else {
down = 0;
}
if (_y >= (_parent.movBall._y - _parent.nDefMin)) {
up = 1;
} else {
up = 0;
}
}
} else {
if ((up == 1) && (isOutDown == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][0];
up = 0;
hasStopped = 1;
}
if ((down == 1) && (isOutUp == 0)) {
_y = _root.arrP2Boxes[nPlayerPos][2];
down = 0;
hasStopped = 3;
}
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y + 43))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if ((hasStopped == 1) && (_y <= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y + 5);
}
if ((hasStopped == 3) && (_y >= (_parent.movBall._y - _parent.nDefMin))) {
hasStopped = 0;
_y = (_y - 5);
}
}
if (_y < _root.arrP2Boxes[nPlayerPos][0]) {
down = 1;
isOutUp = 1;
} else {
isOutUp = 0;
down = 0;
}
if (_y > _root.arrP2Boxes[nPlayerPos][2]) {
up = 1;
isOutDown = 1;
} else {
isOutDown = 0;
up = 0;
}
}
} else if (_parent.blnKeepersBall == 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > -400) {
up = 1;
} else {
up = 0;
}
if (_y < -450) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > 250) {
up = 1;
} else {
up = 0;
}
if (_y < 275) {
down = 1;
} else {
down = 0;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > 100) {
up = 1;
} else {
up = 0;
}
if (_y < 0) {
down = 1;
} else {
down = 0;
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x > -150) {
left = 1;
} else {
left = 0;
}
if (_x < -200) {
right = 1;
} else {
right = 0;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x > 200) {
left = 1;
} else {
left = 0;
}
if (_x < 150) {
right = 1;
} else {
right = 0;
}
}
}
if (hitmovie.pfaker.hitTest(_parent.movBall)) {
if (inControl == 0) {
up = 0;
down = 0;
left = 0;
right = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (i != nPlayerPos) {
eval ("_parent.movP2P" + i).inControl = 0;
eval ("_parent.movP2P" + i).blnDribble = 0;
}
i++;
}
}
blnDribble = 1;
inControl = 1;
_parent.movBall.nXSpd = _parent.movBall.nXSpd * 0.3;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.3;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 0;
} else {
blnDribble = 0;
}
if (up == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
fChangeAllMovies(3);
}
}
if (left == 1) {
if (up == 1) {
fChangeAllMovies(6);
}
if (down == 1) {
fChangeAllMovies(4);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(5);
}
}
if (right == 1) {
if (up == 1) {
fChangeAllMovies(8);
}
if (down == 1) {
fChangeAllMovies(2);
}
if ((up == 0) && (down == 0)) {
fChangeAllMovies(1);
}
}
if (up == 1) {
if ((right == 1) || (left == 1)) {
if (_y > _parent.nTopWall) {
_y = (_y - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
}
}
} else {
if (_y > _parent.nTopWall) {
_y = (_y - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y - _root.arrSpeeds[nSpd];
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
_parent.movBall._x = _x;
}
}
}
if (down == 1) {
if ((right == 1) || (left == 1)) {
if (_y < _parent.nBotWall) {
_y = (_y + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + (_root.arrSpeeds[nSpd] * 0.75);
if (right == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_y < _parent.nBotWall) {
_y = (_y + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._y = _parent.movBall._y + _root.arrSpeeds[nSpd];
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
_parent.movBall._x = _x;
}
}
}
if (left == 1) {
if ((up == 1) || (down == 1)) {
if (_x > _parent.nLeftWall) {
_x = (_x - (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x > _parent.nLeftWall) {
_x = (_x - _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x - _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x >= (_x - nGap)) {
_parent.movBall._x = _parent.movBall._x - 5;
}
}
}
}
if (right == 1) {
if ((up == 1) || (down == 1)) {
if (_x < _parent.nRightWall) {
_x = (_x + (_root.arrSpeeds[nSpd] * 0.75));
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + (_root.arrSpeeds[nSpd] * 0.75);
if (up == 1) {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y >= (_y - nGap)) {
_parent.movBall._y = _parent.movBall._y - 5;
}
} else {
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
if (_parent.movBall._y <= (_y + nGap)) {
_parent.movBall._y = _parent.movBall._y + 5;
}
}
}
} else {
if (_x < _parent.nRightWall) {
_x = (_x + _root.arrSpeeds[nSpd]);
}
if (blnDribble) {
_parent.movBall._x = _parent.movBall._x + _root.arrSpeeds[nSpd];
_parent.movBall._y = _y;
if (_parent.movBall._x <= (_x + nGap)) {
_parent.movBall._x = _parent.movBall._x + 5;
}
}
}
}
}
}
Instance of Symbol 560 MovieClip "ball" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
function update() {
_x = (_x + nXSpd);
_y = (_y + nYSpd);
if (blnUpwards) {
if (nActualPoint >= (nHighPoint * 0.85)) {
nZSpd = -nZSpd;
}
if (nActualPoint < 0) {
nZSpd = -nZSpd;
nHighPoint = nHighPoint * 0.7;
}
nActualPoint = nActualPoint + nZSpd;
nZSpd = nZSpd * 0.96;
if ((nZSpd >= -1) && (nZSpd <= 1)) {
nActualPoint = 0;
blnUpwards = 0;
nZSpd = 0;
}
_xscale = (105 + (nActualPoint / 1));
_yscale = (105 + (nActualPoint / 1));
movShad._y = -0.6 + nActualPoint;
movShad._alpha = 100 - (nActualPoint * 2);
} else {
_xscale = 105;
_yscale = 105;
movShad._y = -0.6;
movShad._alpha = 100;
}
if ((nXSpd == 0) && (nYSpd == 0)) {
_xscale = 105;
_yscale = 105;
movShad._y = -0.6;
movShad._alpha = 100;
}
nXSpd = nXSpd * _parent.friction;
nYSpd = nYSpd * _parent.friction;
}
var nXSpd = 0;
var nYSpd = 0;
var blnDribble = 0;
var nHighCount = 0;
var nHighPoint = 0;
var nActualPoint = 0;
var blnUpwards = 0;
var nZSpd = 2;
}
onClipEvent (enterFrame) {
if ((_name != "ball") && (_parent.inPlay != 4)) {
if (_parent.blnGoal == 0) {
var nDrib1Count = 0;
var nDrib2Count = 0;
i = 1;
while (i <= _parent.nPlayers) {
if (eval ("_parent.movP1P" + i).blnDribble == 1) {
nDrib1Count++;
}
if (eval ("_parent.movP2P" + i).blnDribble == 1) {
nDrib2Count++;
}
i++;
}
if (nDrib1Count > 0) {
if (!blnDribble) {
gotoAndStop (10);
}
blnDribble = 1;
_parent.nTeamPossess = 1;
} else if (nDrib2Count > 0) {
if (!blnDribble) {
gotoAndStop (10);
}
blnDribble = 1;
_parent.nTeamPossess = 2;
} else {
_parent.nTeamPossess = 0;
blnDribble = 0;
}
update();
if (((_x + nXSpd) - (_width / 2)) < (_parent.nLeftWall - 20)) {
if (!blnDribble) {
nXSpd = -nXSpd;
} else {
_x = _parent.nLeftWall;
}
}
if (((_x + nXSpd) + (_width / 2)) > (_parent.nRightWall + 20)) {
if (!blnDribble) {
nXSpd = -nXSpd;
} else {
_x = _parent.nRightWall;
}
}
if (((_y + nYSpd) - (_height / 2)) < (_parent.nTopWall - 20)) {
if (((_parent.blnKeepersBall != 1) && (((_x + nXSpd) - (_width / 2)) > (-_parent.nGoalWidth))) && (((_x + nXSpd) - (_width / 2)) < _parent.nGoalWidth)) {
if (_root.blnFX) {
_level3.sndRoar.play();
}
if (_parent.blnP1GoingUp == 1) {
_parent.nTeamScored = 1;
} else {
_parent.nTeamScored = 2;
}
_parent.nScorer = _parent.nKickedBy;
_parent.blnGoal = 1;
_y = (_parent.nTopWall - 40);
_x = (_x + (nXSpd / 2));
_root.nEndo = 1;
_parent.inPlay = 2;
} else if (!blnDribble) {
nYSpd = -nYSpd;
} else {
_y = _parent.nTopWall;
}
}
if (((_y + nYSpd) + (_height / 2)) > (_parent.nBotWall + 20)) {
if (((_parent.blnKeepersBall != 2) && (((_x + nXSpd) - (_width / 2)) > (-_parent.nGoalWidth))) && (((_x + nXSpd) - (_width / 2)) < _parent.nGoalWidth)) {
if (_root.blnFX) {
_level3.sndRoar.play();
}
if (_parent.blnP1GoingUp == 1) {
_parent.nTeamScored = 2;
} else {
_parent.nTeamScored = 1;
}
_parent.nScorer = _parent.nKickedBy;
_parent.blnGoal = 1;
_y = (_parent.nBotWall + 40);
_x = (_x + (nXSpd / 2));
_root.nEndo = 1;
_parent.inPlay = 2;
} else if (!blnDribble) {
nYSpd = -nYSpd;
} else {
_y = _parent.nBotWall;
}
}
if (((((nXSpd > -0.3) && (nXSpd < 0.3)) && (nYSpd > -0.3)) && (nYSpd < 0.3)) || (_parent.blnKeepersBall > 0)) {
nXSpd = 0;
nYSpd = 0;
if (!blnDribble) {
gotoAndStop (9);
}
}
if ((((nXSpd > -5) && (nXSpd < 5)) && (nYSpd > -5)) && (nYSpd < 5)) {
if ((nXSpd < -1) && (nYSpd < nXSpd)) {
gotoAndStop (16);
}
if ((nXSpd > 1) && (nYSpd < nXSpd)) {
gotoAndStop (12);
}
if ((nYSpd < -1) && (nXSpd < nYSpd)) {
gotoAndStop (10);
}
if ((nYSpd > 1) && (nXSpd < nYSpd)) {
gotoAndStop (14);
}
} else {
if ((nXSpd < -1) && (nYSpd < nXSpd)) {
gotoAndStop (7);
}
if ((nXSpd > 1) && (nYSpd < nXSpd)) {
gotoAndStop (3);
}
if ((nYSpd < -1) && (nXSpd < nYSpd)) {
gotoAndStop (1);
}
if ((nYSpd > 1) && (nXSpd < nYSpd)) {
gotoAndStop (5);
}
}
if ((nXSpd == 0) && (nYSpd < -5)) {
gotoAndStop (1);
}
if ((nXSpd == 0) && (nYSpd > 5)) {
gotoAndStop (5);
}
} else {
nXSpd = 0;
nYSpd = 0;
}
}
}
Instance of Symbol 567 MovieClip "movKeys" in Symbol 568 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nPlayers == 1) && (_root.nP1Gender == 1))) {
if (K == 38) {
isPressed[0] = 1;
}
if (K == 40) {
isPressed[1] = 1;
}
if (K == 37) {
isPressed[2] = 1;
}
if (K == 39) {
isPressed[3] = 1;
}
if (K == 82) {
isPressed[4] = 1;
}
if (K == 70) {
isPressed[5] = 1;
}
if (K == 68) {
isPressed[6] = 1;
}
if (K == 71) {
isPressed[7] = 1;
}
} else {
if (K == 38) {
isPressed[4] = 1;
}
if (K == 40) {
isPressed[5] = 1;
}
if (K == 37) {
isPressed[6] = 1;
}
if (K == 39) {
isPressed[7] = 1;
}
if (K == 82) {
isPressed[0] = 1;
}
if (K == 70) {
isPressed[1] = 1;
}
if (K == 68) {
isPressed[2] = 1;
}
if (K == 71) {
isPressed[3] = 1;
}
}
if ((K == 80) && (_root.movGame.inPlay == 1)) {
if (_root.movGame.inPlay == 1) {
_root.movGame.inPlay = 4;
_root.movGame.ball.gotoAndStop(9);
}
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nPlayers == 1) && (_root.nP1Gender == 1))) {
if (K == 38) {
isPressed[0] = 0;
}
if (K == 40) {
isPressed[1] = 0;
}
if (K == 37) {
isPressed[2] = 0;
}
if (K == 39) {
isPressed[3] = 0;
}
if (K == 82) {
isPressed[4] = 0;
}
if (K == 70) {
isPressed[5] = 0;
}
if (K == 68) {
isPressed[6] = 0;
}
if (K == 71) {
isPressed[7] = 0;
}
} else {
if (K == 38) {
isPressed[4] = 0;
}
if (K == 40) {
isPressed[5] = 0;
}
if (K == 37) {
isPressed[6] = 0;
}
if (K == 39) {
isPressed[7] = 0;
}
if (K == 82) {
isPressed[0] = 0;
}
if (K == 70) {
isPressed[1] = 0;
}
if (K == 68) {
isPressed[2] = 0;
}
if (K == 71) {
isPressed[3] = 0;
}
}
}
onClipEvent (load) {
var isPressed = new Array(0, 0, 0, 0, 0, 0, 0, 0);
var blnPaused = 0;
}
Instance of Symbol 573 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
txtScore = (_root.nP1Score + "-") + _root.nP2Score;
}
Instance of Symbol 577 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
txtScore = (_root.nP1Score + "-") + _root.nP2Score;
}
Symbol 579 MovieClip Frame 97
stop();
Symbol 583 Button
on (release, keyPress "1") {
if (_root.movGame.inPlay == 4) {
_root.movGame.inPlay = 1;
_parent.gotoAndStop(1);
}
}
Symbol 584 Button
on (release, keyPress "5") {
if (_root.blnFX) {
unloadMovieNum (1);
_root.blnFX = 0;
} else {
loadMovieNum ("crowd1.swf", 1);
_root.blnFX = 1;
}
}
Symbol 585 Button
on (release, keyPress "6") {
if (_root.blnMusic) {
_root.sndMusic0.gotoAndPlay(4);
_root.sndMusic1.gotoAndPlay(4);
_root.blnMusic = 0;
} else {
_root.sndMusic1.gotoAndPlay(2);
_root.blnMusic = 1;
}
}
Symbol 586 Button
on (release, keyPress "9") {
_root.sndMusic1.gotoAndPlay(4);
_root.nEndo = 4;
_root.play();
}
Symbol 590 MovieClip Frame 47
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 2
stop();
Symbol 591 MovieClip Frame 3
stop();
Symbol 591 MovieClip Frame 4
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Instance of Symbol 599 MovieClip in Symbol 600 MovieClip Frame 2
onClipEvent (load) {
if (_root.nPlayers == 1) {
shirt.gotoAndStop(_root.arrTeamStrips[_root.OPPOID][0]);
shorts.gotoAndStop(_root.arrTeamStrips[_root.OPPOID][1]);
socks.gotoAndStop(_root.arrTeamStrips[_root.OPPOID][2]);
} else {
shirt.gotoAndStop(_root.SHIRT2);
shorts.gotoAndStop(_root.SHORTS2);
socks.gotoAndStop(_root.SOCKS2);
}
}
Instance of Symbol 599 MovieClip in Symbol 600 MovieClip Frame 2
onClipEvent (load) {
shirt.gotoAndStop(_root.SHIRT);
shorts.gotoAndStop(_root.SHORTS);
socks.gotoAndStop(_root.SOCKS);
}
Instance of Symbol 606 MovieClip "dot6" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 0) {
_x = (_root.movGame.movP1P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P1._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P1._y / _root.movGame.yRatio);
}
}
Instance of Symbol 606 MovieClip "dot7" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 0) {
_x = (_root.movGame.movP1P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P2._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P2._y / _root.movGame.yRatio);
}
}
Instance of Symbol 606 MovieClip "dot9" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 0) {
_x = (_root.movGame.movP1P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P4._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P4._y / _root.movGame.yRatio);
}
}
Instance of Symbol 606 MovieClip "dot8" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 0) {
_x = (_root.movGame.movP1P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P3._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P3._y / _root.movGame.yRatio);
}
}
Instance of Symbol 609 MovieClip "dot1" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 1) {
_x = (_root.movGame.movP1P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P1._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P1._y / _root.movGame.yRatio);
}
}
Instance of Symbol 609 MovieClip "dot2" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 1) {
_x = (_root.movGame.movP1P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P2._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P2._y / _root.movGame.yRatio);
}
}
Instance of Symbol 609 MovieClip "dot4" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 1) {
_x = (_root.movGame.movP1P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P4._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P4._y / _root.movGame.yRatio);
}
}
Instance of Symbol 609 MovieClip "dot3" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 1) {
_x = (_root.movGame.movP1P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P3._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P3._y / _root.movGame.yRatio);
}
}
Instance of Symbol 609 MovieClip "dot4" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 1) {
_x = (_root.movGame.movP1P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P5._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P5._y / _root.movGame.yRatio);
}
}
Instance of Symbol 606 MovieClip "dot8" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir == 0) {
_x = (_root.movGame.movP1P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P5._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP2P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P5._y / _root.movGame.yRatio);
}
}
Symbol 625 MovieClip Frame 1
man1.head.head.gotoAndStop(1);
man1.left = 1;
man1.hitmovie.movPointer._visible = 0;
girl1.head.head.gotoAndStop(4);
girl1.left = 1;
girl1.hitmovie.movPointer._visible = 0;
Instance of Symbol 547 MovieClip "girl1" in Symbol 625 MovieClip Frame 1
/* no clip actions */
Symbol 625 MovieClip Frame 4
man2.head.head.gotoAndStop(2);
man2.left = 1;
man2.hitmovie.movPointer._visible = 0;
Symbol 625 MovieClip Frame 8
girl2.head.head.gotoAndStop(5);
girl2.left = 1;
girl2.hitmovie.movPointer._visible = 0;
Instance of Symbol 547 MovieClip "girl2" in Symbol 625 MovieClip Frame 8
/* no clip actions */
Symbol 625 MovieClip Frame 39
blnDone = 1;
_parent.movGame.movP1P1._visible = 1;
_parent.movGame.movP1P2._visible = 1;
_parent.movGame.movP1P3._visible = 1;
_parent.movGame.movP1P4._visible = 1;
_parent.movGame.movP2P1._visible = 1;
_parent.movGame.movP2P2._visible = 1;
_parent.movGame.movP2P3._visible = 1;
_parent.movGame.movP2P4._visible = 1;
stop();
Symbol 625 MovieClip Frame 40
man1.head.head.gotoAndStop(5);
man1.left = 1;
man1.hitmovie.movPointer._visible = 0;
girl1.head.head.gotoAndStop(1);
girl1.left = 1;
girl1.hitmovie.movPointer._visible = 0;
Symbol 625 MovieClip Frame 43
man2.head.head.gotoAndStop(4);
man2.left = 1;
man2.hitmovie.movPointer._visible = 0;
Symbol 625 MovieClip Frame 47
girl2.head.head.gotoAndStop(2);
girl2.left = 1;
girl2.hitmovie.movPointer._visible = 0;
Instance of Symbol 547 MovieClip "girl2" in Symbol 625 MovieClip Frame 47
/* no clip actions */
Symbol 625 MovieClip Frame 78
blnDone = 1;
_parent.movGame.movP1P1._visible = 1;
_parent.movGame.movP1P2._visible = 1;
_parent.movGame.movP1P3._visible = 1;
_parent.movGame.movP1P4._visible = 1;
_parent.movGame.movP2P1._visible = 1;
_parent.movGame.movP2P2._visible = 1;
_parent.movGame.movP2P3._visible = 1;
_parent.movGame.movP2P4._visible = 1;
stop();
Symbol 634 Button
on (release, keyPress "<Enter>") {
if (_root.blnFX) {
_root.sndClick.play();
}
_root.gotoAndStop("SUBMITSCORES");
}
Symbol 635 Button
on (release, keyPress "<Enter>") {
if (_root.blnFX) {
_root.sndClick.play();
}
if (_root.blnMusic) {
_root.sndMusic0.gotoAndPlay(2);
_root.sndMusic1.gotoAndPlay(2);
}
if (_root.FRIENDLY == 1) {
_root.gotoAndStop("INTRO");
} else {
_root.ROUND++;
if (_root.ROUND == 2) {
_root.nLevel = 2;
}
if (_root.ROUND == 4) {
_root.nLevel = 3;
}
_root.fCreateCup(_root.ROUND, _root.nP1Score, _root.nP2Score);
_root.gotoAndStop("score");
}
}
Symbol 636 Button
on (release, keyPress "<Enter>") {
if (blnFX) {
sndClick.play();
}
_parent.play();
}
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 2
stop();
Symbol 637 MovieClip Frame 3
stop();
Symbol 651 Button
on (release, keyPress "<Enter>") {
if (FRIENDLY == 1) {
if (blnFX) {
sndClick.play();
}
gotoAndStop ("INTRO");
} else {
if (blnFX) {
sndClick.play();
}
gotoAndStop ("SUBMITSCORES");
}
}
Symbol 653 Button
on (release, keyPress "<Enter>") {
if (_root.blnFX) {
_root.sndClick.play();
}
if (_root.blnMusic) {
_root.sndMusic0.gotoAndPlay(2);
_root.sndMusic1.gotoAndPlay(2);
}
_root.gotoAndStop("INTRO");
}