Instance of Symbol 9 MovieClip in Frame 1
onClipEvent (load) {
_width = (random(50) + 100);
_height = (random(15) + 15);
_x = (random(150) + 150);
_y = (random(30) + (_height / 2));
}
onClipEvent (enterFrame) {
_x = (_x - 0.2);
if (_x < (-_width)) {
_width = (random(100) + 50);
_height = (random(15) + 15);
_x = (300 + _width);
_y = (random(30) + (_height / 2));
}
}
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (load) {
_width = (random(25) + 75);
_height = (random(15) + 15);
_x = random(150);
_y = ((random(50) + 60) + (_height / 2));
}
onClipEvent (enterFrame) {
_x = (_x - 0.2);
if (_x < (-_width)) {
_width = (random(100) + 50);
_height = (random(15) + 15);
_x = (300 + _width);
_y = ((random(50) + 60) + (_height / 2));
}
}
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
_x = _root.Ball._x;
_alpha = (-(_root.Ball._y / 2));
}
Instance of Symbol 20 MovieClip "BallShadow" in Frame 1
onClipEvent (enterFrame) {
_x = _root.Ball._x;
_alpha = (_root.Ball._y / 4);
}
Instance of Symbol 24 MovieClip "Ball" in Frame 1
onClipEvent (load) {
accel = 0;
deadball = 1;
xdir = 0;
rot = 1;
hitball = false;
wallbounce = false;
hitcount = 0;
besthitcount = 0;
bgm = new Sound();
bgm.setVolume(100);
bgm.attachSound("BGM");
bgm.start(0, 10000000);
kick = new Sound();
kick.setVolume(100);
kick.attachSound("KickSound");
}
onClipEvent (enterFrame) {
if (hitcount > 0) {
_root.Score.text = hitcount;
} else {
_root.Score.text = "";
}
if (besthitcount > 0) {
_root.BestScore.text = besthitcount;
} else {
_root.BestScore.text = "";
}
if (hitball == true) {
_height = (_height - 10);
hitball = false;
}
if (_height < _width) {
_height = (_height + 2);
hitball = false;
}
if (_y >= _root.BallShadow._y) {
_y = (_root.BallShadow._y + 1);
hitcount = 0;
if (accel > 0) {
bounce = accel;
accel = accel / 3;
accel = -accel;
}
if ((rot > 5) && (xdir < 2)) {
xdir = xdir + 1;
}
if ((rot < -5) && (xdir > 2)) {
xdir = xdir - 1;
}
rot = xdir;
if ((bounce > -2) && (bounce < 2)) {
deadball = 1;
}
}
if (_x <= (0 + (_width / 2))) {
_x = ((0 + (_width / 2)) + 1);
if (_y < 200) {
xdir = -xdir;
xdir = xdir - (xdir / 4);
wallbounce = true;
if (accel < 0) {
rot = rot - 10;
}
if (accel > 0) {
rot = rot + 10;
}
} else {
xdir = -xdir;
xdir = xdir - (xdir / 4);
rot = rot / 2;
rot = -rot;
}
}
if (_x >= (300 - (_width / 2))) {
_x = ((300 - (_width / 2)) - 1);
if (_y < 200) {
xdir = -xdir;
xdir = xdir - (xdir / 4);
wallbounce = true;
if (accel > 0) {
rot = rot - 10;
}
if (accel < 0) {
rot = rot + 10;
}
} else {
xdir = -xdir;
xdir = xdir - (xdir / 4);
rot = rot / 2;
rot = -rot;
}
}
if (deadball == 0) {
if (hitcount > besthitcount) {
besthitcount = hitcount;
}
_root.Ball.BallInside._rotation = _root.Ball.BallInside._rotation + rot;
_y = (_y + accel);
accel = accel + 2;
_x = (_x + xdir);
if (xdir > 0) {
xdir = xdir - 0.05;
}
if (xdir < 0) {
xdir = xdir + 0.05;
}
} else {
bounce = -100;
_y = (_root.BallShadow._y - 1);
}
}
onClipEvent (mouseDown) {
if (_root._xmouse <= (_x + (_width / 1.5))) {
if (_root._xmouse >= (_x - (_width / 1.5))) {
if (_root._ymouse >= (_y - (_width / 1.5))) {
if (_root._ymouse <= (_y + (_width / 1.5))) {
if (accel >= 0) {
kick.start();
deadball = 0;
accel = 0;
accel = accel + (-((random(3) * 10) + 10));
xdir = random(20) - 10;
rot = random(20) - 10;
hitball = true;
hitcount = hitcount + 1;
}
if (deadball == 1) {
kick.start();
deadball = 0;
accel = accel + -30;
xdir = random(20) - 10;
rot = random(20) - 10;
hitball = true;
hitcount = 1;
}
}
}
}
}
}
Symbol 28 Button
on (release) {
getURL ("http://www.limit0.com/games/affilin.php?id=mlufr6n", "_new");
}