Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 325) {
gotoAndPlay ("loop2");
}
Instance of Symbol 66 MovieClip in Frame 10
on (release) {
getURL ("http://www.freeonlinegames.com?tt", "_blank");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 2;
if (tgprel <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 203
unl1 = 1;
unl2 = 0;
unl3 = 0;
_root.guyul = "Zoran Primorak";
Frame 204
xsel = 1;
var flag = true;
fxsound = new Sound();
fxsound.setVolume(100);
_root.instruct._visible = false;
_root.stop();
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 = 6;
ball.gravity = 0.1;
if (unl2 == 0) {
medium.gotoAndStop(2);
}
if (unl3 == 0) {
hard.gotoAndStop(2);
}
if (_root.kkl1 == 1) {
easy.xscc.gotoAndStop(2);
}
if (_root.kkl2 == 1) {
easy.xscc.gotoAndStop(2);
}
if (_root.kkl3 == 1) {
easy.xscc.gotoAndStop(2);
}
easy.flah.gotoAndStop(2);
_root.mute.gotoAndStop(1);
Instance of Symbol 76 MovieClip "paddle2" in Frame 204
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 78 MovieClip "shadow" in Frame 204
onClipEvent (enterFrame) {
_x = _root.ball._x;
_xscale = _root.ball._xscale;
_yscale = _xscale;
_y = (60 + (3.7143 * (_root.ball._xscale - 30)));
}
Instance of Symbol 80 MovieClip "ball" in Frame 204
onClipEvent (enterFrame) {
if (realy < 0) {
if ((185 < realx) & (realx < 365)) {
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";
_root.clap2.gotoAndPlay(2);
_root.out.gotoAndPlay(2);
}
if (zspeed < 0) {
score2++;
_root.bluescoreclip.bluescore = score1 + " : OUT";
_root.redscoreclip.redscore = score2;
_root.out.gotoAndPlay(2);
}
zspeed = 0;
stopDrag();
Mouse.show();
_root.service._visible = true;
}
}
if (_xscale >= 100) {
if (this.hitTest(_root.paddle1.paddle1real)) {
_root.sound.gotoAndPlay(2);
xspeed = (_x - _root.paddle1._x) / 17;
yspeed = (3.5 / ballspeed) / ballspeed;
ydir = 1;
zspeed = zspeed * -1;
} else if (zspeed != 0) {
score2++;
if (_root._currentframe > 7) {
_root.clap1.gotoAndPlay(2);
}
_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)) {
_root.sound.gotoAndPlay(2);
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";
_root.applause.gotoAndPlay(2);
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 * 32) / _xscale) * ballspeed) / 0.6);
yspeed = yspeed + (((gravity * 0.42) * 10) / ballspeed);
}
if (0 < ydir) {
realy = realy + ((((yspeed * 32) / _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 87 MovieClip "paddle1" in Frame 204
onClipEvent (enterFrame) {
_rotation = (((_x - 300) * 90) / 275);
if (90 < _rotation) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Instance of Symbol 96 MovieClip "mute" in Frame 204
on (release) {
if (_root.flag == true) {
_root.flag = false;
this.gotoAndStop(2);
_root.fxsound.setVolume(0);
} else {
_root.flag = true;
this.gotoAndStop(1);
_root.fxsound.setVolume(100);
}
}
Frame 206
if ((ball.score1 >= 21) || (ball.score2 >= 21)) {
if ((1 < (ball.score1 - ball.score2)) || (1 < (ball.score2 - ball.score1))) {
service._visible = false;
wins._visible = false;
lose._visible = false;
} else {
gotoAndPlay ("sapte");
}
} else {
gotoAndPlay ("sapte");
}
Frame 207
stop();
if (ball.score2 < ball.score1) {
wins._visible = true;
if (xsel == 1) {
_root.xsc1 = (ball.score1 + " - ") + ball.score2;
_root.kkl1 = 1;
_root.unl2 = 1;
}
if (xsel == 2) {
_root.xsc2 = (ball.score1 + " - ") + ball.score2;
_root.kkl2 = 1;
_root.unl3 = 1;
}
if (xsel == 3) {
_root.xsc3 = (ball.score1 + " - ") + ball.score2;
_root.kkl3 = 1;
}
}
if (ball.score1 < ball.score2) {
lose._visible = true;
}
Symbol 4 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 50
stop();
_parent.play();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
if (_root.flag == 0) {
gotoAndStop (1);
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
if (_root.flag == 0) {
gotoAndStop (1);
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
if (_root.flag == 0) {
gotoAndStop (1);
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
if (_root.flag == 0) {
gotoAndStop (1);
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
if (_root.flag == 0) {
gotoAndStop (1);
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) {
_root.paddle2.xdiff = 6;
_root.paddle2.ydiff = 10;
_root.easy.flah.gotoAndStop(2);
_root.medium.flah.gotoAndStop(1);
_root.hard.flah.gotoAndStop(1);
_root.xsel = 1;
_root.guyul = "Zoran Primorak";
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 129 Button
on (release) {
_root.paddle2.xdiff = 10;
_root.paddle2.ydiff = 10;
_root.easy.flah.gotoAndStop(1);
_root.medium.flah.gotoAndStop(2);
_root.hard.flah.gotoAndStop(1);
_root.xsel = 2;
_root.guyul = "Petr Korbel";
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 136 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 ("sapte");
_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 138 Button
on (release) {
if (_root.instruct._visible == false) {
_root.instruct._visible = true;
}
}
Symbol 143 Button
on (release) {
getURL ("http://www.freeonlinegames.com?tt", "_blank");
}
Symbol 147 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com?tt", "_blank");
}
Symbol 151 Button
on (release) {
getURL ("http://freeonlinegames.com/downloads/tennis.exe", "_blank");
}
Symbol 153 Button
on (release) {
_root.paddle2.xdiff = 13;
_root.paddle2.ydiff = 10;
_root.easy.flah.gotoAndStop(1);
_root.medium.flah.gotoAndStop(2);
_root.hard.flah.gotoAndStop(2);
_root.xsel = 3;
_root.guyul = "Kim Taek Soo";
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 164 Button
on (release) {
if (_root.instruct._visible == true) {
_root.instruct._visible = false;
}
}
Symbol 167 Button
on (release) {
getURL ("http://www.freeonlinegames.com?tt", "_blank");
}
Symbol 171 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 ("sapte");
};
_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 176 Button
on (release) {
_root.gotoAndStop("sase");
}
Symbol 177 Button
on (release) {
getURL ("http://www.freeonlinegames.com?tt", "_blank");
}
Symbol 179 Button
on (release) {
_root.gotoAndStop("sase");
}