Frame 1
stop();
Frame 2
function getPoint() {
winScore++;
}
function outBound() {
error = true;
misScore++;
}
function resetPoint() {
winScore = 0;
misScore = 0;
}
this.stop();
Frame 7
Mouse.hide();
error = false;
Instance of Symbol 134 MovieClip "ball" in Frame 7
onClipEvent (enterFrame) {
this.hitBound();
this.infoRacket();
this.hitRacket();
_x = (_x + moveX);
_y = (_y + moveY);
}
Instance of Symbol 136 MovieClip "racket" in Frame 7
onClipEvent (mouseMove) {
_x = (_x + _xmouse);
updateAfterEvent();
}
Frame 8
if (winScore == 52) {
this.gotoAndPlay("win");
} else if (misScore == 3) {
this.gotoAndPlay("over");
} else if (error == true) {
this.gotoAndPlay("mis");
}
Frame 9
this.gotoAndPlay(_currentframe - 1);
Frame 12
this.stop();
Mouse.show();
Frame 17
this.stop();
Mouse.show();
this.resetPoint();
Frame 22
this.stop();
Mouse.show();
this.resetPoint();
Symbol 9 MovieClip Frame 1
function setBar(parcent) {
_width = (oneStep * parcent);
}
oneStep = _width / 100;
Symbol 10 MovieClip Frame 1
loadedSize = _root.getBytesLoaded();
totalSize = _root.getBytesTotal();
if (loadedSize >= totalSize) {
_root.play();
} else {
parcent = (loadedSize / totalSize) * 100;
gDownloaded = Math.round(parcent);
progressBar.setbar(gDownloaded);
_root.stop();
}
Symbol 10 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 17 MovieClip Frame 1
function fieldInfo() {
fieldBounds = this.getBounds(_root);
return(fieldBounds);
}
Symbol 27 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 27 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 27 MovieClip Frame 4
this.stop();
Symbol 29 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 29 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 29 MovieClip Frame 4
this.stop();
Symbol 31 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 31 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 31 MovieClip Frame 4
this.stop();
Symbol 32 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 32 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 32 MovieClip Frame 4
this.stop();
Symbol 34 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 34 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 34 MovieClip Frame 4
this.stop();
Symbol 36 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 36 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 36 MovieClip Frame 4
this.stop();
Symbol 38 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 38 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 38 MovieClip Frame 4
this.stop();
Symbol 40 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 40 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 40 MovieClip Frame 4
this.stop();
Symbol 42 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 42 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 42 MovieClip Frame 4
this.stop();
Symbol 44 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 44 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 44 MovieClip Frame 4
this.stop();
Symbol 46 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 46 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 46 MovieClip Frame 4
this.stop();
Symbol 48 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 48 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 48 MovieClip Frame 4
this.stop();
Symbol 50 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 50 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 50 MovieClip Frame 4
this.stop();
Symbol 52 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 52 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 52 MovieClip Frame 4
this.stop();
Symbol 54 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 54 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 54 MovieClip Frame 4
this.stop();
Symbol 56 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 56 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 56 MovieClip Frame 4
this.stop();
Symbol 57 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 57 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 57 MovieClip Frame 4
this.stop();
Symbol 59 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 59 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 59 MovieClip Frame 4
this.stop();
Symbol 60 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 60 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 60 MovieClip Frame 4
this.stop();
Symbol 62 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 62 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 62 MovieClip Frame 4
this.stop();
Symbol 63 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 63 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 63 MovieClip Frame 4
this.stop();
Symbol 64 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 64 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 64 MovieClip Frame 4
this.stop();
Symbol 66 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 66 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 66 MovieClip Frame 4
this.stop();
Symbol 68 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 68 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 68 MovieClip Frame 4
this.stop();
Symbol 70 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 70 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 70 MovieClip Frame 4
this.stop();
Symbol 71 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 71 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 71 MovieClip Frame 4
this.stop();
Symbol 72 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 72 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 72 MovieClip Frame 4
this.stop();
Symbol 74 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 74 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 74 MovieClip Frame 4
this.stop();
Symbol 77 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 77 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 77 MovieClip Frame 4
this.stop();
Symbol 79 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 79 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 79 MovieClip Frame 4
this.stop();
Symbol 80 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 80 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 80 MovieClip Frame 4
this.stop();
Symbol 82 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 82 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 82 MovieClip Frame 4
this.stop();
Symbol 84 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 84 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 84 MovieClip Frame 4
this.stop();
Symbol 86 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 86 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 86 MovieClip Frame 4
this.stop();
Symbol 88 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 88 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 88 MovieClip Frame 4
this.stop();
Symbol 90 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 90 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 90 MovieClip Frame 4
this.stop();
Symbol 92 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 92 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 92 MovieClip Frame 4
this.stop();
Symbol 94 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 94 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 94 MovieClip Frame 4
this.stop();
Symbol 96 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 96 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 96 MovieClip Frame 4
this.stop();
Symbol 98 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 98 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 98 MovieClip Frame 4
this.stop();
Symbol 100 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 100 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 100 MovieClip Frame 4
this.stop();
Symbol 102 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 102 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 102 MovieClip Frame 4
this.stop();
Symbol 104 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 104 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 104 MovieClip Frame 4
this.stop();
Symbol 106 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 106 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 106 MovieClip Frame 4
this.stop();
Symbol 107 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 107 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 107 MovieClip Frame 4
this.stop();
Symbol 108 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 108 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 108 MovieClip Frame 4
this.stop();
Symbol 109 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 109 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 109 MovieClip Frame 4
this.stop();
Symbol 111 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 111 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 111 MovieClip Frame 4
this.stop();
Symbol 112 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 112 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 112 MovieClip Frame 4
this.stop();
Symbol 114 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 114 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 114 MovieClip Frame 4
this.stop();
Symbol 116 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 116 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 116 MovieClip Frame 4
this.stop();
Symbol 118 MovieClip Frame 1
if (this.hitTest(_root.ball)) {
this.gotoAndPlay("explosion");
_root.getPoint();
_root.ball.hitBlock();
}
Symbol 118 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 118 MovieClip Frame 4
this.stop();
Symbol 124 Button
on (release) {
this.resetPoint();
this.gotoAndPlay("game");
Mouse.hide();
}
Symbol 132 Button
on (release) {
getURL ("http://homepage2.nifty.com/chavinet/", "_blank");
}
Symbol 134 MovieClip Frame 1
function hitBound() {
if (_x <= left) {
moveX = -moveX;
} else if (_x > right) {
moveX = -moveX;
}
if (_y <= top) {
moveY = -moveY;
if (moveY <= 0) {
moveY = -moveY;
}
} else if (_y >= bottom) {
_x = startX;
_y = startY;
_root.outBound();
}
}
function infoRacket() {
if (_y == 480) {
racketX1 = _root.racket.posInfo();
} else if (_y == 490) {
racketX2 = _root.racket.posInfo();
racketDiffX = racketX1 - racketX2;
if (racketDiffX > 3) {
addX = -3;
} else if (racketDiffX < -3) {
addX = 3;
} else {
addX = 0;
}
}
}
function hitRacket() {
if (this.hitTest(_root.racket)) {
racketSound.start();
moveY = -moveY;
if (moveY >= 0) {
moveY = -moveY;
}
moveX = moveX + addX;
if (moveX > 10) {
moveX = 10;
} else if (moveX < -10) {
moveX = -10;
}
}
}
function hitBlock() {
moveY = -moveY;
if (moveY <= 0) {
moveY = -moveY;
}
}
startX = _x;
startY = _y;
fieldBounds = _root.field.fieldInfo();
fieldLeft = fieldBounds.xMin;
fieldTop = fieldBounds.yMin;
fieldRight = fieldBounds.xMax;
fieldBottom = fieldBounds.yMax;
ballBounds = this.getBounds(this);
left = fieldLeft - ballBounds.xMin;
top = fieldTop - ballBounds.yMin;
right = fieldRight - ballBounds.xMax;
bottom = fieldBottom - ballBounds.yMax;
racketSound = new Sound();
racketSound.attachSound("Latch Metal Thump");
moveX = 0;
moveY = 10;
Symbol 136 MovieClip Frame 1
function posInfo() {
return(_x);
}
Symbol 141 Button
on (release) {
gotoAndPlay (7);
}
Symbol 148 Button
on (release) {
gotoAndPlay (7);
}