Frame 1
_focusrect = 0;
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
movLoader.gotoAndStop(Math.round(nPercentLoaded / 2));
movLoader.txtPer = nPercentLoaded;
if (nBytesLoaded >= nBytesTotal) {
var blnFX = 1;
var blnMusic = 1;
gotoAndStop (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
Instance of Symbol 49 MovieClip in Frame 3
on (release) {
getURL ("http://arcadepunk.com", "_blank");
getURL ("http://www.arcadepunk.com/links/click.php?id=1", "_self");
}
Frame 4
if (blnMusic == 1) {
stopAllSounds();
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(4);
}
_root.country1 = 10;
_root.country2 = 10;
stop();
Frame 5
var nLevel = 1;
_root.male = true;
var nP1Gender = 1;
var select2p = false;
_root.flag1.gotoAndStop("ying");
_root.flag2.gotoAndStop("wu");
var ff = new Array(15);
stop();
Frame 6
var select2p = false;
stop();
Frame 7
stop();
Frame 8
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);
_root.xiabanchang = false;
Frame 9
if (blnFX) {
_level2.sndCrowd1.play();
}
movGame.inPlay = -1;
Instance of Symbol 184 MovieClip "movGame" in Frame 9
onClipEvent (load) {
function fChangeControl(pid, teamid) {
if (teamid == 1) {
if (eval ("movP1P" + pid).inControl == 0) {
if (eval ("movP1P" + pid).isPressed[0] == 0) {
eval ("movP1P" + pid).up = 0;
}
if (eval ("movP1P" + pid).isPressed[1] == 0) {
eval ("movP1P" + pid).down = 0;
}
if (eval ("movP1P" + pid).isPressed[2] == 0) {
eval ("movP1P" + pid).left = 0;
}
if (eval ("movP1P" + pid).isPressed[3] == 0) {
eval ("movP1P" + pid).right = 0;
}
i = 1;
while (i <= nPlayers) {
if (i != pid) {
eval ("movP1P" + i).inControl = 0;
eval ("movP1P" + i).up = 0;
eval ("movP1P" + i).down = 0;
eval ("movP1P" + i).left = 0;
eval ("movP1P" + i).right = 0;
eval ("movP1P" + i).blnDribble = 0;
}
i++;
}
}
eval ("movP1P" + pid).inControl = 1;
} else {
if (eval ("movP2P" + pid).inControl == 0) {
i = 1;
while (i <= nPlayers) {
if (i != pid) {
eval ("movP2P" + i).inControl = 0;
eval ("movP2P" + i).up = 0;
eval ("movP2P" + i).down = 0;
eval ("movP2P" + i).left = 0;
eval ("movP2P" + i).right = 0;
eval ("movP2P" + i).blnDribble = 0;
}
i++;
}
}
eval ("movP2P" + pid).inControl = 1;
}
}
function fKickBall(dir, pow, team, x, y, pid, shottype) {
_root.movP1Bar._alpha = 0;
_root.movP2Bar._alpha = 0;
_root.movP1Bar._xscale = 1;
_root.movP2Bar._xscale = 1;
if (pow <= 25) {
_root.sndKickQuiet.play();
} else {
_root.sndKick.play();
}
nBallDir = dir;
if (((((pid != 5) && (team == 1)) && (blnP1GoingUp == 1)) && (((dir == 7) || (dir == 1)) || (dir == 2))) && (y < -630)) {
pow = 5;
}
if (((((pid != 5) && (team == 1)) && (blnP1GoingUp == 2)) && (((dir == 4) || (dir == 5)) || (dir == 6))) && (y > 630)) {
pow = 5;
}
if (((((pid != 5) && (team == 2)) && (blnP1GoingUp == 2)) && (((dir == 7) || (dir == 1)) || (dir == 2))) && (y < -630)) {
pow = 5;
}
if (((((pid != 5) && (team == 2)) && (blnP1GoingUp == 1)) && (((dir == 4) || (dir == 5)) || (dir == 6))) && (y > 630)) {
pow = 5;
}
switch (dir) {
case 1 :
nAng = 270;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x > (x - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._x < (x + (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= y)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = (eval ((("movP" + team) + "P") + i)._y - y) - 100;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 2 :
nAng = 315;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x > x)) && (eval ((("movP" + team) + "P") + i)._x < (x + (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= y)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = (eval ((("movP" + team) + "P") + i)._y - y) - 100;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 3 :
nAng = 0;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x >= x)) && (eval ((("movP" + team) + "P") + i)._y > (y - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y < (y + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 4 :
nAng = 45;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x > x)) && (eval ((("movP" + team) + "P") + i)._y >= y)) && (eval ((("movP" + team) + "P") + i)._y < (y + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 5 :
nAng = 90;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._y >= y)) && (eval ((("movP" + team) + "P") + i)._x >= (x - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._x < (x + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 6 :
nAng = 135;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._y >= y)) && (eval ((("movP" + team) + "P") + i)._x >= (x - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._x < x)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 7 :
nAng = 180;
if (shottype == 1) {
i = 1;
while (i <= nPlayers) {
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x <= x)) && (eval ((("movP" + team) + "P") + i)._y >= (y - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= (y + (pow * 100)))) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
}
}
break;
case 8 :
nAng = 225;
if (shottype != 1) {
break;
}
i = 1;
for(;;){
if (i > nPlayers) {
break;
}
if ((((i != pid) && (eval ((("movP" + team) + "P") + i)._x <= x)) && (eval ((("movP" + team) + "P") + i)._y >= (y - (pow * 100)))) && (eval ((("movP" + team) + "P") + i)._y <= y)) {
diffX = eval ((("movP" + team) + "P") + i)._x - x;
diffY = eval ((("movP" + team) + "P") + i)._y - y;
radians = Math.atan2(diffY, diffX);
if (diffY < 0) {
radians = radians + (Math.PI*2);
}
nAng = Math.floor(radians / (Math.PI/180));
break;
}
i++;
};
}
if ((nAng >= 0) && (nAng < 90)) {
adj = Math.cos(0.01745329 * nAng) * pow;
opp = Math.tan(0.01745329 * nAng) * adj;
movBall.nXSpd = adj;
movBall.nYSpd = opp;
} else if ((nAng >= 90) && (nAng < 180)) {
nAng = nAng - 90;
adj = (-Math.cos(0.01745329 * nAng)) * pow;
opp = (-Math.tan(0.01745329 * nAng)) * adj;
movBall.nXSpd = -opp;
movBall.nYSpd = -adj;
} else if ((nAng >= 180) && (nAng < 270)) {
nAng = nAng - 180;
adj = Math.cos(0.01745329 * nAng) * pow;
opp = Math.tan(0.01745329 * nAng) * adj;
movBall.nXSpd = -adj;
movBall.nYSpd = -opp;
} else if ((nAng >= 270) && (nAng < 360)) {
nAng = nAng - 270;
adj = (-Math.cos(0.01745329 * nAng)) * pow;
opp = (-Math.tan(0.01745329 * 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.77778;
var yRatio = 15.10204;
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 192 MovieClip "movTimer" in Frame 9
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 206 MovieClip "movScores" in Frame 9
onClipEvent (load) {
txtP1Score = _root.nP1Score;
txtP2Score = _root.nP2Score;
}
Frame 21
stop();
Instance of Symbol 209 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();
Instance of Symbol 211 MovieClip in Frame 22
onClipEvent (keyDown) {
k = Key.getCode();
if ((k == 70) || (k == 75)) {
this._visible = false;
}
}
Frame 28
if ((nEndo == 2) || (nEndo == 3)) {
if (blnFX) {
sndWhistle.play();
}
}
Frame 36
if (nEndo == 1) {
gotoAndPlay ("PLAY");
} else if (nEndo == 2) {
nKickingOff = 1;
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) {
_root.xiabanchang = true;
gotoAndPlay ("PLAY");
}
Frame 38
gotoAndPlay (37);
Frame 39
txtScore = (nP1Score + " - ") + nP2Score;
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(4);
if (_root.nPlayers == 1) {
if (_root.nP1Score > _root.nP2Score) {
if (_root.nLevel == 3) {
_root.ff[14] = _root.ff[0];
re.gotoAndStop(2);
} else {
if (_root.nLevel == 1) {
_root.ff[8] = _root.ff[0];
_root.ff[9] = _root.ff[3];
_root.ff[10] = _root.ff[5];
_root.ff[11] = _root.ff[6];
_root.country2 = _root.ff[3];
} else {
_root.ff[12] = _root.ff[0];
_root.ff[13] = _root.ff[6];
_root.country2 = _root.ff[6];
}
_root.nLevel++;
}
} else if (_root.nP1Score < _root.nP2Score) {
re.gotoAndStop(3);
} else {
re.gotoAndStop(4);
}
} else {
re.gotoAndStop(5);
}
stop();
Frame 40
stop();
Symbol 3 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 4 Button
on (keyPress "5") {
if (_root.blnFX) {
unloadMovieNum (1);
_root.blnFX = 0;
} else {
if (_root.movGame.inPlay == 1) {
}
_root.blnFX = 1;
}
}
Symbol 7 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 3
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 3
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 23 Button
on (release) {
getURL ("http://arcadepunk.com", "_blank");
getURL ("http://www.arcadepunk.com/links/click.php?id=1", "_self");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
this._visible = false;
Symbol 49 MovieClip Frame 1
Symbol 49 MovieClip Frame 228
_root.gotoAndStop(4);
Symbol 57 Button
on (release) {
if (blnFX) {
sndClick.play();
}
_root.gotoAndPlay("inc");
}
Symbol 61 Button
on (release) {
if (_root.blnMusic) {
stopAllSounds();
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
}
if (blnFX) {
sndClick.play();
}
var nPlayers = 2;
var nLevel = 1;
var nP1Gender = 1;
gotoAndPlay (6);
}
Symbol 65 Button
on (release) {
var nPlayers = 1;
if (_root.blnMusic) {
stopAllSounds();
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
}
if (blnFX) {
sndClick.play();
}
play();
}
Symbol 70 Button
on (release) {
_root.select2._x = 165;
_root.select2._y = 220;
if (select2p) {
flag2.gotoAndStop("ying");
} else {
flag1.gotoAndStop("ying");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 73 Button
on (release) {
_root.select2._x = 255;
_root.select2._y = 220;
if (select2p) {
flag2.gotoAndStop("xxl");
} else {
flag1.gotoAndStop("xxl");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 76 Button
on (release) {
_root.select2._x = 345;
_root.select2._y = 220;
if (select2p) {
flag2.gotoAndStop("ao");
} else {
flag1.gotoAndStop("ao");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 79 Button
on (release) {
_root.select2._x = 165;
_root.select2._y = 320;
if (select2p) {
flag2.gotoAndStop("jia");
} else {
flag1.gotoAndStop("jia");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 82 Button
on (release) {
_root.select2._x = 255;
_root.select2._y = 270;
if (select2p) {
flag2.gotoAndStop("zhong");
} else {
flag1.gotoAndStop("zhong");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 85 Button
on (release) {
_root.select2._x = 255;
_root.select2._y = 320;
if (select2p) {
flag2.gotoAndStop("mei");
} else {
flag1.gotoAndStop("mei");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 88 Button
on (release) {
_root.select2._x = 435;
_root.select2._y = 220;
if (select2p) {
flag2.gotoAndStop("flb");
} else {
flag1.gotoAndStop("flb");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 91 Button
on (release) {
_root.select2._x = 165;
_root.select2._y = 270;
if (select2p) {
flag2.gotoAndStop("yi");
} else {
flag1.gotoAndStop("yi");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 94 Button
on (release) {
_root.select2._x = 435;
_root.select2._y = 270;
if (select2p) {
flag2.gotoAndStop("ri");
} else {
flag1.gotoAndStop("ri");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 97 Button
on (release) {
_root.select2._x = 345;
_root.select2._y = 270;
if (select2p) {
flag2.gotoAndStop("he");
} else {
flag1.gotoAndStop("he");
}
if (blnFX) {
sndClick.play();
}
}
Symbol 101 Button
on (release) {
if (blnFX) {
sndClick.play();
}
_root.gotoAndStop(4);
}
Symbol 105 Button
on (release) {
_root.country1 = flag1._currentframe;
if (flag2._currentframe == 11) {
_root.randomcountry.play();
} else {
_root.country2 = flag2._currentframe;
gotoAndPlay ("INITGAME");
}
}
Symbol 109 Button
on (release) {
_root.male = true;
_root.select1._y = 230;
if (blnFX) {
sndClick.play();
}
}
Symbol 113 Button
on (release) {
_root.male = false;
_root.select1._y = 310;
if (blnFX) {
sndClick.play();
}
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
i = 1;
while (i < 10) {
_root.ff[i] = i + 1;
i++;
}
_root.ff[0] = _root.country1;
_root.ff[_root.country1 - 1] = 1;
i = 1;
while (i < 20) {
var ran1 = (random(9) + 1);
var ran2 = (random(9) + 1);
tmp = _root.ff[ran1];
_root.ff[ran1] = _root.ff[ran2];
_root.ff[ran2] = tmp;
i++;
}
i = 8;
while (i < 15) {
_root.ff[i] = 11;
i++;
}
_root.flag2.gotoAndStop(_root.ff[1]);
_root.country2 = _root.flag2._currentframe;
Symbol 121 MovieClip Frame 25
_root.gotoAndPlay(7);
Symbol 124 Button
on (release) {
select2p = false;
_root.select3._x = 180;
_root.select3._y = 160;
if (blnFX) {
sndClick.play();
}
}
Symbol 125 Button
on (release) {
select2p = true;
_root.select3._x = 320;
_root.select3._y = 160;
if (blnFX) {
sndClick.play();
}
}
Symbol 127 MovieClip Frame 1
i = 1;
while (i < 16) {
this["f" + i].gotoAndStop(_root.ff[i - 1]);
i++;
}
stop();
Symbol 131 Button
on (release) {
_root.gotoAndPlay("INITGAME");
}
Symbol 152 MovieClip Frame 1
if (((((((((this._parent._parent._parent._name == "player1") || (this._parent._parent._parent._name == "player2")) || (this._parent._parent._parent._name == "computer1")) || (this._parent._parent._parent._name == "computer2")) || (this._parent._parent._parent._name == "movP1P1")) || (this._parent._parent._parent._name == "movP1P2")) || (this._parent._parent._parent._name == "movP1P3")) || (this._parent._parent._parent._name == "movP1P4")) || (this._parent._parent.p == 2)) {
if (_root.xiabanchang) {
this.gotoAndStop(_root.country2 + 1);
} else {
this.gotoAndStop(_root.country1 + 1);
}
} else if (_root.xiabanchang) {
this.gotoAndStop(_root.country1 + 1);
} else {
this.gotoAndStop(_root.country2 + 1);
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 3
stop();
Symbol 156 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 3
stop();
Symbol 157 MovieClip Frame 4
stop();
Symbol 169 MovieClip Frame 1
_parent.nDir = 3;
stop();
Symbol 169 MovieClip Frame 2
_parent.nDir = 4;
stop();
Symbol 169 MovieClip Frame 3
_parent.nDir = 5;
stop();
Symbol 169 MovieClip Frame 4
_parent.nDir = 6;
stop();
Symbol 169 MovieClip Frame 5
_parent.nDir = 7;
stop();
Symbol 169 MovieClip Frame 6
_parent.nDir = 8;
stop();
Symbol 169 MovieClip Frame 7
_parent.nDir = 1;
stop();
Symbol 169 MovieClip Frame 8
_parent.nDir = 2;
stop();
Symbol 169 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 169 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 169 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 169 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 169 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 169 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 169 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 169 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 169 MovieClip Frame 17
stop();
Symbol 169 MovieClip Frame 18
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
stop();
Symbol 170 MovieClip Frame 3
stop();
Symbol 170 MovieClip Frame 4
stop();
Symbol 172 MovieClip Frame 1
_parent.nDir = 3;
stop();
Symbol 172 MovieClip Frame 2
_parent.nDir = 4;
stop();
Symbol 172 MovieClip Frame 3
_parent.nDir = 5;
stop();
Symbol 172 MovieClip Frame 4
_parent.nDir = 6;
stop();
Symbol 172 MovieClip Frame 5
_parent.nDir = 7;
stop();
Symbol 172 MovieClip Frame 6
_parent.nDir = 8;
stop();
Symbol 172 MovieClip Frame 7
_parent.nDir = 1;
stop();
Symbol 172 MovieClip Frame 8
_parent.nDir = 2;
stop();
Symbol 172 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 172 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 172 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 172 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 172 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 172 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 172 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 172 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 172 MovieClip Frame 17
stop();
Symbol 172 MovieClip Frame 18
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 173 MovieClip Frame 3
stop();
Symbol 173 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 175 MovieClip Frame 3
stop();
Symbol 175 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 5
stop();
Symbol 175 MovieClip Frame 6
stop();
Symbol 175 MovieClip Frame 7
stop();
Symbol 175 MovieClip Frame 8
stop();
Symbol 175 MovieClip Frame 9
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 11
stop();
Symbol 175 MovieClip Frame 12
stop();
Symbol 175 MovieClip Frame 13
stop();
Symbol 175 MovieClip Frame 14
stop();
Symbol 175 MovieClip Frame 15
stop();
Symbol 175 MovieClip Frame 16
stop();
Symbol 175 MovieClip Frame 17
stop();
Symbol 175 MovieClip Frame 18
stop();
Instance of Symbol 156 MovieClip "goalie2" in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this.p = 1;
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 157 MovieClip "goalie1" in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this.p = 2;
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 157 MovieClip "goalie1player" in Symbol 184 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) {
this.p = 2;
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 = 75;
var K2 = 76;
var Pbar = 1;
} else if (_parent.blnP1GoingUp == 1) {
var K1 = 75;
var K2 = 76;
var Pbar = 1;
} else {
var K1 = 70;
var K2 = 71;
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 156 MovieClip "goalie2player" in Symbol 184 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) {
this.p = 1;
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 = 75;
var K2 = 76;
var Pbar = 1;
} else if (_parent.blnP1GoingUp == 1) {
var K1 = 70;
var K2 = 71;
var Pbar = 2;
} else {
var K1 = 75;
var K2 = 76;
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 170 MovieClip "player1" in Symbol 184 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (((K == 75) && (blnDribble)) && (!shoot)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 1);
}
if ((K == 75) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((K == 76) && (blnDribble)) && (!pass)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 2);
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((K == 75) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 76) && (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 170 MovieClip "player2" in Symbol 184 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (((K == 75) && (blnDribble)) && (!shoot)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 1);
}
if ((K == 75) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((K == 76) && (blnDribble)) && (!pass)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 2);
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((K == 75) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 76) && (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 170 MovieClip "computer1" in Symbol 184 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 170 MovieClip "computer2" in Symbol 184 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 173 MovieClip "player3" in Symbol 184 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nP1Gender == 1) && (_root.nPlayers == 1))) {
if (((K == 70) && (blnDribble)) && (!shoot)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 1);
}
if ((K == 70) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((K == 71) && (blnDribble)) && (!pass)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 2);
}
} 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 == 70) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 71) && (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 173 MovieClip "player4" in Symbol 184 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if ((_root.nPlayers == 2) || ((_root.nP1Gender == 1) && (_root.nPlayers == 1))) {
if (((K == 70) && (blnDribble)) && (!shoot)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 1);
pass = 1;
}
if ((K == 70) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((K == 71) && (blnDribble)) && (!pass)) {
_parent.fKickBall(nDir, 30, 1, _x, _y, nPlayerPos, 2);
}
} 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 == 70) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 71) && (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 173 MovieClip "computer3" in Symbol 184 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 173 MovieClip "computer4" in Symbol 184 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 175 MovieClip "ball" in Symbol 184 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 183 MovieClip "movKeys" in Symbol 184 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 == 87) {
isPressed[4] = 1;
}
if (K == 83) {
isPressed[5] = 1;
}
if (K == 65) {
isPressed[6] = 1;
}
if (K == 68) {
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 == 87) {
isPressed[0] = 1;
}
if (K == 83) {
isPressed[1] = 1;
}
if (K == 65) {
isPressed[2] = 1;
}
if (K == 68) {
isPressed[3] = 1;
}
}
}
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 == 87) {
isPressed[4] = 0;
}
if (K == 83) {
isPressed[5] = 0;
}
if (K == 65) {
isPressed[6] = 0;
}
if (K == 68) {
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 == 87) {
isPressed[0] = 0;
}
if (K == 83) {
isPressed[1] = 0;
}
if (K == 65) {
isPressed[2] = 0;
}
if (K == 68) {
isPressed[3] = 0;
}
}
}
onClipEvent (load) {
var isPressed = new Array(0, 0, 0, 0, 0, 0, 0, 0);
var blnPaused = 0;
}
Symbol 187 MovieClip Frame 97
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.country2);
}
Instance of Symbol 202 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.country1);
}
Instance of Symbol 118 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.country1);
}
Instance of Symbol 118 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.country2);
}
Symbol 209 MovieClip Frame 1
gotoAndPlay (39);
man1.gotoAndStop(3);
man1.left = 1;
man1.submovie.movPointer._visible = 0;
girl1.gotoAndStop(3);
girl1.left = 1;
girl1.submovie.movPointer._visible = 0;
Symbol 209 MovieClip Frame 4
man2.gotoAndStop(2);
man2.left = 1;
man2.submovie.movPointer._visible = 0;
Symbol 209 MovieClip Frame 8
girl2.gotoAndStop(2);
girl2.left = 1;
girl2.submovie.movPointer._visible = 0;
Symbol 209 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 209 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;
Symbol 209 MovieClip Frame 43
man2.gotoAndStop(2);
man2.left = 1;
man2.submovie.movPointer._visible = 0;
Symbol 209 MovieClip Frame 47
girl2.gotoAndStop(2);
girl2.left = 1;
girl2.submovie.movPointer._visible = 0;
Symbol 209 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 219 Button
on (release) {
_root.gotoAndPlay("INITGAME");
}
Symbol 224 Button
on (release, keyPress "<Enter>") {
if (blnFX) {
sndClick.play();
}
if (blnMusic) {
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(2);
}
_root.gotoAndStop(4);
_level11.gotoAndStop(1);
}
Symbol 228 MovieClip Frame 1
stop();