Frame 1
paddle1._visible = false;
ball._visible = false;
paddle2._visible = false;
shadow._visible = false;
backbox._visible = false;
wins._visible = false;
lose._visible = false;
bluescoreclip._visible = false;
redscoreclip._visible = false;
ball.scales = 20;
ball.speedvar = 0.6;
ball.increasing = 1;
paddle2.ydiff = 10;
paddle2.xdiff = 10;
medium._alpha = 100;
easy._alpha = 20;
hard._alpha = 20;
ball.gravity = 0.1;
stop();
Instance of Symbol 4 MovieClip "paddle2" in Frame 1
onClipEvent (enterFrame) {
if (_root.ball.zspeed < 0) {
if (_root.ball._xscale < 37) {
if ((60 - ((_root.ball.realy * 30) / 14)) < _y) {
_y = (_y - ydiff);
}
if (_y < (60 - ((_root.ball.realy * 30) / 14))) {
_y = (_y + ydiff);
}
}
if (_x < (_root.ball.realx - (xdiff / 2))) {
_x = (_x + xdiff);
}
if ((_root.ball.realx + (xdiff / 2)) < _x) {
_x = (_x - xdiff);
}
}
if ((50 - (_height / 2)) < _y) {
_y = (50 - (_height / 2));
}
_rotation = (((_x - 300) * 90) / 84);
if (90 < _rotation) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Instance of Symbol 9 MovieClip "shadow" in Frame 1
onClipEvent (enterFrame) {
_x = _root.ball._x;
_xscale = _root.ball._xscale;
_yscale = _xscale;
_y = (60 + (3.7143 * (_root.ball._xscale - 30)));
}
Instance of Symbol 12 MovieClip "ball" in Frame 1
onClipEvent (enterFrame) {
if (realy < 0) {
if ((216 < realx) & (realx < 384)) {
realy = 0;
ydir = ydir * -1;
} else {
realy = 0;
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
if (0 < zspeed) {
score1++;
_root.bluescoreclip.bluescore = score1;
_root.redscoreclip.redscore = score2 + " - out";
}
if (zspeed < 0) {
score2++;
_root.bluescoreclip.bluescore = score1 + " - out";
_root.redscoreclip.redscore = score2;
}
zspeed = 0;
stopDrag();
Mouse.show();
_root.service._visible = true;
}
}
if (_xscale >= 100) {
if (this.hitTest(_root.paddle1.paddle1real)) {
tellTarget (_root.soundbox) {
gotoAndStop (2);
gotoAndStop (1);
};
xspeed = (_x - _root.paddle1._x) / 17;
yspeed = (3.5 / ballspeed) / ballspeed;
ydir = 1;
zspeed = zspeed * -1;
} else if (zspeed != 0) {
score2++;
_root.bluescoreclip.bluescore = score1 + " - miss";
_root.redscoreclip.redscore = score2;
zspeed = 0;
stopDrag();
Mouse.show();
_root.service._visible = true;
}
}
if (30 >= _xscale) {
if (this.hitTest(_root.paddle2.paddle2real)) {
tellTarget (_root.soundbox) {
gotoAndStop (2);
gotoAndStop (1);
};
xspeed = (((_x - _root.paddle2._x) / 17) * 100) / 30;
yspeed = (1.5 / ballspeed) / ballspeed;
ydir = 1;
zspeed = zspeed * -1;
} else if (zspeed != 0) {
score1++;
_root.bluescoreclip.bluescore = score1;
_root.redscoreclip.redscore = score2 + " - miss";
zspeed = 0;
stopDrag();
Mouse.show();
_root.service._visible = true;
}
}
if (zspeed != 0) {
if (yspeed < 0) {
yspeed = yspeed * -1;
ydir = ydir * -1;
}
realx = realx + (((xspeed * 100) / _xscale) * ballspeed);
if (ydir < 0) {
realy = realy - ((((yspeed * 30) / _xscale) * ballspeed) / 0.6);
yspeed = yspeed + (((gravity * 0.42) * 10) / ballspeed);
}
if (0 < ydir) {
realy = realy + ((((yspeed * 30) / _xscale) * ballspeed) / 0.6);
yspeed = yspeed - (((gravity * 0.42) * 10) / ballspeed);
}
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_x = (300 + (((realx - 300) * _xscale) / 30));
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
}
if (increasing == 1) {
ballspeed = ballspeed + (speedvar / 1000);
}
if (zspeed < 0) {
zspeed = -3 * ballspeed;
}
if (0 < zspeed) {
zspeed = 3 * ballspeed;
}
}
Instance of Symbol 27 MovieClip "paddle1" in Frame 1
onClipEvent (enterFrame) {
_rotation = (((_x - 300) * 90) / 275);
if (90 < _rotation) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Frame 3
if ((ball.score1 >= 21) or (ball.score2 >= 21)) {
if ((1 < (ball.score1 - ball.score2)) or (1 < (ball.score2 - ball.score1))) {
service._visible = false;
wins._visible = false;
lose._visible = false;
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Frame 4
stop();
if (ball.score2 < ball.score1) {
wins._visible = true;
}
if (ball.score1 < ball.score2) {
lose._visible = true;
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 31 Button
on (release) {
_root._root.ball.xspeed = 0;
_root._root.ball.ballspeed = 1.1;
_root._root.ball.yspeed = -2.1;
_root._root.ball._xscale = 99;
_root._root.ball._yscale = 99;
_root._root.ball.zspeed = -3;
_root._root.ball.realx = 300;
_root._root.ball.realy = 3;
_root._root.ball.xchill = 5;
_root._root.ball.ychill = 20;
startDrag (_root._root.paddle1, true);
Mouse.hide();
tellTarget (_root) {
gotoAndPlay (2);
};
_root._root.paddle2._x = 300;
_root._root.paddle2._y = 60;
_root.ball._visible = true;
_root.paddle1._visible = true;
_root.shadow._visible = true;
_root.paddle2._visible = true;
_root.backbox._visible = true;
_root.paddle2._xscale = 30;
_root.paddle2._yscale = 30;
_root.ball.ydir = 1;
_visible = false;
_root.bluescoreclip.bluescore = _root.ball.score1;
_root.redscoreclip.redscore = _root.ball.score2;
}
Symbol 40 Button
on (release) {
_root.ball.score1 = 0;
_root.ball.score2 = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.1;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 99;
_root.ball._yscale = 99;
_root.ball.zspeed = -3;
_root.ball.realx = 300;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
startDrag (_root._root.paddle1, true);
Mouse.hide();
gotoAndPlay (2);
_root.paddle2._x = 300;
_root.paddle2._y = 60;
ball._visible = true;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 30;
paddle2._yscale = 30;
ball.ydir = 1;
service._visible = false;
wins._visible = false;
lose._visible = false;
bluescoreclip._visible = true;
redscoreclip._visible = true;
bluescoreclip.bluescore = "0";
redscoreclip.redscore = "0";
}
Symbol 52 Button
on (release) {
_root.paddle2.xdiff = 6;
_root.paddle2.ydiff = 10;
_root.easy._alpha = 100;
_root.medium._alpha = 20;
_root.hard._alpha = 20;
}
Symbol 54 Button
on (release) {
_root.paddle2.xdiff = 10;
_root.paddle2.ydiff = 10;
_root.easy._alpha = 20;
_root.medium._alpha = 100;
_root.hard._alpha = 20;
}
Symbol 56 Button
on (release) {
_root.paddle2.xdiff = 13;
_root.paddle2.ydiff = 10;
_root.easy._alpha = 20;
_root.medium._alpha = 20;
_root.hard._alpha = 100;
}
Symbol 70 Button
on (release) {
gotoAndStop (1);
}