Frame 1
stop();
Instance of Symbol 4 MovieClip "l3" in Frame 1
onClipEvent (load) {
gotoAndStop (2);
alpha = _40;
d1 = -200;
d2 = -200;
d3 = -200;
}
onClipEvent (enterFrame) {
d3 = d2;
d2 = d1;
d1 = _y;
_y = _root.l2.d3;
}
Instance of Symbol 4 MovieClip "l2" in Frame 1
onClipEvent (load) {
gotoAndStop (2);
alpha = _60;
d1 = -200;
d2 = -200;
d3 = -200;
}
onClipEvent (enterFrame) {
d3 = d2;
d2 = d1;
d1 = _y;
_y = _root.l1.d3;
}
Instance of Symbol 4 MovieClip "l1" in Frame 1
onClipEvent (load) {
gotoAndStop (2);
alpha = _80;
d1 = -200;
d2 = -200;
d3 = -200;
}
onClipEvent (enterFrame) {
d3 = d2;
d2 = d1;
d1 = _y;
_y = _root.l0.d3;
}
Instance of Symbol 4 MovieClip "l0" in Frame 1
onClipEvent (load) {
gravity = 0.4;
friction = 0.99;
yspd = 0;
timer = 0;
stop();
d3 = -200;
d2 = -200;
d1 = -200;
}
onClipEvent (enterFrame) {
timer++;
if ((_y + yspd) > 300) {
yspd = yspd * -1;
}
yspd = yspd + gravity;
yspd = yspd * friction;
d3 = d2;
d2 = d1;
d1 = _y;
if (timer < 180) {
_y = (_y + yspd);
}
}
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (mouseUp) {
_root.play();
}
Frame 2
score = 0;
balls = 0;
streak = 0;
lives = 5;
lstring = "O O O O O";
stop();
Instance of Symbol 13 MovieClip "b0" in Frame 2
onClipEvent (load) {
power = 5;
xspd = (Math.random() * 8) - 4;
yspd = Math.sqrt((power * power) - (xspd * xspd));
dead = 0;
gotoAndStop (2);
tar = 200;
active = 0;
}
onClipEvent (enterFrame) {
if (_root.balls >= 1) {
active = 1;
}
if ((active == 1) && (_x > 450)) {
_x = ((Math.random() * 300) + 50);
_y = 5;
threat = 10000;
}
if (((_x + xspd) > 395) || ((_x + xspd) < 5)) {
xspd = xspd * -1;
}
if (((_y + yspd) > 445) && (yspd > 0)) {
if (((_x > (_root.ppad._x - 30)) && (_x < (_root.ppad._x + 30))) && (dead == 0)) {
_root.score = _root.score + 1;
power = power + (1 / power);
pd = (_x - _root.ppad._x) / 30;
xspd = power * pd;
yspd = -Math.sqrt((power * power) - (xspd * xspd));
threat = Math.abs(400 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
gotoAndStop (1);
_root.streak++;
} else if ((_y + yspd) > 455) {
dead = 1;
}
}
if (((_y + yspd) < 55) && (yspd < 0)) {
if (((_x > (_root.cpad._x - 30)) && (_x < (_root.cpad._x + 30))) && (dead == 0)) {
power = power + (1 / power);
pd = (_x - _root.cpad._x) / 30;
xspd = power * pd;
yspd = Math.sqrt((power * power) - (xspd * xspd));
threat = 10000;
gotoAndStop (2);
_root.streak++;
} else if ((_y + yspd) < 45) {
dead = 1;
threat = 10000;
}
}
if (_y >= 510) {
_y = -5;
dead = 0;
_root.streak = 0;
_root.lives--;
if (_root.lives <= 0) {
_root.play();
}
}
if (_y <= -10) {
_y = 505;
dead = 0;
_root.streak = 0;
_root.score = _root.score + 10;
_root.cpad.thrust = _root.cpad.thrust + 3;
threat = Math.abs(460 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
}
threat--;
if (active == 1) {
_x = (_x + xspd);
_y = (_y + yspd);
}
}
Instance of Symbol 13 MovieClip "b0t" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_x = _root.b0.tar;
_y = 55;
}
Instance of Symbol 13 MovieClip "b1" in Frame 2
onClipEvent (load) {
power = 5;
xspd = (Math.random() * 8) - 4;
yspd = Math.sqrt((power * power) - (xspd * xspd));
dead = 0;
gotoAndStop (2);
tar = 200;
active = 0;
}
onClipEvent (enterFrame) {
if (_root.balls >= 2) {
active = 1;
}
if ((active == 1) && (_x > 450)) {
_x = ((Math.random() * 300) + 50);
_y = 5;
threat = 10000;
}
if (((_x + xspd) > 395) || ((_x + xspd) < 5)) {
xspd = xspd * -1;
}
if (((_y + yspd) > 445) && (yspd > 0)) {
if (((_x > (_root.ppad._x - 30)) && (_x < (_root.ppad._x + 30))) && (dead == 0)) {
_root.score = _root.score + 1;
power = power + (1 / power);
pd = (_x - _root.ppad._x) / 30;
xspd = power * pd;
yspd = -Math.sqrt((power * power) - (xspd * xspd));
threat = Math.abs(400 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
gotoAndStop (1);
_root.streak++;
} else if ((_y + yspd) > 455) {
dead = 1;
}
}
if (((_y + yspd) < 55) && (yspd < 0)) {
if (((_x > (_root.cpad._x - 30)) && (_x < (_root.cpad._x + 30))) && (dead == 0)) {
power = power + (1 / power);
pd = (_x - _root.cpad._x) / 30;
xspd = power * pd;
yspd = Math.sqrt((power * power) - (xspd * xspd));
threat = 10000;
gotoAndStop (2);
_root.streak++;
} else if ((_y + yspd) < 45) {
dead = 1;
threat = 10000;
}
}
if (_y >= 510) {
_y = -5;
dead = 0;
_root.streak = 0;
_root.lives--;
if (_root.lives <= 0) {
_root.play();
}
}
if (_y <= -10) {
_y = 505;
dead = 0;
_root.streak = 0;
_root.score = _root.score + 10;
_root.cpad.thrust = _root.cpad.thrust + 3;
threat = Math.abs(460 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
}
threat--;
if (active == 1) {
_x = (_x + xspd);
_y = (_y + yspd);
}
}
Instance of Symbol 13 MovieClip "b1t" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_x = _root.b1.tar;
_y = 55;
}
Instance of Symbol 13 MovieClip "b2" in Frame 2
onClipEvent (load) {
power = 5;
xspd = (Math.random() * 8) - 4;
yspd = Math.sqrt((power * power) - (xspd * xspd));
dead = 0;
gotoAndStop (2);
tar = 200;
active = 0;
}
onClipEvent (enterFrame) {
if (_root.balls >= 3) {
active = 1;
}
if ((active == 1) && (_x > 450)) {
_x = ((Math.random() * 300) + 50);
_y = 5;
threat = 10000;
}
if (((_x + xspd) > 395) || ((_x + xspd) < 5)) {
xspd = xspd * -1;
}
if (((_y + yspd) > 445) && (yspd > 0)) {
if (((_x > (_root.ppad._x - 30)) && (_x < (_root.ppad._x + 30))) && (dead == 0)) {
_root.score = _root.score + 1;
power = power + (1 / power);
pd = (_x - _root.ppad._x) / 30;
xspd = power * pd;
yspd = -Math.sqrt((power * power) - (xspd * xspd));
threat = Math.abs(400 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
gotoAndStop (1);
_root.streak++;
} else if ((_y + yspd) > 455) {
dead = 1;
}
}
if (((_y + yspd) < 55) && (yspd < 0)) {
if (((_x > (_root.cpad._x - 30)) && (_x < (_root.cpad._x + 30))) && (dead == 0)) {
power = power + (1 / power);
pd = (_x - _root.cpad._x) / 30;
xspd = power * pd;
yspd = Math.sqrt((power * power) - (xspd * xspd));
threat = 10000;
gotoAndStop (2);
_root.streak++;
} else if ((_y + yspd) < 45) {
dead = 1;
threat = 10000;
}
}
if (_y >= 510) {
_y = -5;
dead = 0;
_root.streak = 0;
_root.lives--;
if (_root.lives <= 0) {
_root.play();
}
}
if (_y <= -10) {
_y = 505;
dead = 0;
_root.streak = 0;
_root.score = _root.score + 10;
_root.cpad.thrust = _root.cpad.thrust + 3;
threat = Math.abs(460 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
}
threat--;
if (active == 1) {
_x = (_x + xspd);
_y = (_y + yspd);
}
}
Instance of Symbol 13 MovieClip "b3" in Frame 2
onClipEvent (load) {
power = 5;
xspd = (Math.random() * 8) - 4;
yspd = Math.sqrt((power * power) - (xspd * xspd));
dead = 0;
gotoAndStop (2);
tar = 200;
active = 0;
}
onClipEvent (enterFrame) {
if (_root.balls >= 4) {
active = 1;
}
if ((active == 1) && (_x > 450)) {
_x = ((Math.random() * 300) + 50);
_y = 5;
threat = 10000;
}
if (((_x + xspd) > 395) || ((_x + xspd) < 5)) {
xspd = xspd * -1;
}
if (((_y + yspd) > 445) && (yspd > 0)) {
if (((_x > (_root.ppad._x - 30)) && (_x < (_root.ppad._x + 30))) && (dead == 0)) {
_root.score = _root.score + 1;
power = power + (1 / power);
pd = (_x - _root.ppad._x) / 30;
xspd = power * pd;
yspd = -Math.sqrt((power * power) - (xspd * xspd));
threat = Math.abs(400 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
gotoAndStop (1);
_root.streak++;
} else if ((_y + yspd) > 455) {
dead = 1;
}
}
if (((_y + yspd) < 55) && (yspd < 0)) {
if (((_x > (_root.cpad._x - 30)) && (_x < (_root.cpad._x + 30))) && (dead == 0)) {
power = power + (1 / power);
pd = (_x - _root.cpad._x) / 30;
xspd = power * pd;
yspd = Math.sqrt((power * power) - (xspd * xspd));
threat = 10000;
gotoAndStop (2);
_root.streak++;
} else if ((_y + yspd) < 45) {
dead = 1;
threat = 10000;
}
}
if (_y >= 510) {
_y = -5;
dead = 0;
_root.streak = 0;
_root.lives--;
if (_root.lives <= 0) {
_root.play();
}
}
if (_y <= -10) {
_y = 505;
dead = 0;
_root.streak = 0;
_root.score = _root.score + 10;
_root.cpad.thrust = _root.cpad.thrust + 3;
threat = Math.abs(460 / yspd);
tar = _x + (xspd * threat);
while ((tar > 395) || (tar < 5)) {
if (tar < 5) {
tar = (tar * -1) + 10;
} else if (tar > 395) {
tar = tar - ((tar - 395) * 2);
}
}
}
threat--;
if (active == 1) {
_x = (_x + xspd);
_y = (_y + yspd);
}
}
Instance of Symbol 13 MovieClip "b2t" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_x = _root.b2.tar;
_y = 55;
}
Instance of Symbol 13 MovieClip "b3t" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_x = _root.b3.tar;
_y = 55;
}
Instance of Symbol 16 MovieClip "cpad" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
thrust = 3;
}
onClipEvent (enterFrame) {
if (_root.balls == 1) {
if (_x > (_root.b0t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b0t._x - 20)) {
_x = (_x + thrust);
}
}
if (_root.balls == 2) {
if (_root.b0.threat < _root.b1.threat) {
if (_x > (_root.b0t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b0t._x - 20)) {
_x = (_x + thrust);
}
}
if (_root.b1.threat < _root.b0.threat) {
if (_x > (_root.b1t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b1t._x - 20)) {
_x = (_x + thrust);
}
}
}
if (_root.balls == 3) {
if ((_root.b0.threat < _root.b1.threat) && (_root.b0.threat < _root.b2.threat)) {
if (_x > (_root.b0t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b0t._x - 20)) {
_x = (_x + thrust);
}
}
if ((_root.b1.threat < _root.b0.threat) && (_root.b1.threat < _root.b2.threat)) {
if (_x > (_root.b1t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b1t._x - 20)) {
_x = (_x + thrust);
}
}
if ((_root.b2.threat < _root.b0.threat) && (_root.b2.threat < _root.b1.threat)) {
if (_x > (_root.b2t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b2t._x - 20)) {
_x = (_x + thrust);
}
}
}
if (_root.balls >= 4) {
if (((_root.b0.threat < _root.b1.threat) && (_root.b0.threat < _root.b2.threat)) && (_root.b0.threat < _root.b3.threat)) {
if (_x > (_root.b0t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b0t._x - 20)) {
_x = (_x + thrust);
}
}
if (((_root.b1.threat < _root.b0.threat) && (_root.b1.threat < _root.b2.threat)) && (_root.b1.threat < _root.b3.threat)) {
if (_x > (_root.b1t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b1t._x - 20)) {
_x = (_x + thrust);
}
}
if (((_root.b2.threat < _root.b0.threat) && (_root.b2.threat < _root.b1.threat)) && (_root.b2.threat < _root.b3.threat)) {
if (_x > (_root.b2t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b2t._x - 20)) {
_x = (_x + thrust);
}
}
if (((_root.b3.threat < _root.b0.threat) && (_root.b3.threat < _root.b1.threat)) && (_root.b3.threat < _root.b2.threat)) {
if (_x > (_root.b3t._x + 20)) {
_x = (_x - thrust);
} else if (_x < (_root.b3t._x - 20)) {
_x = (_x + thrust);
}
}
}
}
Instance of Symbol 16 MovieClip "ppad" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.lives == 5) {
_root.lstring = "O O O O O";
}
if (_root.lives == 4) {
_root.lstring = "O O O O";
}
if (_root.lives == 3) {
_root.lstring = "O O O";
}
if (_root.lives == 2) {
_root.lstring = "O O";
}
if (_root.lives == 1) {
_root.lstring = "O";
}
if ((_x + _xmouse) < 30) {
_x = 30;
} else if ((_x + _xmouse) > 370) {
_x = 370;
} else {
_x = (_x + _xmouse);
}
if (_root.streak >= ((4 * _root.balls) + 1)) {
_root.streak = 0;
_root.balls++;
}
}
onClipEvent (mouseUp) {
if (_root.balls == 0) {
_root.balls = 1;
}
}
Instance of Symbol 23 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((_root.balls != 0) && (_alpha > -10)) {
_alpha = (_alpha - 5);
}
}
Frame 3
if (!hscore) {
hscore = 0;
}
if (score > hscore) {
hscore = score;
}
stop();
Instance of Symbol 16 MovieClip in Frame 3
onClipEvent (mouseUp) {
_root.play();
}