Frame 1
Stage.scaleMode = "noscale";
Stage.showMenu = 0;
fscommand ("fullscreen", true);
stop();
Instance of Symbol 3 MovieClip [PreloaderBar] in Frame 1
//component parameters
onClipEvent (initialize) {
s = "Horizontally";
d = "Progressive";
w = 92;
h = 10;
brc = 15660794 /* 0xEEF6FA */;
bxc = 1149378 /* 0x1189C2 */;
bkc = 5351890 /* 0x51A9D2 */;
tar_mc = "_root";
}
Frame 84
stop();
Frame 85
ft = 0;
Frame 86
_focusrect = 0;
var blnFX = 1;
var blnMusic = 1;
gotoAndStop (88);
Frame 88
if (blnMusic == 1) {
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(4);
}
stop();
Frame 89
stop();
Frame 90
play();
nP1Gender = 1;
Frame 91
var nP1PlayDir = 1;
var nKickingOff = 1;
var nP1Score = 0;
var nP2Score = 0;
var nTotalMins = 0;
var nEndo = 0;
if (blnMusic != 1) {
blnMusic = 0;
} else {
blnMusic = -1;
}
if (nLevel != 1) {
if (nLevel != 2) {
if (nLevel == 3) {
var arrSpeeds = new Array(8.5, 9, 10, 9);
var nGoalieMinSpd = 9;
var nGoalieMaxSpd = 30;
}
} else {
var arrSpeeds = new Array(8.5, 9, 7, 7);
var nGoalieMinSpd = 7;
var nGoalieMaxSpd = 25;
}
} else {
var arrSpeeds = new Array(8.5, 9, 4, 4);
var nGoalieMinSpd = 3;
var nGoalieMaxSpd = 12;
}
var arrP1Boxes = new Array();
var arrP2Boxes = new Array();
arrP1Boxes[1] = new Array(-620, -620, 80, 100);
arrP1Boxes[2] = new Array(-620, -100, 80, 620);
arrP1Boxes[3] = new Array(0, -620, 620, 100);
arrP1Boxes[4] = new Array(0, -100, 620, 620);
arrP1Boxes[5] = new Array(350, -200, 620, 200);
arrP2Boxes[1] = new Array(-80, -620, 620, 100);
arrP2Boxes[2] = new Array(-80, 100, 620, 620);
arrP2Boxes[3] = new Array(-620, -620, -100, 100);
arrP2Boxes[4] = new Array(-620, -100, -100, 620);
arrP2Boxes[5] = new Array(350, -200, 480, 200);
Frame 92
if (ft == 1) {
}
if (blnFX) {
_level2.sndCrowd1.play();
}
movGame.inPlay = -1;
_root.movMsgs.gotoAndStop(1);
Instance of Symbol 148 MovieClip "iftime" in Frame 92
onClipEvent (load) {
if (_root.nPlayers == 2) {
trace("2");
_root.time.gotoAndStop(1);
setProperty("_root.time", _visible , "0");
}
if (_root.nPlayers == 1) {
trace("1");
_root.time2.gotoAndStop(1);
setProperty("_root.time2", _visible , "0");
}
}
Instance of Symbol 151 MovieClip "movGame" in Frame 92
onClipEvent (load) {
function fChangeControl(pid, teamid) {
if (teamid != 1) {
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;
} else {
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;
}
}
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.sndKick.play();
} else {
_root.sndKickQuiet.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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
break;
}
i++;
}
}
break;
case 6 :
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
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 + 6.28318500518799;
}
nAng = Math.floor(radians / 0.0174532905220985);
break;
}
i++;
};
}
if (!((nAng >= 0) && (nAng < 90))) {
if (!((nAng >= 90) && (nAng < 180))) {
if (!((nAng >= 180) && (nAng < 270))) {
if ((nAng >= 270) && (nAng < 360)) {
nAng = nAng - 270;
adj = (-Math.cos(0.0174532905220985 * nAng)) * pow;
opp = (-Math.tan(0.0174532905220985 * nAng)) * adj;
movBall.nXSpd = opp;
movBall.nYSpd = adj;
}
} else {
nAng = nAng - 180;
adj = Math.cos(0.0174532905220985 * nAng) * pow;
opp = Math.tan(0.0174532905220985 * nAng) * adj;
movBall.nXSpd = -adj;
movBall.nYSpd = -opp;
}
} else {
nAng = nAng - 90;
adj = (-Math.cos(0.0174532905220985 * nAng)) * pow;
opp = (-Math.tan(0.0174532905220985 * nAng)) * adj;
movBall.nXSpd = -opp;
movBall.nYSpd = -adj;
}
} else {
adj = Math.cos(0.0174532905220985 * nAng) * pow;
opp = Math.tan(0.0174532905220985 * nAng) * adj;
movBall.nXSpd = adj;
movBall.nYSpd = opp;
}
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.100000001490116;
}
if (nYS == 0) {
nYS = 0.100000001490116;
}
if (nXS < nYS) {
if (nYS > nXS) {
movBall.nHighPoint = nYS;
movBall.nHighCount = 0;
movBall.blnUpwards = 1;
movBall.nZSpd = 4;
}
} else {
movBall.nHighPoint = nXS;
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.7777805328369;
var yRatio = 15.1020402908325;
var nPlayers = 4;
var friction = 0.959999978542328;
var friction2 = 0.850000023841858;
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) {
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);
} else {
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 if (blnP1GoingUp != 1) {
if (_root.nP1Gender != 1) {
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 {
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 if (_root.nP1Gender != 1) {
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 {
duplicateMovieClip ("player1", "movP1P1", 101);
duplicateMovieClip ("player1", "movP1P2", 102);
duplicateMovieClip ("player1", "movP1P3", 103);
duplicateMovieClip ("player1", "movP1P4", 104);
duplicateMovieClip ("goalie1player", "movP1P5", 180);
duplicateMovieClip ("computer4", "movP2P1", 106);
duplicateMovieClip ("computer4", "movP2P2", 107);
duplicateMovieClip ("computer4", "movP2P3", 108);
duplicateMovieClip ("computer4", "movP2P4", 109);
duplicateMovieClip ("goalie2", "movP2P5", 110);
}
movP1P1.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) {
movP1P1.submovie.movPointer._alpha = 0;
} else {
movP2P1.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 = -250;
movP1P1._y = 110;
movP1P2._x = 250;
movP1P2._y = 90;
movP2P1._x = -20;
movP2P1._y = 5;
movP2P2._x = 45;
movP2P2._y = 5;
} else {
movP1P1._x = -20;
movP1P1._y = 5;
movP1P2._x = 45;
movP1P2._y = 5;
movP2P1._x = -250;
movP2P1._y = -110;
movP2P2._x = 250;
movP2P2._y = -90;
}
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) {
if (inPlay != 1) {
if (inPlay != 2) {
if (inPlay != 3) {
if (inPlay == 4) {
_root.movMsgs.gotoAndStop(3);
}
} else {
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 {
nGCount++;
if (nGCount == 10) {
_root.movMsgs.gotoAndStop(2);
}
if (nGCount == 11) {
if (nTeamScored == 1) {
if (blnP1GoingUp != 1) {
_root.nKickingOff = 1;
} else {
_root.nKickingOff = 2;
}
}
if (nTeamScored == 2) {
if (blnP1GoingUp != 1) {
_root.nKickingOff = 2;
} else {
_root.nKickingOff = 1;
}
_root.nP2Score++;
}
_root.movScores.txtP1Score = _root.nP1Score;
_root.movScores.txtP2Score = _root.nP2Score;
}
if (nGCount < 60) {
if (nGCount > 60) {
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 {
_root.play();
}
}
} else {
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;
}
}
}
}
Instance of Symbol 216 MovieClip in Frame 92
onClipEvent (load) {
var blnDone = 0;
if (_root.nP1Gender != 1) {
if (_root.nP1PlayDir != 1) {
gotoAndPlay (85);
} else {
gotoAndPlay (124);
}
} else if (_root.nP1PlayDir != 1) {
gotoAndPlay (124);
} else {
gotoAndPlay (85);
}
}
onClipEvent (enterFrame) {
if (blnDone) {
_root.nextFrame();
}
}
Instance of Symbol 227 MovieClip "time2" in Frame 92
onClipEvent (load) {
_root.time2.sec = 30;
_root.time2.min = 1;
}
Instance of Symbol 236 MovieClip "time" in Frame 92
onClipEvent (load) {
_root.time.sec = 30;
_root.time.min = 1;
}
Instance of Symbol 242 MovieClip "movScores" in Frame 92
onClipEvent (load) {
txtP1Score = _root.nP1Score;
txtP2Score = _root.nP2Score;
}
Frame 106
if (nEndo == 1) {
gotoAndStop (106);
}
Frame 107
stop();
Frame 108
if (blnFX) {
snWhistle.play();
}
movGame.inPlay = 0;
stop();
Frame 114
if ((nEndo == 2) || (nEndo == 3)) {
if (blnFX) {
sndWhistle.play();
}
}
Frame 122
if (nEndo != 1) {
if (nEndo != 2) {
if (nEndo != 3) {
if (nEndo == 4) {
gotoAndStop (88);
}
} else {
gotoAndStop (123);
}
} else {
nKickingOff = 1;
var nHTCount = 0;
gotoAndPlay (121);
}
} else {
gotoAndPlay (92);
}
unloadMovieNum (1);
Frame 123
txtScore = (nP1Score + " - ") + nP2Score;
nHTCount++;
if (nHTCount == 100) {
gotoAndPlay (92);
}
gotoAndStop ("scores");
Frame 124
gotoAndPlay (121);
Frame 126
ft = 1;
Frame 132
gotoAndPlay ("PLAY");
Frame 207
_root.hu = _root.nP1Score;
_root.pc = _root.nP2Score;
_root.punti = _root.nP1Score - _root.nP2Score;
_root.score = (_root.nP1Score - _root.nP2Score) * 100;
stop();
Frame 208
stop();
direc = "games/hockey/";
showScores = function () {
var _loc1 = 5;
while (_loc1 > 0) {
var n = scoreboard_lv["name" + (page + _loc1)];
var s = scoreboard_lv["score" + (page + _loc1)];
var _loc3 = this[("line" + _loc1) + "_mc"];
var _loc2 = this[("line" + _loc1) + "bg_mc"];
_loc3.rank_txt.text = (_loc2.rank_txt.text = (page + _loc1) + ".");
_loc3.name_txt.text = (_loc2.name_txt.text = (n.length ? (n.toUpperCase()) : "-"));
_loc3.score_txt.text = (_loc2.score_txt.text = (s.length ? (s) : "-"));
_loc3._visible = (_loc2._visible = true);
loading_mc._visible = false;
_loc1--;
}
};
loadScores = function (num) {
var _loc2 = this;
next_btn._visible = (back_btn._visible = (slug_btn.enabled = (worm_btn.enabled = (python_btn.enabled = false))));
slug_mc._alpha = (worm_mc._alpha = (python_mc._alpha = 40));
switch (num) {
case 2 :
slug_mc._alpha = 100;
break;
case 1 :
worm_mc._alpha = 100;
break;
default :
python_mc._alpha = 100;
}
var _loc1 = 5;
while (_loc1 > 0) {
_loc2[("line" + _loc1) + "_mc"]._visible = (_loc2[("line" + _loc1) + "bg_mc"]._visible = false);
_loc1--;
}
loading_mc.gotoAndStop(1);
loading_mc._visible = true;
page = 0;
maxScore = 100;
scoreboard_lv = new LoadVars();
if ((Score > 0) && (game_so.data.playerName.length > 0)) {
scoreboard_lv.score = Score;
scoreboard_lv.name = game_so.data.playerName.toLowerCase();
}
scoreboard_lv.game = "winter_hockey" + (3 - num);
scoreboard_lv.sendAndLoad(direc + "wintergames.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (!success) {
loading_mc.errorMsg = "Non riesco ad accedere al file php.";
loading_mc.gotoAndStop(2);
} else if (!Boolean(scoreboard_lv.success)) {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
} else {
next_btn._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
}
switch (num) {
case 2 :
worm_btn.enabled = (python_btn.enabled = true);
return;
case 1 :
slug_btn.enabled = (python_btn.enabled = true);
return;
default :
slug_btn.enabled = (worm_btn.enabled = true);
}
};
score = 0;
};
back_btn.onPress = function () {
page = page - 5;
if (page < 0) {
page = 0;
}
if (page < 5) {
back_btn._visible = false;
}
next_btn._visible = true;
showScores();
};
next_btn.onPress = function () {
page = page + 5;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 10)) {
next_btn._visible = false;
}
back_btn._visible = true;
showScores();
};
newGame_btn.onRelease = function () {
gotoAndStop (209);
};
slug_btn.onRollOver = function () {
slug_mc._alpha = 100;
};
slug_btn.onRollOut = (slug_btn.onDragOut = function () {
slug_mc._alpha = 40;
});
slug_btn.onRelease = function () {
loadScores(2);
};
worm_btn.onRollOver = function () {
worm_mc._alpha = 100;
};
worm_btn.onRollOut = (worm_btn.onDragOut = function () {
worm_mc._alpha = 40;
});
worm_btn.onRelease = function () {
loadScores(1);
};
python_btn.onRollOver = function () {
python_mc._alpha = 100;
};
python_btn.onRollOut = (python_btn.onDragOut = function () {
python_mc._alpha = 40;
});
python_btn.onRelease = function () {
loadScores(0);
};
loadScores(level);
Frame 209
stop();
Symbol 1 MovieClip [__Packages.Score] Frame 0
#initclip
if (!_global.Score) {
var _local1 = function () {
super();
this._numDropsLeft = this._numDropsBegin;
this.updateScore(this._numDropsLeft);
this.updateLevel(this._numLevels);
};
_global.Score = _local1;
//Score extends MovieClip
_local1.prototype;
_local1.prototype.addLevel = function (num) {
this._numLevels = this._numLevels + num;
if (this._numLevels > this._numLevelsMax) {
this._gameWon = true;
this._numLevels = this._numLevelsMax;
}
this.updateLevel(this._numLevels);
this.updateScore(this._numDropsLeft);
};
_local1.prototype.addDrop = function (num) {
this._numDropsLeft = this._numDropsLeft + num;
if (this._numDropsLeft > this._numDropsMax) {
this._numDropsLeft = this._numDropsMax;
}
this.updateScore(this._numDropsLeft);
};
_local1.prototype.getNumDropsLeft = function () {
return(this._numDropsLeft);
};
_local1.prototype.dropsLeft = function () {
if (this._numDropsLeft > 0) {
return(false);
}
this._numDropsLeft = 0;
return(true);
};
_local1.prototype.reduceDrops = function (num) {
this._numDropsLeft = this._numDropsLeft - num;
this.updateScore(this._numDropsLeft);
};
_local1.prototype.addBurst = function () {
this._numBursts = this._numBursts + 1;
if ((this._numBursts % this._comboMin) == 0) {
this.addDrop(1);
_root._dropBowl.gotoAndPlay("blink");
this.updateScore(this._numDropsLeft);
_root.gameSounds._bonusDing.start();
}
};
_local1.prototype.clearCombos = function () {
this._numBursts = 0;
};
_local1.prototype.resetScore = function () {
this._numDropsLeft = this._numDropsBegin;
this.updateScore(this._numDropsLeft);
this._numLevels = 1;
this.updateLevel(this._numLevels);
};
_local1.prototype.updateScore = function (new_number) {
if (new_number <= 3) {
_root._dropBowl.gotoAndPlay("red");
}
if (new_number < 10) {
_root._dropBowl._dropCounter.gotoAndStop("1digit");
var _local8 = new_number;
_root._dropBowl._dropCounter.dropDigit1MC.gotoAndStop(_local8 + 1);
} else {
_root._dropBowl._dropCounter.gotoAndStop("2digit");
var _local8 = Math.abs(Math.floor(new_number / 10));
var _local7 = Math.abs(new_number % 10);
_root._dropBowl._dropCounter.dropDigit1MC.gotoAndStop(_local8 + 1);
_root._dropBowl._dropCounter.dropDigit2MC.gotoAndStop(_local7 + 1);
}
this.calibrateLiquid(new_number);
};
_local1.prototype.calibrateLiquid = function (num) {
if (num < 20) {
_root._dropBowl._liquidFront.gotoAndStop(num);
_root._dropBowl._liquidBack.gotoAndStop(num);
} else {
_root._dropBowl._liquidFront.gotoAndStop(20);
_root._dropBowl._liquidBack.gotoAndStop(20);
}
};
_local1.prototype.updateLevel = function (new_number) {
if (new_number < 10) {
_root._boardCounter.gotoAndStop("1digit");
var _local8 = new_number;
_root._boardCounter.levelDigit1MC.gotoAndStop(_local8 + 1);
} else {
_root._boardCounter.gotoAndStop("2digits");
var _local8 = Math.abs(Math.floor(new_number / 10));
var _local7 = Math.abs(new_number % 10);
_root._boardCounter.levelDigit1MC.gotoAndStop(_local8 + 1);
_root._boardCounter.levelDigit2MC.gotoAndStop(_local7 + 1);
}
};
_local1.prototype.showfinalLevels = function (new_number) {
if (this._gameWon == true) {
new_number = this._numLevelsMax;
}
if (new_number < 10) {
_root.gameController._messageClip._totalCleared.gotoAndStop("1digit");
var _local8 = new_number;
_root.gameController._messageClip._totalCleared.levelDigit1MC.gotoAndStop(_local8 + 1);
} else {
_root.gameController._messageClip._totalCleared.gotoAndStop("2digits");
var _local8 = Math.abs(Math.floor(new_number / 10));
var _local7 = Math.abs(new_number % 10);
_root.gameController._messageClip._totalCleared.levelDigit1MC.gotoAndStop(_local8 + 1);
_root.gameController._messageClip._totalCleared.levelDigit2MC.gotoAndStop(_local7 + 1);
}
if (new_number == 1) {
_root.gameController._messageClip._boardsCleared.gotoAndStop(2);
}
};
_local1.prototype._numBursts = 0;
_local1.prototype._numDropsBegin = 10;
_local1.prototype._numDropsMax = 99;
_local1.prototype._comboMin = 3;
_local1.prototype._numLevels = 1;
_local1.prototype._numLevelsMax = 99;
_local1.prototype._gameWon = false;
(ASSetPropFlags(_global.Score.prototype, null, 1));// not popped
}
#endinitclip
Symbol 2 MovieClip [__Packages.Timer] Frame 0
#initclip
if (!_global.Timer) {
var _local1 = function () {
super();
};
_global.Timer = _local1;
//Timer extends MovieClip
_local1.prototype;
_local1.prototype.startTimer = function () {
this.minutes = 0;
this.seconds = 0;
this.milliseconds = 0;
this.interval = setInterval(this, "doTimer", 100);
};
_local1.prototype.doTimer = function () {
this.milliseconds = this.milliseconds + 100;
if (this.milliseconds == 1000) {
this.seconds = this.seconds + 1;
this.milliseconds = 0;
if (this.seconds == 60) {
this.minutes = this.minutes + 1;
this.seconds = 0;
}
}
if (this.minutes > 9) {
this.minutes_string = String(this.minutes);
} else {
this.minutes_string = String("0" + this.minutes);
}
if (this.seconds > 9) {
this.seconds_string = String(this.seconds);
} else {
this.seconds_string = String("0" + this.seconds);
}
var _local7 = this.milliseconds / 100;
if (_local7 > 9) {
this.ms_string = String(_local7);
} else {
this.ms_string = String("0" + _local7);
}
this.white_text.text = String((((this.minutes_string + ":") + this.seconds_string) + ":") + this.ms_string);
this.black_text.text = String((((this.minutes_string + ":") + this.seconds_string) + ":") + this.ms_string);
updateAfterEvent();
};
_local1.prototype.getTotalMilliseconds = function () {
var _local7 = (this.milliseconds + (this.seconds * 1000)) + ((this.minutes * 60) * 1000);
return(_local7);
};
_local1.prototype.getCurrentMilliseconds = function () {
return(this.milliseconds);
};
_local1.prototype.getCurrentSeconds = function () {
return(this.seconds);
};
_local1.prototype.getCurrentMinutes = function () {
return(this.minutes);
};
_local1.prototype.stopTimer = function () {
clearInterval(this.interval);
};
(ASSetPropFlags(_global.Timer.prototype, null, 1));// not popped
}
#endinitclip
Symbol 3 MovieClip [PreloaderBar] Frame 1
#initclip 3
_global.PreloaderBar = function () {
};
PreloaderBar.prototype = new MovieClip();
Object.registerClass("PreloaderBar", PreloaderBar);
PreloaderBar.prototype.onLoad = function () {
};
PreloaderBar.prototype.onEnterFrame = function () {
if (this.s != "Upright") {
this.createEmptyMovieClip("back", 0);
with (this.back) {
beginFill(this.bkc);
lineStyle(0, this.bxc);
moveTo(0, 0);
lineTo(this.w, 0);
lineTo(this.w, this.h);
lineTo(0, this.h);
lineTo(0, 0);
endFill();
}
this.createEmptyMovieClip("bar", 1);
with (this.bar) {
beginFill(this.brc);
lineStyle(0, this.bxc);
moveTo(0, 0);
lineTo(this.w, 0);
lineTo(this.w, this.h);
lineTo(0, this.h);
lineTo(0, 0);
endFill();
}
} else {
this.createEmptyMovieClip("back", 0);
with (this.back) {
beginFill(this.brc);
lineStyle(0, this.bxc);
moveTo(0, 0);
lineTo(this.w, 0);
lineTo(this.w, this.h);
lineTo(0, this.h);
lineTo(0, 0);
endFill();
}
this.createEmptyMovieClip("bar", 1);
with (this.bar) {
beginFill(this.bkc);
lineStyle(0, this.bxc);
moveTo(0, 0);
lineTo(this.w, 0);
lineTo(this.w, this.h);
lineTo(0, this.h);
lineTo(0, 0);
endFill();
}
}
if ((this.d == "Progressive") && (this.s == "Horizontally")) {
this.bar._xscale = (eval (this.tar_mc).getBytesLoaded() / eval (this.tar_mc).getBytesTotal()) * 100;
if ((eval (this.tar_mc).getBytesLoaded() > 4) && (eval (this.tar_mc).getBytesLoaded() == eval (this.tar_mc).getBytesTotal())) {
_root.play();
this.removeMovieClip();
}
}
if ((this.d == "Regressive") && (this.s == "Horizontally")) {
this.bar._xscale = 100 - ((eval (this.tar_mc).getBytesLoaded() / eval (this.tar_mc).getBytesTotal()) * 100);
if ((eval (this.tar_mc).getBytesLoaded() > 4) && (eval (this.tar_mc).getBytesLoaded() == eval (this.tar_mc).getBytesTotal())) {
this.removeMovieClip();
}
}
if ((this.d == "Progressive") && (this.s == "Upright")) {
this.bar._yscale = 100 - ((eval (this.tar_mc).getBytesLoaded() / eval (this.tar_mc).getBytesTotal()) * 100);
if ((eval (this.tar_mc).getBytesLoaded() > 4) && (eval (this.tar_mc).getBytesLoaded() == eval (this.tar_mc).getBytesTotal())) {
this.removeMovieClip();
}
}
if ((this.d == "Regressive") && (this.s == "Upright")) {
this.bar._yscale = (eval (this.tar_mc).getBytesLoaded() / eval (this.tar_mc).getBytesTotal()) * 100;
if ((eval (this.tar_mc).getBytesLoaded() > 4) && (eval (this.tar_mc).getBytesLoaded() == eval (this.tar_mc).getBytesTotal())) {
this.removeMovieClip();
}
}
};
#endinitclip
stop();
Symbol 19 MovieClip Frame 55
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 9
stop();
Symbol 54 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 60 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 65 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 66 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 69 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 70 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 71 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 72 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 73 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 74 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 75 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 76 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 77 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 78 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 79 Button
on (release) {
gotoAndStop (208);
}
Symbol 82 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 83 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 84 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 85 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 86 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 87 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 88 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 89 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 90 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 91 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 92 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 93 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 94 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 95 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 96 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 97 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 98 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 99 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 100 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 101 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 102 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 103 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 104 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 105 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 106 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 107 Button
on (release) {
_root.ist.gotoAndPlay(1);
}
Symbol 108 Button
on (release) {
_root.play();
_root.button.play();
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 119 Button
on (keyPress "5") {
if (!_root.blnFX) {
if (_root.movGame.inPlay == 1) {
loadMovieNum ("crowd1.swf", 1);
}
_root.blnFX = 1;
} else {
unloadMovieNum (1);
_root.blnFX = 0;
}
}
Symbol 120 Button
on (keyPress "6") {
if (!_root.blnMusic) {
_root.sndMusic1.gotoAndPlay(2);
_root.blnMusic = 1;
} else {
_root.sndMusic0.gotoAndPlay(4);
_root.sndMusic1.gotoAndPlay(4);
_root.blnMusic = 0;
}
}
Symbol 121 MovieClip Frame 1
play();
Symbol 121 MovieClip Frame 14
stop();
Symbol 122 Button
on (press) {
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
}
}
on (release) {
var nPlayers = 1;
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
}
if (blnFX) {
sndClick.play();
}
play();
}
on (keyPress "1") {
var nPlayers = 1;
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
}
if (blnFX) {
sndClick.play();
}
play();
}
Symbol 128 Button
on (release, keyPress "2") {
var nLevel = 2;
level = 1;
if (blnFX) {
sndClick.play();
}
nextFrame();
}
Symbol 132 Button
on (release, keyPress "1") {
var nLevel = 1;
level = 2;
if (blnFX) {
sndClick.play();
}
nextFrame();
}
Symbol 133 Button
on (release, keyPress "4") {
if (blnFX) {
sndClick.play();
}
prevFrame();
}
Symbol 134 Button
on (release, keyPress "3") {
var nLevel = 3;
level = 0;
if (blnFX) {
sndClick.play();
}
nextFrame();
}
Symbol 142 Button
on (press) {
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
}
on (release) {
if (blnFX) {
sndClick.play();
}
var nP1Gender = 1;
play();
}
on (keyPress "1") {
if (blnFX) {
sndClick.play();
}
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
var nP1Gender = 1;
play();
}
Symbol 145 Button
on (press) {
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
}
on (release) {
if (blnFX) {
sndClick.play();
}
var nP1Gender = 2;
play();
}
on (keyPress "2") {
if (blnFX) {
sndClick.play();
}
if (_root.blnMusic) {
sndMusic1.gotoAndPlay(4);
}
var nP1Gender = 2;
play();
}
Symbol 166 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 166 MovieClip Frame 2
stop();
Instance of Symbol 167 MovieClip in Symbol 166 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 166 MovieClip Frame 3
stop();
Symbol 166 MovieClip Frame 4
stop();
Instance of Symbol 167 MovieClip in Symbol 166 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 174 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 173 MovieClip Frame 2
stop();
Instance of Symbol 174 MovieClip in Symbol 173 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 173 MovieClip Frame 3
stop();
Instance of Symbol 174 MovieClip in Symbol 173 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 173 MovieClip Frame 4
stop();
Instance of Symbol 174 MovieClip in Symbol 173 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (4);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (4);
}
}
Symbol 177 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Instance of Symbol 178 MovieClip in Symbol 177 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 177 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 177 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 177 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 177 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 177 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 177 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 177 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 177 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 176 MovieClip Frame 4
stop();
Symbol 187 MovieClip Frame 1
_parent.nDir = 3;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 2
_parent.nDir = 4;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 3
_parent.nDir = 5;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 4
_parent.nDir = 6;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 5
_parent.nDir = 7;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 6
_parent.nDir = 8;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (4);
}
}
Symbol 187 MovieClip Frame 7
_parent.nDir = 1;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 8
_parent.nDir = 2;
stop();
Instance of Symbol 188 MovieClip in Symbol 187 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((((_parent._parent.left + _parent._parent.right) + _parent._parent.up) + _parent._parent.down) != 0) {
play();
} else {
gotoAndStop (5);
}
}
Symbol 187 MovieClip Frame 9
_parent.nDir = 3;
stop();
Symbol 187 MovieClip Frame 10
_parent.nDir = 4;
stop();
Symbol 187 MovieClip Frame 11
_parent.nDir = 5;
stop();
Symbol 187 MovieClip Frame 12
_parent.nDir = 6;
stop();
Symbol 187 MovieClip Frame 13
_parent.nDir = 7;
stop();
Symbol 187 MovieClip Frame 14
_parent.nDir = 8;
stop();
Symbol 187 MovieClip Frame 15
_parent.nDir = 1;
stop();
Symbol 187 MovieClip Frame 16
_parent.nDir = 2;
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 4
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 3
stop();
Symbol 197 MovieClip Frame 4
stop();
Symbol 197 MovieClip Frame 5
stop();
Symbol 197 MovieClip Frame 6
stop();
Symbol 197 MovieClip Frame 7
stop();
Symbol 197 MovieClip Frame 8
stop();
Symbol 197 MovieClip Frame 9
stop();
Symbol 197 MovieClip Frame 10
stop();
Symbol 197 MovieClip Frame 11
stop();
Symbol 197 MovieClip Frame 12
stop();
Symbol 197 MovieClip Frame 13
stop();
Symbol 197 MovieClip Frame 14
stop();
Symbol 197 MovieClip Frame 15
stop();
Symbol 197 MovieClip Frame 16
stop();
Symbol 197 MovieClip Frame 17
stop();
Symbol 197 MovieClip Frame 18
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 9
_root.time.sec = _root.time.sec + 30;
Instance of Symbol 166 MovieClip "goalie2player" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
if ((_name != "goalie1player") && (_parent.inPlay == 1)) {
K = Key.getCode();
if (((K == K1) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if (((K == K2) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
if ((_name != "goalie2player") && (_parent.inPlay == 1)) {
K = Key.getCode();
if ((K == K1) && (pass)) {
pass = 0;
_parent.movBall._y = _parent.movBall._y + 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(5, nPow, 2, _x, _y, nPlayerPos, 1);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
nPow = 10;
}
if ((K == K2) && (shoot)) {
shoot = 0;
_parent.movBall._y = _parent.movBall._y + 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(5, nPow, 2, _x, _y, nPlayerPos, 2);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
blnSwerve = 1;
nSwerveCount = 8;
nPow = 10;
}
}
}
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
var nPow = 0;
var left = 0;
var right = 0;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
if (_root.nPlayers != 1) {
if (_parent.blnP1GoingUp != 1) {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
} else {
var K1 = 81;
var K2 = 65;
var Pbar = 2;
}
} else {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "goalie2player") && (_parent.inPlay == 1)) {
if (_root.nPlayers != 1) {
if (_parent.blnP1GoingUp != 1) {
if (_parent.movKeys.isPressed[2] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[3] != 1) {
right = 0;
} else {
right = 1;
}
} else {
if (_parent.movKeys.isPressed[6] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[7] != 1) {
right = 0;
} else {
right = 1;
}
}
} else if (_root.nP1Gender != 1) {
if (_parent.movKeys.isPressed[6] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[7] != 1) {
right = 0;
} else {
right = 1;
}
} else {
if (_parent.movKeys.isPressed[2] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[3] != 1) {
right = 0;
} else {
right = 1;
}
}
if (!hitTest(_parent.movBall)) {
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 (_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 (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
} else {
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;
}
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) >= 15) {
if ((_parent.movBall._y + _parent.movBall.nYSpd) >= -725) {
gotoAndStop (2);
nSpd = 15;
} else {
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 (1);
nSpd = 9;
}
if (_x <= (_parent.movBall._x - 8)) {
left = 0;
} else {
left = 1;
}
if (_x >= (_parent.movBall._x + 8)) {
right = 0;
} else {
right = 1;
}
if (left) {
if (_x > (nMaxLeft + 15)) {
_x = (_x - 5);
}
}
if (right) {
if (_x < (nMaxRight - 15)) {
_x = (_x + 5);
}
}
}
}
Instance of Symbol 166 MovieClip "goalie2" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
}
onClipEvent (enterFrame) {
if ((_name != "goalie2") && (_parent.inPlay == 1)) {
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) >= 15) {
if ((_parent.movBall._y + _parent.movBall.nYSpd) >= -725) {
nSpd = _root.nGoalieMaxSpd;
} else {
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 {
gotoAndStop (1);
nSpd = _root.nGoalieMinSpd;
}
if (!hitTest(_parent.movBall)) {
if (_parent.blnKeepersBall != 2) {
_parent.blnKeepersBall = 0;
}
} else if ((nXS + nYS) <= 15) {
_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 {
_parent.movBall.nYSpd = (-_parent.movBall.nYSpd) * 0.5;
if (_x < _parent.movBall._x) {
gotoAndStop (3);
}
if (_x > _parent.movBall._x) {
gotoAndStop (4);
}
}
if (_x <= (_parent.movBall._x - 8)) {
left = 0;
} else {
left = 1;
}
if (_x >= (_parent.movBall._x + 8)) {
right = 0;
} else {
right = 1;
}
if (left) {
if (_x >= nMaxLeft) {
_x = (_x - nSpd);
}
}
if (right) {
if (_x <= nMaxRight) {
_x = (_x + nSpd);
}
}
}
}
Instance of Symbol 173 MovieClip "goalie1" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
}
onClipEvent (enterFrame) {
if ((_name != "goalie1") && (_parent.inPlay == 1)) {
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) >= 15) {
if ((_parent.movBall._y + _parent.movBall.nYSpd) <= 725) {
nSpd = _root.nGoalieMaxSpd;
} else {
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 {
gotoAndStop (1);
nSpd = _root.nGoalieMinSpd;
}
if (!hitTest(_parent.movBall)) {
if (_parent.blnKeepersBall != 1) {
_parent.blnKeepersBall = 0;
}
} else if ((nXS + nYS) <= 15) {
_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 {
_parent.movBall.nYSpd = (-_parent.movBall.nYSpd) * 0.5;
if (_x < _parent.movBall._x) {
gotoAndStop (3);
}
if (_x > _parent.movBall._x) {
gotoAndStop (4);
}
}
if (_x <= (_parent.movBall._x - 8)) {
left = 0;
} else {
left = 1;
}
if (_x >= (_parent.movBall._x + 8)) {
right = 0;
} else {
right = 1;
}
if (left) {
if (_x >= nMaxLeft) {
_x = (_x - nSpd);
}
}
if (right) {
if (_x <= nMaxRight) {
_x = (_x + nSpd);
}
}
}
}
Instance of Symbol 173 MovieClip "goalie1player" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
if (_name != "goalie1player") {
K = Key.getCode();
if (((K == K1) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if (((K == K2) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
if (_name != "goalie1player") {
K = Key.getCode();
if ((K == K1) && (pass)) {
pass = 0;
_parent.movBall._y = _parent.movBall._y - 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(1, nPow, 2, _x, _y, nPlayerPos, 1);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
nPow = 10;
}
if ((K == K2) && (shoot)) {
shoot = 0;
_parent.movBall._y = _parent.movBall._y - 20;
_parent.blnKeepersBall = 0;
_parent.fKickBall(1, nPow, 2, _x, _y, nPlayerPos, 2);
_parent.movBall.blnDribble = 0;
blnDribble = 0;
inControl = 0;
blnSwerve = 1;
nSwerveCount = 8;
nPow = 10;
}
}
}
onClipEvent (load) {
var nSpd;
var left;
var right;
var nMaxLeft = -155;
var nMaxRight = 155;
var inControl;
var nPlayerPos = 5;
var nCount = 0;
var nPow = 0;
var left = 0;
var right = 0;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
if (_root.nPlayers != 1) {
if (_parent.blnP1GoingUp != 1) {
var K1 = 81;
var K2 = 65;
var Pbar = 2;
} else {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
}
} else {
var K1 = 78;
var K2 = 77;
var Pbar = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "goalie1player") && (_parent.inPlay == 1)) {
if (_root.nPlayers != 1) {
if (_parent.blnP1GoingUp != 1) {
if (_parent.movKeys.isPressed[6] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[7] != 1) {
right = 0;
} else {
right = 1;
}
} else {
if (_parent.movKeys.isPressed[2] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[3] != 1) {
right = 0;
} else {
right = 1;
}
}
} else if (_root.nP1Gender != 1) {
if (_parent.movKeys.isPressed[6] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[7] != 1) {
right = 0;
} else {
right = 1;
}
} else {
if (_parent.movKeys.isPressed[2] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[3] != 1) {
right = 0;
} else {
right = 1;
}
}
if (!hitTest(_parent.movBall)) {
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 (_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 (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
} else {
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;
}
var nYS = _parent.movBall.nYSpd;
var nXS = _parent.movBall.nXSpd;
if (nYS < 0) {
nYS = -nYS;
}
if (nXS < 0) {
nXS = -nXS;
}
if ((nXS + nYS) >= 15) {
if ((_parent.movBall._y + _parent.movBall.nYSpd) <= 725) {
gotoAndStop (2);
nSpd = 15;
} else {
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 (1);
nSpd = 9;
}
if (_x <= (_parent.movBall._x - 8)) {
left = 0;
} else {
left = 1;
}
if (_x >= (_parent.movBall._x + 8)) {
right = 0;
} else {
right = 1;
}
if (left) {
if (_x > (nMaxLeft + 15)) {
_x = (_x - 5);
}
}
if (right) {
if (_x < (nMaxRight - 15)) {
_x = (_x + 5);
}
}
}
}
Instance of Symbol 176 MovieClip "player1" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (((K == 78) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 78) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((((K == 77) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 77) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((K == 78) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 77) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
onClipEvent (load) {
var nSpd = 1;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
var nGap = 15;
var inControl = 0;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
var blnSlide = 0;
var nSlideCount = 0;
var nSlideSpeed = 15;
var blnHoofed = 0;
}
onClipEvent (enterFrame) {
if ((_name != "player1") && (_parent.inPlay == 1)) {
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + nPlayerPos));
blnAboveBall = 0;
}
if (blnSlide == 1) {
nSlideCount++;
up = 0;
left = 0;
right = 0;
down = 0;
switch (nSlideDir) {
case 1 :
_y = (_y - nSlideSpeed);
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (!inControl) {
submovie.movPointer._alpha = 0;
blnSlide = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 450) {
up = 0;
} else {
up = 1;
}
if (_y >= 400) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= -300) {
up = 0;
} else {
up = 1;
}
if (_y >= -350) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP1Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if (nPlayerPos <= 2) {
if (_y > (_parent.movBall._y - 57)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - 43)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y + _parent.nDefMin)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + _parent.nDefMax)) {
up = 0;
} else {
up = 1;
}
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x <= -150) {
left = 0;
} else {
left = 1;
}
if (_x >= -200) {
right = 0;
} else {
right = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x <= 200) {
left = 0;
} else {
left = 1;
}
if (_x >= 150) {
right = 0;
} else {
right = 1;
}
}
} else {
submovie.movPointer._alpha = 100;
if (_parent.movKeys.isPressed[0] != 1) {
up = 0;
} else {
up = 1;
}
if (_parent.movKeys.isPressed[1] != 1) {
down = 0;
} else {
down = 1;
}
if (_parent.movKeys.isPressed[2] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[3] != 1) {
right = 0;
} else {
right = 1;
}
if (_x <= (_parent.movBall._x + 240)) {
if (_x >= (_parent.movBall._x - 240)) {
if (_y >= (_parent.movBall._y - 190)) {
if (_y <= (_parent.movBall._y + 190)) {
_parent.movFindMe._visible = 0;
} else 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 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 - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = -235 - (_parent._x - _parent.nStartX);
if (_y > (_parent.movBall._y - 186)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe._y = _y;
} else {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe._rotation = 90;
}
} else 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)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe._y = _y;
} else {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe._rotation = 270;
}
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 (_parent.nBallDir != 5) {
if (!((_parent.nBallDir == 3) || (_parent.nBallDir == 7))) {
if (_parent.nBallDir != 8) {
if (_parent.nBallDir != 2) {
if (_parent.nBallDir != 4) {
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 {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 176 MovieClip "player2" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (((K == 78) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 78) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((((K == 77) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 77) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if ((K == 78) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 77) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
onClipEvent (load) {
var nSpd = 1;
var nXSpd = 10;
var nPow = 10;
var nDir;
var blnDribble = 0;
var blnSwerve = 0;
var nSwerveCount = 8;
var nGap = 12;
var inControl = 0;
var nPlayerPos;
var nDribCount = 0;
var hasStopped = 0;
var isOutDown = 0;
var isOutUp = 0;
var blnAboveBall = 0;
var blnSlide = 0;
var nSlideCount = 0;
var nSlideSpeed = 15;
var blnHoofed = 0;
}
onClipEvent (enterFrame) {
if ((_name != "player2") && (_parent.inPlay == 1)) {
if ((_y > (_parent.movBall._y - 5)) && (blnAboveBall == 0)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 1;
}
if ((_y < _parent.movBall._y) && (blnAboveBall == 1)) {
this.swapDepths(eval ("_parent.movS" + (nPlayerPos + 5)));
blnAboveBall = 0;
}
submovie.movPointer.txtD = nPlayerPos;
if (blnSlide == 1) {
nSlideCount++;
up = 0;
left = 0;
right = 0;
down = 0;
switch (nSlideDir) {
case 1 :
_y = (_y - nSlideSpeed);
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 2 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 3 :
_x = (_x + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 4 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x + (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 5 :
_y = (_y + nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 6 :
_y = (_y + (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
break;
case 7 :
_x = (_x - nSlideSpeed);
submovie.gotoAndStop(nSlideDir + 8);
nSlideSpeed = nSlideSpeed * _parent.friction2;
break;
case 8 :
_y = (_y - (nSlideSpeed * 0.75));
_x = (_x - (nSlideSpeed * 0.75));
nSlideSpeed = nSlideSpeed * _parent.friction2;
submovie.gotoAndStop(nSlideDir + 8);
}
if (nSlideCount >= 15) {
blnSlide = 0;
nSlideCount = 0;
nSlideSpeed = 15;
blnHoofed = 0;
}
}
if (inControl != 1) {
submovie.movPointer._alpha = 0;
blnSlide = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 250) {
up = 0;
} else {
up = 1;
}
if (_y >= 275) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= -450) {
up = 0;
} else {
up = 1;
}
if (_y >= -500) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 1)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP2Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > (_parent.movBall._y + 43)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + 57)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y - _parent.nDefMax)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - _parent.nDefMin)) {
up = 0;
} else {
up = 1;
}
}
}
}
} else {
submovie.movPointer._alpha = 100;
if (_parent.movKeys.isPressed[0] != 1) {
up = 0;
} else {
up = 1;
}
if (_parent.movKeys.isPressed[1] != 1) {
down = 0;
} else {
down = 1;
}
if (_parent.movKeys.isPressed[2] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[3] != 1) {
right = 0;
} else {
right = 1;
}
if (_x <= (_parent.movBall._x + 240)) {
if (_x >= (_parent.movBall._x - 240)) {
if (_y >= (_parent.movBall._y - 190)) {
if (_y <= (_parent.movBall._y + 190)) {
_parent.movFindMe._visible = 0;
} else 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 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 - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe._visible = 1;
_parent.movFindMe._x = -235 - (_parent._x - _parent.nStartX);
if (_y > (_parent.movBall._y - 186)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe._y = _y;
} else {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe._rotation = 90;
}
} else 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)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe._y = _y;
} else {
_parent.movFindMe._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe._rotation = 270;
}
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 (_parent.nBallDir != 5) {
if (!((_parent.nBallDir == 3) || (_parent.nBallDir == 7))) {
if (_parent.nBallDir != 8) {
if (_parent.nBallDir != 2) {
if (_parent.nBallDir != 4) {
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 {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 176 MovieClip "computer1" in Symbol 151 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) {
submovie.movPointer._alpha = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 250) {
up = 0;
} else {
up = 1;
}
if (_y >= 275) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= -400) {
up = 0;
} else {
up = 1;
}
if (_y >= -450) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP2Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > (_parent.movBall._y + 43)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + 57)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y - _parent.nDefMax)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - _parent.nDefMin)) {
up = 0;
} else {
up = 1;
}
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x <= -150) {
left = 0;
} else {
left = 1;
}
if (_x >= -200) {
right = 0;
} else {
right = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x <= 200) {
left = 0;
} else {
left = 1;
}
if (_x >= 150) {
right = 0;
} else {
right = 1;
}
}
} else if (blnDribble) {
nSpd = 3;
if (_y >= 300) {
if (!((_y >= 300) && (_y < 640))) {
if (_y >= 700) {
_parent.fKickBall(nDir, 30, 2, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x <= 100) {
left = 0;
} else {
left = 1;
}
if (_x >= -100) {
right = 0;
} else {
right = 1;
}
}
} else {
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 (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 2, _x, _y, nPlayerPos, 1);
}
up = 0;
left = 0;
right = 0;
down = 1;
}
if ((_y >= 250) && (_y < 670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 2, _x, _y, nPlayerPos, 2);
}
}
} else {
nSpd = 2;
if (_x > ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 0;
} else {
right = 1;
}
if (_x < ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 0;
} else {
left = 1;
}
if (_y > ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 0;
} else {
down = 1;
}
if (_y < ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 0;
} else {
up = 1;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 176 MovieClip "computer2" in Symbol 151 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) {
submovie.movPointer._alpha = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 250) {
up = 0;
} else {
up = 1;
}
if (_y >= 275) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= -400) {
up = 0;
} else {
up = 1;
}
if (_y >= -450) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP2Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > (_parent.movBall._y + 43)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + 57)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y - _parent.nDefMax)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - _parent.nDefMin)) {
up = 0;
} else {
up = 1;
}
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x <= -150) {
left = 0;
} else {
left = 1;
}
if (_x >= -200) {
right = 0;
} else {
right = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x <= 200) {
left = 0;
} else {
left = 1;
}
if (_x >= 150) {
right = 0;
} else {
right = 1;
}
}
} else if (blnDribble) {
nSpd = 3;
if (_y >= 300) {
if (!((_y >= 300) && (_y < 640))) {
if (_y >= 700) {
_parent.fKickBall(nDir, 30, 2, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x <= 100) {
left = 0;
} else {
left = 1;
}
if (_x >= -100) {
right = 0;
} else {
right = 1;
}
}
} else {
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 (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 2, _x, _y, nPlayerPos, 1);
}
up = 0;
left = 0;
right = 0;
down = 1;
}
if ((_y >= 250) && (_y < 670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 2, _x, _y, nPlayerPos, 2);
}
}
} else {
nSpd = 2;
if (_x > ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 0;
} else {
right = 1;
}
if (_x < ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 0;
} else {
left = 1;
}
if (_y > ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 0;
} else {
down = 1;
}
if (_y < ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 0;
} else {
up = 1;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 186 MovieClip "player3" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (!(((_root.nPlayers == 2) || (_root.nP1Gender == 1)) && (_root.nPlayers == 1))) {
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;
}
} else {
if (((K == 81) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 81) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((((K == 65) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 65) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if (!(((_root.nPlayers == 2) || (_root.nP1Gender == 1)) && (_root.nPlayers == 1))) {
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;
}
} else {
if ((K == 81) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 65) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 1, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
}
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 = 0;
blnSlide = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 450) {
up = 0;
} else {
up = 1;
}
if (_y >= 400) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= -300) {
up = 0;
} else {
up = 1;
}
if (_y >= -350) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP1Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if (nPlayerPos <= 2) {
if (_y > (_parent.movBall._y - 57)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - 43)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y + _parent.nDefMin)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + _parent.nDefMax)) {
up = 0;
} else {
up = 1;
}
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x <= -150) {
left = 0;
} else {
left = 1;
}
if (_x >= -200) {
right = 0;
} else {
right = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x <= 200) {
left = 0;
} else {
left = 1;
}
if (_x >= 150) {
right = 0;
} else {
right = 1;
}
}
} else {
submovie.movPointer._alpha = 100;
if (_parent.movKeys.isPressed[4] != 1) {
up = 0;
} else {
up = 1;
}
if (_parent.movKeys.isPressed[5] != 1) {
down = 0;
} else {
down = 1;
}
if (_parent.movKeys.isPressed[6] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[7] != 1) {
right = 0;
} else {
right = 1;
}
if (_x <= (_parent.movBall._x + 240)) {
if (_x >= (_parent.movBall._x - 240)) {
if (_y >= (_parent.movBall._y - 190)) {
if (_y <= (_parent.movBall._y + 190)) {
_parent.movFindMe2._visible = 0;
} else 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 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 - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = -235 - (_parent._x - _parent.nStartX);
if (_y > (_parent.movBall._y - 186)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = _y;
} else {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe2._rotation = 90;
}
} else 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)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = _y;
} else {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe2._rotation = 270;
}
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 (_parent.nBallDir != 5) {
if (!((_parent.nBallDir == 3) || (_parent.nBallDir == 7))) {
if (_parent.nBallDir != 8) {
if (_parent.nBallDir != 2) {
if (_parent.nBallDir != 4) {
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 {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 186 MovieClip "player4" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (!(((_root.nPlayers == 2) || (_root.nP1Gender == 1)) && (_root.nPlayers == 1))) {
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;
}
} else {
if (((K == 81) && (blnDribble)) && (!shoot)) {
pass = 1;
}
if ((K == 81) && (_parent.inPlay == 0)) {
_parent.inPlay = 1;
pass = 1;
}
if (((((K == 65) && (inControl)) && (!blnDribble)) && (!blnSlide)) && (!shoot)) {
blnSlide = 1;
nSlideDir = nDir;
nSlideCount = 0;
}
if (((K == 65) && (blnDribble)) && (!pass)) {
shoot = 1;
}
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if (!(((_root.nPlayers == 2) || (_root.nP1Gender == 1)) && (_root.nPlayers == 1))) {
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;
}
} else {
if ((K == 81) && (pass)) {
pass = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 1);
nPow = 10;
}
if ((K == 65) && (shoot)) {
shoot = 0;
_parent.fKickBall(nDir, nPow, 2, _x, _y, nPlayerPos, 2);
nPow = 10;
blnSwerve = 1;
}
}
}
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 = 0;
blnSlide = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 250) {
up = 0;
} else {
up = 1;
}
if (_y >= 275) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= -450) {
up = 0;
} else {
up = 1;
}
if (_y >= -500) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 1)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP2Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > (_parent.movBall._y + 43)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + 57)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y - _parent.nDefMax)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - _parent.nDefMin)) {
up = 0;
} else {
up = 1;
}
}
}
}
} else {
submovie.movPointer._alpha = 100;
if (_parent.movKeys.isPressed[4] != 1) {
up = 0;
} else {
up = 1;
}
if (_parent.movKeys.isPressed[5] != 1) {
down = 0;
} else {
down = 1;
}
if (_parent.movKeys.isPressed[6] != 1) {
left = 0;
} else {
left = 1;
}
if (_parent.movKeys.isPressed[7] != 1) {
right = 0;
} else {
right = 1;
}
if (_x <= (_parent.movBall._x + 240)) {
if (_x >= (_parent.movBall._x - 240)) {
if (_y >= (_parent.movBall._y - 190)) {
if (_y <= (_parent.movBall._y + 190)) {
_parent.movFindMe2._visible = 0;
} else 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 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 - 191)) && (_y <= (_parent.movBall._y + 191))) {
_parent.movFindMe2._visible = 1;
_parent.movFindMe2._x = -235 - (_parent._x - _parent.nStartX);
if (_y > (_parent.movBall._y - 186)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = _y;
} else {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe2._rotation = 90;
}
} else 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)) {
if (_y < (_parent.movBall._y + 186)) {
_parent.movFindMe2._y = _y;
} else {
_parent.movFindMe2._y = 150 - (_parent._y - _parent.nStartY);
}
} else {
_parent.movFindMe2._y = -175 - (_parent._y - _parent.nStartY);
}
_parent.movFindMe2._rotation = 270;
}
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 (_parent.nBallDir != 5) {
if (!((_parent.nBallDir == 3) || (_parent.nBallDir == 7))) {
if (_parent.nBallDir != 8) {
if (_parent.nBallDir != 2) {
if (_parent.nBallDir != 4) {
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 {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - nSwerveCount;
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + nSwerveCount;
}
}
} else {
if (up == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd - (nSwerveCount * 3);
}
if (down == 1) {
_parent.movBall.nYSpd = _parent.movBall.nYSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
} else {
if (left == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd - (nSwerveCount * 3);
}
if (right == 1) {
_parent.movBall.nXSpd = _parent.movBall.nXSpd + (nSwerveCount * 3);
}
}
}
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 186 MovieClip "computer3" in Symbol 151 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) {
submovie.movPointer._alpha = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 250) {
up = 0;
} else {
up = 1;
}
if (_y >= 275) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= -400) {
up = 0;
} else {
up = 1;
}
if (_y >= -450) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP2Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > (_parent.movBall._y + 43)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + 57)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y - _parent.nDefMax)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - _parent.nDefMin)) {
up = 0;
} else {
up = 1;
}
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x <= -150) {
left = 0;
} else {
left = 1;
}
if (_x >= -200) {
right = 0;
} else {
right = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x <= 200) {
left = 0;
} else {
left = 1;
}
if (_x >= 150) {
right = 0;
} else {
right = 1;
}
}
} else if (blnDribble) {
nSpd = 3;
if (_y >= 300) {
if (!((_y >= 300) && (_y < 640))) {
if (_y >= 700) {
_parent.fKickBall(nDir, 30, 2, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x <= 100) {
left = 0;
} else {
left = 1;
}
if (_x >= -100) {
right = 0;
} else {
right = 1;
}
}
} else {
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 (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 2, _x, _y, nPlayerPos, 1);
}
up = 0;
left = 0;
right = 0;
down = 1;
}
if ((_y >= 250) && (_y < 670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 2, _x, _y, nPlayerPos, 2);
}
}
} else {
nSpd = 2;
if (_x > ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 0;
} else {
right = 1;
}
if (_x < ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 0;
} else {
left = 1;
}
if (_y > ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 0;
} else {
down = 1;
}
if (_y < ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 0;
} else {
up = 1;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 186 MovieClip "computer4" in Symbol 151 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) {
submovie.movPointer._alpha = 0;
if (_parent.blnKeepersBall != 0) {
if (_parent.blnKeepersBall != 1) {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= 250) {
up = 0;
} else {
up = 1;
}
if (_y >= 275) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y <= -400) {
up = 0;
} else {
up = 1;
}
if (_y >= -450) {
down = 0;
} else {
down = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y <= 100) {
up = 0;
} else {
up = 1;
}
if (_y >= 0) {
down = 0;
} else {
down = 1;
}
}
}
} else {
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 ((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]) {
isOutUp = 0;
down = 0;
} else {
down = 1;
isOutUp = 1;
}
if (_y <= _root.arrP2Boxes[nPlayerPos][2]) {
isOutDown = 0;
up = 0;
} else {
up = 1;
isOutDown = 1;
}
} else {
if ((nPlayerPos == 1) || (nPlayerPos == 2)) {
if (_y > (_parent.movBall._y + 43)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y + 57)) {
up = 0;
} else {
up = 1;
}
}
if ((nPlayerPos == 3) || (nPlayerPos == 4)) {
if (_y > (_parent.movBall._y - _parent.nDefMax)) {
down = 0;
} else {
down = 1;
}
if (_y < (_parent.movBall._y - _parent.nDefMin)) {
up = 0;
} else {
up = 1;
}
}
}
}
if ((nPlayerPos == 1) || (nPlayerPos == 3)) {
if (_x <= -150) {
left = 0;
} else {
left = 1;
}
if (_x >= -200) {
right = 0;
} else {
right = 1;
}
}
if ((nPlayerPos == 2) || (nPlayerPos == 4)) {
if (_x <= 200) {
left = 0;
} else {
left = 1;
}
if (_x >= 150) {
right = 0;
} else {
right = 1;
}
}
} else if (blnDribble) {
nSpd = 3;
if (_y >= 300) {
if (!((_y >= 300) && (_y < 640))) {
if (_y >= 700) {
_parent.fKickBall(nDir, 30, 2, _x, _y, nPlayerPos, 1);
up = 1;
down = 0;
if (_x <= 100) {
left = 0;
} else {
left = 1;
}
if (_x >= -100) {
right = 0;
} else {
right = 1;
}
}
} else {
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 (random(30) == 9) {
_parent.fKickBall(nDir, random(10) + 15, 2, _x, _y, nPlayerPos, 1);
}
up = 0;
left = 0;
right = 0;
down = 1;
}
if ((_y >= 250) && (_y < 670)) {
if (random(25) == 9) {
_parent.fKickBall(nDir, random(20) + 25, 2, _x, _y, nPlayerPos, 2);
}
}
} else {
nSpd = 2;
if (_x > ((_parent.movBall._x + _root.arrSpeeds[nSpd]) + 2)) {
right = 0;
} else {
right = 1;
}
if (_x < ((_parent.movBall._x - _root.arrSpeeds[nSpd]) - 2)) {
left = 0;
} else {
left = 1;
}
if (_y > ((_parent.movBall._y + _root.arrSpeeds[nSpd]) + 2)) {
down = 0;
} else {
down = 1;
}
if (_y < ((_parent.movBall._y - _root.arrSpeeds[nSpd]) - 2)) {
up = 0;
} else {
up = 1;
}
if ((left == 1) && (right == 1)) {
left = 0;
right = 0;
}
if ((up == 1) && (down == 1)) {
up = 0;
down = 0;
}
}
if (!submovie.pfaker.hitTest(_parent.movBall)) {
blnDribble = 0;
} else {
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.300000011920929;
_parent.movBall.nYSpd = _parent.movBall.nYSpd * 0.300000011920929;
_parent.movBall.nActualPoint = 0;
_parent.movBall.nHighPoint = 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]);
}
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;
}
} else {
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;
}
}
}
}
}
if (down == 1) {
if (!((right == 1) || (left == 1))) {
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;
}
} else {
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;
}
}
}
}
}
if (left == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
if (right == 1) {
if (!((up == 1) || (down == 1))) {
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;
}
}
} else {
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;
}
}
}
}
}
}
}
Instance of Symbol 197 MovieClip "ball" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
function update() {
_x = (_x + nXSpd);
_y = (_y + nYSpd);
if (!blnUpwards) {
_xscale = 105;
_yscale = 105;
movShad._y = 3;
movShad._alpha = 100;
} else {
if (nActualPoint >= (nHighPoint * 0.850000023841858)) {
nZSpd = -nZSpd;
}
if (nActualPoint < 0) {
nZSpd = -nZSpd;
nHighPoint = nHighPoint * 0.699999988079071;
}
nActualPoint = nActualPoint + nZSpd;
nZSpd = nZSpd * 0.959999978542328;
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);
}
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) {
nXSpd = 0;
nYSpd = 0;
} else {
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 (nDrib2Count <= 0) {
_parent.nTeamPossess = 0;
blnDribble = 0;
} else {
if (!blnDribble) {
gotoAndStop (10);
}
blnDribble = 1;
_parent.nTeamPossess = 2;
}
} else {
if (!blnDribble) {
gotoAndStop (10);
}
blnDribble = 1;
_parent.nTeamPossess = 1;
}
update();
if (((_x + nXSpd) - (_width / 2)) < (_parent.nLeftWall - 20)) {
if (blnDribble) {
_x = _parent.nLeftWall;
} else {
nXSpd = -nXSpd;
}
}
if (((_x + nXSpd) + (_width / 2)) > (_parent.nRightWall + 20)) {
if (blnDribble) {
_x = _parent.nRightWall;
} else {
nXSpd = -nXSpd;
}
}
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 (blnDribble) {
_y = _parent.nTopWall;
} else {
nYSpd = -nYSpd;
}
} else {
if (_root.blnFX) {
_level3.sndRoar.play();
}
if (_parent.blnP1GoingUp != 1) {
_parent.nTeamScored = 2;
} else {
_root.movGame.secondi.gotoAndPlay(2);
_root.nP1Score = Number(_root.nP1Score) + 1;
if (_root.nPlayers == 1) {
trace("yes");
_root.trentasec.gotoAndPlay(2);
}
_parent.nTeamScored = 1;
}
_parent.nScorer = _parent.nKickedBy;
_parent.blnGoal = 1;
_y = (_parent.nTopWall - 40);
_x = (_x + (nXSpd / 2));
_root.nEndo = 1;
_parent.inPlay = 2;
}
}
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 (blnDribble) {
_y = _parent.nBotWall;
} else {
nYSpd = -nYSpd;
}
} else {
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.nBotWall + 40);
_x = (_x + (nXSpd / 2));
_root.nEndo = 1;
_parent.inPlay = 2;
}
}
if (((((nXSpd > -0.300000011920929) && (nXSpd < 0.300000011920929)) && (nYSpd > -0.300000011920929)) && (nYSpd < 0.300000011920929)) || (_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 (7);
}
if ((nXSpd > 1) && (nYSpd < nXSpd)) {
gotoAndStop (3);
}
if ((nYSpd < -1) && (nXSpd < nYSpd)) {
gotoAndStop (1);
}
if ((nYSpd > 1) && (nXSpd < nYSpd)) {
gotoAndStop (5);
}
} else {
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);
}
}
if ((nXSpd == 0) && (nYSpd < -5)) {
gotoAndStop (1);
}
if ((nXSpd == 0) && (nYSpd > 5)) {
gotoAndStop (5);
}
}
}
}
Instance of Symbol 202 MovieClip "movKeys" in Symbol 151 MovieClip Frame 1
onClipEvent (keyDown) {
K = Key.getCode();
if (!(((_root.nPlayers == 2) || (_root.nPlayers == 1)) && (_root.nP1Gender == 1))) {
if (K == 38) {
isPressed[4] = 1;
}
if (K == 40) {
isPressed[5] = 1;
}
if (K == 37) {
isPressed[6] = 1;
}
if (K == 39) {
isPressed[7] = 1;
}
if (K == 82) {
isPressed[0] = 1;
}
if (K == 70) {
isPressed[1] = 1;
}
if (K == 68) {
isPressed[2] = 1;
}
if (K == 71) {
isPressed[3] = 1;
}
} else {
if (K == 38) {
isPressed[0] = 1;
}
if (K == 40) {
isPressed[1] = 1;
}
if (K == 37) {
isPressed[2] = 1;
}
if (K == 39) {
isPressed[3] = 1;
}
if (K == 82) {
isPressed[4] = 1;
}
if (K == 70) {
isPressed[5] = 1;
}
if (K == 68) {
isPressed[6] = 1;
}
if (K == 71) {
isPressed[7] = 1;
}
}
if ((K == 80) && (_root.movGame.inPlay == 1)) {
if (_root.movGame.inPlay == 1) {
_root.movGame.inPlay = 4;
_root.movGame.ball.gotoAndStop(9);
}
}
}
onClipEvent (keyUp) {
K = Key.getCode();
if (!(((_root.nPlayers == 2) || (_root.nPlayers == 1)) && (_root.nP1Gender == 1))) {
if (K == 38) {
isPressed[4] = 0;
}
if (K == 40) {
isPressed[5] = 0;
}
if (K == 37) {
isPressed[6] = 0;
}
if (K == 39) {
isPressed[7] = 0;
}
if (K == 82) {
isPressed[0] = 0;
}
if (K == 70) {
isPressed[1] = 0;
}
if (K == 68) {
isPressed[2] = 0;
}
if (K == 71) {
isPressed[3] = 0;
}
} else {
if (K == 38) {
isPressed[0] = 0;
}
if (K == 40) {
isPressed[1] = 0;
}
if (K == 37) {
isPressed[2] = 0;
}
if (K == 39) {
isPressed[3] = 0;
}
if (K == 82) {
isPressed[4] = 0;
}
if (K == 70) {
isPressed[5] = 0;
}
if (K == 68) {
isPressed[6] = 0;
}
if (K == 71) {
isPressed[7] = 0;
}
}
}
onClipEvent (load) {
var isPressed = new Array(0, 0, 0, 0, 0, 0, 0, 0);
var blnPaused = 0;
}
Instance of Symbol 209 MovieClip "dot4" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 1) {
_x = (_root.movGame.movP2P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P4._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P4._y / _root.movGame.yRatio);
}
}
Instance of Symbol 209 MovieClip "dot4" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 1) {
_x = (_root.movGame.movP2P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P5._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P5._y / _root.movGame.yRatio);
}
}
Instance of Symbol 209 MovieClip "dot3" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 1) {
_x = (_root.movGame.movP2P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P3._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P3._y / _root.movGame.yRatio);
}
}
Instance of Symbol 209 MovieClip "dot1" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 1) {
_x = (_root.movGame.movP2P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P1._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P1._y / _root.movGame.yRatio);
}
}
Instance of Symbol 209 MovieClip "dot2" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 1) {
_x = (_root.movGame.movP2P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P2._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P2._y / _root.movGame.yRatio);
}
}
Instance of Symbol 211 MovieClip "dot8" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 0) {
_x = (_root.movGame.movP2P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P5._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P5._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P5._y / _root.movGame.yRatio);
}
}
Instance of Symbol 211 MovieClip "dot8" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 0) {
_x = (_root.movGame.movP2P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P3._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P3._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P3._y / _root.movGame.yRatio);
}
}
Instance of Symbol 211 MovieClip "dot9" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 0) {
_x = (_root.movGame.movP2P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P4._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P4._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P4._y / _root.movGame.yRatio);
}
}
Instance of Symbol 211 MovieClip "dot6" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 0) {
_x = (_root.movGame.movP2P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P1._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P1._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P1._y / _root.movGame.yRatio);
}
}
Instance of Symbol 211 MovieClip "dot7" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nP1PlayDir != 0) {
_x = (_root.movGame.movP2P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP2P2._y / _root.movGame.yRatio);
} else {
_x = (_root.movGame.movP1P2._x / _root.movGame.xRatio);
_y = (_root.movGame.movP1P2._y / _root.movGame.yRatio);
}
}
Symbol 216 MovieClip Frame 65
man1.gotoAndStop(3);
man1.left = 1;
man1.submovie.movPointer._visible = 0;
girl1.gotoAndStop(3);
girl1.left = 1;
girl1.submovie.movPointer._visible = 0;
Symbol 216 MovieClip Frame 66
man2.gotoAndStop(2);
man2.left = 1;
man2.submovie.movPointer._visible = 0;
Symbol 216 MovieClip Frame 67
girl2.gotoAndStop(2);
girl2.left = 1;
girl2.submovie.movPointer._visible = 0;
Symbol 216 MovieClip Frame 68
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 222 MovieClip Frame 67
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
_root.gol == 1;
Symbol 219 MovieClip Frame 3
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
timernow = getTimer();
xtimer = 1;
Symbol 231 MovieClip Frame 2
timer = getTimer() - timernow;
if (Number(Timer) > Number(950 * xtimer)) {
_root.time2.sec = _root.time2.sec - 1;
xtimer = Number(xtimer) + 1;
}
if (Number(length(_root.time2.sec)) < 2) {
_root.time2.sec = "0" add _root.time2.sec;
}
if (!((Number(_root.time2.sec) == 0) && (Number(_root.time2.min) == 0))) {
if (Number(_root.time2.sec) < 0) {
_root.time2.min = _root.time2.min - 1;
_root.time2.sec = 59;
}
} else {
_root.time2.gotoAndStop(5);
}
if (Number(_root.time2.sec) > 60) {
_root.time2.min = _root.time2.min + 1;
_root.time2.sec = _root.time2.sec - 60;
}
Symbol 231 MovieClip Frame 3
gotoAndPlay (2);
Symbol 227 MovieClip Frame 1
Now = 0;
StartTime = getTimer();
Symbol 227 MovieClip Frame 2
Now = getTimer() - StartTime;
if (Number(Now) >= 3000) {
nextFrame();
} else {
gotoAndPlay (2);
}
Symbol 227 MovieClip Frame 3
stop();
Symbol 227 MovieClip Frame 5
play();
Symbol 227 MovieClip Frame 6
if (_root.ft == 1) {
gotoAndPlay (40);
}
if (_root.ft == 0) {
play();
}
Symbol 227 MovieClip Frame 39
_root.gotoAndPlay("FT");
Symbol 227 MovieClip Frame 81
_root.gotoAndStop("fine2");
stop();
Symbol 240 MovieClip Frame 1
timernow = getTimer();
xtimer = 1;
Symbol 240 MovieClip Frame 2
timer = getTimer() - timernow;
if (Number(Timer) > Number(950 * xtimer)) {
_root.time.sec = _root.time.sec - 1;
xtimer = Number(xtimer) + 1;
}
if (Number(length(_root.time.sec)) < 2) {
_root.time.sec = "0" add _root.time.sec;
}
if (!((Number(_root.time.sec) == 0) && (Number(_root.time.min) == 0))) {
if (Number(_root.time.sec) < 0) {
_root.time.min = _root.time.min - 1;
_root.time.sec = 59;
}
} else {
_root.time.gotoAndStop(5);
}
if (Number(_root.time.sec) > 60) {
_root.time.min = _root.time.min + 1;
_root.time.sec = _root.time.sec - 60;
}
Symbol 240 MovieClip Frame 3
gotoAndPlay (2);
Symbol 236 MovieClip Frame 1
Now = 0;
StartTime = getTimer();
Symbol 236 MovieClip Frame 2
Now = getTimer() - StartTime;
if (Number(Now) >= 3000) {
nextFrame();
} else {
gotoAndPlay (2);
}
Symbol 236 MovieClip Frame 3
stop();
Symbol 236 MovieClip Frame 4
play();
Symbol 236 MovieClip Frame 5
play();
Symbol 236 MovieClip Frame 34
_root.gotoAndPlay("invia");
Symbol 250 Button
on (release) {
var gname = "hockeyEF";
var gscore = _root.score;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
}
Symbol 260 Button
on (release) {
var gname = "hockeyEF";
var gscore = _root.score;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
}
Symbol 283 MovieClip Frame 1
stop();
errorMsg = "";
Symbol 305 Button
on (release) {
var gname = "hockeyEF";
var gscore = _root.score;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
}