Frame 1
numb = "";
i = 0;
while (i < pop.length) {
if (pop.substr(i, 1) != ",") {
numb = numb add pop.substr(i, 1);
}
i++;
}
total = numb;
killed = 0;
Frame 25
stop();
Frame 26
prevFrame();
Symbol 12 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 1
_root.drive = false;
if (Key.isDown(37) and (0 < _x)) {
_x = (_x - speed_left);
speed_left++;
_root.drive = true;
} else {
speed_left = 3;
}
if (Key.isDown(39) and (_x < 755)) {
_x = (_x + speed_right);
speed_right++;
_root.drive = true;
} else {
speed_right = 3;
}
if (_root.drive == true) {
red.gotoAndStop(1);
} else {
red.gotoAndStop(2);
}
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 18 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 19 MovieClip Frame 1
stop();
Symbol 21 Button
on (press) {
gotoAndStop (3);
}
Symbol 23 MovieClip Frame 1
_parent._y = _parent._y + _parent.y_speed;
_parent._x = _parent._x + _parent.x_speed;
if (_parent._y < -50) {
_parent.gotoAndStop("reset");
}
Symbol 23 MovieClip Frame 2
gotoAndPlay (1);
Symbol 24 MovieClip Frame 6
stop();
Symbol 26 MovieClip Frame 1
if (init != true) {
init = true;
init_y = _y;
destin_x = random(755);
speed = random(6) + 5;
}
if (_x >= (destin_x + speed)) {
_x = (_x - speed);
} else if ((destin_x - speed) >= _x) {
_x = (_x + speed);
} else {
destin_x = random(755);
swf.gotoAndStop("jump");
}
if (((_root.drive == true) and ((_root.bus._x - 90) < _x)) and (_x < (_root.bus._x + 90))) {
gotoAndStop (3);
}
Symbol 26 MovieClip Frame 2
gotoAndPlay (1);
Symbol 26 MovieClip Frame 3
y_speed = -8;
x_speed = random(20) - 10;
_root.numb--;
_root.killed++;
commanum = "";
num = "";
num = String(_root.numb).split(".");
if (num.length == 2) {
commanum = "." + num[1];
}
if (3 < length(num[0])) {
commanum = String(num[0]).substr(length(num[0]) - 3, 3) + commanum;
digit = length(num[0]) - 6;
while (digit >= 0) {
commanum = (String(num[0]).substr(digit, 3) + ",") + commanum;
digit = digit - 3;
}
if (-3 < digit) {
commanum = (String(num[0]).substr(0, digit + 3) + ",") + commanum;
}
} else {
commanum = num[0] + commanum;
}
_root.pop = commanum;
Symbol 26 MovieClip Frame 4
init = false;
_y = init_y;
if (random(2) == 1) {
_x = 780;
} else {
_x = -30;
}
if (_root.killed < _root.total) {
gotoAndPlay (1);
} else {
_root.gotoAndStop("ending");
}