Frame 11
Frame 12
stop();
Frame 15
stop();
Frame 16
stop();
Frame 18
stop();
Frame 21
stop();
Frame 25
Frame 27
Frame 30
stop();
Symbol 20 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (25);
}
Symbol 24 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (25);
}
Symbol 32 MovieClip Frame 1
((undefined <= b) > "c") || (0(false));
stop();
Symbol 32 MovieClip Frame 2
((undefined <= b) > "c") || (0(false));
stop();
Symbol 68 MovieClip Frame 1
stop();
Instance of Symbol 70 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
skalwert = random(5) + 5;
yscale = (random(3) + 1) * 10;
}
onClipEvent (enterFrame) {
_yscale = (_yscale - skalwert);
if (_yscale < 60) {
_yscale = 60;
skalwert = skalwert * -1;
} else if (_yscale > 100) {
_yscale = 100;
skalwert = skalwert * -1;
}
}
Instance of Symbol 42 MovieClip "hitter" in Symbol 41 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.race) {
if (((_parent._y > 80) and (_parent._y < 110)) and _parent._visible) {
if (_parent._parent._parent.bike.speed > 2) {
if (this.hitTest(_parent._parent._parent.bike.hitter)) {
if (_parent.ID < 4) {
_root.health = _root.health - Math.floor(_parent._parent._parent.bike.speed * 3);
_parent._parent._parent.stopsounds();
_parent._parent._parent.runter.start(0, 99);
_root.noise = 3;
_root.crash = true;
_parent._parent._parent.crash.setVolume(_parent._parent._parent.bike.speed * 15);
_parent._parent._parent.crash.start();
_parent._parent._parent.bike.speed = 1.5;
_parent._y = _parent.oldy;
} else if (_parent.ID == 4) {
_parent._parent._parent.sndbonus.start();
bonus = int(_parent._parent._parent.bike.speed * 100);
_parent.y = 0;
_root.bonus = _root.bonus + bonus;
_parent._visible = false;
}
} else if (this.hitTest(_parent._parent._parent.bike.hitter2)) {
if (_parent.ID < 4) {
_root.health = _root.health - Math.floor(_parent._parent._parent.bike.speed * 1.5);
_parent._parent._parent.stopsounds();
_parent._parent._parent.runter.start(0, 99);
_root.noise = 3;
_root.crash = true;
_parent._parent._parent.crash.setVolume(_parent._parent._parent.bike.speed * 15);
_parent._parent._parent.crash.start();
if (_parent._parent._parent.bike._x > _parent._x) {
_parent._parent._parent.bike.xspeed = _parent._parent._parent.bike.xspeed + _parent._parent._parent.bike.speed;
} else {
_parent._parent._parent.bike.xspeed = _parent._parent._parent.bike.xspeed - _parent._parent._parent.bike.speed;
}
} else if (_parent.ID == 4) {
_parent._parent._parent.sndbonus.start();
bonus = int(_parent._parent._parent.bike.speed * 100);
_parent.y = 0;
_root.bonus = _root.bonus + bonus;
_parent._visible = false;
}
}
}
}
}
}
Symbol 26 MovieClip Frame 1
((undefined <= b) > "c") || (0(false));
_root.autos = 10;
colr = 2;
i = 2;
while (i < _root.autos) {
car1.duplicateMovieClip("car" + i, 100 + i);
this["car" + i].ID = colr;
this["car" + i].wieoft = random(500) * i;
this["car" + i].speed = 2;
colr++;
if (colr > 4) {
colr = 1;
}
i++;
}
this.car1.ID = 1;
this.car1.wieoft = 1000;
this.car1.speed = 2;
Instance of Symbol 27 MovieClip "city" in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
y = _y;
}
onClipEvent (enterFrame) {
_y = (y - (_parent._parent.land._y / 2));
_x = (_parent.road._x / 2);
}
Instance of Symbol 30 MovieClip "road" in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
x = _x;
}
onClipEvent (enterFrame) {
x = x + (_parent._rotation / 10);
_x = x;
_parent.roadlinks._x = x - 50;
_parent.roadrechts._x = x + 50;
}
Instance of Symbol 32 MovieClip "roadlinks" in Symbol 26 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (100 + ((-_x) * 20));
if (_xscale < 0) {
if (_currentframe == 1) {
gotoAndStop (2);
if (!_root.offroad) {
_root.offroad = true;
_root.offstart = getTimer();
}
}
} else if (_currentframe == 2) {
gotoAndStop (1);
_root.offroad = false;
}
}
Instance of Symbol 32 MovieClip "roadrechts" in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_parent.roadlinks);
}
onClipEvent (enterFrame) {
_xscale = (100 + ((_x - 0) * 20));
if (_xscale < 0) {
if (_currentframe == 1) {
gotoAndStop (2);
if (!_root.offroad) {
_root.offroad = true;
_root.offstart = getTimer();
}
this.swapDepths(_parent.roadlinks);
}
} else if (_currentframe == 2) {
gotoAndStop (1);
_root.offroad = false;
this.swapDepths(_parent.roadlinks);
}
}
Instance of Symbol 35 MovieClip "baum" in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
function warten() {
startx = 80 + random(30);
wieoft = random(3000) + 3000;
x = _parent.road.x;
aktiv = false;
starttime = getTimer();
_visible = false;
}
starttime = getTimer();
x = _x;
startx = x;
wieoft = 2000;
normspeed = 0;
speed = 0;
y = 45;
aktiv = false;
_visible = false;
}
onClipEvent (enterFrame) {
jetzt = getTimer();
if (jetzt > (starttime + wieoft)) {
_visible = true;
aktiv = true;
}
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
warten();
} else if (y < 0.1) {
y = 100;
warten();
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 1) {
_alpha = (y * 100);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
function warten() {
wieoft = random(3000) + 3000;
x = _parent.road.x;
aktiv = false;
starttime = getTimer();
_visible = false;
}
starttime = getTimer();
x = 0;
startx = _x;
wieoft = 850;
normspeed = 0;
speed = 0;
y = 1;
aktiv = false;
_visible = false;
}
onClipEvent (enterFrame) {
jetzt = getTimer();
if (jetzt > (starttime + wieoft)) {
_visible = true;
aktiv = true;
}
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
warten();
} else if (y < 0.1) {
y = 100;
warten();
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 10) {
_alpha = (y * 10);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 39 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
starttime = getTimer();
x = 0;
startx = _x;
normspeed = 0;
speed = 0;
y = _y;
aktiv = true;
}
onClipEvent (enterFrame) {
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
} else if (y < 0.1) {
y = 100;
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 10) {
_alpha = (y * 10);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 39 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
starttime = getTimer();
x = 0;
startx = _x;
normspeed = 0;
speed = 0;
y = _y;
aktiv = true;
}
onClipEvent (enterFrame) {
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
} else if (y < 0.1) {
y = 100;
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 10) {
_alpha = (y * 10);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 39 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
starttime = getTimer();
x = 0;
startx = _x;
normspeed = 0;
speed = 0;
y = _y;
aktiv = true;
}
onClipEvent (enterFrame) {
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
} else if (y < 0.1) {
y = 100;
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 10) {
_alpha = (y * 10);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 39 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
starttime = getTimer();
x = 0;
startx = _x;
normspeed = 0;
speed = 0;
y = _y;
aktiv = true;
}
onClipEvent (enterFrame) {
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
} else if (y < 0.1) {
y = 100;
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 10) {
_alpha = (y * 10);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 41 MovieClip "car1" in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
function warten() {
startx = random(100) - 50;
if (y == 100) {
while (Math.abs(startx - _parent._parent.bike._x) < 20) {
startx = random(100) - 50;
}
}
x = _parent.road.x + (((_parent.road.x + startx) * y) / 8);
aktiv = false;
starttime = getTimer();
_visible = false;
}
framepos = (ID * 5) - 5;
starttime = getTimer();
x = 10;
startx = random(100) - 50;
y = 2;
aktiv = false;
_visible = false;
_root.cars = false;
gotoAndStop(1 + framepos);
warten();
}
onClipEvent (enterFrame) {
if (!_root.cars) {
starttime = getTimer();
}
if (_root.race and _root.cars) {
this.swapDepths(y * 100);
jetzt = getTimer();
if (!aktiv) {
if (jetzt > (starttime + wieoft)) {
_visible = true;
aktiv = true;
}
}
if (aktiv) {
rr = _parent._parent.bike._x;
if (((rr - 55) > _x) and ((rr - 80) < _x)) {
gotoAndStop(4 + framepos);
} else if (((rr + 55) < _x) and ((rr + 80) > _x)) {
gotoAndStop(2 + framepos);
} else if ((rr - 80) > _x) {
gotoAndStop(5 + framepos);
} else if ((rr + 55) < _x) {
gotoAndStop(3 + framepos);
} else {
gotoAndStop(1 + framepos);
}
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 8)) + startx;
if (y > 130) {
y = 1;
_parent._parent.basescore = _parent._parent.basescore + 50;
warten();
} else if (y < 1) {
if (ID < 4) {
y = 130;
_parent._parent.basescore = _parent._parent.basescore - 100;
if (_parent._parent.basescore < 0) {
_parent._parent.basescore = 0;
}
warten();
} else {
y = 1;
warten();
}
}
_yscale = ((y * 15) + 20);
_xscale = ((y * 15) + 20);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
oldy = _y;
}
} else {
this._visible = false;
}
}
Instance of Symbol 72 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
function warten() {
x = _parent.road.x;
aktiv = false;
starttime = getTimer();
_visible = false;
}
starttime = getTimer();
x = 0;
startx = _x;
wieoft = 3000;
normspeed = 0;
speed = 0;
y = 1;
aktiv = false;
_visible = false;
}
onClipEvent (enterFrame) {
jetzt = getTimer();
if (jetzt > (starttime + wieoft)) {
_visible = true;
aktiv = true;
}
if (aktiv) {
x = (_parent.road.x + (((_parent.road.x + startx) * y) / 10)) + startx;
if (y > 100) {
y = 0.1;
_root.gates--;
warten();
}
_yscale = ((y * 5) + 50);
_xscale = ((y * 5) + 50);
y = y + ((y * (_parent._parent.bike.speed - speed)) / 20);
_y = y;
_x = x;
if (y < 10) {
_alpha = (y * 10);
} else {
_alpha = 100;
}
}
}
Symbol 26 MovieClip Frame 2
((undefined <= b) > "c") || (0(false));
Symbol 26 MovieClip Frame 3
((undefined <= b) > "c") || (0(false));
Symbol 26 MovieClip Frame 4
((undefined <= b) > "c") || (0(false));
Symbol 26 MovieClip Frame 5
((undefined <= b) > "c") || (0(false));
Symbol 26 MovieClip Frame 6
((undefined <= b) > "c") || (0(false));
Symbol 26 MovieClip Frame 7
((undefined <= b) > "c") || (0(false));
Symbol 26 MovieClip Frame 8
((undefined <= b) > "c") || (0(false));
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 90
_root.race = true;
Symbol 111 Button
on (release, keyPress "<Enter>") {
_root.bonus = 0;
_root.health = 100;
_root.tacho = 0;
_root.gates = 25;
_root.cars = false;
basescore = 0;
healthscore = 0;
targetscore = 0;
points = 0;
dietext = "";
startsignal.gotoAndPlay(2);
_root.health = 100;
_root.bonus = 0;
gotoAndPlay(_currentframe + 1);
}
Symbol 114 Button
on (release, keyPress "<Enter>") {
_root.bonus = 0;
_root.health = 100;
_root.tacho = 0;
_root.gates = 25;
_root.cars = false;
basescore = 0;
healthscore = 0;
targetscore = 0;
points = 0;
dietext = "";
startsignal.gotoAndPlay(2);
_root.health = 100;
_root.bonus = 0;
gotoAndPlay(_currentframe + 1);
}
Symbol 132 Button
on (release, keyPress "<Enter>") {
_root.gotoandplay(25);
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 4
if (sent == "") {
gotoAndPlay(_currentframe - 1);
}
Symbol 136 MovieClip Frame 5
if (sent == "1") {
sendetext = "GESENDET";
} else {
sendetext = "Nicht gesendet";
}
Symbol 25 MovieClip Frame 1
crash = new Sound(bike);
crash.attachSound("crash");
sndbonus = new Sound();
sndbonus.attachSound("sndbonus");
_root.bonus = 0;
_root.health = 100;
_root.tacho = 0;
_root.gates = 25;
Instance of Symbol 26 MovieClip "land" in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
this.speed = 5;
y = _y;
targety = y;
}
onClipEvent (enterFrame) {
if (_parent.bike.speed > 3) {
if (targety != y) {
if (targety > y) {
y = y + 0.1;
} else {
y = y - 0.1;
}
if (Math.abs(targety - y) < 1) {
y = targety;
}
} else {
targety = random(50);
}
_y = y;
}
}
Instance of Symbol 78 MovieClip "bike" in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
function stopsound() {
_parent.los.stop();
_parent.hold.stop();
_parent.down.stop();
_parent.runter.stop();
}
speed = 0;
x = _x;
y = _y;
topspeed = 5;
}
onClipEvent (enterFrame) {
if (speed < 0.009) {
speed = 0;
}
if (_root.race) {
if (Key.isDown(37)) {
if (speed > 0.03) {
xspeed = xspeed - 0.5;
}
} else {
xspeed = xspeed / 1.06;
}
if (Key.isDown(39)) {
if (speed > 0.03) {
xspeed = xspeed + 0.5;
}
} else {
xspeed = xspeed / 1.06;
}
if (Key.isDown(38)) {
if ((_root.noise != 1) and (speed < 4.8)) {
stopsound();
_root.noise = 1;
_parent.los.start((speed * 2) + 0.5, 5);
}
if ((_root.noise != 2) and (speed > 4.8)) {
stopsound();
_root.noise = 2;
_parent.hold.start(0, 999);
}
speed = speed + (((topspeed - offspeed) - speed) / 100);
if (speed < 5) {
_y = (y - 5);
}
} else {
if ((_root.noise != 3) and (speed > 0.5)) {
stopsound();
_root.noise = 3;
_parent.runter.start(0, 99);
}
if ((_root.noise != 4) and (speed < 0.5)) {
stopsound();
_root.noise = 4;
_parent.down.start(0, 999);
}
if (speed > 0) {
speed = speed / 1.01;
}
}
if (Key.isDown(40)) {
_y = (y + 5);
speed = speed / 1.02;
}
if (_y > y) {
_y = (_y - 0.3);
} else if (_y < y) {
_y = (_y + 0.3);
}
_parent.land.road.x = _parent.land.road.x - xspeed;
_x = (x / 3);
if (_root.offroad) {
_root.health = _root.health - 0.1;
_root.health = Math.floor(_root.health * 10) / 10;
offroad = (random(4) - 2) * speed;
offspeed = 3;
} else {
offroad = 0;
offspeed = 0;
}
_parent.land._rotation = ((-xspeed) * 3) + offroad;
lenkerverdreh = ((xspeed * 5) / speed) + offroad;
if (Math.abs(lenkerverdreh) < 15) {
_rotation = lenkerverdreh;
}
_y = (_y + offroad);
if ((_y > (y + 5)) or (_y < (y - 5))) {
_y = y;
}
_parent.los.setVolume((speed * 10) + 50);
tacho = Math.floor(speed * 50);
if (tacho != oldtacho) {
_root.tacho = tacho;
oldtacho = tacho;
}
}
}
Instance of Symbol 93 MovieClip "health" in Symbol 25 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.health;
}
Symbol 25 MovieClip Frame 2
los = new Sound(snd);
los.attachSound("start");
hold = new Sound(snd);
hold.attachSound("hold");
runter = new Sound(snd);
runter.attachSound("runter");
down = new Sound(snd);
down.attachSound("down");
Symbol 25 MovieClip Frame 3
basescore = 0;
_root.bonus = 0;
stop();
Symbol 25 MovieClip Frame 4
if (_root.gates >= 0) {
if (0 >= _root.health) {
_root.health = 0;
_root.race = false;
bike.speed = 0;
gotoAndPlay (8);
}
} else {
_root.race = false;
bike.speed = 0;
gotoAndPlay (8);
}
if (!_root.cars) {
if (3 < bike.speed) {
_root.cars = true;
}
}
Symbol 25 MovieClip Frame 5
gotoAndPlay(_currentframe - 1);
Symbol 25 MovieClip Frame 9
healthscore = Math.floor(_root.health) * 100;
if (_root.gates > 0) {
targetscore = 0;
dietext = _root.gates.toString() + " Gate(s) left";
} else {
targetscore = 2500;
dietext = "";
}
totalscore = ((basescore + _root.bonus) + healthscore) + targetscore;
stopAllSounds();
points = totalscore;
bike._rotation = 0;
bike._x = 0;
bike._y = bike.y;
bike.xspeed = 0;
bike.x = 0;
land.road.x = 0;
land._rotation = 0;
Symbol 25 MovieClip Frame 12
Symbol 25 MovieClip Frame 23
Instance of Symbol 136 MovieClip "mailer" in Symbol 25 MovieClip Frame 30
on (release) {
if (_parent.totalscore >= 1) {
score = _parent.totalscore;
game_name = "speedbiker";
getURL ("newscore.php", "_self", "POST");
} else {
_root.gotoandplay(25);
}
}
Symbol 25 MovieClip Frame 50
stop();