Frame 1
_focusrect = 0;
_quality = "low";
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
txtLoaded = nPercentLoaded + "%";
if (nBytesLoaded >= nBytesTotal) {
if ((_url == "http://www.gamesarcade.net/fire/playingwithfire.swf") || true) {
var blnSFX = 1;
var blnMusic = 1;
gotoAndPlay (3);
} else {
txtFool = "Why not go to www.gamesarcade.net and play there? Cos this game has been nicked.";
}
}
Frame 2
gotoAndPlay (1);
Frame 47
getURL ("javascript:document.playingwithfire.SetVariable('_level0.strCookies',(document.cookie) ? parseCookie(document.cookie) : '');");
Frame 50
if (strCookies != "") {
var tmpArr = String(strCookies).split("*####*");
var strCookieName = tmpArr[0];
var strCookieEmail = tmpArr[1];
gotoAndStop (53);
}
Frame 51
gotoAndPlay(_currentframe - 1);
Frame 53
stop();
var nPlayers = 1;
var nOppos = 1;
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(2);
sndMusic1.gotoAndPlay(4);
sndMusic2.gotoAndPlay(4);
}
var strUsername = strCookieName;
var strEmail = strCookieEmail;
txtName = "YOU ARE LOGGED IN AS: " + tmpArr[0];
Frame 54
var nHeat = 1;
var nScore = 0;
var nScore2 = 0;
var nS1 = 0;
var nS2 = 0;
var nS3 = 0;
var nS4 = 0;
stop();
Frame 55
function fGridFill(nLev) {
i = 0;
while (i < _root.nGridWidth) {
arrGridFill[i] = new Array();
arrGridFillNum[i] = new Array();
j = 0;
while (j < _root.nGridHeight) {
arrGridFill[i][j] = 1;
arrGridFillNum[i][j] = -1;
j++;
}
i++;
}
switch (nLev) {
case 1 :
arrGridFill[7][4] = 4;
arrGridFill[7][5] = 4;
arrGridFill[6][5] = 4;
arrGridFill[7][6] = 4;
arrGridFill[7][7] = 4;
arrGridFill[7][8] = 4;
arrGridFill[6][8] = 4;
arrGridFill[8][8] = 4;
return;
case 2 :
arrGridFill[7][4] = 4;
arrGridFill[6][4] = 4;
arrGridFill[8][4] = 4;
arrGridFill[5][5] = 4;
arrGridFill[9][5] = 4;
arrGridFill[7][6] = 4;
arrGridFill[8][6] = 4;
arrGridFill[6][7] = 4;
arrGridFill[6][8] = 4;
arrGridFill[7][8] = 4;
arrGridFill[8][8] = 4;
arrGridFill[9][8] = 4;
arrGridFill[5][8] = 4;
return;
case 3 :
arrGridFill[5][4] = 4;
arrGridFill[6][4] = 4;
arrGridFill[7][4] = 4;
arrGridFill[8][4] = 4;
arrGridFill[9][5] = 4;
arrGridFill[5][6] = 4;
arrGridFill[6][6] = 4;
arrGridFill[7][6] = 4;
arrGridFill[8][6] = 4;
arrGridFill[9][7] = 4;
arrGridFill[5][8] = 4;
arrGridFill[6][8] = 4;
arrGridFill[7][8] = 4;
arrGridFill[8][8] = 4;
}
}
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(4);
sndMusic2.gotoAndPlay(2);
}
var nGridWidth = 15;
var nGridHeight = 13;
var arrGrid = new Array();
var arrGridNum = new Array();
var arrGridFill = new Array();
var arrGridFillNum = new Array();
var nTotalMins = 2;
var nHeats = 3;
var nWinner = 0;
var blnGameOver = 0;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[13][1] = 0;
arrGrid[13][2] = 0;
arrGrid[13][3] = 0;
arrGrid[12][1] = 0;
arrGrid[11][1] = 0;
arrGrid[13][11] = 0;
arrGrid[13][10] = 0;
arrGrid[13][9] = 0;
arrGrid[12][11] = 0;
arrGrid[11][11] = 0;
arrGrid[1][11] = 0;
arrGrid[2][11] = 0;
arrGrid[3][11] = 0;
arrGrid[1][10] = 0;
arrGrid[1][9] = 0;
k = 0;
while (k < 20) {
nI = random(nGridWidth - 2) + 1;
nJ = random(nGridHeight - 2) + 1;
if (arrGrid[nI][nJ] == 2) {
arrGrid[nI][nJ] = 0;
} else {
k--;
}
k++;
}
Instance of Symbol 72 MovieClip "sound" in Frame 55
onClipEvent (load) {
if (!_root.blnSFX) {
gotoAndStop (2);
}
}
Instance of Symbol 72 MovieClip "music" in Frame 55
onClipEvent (load) {
if (!_root.blnMusic) {
gotoAndStop (2);
}
}
Instance of Symbol 77 MovieClip in Frame 55
onClipEvent (load) {
if (_root.nOppos == 2) {
gotoAndStop (2);
} else if (_root.nOppos == 3) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Frame 56
_quality = "low";
stop();
Instance of Symbol 271 MovieClip "movGame" in Frame 56
onClipEvent (load) {
function fPowerUp(x, y) {
var puType = random(4);
nPUCount++;
if ((random(2) == 1) && (arrPowerUps[puType] > 0)) {
duplicateMovieClip ("movPUPS", "movPU" + nPUCount, nPUCount + 400);
eval ("movPU" + nPUCount)._x = ((x * 30) - (nWidth / 2)) + 15;
eval ("movPU" + nPUCount)._y = ((y * 30) - (nHeight / 2)) + 15;
eval ("movPU" + nPUCount).gotoAndStop(puType + 1);
eval ("movPU" + nPUCount).puType = puType;
eval ("movPU" + nPUCount).x = x;
eval ("movPU" + nPUCount).y = y;
_root.arrGrid[x][y] = -1;
_root.arrGridNum[x][y] = nPUCount;
arrPowerUps[puType]--;
}
}
var nBlockCount = 0;
var nBlastCount = 0;
var nBrickCount = 0;
var nBombCount = 0;
var nWidth = 450;
var nHeight = 390;
var nFadeTime = 25;
var nBlowTime = 60;
var arrBombLength = new Array();
var arrBombX = new Array();
var arrBombY = new Array();
var nPUCount = 0;
var arrBombLastLaid = new Array(0, 0, 0, 0);
var arrDead = new Array(0, 0, 0, 0);
var arrPowerUps = new Array(8, 8, 8, 4, 4);
var arrPUTypes = new Array("F", "S", "B", "K", "T");
var arrSpeeds = new Array(2, 3, 5, 6, 10);
var nFillCount = 0;
var nFillDir = 1;
var nWallCount = 1;
var nFillRow = 0;
var nFillCol = 1;
var nFillSlow = 0;
var blnRoundOver = 0;
var nDelay = 0;
i = 0;
while (i < _root.nGridWidth) {
j = 0;
while (j < _root.nGridHeight) {
switch (_root.arrGrid[i][j]) {
case 0 :
break;
case 1 :
duplicateMovieClip ("movBlock1", "movB" + nBlockCount, nBlockCount + 50);
eval ("movB" + nBlockCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movB" + nBlockCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBlockCount;
nBlockCount++;
break;
case 2 :
duplicateMovieClip ("movBlock2", "movBR" + nBrickCount, nBrickCount + 200);
eval ("movBR" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movBR" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movBR" + nBrickCount).x = i;
eval ("movBR" + nBrickCount).y = j;
eval ("movBR" + nBrickCount).txtBrick = (i + "-") + j;
nBrickCount++;
}
j++;
}
i++;
}
duplicateMovieClip ("player1", "movP1", 5000);
if (_root.nPlayers == 2) {
duplicateMovieClip ("player2", "movP2", 5001);
} else {
duplicateMovieClip ("computer2", "movP2", 5001);
}
if (_root.nOppos >= 2) {
duplicateMovieClip ("computer3", "movP3", 5002);
}
if (_root.nOppos >= 3) {
duplicateMovieClip ("computer4", "movP4", 5003);
}
}
onClipEvent (enterFrame) {
if ((((_parent.movTime.strMins == 0) && (_parent.movTime.strSecs < 40)) && (_parent.movTime.strSecs != 0)) && (nFillCount < 80)) {
nFillSlow++;
if ((nFillSlow / 8) == Math.round(nFillSlow / 8)) {
switch (nFillDir) {
case 1 :
nFillRow++;
if (nFillRow > (13 - nWallCount)) {
nFillDir++;
}
break;
case 2 :
nFillCol++;
if (nFillCol > (11 - nWallCount)) {
nFillDir++;
}
break;
case 3 :
nFillRow--;
if (nFillRow <= (0 + nWallCount)) {
nFillDir++;
}
break;
case 4 :
nFillCol--;
if (nFillCol > (1 + nWallCount)) {
break;
}
nFillDir = 1;
nWallCount++;
}
duplicateMovieClip ("movBlock1", "movF" + nFillCount, nFillCount + 4000);
eval ("movF" + nFillCount)._x = ((nFillRow * 30) - (nWidth / 2)) + 15;
eval ("movF" + nFillCount)._y = ((nFillCol * 30) - (nHeight / 2)) + 15;
_root.arrGrid[nFillRow][nFillCol] = 1;
j = 1;
while (j < 5) {
if ((eval ("movP" + j).nGX == nFillRow) && (eval ("movP" + j).nGY == nFillCol)) {
fKillPlayer(j);
}
j++;
}
nFillCount++;
i++;
}
}
if (((!blnRoundOver) && (((((arrDead[0] + arrDead[1]) + arrDead[2]) + arrDead[3]) >= _root.nOppos) || (((arrDead[0] + arrDead[1]) == _root.nPlayers) && (_root.nPlayers == 2)))) && (nFillCount < 149)) {
if (arrDead[0] == 0) {
_root.nWinner = 1;
_root.nS1++;
} else if (arrDead[1] == 0) {
_root.nWinner = 2;
_root.nS2++;
} else {
if (random(2) == 1) {
_root.nS3++;
} else {
_root.nS4++;
}
_root.nWinner = 0;
}
trace(_root.nWinner);
blnRoundOver = 1;
nDelay = 0;
}
if (blnRoundOver == 1) {
nDelay++;
}
if ((blnRoundOver == 1) && (nDelay == 98)) {
_root.fGridFill(_root.nHeat);
}
if ((blnRoundOver == 1) && (nDelay > 100)) {
var i = 0;
while (i < 4) {
switch (nFillDir) {
case 1 :
nFillRow++;
if (nFillRow > (13 - nWallCount)) {
nFillDir++;
}
break;
case 2 :
nFillCol++;
if (nFillCol > (11 - nWallCount)) {
nFillDir++;
}
break;
case 3 :
nFillRow--;
if (nFillRow <= (0 + nWallCount)) {
nFillDir++;
}
break;
case 4 :
nFillCol--;
if (nFillCol > (1 + nWallCount)) {
break;
}
nFillDir = 1;
nWallCount++;
}
if (_root.arrGridFill[nFillRow][nFillCol] == 1) {
duplicateMovieClip ("movBlock1", "movF" + nFillCount, nFillCount + 5050);
} else {
duplicateMovieClip ("movBlock4", "movF" + nFillCount, nFillCount + 5050);
}
eval ("movF" + nFillCount)._x = ((nFillRow * 30) - (nWidth / 2)) + 15;
eval ("movF" + nFillCount)._y = ((nFillCol * 30) - (nHeight / 2)) + 15;
nFillCount++;
i++;
}
}
if (nFillCount >= 149) {
_root.blnGameOver = 1;
_root.gotoAndStop("DONE");
}
}
Instance of Symbol 279 MovieClip "movTime" in Frame 56
onClipEvent (load) {
txtS1 = _root.nS1;
txtS2 = _root.nS2;
txtS3 = _root.nS3;
txtS4 = _root.nS4;
txtTime = _root.nTotalMins + ":00";
myTime = new Date();
nTimeLag = myTime.getTime();
strMins = _root.nTotalMins - 1;
strSecs = 0;
strSecSubtract = 60;
if (_root.nOppos == 1) {
txtS3 = "";
txtS4 = "";
} else if (_root.nOppos == 2) {
txtS4 = "";
}
}
onClipEvent (enterFrame) {
if (!_root.movGame.blnRoundOver) {
myTime = new Date();
nTime = myTime.getTime() - nTimeLag;
strTime = new String(nTime);
nLen = strTime.length;
strSecs = strSecSubtract - Number(strTime.substring(0, nLen - 3));
if (strSecs < 0) {
strSecSubtract = strSecSubtract + 60;
strMins--;
}
if (strSecs >= 60) {
strAdd = 1;
} else {
strAdd = 0;
}
if ((strSecs <= 0) || (strSecs >= 60)) {
strSecs = "00";
}
if ((strSecs > 0) && (strSecs < 10)) {
strSecs = "0" + String(strSecs);
}
txtTime = (Number(strMins + strAdd) + ":") + strSecs;
if (((strMins + strAdd) < 0) && (strSecs == 0)) {
_root.movGame.blnRoundOver = 1;
}
nFrame = (Number(_root.movTime.strMins) * 60) + Number(_root.movTime.strSecs);
movBar.gotoAndStop(120 - nFrame);
}
}
Instance of Symbol 284 MovieClip "movFaces" in Frame 56
onClipEvent (load) {
movP1Dead._alpha = 0;
movP2Dead._alpha = 0;
movP3Dead._alpha = 0;
movP4Dead._alpha = 0;
}
Instance of Symbol 291 MovieClip "movWhatGame" in Frame 56
onClipEvent (load) {
gotoAndStop(_root.nHeat);
}
Frame 57
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic1.gotoAndPlay(2);
sndMusic2.gotoAndPlay(4);
}
stop();
Instance of Symbol 311 MovieClip "movGame" in Frame 57
onClipEvent (load) {
var nBlockCount = 0;
var nBlastCount = 0;
var nBrickCount = 0;
var nBombCount = 0;
var nWidth = 450;
var nHeight = 390;
var nCount = 0;
var nDelCount = 0;
var blnRoundOver = 1;
var nBonus = 0;
var nBonus2 = 0;
var nTick = 0;
i = 0;
while (i < _root.nGridWidth) {
j = 0;
while (j < _root.nGridHeight) {
switch (_root.arrGridFill[i][j]) {
case 1 :
duplicateMovieClip ("movBlock1", "movB" + nBlockCount, nBlockCount + 50);
eval ("movB" + nBlockCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movB" + nBlockCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridFillNum[i][j] = nBlockCount;
nBlockCount++;
break;
case 4 :
duplicateMovieClip ("movBlock4", "movB" + nBlockCount, nBlockCount + 50);
eval ("movB" + nBlockCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movB" + nBlockCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridFillNum[i][j] = nBlockCount;
nBlockCount++;
}
j++;
}
i++;
}
var nSecsLeft = ((Number(_root.movTime.strMins) * 60) + Number(_root.movTime.strSecs));
if (_root.nWinner == 1) {
movScoreMe.txtLevTime = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
} else {
movScoreMe.txtLevTime = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
}
movScoreMe.txtBonus = "0";
movScoreMe.txtScore = _root.nScore;
if (_root.nWinner == 3) {
movScoreMe.txtLevTime2 = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
} else {
movScoreMe.txtLevTime2 = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
}
movScoreMe.txtBonus2 = "0";
movScoreMe.txtScore2 = _root.nScore2;
}
onClipEvent (enterFrame) {
nCount++;
if ((nCount > 60) && (nCount < 81)) {
i = 1;
while (i < 14) {
j = 1;
while (j < 12) {
eval ("movB" + _root.arrGridFillNum[i][j])._alpha = eval ("movB" + _root.arrGridFillNum[i][j])._alpha - 5;
j++;
}
i++;
}
}
if (nCount == 82) {
if (_root.nPlayers == 2) {
movScoreMe.gotoAndStop(3);
} else {
movScoreMe.gotoAndStop(2);
}
}
if ((nCount > 95) && (nTick < nSecsLeft)) {
nTick++;
if (_root.nWinner == 1) {
nBonus = nTick * (_root.nOppos * 250);
} else {
nBonus = (-nTick) * (_root.nOppos * 250);
}
if (_root.nWinner == 2) {
nBonus2 = nTick * (_root.nOppos * 250);
} else {
nBonus2 = (-nTick) * (_root.nOppos * 250);
}
movScoreMe.txtBonus = nBonus;
movScoreMe.txtScore = Number(_root.nScore + nBonus);
movScoreMe.txtBonus2 = nBonus2;
movScoreMe.txtScore2 = Number(_root.nScore2 + nBonus2);
if (_root.blnSFX) {
_root.sndPing.play();
}
}
}
Frame 58
stop();
Frame 59
txtFScore = _root.nScore;
if (nScore > 0) {
movLose._alpha = 0;
movWin.gotoAndPlay(2);
movLose.stop();
} else {
movWin._alpha = 0;
movWin.stop();
movLose.gotoAndPlay(2);
}
stop();
Frame 60
txtFScore1 = _root.nScore;
txtFScore2 = _root.nScore2;
if ((_root.nScore <= 0) && (_root.nScore2 <= 0)) {
movEndo.gotoAndStop(1);
} else if ((_root.nScore > 0) && (_root.nScore2 <= 0)) {
movEndo.gotoAndStop(2);
} else if ((_root.nScore <= 0) && (_root.nScore2 > 0)) {
movEndo.gotoAndStop(3);
} else if ((_root.nScore > 0) && (_root.nScore2 > 0)) {
movEndo.gotoAndStop(4);
}
stop();
Symbol 5 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 3
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 3
stop();
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 3
stop();
Symbol 25 Button
on (release) {
getURL ("http://www.gamesarcade.net", _blank);
}
Symbol 30 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nPlayers = 1;
var tid = 1;
var gid = 11;
loadVariablesNum ("timesplayed.asp", 0, "POST");
play();
}
Symbol 35 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nPlayers = 2;
var tid = 2;
var gid = 11;
loadVariablesNum ("timesplayed.asp", 0, "POST");
play();
}
Symbol 40 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
gotoAndStop (58);
}
Symbol 49 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 3;
play();
}
Symbol 54 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 2;
play();
}
Symbol 59 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 1;
play();
}
Symbol 68 Button
on (release) {
if (_name == "music") {
_root.blnMusic = 0;
_root.sndMusic2.gotoAndPlay(4);
} else {
_root.blnSFX = 0;
}
gotoAndStop (2);
}
Symbol 71 Button
on (release) {
if (_name == "music") {
_root.blnMusic = 1;
_root.sndMusic2.gotoAndPlay(1);
} else {
_root.blnSFX = 1;
}
gotoAndStop (1);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 106 MovieClip Frame 2
stop();
Instance of Symbol 98 MovieClip in Symbol 106 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 106 MovieClip Frame 3
stop();
Instance of Symbol 91 MovieClip in Symbol 106 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 106 MovieClip Frame 4
stop();
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 116 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 120 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 3
stop();
Symbol 133 MovieClip Frame 4
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 137 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 159 MovieClip Frame 1
stop();
Instance of Symbol 144 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 159 MovieClip Frame 2
stop();
Instance of Symbol 151 MovieClip in Symbol 159 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 159 MovieClip Frame 3
stop();
Instance of Symbol 144 MovieClip in Symbol 159 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 159 MovieClip Frame 4
stop();
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 169 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 173 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 177 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 187 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 197 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 201 MovieClip Frame 22
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 3
stop();
Symbol 202 MovieClip Frame 4
stop();
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 217 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 232 MovieClip Frame 2
stop();
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 232 MovieClip Frame 3
stop();
Instance of Symbol 217 MovieClip in Symbol 232 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 232 MovieClip Frame 4
stop();
Instance of Symbol 231 MovieClip in Symbol 232 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 254 MovieClip Frame 1
stop();
Instance of Symbol 239 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 254 MovieClip Frame 2
stop();
Instance of Symbol 246 MovieClip in Symbol 254 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 254 MovieClip Frame 3
stop();
Instance of Symbol 239 MovieClip in Symbol 254 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 254 MovieClip Frame 4
stop();
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 258 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 262 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 266 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 270 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 271 MovieClip Frame 1
function fLayBomb(pid, x, y, blength) {
duplicateMovieClip (eval ("movBomb" + pid), "BOMB" + nBombCount, nBombCount + 500);
eval ("BOMB" + nBombCount)._x = ((x * 30) - (nWidth / 2)) + 15;
eval ("BOMB" + nBombCount)._y = ((y * 30) - (nHeight / 2)) + 15;
eval ("BOMB" + nBombCount).x = x;
eval ("BOMB" + nBombCount).y = y;
eval ("BOMB" + nBombCount).nLaidBy = pid;
_root.arrGrid[x][y] = 3;
_root.arrGridNum[x][y] = nBombCount;
arrBombLastLaid[pid - 1] = 0;
arrBombLength[nBombCount] = blength;
arrBombX[nBombCount] = x;
arrBombY[nBombCount] = y;
nBombCount++;
if (nBombCount >= 25) {
nBombCount = 0;
}
}
function fKillPlayer(pid) {
if (arrDead[pid - 1] == 0) {
duplicateMovieClip ("player1D", ("P" + pid) + "D", 5010 + pid);
eval (("P" + pid) + "D")._x = eval ("movP" + pid)._x;
eval (("P" + pid) + "D")._y = eval ("movP" + pid)._y;
eval (("P" + pid) + "D").gotoAndStop(pid);
arrDead[pid - 1] = 1;
eval (("_root.movFaces.movP" + pid) + "Dead")._alpha = 100;
removeMovieClip(eval ("movP" + pid));
}
}
Instance of Symbol 84 MovieClip "movBlock2" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 106 MovieClip "player1" in Symbol 271 MovieClip Frame 1
onClipEvent (keyDown) {
if (_name != "player1") {
K = Key.getCode();
if (K == 38) {
up = 1;
}
if (K == 40) {
down = 1;
}
if (K == 37) {
left = 1;
}
if (K == 39) {
right = 1;
}
if (((K == 186) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) {
_parent.fLayBomb(1, nGX, nGY, nLength);
nBombsLaid++;
}
}
}
onClipEvent (keyUp) {
if (_name != "player1") {
K = Key.getCode();
if (K == 38) {
up = 0;
}
if (K == 40) {
down = 0;
}
if (K == 37) {
left = 0;
}
if (K == 39) {
right = 0;
}
}
}
onClipEvent (load) {
var nSpd = 2;
var nLength = 2;
var nBombs = 1;
var nBombsLaid = 0;
var canKick = 0;
var canThrow = 0;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
if (_name != "player1") {
_x = nStartX;
_y = nStartY;
}
}
onClipEvent (enterFrame) {
if (_name != "player1") {
_root.d1 = nGX;
_root.d2 = nGY;
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (nStartX + (30 * (nGX - 1))) - _x;
nLagY = (nStartY + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 116 MovieClip "movBomb1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
}
onClipEvent (enterFrame) {
if (_name != "movBomb1") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
switch (nDir) {
case 1 :
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - 5);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 2 :
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + 5);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
break;
case 3 :
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + 5);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 4 :
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - 5);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 120 MovieClip "mov2Blast1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 120 MovieClip "mov2Blast2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 133 MovieClip "movPUPS" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
var puType;
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (_name != "movPUPS") {
i = 1;
while (i <= 4) {
if ((eval ("_parent.movP" + i).nGX == x) && (eval ("_parent.movP" + i).nGY == y)) {
thisX = eval ("_parent.movP" + i)._x;
thisY = eval ("_parent.movP" + i)._y;
if (((thisX / 30) == Math.round(thisX / 30)) && ((thisY / 30) == Math.round(thisY / 30))) {
switch (puType) {
case 0 :
eval ("_parent.movP" + i).nLength++;
break;
case 1 :
if (eval ("_parent.movP" + i).nSpd < 4) {
eval ("_parent.movP" + i).nSpd++;
}
break;
case 2 :
eval ("_parent.movP" + i).nBombs++;
break;
case 3 :
eval ("_parent.movP" + i).canKick = 1;
break;
case 4 :
}
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
if (_root.blnSFX) {
_root.sndPing.play();
}
this.removeMovieClip();
}
}
i++;
}
if (blnStatus == 0) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 137 MovieClip "mov2BlastEnd1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 137 MovieClip "mov2BlastEnd2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 137 MovieClip "mov2BlastEnd3" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 137 MovieClip "mov2BlastEnd4" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 159 MovieClip "player2" in Symbol 271 MovieClip Frame 1
onClipEvent (keyDown) {
if (_name != "player2") {
K = Key.getCode();
if (K == 87) {
up = 1;
}
if (K == 83) {
down = 1;
}
if (K == 65) {
left = 1;
}
if (K == 68) {
right = 1;
}
if (((K == 220) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
nBombsLaid++;
}
}
}
onClipEvent (keyUp) {
if (_name != "player2") {
K = Key.getCode();
if (K == 87) {
up = 0;
}
if (K == 83) {
down = 0;
}
if (K == 65) {
left = 0;
}
if (K == 68) {
right = 0;
}
}
}
onClipEvent (load) {
if (_name != "player2") {
var nSpd = 2;
var nLength = 2;
var nBombs = 1;
var nBombsLaid = 0;
var canKick = 0;
var canThrow = 0;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "player2") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 169 MovieClip "movBomb2" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
}
onClipEvent (enterFrame) {
if (_name != "movBomb2") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
switch (nDir) {
case 1 :
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - 5);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 2 :
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + 5);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
break;
case 3 :
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + 5);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 4 :
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - 5);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 173 MovieClip "mov1Blast1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 173 MovieClip "mov1Blast2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 177 MovieClip "mov1BlastEnd1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 177 MovieClip "mov1BlastEnd2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 177 MovieClip "mov1BlastEnd3" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 177 MovieClip "mov1BlastEnd4" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 159 MovieClip "computer2" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2") {
var nSpd = 2;
var nLength = 2;
var nBombs = 1;
var nBombsLaid = 0;
var canKick = 0;
var canThrow = 0;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2") {
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == 350) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX][nGY - i] == 3) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] == 3) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] == 3) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] == 3) {
isBombRight = 1;
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
switch (nChoice) {
case 1 :
up = 1;
break;
case 2 :
down = 1;
break;
case 3 :
left = 1;
break;
case 4 :
right = 1;
}
}
}
}
if (_name != "computer2") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 187 MovieClip "movBomb4" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
}
onClipEvent (enterFrame) {
if (_name != "movBomb4") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
switch (nDir) {
case 1 :
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - 5);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 2 :
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + 5);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
break;
case 3 :
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + 5);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 4 :
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - 5);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 197 MovieClip "movBomb3" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
}
onClipEvent (enterFrame) {
if (_name != "movBomb3") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
switch (nDir) {
case 1 :
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - 5);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 2 :
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + 5);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
break;
case 3 :
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + 5);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
break;
case 4 :
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - 5);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast1", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd3", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast2", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd4", "BLAST" + _parent.nBlastCount, 600 + _parent.nBlastCount);
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 204 MovieClip "dot1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP1._x;
_y = _parent.movP1._y;
_alpha = 0;
}
Instance of Symbol 204 MovieClip "dot2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP2._x;
_y = _parent.movP2._y;
_alpha = 0;
}
Instance of Symbol 204 MovieClip "dot3" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP3._x;
_y = _parent.movP3._y;
_alpha = 0;
}
Instance of Symbol 204 MovieClip "dot4" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP4._x;
_y = _parent.movP4._y;
_alpha = 0;
}
Instance of Symbol 232 MovieClip "computer3" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3") {
var nSpd = 2;
var nLength = 2;
var nBombs = 1;
var nBombsLaid = 0;
var canKick = 0;
var canThrow = 0;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3") {
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == 350) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if (random(22) == 1) {
_parent.fLayBomb(3, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX][nGY - i] == 3) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] == 3) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] == 3) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] == 3) {
isBombRight = 1;
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
switch (nChoice) {
case 1 :
up = 1;
break;
case 2 :
down = 1;
break;
case 3 :
left = 1;
break;
case 4 :
right = 1;
}
}
}
}
if (_name != "computer3") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 254 MovieClip "computer4" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer4") {
var nSpd = 2;
var nLength = 2;
var nBombs = 1;
var nBombsLaid = 0;
var canKick = 0;
var canThrow = 0;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer4") {
_parent.arrBombLastLaid[3]++;
if ((_parent.arrBombLastLaid[3] == 300) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[3] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 4)) {
if (random(18) == 1) {
_parent.fLayBomb(4, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX][nGY - i] == 3) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] == 3) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] == 3) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] == 3) {
isBombRight = 1;
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
switch (nChoice) {
case 1 :
up = 1;
break;
case 2 :
down = 1;
break;
case 3 :
left = 1;
break;
case 4 :
right = 1;
}
}
}
}
if (_name != "computer4") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 258 MovieClip "mov3Blast1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 258 MovieClip "mov3Blast2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 262 MovieClip "mov3BlastEnd1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 262 MovieClip "mov3BlastEnd2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 262 MovieClip "mov3BlastEnd3" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 262 MovieClip "mov3BlastEnd4" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 266 MovieClip "mov4Blast1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 266 MovieClip "mov4Blast2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 270 MovieClip "mov4BlastEnd1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 270 MovieClip "mov4BlastEnd2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 270 MovieClip "mov4BlastEnd3" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Instance of Symbol 270 MovieClip "mov4BlastEnd4" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 3
stop();
Symbol 278 MovieClip Frame 4
stop();
Symbol 278 MovieClip Frame 5
stop();
Symbol 278 MovieClip Frame 6
stop();
Symbol 278 MovieClip Frame 7
stop();
Symbol 278 MovieClip Frame 8
stop();
Symbol 278 MovieClip Frame 9
stop();
Symbol 278 MovieClip Frame 10
stop();
Symbol 278 MovieClip Frame 11
stop();
Symbol 278 MovieClip Frame 12
stop();
Symbol 278 MovieClip Frame 13
stop();
Symbol 278 MovieClip Frame 14
stop();
Symbol 278 MovieClip Frame 15
stop();
Symbol 278 MovieClip Frame 16
stop();
Symbol 278 MovieClip Frame 17
stop();
Symbol 278 MovieClip Frame 18
stop();
Symbol 278 MovieClip Frame 19
stop();
Symbol 278 MovieClip Frame 20
stop();
Symbol 278 MovieClip Frame 21
stop();
Symbol 278 MovieClip Frame 22
stop();
Symbol 278 MovieClip Frame 23
stop();
Symbol 278 MovieClip Frame 24
stop();
Symbol 278 MovieClip Frame 25
stop();
Symbol 278 MovieClip Frame 26
stop();
Symbol 278 MovieClip Frame 27
stop();
Symbol 278 MovieClip Frame 28
stop();
Symbol 278 MovieClip Frame 29
stop();
Symbol 278 MovieClip Frame 30
stop();
Symbol 278 MovieClip Frame 31
stop();
Symbol 278 MovieClip Frame 32
stop();
Symbol 278 MovieClip Frame 33
stop();
Symbol 278 MovieClip Frame 34
stop();
Symbol 278 MovieClip Frame 35
stop();
Symbol 278 MovieClip Frame 36
stop();
Symbol 278 MovieClip Frame 37
stop();
Symbol 278 MovieClip Frame 38
stop();
Symbol 278 MovieClip Frame 39
stop();
Symbol 278 MovieClip Frame 40
stop();
Symbol 278 MovieClip Frame 41
stop();
Symbol 278 MovieClip Frame 42
stop();
Symbol 278 MovieClip Frame 43
stop();
Symbol 278 MovieClip Frame 44
stop();
Symbol 278 MovieClip Frame 45
stop();
Symbol 278 MovieClip Frame 46
stop();
Symbol 278 MovieClip Frame 47
stop();
Symbol 278 MovieClip Frame 48
stop();
Symbol 278 MovieClip Frame 49
stop();
Symbol 278 MovieClip Frame 50
stop();
Symbol 278 MovieClip Frame 51
stop();
Symbol 278 MovieClip Frame 52
stop();
Symbol 278 MovieClip Frame 53
stop();
Symbol 278 MovieClip Frame 54
stop();
Symbol 278 MovieClip Frame 55
stop();
Symbol 278 MovieClip Frame 56
stop();
Symbol 278 MovieClip Frame 57
stop();
Symbol 278 MovieClip Frame 58
stop();
Symbol 278 MovieClip Frame 59
stop();
Symbol 278 MovieClip Frame 60
stop();
Symbol 278 MovieClip Frame 61
stop();
Symbol 278 MovieClip Frame 62
stop();
Symbol 278 MovieClip Frame 63
stop();
Symbol 278 MovieClip Frame 64
stop();
Symbol 278 MovieClip Frame 65
stop();
Symbol 278 MovieClip Frame 66
stop();
Symbol 278 MovieClip Frame 67
stop();
Symbol 278 MovieClip Frame 68
stop();
Symbol 278 MovieClip Frame 69
stop();
Symbol 278 MovieClip Frame 70
stop();
Symbol 278 MovieClip Frame 71
stop();
Symbol 278 MovieClip Frame 72
stop();
Symbol 278 MovieClip Frame 73
stop();
Symbol 278 MovieClip Frame 74
stop();
Symbol 278 MovieClip Frame 75
stop();
Symbol 278 MovieClip Frame 76
stop();
Symbol 278 MovieClip Frame 77
stop();
Symbol 278 MovieClip Frame 78
stop();
Symbol 278 MovieClip Frame 79
stop();
Symbol 278 MovieClip Frame 80
stop();
Symbol 278 MovieClip Frame 81
stop();
Symbol 278 MovieClip Frame 82
stop();
Symbol 278 MovieClip Frame 83
stop();
Symbol 278 MovieClip Frame 84
stop();
Symbol 278 MovieClip Frame 85
stop();
Symbol 278 MovieClip Frame 86
stop();
Symbol 278 MovieClip Frame 87
stop();
Symbol 278 MovieClip Frame 88
stop();
Symbol 278 MovieClip Frame 89
stop();
Symbol 278 MovieClip Frame 90
stop();
Symbol 278 MovieClip Frame 91
stop();
Symbol 278 MovieClip Frame 92
stop();
Symbol 278 MovieClip Frame 93
stop();
Symbol 278 MovieClip Frame 94
stop();
Symbol 278 MovieClip Frame 95
stop();
Symbol 278 MovieClip Frame 96
stop();
Symbol 278 MovieClip Frame 97
stop();
Symbol 278 MovieClip Frame 98
stop();
Symbol 278 MovieClip Frame 99
stop();
Symbol 278 MovieClip Frame 100
stop();
Symbol 278 MovieClip Frame 101
stop();
Symbol 278 MovieClip Frame 102
stop();
Symbol 278 MovieClip Frame 103
stop();
Symbol 278 MovieClip Frame 104
stop();
Symbol 278 MovieClip Frame 105
stop();
Symbol 278 MovieClip Frame 106
stop();
Symbol 278 MovieClip Frame 107
stop();
Symbol 278 MovieClip Frame 108
stop();
Symbol 278 MovieClip Frame 109
stop();
Symbol 278 MovieClip Frame 110
stop();
Symbol 278 MovieClip Frame 111
stop();
Symbol 278 MovieClip Frame 112
stop();
Symbol 278 MovieClip Frame 113
stop();
Symbol 278 MovieClip Frame 114
stop();
Symbol 278 MovieClip Frame 115
stop();
Symbol 278 MovieClip Frame 116
stop();
Symbol 278 MovieClip Frame 117
stop();
Symbol 278 MovieClip Frame 118
stop();
Symbol 278 MovieClip Frame 119
stop();
Symbol 278 MovieClip Frame 120
stop();
Symbol 278 MovieClip Frame 121
stop();
Symbol 278 MovieClip Frame 122
stop();
Symbol 278 MovieClip Frame 123
stop();
Symbol 278 MovieClip Frame 124
stop();
Symbol 278 MovieClip Frame 125
stop();
Symbol 278 MovieClip Frame 126
stop();
Symbol 278 MovieClip Frame 127
stop();
Symbol 278 MovieClip Frame 128
stop();
Symbol 278 MovieClip Frame 129
stop();
Symbol 278 MovieClip Frame 130
stop();
Symbol 278 MovieClip Frame 131
stop();
Symbol 278 MovieClip Frame 132
stop();
Symbol 278 MovieClip Frame 133
stop();
Symbol 278 MovieClip Frame 134
stop();
Symbol 278 MovieClip Frame 135
stop();
Symbol 278 MovieClip Frame 136
stop();
Symbol 278 MovieClip Frame 137
stop();
Symbol 278 MovieClip Frame 138
stop();
Symbol 278 MovieClip Frame 139
stop();
Symbol 278 MovieClip Frame 140
stop();
Symbol 278 MovieClip Frame 141
stop();
Symbol 278 MovieClip Frame 142
stop();
Symbol 278 MovieClip Frame 143
stop();
Symbol 278 MovieClip Frame 144
stop();
Symbol 278 MovieClip Frame 145
stop();
Symbol 278 MovieClip Frame 146
stop();
Symbol 278 MovieClip Frame 147
stop();
Symbol 278 MovieClip Frame 148
stop();
Symbol 278 MovieClip Frame 149
stop();
Symbol 278 MovieClip Frame 150
stop();
Symbol 278 MovieClip Frame 151
stop();
Symbol 278 MovieClip Frame 152
stop();
Symbol 278 MovieClip Frame 153
stop();
Symbol 279 MovieClip Frame 1
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
Symbol 291 MovieClip Frame 3
stop();
Symbol 301 Button
on (release) {
if (_root.nWinner == 1) {
_root.nScore = _root.nScore + (_parent.nSecsLeft * (_root.nOppos * 250));
} else {
_root.nScore = _root.nScore - (_parent.nSecsLeft * (_root.nOppos * 250));
}
if (_root.nWinner == 2) {
_root.nScore2 = _root.nScore2 + (_parent.nSecsLeft * (_root.nOppos * 250));
} else {
_root.nScore2 = _root.nScore2 - (_parent.nSecsLeft * (_root.nOppos * 250));
}
if (_root.nHeat < _root.nHeats) {
_root.nHeat++;
_root.gotoAndPlay("PLAY");
} else if (_root.nPlayers == 1) {
_root.gotoAndStop("GAMEOVER");
} else {
_root.gotoAndStop("GAMEOVER2");
}
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 3
stop();
Symbol 315 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
gotoAndStop (53);
}
Symbol 327 Button
on (release) {
_root.gotoAndStop("LOADED");
}
Symbol 359 MovieClip Frame 200
stop();
Symbol 361 MovieClip Frame 1
function fMakeMe(g, s, t, u) {
var moveMent = 1;
i = 0;
while (i < g) {
moveMent = moveMent + s;
i++;
}
moveMent = moveMent * u.length;
moveMent = moveMent + t;
chickLeft = g;
chickRight = s;
chickFore = t;
chickBack = moveMent;
chickName = u;
}
fMakeMe(11, _root.nScore, 1, _url);
Symbol 361 MovieClip Frame 2
_root.hallsuccess = "false";
loadVariablesNum ("scores.asp", 0, "POST");
_parent.txtInfo = "SUBMITTING";
Symbol 361 MovieClip Frame 3
if (_root.hallsuccess == "true") {
gotoAndPlay (5);
}
_parent.txtInfo = "IMLYING";
Symbol 361 MovieClip Frame 4
gotoAndPlay(_currentframe - 1);
Symbol 361 MovieClip Frame 5
_parent.txtInfo = "YOU SCORED: " + _root.game.nScore;
_parent.play();
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 187
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
stop();
Symbol 389 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 4
stop();