Frame 1
ifFrameLoaded (85) {
gotoAndStop (5);
}
Frame 2
gotoAndPlay (1);
Frame 76
score = "0";
floatmiles = "10";
miles = "9";
tickets = "30";
crash = "0";
Frame 77
speed = "4" - (floatmiles / "5");
if (crash == "1") {
gotoAndPlay (81);
}
if (miles == "0") {
gotoAndStop (85);
}
if (signbeen <> "1") {
signbeen = "1";
tellTarget ("/pansigns") {
signspeed = "24" / ../:speed;
gotoAndPlay (3);
};
}
if (bmwbeen <> "1") {
bmwlane = random("4") + "4";
if ((bmwlane <> woodylane) and ((bmwlane <> beetlelane) or (random("3") == "0"))) {
if ((bmwlane == beetlelane) and ("200" < /beetle:Ypos)) {
bmwSpeedY = beetleSpeedY * "0.8";
} else {
bmwSpeedY = random(speed * "3") + (speed * "3");
}
bmwbeen = "1";
bmwSpeedX = bmwSpeedY * "0.55";
bmwStartpos = ((bmwlane - "4") * "65") + "10";
tellTarget ("/bmw") {
_x = ../:bmwStartpos;
gotoAndPlay (3);
};
}
}
if (woodybeen <> "1") {
woodybeen = "1";
woodylane = random("4") + "4";
woodySpeedY = random(speed) + speed;
woodySpeedX = woodySpeedY * "0.55";
woodyStartpos = ((woodylane - "4") * "65") + "10";
tellTarget ("/woody") {
_x = ../:woodyStartpos;
gotoAndPlay (3);
};
}
if (beetlebeen <> "1") {
beetlelane = random("4") + "4";
if (beetlelane <> woodylane) {
if ((beetlelane == bmwlane) and ("200" < /bmw:Ypos)) {
beetleSpeedY = bmwSpeedY * "0.75";
} else {
beetleSpeedY = random(speed * "2") + (speed * "2");
}
beetlebeen = "1";
beetletime = "0";
beetleSpeedX = beetleSpeedY * "0.55";
beetleStartpos = ((beetlelane - "4") * "65") + "10";
tellTarget ("/beetle") {
_x = ../:beetleStartpos;
gotoAndPlay (3);
};
}
}
Frame 78
gotoAndPlay (77);
Frame 81
tellTarget ("/van/vananimation") {
gotoAndStop (2);
};
tellTarget ("/van") {
gotoAndStop (2);
};
crashstart = "0";
Frame 83
crashstart = crashstart + "1";
if (crashstart < "50") {
gotoAndPlay (82);
} else {
gotoAndPlay (84);
}
Frame 85
stop();
if (hq == "0") {
toggleHighQuality();
}
tellTarget ("/van") {
gotoAndStop (2);
};
if (crash == "1") {
cash = (score - "50") - (floatmiles * "20");
if (cash < "0") {
tellTarget ("/results") {
gotoAndStop (1);
};
} else if ((cash < "100") and ("1" < tickets)) {
tellTarget ("/results") {
gotoAndStop (2);
};
} else if (tickets < "1") {
tellTarget ("/results") {
gotoAndStop (3);
};
} else {
tellTarget ("/results") {
gotoAndStop (4);
};
}
} else if (score < "100") {
tellTarget ("/results") {
gotoAndStop (5);
};
} else if (("100" < score) and (tickets < "1")) {
tellTarget ("/results") {
gotoAndStop (6);
};
} else {
tellTarget ("/results") {
gotoAndStop (7);
};
}
Symbol 10 Button
on (press) {
hq = "1";
gotoAndPlay (6);
}
Symbol 14 Button
on (press) {
hq = "0";
toggleHighQuality();
gotoAndPlay (6);
}
Symbol 17 Button
on (press) {
if (oilbeen <> "1") {
oilbeen = "1";
oilStartX = getProperty("/van", _x);
tellTarget ("/oil/oilanimation") {
gotoAndStop (2);
};
tellTarget ("/oil") {
_y = "65";
_x = ../:oilStartX;
gotoAndPlay (3);
};
}
}
Symbol 49 MovieClip Frame 23
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
startDrag ("", true, "215", "50", "445", "50");
Symbol 51 MovieClip Frame 2
stopDrag();
Symbol 52 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 6
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 8
Set("../:oilfin", "1");
stop();
Symbol 66 MovieClip Frame 1
stop();
tellTarget ("oilanimation") {
gotoAndStop (1);
};
_y = (-"50");
Set("../:oilbeen", "0");
Symbol 66 MovieClip Frame 3
if (../:oilhit == "1") {
Set("../:oilhit", "0");
tellTarget ("oilanimation") {
gotoAndPlay (3);
};
}
oilspeed = "24" / /:speed;
oilYpos = _y + oilspeed;
oilXpos = _x - (oilspeed * "0.55");
_y = oilYpos;
_x = oilXpos;
if ((oilYpos < "400") and (oilfin <> "1")) {
gotoAndPlay (2);
} else {
oilfin = "0";
gotoAndStop (1);
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
_y = "450";
Set("../:bmwbeen", "0");
tellTarget ("bmwanimation") {
colour = random("2") + "1";
gotoAndStop(colour);
}
Symbol 80 MovieClip Frame 3
Ypos = _y - ../:bmwSpeedY;
Xpos = _x + ../:bmwSpeedX;
_y = Ypos;
_x = Xpos;
Xoil = getProperty("../oil", _x) - Xpos;
Yoil = getProperty("../oil", _y) - Ypos;
if ((((Xoil < "40") and ((-"20") < Xoil)) and (Yoil < "20")) and ((-"30") < Yoil)) {
Set("../:score", ../:score + "5");
tellTarget ("bmwanimation") {
gotoAndStop(colour + "2");
};
Set("../:oilhit", "1");
gotoAndPlay (5);
}
Xcrash = getProperty("../van", _x) - Xpos;
Ycrash = getProperty("../van", _y) - Ypos;
if (((((Xcrash < "20") and ((-"20") < Xcrash)) and (Ycrash < "50")) and ((-"30") < Ycrash)) and (../:crash <> "1")) {
Set("../:crash", "1");
}
if ("0" < Ypos) {
gotoAndPlay (2);
} else {
if ((../:crash == "0") and ("0" < ../:miles)) {
Set("../:tickets", ../:tickets - "5");
if (../:tickets < "1") {
Set("../:tickets", "0");
}
}
gotoAndStop (1);
}
Symbol 80 MovieClip Frame 5
if ("10" < Xoil) {
spinDirection = -"20";
} else {
spinDirection = "20";
}
Xpos = _x + spinDirection;
_x = Xpos;
if ((Xpos < "500") and ("0" < Xpos)) {
gotoAndPlay (4);
} else {
gotoAndStop (1);
}
Symbol 86 MovieClip Frame 3
gotoAndPlay (1);
Symbol 87 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
_y = "450";
Set("../:woodybeen", "0");
tellTarget ("animation") {
colour = random("2") + "1";
gotoAndStop(colour);
}
Symbol 88 MovieClip Frame 3
Ypos = ((_y - ../:woodySpeedY) + "2.5") - random("6");
Xpos = ((_x + ../:woodySpeedX) + "1.5") - random("4");
_y = Ypos;
_x = Xpos;
Xoil = getProperty("../oil", _x) - Xpos;
Yoil = getProperty("../oil", _y) - Ypos;
if ((((Xoil < "40") and ((-"20") < Xoil)) and (Yoil < "20")) and ((-"30") < Yoil)) {
Set("../:score", ../:score + "3");
tellTarget ("animation") {
gotoAndStop(colour + "2");
};
Set("../:oilhit", "1");
gotoAndPlay (5);
}
Xcrash = getProperty("../van", _x) - Xpos;
Ycrash = getProperty("../van", _y) - Ypos;
if (((((Xcrash < "20") and ((-"20") < Xcrash)) and (Ycrash < "50")) and ((-"30") < Ycrash)) and (../:crash <> "1")) {
Set("../:crash", "1");
}
if ("0" < Ypos) {
gotoAndPlay (2);
} else {
if ((../:crash == "0") and ("0" < ../:miles)) {
Set("../:tickets", ../:tickets - "3");
if (../:tickets < "1") {
Set("../:tickets", "0");
}
}
gotoAndStop (1);
}
Symbol 88 MovieClip Frame 5
if ("10" < Xoil) {
spinDirection = -"20";
} else {
spinDirection = "20";
}
Xpos = _x + spinDirection;
_x = Xpos;
if ((Xpos < "500") and ("0" < Xpos)) {
gotoAndPlay (4);
} else {
gotoAndStop (1);
}
Symbol 94 MovieClip Frame 3
gotoAndPlay (1);
Symbol 95 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
_y = "450";
Set("../:beetlebeen", "0");
tellTarget ("animation") {
colour = random("4") + "1";
gotoAndStop(colour);
}
Symbol 96 MovieClip Frame 3
Ypos = _y - ../:beetleSpeedY;
Xpos = _x + ../:beetleSpeedX;
_y = Ypos;
_x = Xpos;
Xoil = getProperty("../oil", _x) - Xpos;
Yoil = getProperty("../oil", _y) - Ypos;
if ((((Xoil < "40") and ((-"20") < Xoil)) and (Yoil < "20")) and ((-"30") < Yoil)) {
Set("../:score", ../:score - "20");
tellTarget ("animation") {
gotoAndStop(colour + "4");
};
Set("../:oilhit", "1");
gotoAndPlay (5);
}
Xcrash = getProperty("../van", _x) - Xpos;
Ycrash = getProperty("../van", _y) - Ypos;
if (((((Xcrash < "20") and ((-"20") < Xcrash)) and (Ycrash < "50")) and ((-"30") < Ycrash)) and (../:crash <> "1")) {
Set("../:crash", "1");
}
if ("0" < Ypos) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 96 MovieClip Frame 5
if ("10" < Xoil) {
spinDirection = -"20";
} else {
spinDirection = "20";
}
Xpos = _x + spinDirection;
_x = Xpos;
if ((Xpos < "500") and ("0" < Xpos)) {
gotoAndPlay (4);
} else {
gotoAndStop (1);
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Set("../:floatmiles", ../:floatmiles - "0.2");
Set("../:miles", int(../:floatmiles));
_x = "580";
_y = (-"5");
tellTarget ("signcoll") {
gotoAndStop(random("2") + "1");
}
Symbol 102 MovieClip Frame 3
Ypos = _y + signspeed;
Xpos = _x - (signspeed * "0.55");
_y = Ypos;
_x = Xpos;
if (Ypos < "450") {
gotoAndPlay (2);
} else {
Set("../:signbeen", "0");
gotoAndStop (1);
}
Symbol 115 Button
on (release) {
getURL ("http://mohsye.com");
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 137 Button
on (press) {
tellTarget ("/van/vananimation") {
gotoAndStop (1);
};
tellTarget ("/van") {
gotoAndStop (1);
};
if (hq == "0") {
toggleHighQuality();
}
gotoAndPlay (76);
}