Frame 2
_focusrect = 0;
_quality = "low";
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
movLoader.gotoAndStop(Math.round(nPercentLoaded / 2));
if (nBytesLoaded >= nBytesTotal) {
if ((_url == "http://www.gamesarcade.net/soccer/footy.swf") || true) {
var blnFX = 1;
var blnMusic = 1;
gotoAndStop (4);
} else {
txtFool = "Why not go to www.gamesarcade.net and play there? Cos this game has been nicked.";
}
}
Frame 3
gotoAndPlay (2);
Frame 4
if (blnMusic == 1) {
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(4);
}
loadMovieNum ("crowd3.swf", 3);
loadMovieNum ("crowd2.swf", 2);
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
var nP1PlayDir = 1;
var nKickingOff = 1;
var nP1Score = 0;
var nP2Score = 0;
var nTotalMins = 1;
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 8
if (blnFX) {
_level2.sndCrowd1.play();
loadMovieNum ("crowd1.swf", 1);
}
movGame.inPlay = -1;
Instance of Symbol 568 MovieClip "movGame" in Frame 8
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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 + (2 * Math.PI);
}
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);
if (_root.nPlayers == 1) {
if (blnP1GoingUp == 1) {
if (_root.nP1Gender == 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);
} else {
duplicateMovieClip ("player3", "movP1P1", 101);
duplicateMovieClip ("player3", "movP1P2", 102);
duplicateMovieClip ("player3", "movP1P3", 103);
duplicateMovieClip ("player3", "movP1P4", 104);
duplicateMovieClip ("goalie1player", "movP1P5", 180);
duplicateMovieClip ("computer2", "movP2P1", 106);
duplicateMovieClip ("computer2", "movP2P2", 107);
duplicateMovieClip ("computer2", "movP2P3", 108);
duplicateMovieClip ("computer2", "movP2P4", 109);
duplicateMovieClip ("goalie2", "movP2P5", 110);
}
} else if (_root.nP1Gender == 1) {
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);
} else {
duplicateMovieClip ("computer1", "movP1P1", 101);
duplicateMovieClip ("computer1", "movP1P2", 102);
duplicateMovieClip ("computer1", "movP1P3", 103);
duplicateMovieClip ("computer1", "movP1P4", 104);
duplicateMovieClip ("goalie1", "movP1P5", 180);
duplicateMovieClip ("player4", "movP2P1", 106);
duplicateMovieClip ("player4", "movP2P2", 107);
duplicateMovieClip ("player4", "movP2P3", 108);
duplicateMovieClip ("player4", "movP2P4", 109);
duplicateMovieClip ("goalie2player", "movP2P5", 110);
}
} 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);
} 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.gotoAndStop(3);
movP1P2.gotoAndStop(2);
movP1P3.gotoAndStop(4);
movP1P4.gotoAndStop(1);
movP2P1.gotoAndStop(3);
movP2P2.gotoAndStop(2);
movP2P3.gotoAndStop(4);
movP2P4.gotoAndStop(1);
if (_root.nEndo != 1) {
movP1P1._visible = 0;
movP1P2._visible = 0;
movP1P3._visible = 0;
movP1P4._visible = 0;
movP2P1._visible = 0;
movP2P2._visible = 0;
movP2P3._visible = 0;
movP2P4._visible = 0;
}
movP1P2.submovie.gotoAndStop(5);
movP1P2.submovie.movPointer._alpha = 0;
if (_root.nPlayers == 1) {
if (blnP1GoingUp == 1) {
movP2P1.submovie.movPointer._alpha = 0;
} else {
movP1P1.submovie.movPointer._alpha = 0;
}
}
movP2P2.submovie.gotoAndStop(5);
movP2P2.submovie.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 (nGCount == 100) {
if (nTeamScored == 1) {
if (blnP1GoingUp == 1) {
_root.nKickingOff = 2;
} else {
_root.nKickingOff = 1;
}
_root.nP1Score++;
}
if (nTeamScored == 2) {
if (blnP1GoingUp == 1) {
_root.nKickingOff = 1;
} else {
_root.nKickingOff = 2;
}
_root.nP2Score++;
}
_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;
eval ("movP1P" + nScorer).submovie.gotoAndStop(17);
} 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;
eval ("movP2P" + nScorer).submovie.gotoAndStop(18);
}
} 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;
eval ("movP2P" + nScorer).submovie.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;
eval ("movP1P" + nScorer).submovie.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 594 MovieClip "movTimer" in Frame 8
onClipEvent (load) {
txtTime = _root.nTotalMins + ":00";
strMins = _root.nTotalMins - 1;
strSecs = 0;
nTime = 0;
strSecSubtract = 60;
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 + 60;
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);
}
txtTime = (Number(strMins + strAdd) + ":") + strSecs;
if (((strMins + strAdd) < 0) && (strSecs == 0)) {
if (_root.movGame.blnP1GoingUp == 1) {
_root.nEndo = 2;
} else {
_root.nEndo = 3;
}
_root.movGame.inPlay = 3;
}
} else if (_root.movGame.inPlay != 3) {
}
}
Instance of Symbol 598 MovieClip "movScores" in Frame 8
onClipEvent (load) {
txtP1Score = _root.nP1Score;
txtP2Score = _root.nP2Score;
}
Frame 20
if (nEndo == 1) {
gotoAndStop (22);
}
Frame 21
stop();
Instance of Symbol 601 MovieClip in Frame 21
onClipEvent (load) {
var blnDone = 0;
if (_root.nP1Gender == 1) {
if (_root.nP1PlayDir == 1) {
gotoAndPlay (1);
} else {
gotoAndPlay (40);
}
} else if (_root.nP1PlayDir == 1) {
gotoAndPlay (40);
} else {
gotoAndPlay (1);
}
}
onClipEvent (enterFrame) {
if (blnDone) {
_root.nextFrame();
}
}
Frame 22
if (blnFX) {
snWhistle.play();
}
movGame.inPlay = 0;
stop();
Frame 28
if ((nEndo == 2) || (nEndo == 3)) {
if (blnFX) {
sndWhistle.play();
}
}
Frame 36
if (nEndo == 1) {
gotoAndPlay (8);
} else if (nEndo == 2) {
nKickingOff = 1;
loadMovieNum ("endings.swf", 11);
var nHTCount = 0;
gotoAndPlay (37);
} else if (nEndo == 3) {
gotoAndStop (39);
} else if (nEndo == 4) {
gotoAndStop (4);
}
unloadMovieNum (1);
Frame 37
txtScore = (nP1Score + " - ") + nP2Score;
nHTCount++;
if (nHTCount == 100) {
gotoAndPlay (8);
}
Frame 38
gotoAndPlay (37);
Frame 39
txtScore = (nP1Score + " - ") + nP2Score;
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(4);
play();
Frame 41
if ((blnMusic == 1) || (blnMusic == -1)) {
blnMusic = 1;
sndMusic0.gotoAndPlay(2);
}
Frame 59
_level11.gotoAndStop(2);
Frame 68
stop();
Frame 93
loadMovieNum ("howto.swf", 10);
stop();
Symbol 12 Button
on (press) {
getURL ("http://www.gamesarcade.net", "_blank");
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 29 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 30 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 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 2
stop();
Symbol 36 MovieClip Frame 3
stop();
Symbol 36 MovieClip Frame 4
stop();
Symbol 36 MovieClip Frame 5
stop();
Symbol 36 MovieClip Frame 6
stop();
Symbol 36 MovieClip Frame 7
stop();
Symbol 36 MovieClip Frame 8
stop();
Symbol 36 MovieClip Frame 9
stop();
Symbol 36 MovieClip Frame 10
stop();
Symbol 36 MovieClip Frame 11
stop();
Symbol 36 MovieClip Frame 12
stop();
Symbol 36 MovieClip Frame 13
stop();
Symbol 36 MovieClip Frame 14
stop();
Symbol 36 MovieClip Frame 15
stop();
Symbol 36 MovieClip Frame 16
stop();
Symbol 36 MovieClip Frame 17
stop();
Symbol 36 MovieClip Frame 18
stop();
Symbol 36 MovieClip Frame 19
stop();
Symbol 36 MovieClip Frame 20
stop();
Symbol 36 MovieClip Frame 21
stop();
Symbol 36 MovieClip Frame 22
stop();
Symbol 36 MovieClip Frame 23
stop();
Symbol 36 MovieClip Frame 24
stop();
Symbol 36 MovieClip Frame 25
stop();
Symbol 36 MovieClip Frame 26
stop();
Symbol 36 MovieClip Frame 27
stop();
Symbol 36 MovieClip Frame 28
stop();
Symbol 36 MovieClip Frame 29
stop();
Symbol 36 MovieClip Frame 30
stop();
Symbol 36 MovieClip Frame 31
stop();
Symbol 36 MovieClip Frame 32
stop();
Symbol 36 MovieClip Frame 33
stop();
Symbol 36 MovieClip Frame 34
stop();
Symbol 36 MovieClip Frame 35
stop();
Symbol 36 MovieClip Frame 36
stop();
Symbol 36 MovieClip Frame 37
stop();
Symbol 36 MovieClip Frame 38
stop();
Symbol 36 MovieClip Frame 39
stop();
Symbol 36 MovieClip Frame 40
stop();
Symbol 36 MovieClip Frame 41
stop();
Symbol 36 MovieClip Frame 42
stop();
Symbol 36 MovieClip Frame 43
stop();
Symbol 36 MovieClip Frame 44
stop();
Symbol 36 MovieClip Frame 45
stop();
Symbol 36 MovieClip Frame 46
stop();
Symbol 36 MovieClip Frame 47
stop();
Symbol 36 MovieClip Frame 48
stop();
Symbol 36 MovieClip Frame 49
stop();
Symbol 36 MovieClip Frame 50
stop();
Symbol 36 MovieClip Frame 51
stop();
Symbol 36 MovieClip Frame 52
stop();
Symbol 36 MovieClip Frame 53
stop();
Symbol 36 MovieClip Frame 54
stop();
Symbol 36 MovieClip Frame 55
stop();
Symbol 36 MovieClip Frame 56
stop();
Symbol 36 MovieClip Frame 57
stop();
Symbol 36 MovieClip Frame 58
stop();
Symbol 36 MovieClip Frame 59
stop();
Symbol 36 MovieClip Frame 60
stop();
_Parent.nextFrame();
Symbol 39 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 42 Button
on (release, keyPress "3") {
if (blnFX) {
sndClick.play();
}
gotoAndStop (93);
}
Symbol 45 Button
on (press) {
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
}
}
on (release) {
sndMusic0.gotoAndPlay(4);
if (blnFX) {
sndClick.play();
}
var nPlayers = 2;
var nLevel = 1;
var nP1Gender = 1;
gotoAndPlay (7);
}
on (keyPress "2") {
if (blnFX) {
sndClick.play();
}
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(4);
}
var nPlayers = 2;
var nLevel = 1;
var nP1Gender = 1;
gotoAndPlay (7);
}
Symbol 50 Button
on (release, keyPress "1") {
var nLevel = 1;
if (blnFX) {
sndClick.play();
}
nextFrame();
}
Symbol 53 Button
on (release, keyPress "2") {
var nLevel = 2;
if (blnFX) {
sndClick.play();
}
nextFrame();
}
Symbol 56 Button
on (release, keyPress "3") {
var nLevel = 3;
if (blnFX) {
sndClick.play();
}
nextFrame();
}
Symbol 59 Button
on (release, keyPress "4") {
if (blnFX) {
sndClick.play();
}
prevFrame();
}
Symbol 67 Button
on (press) {
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
}
on (release) {
if (blnFX) {
sndClick.play();
}
var nP1Gender = 1;
play();
}
on (keyPress "1") {
if (blnFX) {
sndClick.play();
}
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
var nP1Gender = 1;
play();
}
Symbol 70 Button
on (press) {
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
}
on (release) {
if (blnFX) {
sndClick.play();
}
var nP1Gender = 2;
play();
}
on (keyPress "2") {
if (blnFX) {
sndClick.play();
}
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
var nP1Gender = 2;
play();
}
Symbol 71 Button
on (release, keyPress "4") {
if (blnFX) {
sndClick.play();
}
prevFrame();
}
Symbol 81 MovieClip Frame 1
Symbol 93 MovieClip Frame 3
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 94 MovieClip Frame 4
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Instance of Symbol 131 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 145 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 176 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 115 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 176 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 124 MovieClip in Symbol 176 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 176 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 131 MovieClip in Symbol 176 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 176 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 124 MovieClip in Symbol 176 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 176 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 115 MovieClip in Symbol 176 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 176 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 138 MovieClip in Symbol 176 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 176 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 145 MovieClip in Symbol 176 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 176 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 138 MovieClip in Symbol 176 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 176 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 176 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 176 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 176 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 176 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 176 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 176 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 176 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 176 MovieClip Frame 17
stop();
Symbol 176 MovieClip Frame 18
stop();
Instance of Symbol 197 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 211 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 228 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 183 MovieClip in Symbol 228 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 228 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 190 MovieClip in Symbol 228 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 228 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 197 MovieClip in Symbol 228 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 228 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 190 MovieClip in Symbol 228 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 228 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 183 MovieClip in Symbol 228 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 228 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 204 MovieClip in Symbol 228 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 228 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 211 MovieClip in Symbol 228 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 228 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 204 MovieClip in Symbol 228 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 228 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 228 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 228 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 228 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 228 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 228 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 228 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 228 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 228 MovieClip Frame 17
stop();
Symbol 228 MovieClip Frame 18
stop();
Instance of Symbol 249 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 263 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 281 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 235 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 281 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 242 MovieClip in Symbol 281 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 281 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 249 MovieClip in Symbol 281 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 281 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 242 MovieClip in Symbol 281 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 281 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 235 MovieClip in Symbol 281 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 281 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 256 MovieClip in Symbol 281 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 281 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 263 MovieClip in Symbol 281 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 281 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 256 MovieClip in Symbol 281 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 281 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 281 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 281 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 281 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 281 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 281 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 281 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 281 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 281 MovieClip Frame 17
stop();
Symbol 281 MovieClip Frame 18
stop();
Instance of Symbol 302 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 316 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 324 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 288 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 324 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 295 MovieClip in Symbol 324 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 324 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 302 MovieClip in Symbol 324 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 324 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 295 MovieClip in Symbol 324 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 324 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 288 MovieClip in Symbol 324 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 324 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 309 MovieClip in Symbol 324 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 324 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 316 MovieClip in Symbol 324 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 324 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 309 MovieClip in Symbol 324 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 324 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 324 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 324 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 324 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 324 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 324 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 324 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 324 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 324 MovieClip Frame 17
stop();
Symbol 324 MovieClip Frame 18
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 4
stop();
Instance of Symbol 348 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 362 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 379 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 332 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 379 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 341 MovieClip in Symbol 379 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 379 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 348 MovieClip in Symbol 379 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 379 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 341 MovieClip in Symbol 379 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 379 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 332 MovieClip in Symbol 379 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 379 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 355 MovieClip in Symbol 379 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 379 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 362 MovieClip in Symbol 379 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 379 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 355 MovieClip in Symbol 379 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 379 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 379 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 379 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 379 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 379 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 379 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 379 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 379 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 379 MovieClip Frame 17
stop();
Symbol 379 MovieClip Frame 18
stop();
Instance of Symbol 400 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 414 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 431 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 386 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 431 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 393 MovieClip in Symbol 431 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 431 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 400 MovieClip in Symbol 431 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 431 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 393 MovieClip in Symbol 431 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 431 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 386 MovieClip in Symbol 431 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 431 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 407 MovieClip in Symbol 431 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 431 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 414 MovieClip in Symbol 431 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 431 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 407 MovieClip in Symbol 431 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 431 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 431 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 431 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 431 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 431 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 431 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 431 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 431 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 431 MovieClip Frame 17
stop();
Symbol 431 MovieClip Frame 18
stop();
Instance of Symbol 452 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 466 MovieClip in Symbol 482 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 483 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 438 MovieClip in Symbol 483 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 483 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 445 MovieClip in Symbol 483 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 483 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 452 MovieClip in Symbol 483 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 483 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 445 MovieClip in Symbol 483 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 483 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 438 MovieClip in Symbol 483 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 483 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 459 MovieClip in Symbol 483 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 483 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 466 MovieClip in Symbol 483 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 483 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 459 MovieClip in Symbol 483 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 483 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 483 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 483 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 483 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 483 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 483 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 483 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 483 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 483 MovieClip Frame 17
stop();
Symbol 483 MovieClip Frame 18
stop();
Instance of Symbol 504 MovieClip in Symbol 533 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 466 MovieClip in Symbol 534 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Symbol 535 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 490 MovieClip in Symbol 535 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 535 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 497 MovieClip in Symbol 535 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 535 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 504 MovieClip in Symbol 535 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 535 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 497 MovieClip in Symbol 535 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 535 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 490 MovieClip in Symbol 535 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 535 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 511 MovieClip in Symbol 535 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 535 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 518 MovieClip in Symbol 535 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 535 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 511 MovieClip in Symbol 535 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 535 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 535 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 535 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 535 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 535 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 535 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 535 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 535 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 535 MovieClip Frame 17
stop();
Symbol 535 MovieClip Frame 18
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
Symbol 536 MovieClip Frame 3
stop();
Symbol 536 MovieClip Frame 4
stop();
Symbol 558 MovieClip Frame 1
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 94 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 102 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 102 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 94 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 325 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;
}
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) {
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)) {
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;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl) {
submovie.movPointer._alpha = 100;
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 (_x > (_parent.movBall._x + 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = 235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe._y = _y;
}
_parent.movFindMe._rotation = 270;
}
} else if (_x < (_parent.movBall._x - 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = -235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe._y = _y;
}
_parent.movFindMe._rotation = 90;
}
} else if (_y < (_parent.movBall._y - 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = _x;
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
_parent.movFindMe._rotation = 180;
}
} else if (_y > (_parent.movBall._y + 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = _x;
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
_parent.movFindMe._rotation = 0;
}
} else {
_parent.movFindMe._visible = 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 {
submovie.movPointer._alpha = 0;
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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 325 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;
}
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) {
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)) {
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;
}
submovie.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;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl == 1) {
submovie.movPointer._alpha = 100;
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 (_x > (_parent.movBall._x + 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = 235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe._y = _y;
}
_parent.movFindMe._rotation = 270;
}
} else if (_x < (_parent.movBall._x - 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = -235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe._y = _y;
}
_parent.movFindMe._rotation = 90;
}
} else if (_y < (_parent.movBall._y - 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = _x;
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
_parent.movFindMe._rotation = 180;
}
} else if (_y > (_parent.movBall._y + 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = _x;
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
_parent.movFindMe._rotation = 0;
}
} else {
_parent.movFindMe._visible = 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 {
submovie.movPointer._alpha = 0;
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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 325 MovieClip "computer1" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
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)) {
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 {
submovie.movPointer._alpha = 0;
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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 325 MovieClip "computer2" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
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)) {
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 {
submovie.movPointer._alpha = 0;
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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 536 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;
}
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;
}
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) {
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)) {
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;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl) {
submovie.movPointer._alpha = 100;
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 (_x > (_parent.movBall._x + 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = 235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe2._y = _y;
}
_parent.movFindMe2._rotation = 270;
}
} else if (_x < (_parent.movBall._x - 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = -235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe2._y = _y;
}
_parent.movFindMe2._rotation = 90;
}
} else if (_y < (_parent.movBall._y - 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = _x;
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
_parent.movFindMe2._rotation = 180;
}
} else if (_y > (_parent.movBall._y + 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = _x;
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
_parent.movFindMe2._rotation = 0;
}
} else {
_parent.movFindMe2._visible = 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 {
submovie.movPointer._alpha = 0;
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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 536 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;
}
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;
}
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) {
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)) {
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;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl == 1) {
submovie.movPointer._alpha = 100;
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 (_x > (_parent.movBall._x + 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = 235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe2._y = _y;
}
_parent.movFindMe2._rotation = 270;
}
} else if (_x < (_parent.movBall._x - 240)) {
if ((_y >= (_parent.movBall._y - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = -235 - (_parent._x - _parent.nStartX);
if (_y <= (_parent.movBall._y - 186)) {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
} else if (_y >= (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
} else {
_parent.movFindMe2._y = _y;
}
_parent.movFindMe2._rotation = 90;
}
} else if (_y < (_parent.movBall._y - 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = _x;
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
_parent.movFindMe2._rotation = 180;
}
} else if (_y > (_parent.movBall._y + 190)) {
if ((_y >= (_parent.movBall._y - 250)) && (_y <= (_parent.movBall._y + 250))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = _x;
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
_parent.movFindMe2._rotation = 0;
}
} else {
_parent.movFindMe2._visible = 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 {
submovie.movPointer._alpha = 0;
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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 536 MovieClip "computer3" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
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)) {
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 {
submovie.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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 536 MovieClip "computer4" in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
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)) {
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 {
submovie.movPointer._alpha = 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 == 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 (submovie.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)) {
submovie.gotoAndStop(7);
}
}
if (down == 1) {
if ((left == 0) && (right == 0)) {
submovie.gotoAndStop(3);
}
}
if (left == 1) {
if (up == 1) {
submovie.gotoAndStop(6);
}
if (down == 1) {
submovie.gotoAndStop(4);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(5);
}
}
if (right == 1) {
if (up == 1) {
submovie.gotoAndStop(8);
}
if (down == 1) {
submovie.gotoAndStop(2);
}
if ((up == 0) && (down == 0)) {
submovie.gotoAndStop(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 / 3));
_yscale = (105 + (nActualPoint / 3));
movShad._y = 3 + nActualPoint;
movShad._alpha = 100 - (nActualPoint * 2);
} else {
_xscale = 105;
_yscale = 105;
movShad._y = 3;
movShad._alpha = 100;
}
if ((nXSpd == 0) && (nYSpd == 0)) {
_xscale = 105;
_yscale = 105;
movShad._y = 3;
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;
}
Symbol 572 MovieClip Frame 97
stop();
Symbol 576 Button
on (release, keyPress "1") {
if (_root.movGame.inPlay == 4) {
_root.movGame.inPlay = 1;
_parent.gotoAndStop(1);
}
}
Symbol 577 Button
on (release, keyPress "5") {
if (_root.blnFX) {
unloadMovieNum (1);
_root.blnFX = 0;
} else {
loadMovieNum ("crowd1.swf", 1);
_root.blnFX = 1;
}
}
Symbol 578 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 579 Button
on (release, keyPress "9") {
_root.sndMusic1.gotoAndPlay(4);
_root.nEndo = 4;
_root.play();
}
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
stop();
Symbol 581 MovieClip Frame 3
stop();
Instance of Symbol 586 MovieClip "dot6" in Symbol 590 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 586 MovieClip "dot7" in Symbol 590 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 586 MovieClip "dot9" in Symbol 590 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 586 MovieClip "dot8" in Symbol 590 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 589 MovieClip "dot1" in Symbol 590 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 589 MovieClip "dot2" in Symbol 590 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 589 MovieClip "dot4" in Symbol 590 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 589 MovieClip "dot3" in Symbol 590 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 589 MovieClip "dot4" in Symbol 590 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 586 MovieClip "dot8" in Symbol 590 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 601 MovieClip Frame 1
man1.gotoAndStop(3);
man1.left = 1;
man1.submovie.movPointer._visible = 0;
girl1.gotoAndStop(3);
girl1.left = 1;
girl1.submovie.movPointer._visible = 0;
Instance of Symbol 536 MovieClip "girl1" in Symbol 601 MovieClip Frame 1
/* no clip actions */
Symbol 601 MovieClip Frame 4
man2.gotoAndStop(2);
man2.left = 1;
man2.submovie.movPointer._visible = 0;
Symbol 601 MovieClip Frame 8
girl2.gotoAndStop(2);
girl2.left = 1;
girl2.submovie.movPointer._visible = 0;
Instance of Symbol 536 MovieClip "girl2" in Symbol 601 MovieClip Frame 8
/* no clip actions */
Symbol 601 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 601 MovieClip Frame 40
man1.gotoAndStop(3);
man1.left = 1;
man1.submovie.movPointer._visible = 0;
girl1.gotoAndStop(3);
girl1.left = 1;
girl1.submovie.movPointer._visible = 0;
Instance of Symbol 325 MovieClip "girl1" in Symbol 601 MovieClip Frame 40
/* no clip actions */
Symbol 601 MovieClip Frame 43
man2.gotoAndStop(2);
man2.left = 1;
man2.submovie.movPointer._visible = 0;
Symbol 601 MovieClip Frame 47
girl2.gotoAndStop(2);
girl2.left = 1;
girl2.submovie.movPointer._visible = 0;
Instance of Symbol 325 MovieClip "girl2" in Symbol 601 MovieClip Frame 47
/* no clip actions */
Symbol 601 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 612 Button
on (release, keyPress "<Enter>") {
if (blnFX) {
sndClick.play();
}
if (blnMusic) {
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(2);
}
gotoAndStop (4);
_level11.gotoAndStop(1);
}
Symbol 613 Button
on (release, keyPress "4") {
if (blnFX) {
sndClick.play();
}
unloadMovieNum (10);
gotoAndStop (4);
}