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 (release) {
nextFrame();
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
play();
Symbol 19 MovieClip Frame 5
gotoAndStop (1);
Symbol 21 Button
on (rollOver) {
startDrag ("board", true, "-51", "24", "52", "24");
}
on (rollOut) {
stopDrag();
}
Symbol 22 MovieClip Frame 1
pongScore = "0";
gotoAndPlay (5);
Symbol 22 MovieClip Frame 5
ballY = -"23";
ballX = random("100") - "50";
setProperty("ball", _y , ballY);
setProperty("ball", _x , ballX);
ballAngle = "0";
ballDirection = "3";
pongScore = "0";
gotoAndPlay (10);
Symbol 22 MovieClip Frame 9
play();
Symbol 22 MovieClip Frame 10
boardX = getProperty("board", _x);
ballX = ballX + ballAngle;
ballY = ballY + ballDirection;
if ((("57" < ballX) and (ballAngle >= "0")) or ((ballX < (-"57")) and (ballAngle < "0"))) {
ballX = ballX - (ballAngle * "2");
ballAngle = ballAngle * (-"1");
}
if ((ballDirection < "0") and (ballY == (-"23"))) {
ballY = ballY - ballDirection;
ballDirection = "3";
}
setProperty("ball", _x , ballX);
setProperty("ball", _y , ballY);
if (("0" < ballDirection) and (ballY == "19")) {
boardTest = ballX - boardX;
if (((-"8") < boardTest) and (boardTest < "8")) {
pongScore = pongScore + "1";
ballDirection = -"3";
ballAngle = (ballAngle + ((boardTest / "8") * "10")) / "2";
tellTarget ("sfx") {
gotoAndPlay (2);
};
if (pongScore == "1") {
tellTarget ("pongtext") {
gotoAndStop (2);
};
}
}
}
if (("0" < ballDirection) and (ballY == "31")) {
gotoAndPlay (5);
} else {
prevFrame();
}
Symbol 24 Button
on (release) {
nextFrame();
}
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
play();
Symbol 25 MovieClip Frame 10
stop();
Symbol 25 MovieClip Frame 11
play();
Symbol 25 MovieClip Frame 20
gotoAndStop (1);
Symbol 29 Button
on (press) {
hq = "1";
gotoAndPlay (6);
}
Symbol 33 Button
on (press) {
hq = "0";
toggleHighQuality();
gotoAndPlay (6);
}
Symbol 36 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 68 MovieClip Frame 23
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
startDrag ("", true, "215", "50", "445", "50");
Symbol 70 MovieClip Frame 2
stopDrag();
Symbol 71 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 6
stop();
Symbol 83 MovieClip Frame 4
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 8
Set("../:oilfin", "1");
stop();
Symbol 85 MovieClip Frame 1
stop();
tellTarget ("oilanimation") {
gotoAndStop (1);
};
_y = (-"50");
Set("../:oilbeen", "0");
Symbol 85 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 98 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
_y = "450";
Set("../:bmwbeen", "0");
tellTarget ("bmwanimation") {
colour = random("2") + "1";
gotoAndStop(colour);
}
Symbol 99 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 99 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 105 MovieClip Frame 3
gotoAndPlay (1);
Symbol 106 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
_y = "450";
Set("../:woodybeen", "0");
tellTarget ("animation") {
colour = random("2") + "1";
gotoAndStop(colour);
}
Symbol 107 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 107 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 113 MovieClip Frame 3
gotoAndPlay (1);
Symbol 114 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
_y = "450";
Set("../:beetlebeen", "0");
tellTarget ("animation") {
colour = random("4") + "1";
gotoAndStop(colour);
}
Symbol 115 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 115 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 120 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Set("../:floatmiles", ../:floatmiles - "0.2");
Set("../:miles", int(../:floatmiles));
_x = "580";
_y = (-"5");
tellTarget ("signcoll") {
gotoAndStop(random("2") + "1");
}
Symbol 121 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 134 Button
on (release) {
getURL ("http://mohsye.com");
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 155 Button
on (press) {
tellTarget ("/van/vananimation") {
gotoAndStop (1);
};
tellTarget ("/van") {
gotoAndStop (1);
};
if (hq == "0") {
toggleHighQuality();
}
gotoAndPlay (76);
}