Instance of Symbol 22 MovieClip "mc_load_info" in Frame 51
//component parameters
onClipEvent (initialize) {
STREAM = false;
PLAY_TYPE = "bytes";
PLAY_BYTES = 0;
PLAY_FRAMES = 0;
PLAY_PERCENTAGE = 0;
}
Instance of Symbol 27 MovieClip in Frame 51
onClipEvent (load) {
var myStartWidth = this._width;
this._width = 0;
}
onClipEvent (enterFrame) {
this._width = myStartWidth * _root.mc_load_info.fractionLoaded;
}
Frame 106
numBalls = 7;
computerScore = 0;
playerScore = 0;
var wins = 1;
var power1 = false;
var powerBall1 = false;
var powerSpin1 = false;
var powerShrink1 = false;
var spin = false;
var powerBall2 = false;
var powerSpin2 = false;
var powerShrink2 = false;
var spin2 = false;
var player1 = "blank";
var player2 = "Nemo";
stop();
Frame 108
var wins = 1;
var powerBall1 = false;
var powerSpin1 = false;
var powerShrink1 = false;
var spin = false;
var powerBall2 = false;
var powerSpin2 = false;
var powerShrink2 = false;
var spin2 = false;
var player1 = "blank";
var player2 = "Nemo";
numBalls = 3;
computerScore = 0;
playerScore = 0;
var power1 = false;
var power2 = false;
var speedUps1 = 3;
var speedUps2 = 3;
stop();
Frame 113
stop();
Instance of Symbol 62 MovieClip in Frame 113
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 62 MovieClip in Frame 113
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 62 MovieClip in Frame 113
onClipEvent (load) {
this.gotoAndStop(3);
}
Frame 125
var power1 = false;
var powerBall1 = false;
var powerSpin1 = false;
var powerShrink1 = false;
var spin = false;
stop();
Instance of Symbol 62 MovieClip in Frame 125
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 125
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 132
stop();
Instance of Symbol 62 MovieClip in Frame 132
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 132
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 139
function startLevel() {
x = ball._x;
y = ball._y;
power1 = false;
power2 = false;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 550;
leftWall = 0;
topWall = 100;
bottomWall = 380;
ballRadius = ball._width / 2;
passedPaddle = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
beep2.start();
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
beep2.start();
}
paddleRight = paddle._x + (paddle._width / 2);
if (((x - ballRadius) < paddleRight) and (!passedPaddle)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
beep1.start();
if (!_root.power1) {
dx = dx * 1.05;
dy = dy * 1.05;
}
if (_root.powerBall1) {
dx = dx * 2;
}
if (_root.powerSpin1) {
dy = dy * 2;
}
if (_root.spin == "right") {
dx = dx * 1.05;
dy = dy + 3;
} else if (_root.spin == "left") {
dx = dx * 1.05;
dy = dy - 3;
}
} else {
passedPaddle = true;
}
}
paddleLeft = computerPaddle._x - (computerPaddle._width / 2);
if (((x + ballRadius) > paddleLeft) and (!passedPaddle)) {
paddleTop = computerPaddle._y - (computerPaddle._height / 2);
paddleBottom = computerPaddle._y + (computerPaddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = (x + ballRadius) - paddleLeft;
x = x - (overShoot * 2);
dx = dx * -1;
beep1.start();
powerup = random(10);
if (powerup == 1) {
dx = dx * 1.8;
_root.computerPaddle.gotoAndPlay("power");
} else {
dx = dx * 1.05;
}
dy = dy * 1.05;
} else {
passedPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle) {
Mouse.show();
computerScore++;
if (computerScore == 2) {
gotoAndPlay (206);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (132);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle) {
Mouse.show();
playerScore++;
if (playerScore == 2) {
player2 = "Kate";
gotoAndPlay (143);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (132);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
if (_ymouse < (100 + (paddle._height / 2))) {
paddle._y = 100 + (paddle._height / 2);
} else if (_ymouse > (380 - (paddle._height / 2))) {
paddle._y = 380 - (paddle._height / 2);
} else {
paddle._y = _ymouse;
}
}
function moveComputerPaddle() {
moveAmount = 8;
if (ball._x > 200) {
if (dx > 0) {
if ((y < (computerPaddle._y - moveAmount)) && (computerPaddle._y > (100 + (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y - moveAmount;
} else if ((y > (computerPaddle._y + moveAmount)) && (computerPaddle._y < (380 - (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y + moveAmount;
}
}
}
}
beep1 = new Sound();
beep1.attachSound("beep1");
beep2 = new Sound();
beep2.attachSound("beep2");
dissolve = new Sound();
dissolve.attachSound("dissolve");
stop();
Instance of Symbol 103 MovieClip in Frame 139
onClipEvent (load) {
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Instance of Symbol 55 MovieClip "paddle" in Frame 139
on (keyPress "<Down>") {
if (_root.player1 == "Si") {
_root.power1 = true;
this.gotoAndPlay("long");
}
if ((_root.player1 == "Nemo") && (_root.powerBall1 != "used")) {
_root.power1 = true;
_root.powerBall1 = true;
this.gotoAndPlay("power");
}
if ((_root.player1 == "Kate") && (_root.powerSpin1 != "used")) {
_root.power1 = true;
_root.powerSpin1 = true;
this.gotoAndPlay("spin");
}
if ((_root.player1 == "Sau") && (_root.powerShrink1 != "used")) {
_root.power1 = true;
_root.powerShrink1 = true;
_root.computerPaddle.gotoAndPlay("shrink");
}
}
on (keyPress "<Left>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("left");
_root.spin = "left";
}
}
on (keyPress "<Right>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("right");
_root.spin = "right";
}
}
Instance of Symbol 107 MovieClip "computerPaddle" in Frame 139
/* no clip actions */
Frame 143
computerScore = 0;
playerScore = 0;
var power1 = false;
var spin = false;
var powerBall2 = false;
var powerSpin2 = false;
var powerShrink2 = false;
var spin2 = false;
stop();
Instance of Symbol 62 MovieClip in Frame 143
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 143
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 150
var power1 = false;
var powerBall1 = false;
var powerSpin1 = false;
var powerShrink1 = false;
var spin = false;
stop();
Instance of Symbol 62 MovieClip in Frame 150
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 150
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 159
function startLevel() {
x = ball._x;
y = ball._y;
power1 = false;
power2 = false;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 550;
leftWall = 0;
topWall = 100;
bottomWall = 380;
ballRadius = ball._width / 2;
passedPaddle = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
beep2.start();
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
beep2.start();
}
paddleRight = paddle._x + (paddle._width / 2);
if (((x - ballRadius) < paddleRight) and (!passedPaddle)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
beep1.start();
if (!_root.power1) {
dx = dx * 1.05;
dy = dy * 1.05;
}
if (_root.powerBall1) {
dx = dx * 2;
}
if (_root.powerSpin1) {
dy = dy * 2;
}
if (_root.spin == "right") {
dx = dx * 1.05;
dy = dy + 3;
} else if (_root.spin == "left") {
dx = dx * 1.05;
dy = dy - 3;
}
} else {
passedPaddle = true;
}
}
paddleLeft = computerPaddle._x - (computerPaddle._width / 2);
if (((x + ballRadius) > paddleLeft) and (!passedPaddle)) {
paddleTop = computerPaddle._y - (computerPaddle._height / 2);
paddleBottom = computerPaddle._y + (computerPaddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = (x + ballRadius) - paddleLeft;
x = x - (overShoot * 2);
dx = dx * -1;
beep1.start();
powerup = random(5);
if (powerup == 1) {
powerup = random(2);
if (powerup == 1) {
dy = dy - 3;
_root.computerPaddle.gotoAndPlay("left");
} else {
dy = dy + 3;
_root.computerPaddle.gotoAndPlay("left");
}
} else {
dx = dx * 1.05;
}
dy = dy * 1.05;
} else {
passedPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle) {
Mouse.show();
computerScore++;
if (computerScore == 2) {
gotoAndPlay (206);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (150);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle) {
Mouse.show();
playerScore++;
if (playerScore == 2) {
player2 = "Sau";
gotoAndPlay (164);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (150);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
if (_ymouse < (100 + (paddle._height / 2))) {
paddle._y = 100 + (paddle._height / 2);
} else if (_ymouse > (380 - (paddle._height / 2))) {
paddle._y = 380 - (paddle._height / 2);
} else {
paddle._y = _ymouse;
}
}
function moveComputerPaddle() {
moveAmount = 11;
if (ball._x > 250) {
if (dx > 0) {
if ((y < (computerPaddle._y - moveAmount)) && (computerPaddle._y > (100 + (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y - moveAmount;
} else if ((y > (computerPaddle._y + moveAmount)) && (computerPaddle._y < (380 - (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y + moveAmount;
}
}
}
}
beep1 = new Sound();
beep1.attachSound("beep1");
beep2 = new Sound();
beep2.attachSound("beep2");
dissolve = new Sound();
dissolve.attachSound("dissolve");
stop();
Instance of Symbol 103 MovieClip in Frame 159
onClipEvent (load) {
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Instance of Symbol 55 MovieClip "paddle" in Frame 159
on (keyPress "<Down>") {
if (_root.player1 == "Si") {
_root.power1 = true;
this.gotoAndPlay("long");
}
if ((_root.player1 == "Nemo") && (_root.powerBall1 != "used")) {
_root.power1 = true;
_root.powerBall1 = true;
this.gotoAndPlay("power");
}
if ((_root.player1 == "Kate") && (_root.powerSpin1 != "used")) {
_root.power1 = true;
_root.powerSpin1 = true;
this.gotoAndPlay("spin");
}
if ((_root.player1 == "Sau") && (_root.powerShrink1 != "used")) {
_root.power1 = true;
_root.powerShrink1 = true;
_root.computerPaddle.gotoAndPlay("shrink");
}
}
on (keyPress "<Left>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("left");
_root.spin = "left";
}
}
on (keyPress "<Right>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("right");
_root.spin = "right";
}
}
Instance of Symbol 107 MovieClip "computerPaddle" in Frame 159
/* no clip actions */
Frame 164
computerScore = 0;
playerScore = 0;
var power1 = false;
var spin = false;
var powerBall2 = false;
var powerSpin2 = false;
var powerShrink2 = false;
var spin2 = false;
stop();
Instance of Symbol 62 MovieClip in Frame 164
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 164
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 171
var power1 = false;
var powerBall1 = false;
var powerSpin1 = false;
var powerShrink1 = false;
var spin = false;
stop();
Instance of Symbol 62 MovieClip in Frame 171
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 171
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 180
function startLevel() {
x = ball._x;
y = ball._y;
power1 = false;
power2 = false;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 550;
leftWall = 0;
topWall = 100;
bottomWall = 380;
ballRadius = ball._width / 2;
passedPaddle = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
beep2.start();
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
beep2.start();
}
paddleRight = paddle._x + (paddle._width / 2);
if (((x - ballRadius) < paddleRight) and (!passedPaddle)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
beep1.start();
if (!_root.power1) {
dx = dx * 1.05;
dy = dy * 1.05;
}
if (_root.powerBall1) {
dx = dx * 2;
}
if (_root.powerSpin1) {
dy = dy * 2;
}
if (_root.spin == "right") {
dx = dx * 1.05;
dy = dy + 3;
} else if (_root.spin == "left") {
dx = dx * 1.05;
dy = dy - 3;
}
} else {
passedPaddle = true;
}
}
paddleLeft = computerPaddle._x - (computerPaddle._width / 2);
if (((x + ballRadius) > paddleLeft) and (!passedPaddle)) {
paddleTop = computerPaddle._y - (computerPaddle._height / 2);
paddleBottom = computerPaddle._y + (computerPaddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = (x + ballRadius) - paddleLeft;
x = x - (overShoot * 2);
dx = dx * -1;
beep1.start();
powerup = random(5);
if (powerup == 1) {
powerup = random(2);
if (powerup == 1) {
dy = dy - 3;
_root.computerPaddle.gotoAndPlay("left");
} else {
dy = dy + 3;
_root.computerPaddle.gotoAndPlay("left");
}
} else {
dx = dx * 1.05;
}
dy = dy * 1.05;
powerup = random(5);
if (powerup == 1) {
_root.paddle.gotoAndPlay("shrink");
}
} else {
passedPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle) {
Mouse.show();
computerScore++;
if (computerScore == 2) {
gotoAndPlay (206);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (171);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle) {
Mouse.show();
playerScore++;
if (playerScore == 2) {
player2 = "Si";
gotoAndPlay (185);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (171);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
if (_ymouse < (100 + (paddle._height / 2))) {
paddle._y = 100 + (paddle._height / 2);
} else if (_ymouse > (380 - (paddle._height / 2))) {
paddle._y = 380 - (paddle._height / 2);
} else {
paddle._y = _ymouse;
}
}
function moveComputerPaddle() {
moveAmount = 11;
if (ball._x > 300) {
if (dx > 0) {
if ((y < (computerPaddle._y - moveAmount)) && (computerPaddle._y > (100 + (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y - moveAmount;
} else if ((y > (computerPaddle._y + moveAmount)) && (computerPaddle._y < (380 - (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y + moveAmount;
}
}
}
}
beep1 = new Sound();
beep1.attachSound("beep1");
beep2 = new Sound();
beep2.attachSound("beep2");
dissolve = new Sound();
dissolve.attachSound("dissolve");
stop();
Instance of Symbol 103 MovieClip in Frame 180
onClipEvent (load) {
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Instance of Symbol 55 MovieClip "paddle" in Frame 180
on (keyPress "<Down>") {
if (_root.player1 == "Si") {
_root.power1 = true;
this.gotoAndPlay("long");
}
if ((_root.player1 == "Nemo") && (_root.powerBall1 != "used")) {
_root.power1 = true;
_root.powerBall1 = true;
this.gotoAndPlay("power");
}
if ((_root.player1 == "Kate") && (_root.powerSpin1 != "used")) {
_root.power1 = true;
_root.powerSpin1 = true;
this.gotoAndPlay("spin");
}
if ((_root.player1 == "Sau") && (_root.powerShrink1 != "used")) {
_root.power1 = true;
_root.powerShrink1 = true;
_root.computerPaddle.gotoAndPlay("shrink");
}
}
on (keyPress "<Left>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("left");
_root.spin = "left";
}
}
on (keyPress "<Right>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("right");
_root.spin = "right";
}
}
Instance of Symbol 107 MovieClip "computerPaddle" in Frame 180
/* no clip actions */
Frame 185
computerScore = 0;
playerScore = 0;
var power1 = false;
var spin = false;
var powerBall2 = false;
var powerSpin2 = false;
var powerShrink2 = false;
var spin2 = false;
stop();
Instance of Symbol 62 MovieClip in Frame 185
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 185
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 192
var power1 = false;
var powerBall1 = false;
var powerSpin1 = false;
var powerShrink1 = false;
var spin = false;
stop();
Instance of Symbol 62 MovieClip in Frame 192
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Instance of Symbol 62 MovieClip in Frame 192
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 201
function startLevel() {
x = ball._x;
y = ball._y;
power1 = false;
power2 = false;
dx = 5;
dy = 5;
if (Math.random() < 0.5) {
dx = dx * -1;
}
if (Math.random() < 0.5) {
dy = dy * -1;
}
Mouse.hide();
rightWall = 550;
leftWall = 0;
topWall = 100;
bottomWall = 380;
ballRadius = ball._width / 2;
passedPaddle = false;
}
function moveBall() {
x = x + dx;
y = y + dy;
if ((y + ballRadius) > bottomWall) {
overshoot = (y + ballRadius) - bottomWall;
y = y - (overShoot * 2);
dy = dy * -1;
beep2.start();
}
if ((y - ballRadius) < topWall) {
overshoot = topWall - (y - ballRadius);
y = y + (overShoot * 2);
dy = dy * -1;
beep2.start();
}
paddleRight = paddle._x + (paddle._width / 2);
if (((x - ballRadius) < paddleRight) and (!passedPaddle)) {
paddleTop = paddle._y - (paddle._height / 2);
paddleBottom = paddle._y + (paddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = paddleRight - (x - ballRadius);
x = x + (overShoot * 2);
dx = dx * -1;
beep1.start();
if (!_root.power1) {
dx = dx * 1.05;
dy = dy * 1.05;
}
if (_root.powerBall1) {
dx = dx * 2;
}
if (_root.powerSpin1) {
dy = dy * 2;
}
if (_root.spin == "right") {
dx = dx * 1.05;
dy = dy + 3;
} else if (_root.spin == "left") {
dx = dx * 1.05;
dy = dy - 3;
}
powerup = random(5);
if (powerup == 1) {
_root.computerPaddle.gotoAndPlay("long");
}
} else {
passedPaddle = true;
}
}
paddleLeft = computerPaddle._x - (computerPaddle._width / 2);
if (((x + ballRadius) > paddleLeft) and (!passedPaddle)) {
paddleTop = computerPaddle._y - (computerPaddle._height / 2);
paddleBottom = computerPaddle._y + (computerPaddle._height / 2);
if ((y > paddleTop) and (y < paddleBottom)) {
overshoot = (x + ballRadius) - paddleLeft;
x = x - (overShoot * 2);
dx = dx * -1;
beep1.start();
powerup = random(5);
if (powerup == 1) {
powerup = random(2);
if (powerup == 1) {
dy = dy - 3;
_root.computerPaddle.gotoAndPlay("left");
} else {
dy = dy + 3;
_root.computerPaddle.gotoAndPlay("left");
}
} else {
dx = dx * 1.05;
}
dy = dy * 1.05;
} else {
passedPaddle = true;
}
}
if (((x - ballRadius) < leftWall) and passedPaddle) {
Mouse.show();
computerScore++;
if (computerScore == 2) {
gotoAndPlay (206);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (192);
}
}
if (((x + ballRadius) > rightWall) and passedPaddle) {
Mouse.show();
playerScore++;
if (playerScore == 2) {
gotoAndPlay (215);
} else {
numBalls--;
dissolve.start();
gotoAndPlay (192);
}
}
ball._x = x;
ball._y = y;
}
function movePaddle() {
if (_ymouse < (100 + (paddle._height / 2))) {
paddle._y = 100 + (paddle._height / 2);
} else if (_ymouse > (380 - (paddle._height / 2))) {
paddle._y = 380 - (paddle._height / 2);
} else {
paddle._y = _ymouse;
}
}
function moveComputerPaddle() {
moveAmount = 12;
if (ball._x > 200) {
if (dx > 0) {
if ((y < (computerPaddle._y - moveAmount)) && (computerPaddle._y > (100 + (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y - moveAmount;
} else if ((y > (computerPaddle._y + moveAmount)) && (computerPaddle._y < (380 - (computerPaddle._height / 2)))) {
computerPaddle._y = computerPaddle._y + moveAmount;
}
}
}
}
beep1 = new Sound();
beep1.attachSound("beep1");
beep2 = new Sound();
beep2.attachSound("beep2");
dissolve = new Sound();
dissolve.attachSound("dissolve");
stop();
Instance of Symbol 103 MovieClip in Frame 201
onClipEvent (load) {
_root.startLevel();
}
onClipEvent (enterFrame) {
_root.moveBall();
_root.movePaddle();
_root.moveComputerPaddle();
}
Instance of Symbol 55 MovieClip "paddle" in Frame 201
on (keyPress "<Down>") {
if (_root.player1 == "Si") {
_root.power1 = true;
this.gotoAndPlay("long");
}
if ((_root.player1 == "Nemo") && (_root.powerBall1 != "used")) {
_root.power1 = true;
_root.powerBall1 = true;
this.gotoAndPlay("power");
}
if ((_root.player1 == "Kate") && (_root.powerSpin1 != "used")) {
_root.power1 = true;
_root.powerSpin1 = true;
this.gotoAndPlay("spin");
}
if ((_root.player1 == "Sau") && (_root.powerShrink1 != "used")) {
_root.power1 = true;
_root.powerShrink1 = true;
_root.computerPaddle.gotoAndPlay("shrink");
}
}
on (keyPress "<Left>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("left");
_root.spin = "left";
}
}
on (keyPress "<Right>") {
if (((!_root.spin) >= 1) && (!power1)) {
this.gotoAndPlay("right");
_root.spin = "right";
}
}
Instance of Symbol 107 MovieClip "computerPaddle" in Frame 201
/* no clip actions */
Frame 206
stop();
Instance of Symbol 62 MovieClip in Frame 206
onClipEvent (load) {
this.gotoAndStop(_root.player2);
}
Frame 215
stop();
Instance of Symbol 62 MovieClip in Frame 215
onClipEvent (load) {
this.gotoAndStop(_root.player1);
}
Frame 224
stop();
Symbol 22 MovieClip Frame 1
function formatBytes(bytes) {
var kb = 1024;
var mb = (kb * 1024);
var tempNum = 0;
if (bytes >= mb) {
tempNum = String(Math.floor((bytes / mb) * 100) / 100);
if (tempNum.substring(tempNum.indexOf("."), tempNum.length).length == 2) {
tempNum = tempNum + "0";
}
tempNum = tempNum + " MB";
} else if (bytes >= kb) {
tempNum = String(Math.floor((bytes / kb) * 100) / 100);
if (tempNum.substring(tempNum.indexOf("."), tempNum.length).length == 2) {
tempNum = tempNum + "0";
}
tempNum = tempNum + " KB";
} else {
tempNum = bytes + " B";
}
return(tempNum);
}
this._visible = false;
var isLoaded = false;
var totalBytes = _parent.getBytesTotal();
var loadedBytes = _parent.getBytesLoaded();
var totalFrames = _parent._totalFrames();
var loadedFrames = _parent._framesLoaded();
var fractionLoaded = 0;
var percentLoaded = "0%";
var bytesPerSecond = 0;
var sizePerSecond = formatBytes(bytesPerSecond);
var elapsedTime = "0:00";
var estimatedTime = "0:00";
var estimatedTimeLeft = "0:00";
var gStartTime = getTimer();
var gCurrentTime = getTimer();
var gSampleTimer = (gCurrentTime - gStartTime);
var gSizeSample = loadedBytes;
var framesPerSecond = 0;
var frameCounter = 0;
var totalSize = formatBytes(totalBytes);
var loadedSize = formatBytes(loadedBytes);
var loadedBytes = 0;
var gLoading = true;
var gPlaying = false;
_parent.stop();
Symbol 22 MovieClip Frame 2
if (gLoading) {
loadedBytes = _parent.getBytesLoaded();
loadedSize = formatBytes(loadedBytes);
loadedFrames = _parent._framesLoaded;
gCurrentTime = getTimer();
var elapsedMinutes = Math.floor(((gCurrentTime - gStartTime) / 1000) / 60);
var elapsedSeconds = Math.floor(((gCurrentTime - gStartTime) / 1000) % 60);
if (String(elapsedSeconds).length == 1) {
elapsedSeconds = "0" + elapsedSeconds;
}
elapsedTime = (elapsedMinutes + ":") + elapsedSeconds;
frameCounter++;
if ((gCurrentTime - gStartTime) >= (gSampleTimer + 1000)) {
framesPerSecond = frameCounter;
frameCounter = 0;
bytesPerSecond = loadedBytes - gSizeSample;
sizePerSecond = formatBytes(bytesPerSecond);
if (STREAM && (PLAY_TYPE == "auto")) {
if ((loadedFrames / framesPerSecond) > ((totalBytes - loadedBytes) / bytesPerSecond)) {
_parent.play();
}
}
var estimatedMinutes = Math.floor((totalBytes / bytesPerSecond) / 60);
var estimatedSeconds = Math.floor((totalBytes / bytesPerSecond) % 60);
if (String(estimatedSeconds).length == 1) {
estimatedSeconds = "0" + estimatedSeconds;
}
estimatedTime = (estimatedMinutes + ":") + estimatedSeconds;
var estimatedMinutesLeft = Math.floor(((totalBytes - loadedBytes) / bytesPerSecond) / 60);
var estimatedSecondsLeft = Math.floor(((totalBytes - loadedBytes) / bytesPerSecond) % 60);
if (String(estimatedSecondsLeft).length == 1) {
estimatedSecondsLeft = "0" + estimatedSecondsLeft;
}
estimatedTimeLeft = (estimatedMinutesLeft + ":") + estimatedSecondsLeft;
gSizeSample = loadedBytes;
gSampleTimer = gCurrentTime - gStartTime;
}
fractionLoaded = loadedBytes / totalBytes;
percentLoaded = Math.floor(fractionLoaded * 100) + "%";
if (STREAM) {
switch (PLAY_TYPE) {
case "bytes" :
if (loadedBytes >= PLAY_BYTES) {
if (!gPlaying) {
_parent.play();
gPlaying = true;
}
}
break;
case "frames" :
if (loadedFrames >= PLAY_FRAMES) {
if (!gPlaying) {
_parent.play();
gPlaying = true;
}
}
break;
case "percent" :
if ((fractionLoaded * 100) < PLAY_PERCENT) {
break;
}
if (gPlaying) {
break;
}
_parent.play();
gPlaying = true;
}
}
if (loadedBytes == totalBytes) {
isLoaded = true;
}
if (isLoaded) {
if (!STREAM) {
_parent.play();
}
gLoading = false;
stop();
}
}
Symbol 22 MovieClip Frame 3
gotoAndPlay (2);
Symbol 41 Button
on (release) {
getURL ("http://www.kwikgames.com", _blank);
}
Symbol 47 Button
on (press) {
gotoAndPlay (113);
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 15
gotoAndStop (1);
_root.power1 = false;
Symbol 55 MovieClip Frame 30
gotoAndStop (1);
_root.spin = false;
Symbol 55 MovieClip Frame 45
_root.spin = false;
gotoAndStop (1);
Symbol 55 MovieClip Frame 69
gotoAndStop (1);
Symbol 55 MovieClip Frame 85
gotoAndStop (1);
_root.powerBall1 = "used";
Symbol 55 MovieClip Frame 101
gotoAndStop (1);
_root.powerSpin1 = "used";
Symbol 55 MovieClip Frame 154
gotoAndStop (1);
_root.powerShrink1 = "used";
Symbol 61 Button
on (release) {
gotoAndStop (224);
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 4
stop();
Symbol 73 Button
on (release) {
player1 = "Nemo";
gotoAndPlay (125);
}
Symbol 74 Button
on (release) {
player1 = "Si";
gotoAndPlay (125);
}
Symbol 75 Button
on (release) {
_root.player1 = "Kate";
gotoAndPlay (125);
}
Symbol 76 Button
on (release) {
_root.player1 = "Sau";
gotoAndPlay (125);
}
Symbol 83 Button
on (press) {
gotoAndPlay (132);
}
Symbol 94 Button
on (press) {
gotoAndPlay (139);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 15
gotoAndStop (1);
_root.power2 = false;
Symbol 107 MovieClip Frame 30
gotoAndStop (1);
_root.spin2 = false;
Symbol 107 MovieClip Frame 45
_root.spin2 = false;
gotoAndStop (1);
Symbol 107 MovieClip Frame 91
gotoAndStop (1);
Symbol 107 MovieClip Frame 107
gotoAndStop (1);
_root.powerBall2 = "used";
Symbol 107 MovieClip Frame 123
gotoAndStop (1);
_root.powerSpin2 = "used";
Symbol 107 MovieClip Frame 142
gotoAndStop (1);
_root.powerShrink2 = "used";
Symbol 111 Button
on (press) {
gotoAndPlay (150);
}
Symbol 117 Button
on (press) {
gotoAndPlay (159);
}
Symbol 124 Button
on (press) {
gotoAndPlay (171);
}
Symbol 130 Button
on (press) {
gotoAndPlay (180);
}
Symbol 137 Button
on (press) {
gotoAndPlay (192);
}
Symbol 142 Button
on (press) {
gotoAndPlay (201);
}
Symbol 152 Button
on (release) {
gotoAndPlay (85);
}
Symbol 156 Button
on (release) {
getURL ("http://www.kwikgames.com");
}
Symbol 160 Button
on (release) {
getURL ("http://www.kwikgames.com/battlepong/battlepong.zip");
}
Symbol 181 Button
on (release) {
gotoAndPlay (85);
}