Frame 1
_root.speed = -2;
_root.upspeed = 30;
_root.upspeedy = 1;
_root.speedy = 0;
_root.score = 0;
_root.point = "";
_root.active = "";
_root.point1 = 0;
_root.a = 0;
_root.square = 20;
_root.score = 0;
_root.best = 0;
_root.onEnterFrame = function () {
if (((_root._xmouse < _root.ball._x) and (_root._ymouse > _root.ball._y)) and ((_root.point1 == 0) or (_root.point1 == 4))) {
_root.point1++;
}
if (((_root._xmouse < _root.ball._x) and (_root._ymouse < _root.ball._y)) and ((_root.point1 == 1) or (_root.point1 == 5))) {
_root.point1++;
}
if (((_root._xmouse > _root.ball._x) and (_root._ymouse < _root.ball._y)) and ((_root.point1 == 2) or (_root.point1 == 6))) {
_root.point1++;
}
if (((_root._xmouse > _root.ball._x) and (_root._ymouse > _root.ball._y)) and ((_root.point1 == 3) or (_root.point1 == 7))) {
_root.point1++;
}
varx = _root.best;
vary = _root.score;
if (((((_root.a == 0) and (int(ball._y - _root._ymouse) < _root.square)) and (int(ball._y - _root._ymouse) > (-_root.square))) and (int(ball._x - _root._xmouse) < _root.square)) and (int(ball._x - _root._xmouse) > (-_root.square))) {
_root.speed = -_root.upspeed;
_root.a = 10;
_root.score++;
_root.point = "";
if ((_root.point1 > 3) and (_root.point1 < 8)) {
_root.leson2.gotoAndPlay(2);
_root.point = "2pts";
_root.score++;
}
if (_root.point1 == 8) {
_root.leson.gotoAndPlay(2);
switch (_root.active) {
case "Ronaldhino ! 5pts" :
_root.score = _root.score + 14;
_root.point = "Double Ronie ! 15pts";
break;
case "Double Ronie ! 15pts" :
_root.score = _root.score + 29;
_root.point = "Triple Ronie ! 30pts";
break;
default :
_root.score = _root.score + 4;
_root.point = "Ronaldhino ! 5pts";
}
}
_root.active = _root.point;
_root.point1 = 0;
_root.speedy = _root.speedy + int(ball._x - _root._xmouse);
if ((_root.speedy < _root.upspeedy) and (_root.speedy > (-_root.upspeedy))) {
_root.speedy = 2 * _root.upspeedy;
}
if (_root.speedy > 100) {
_root.speedy = 100;
}
} else {
if (_root.a > 0) {
_root.a--;
}
_root.speed = _root.speed + 2.5;
ball._x = ball._x + _root.speedy;
ball._rotation = ball._rotation + (_root.speedy * 2);
}
if ((ball._y + _root.speed) < 17) {
_root.speed = _root.speed * -0.7;
ball._y = 17 - _root.speed;
}
if ((ball._y + _root.speed) > 355) {
if (_root.speedy >= 1) {
_root.speedy = _root.speedy - _root.upspeedy;
}
if (_root.speedy <= -1) {
_root.speedy = _root.speedy + _root.upspeedy;
}
if ((_root.speedy < _root.upspeedy) and (_root.speedy > (-_root.upspeedy))) {
_root.speedy = 0;
}
if ((_root.speed < 10) and (_root.speed > -10)) {
_root.speed = 0;
}
if (_root.score > _root.best) {
_root.best = _root.score;
}
_root.score = 0;
_root.point1 = 0;
_root.point = "";
if ((ball._y + _root.speed) < 345) {
ball._y = ball._y - 10;
}
_root.speed = _root.speed * -0.7;
ball._y = 355 - _root.speed;
}
ball._y = ball._y + _root.speed;
if (ball._x <= 20) {
ball._x = 20;
_root.speedy = (-_root.speedy) * 0.7;
}
if (ball._x >= 530) {
ball._x = 530;
_root.speedy = (-_root.speedy) * 0.7;
}
};
Text15._accProps = new Object();
Text15._accProps.silent = false;
Symbol 17 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();