Frame 1
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
this.gotoAndStop(3);
}
Frame 2
this.gotoAndPlay(1);
Frame 166
playerScore = 0;
computerScore = 0;
yourScore = 0;
highScore = 0;
playerWon = 0;
computerWon = 0;
stop();
Frame 167
numBalls = 7;
playerScoreP = 0;
computerScoreP = 0;
stop();
Frame 174
stop();
Frame 184
function startLevel() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
paddleLeft = paddle._x - (paddle._width / 2);
paddleRight = paddle._x + (paddle._width / 2);
passedPaddle = false;
computerPaddleLeft = computerPaddle._x - (computerPaddle._width / 2);
computerPaddleRight = computerPaddle._x + (computerPaddle._width / 2);
passedComputerPaddle = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddleRight) and ((x + ballRadius) > paddleLeft)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if (((y + ballRadius) > paddleTop) and ((y - ballRadius) < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedPaddle = true;
}
}
if (((x + ballRadius) > computerPaddleLeft) and ((x - ballRadius) < computerPaddleRight)) {
computerPaddleTop = computerPaddle._y - (computerPaddle._height / 2);
computerPaddleBottom = computerPaddle._y + (computerPaddle._height / 2);
if (((y + ballRadius) > computerPaddleTop) and ((y - ballRadius) < computerPaddleBottom)) {
overshoot = (x + ballRadius) - computerPaddleLeft;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedComputerPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and ((passedPaddle = true))) {
errorSound.start(0, 0);
Mouse.show();
computerScoreP++;
if (numBalls == 0) {
if (computerScoreP > playerScoreP) {
computerWon++;
} else {
playerWon++;
}
if (computerScoreP > playerScoreP) {
gotoAndStop (192);
}
if (playerScoreP > computerScoreP) {
gotoAndStop (202);
}
} else {
gotoAndPlay (174);
}
}
if (((x + ballRadius) > rightWall) and ((passedComputerPaddle = true))) {
errorSound.start(0, 0);
Mouse.show();
playerScoreP++;
if (numBalls == 0) {
if (playerScoreP > computerScoreP) {
playerWon++;
} else {
computerWon++;
}
if (computerScoreP > playerScoreP) {
gotoAndStop (192);
}
if (playerScoreP > computerScoreP) {
gotoAndStop (202);
}
} else {
gotoAndPlay (174);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle._y = _ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
}
function moveComputerPaddle() {
moveAmount = 10;
if (computerPaddle._y < topWall) {
computerPaddle._y = topWall;
}
if (computerPaddle._y > bottomWall) {
computerPaddle._y = bottomWall;
}
if (dx > 0) {
if (y < (computerPaddle._y - moveAmount)) {
computerPaddle._y = computerPaddle._y - moveAmount;
} else if (y > (computerPaddle._y + moveAmount)) {
computerPaddle._y = computerPaddle._y + moveAmount;
}
}
}
stop();
Instance of Symbol 92 MovieClip in Frame 184
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Frame 191
stop();
Frame 212
numBalls = 7;
playerScoreOP = 0;
computerScoreOP = 0;
stop();
Frame 219
stop();
Frame 229
function startLevel() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
paddleLeft = paddle._x - (paddle._width / 2);
paddleRight = paddle._x + (paddle._width / 2);
passedPaddle = false;
computerPaddleLeft = computerPaddle._x - (computerPaddle._width / 2);
computerPaddleRight = computerPaddle._x + (computerPaddle._width / 2);
passedComputerPaddle = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddleRight) and ((x + ballRadius) > paddle1Left)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if (((y + ballRadius) > paddleTop) and ((y - ballRadius) < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedPaddle = true;
}
}
if (((x + ballRadius) > computerPaddleLeft) and ((x - ballRadius) < computerPaddleRight)) {
computerPaddleTop = computerPaddle._y - (computerPaddle._height / 2);
computerPaddleBottom = computerPaddle._y + (computerPaddle._height / 2);
if (((y + ballRadius) > computerPaddleTop) and ((y - ballRadius) < computerPaddleBottom)) {
overshoot = (x + ballRadius) - computerPaddleLeft;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedComputerPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle) {
errorSound.start(0, 0);
Mouse.show();
computerScoreOP++;
if (numBalls == 0) {
if (computerScoreOP > playerScoreOP) {
computerWon++;
} else {
playerWon++;
}
if (computerScoreOP > playerScoreOP) {
gotoAndStop (237);
}
if (playerScoreOP > computerScoreOP) {
gotoAndStop (247);
}
} else {
gotoAndPlay (219);
}
}
if (((x + ballRadius) > rightWall) and passedComputerPaddle) {
errorSound.start(0, 0);
Mouse.show();
playerScoreOP++;
if (numBalls == 0) {
if (playerScoreOP > computerScoreOP) {
playerWon++;
} else {
computerWon++;
}
if (computerScoreOP > playerScoreOP) {
gotoAndStop (237);
}
if (playerScoreOP > computerScoreOP) {
gotoAndStop (247);
}
} else {
gotoAndPlay (219);
}
}
ball._x = x;
ball._y = y;
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
i = 1;
while (i <= 6) {
obstacle = _root["obstacle" + i];
if (obstacleHit(obstacle)) {
ballSound.start(0, 0);
dx = dx * -1;
}
i++;
}
}
function obstacleHit(obstacle) {
if (ballTop <= (obstacle._y + (obstacle._height / 2))) {
if (ballBottom >= (obstacle._y - (obstacle._height / 2))) {
if (ballRight >= (obstacle._x - (obstacle._width / 2))) {
if (ballLeft <= (obstacle._x + (obstacle._width / 2))) {
return(true);
}
}
}
}
return(false);
}
function movePaddle() {
paddle._y = _ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
}
function moveComputerPaddle() {
moveAmount = 10;
if (computerPaddle._y < topWall) {
computerPaddle._y = topWall;
}
if (computerPaddle._y > bottomWall) {
computerPaddle._y = bottomWall;
}
if (dx > 0) {
if (y < (computerPaddle._y - moveAmount)) {
computerPaddle._y = computerPaddle._y - moveAmount;
} else if (y > (computerPaddle._y + moveAmount)) {
computerPaddle._y = computerPaddle._y + moveAmount;
}
}
}
stop();
Instance of Symbol 92 MovieClip in Frame 229
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
_root.checkCollisions();
}
Frame 236
stop();
Frame 257
numBalls = 7;
playerScorePD = 0;
computerScorePD = 0;
stop();
Frame 264
stop();
Frame 274
function startLevel() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
paddleRight = paddle._x + (paddle._width / 2);
paddleLeft = paddle._x - (paddle._width / 2);
passedPaddle = false;
computerPaddle1Right = computerPaddle1._x + (computerPaddle1._width / 2);
computerPaddle1Left = computerPaddle1._x - (computerPaddle1._width / 2);
computerPaddle2Right = computerPaddle2._x + (computerPaddle2._width / 2);
computerPaddle2Left = computerPaddle2._x - (computerPaddle2._width / 2);
computerPaddle3Right = computerPaddle3._x + (computerPaddle3._width / 2);
computerPaddle3Left = computerPaddle3._x - (computerPaddle3._width / 2);
passedComputerPaddle3 = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddleRight) and ((x + ballRadius) > paddleLeft)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if (((y + ballRadius) > paddleTop) and ((y - ballRadius) < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedPaddle = true;
}
}
if (((x - ballRadius) < computerPaddle1Right) and ((x + ballRadius) > computerPaddle1Left)) {
computerPaddle1Top = computerPaddle1._y - (computerPaddle1._height / 2);
computerPaddle1Bottom = computerPaddle1._y + (computerPaddle1._height / 2);
if (((y + ballRadius) > computerPaddle1Top) and ((y - ballRadius) < computerPaddle1Bottom)) {
overshoot = computerPaddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
}
}
if (((x + ballRadius) > computerPaddle2Left) and ((x - ballRadius) < computerPaddle2Right)) {
computerPaddle2Top = computerPaddle2._y - (computerPaddle2._height / 2);
computerPaddle2Bottom = computerPaddle2._y + (computerPaddle2._height / 2);
if (((y + ballRadius) > computerPaddle2Top) and ((y - ballRadius) < computerPaddle2Bottom)) {
overshoot = (x + ballRadius) - computerPaddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
}
}
if (((x + ballRadius) > computerPaddle3Left) and ((x - ballRadius) < computerPaddle3Right)) {
computerPaddle3Top = computerPaddle3._y - (computerPaddle3._height / 2);
computerPaddle3Bottom = computerPaddle3._y + (computerPaddle3._height / 2);
if (((y + ballRadius) > computerPaddle3Top) and ((y - ballRadius) < computerPaddle3Bottom)) {
overshoot = (x + ballRadius) - computerPaddle3Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedComputerPaddle3 = true;
}
}
if (((x - ballRadius) < leftWall) and ((passedComputerPaddle1 = true))) {
errorSound.start(0, 0);
Mouse.show();
computerScorePD++;
if (numBalls == 0) {
if (computerScorePD > playerScorePD) {
computerWon++;
} else {
playerWon++;
}
if (computerScorePD > playerScorePD) {
gotoAndStop (282);
}
if (playerScorePD > computerScorePD) {
gotoAndStop (292);
}
} else {
gotoAndPlay (264);
}
}
if (((x + ballRadius) > rightWall) and ((passedComputerPaddle3 = true))) {
errorSound.start(0, 0);
Mouse.show();
playerScorePD++;
if (numBalls == 0) {
if (playerScorePD > computerScorePD) {
computerWon++;
} else {
playerWon++;
}
if (computerScorePD > playerScorePD) {
gotoAndStop (282);
}
if (playerScorePD > computerScorePD) {
gotoAndStop (292);
}
} else {
gotoAndPlay (264);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle._y = _ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
}
function moveComputerPaddle() {
moveAmount = 10;
if (computerPaddle1._y <= 190) {
computerPaddle1._y = 190;
}
if (computerPaddle1._y >= 210) {
computerPaddle1._y = 210;
}
if (computerPaddle2._y <= 190) {
computerPaddle2._y = 190;
}
if (computerPaddle2._y >= 210) {
computerPaddle2._y = 210;
}
if (computerPaddle3._y <= topWall) {
computerPaddle3._y = topWall;
}
if (computerPaddle3._y >= bottomWall) {
computerPaddle3._y = bottomWall;
}
if (dx < 553) {
if (y < (computerPaddle1._y - moveAmount)) {
computerPaddle1._y = computerPaddle1._y - moveAmount;
} else if (y > (computerPaddle1._y + moveAmount)) {
computerPaddle1._y = computerPaddle1._y + moveAmount;
}
}
if (dx > 0) {
if (y < (computerPaddle2._y - moveAmount)) {
computerPaddle2._y = computerPaddle2._y - moveAmount;
} else if (y > (computerPaddle2._y + moveAmount)) {
computerPaddle2._y = computerPaddle2._y + moveAmount;
}
}
if (dx > 0) {
if (y < (computerPaddle3._y - moveAmount)) {
computerPaddle3._y = computerPaddle3._y - moveAmount;
} else if (y > (computerPaddle3._y + moveAmount)) {
computerPaddle3._y = computerPaddle3._y + moveAmount;
}
}
}
stop();
Instance of Symbol 92 MovieClip in Frame 274
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Frame 281
stop();
Frame 302
yourScore = 0;
numLevel = 0;
numBalls = 3;
stop();
Instance of Symbol 92 MovieClip in Frame 302
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.serveSound = new Sound();
_root.serveSound.attachSound("serve");
_root.selLevSound = new Sound();
_root.selLevSound.attachSound("selLevSound");
}
Frame 310
stop();
Frame 321
function initGame() {
Mouse.hide();
numLevel = 1;
topWall = 0;
bottomWall = 400;
leftWall = 0;
rightWall = 400;
ballpos = {x:200, y:200, z:0};
ballvel = {x:4, y:4, z:4};
bricks = new Array();
var x = 0;
while (x < 2) {
var y = 0;
while (y < 2) {
brick = attachMovie("brick", ("brick" + x) + y, x + (y * 4));
brick._x = 170 + (60 * x);
brick._y = 170 + (60 * y);
bricks.push(brick);
y++;
}
x++;
}
paddle.swapDepths(101);
ball.swapDepths(100);
}
function movePaddle() {
paddle._x = _root._xmouse;
paddle._y = _root._ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
function moveBall() {
ballpos.x = ballpos.x + ballvel.x;
ballpos.y = ballpos.y + ballvel.y;
ballpos.z = ballpos.z + ballvel.z;
ball._x = ballpos.x + ((ballpos.z * (200 - ballpos.x)) / 200);
ball._y = ballpos.y + ((ballpos.z * (200 - ballpos.y)) / 200);
ball._xscale = (200 - ballpos.z) / 2;
ball._yscale = (200 - ballpos.z) / 2;
ring._xscale = (200 - ballpos.z) / 2;
ring._yscale = (200 - ballpos.z) / 2;
if (ballpos.x > 400) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.x < 0) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.y > 400) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.y < 0) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.z > 140) {
ballSound.start(0, 0);
ballvel.z = ballvel.z * -1;
var i = (bricks.length - 1);
while (i >= 0) {
if (bricks[i].hitTest(ball._x, ball._y)) {
bricks[i].removeMovieClip();
bricks.splice(i, 1);
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
}
i--;
}
}
if (ballpos.z < 0) {
px = ballpos.x - paddle._x;
py = ballpos.y - paddle._y;
if ((Math.abs(px) < 35) and (Math.abs(py) < 35)) {
ballvel.x = px / 7;
ballvel.y = py / 7;
paddle._alpha = 90;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
} else {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
removeBallAndPaddle();
removeBricks();
gotoAndStop (498);
} else {
Mouse.show();
removeBallAndPaddle();
removeBricks();
gotoAndStop (329);
}
}
ballvel.z = ballvel.z * -1;
} else {
paddle._alpha = 50;
}
if (bricks.length < 1) {
numLevel++;
removeBallAndPaddle();
Mouse.show();
gotoAndStop (340);
}
}
function removeBallAndPaddle() {
paddle.removeMovieClip();
ball.removeMovieClip();
}
function removeBricks() {
var i = 0;
while (i < bricks.length) {
bricks[i].removeMovieClip();
i++;
}
}
Instance of Symbol 169 MovieClip in Frame 321
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 329
stop();
Frame 340
stop();
Frame 350
function initGame() {
Mouse.hide();
numLevel = 2;
topWall = 0;
bottomWall = 400;
leftWall = 0;
rightWall = 400;
ballpos = {x:200, y:200, z:0};
ballvel = {x:4, y:4, z:4};
bricks = new Array();
var x = 0;
while (x < 3) {
var y = 0;
while (y < 3) {
brick = attachMovie("brick3", ("brick3" + x) + y, x + (y * 4));
brick._x = 160 + (40 * x);
brick._y = 160 + (40 * y);
bricks.push(brick);
y++;
}
x++;
}
paddle.swapDepths(101);
ball.swapDepths(100);
}
function movePaddle() {
paddle._x = _root._xmouse;
paddle._y = _root._ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
function moveBall() {
ballpos.x = ballpos.x + ballvel.x;
ballpos.y = ballpos.y + ballvel.y;
ballpos.z = ballpos.z + ballvel.z;
ball._x = ballpos.x + ((ballpos.z * (200 - ballpos.x)) / 200);
ball._y = ballpos.y + ((ballpos.z * (200 - ballpos.y)) / 200);
ball._xscale = (200 - ballpos.z) / 2;
ball._yscale = (200 - ballpos.z) / 2;
ring._xscale = (200 - ballpos.z) / 2;
ring._yscale = (200 - ballpos.z) / 2;
if (ballpos.x > 400) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.x < 0) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.y > 400) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.y < 0) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.z > 140) {
ballSound.start(0, 0);
ballvel.z = ballvel.z * -1;
var i = (bricks.length - 1);
while (i >= 0) {
if (bricks[i].hitTest(ball._x, ball._y)) {
bricks[i].removeMovieClip();
bricks.splice(i, 1);
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
}
i--;
}
}
if (ballpos.z < 0) {
px = ballpos.x - paddle._x;
py = ballpos.y - paddle._y;
if ((Math.abs(px) < 35) and (Math.abs(py) < 35)) {
ballvel.x = px / 7;
ballvel.y = py / 7;
paddle._alpha = 90;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
} else {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
removeBallAndPaddle();
removeBricks();
gotoAndStop (498);
} else {
Mouse.show();
removeBallAndPaddle();
removeBricks();
gotoAndStop (358);
}
}
ballvel.z = ballvel.z * -1;
} else {
paddle._alpha = 50;
}
if (bricks.length < 1) {
Mouse.show();
numLevel++;
removeBallAndPaddle();
gotoAndStop (369);
}
}
function removeBallAndPaddle() {
paddle.removeMovieClip();
ball.removeMovieClip();
}
function removeBricks() {
var i = 0;
while (i < bricks.length) {
bricks[i].removeMovieClip();
i++;
}
}
Instance of Symbol 169 MovieClip in Frame 350
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 358
stop();
Frame 369
stop();
Frame 379
function initGame() {
Mouse.hide();
numLevel = 3;
topWall = 0;
bottomWall = 400;
leftWall = 0;
rightWall = 400;
ballpos = {x:200, y:200, z:0};
ballvel = {x:4, y:4, z:4};
bricks = new Array();
var x = 0;
while (x < 4) {
var y = 0;
while (y < 4) {
brick = attachMovie("brick4", ("brick4" + x) + y, x + (y * 4));
brick._x = 155 + (30 * x);
brick._y = 155 + (30 * y);
bricks.push(brick);
y++;
}
x++;
}
paddle.swapDepths(101);
ball.swapDepths(100);
}
function movePaddle() {
paddle._x = _root._xmouse;
paddle._y = _root._ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
function moveBall() {
ballpos.x = ballpos.x + ballvel.x;
ballpos.y = ballpos.y + ballvel.y;
ballpos.z = ballpos.z + ballvel.z;
ball._x = ballpos.x + ((ballpos.z * (200 - ballpos.x)) / 200);
ball._y = ballpos.y + ((ballpos.z * (200 - ballpos.y)) / 200);
ball._xscale = (200 - ballpos.z) / 2;
ball._yscale = (200 - ballpos.z) / 2;
ring._xscale = (200 - ballpos.z) / 2;
ring._yscale = (200 - ballpos.z) / 2;
if (ballpos.x > 400) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.x < 0) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.y > 400) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.y < 0) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.z > 140) {
ballSound.start(0, 0);
ballvel.z = ballvel.z * -1;
var i = (bricks.length - 1);
while (i >= 0) {
if (bricks[i].hitTest(ball._x, ball._y)) {
bricks[i].removeMovieClip();
bricks.splice(i, 1);
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
}
i--;
}
}
if (ballpos.z < 0) {
px = ballpos.x - paddle._x;
py = ballpos.y - paddle._y;
if ((Math.abs(px) < 35) and (Math.abs(py) < 35)) {
ballvel.x = px / 7;
ballvel.y = py / 7;
paddle._alpha = 90;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
} else {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
removeBallAndPaddle();
removeBricks();
gotoAndStop (498);
} else {
Mouse.show();
removeBallAndPaddle();
removeBricks();
gotoAndStop (387);
}
}
ballvel.z = ballvel.z * -1;
} else {
paddle._alpha = 50;
}
if (bricks.length < 1) {
Mouse.show();
numLevel++;
removeBallAndPaddle();
gotoAndStop (398);
}
}
function removeBallAndPaddle() {
paddle.removeMovieClip();
ball.removeMovieClip();
}
function removeBricks() {
var i = 0;
while (i < bricks.length) {
bricks[i].removeMovieClip();
i++;
}
}
Instance of Symbol 169 MovieClip in Frame 379
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 387
stop();
Frame 398
stop();
Frame 408
function initGame() {
Mouse.hide();
numLevel = 4;
topWall = 0;
bottomWall = 400;
leftWall = 0;
rightWall = 400;
ballpos = {x:200, y:200, z:0};
ballvel = {x:4, y:4, z:4};
bricks = new Array();
var x = 0;
while (x < 5) {
var y = 0;
while (y < 5) {
brick = attachMovie("brick5", ("brick5" + x) + y, x + (y * 5));
brick._x = 152 + (24 * x);
brick._y = 152 + (24 * y);
bricks.push(brick);
y++;
}
x++;
}
paddle.swapDepths(101);
ball.swapDepths(100);
}
function movePaddle() {
paddle._x = _root._xmouse;
paddle._y = _root._ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
function moveBall() {
ballpos.x = ballpos.x + ballvel.x;
ballpos.y = ballpos.y + ballvel.y;
ballpos.z = ballpos.z + ballvel.z;
ball._x = ballpos.x + ((ballpos.z * (200 - ballpos.x)) / 200);
ball._y = ballpos.y + ((ballpos.z * (200 - ballpos.y)) / 200);
ball._xscale = (200 - ballpos.z) / 2;
ball._yscale = (200 - ballpos.z) / 2;
ring._xscale = (200 - ballpos.z) / 2;
ring._yscale = (200 - ballpos.z) / 2;
if (ballpos.x > 400) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.x < 0) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.y > 400) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.y < 0) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.z > 140) {
ballSound.start(0, 0);
ballvel.z = ballvel.z * -1;
var i = (bricks.length - 1);
while (i >= 0) {
if (bricks[i].hitTest(ball._x, ball._y)) {
bricks[i].removeMovieClip();
bricks.splice(i, 1);
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
}
i--;
}
}
if (ballpos.z < 0) {
px = ballpos.x - paddle._x;
py = ballpos.y - paddle._y;
if ((Math.abs(px) < 35) and (Math.abs(py) < 35)) {
ballvel.x = px / 7;
ballvel.y = py / 7;
paddle._alpha = 90;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
} else {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
removeBallAndPaddle();
removeBricks();
gotoAndStop (498);
} else {
Mouse.show();
removeBallAndPaddle();
removeBricks();
gotoAndStop (417);
}
}
ballvel.z = ballvel.z * -1;
} else {
paddle._alpha = 50;
}
if (bricks.length < 1) {
Mouse.show();
numLevel++;
removeBallAndPaddle();
gotoAndStop (428);
}
}
function removeBallAndPaddle() {
paddle.removeMovieClip();
ball.removeMovieClip();
}
function removeBricks() {
var i = 0;
while (i < bricks.length) {
bricks[i].removeMovieClip();
i++;
}
}
Instance of Symbol 169 MovieClip in Frame 408
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 417
stop();
Frame 428
stop();
Frame 439
function initGame() {
Mouse.hide();
numLevel = 5;
topWall = 0;
bottomWall = 400;
leftWall = 0;
rightWall = 400;
ballpos = {x:200, y:200, z:0};
ballvel = {x:4, y:4, z:4};
bricks = new Array();
var x = 0;
while (x < 6) {
var y = 0;
while (y < 6) {
brick = attachMovie("brick6", ("brick6" + x) + y, x + (y * 6));
brick._x = 150 + (20 * x);
brick._y = 150 + (20 * y);
bricks.push(brick);
y++;
}
x++;
}
paddle.swapDepths(101);
ball.swapDepths(100);
}
function movePaddle() {
paddle._x = _root._xmouse;
paddle._y = _root._ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
function moveBall() {
ballpos.x = ballpos.x + ballvel.x;
ballpos.y = ballpos.y + ballvel.y;
ballpos.z = ballpos.z + ballvel.z;
ball._x = ballpos.x + ((ballpos.z * (200 - ballpos.x)) / 200);
ball._y = ballpos.y + ((ballpos.z * (200 - ballpos.y)) / 200);
ball._xscale = (200 - ballpos.z) / 2;
ball._yscale = (200 - ballpos.z) / 2;
ring._xscale = (200 - ballpos.z) / 2;
ring._yscale = (200 - ballpos.z) / 2;
if (ballpos.x > 400) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.x < 0) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.y > 400) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.y < 0) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.z > 140) {
ballSound.start(0, 0);
ballvel.z = ballvel.z * -1;
var i = (bricks.length - 1);
while (i >= 0) {
if (bricks[i].hitTest(ball._x, ball._y)) {
bricks[i].removeMovieClip();
bricks.splice(i, 1);
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
}
i--;
}
}
if (ballpos.z < 0) {
px = ballpos.x - paddle._x;
py = ballpos.y - paddle._y;
if ((Math.abs(px) < 35) and (Math.abs(py) < 35)) {
ballvel.x = px / 7;
ballvel.y = py / 7;
paddle._alpha = 90;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
} else {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
removeBallAndPaddle();
removeBricks();
gotoAndStop (498);
} else {
Mouse.show();
removeBallAndPaddle();
removeBricks();
gotoAndStop (448);
}
}
ballvel.z = ballvel.z * -1;
} else {
paddle._alpha = 50;
}
if (bricks.length < 1) {
Mouse.show();
numLevel++;
removeBallAndPaddle();
gotoAndStop (459);
}
}
function removeBallAndPaddle() {
paddle.removeMovieClip();
ball.removeMovieClip();
}
function removeBricks() {
var i = 0;
while (i < bricks.length) {
bricks[i].removeMovieClip();
i++;
}
}
Instance of Symbol 169 MovieClip in Frame 439
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 448
stop();
Frame 459
stop();
Frame 470
function initGame() {
Mouse.hide();
numLevel = 6;
topWall = 0;
bottomWall = 400;
leftWall = 0;
rightWall = 400;
ballpos = {x:200, y:200, z:0};
ballvel = {x:4, y:4, z:4};
bricks = new Array();
var x = 0;
while (x < 7) {
var y = 0;
while (y < 7) {
brick = attachMovie("brick7", ("brick7" + x) + y, x + (y * 7));
brick._x = 148 + (17 * x);
brick._y = 148 + (17 * y);
bricks.push(brick);
y++;
}
x++;
}
paddle.swapDepths(101);
ball.swapDepths(100);
}
function movePaddle() {
paddle._x = _root._xmouse;
paddle._y = _root._ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
function moveBall() {
ballpos.x = ballpos.x + ballvel.x;
ballpos.y = ballpos.y + ballvel.y;
ballpos.z = ballpos.z + ballvel.z;
ball._x = ballpos.x + ((ballpos.z * (200 - ballpos.x)) / 200);
ball._y = ballpos.y + ((ballpos.z * (200 - ballpos.y)) / 200);
ball._xscale = (200 - ballpos.z) / 2;
ball._yscale = (200 - ballpos.z) / 2;
ring._xscale = (200 - ballpos.z) / 2;
ring._yscale = (200 - ballpos.z) / 2;
if (ballpos.x > 400) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.x < 0) {
ballvel.x = ballvel.x * -1;
}
if (ballpos.y > 400) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.y < 0) {
ballvel.y = ballvel.y * -1;
}
if (ballpos.z > 140) {
ballSound.start(0, 0);
ballvel.z = ballvel.z * -1;
var i = (bricks.length - 1);
while (i >= 0) {
if (bricks[i].hitTest(ball._x, ball._y)) {
bricks[i].removeMovieClip();
bricks.splice(i, 1);
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
}
i--;
}
}
if (ballpos.z < 0) {
px = ballpos.x - paddle._x;
py = ballpos.y - paddle._y;
if ((Math.abs(px) < 35) and (Math.abs(py) < 35)) {
ballvel.x = px / 7;
ballvel.y = py / 7;
paddle._alpha = 90;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
} else {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
removeBallAndPaddle();
removeBricks();
gotoAndStop (498);
} else {
Mouse.show();
removeBallAndPaddle();
removeBricks();
gotoAndStop (448);
}
}
ballvel.z = ballvel.z * -1;
} else {
paddle._alpha = 50;
}
if (bricks.length < 1) {
Mouse.show();
numLevel++;
removeBallAndPaddle();
gotoAndStop (459);
}
}
function removeBallAndPaddle() {
paddle.removeMovieClip();
ball.removeMovieClip();
}
function removeBricks() {
var i = 0;
while (i < bricks.length) {
bricks[i].removeMovieClip();
i++;
}
}
Instance of Symbol 169 MovieClip in Frame 470
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 479
stop();
Frame 491
stop();
Frame 498
stop();
Frame 509
numBalls = 7;
playerScoreP = 0;
computerScoreP = 0;
stop();
Frame 517
stop();
Frame 529
function startLevel() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle1Right = paddle1._x + (paddle1._width / 2);
passedPaddle1 = false;
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
passedPaddle2 = false;
computerPaddle1Left = computerPaddle1._x - (computerPaddle1._width / 2);
computerPaddle1Right = computerPaddle1._x + (computerPaddle1._width / 2);
passedComputerPaddle1 = false;
computerPaddle2Top = computerPaddle2._y - (computerPaddle2._height / 2);
computerPaddle2Bottom = computerPaddle2._y + (computerPaddle2._height / 2);
passedComputerPaddle2 = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((y - ballRadius) < paddle2Bottom) and ((y + ballRadius) > paddle2Top)) {
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
overshoot = paddle2Bottom - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x + ballRadius) > computerPaddle1Left) and ((x - ballRadius) < computerPaddle1Right)) {
computerPaddle1Top = computerPaddle1._y - (computerPaddle1._height / 2);
computerPaddle1Bottom = computerPaddle1._y + (computerPaddle1._height / 2);
if (((y + ballRadius) > computerPaddle1Top) and ((y - ballRadius) < computerPaddle1Bottom)) {
overshoot = computerPaddle1Left - (x - ballRadius);
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedComputerPaddle1 = true;
}
}
if (((y + ballRadius) > computerPaddle2Top) and ((y - ballRadius) < computerPaddle2Bottom)) {
computerPaddle2Left = computerPaddle2._x - (computerPaddle2._width / 2);
computerPaddle2Right = computerPaddle2._x + (computerPaddle2._width / 2);
if (((x - ballRadius) > computerPaddle2Left) and ((x + ballRadius) < computerPaddle2Right)) {
overshoot = computerPaddle2Top - (y - ballRadius);
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedComputerPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
computerScoreP++;
if (numBalls == 0) {
if (computerScoreP > playerScoreP) {
computerWon++;
} else {
playerWon++;
}
if (computerScoreP > playerScoreP) {
gotoAndStop (538);
}
if (playerScoreP > computerScoreP) {
gotoAndStop (550);
}
} else {
gotoAndPlay (517);
}
}
if (((y - ballRadius) < topWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
computerScoreP++;
if (numBalls == 0) {
if (computerScoreP > playerScoreP) {
computerWon++;
} else {
playerWon++;
}
if (computerScoreP > playerScoreP) {
gotoAndStop (538);
}
if (playerScoreP > computerScoreP) {
gotoAndStop (550);
}
} else {
gotoAndPlay (517);
}
}
if (((x + ballRadius) > rightWall) and passedComputerPaddle1) {
errorSound.start(0, 0);
Mouse.show();
playerScoreP++;
if (numBalls == 0) {
if (playerScoreP > computerScoreP) {
playerWon++;
} else {
computerWon++;
}
if (computerScoreP > playerScoreP) {
gotoAndStop (538);
}
if (playerScoreP > computerScoreP) {
gotoAndStop (550);
}
} else {
gotoAndPlay (517);
}
}
if (((y + ballRadius) > bottomWall) and passedComputerPaddle2) {
errorSound.start(0, 0);
Mouse.show();
playerScoreP++;
if (numBalls == 0) {
if (playerScoreP > computerScoreP) {
playerWon++;
} else {
computerWon++;
}
if (computerScoreP > playerScoreP) {
gotoAndStop (538);
}
if (playerScoreP > computerScoreP) {
gotoAndStop (550);
}
} else {
gotoAndPlay (517);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._x = _xmouse;
if (paddle1._y <= topWall) {
paddle1._y = topWall;
}
if (paddle1._y >= bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._x <= leftWall) {
paddle2._x = leftWall;
}
if (paddle2._x >= rightWall) {
paddle2._x = rightWall;
}
}
function moveComputerPaddle() {
moveAmount = 10;
if (computerPaddle1._y <= topWall) {
computerPaddle1._y = topWall;
}
if (computerPaddle1._y >= bottomWall) {
computerPaddle1._y = bottomWall;
}
if (computerPaddle2._x <= leftWall) {
computerPaddle2._x = leftWall;
}
if (computerPaddle2._x >= rightWall) {
computerPaddle2._x = rightWall;
}
if (dx > 0) {
if (y < (computerPaddle1._y - moveAmount)) {
computerPaddle1._y = computerPaddle1._y - moveAmount;
} else if (y > (computerPaddle1._y + moveAmount)) {
computerPaddle1._y = computerPaddle1._y + moveAmount;
}
}
if (dy > 0) {
if (x < (computerPaddle2._x - moveAmount)) {
computerPaddle2._x = computerPaddle2._x - moveAmount;
} else if (x > (computerPaddle2._x + moveAmount)) {
computerPaddle2._x = computerPaddle2._x + moveAmount;
}
}
}
stop();
Instance of Symbol 92 MovieClip in Frame 529
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Frame 537
stop();
Frame 562
yourScore = 0;
highScore = 0;
stop();
Frame 570
function initGame() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
rightWall = 547;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
paddleLeft = paddle._x - (paddle._width / 2);
paddleRight = paddle._x + (paddle._width / 2);
passedPaddle = false;
Mouse.hide();
yourScore = 0;
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((x + ballRadius) > rightWall) {
overshoot = (x + ballRadius) - rightWall;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
}
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddleRight) and ((x + ballRadius) > paddle1Left)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if (((y + ballRadius) > paddleTop) and ((y - ballRadius) < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.1;
dy = dy * 1.1;
} else {
passedPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (578);
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle._y = _ymouse;
if (paddle._y < topWall) {
paddle._y = topWall;
}
if (paddle._y > bottomWall) {
paddle._y = bottomWall;
}
}
stop();
Instance of Symbol 224 MovieClip in Frame 570
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 578
stop();
Frame 590
yourScore = 0;
highScore = 0;
stop();
Frame 597
function initGame() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle1Right = paddle1._x + (paddle1._width / 2);
passedPaddle1 = false;
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle2 = false;
Mouse.hide();
yourScore = 0;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = paddle2Left - (x - ballRadius);
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.05;
dy = dy * 1.05;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (604);
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (604);
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
stop();
Instance of Symbol 224 MovieClip in Frame 597
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 604
stop();
Frame 615
yourScore = 0;
highScore = 0;
stop();
Frame 623
function initGame() {
x = ball._x;
y = ball._y;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle1Right = paddle1._x + (paddle1._width / 2);
passedPaddle1 = false;
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
passedPaddle2 = false;
paddle3Left = paddle3._x - (paddle3._width / 2);
paddle3Right = paddle3._x + (paddle3._width / 2);
passedPaddle3 = false;
paddle4Top = paddle4._y - (paddle4._height / 2);
paddle4Bottom = paddle4._y + (paddle4._height / 2);
passedPaddle4 = false;
Mouse.hide();
yourScore = 0;
}
function moveBall() {
x = x + dx;
y = y + dy;
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((y - ballRadius) < paddle2Bottom) and ((y + ballRadius) > paddle2Top)) {
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
overshoot = paddle2Bottom - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x + ballRadius) > paddle3Left) and ((x - ballRadius) < paddle3Right)) {
paddle3Top = paddle3._y - (paddle3._height / 2);
paddle3Bottom = paddle3._y + (paddle3._height / 2);
if (((y + ballRadius) > paddle3Top) and ((y - ballRadius) < paddle3Bottom)) {
overshoot = paddle3Left - (x - ballRadius);
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle3 = true;
}
}
if (((y + ballRadius) > paddle4Top) and ((y - ballRadius) < paddle4Bottom)) {
paddle4Left = paddle4._x - (paddle4._width / 2);
paddle4Right = paddle4._x + (paddle4._width / 2);
if (((x - ballRadius) > paddle4Left) and ((x + ballRadius) < paddle4Right)) {
overshoot = paddle4Top - (y - ballRadius);
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle4 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (631);
}
if (((y - ballRadius) < topWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (631);
}
if (((x + ballRadius) > rightWall) and passedPaddle3) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (631);
}
if (((y + ballRadius) > bottomWall) and passedPaddle4) {
errorSound.start(0, 0);
Mouse.show();
gotoAndPlay (631);
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._x = _xmouse;
paddle3._y = _ymouse;
paddle4._x = _xmouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._x < leftWall) {
paddle2._x = leftWall;
}
if (paddle2._x > rightWall) {
paddle2._x = rightWall;
}
if (paddle3._y < topWall) {
paddle3._y = topWall;
}
if (paddle3._y > bottomWall) {
paddle3._y = bottomWall;
}
if (paddle4._x < leftWall) {
paddle4._x = leftWall;
}
if (paddle4._x > rightWall) {
paddle4._x = rightWall;
}
}
stop();
Instance of Symbol 224 MovieClip in Frame 623
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 631
stop();
Frame 643
yourScore = 0;
numLevel = 0;
numBalls = 3;
stop();
Frame 674
stop();
Frame 675
function initGame() {
numLevel = 1;
x = ball._x;
y = ball._y;
dx = 4;
dy = 4;
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Right = paddle1._x + (paddle1._width / 2);
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle1 = false;
passedPaddle2 = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = (x + ballRadius) - paddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (648);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (648);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
leveldone = true;
i = 1;
while (i <= 24) {
brick = _root["a" + i];
if (brick._y != -1000) {
if (brickHit(brick)) {
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
brick._y = -1000;
dx = dx * -1;
} else {
leveldone = false;
}
}
i++;
}
if (leveldone) {
Mouse.show();
numLevel++;
gotoAndPlay (681);
dx = dx + 1;
if (dx > 7) {
dx = 7;
}
}
}
function brickHit(brick) {
if (ballTop <= (brick._y + (brick._height / 2))) {
if (ballBottom >= (brick._y - (brick._height / 2))) {
if (ballRight >= (brick._x - (brick._width / 2))) {
if (ballLeft <= (brick._x + (brick._width / 2))) {
return(true);
}
}
}
}
return(false);
}
stop();
Instance of Symbol 224 MovieClip in Frame 675
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.checkCollisions();
}
Frame 706
stop();
Frame 707
function initGame() {
numLevel = 2;
x = ball._x;
y = ball._y;
dx = 4;
dy = 4;
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Right = paddle1._x + (paddle1._width / 2);
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle1 = false;
passedPaddle2 = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = (x + ballRadius) - paddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (681);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (681);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
leveldone = true;
i = 1;
while (i <= 40) {
brick = _root["a" + i];
if (brick._y != -1000) {
if (brickHit(brick)) {
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
brick._y = -1000;
dx = dx * -1;
} else {
leveldone = false;
}
}
i++;
}
if (leveldone) {
Mouse.show();
numLevel++;
gotoAndPlay (713);
dx = dx + 1;
if (dx > 7) {
dx = 7;
}
}
}
function brickHit(brick) {
if (ballTop <= (brick._y + (brick._height / 2))) {
if (ballBottom >= (brick._y - (brick._height / 2))) {
if (ballRight >= (brick._x - (brick._width / 2))) {
if (ballLeft <= (brick._x + (brick._width / 2))) {
return(true);
}
}
}
}
return(false);
}
stop();
Instance of Symbol 224 MovieClip in Frame 707
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.checkCollisions();
}
Frame 738
stop();
Frame 739
function initGame() {
numLevel = 3;
x = ball._x;
y = ball._y;
dx = 4;
dy = 4;
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Right = paddle1._x + (paddle1._width / 2);
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle1 = false;
passedPaddle2 = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = (x + ballRadius) - paddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (713);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (713);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
leveldone = true;
i = 1;
while (i <= 56) {
brick = _root["a" + i];
if (brick._y != -1000) {
if (brickHit(brick)) {
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
brick._y = -1000;
dx = dx * -1;
} else {
leveldone = false;
}
}
i++;
}
if (leveldone) {
Mouse.show();
numLevel++;
gotoAndPlay (745);
dx = dx + 1;
if (dx > 7) {
dx = 7;
}
}
}
function brickHit(brick) {
if (ballTop <= (brick._y + (brick._height / 2))) {
if (ballBottom >= (brick._y - (brick._height / 2))) {
if (ballRight >= (brick._x - (brick._width / 2))) {
if (ballLeft <= (brick._x + (brick._width / 2))) {
return(true);
}
}
}
}
return(false);
}
stop();
Instance of Symbol 224 MovieClip in Frame 739
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.checkCollisions();
}
Frame 770
stop();
Frame 771
function initGame() {
numLevel = 4;
x = ball._x;
y = ball._y;
dx = 4;
dy = 4;
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Right = paddle1._x + (paddle1._width / 2);
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle1 = false;
passedPaddle2 = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = (x + ballRadius) - paddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (745);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (745);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
leveldone = true;
i = 1;
while (i <= 72) {
brick = _root["a" + i];
if (brick._y != -1000) {
if (brickHit(brick)) {
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
brick._y = -1000;
dx = dx * -1;
} else {
leveldone = false;
}
}
i++;
}
if (leveldone) {
Mouse.show();
numLevel++;
gotoAndPlay (777);
dx = dx + 1;
if (dx > 7) {
dx = 7;
}
}
}
function brickHit(brick) {
if (ballTop <= (brick._y + (brick._height / 2))) {
if (ballBottom >= (brick._y - (brick._height / 2))) {
if (ballRight >= (brick._x - (brick._width / 2))) {
if (ballLeft <= (brick._x + (brick._width / 2))) {
return(true);
}
}
}
}
return(false);
}
stop();
Instance of Symbol 224 MovieClip in Frame 771
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.checkCollisions();
}
Frame 802
stop();
Frame 803
function initGame() {
numLevel = 5;
x = ball._x;
y = ball._y;
dx = 4;
dy = 4;
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Right = paddle1._x + (paddle1._width / 2);
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle1 = false;
passedPaddle2 = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = (x + ballRadius) - paddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (777);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (777);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
leveldone = true;
i = 1;
while (i <= 88) {
brick = _root["a" + i];
if (brick._y != -1000) {
if (brickHit(brick)) {
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
brick._y = -1000;
dx = dx * -1;
} else {
leveldone = false;
}
}
i++;
}
if (leveldone) {
Mouse.show();
numLevel++;
gotoAndPlay (809);
dx = dx + 1;
if (dx > 7) {
dx = 7;
}
}
}
function brickHit(brick) {
if (ballTop <= (brick._y + (brick._height / 2))) {
if (ballBottom >= (brick._y - (brick._height / 2))) {
if (ballRight >= (brick._x - (brick._width / 2))) {
if (ballLeft <= (brick._x + (brick._width / 2))) {
return(true);
}
}
}
}
return(false);
}
stop();
Instance of Symbol 224 MovieClip in Frame 803
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.checkCollisions();
}
Frame 834
stop();
Frame 835
function initGame() {
numLevel = 6;
x = ball._x;
y = ball._y;
dx = 4;
dy = 4;
if (Math.random() < 0.5) {
dy = dy * -1;
}
rightWall = 553;
leftWall = 0;
topWall = 40;
bottomWall = 360;
ballRadius = ball._width / 2;
ballRadius = ball._height / 2;
paddle1Right = paddle1._x + (paddle1._width / 2);
paddle1Left = paddle1._x - (paddle1._width / 2);
paddle2Left = paddle2._x - (paddle2._width / 2);
paddle2Right = paddle2._x + (paddle2._width / 2);
passedPaddle1 = false;
passedPaddle2 = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
if (((x - ballRadius) < paddle1Right) and ((x + ballRadius) > paddle1Left)) {
paddle1Top = paddle1._y - (paddle1._height / 2);
paddle1Bottom = paddle1._y + (paddle1._height / 2);
if (((y + ballRadius) > paddle1Top) and ((y - ballRadius) < paddle1Bottom)) {
overshoot = paddle1Right - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle1 = true;
}
}
if (((x + ballRadius) > paddle2Left) and ((x - ballRadius) < paddle2Right)) {
paddle2Top = paddle2._y - (paddle2._height / 2);
paddle2Bottom = paddle2._y + (paddle2._height / 2);
if (((y + ballRadius) > paddle2Top) and ((y - ballRadius) < paddle2Bottom)) {
overshoot = (x + ballRadius) - paddle2Left;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
yourScore++;
if (yourScore > highScore) {
highScore = yourScore;
}
dx = dx * 1.02;
dy = dy * 1.02;
} else {
passedPaddle2 = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle1) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (809);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle2) {
errorSound.start(0, 0);
Mouse.show();
if (numBalls == 0) {
gotoAndPlay (841);
} else {
numBalls--;
gotoAndPlay (809);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle1._y = _ymouse;
paddle2._y = _ymouse;
if (paddle1._y < topWall) {
paddle1._y = topWall;
}
if (paddle1._y > bottomWall) {
paddle1._y = bottomWall;
}
if (paddle2._y < topWall) {
paddle2._y = topWall;
}
if (paddle2._y > bottomWall) {
paddle2._y = bottomWall;
}
}
function checkCollisions() {
ballTop = ball._y - (ball._height / 2);
ballBottom = ball._y + (ball._height / 2);
ballLeft = ball._x - (ball._width / 2);
ballRight = ball._x + (ball._width / 2);
leveldone = true;
i = 1;
while (i <= 104) {
brick = _root["a" + i];
if (brick._y != -1000) {
if (brickHit(brick)) {
ballSound.start(0, 0);
yourScore = yourScore + 2;
if (yourScore > highScore) {
highScore = yourScore;
}
brick._y = -1000;
dx = dx * -1;
} else {
leveldone = false;
}
}
i++;
}
if (leveldone) {
if (highScore > winScore) {
winScore = highScore;
}
Mouse.show();
gotoAndPlay (850);
dx = dx + 1;
if (dx > 7) {
dx = 7;
}
}
}
function brickHit(brick) {
if (ballTop <= (brick._y + (brick._height / 2))) {
if (ballBottom >= (brick._y - (brick._height / 2))) {
if (ballRight >= (brick._x - (brick._width / 2))) {
if (ballLeft <= (brick._x + (brick._width / 2))) {
return(true);
}
}
}
}
return(false);
}
stop();
Instance of Symbol 224 MovieClip in Frame 835
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.checkCollisions();
}
Frame 841
stop();
Frame 855
stop();
Frame 883
stop();
Frame 884
yourScore = 0;
highScore = 0;
topWallNum = 48;
paddleHit = 0;
stop();
Frame 892
function initGame() {
x = ball._x;
y = ball._y;
dx = 8;
dy = 8;
if (Math.random() < 0.5) {
dx = dx * -1;
}
rightWall = 547;
leftWall = 6;
topWall = _root.topWallNum;
bottomWall = 360;
ballRadius = ball._width / 2;
lineTop = line._y - (line._height / 2);
lineBottom = line._y + (line._height / 2);
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
passedPaddle = false;
Mouse.hide();
}
function moveBall() {
x = x - dx;
y = y + dy;
if ((x + ballRadius) > rightWall) {
overshoot = (x + ballRadius) - rightWall;
x = x - (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
}
if ((x - ballRadius) < leftWall) {
overshoot = leftWall - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
ballSound.start(0, 0);
}
if (((y + ballRadius) > paddleTop) and ((y - ballRadius) < paddleTop)) {
paddleLeft = paddle._x - (paddle._width / 2);
paddleRight = paddle._x + (paddle._width / 2);
if (((x + ballRadius) > paddleLeft) and ((x - ballRadius) < paddleRight)) {
overshoot = paddleTop - (y - ballRadius);
y = y - (overShoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
yourScore = yourScore + 5;
if (yourScore > highScore) {
highScore = yourScore;
}
paddleHit++;
if (paddleHit == 5) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 10) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 15) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 20) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 25) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 30) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 35) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 40) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 45) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 50) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 55) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 60) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 65) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 70) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 75) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 80) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 85) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 90) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 95) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 100) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 105) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 110) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 115) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 120) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 125) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 130) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 135) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 140) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 145) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (paddleHit == 150) {
line._y = line._y + 8;
slamSound.start(0, 0);
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
}
if (topWallNum >= 340) {
gotoAndPlay (900);
Mouse.show();
}
}
}
if ((y + ballRadius) > bottomWall) {
overshoot = bottomWall - (y - ballRadius);
y = y - (overShoot * 2);
dy = dy * -1;
errorSound.start(0, 0);
yourScore = yourScore - 10;
line._y = line._y + 8;
topWallNum = topWallNum + 8;
topWall = _root.topWallNum;
if (topWallNum >= 340) {
gotoAndPlay (900);
Mouse.show();
}
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overshoot * 2);
dy = dy * -1;
ballSound.start(0, 0);
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
paddle._x = _xmouse;
if (paddle._x < leftWall) {
paddle._x = leftWall;
}
if (paddle._x > rightWall) {
paddle._x = rightWall;
}
}
stop();
Instance of Symbol 224 MovieClip in Frame 892
onClipEvent (load) {
_root.errorSound = new Sound();
_root.errorSound.attachSound("errorSound");
_root.ballSound = new Sound();
_root.ballSound.attachSound("ballSound");
_root.slamSound = new Sound();
_root.slamSound.attachSound("slamSound");
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
}
Frame 900
stop();
Symbol 32 Button
on (press) {
gotoAndPlay (4);
}
Symbol 40 Button
on (press) {
gotoAndStop (167);
}
Symbol 42 Button
on (press) {
gotoAndStop (257);
}
Symbol 44 Button
on (press) {
gotoAndStop (212);
}
Symbol 46 Button
on (press) {
gotoAndStop (302);
}
Symbol 48 Button
on (press) {
gotoAndStop (509);
}
Symbol 50 Button
on (press) {
gotoAndStop (562);
}
Symbol 52 Button
on (press) {
gotoAndStop (590);
}
Symbol 54 Button
on (press) {
gotoAndStop (615);
}
Symbol 56 Button
on (press) {
gotoAndStop (643);
}
Symbol 59 Button
on (press) {
gotoAndStop (884);
}
Symbol 76 Button
on (press) {
yourScore = 0;
Mouse.show();
gotoAndStop (166);
}
Symbol 80 Button
on (press) {
computerScoreP = 0;
playerScoreP = 0;
numBalls--;
gotoAndPlay (184);
}
Symbol 87 Button
on (press) {
numBalls--;
gotoAndPlay (184);
}
Symbol 98 Button
on (press) {
Mouse.show();
gotoAndPlay (167);
}
Symbol 113 Button
on (press) {
numBalls--;
gotoAndPlay (229);
}
Symbol 115 Button
on (press) {
numBalls--;
gotoAndPlay (229);
}
Symbol 117 Button
on (press) {
gotoAndPlay (212);
}
Symbol 129 Button
on (press) {
numBalls--;
gotoAndPlay (274);
}
Symbol 131 Button
on (press) {
numBalls--;
gotoAndPlay (274);
}
Symbol 132 Button
on (press) {
gotoAndPlay (257);
}
Symbol 140 Button
on (press) {
selLevSound.start(0, 0);
gotoAndStop (310);
}
Symbol 150 Button
on (press) {
yourScore = 0;
highScore = 0;
removeBallAndPaddle();
removeBricks();
Mouse.show();
gotoAndStop (166);
}
Symbol 161 Button
on (press) {
serveSound.start(0, 0);
numBalls--;
gotoAndStop (470);
}
Symbol 162 Button
on (press) {
serveSound.start(0, 0);
numBalls--;
gotoAndStop (439);
}
Symbol 163 Button
on (press) {
serveSound.start(0, 0);
numBalls--;
gotoAndStop (408);
}
Symbol 164 Button
on (press) {
serveSound.start(0, 0);
numBalls--;
gotoAndStop (379);
}
Symbol 165 Button
on (press) {
serveSound.start(0, 0);
numBalls--;
gotoAndStop (350);
}
Symbol 166 Button
on (press) {
serveSound.start(0, 0);
numBalls--;
gotoAndStop (321);
}
Symbol 177 Button
on (press) {
numBalls--;
serveSound.start(0, 0);
gotoAndStop (321);
}
Symbol 181 Button
on (press) {
removeBricks();
serveSound.start(0, 0);
gotoAndStop (350);
}
Symbol 182 Button
on (press) {
numBalls--;
serveSound.start(0, 0);
gotoAndStop (350);
}
Symbol 183 Button
on (press) {
removeBricks();
serveSound.start(0, 0);
gotoAndStop (379);
}
Symbol 184 Button
on (press) {
numBalls--;
serveSound.start(0, 0);
gotoAndStop (379);
}
Symbol 185 Button
on (press) {
removeBricks();
serveSound.start(0, 0);
gotoAndStop (408);
}
Symbol 186 Button
on (press) {
numBalls--;
serveSound.start(0, 0);
gotoAndStop (408);
}
Symbol 187 Button
on (press) {
removeBricks();
serveSound.start(0, 0);
gotoAndStop (439);
}
Symbol 188 Button
on (press) {
numBalls--;
serveSound.start(0, 0);
gotoAndStop (439);
}
Symbol 189 Button
on (press) {
removeBricks();
serveSound.start(0, 0);
gotoAndStop (470);
}
Symbol 190 Button
on (press) {
numBalls--;
serveSound.start(0, 0);
gotoAndStop (470);
}
Symbol 193 Button
on (press) {
removeBricks();
yourScore = 0;
numBalls = 3;
selLevSound.start(0, 0);
gotoAndStop (310);
}
Symbol 201 Button
on (press) {
computerScoreP = 0;
playerScoreP = 0;
numBalls--;
gotoAndPlay (529);
}
Symbol 205 Button
on (press) {
numBalls--;
gotoAndPlay (529);
}
Symbol 206 Button
on (press) {
Mouse.show();
gotoAndPlay (509);
}
Symbol 218 Button
on (press) {
yourScore = 0;
highScore = 0;
Mouse.show();
gotoAndStop (166);
}
Symbol 219 Button
on (press) {
gotoAndPlay (570);
}
Symbol 226 Button
on (press) {
gotoAndPlay (570);
}
Symbol 231 Button
on (press) {
gotoAndPlay (597);
}
Symbol 234 Button
on (press) {
gotoAndPlay (597);
}
Symbol 239 Button
on (press) {
gotoAndPlay (623);
}
Symbol 242 Button
on (press) {
gotoAndPlay (623);
}
Symbol 252 Button
on (press) {
gotoAndPlay (856);
}
Symbol 254 Button
on (press) {
gotoAndPlay (648);
}
Symbol 258 Button
on (press) {
gotoAndStop (675);
}
Symbol 265 Button
on (press) {
gotoAndStop (707);
}
Symbol 270 Button
on (press) {
gotoAndStop (739);
}
Symbol 273 Button
on (press) {
gotoAndStop (771);
}
Symbol 278 Button
on (press) {
gotoAndStop (803);
}
Symbol 281 Button
on (press) {
gotoAndStop (835);
}
Symbol 284 Button
on (press) {
yourScore = 0;
numBalls = 2;
gotoAndPlay (643);
}
Symbol 287 Button
on (press) {
gotoAndPlay (648);
}
Symbol 288 Button
on (press) {
gotoAndPlay (681);
}
Symbol 289 Button
on (press) {
gotoAndPlay (713);
}
Symbol 290 Button
on (press) {
gotoAndPlay (745);
}
Symbol 291 Button
on (press) {
gotoAndPlay (777);
}
Symbol 292 Button
on (press) {
gotoAndPlay (809);
}
Symbol 297 Button
on (press) {
gotoAndPlay (892);
}
Symbol 305 Button
on (press) {
topWallNum = 48;
yourScore = 0;
paddleHit = 0;
gotoAndPlay (892);
}