Frame 1
stop();
Instance of Symbol 36 MovieClip in Frame 1
onClipEvent (load) {
total = int(_root.getBytesTotal());
}
onClipEvent (enterFrame) {
loaded = int(_root.getBytesLoaded());
percent = int((loaded / total) * 100);
Set("_root:percent", percent + "%");
_root.loadbar.gotoAndStop((_currentframe - _currentframe) + percent);
if (percent >= 100) {
tellTarget ("_root") {
play();
};
}
}
Frame 87
stop();
Frame 125
world = new Object();
world.left = bounds._x;
world.right = bounds._x + bounds._width;
world.top = bounds._y;
world.bottom = bounds._y + bounds._height;
world.serve = (world.bottom - world.top) / 2;
world.speed = 20;
world.skillFactor = 1.5;
world.bounce = 1;
batheight = bat._height / 2;
batBounce = new Sound();
batBounce.attachSound("batBounce");
WallBounce = new Sound();
wallBounce.attachSound("wallBounce");
miss = new Sound();
miss.attachSound("miss");
miss2 = new Sound();
miss2.attachSound("miss2");
gameOver = new Sound();
gameOver.attachSound("gameOver");
batBounce.start(0, 1);
Instance of Symbol 79 MovieClip "bounds" in Frame 125
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 82 MovieClip "bat" in Frame 125
onClipEvent (load) {
_visible = false;
}
Frame 126
Mouse.show();
stop();
Frame 127
stop();
Instance of Symbol 99 MovieClip "playerBat" in Frame 127
onClipEvent (load) {
left = _parent.world.left;
top = _parent.world.top;
bottom = _parent.world.bottom;
serve = _parent.world.serve;
speed = _parent.world.speed;
skillFactor = _parent.world.skillFactor;
_x = left;
_y = serve;
myPos = _y;
myTarget = myPos;
}
onClipEvent (enterFrame) {
myTarget = _root._ymouse;
myPos = myPos - ((myPos - myTarget) / skillFactor);
_y = myPos;
_parent.playerPos = myPos;
}
Instance of Symbol 100 MovieClip "npcBat" in Frame 127
onClipEvent (load) {
right = _parent.world.right;
top = _parent.world.top;
bottom = _parent.world.bottom;
serve = _parent.world.serve;
speed = _parent.world.speed;
skillFactor = _parent.world.skillFactor;
_x = right;
_y = serve;
myPos = _y;
myTarget = myPos;
}
onClipEvent (enterFrame) {
if (0 < _parent.ballDir) {
myPos = myPos - ((myPos - _parent.ballPos) / skillFactor);
} else {
myPos = myPos - ((myPos - serve) / 20);
}
_y = myPos;
_parent.npcPos = myPos;
}
Instance of Symbol 102 MovieClip in Frame 127
onClipEvent (load) {
left = _parent.world.left;
right = _parent.world.right;
top = _parent.world.top;
bottom = _parent.world.bottom;
serve = _parent.world.serve;
speed = _parent.world.speed;
bounce = _parent.world.bounce;
batHitWidth = _parent.batWidth + _width;
batheight = _parent.batHeight;
_x = left;
_y = serve;
myPos = new Object();
myPos.x = left;
myPos.y = serve;
mySpeed = new Object();
mySpeed.x = speed;
mySpeed.y = 0;
}
onClipEvent (enterFrame) {
myPos.x = myPos.x + mySpeed.x;
myPos.y = myPos.y - mySpeed.y;
if (myPos.y < top) {
myPos.y = top;
mySpeed.y = -mySpeed.y;
_root.wallBounce.start(0, 1);
} else if (bottom < myPos.y) {
myPos.y = bottom;
mySpeed.y = -mySpeed.y;
_root.wallBounce.start(0, 1);
}
if (myPos.x < left) {
if (Math.abs(_parent.playerPos - myPos.y) < batHeight) {
mySpeed.x = -mySpeed.x;
myPos.x = left;
mySpeed.y = (_parent.playerPos - myPos.y) / bounce;
_root.batBounce.start(0, 1);
} else {
mySpeed.y = 0;
myPos.x = right;
myPos.y = serve;
_parent.npcScore.play();
_root.miss2.start(0, 1);
}
} else if (right < myPos.x) {
if (Math.abs(_parent.npcPos - myPos.y) < batHeight) {
mySpeed.x = -mySpeed.x;
myPos.x = right;
mySpeed.y = (_parent.npcPos - myPos.y) / bounce;
_root.batBounce.start(0, 1);
} else {
mySpeed.y = 0;
myPos.x = left;
myPos.y = serve;
_parent.playerScore.play();
_root.miss.start(0, 1);
}
}
_x = myPos.x;
_y = myPos.y;
_parent.ballPos = myPos.y;
_parent.ballDir = mySpeed.x;
}
Symbol 34 Button
on (release) {
getURL ("http://www.adultwebgames.com");
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 3
stop();
Symbol 58 MovieClip Frame 4
stop();
Symbol 58 MovieClip Frame 5
stop();
Symbol 58 MovieClip Frame 6
stop();
Symbol 58 MovieClip Frame 7
stop();
Symbol 58 MovieClip Frame 8
stop();
Symbol 68 Button
on (release) {
play();
}
Symbol 74 MovieClip Frame 9
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 3
stop();
tellTarget ("/prizes") {
gotoAndPlay (2);
};
Symbol 92 MovieClip Frame 4
stop();
tellTarget ("/prizes") {
gotoAndPlay (3);
};
Symbol 92 MovieClip Frame 5
stop();
tellTarget ("/prizes") {
gotoAndPlay (4);
};
Symbol 92 MovieClip Frame 6
stop();
tellTarget ("/prizes") {
gotoAndPlay (5);
};
Symbol 92 MovieClip Frame 7
stop();
tellTarget ("/prizes") {
gotoAndPlay (6);
};
Symbol 92 MovieClip Frame 8
stop();
tellTarget ("/prizes") {
gotoAndPlay (7);
};
Symbol 92 MovieClip Frame 9
stop();
tellTarget ("/prizes") {
gotoAndPlay (8);
};
Symbol 92 MovieClip Frame 10
_root.gameOver.start(0, 4);
Symbol 92 MovieClip Frame 45
_parent.gotoAndPlay("startGame");
Symbol 95 Button
on (release) {
Mouse.hide();
play();
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Symbol 97 MovieClip Frame 3
stop();
tellTarget ("/prizes") {
gotoAndPlay (2);
};
Symbol 97 MovieClip Frame 4
stop();
tellTarget ("/prizes") {
gotoAndPlay (3);
};
Symbol 97 MovieClip Frame 5
stop();
tellTarget ("/prizes") {
gotoAndPlay (4);
};
Symbol 97 MovieClip Frame 6
stop();
tellTarget ("/prizes") {
gotoAndPlay (5);
};
Symbol 97 MovieClip Frame 7
stop();
tellTarget ("/prizes") {
gotoAndPlay (6);
};
Symbol 97 MovieClip Frame 8
stop();
tellTarget ("/prizes") {
gotoAndPlay (7);
};
Symbol 97 MovieClip Frame 9
stop();
tellTarget ("/prizes") {
gotoAndPlay (8);
};
Symbol 97 MovieClip Frame 10
_root.gameOver.start(0, 4);
Symbol 97 MovieClip Frame 45
_parent.gotoAndPlay("startGame");
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 3
stop();
tellTarget ("/prizes") {
gotoAndPlay (2);
};
Symbol 98 MovieClip Frame 4
stop();
tellTarget ("/prizes") {
gotoAndPlay (3);
};
Symbol 98 MovieClip Frame 5
stop();
tellTarget ("/prizes") {
gotoAndPlay (4);
};
Symbol 98 MovieClip Frame 6
stop();
tellTarget ("/prizes") {
gotoAndPlay (5);
};
Symbol 98 MovieClip Frame 7
stop();
tellTarget ("/prizes") {
gotoAndPlay (6);
};
Symbol 98 MovieClip Frame 8
stop();
tellTarget ("/prizes") {
gotoAndPlay (7);
};
Symbol 98 MovieClip Frame 9
stop();
tellTarget ("/prizes") {
gotoAndPlay (8);
};
Symbol 98 MovieClip Frame 10
_root.gameOver.start(0, 4);
Symbol 98 MovieClip Frame 45
_parent.gotoAndPlay("startGame");