Frame 1
stop();
Instance of Symbol 13 MovieClip "bar" in Frame 1
onClipEvent (load) {
_root.stop();
totalSize = _root.getBytesTotal();
barWidth = _parent.barBase._width;
this._width = 0;
}
onClipEvent (enterFrame) {
rate = _root.getBytesLoaded() / totalSize;
this._width = barWidth * rate;
if (rate >= 1) {
_root.play();
}
}
Frame 2
soundObject1 = new Sound(this);
soundObject1.attachSound("title.mp3");
this.soundObject1.start(0, 5);
stop();
Frame 3
soundObject2 = new Sound(this);
soundObject2.attachSound("parade.mp3");
this.soundObject2.start(0, 30);
soundObject3 = new Sound(this);
soundObject3.attachSound("po.wav");
soundObject4 = new Sound(this);
soundObject4.attachSound("level.wav");
soundObject5 = new Sound(this);
soundObject5.attachSound("ii.wav");
stop();
Instance of Symbol 38 MovieClip "player" in Frame 3
onClipEvent (load) {
(def_y = this._y);
(lock = false);
(xspeed = 0);
}
onClipEvent (enterFrame) {
if (this._x < -25) {
this._x = 570;
} else if (this._x > 570) {
this._x = -25;
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (lock3 != 1) {
_parent.soundObject5.start();
this.play();
lock3 = 1;
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
lock3 = 0;
}
}
onClipEvent (keyDown) {
if ((!lock) && (Key.isDown(38))) {
(lock = true);
(yspeed = -20);
(g = 0.5);
this.onEnterFrame = function () {
if (def_y < ((_y + speed) + g)) {
if (Key.isDown(38)) {
(xspeed = xspeed * 0.99);
(yspeed = -9);
(g = 0.5);
_x = (_x + xspeed);
_x + xspeed;
_y = (def_y + ((yspeed = yspeed + g)));
def_y + ((yspeed = yspeed + g));
} else {
if (Key.isDown(37) && (xspeed > -6)) {
xspeed = xspeed - 3;
if (xspeed < -6) {
xspeed = -6;
}
} else if (Key.isDown(39) && (xspeed < 6)) {
xspeed = xspeed + 3;
if (xspeed > 6) {
xspeed = 6;
}
} else {
xspeed = xspeed * 0.8;
}
_x = (_x + xspeed);
_x + xspeed;
_y = def_y;
(lock = false);
}
} else {
_y = (_y + ((yspeed = yspeed + g)));
if (Key.isDown(37) && (Key.isDown(39))) {
} else if (Key.isDown(37) && (xspeed > -6)) {
xspeed = xspeed - 0.2;
if (xspeed < -6) {
xspeed = -6;
}
} else if (Key.isDown(39) && (xspeed < 6)) {
xspeed = xspeed + 0.2;
if (xspeed > 6) {
xspeed = 6;
}
}
_x = (_x + xspeed);
}
};
}
if ((!lock) && (Key.isDown(37) || (Key.isDown(39)))) {
this.onEnterFrame = function () {
if (Key.isDown(37) && (Key.isDown(39))) {
} else if (Key.isDown(37) || (Key.isDown(39))) {
if (Key.isDown(37) && (xspeed > -6)) {
xspeed = xspeed - 3;
if (xspeed < -6) {
xspeed = -6;
}
}
if (Key.isDown(39) && (xspeed < 6)) {
xspeed = xspeed + 3;
if (xspeed > 6) {
xspeed = 6;
}
}
} else {
xspeed = xspeed * 0.8;
}
_x = (_x + xspeed);
};
}
}
Instance of Symbol 45 MovieClip in Frame 3
onClipEvent (load) {
function makeEnemyCar() {
nameCnt++;
if (nameCnt >= 1000) {
nameCnt = 0;
}
var newEnemyName = ("car" + nameCnt);
if (_global.lock5 == 1) {
ball = 100;
rnd = Math.floor(Math.random() * 2) + 1;
if (rnd == 1) {
num2 = 0;
while (num2 < 10) {
nameCnt++;
if (nameCnt >= 1000) {
nameCnt = 0;
}
var newEnemyName = ("car" + nameCnt);
_parent.whiteball.duplicateMovieClip(newEnemyName, nameCnt);
_parent[newEnemyName].onEnterFrame = this.move1;
_parent[newEnemyName]._x = ballx;
_parent[newEnemyName].speed_y = 2;
ballx = ballx + 50;
num2++;
}
}
if (rnd == 2) {
num2 = 0;
while (num2 < 10) {
nameCnt++;
if (nameCnt >= 1000) {
nameCnt = 0;
}
var newEnemyName = ("car" + nameCnt);
_parent.blackball.duplicateMovieClip(newEnemyName, nameCnt);
_parent[newEnemyName].onEnterFrame = this.move2;
_parent[newEnemyName]._x = ballx;
_parent[newEnemyName].speed_y = 2;
ballx = ballx + 50;
num2++;
}
}
_global.lock5 = 0;
}
rnd = Math.floor(Math.random() * 2) + 1;
if (rnd == 1) {
_parent.whiteball.duplicateMovieClip(newEnemyName, nameCnt);
_parent[newEnemyName].onEnterFrame = this.move1;
_parent[newEnemyName]._x = Math.floor(Math.random() * 550);
_parent[newEnemyName].speed_y = (Math.random() * 2) + 1;
} else if (rnd == 2) {
_parent.blackball.duplicateMovieClip(newEnemyName, nameCnt);
_parent[newEnemyName].onEnterFrame = this.move2;
_parent[newEnemyName]._x = Math.floor(Math.random() * 550);
_parent[newEnemyName].speed_y = (Math.random() * 2) + 1;
}
}
function move1() {
this._x = this._x + this.speed_x;
this._y = this._y + this.speed_y;
if (this._y >= 310) {
if ((_parent.player._x - this._x) > 0) {
this.speed_x = this.speed_y;
this.speed_y = 0;
} else {
this.speed_x = -this.speed_y;
this.speed_y = 0;
}
this._y = 309;
}
if (this._x > 570) {
this.removeMovieClip();
} else if (this._x < -20) {
this.removeMovieClip();
}
if (this.hitTest(_parent.player.white)) {
if (_global.tyen < 0) {
_global.tyen = 1;
} else if (_global.tyen >= 0) {
if (_global.tyen < 5) {
_global.tyen = _global.tyen + 1;
}
}
_parent.score.gotoAndPlay(2);
num = 0;
while (num < _global.tyen) {
_parent.Maxscore++;
_parent.soundObject3.start();
num++;
}
this.removeMovieClip();
}
if (this.hitTest(_parent.player.blackhit)) {
_root.soundObject2.stop();
_parent.gotoAndStop(4);
}
}
function move2() {
this._x = this._x + this.speed_x;
this._y = this._y + this.speed_y;
if (this._y >= 310) {
if ((_parent.player._x - this._x) > 0) {
this.speed_x = this.speed_y;
this.speed_y = 0;
} else {
this.speed_x = -this.speed_y;
this.speed_y = 0;
}
this._y = 309;
}
if (this._x > 570) {
this.removeMovieClip();
} else if (this._x < -20) {
this.removeMovieClip();
}
if (this.hitTest(_parent.player.black)) {
if (_global.tyen > 0) {
_global.tyen = -1;
} else if (_global.tyen <= 0) {
if (_global.tyen > -5) {
_global.tyen = _global.tyen - 1;
}
}
kazu = -_global.tyen;
_parent.score.gotoAndPlay(2);
num = 0;
while (num < kazu) {
_parent.Maxscore++;
_parent.soundObject3.start();
num++;
}
this.removeMovieClip();
}
if (this.hitTest(_parent.player.whitehit)) {
_root.soundObject2.stop();
_parent.gotoAndStop(4);
}
}
}
onClipEvent (enterFrame) {
makeTimer++;
if (_parent.Maxscore < 30) {
level = 150;
lock = 0;
} else if (_parent.Maxscore < 100) {
level = 100;
if (lock2 != 1) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 1;
}
} else if (_parent.Maxscore < 200) {
level = 70;
if (lock2 != 10) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 10;
}
} else if (_parent.Maxscore < 300) {
level = 50;
if (lock2 != 2) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 2;
}
} else if (_parent.Maxscore < 400) {
level = 40;
if (lock2 != 11) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 11;
}
} else if (_parent.Maxscore < 500) {
level = 30;
if (lock2 != 13) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 13;
}
} else if (_parent.Maxscore < 600) {
level = 25;
if (lock2 != 11) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 11;
}
} else if (_parent.Maxscore < 700) {
level = 20;
if (lock2 != 3) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 3;
}
} else if (_parent.Maxscore < 1000) {
level = 15;
if (lock2 != 4) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 4;
}
} else if (_parent.Maxscore < 2000) {
level = 10;
if (lock2 != 5) {
_parent.soundObject4.start();
_parent.levelup.play();
lock2 = 5;
}
}
if (makeTimer >= level) {
makeTimer = 0;
this.makeEnemyCar();
}
}
Instance of Symbol 58 MovieClip "rank" in Frame 3
onClipEvent (load) {
_parent.Maxscore = 0;
_global.tyen = 0;
}
onClipEvent (enterFrame) {
if (_global.tyen == 1) {
_parent.rank.gotoAndStop(7);
} else if (_global.tyen == 2) {
_parent.rank.gotoAndStop(8);
} else if (_global.tyen == 3) {
_parent.rank.gotoAndStop(9);
} else if (_global.tyen == 4) {
_parent.rank.gotoAndStop(10);
} else if (_global.tyen == 5) {
_parent.rank.gotoAndStop(11);
} else if (_global.tyen == 0) {
_parent.rank.gotoAndStop(6);
} else if (_global.tyen == -1) {
_parent.rank.gotoAndStop(5);
} else if (_global.tyen == -2) {
_parent.rank.gotoAndStop(4);
} else if (_global.tyen == -3) {
_parent.rank.gotoAndStop(3);
} else if (_global.tyen == -4) {
_parent.rank.gotoAndStop(2);
} else if (_global.tyen == -5) {
_parent.rank.gotoAndStop(1);
}
}
Frame 4
_global.lock5 = 1;
stop();
Symbol 32 Button
on (press) {
_root.soundObject1.stop();
gotoAndStop (3);
}
Symbol 38 MovieClip Frame 1
stop();
Instance of Symbol 37 MovieClip "whitehit" in Symbol 38 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _parent.player.black._x;
this._y = _parent.player.black._y;
}
Symbol 38 MovieClip Frame 2
stop();
Instance of Symbol 37 MovieClip "blackhit" in Symbol 38 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = _parent.player.black._x;
this._y = _parent.player.black._y;
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 3
stop();
Symbol 58 MovieClip Frame 4
stop();
Symbol 58 MovieClip Frame 5
stop();
Symbol 58 MovieClip Frame 6
stop();
Symbol 58 MovieClip Frame 7
stop();
Symbol 58 MovieClip Frame 8
stop();
Symbol 58 MovieClip Frame 9
stop();
Symbol 58 MovieClip Frame 10
stop();
Symbol 58 MovieClip Frame 11
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 68 Button
on (press) {
gotoAndStop (2);
}