Frame 1
stop();
onEnterFrame = function () {
if (_root._framesloaded >= _root._totalframes) {
nextFrame();
}
};
Frame 2
stop();
bsize = 50;
grav = 3;
wind = 0.7;
fric = 0.6;
lscore = 0;
rscore = 0;
mass = 5;
cheat = 0;
onEnterFrame = function () {
if (bsize > 300) {
bsize = -290;
}
if (bsize < -300) {
bsize = 290;
}
if (bsize < 0) {
mass = Math.abs((bsize / 10) - 1);
} else {
mass = Math.abs((bsize / 10) + 1);
}
if (((Math.random() * 10) >= 5) and (wind < 2)) {
wind = wind + (Math.random() / 10);
}
if (((Math.random() * 10) < 5) and (wind > -2)) {
wind = wind - (Math.random() / 10);
}
if ((Math.random() * 100) < 1) {
wind = wind * -1;
}
if (Key.isDown(8)) {
cheat = cheat + 1;
}
if ((lscore >= 10) or (rscore >= 10)) {
gotoAndPlay (3);
}
};
Instance of Symbol 10 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = _root.lman._x;
_y = _root.lman._y;
if (this.hitTest(_root.mid)) {
_root.lman._x = 185;
}
}
Instance of Symbol 12 MovieClip in Frame 2
onClipEvent (load) {
spd = 0;
fric = 0.3;
}
onClipEvent (enterFrame) {
if (_root.cheat > 25) {
if ((_rotation > 180) and cheat) {
_y = (_y + ((spd * fric) * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - ((spd * fric) * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (Key.isDown(39)) {
_rotation = (_rotation + 5);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 5);
}
if (Key.isDown(38) && (spd < 12)) {
spd++;
}
if (Key.isDown(40) && (spd > -12)) {
spd--;
}
if (_x < 0) {
_x = 0;
}
if (_x > 500) {
_x = 500;
}
if (_y < 0) {
_y = 0;
}
if (_y > 500) {
_y = 500;
}
if (this.hitTest(_root.ball)) {
_root.ball.vy = _root.ball.vy * -1;
_root.ball.vx = _root.ball.vx * -1;
}
}
}
Instance of Symbol 14 MovieClip "ball" in Frame 2
onClipEvent (load) {
_x = 250;
_y = 50;
vx = 0;
vy = -20;
}
onClipEvent (enterFrame) {
_xscale = _root.bsize;
_yscale = _root.bsize;
if (Key.isDown(37)) {
_root.bsize = _root.bsize - 10;
}
if (Key.isDown(39)) {
_root.bsize = _root.bsize + 10;
}
vy = vy + (_root.grav * _root.fric);
vx = vx + (_root.wind * _root.fric);
_y = (_y + (vy + _root.mass));
_x = (_x + (vx / _root.mass));
if ((_y > 500) and (_x < 245)) {
vx = 0;
vy = -20;
_x = 250;
_y = 50;
_root.lscore = _root.lscore + 1;
_root.scoresound.gotoAndPlay(2);
}
if ((_y > 500) and (_x > 255)) {
vx = 0;
vy = -20;
_x = 250;
_y = 50;
_root.rscore = _root.rscore + 1;
_root.scoresound.gotoAndPlay(2);
}
if (((_y > 500) and (_x <= 255)) and (_x >= 245)) {
vx = 0;
vy = -20;
_x = 250;
_y = 50;
}
if (_y < 0) {
vy = vy * -0.8;
_y = 1;
}
if (_x < 0) {
vx = vx * -0.8;
_x = 1;
}
if (_x > 500) {
vx = vx * -0.8;
_x = 499;
}
}
Instance of Symbol 19 MovieClip "rman" in Frame 2
onClipEvent (load) {
speed = 7;
vx = 0;
power = 40;
frict = 0.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = power * -1;
_root.ball.vx = power * -1;
}
if ((_x > _root.ball._x) and (_x < 500)) {
_x = (_x - speed);
}
if ((_x < _root.ball._x) and (_x > 275)) {
_x = (_x + speed);
}
if (_x > 500) {
_x = 498;
}
if (_x < 275) {
_x = 277;
}
}
Instance of Symbol 19 MovieClip "lman" in Frame 2
onClipEvent (load) {
speed = 7;
vx = 0;
power = 40;
frict = 0.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = power * -1;
_root.ball.vx = power;
}
if ((_x > _root.ball._x) and (_x < 225)) {
_x = (_x - speed);
}
if ((_x < _root.ball._x) and (_x > 0)) {
_x = (_x + speed);
}
if (_x < 0) {
_x = 2;
}
if (_x > 225) {
_x = 223;
}
}
Instance of Symbol 21 MovieClip in Frame 2
onClipEvent (enterFrame) {
_xscale = (_root.wind * 100);
}
Instance of Symbol 24 MovieClip "mid" in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = _root.ball.vx * -1;
}
}
Instance of Symbol 27 MovieClip in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_x = _root.ball._x;
_y = _root.ball._y;
if (_root.bsize == 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 29 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = _root.rman._x;
_y = _root.rman._y;
if (this.hitTest(_root.mid)) {
_root.rman._x = 301;
}
}
Frame 3
stop();
Instance of Symbol 53 MovieClip in Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Instance of Symbol 10 MovieClip in Frame 3
onClipEvent (load) {
if (_root.rscore >= 10) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 29 MovieClip in Frame 3
onClipEvent (load) {
if (_root.lscore >= 10) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 34 Button
on (release) {
_root.song.gotoAndPlay(1);
}
Symbol 41 MovieClip Frame 1
stopAllSounds();
Symbol 41 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 3
stopAllSounds();
Symbol 41 MovieClip Frame 4
stop();
Symbol 41 MovieClip Frame 5
stopAllSounds();
Symbol 41 MovieClip Frame 6
stop();
Symbol 41 MovieClip Frame 7
stopAllSounds();
Symbol 41 MovieClip Frame 8
stop();
Symbol 41 MovieClip Frame 9
stopAllSounds();
stop();
Symbol 42 Button
on (release) {
_root.song.gotoAndPlay(3);
}
Symbol 43 Button
on (release) {
_root.song.gotoAndPlay(5);
}
Symbol 44 Button
on (release) {
_root.song.gotoAndPlay(7);
}
Symbol 48 Button
on (release) {
_root.song.gotoAndPlay(9);
}
Symbol 58 Button
on (release) {
gotoAndPlay (2);
}