Frame 1
fscommand ("fullscreen", "false");
fscommand ("showmenu", "false");
Frame 5
ifFrameLoaded (419) {
gotoAndPlay (11);
}
Frame 10
gotoAndPlay (5);
Frame 280
race_points = "0";
race_events = "0";
race_wins = "0";
race_finishtotal = "0";
race_avgfinish = "0";
stop();
Frame 281
stop();
Frame 314
gotoAndPlay (325);
Frame 315
stop();
Frame 319
stop();
Frame 320
loadVariablesNum ("http://www.uf3000.com/cgi-bin/5miles2go/pointstanding.pl", "0");
Frame 321
if (eval ("score_" add "1") <> "0") {
gotoAndStop (323);
}
Frame 322
gotoAndPlay (321);
Frame 323
num = "1";
view_name = "";
view_points = "";
view_events = "";
view_wins = "";
view_avgfinish = "";
while ("15" >= num) {
view_name = (view_name add eval ("name_" add num)) add "\r";
view_points = (view_points add eval ("score_" add num)) add "\r";
view_events = (view_events add eval ("events_" add num)) add "\r";
view_wins = (view_wins add eval ("wins_" add num)) add "\r";
view_avgfinish = (view_avgfinish add eval ("avgfinish_" add num)) add "\r";
num = num + "1";
}
stop();
Frame 324
stop();
Frame 325
FinishLine = "0";
OneMile2Go = "0";
Driver1Num = "0";
Driver2Num = "0";
Driver3Num = "0";
Driver4Num = "0";
Driver5Num = "0";
duplicateMovieClip ("/car1", "car2", "1");
duplicateMovieClip ("/car1", "car3", "2");
duplicateMovieClip ("/car1", "car4", "3");
DriverNum = "1";
while (DriverNum < "5") {
while (((((RanNum == Driver1Num) or (RanNum == Driver2Num)) or (RanNum == Driver3Num)) or (RanNum == Driver4Num)) or (RanNum == Driver5Num)) {
RanNum = random("14");
RanNum = RanNum + "1";
}
if (RanNum == "1") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (2);
};
Set("Driver" add DriverNum, "94 Bill Elliott");
} else if (RanNum == "2") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (3);
};
Set("Driver" add DriverNum, "03 Dale Earnhardt");
} else if (RanNum == "3") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (4);
};
Set("Driver" add DriverNum, "08 Dale Earnhardt Jr");
} else if (RanNum == "4") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (5);
};
Set("Driver" add DriverNum, "02 Rusty Wallace");
} else if (RanNum == "5") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (6);
};
Set("Driver" add DriverNum, "24 Jeff Gordon");
} else if (RanNum == "6") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (7);
};
Set("Driver" add DriverNum, "88 Dale Jarrett");
} else if (RanNum == "7") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (8);
};
Set("Driver" add DriverNum, "28 Ricky Rudd");
} else if (RanNum == "8") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (9);
};
Set("Driver" add DriverNum, "99 Jeff Burton");
} else if (RanNum == "9") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (10);
};
Set("Driver" add DriverNum, "18 Bobby Labonte");
} else if (RanNum == "10") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (11);
};
Set("Driver" add DriverNum, "05 Terry Labonte");
} else if (RanNum == "11") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (12);
};
Set("Driver" add DriverNum, "06 Mark Martin");
} else if (RanNum == "12") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (13);
};
Set("Driver" add DriverNum, "12 Jeremy Mayfield");
} else if (RanNum == "13") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (14);
};
Set("Driver" add DriverNum, "20 Tony Steward");
} else if (RanNum == "14") {
tellTarget (("/car" add DriverNum) add "/car") {
gotoAndStop (15);
};
Set("Driver" add DriverNum, "17 Matt Kenseth");
}
Set(("Driver" add DriverNum) add "Num", RanNum);
DriverNum = DriverNum + "1";
}
Driver5 = "38 " add driver_name;
Frame 326
call("SetCarOrder");
while (RanNum == "5") {
call("SetCarOrder");
}
p1 = "car" add RanNum;
Place1 = eval ("Driver" add RanNum);
call("SetCarOrder");
while ((("car" add RanNum) eq p1) or (RanNum == "5")) {
call("SetCarOrder");
}
p5 = "car" add RanNum;
Place5 = eval ("Driver" add RanNum);
call("SetCarOrder");
while ((("car" add RanNum) eq p1) or (("car" add RanNum) eq p5)) {
call("SetCarOrder");
}
p2 = "car" add RanNum;
Place2 = eval ("Driver" add RanNum);
call("SetCarOrder");
while (((("car" add RanNum) eq p1) or (("car" add RanNum) eq p2)) or (("car" add RanNum) eq p5)) {
call("SetCarOrder");
}
p3 = "car" add RanNum;
Place3 = eval ("Driver" add RanNum);
call("SetCarOrder");
while ((((("car" add RanNum) eq p1) or (("car" add RanNum) eq p2)) or (("car" add RanNum) eq p3)) or (("car" add RanNum) eq p5)) {
call("SetCarOrder");
}
p4 = "car" add RanNum;
Place4 = eval ("Driver" add RanNum);
Frame 327
setProperty(p1, _x , "80");
setProperty(p2, _x , "190");
setProperty(p3, _x , "300");
setProperty(p4, _x , "410");
setProperty(p5, _x , "520");
setProperty(p5, _y , "225");
setProperty(p4, _y , "225");
setProperty(p3, _y , "225");
setProperty(p2, _y , "225");
setProperty(p1, _y , "225");
setProperty("/YourCar", _x , getProperty("/car5", _x));
stop();
Frame 328
race_events = race_events + "1";
tellTarget ("/Meters/Tenth") {
play();
};
tellTarget ("/car1") {
play();
};
tellTarget ("/car2") {
play();
};
tellTarget ("/car3") {
play();
};
tellTarget ("/car4") {
play();
}
Frame 329
PCount = "1";
while ("5" >= PCount) {
ThisCar = "/" add eval ("p" add PCount);
call("DraftFromFront");
PCount = PCount + "1";
}
PCount = "5";
while ("1" < PCount) {
ThisCar = "/" add eval ("p" add PCount);
call("AddDraftSpeed1");
PCount = PCount - "1";
}
PCount = "1";
while (PCount < "5") {
ThisCar = "/" add eval ("p" add PCount);
call("AddDraftSpeed2");
PCount = PCount + "1";
}
Set("/car1/:TotalDraft", /car1/:FrontDraft + /car1/:RearDraft);
Set("/car2/:TotalDraft", /car2/:FrontDraft + /car2/:RearDraft);
Set("/car3/:TotalDraft", /car3/:FrontDraft + /car3/:RearDraft);
Set("/car4/:TotalDraft", /car4/:FrontDraft + /car4/:RearDraft);
Set("/car5/:TotalDraft", /car5/:FrontDraft + /car5/:RearDraft);
Frame 330
CarCount = "1";
while (CarCount < "5") {
TheCar = "/car" add CarCount;
CarInFront = eval (TheCar add "/:FrontLink");
CarInFront1 = eval (TheCar add "/:FrontLink1");
CarBehind = eval (TheCar add "/:RearLink");
CarBehind1 = eval (TheCar add "/:RearLink1");
if (((-eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft) < "0") {
if (CarInFront ne "0") {
if ((((getProperty(CarInFront, _x) + (getProperty(CarInFront, _width) / "2")) < ((getProperty(TheCar, _x) - (getProperty(TheCar, _width) / "2")) - "5")) or (((getProperty(TheCar, _y) + (getProperty(TheCar, _height) / "2")) + "2") < (getProperty(CarInFront, _y) - (getProperty(CarInFront, _height) / "2")))) or ((getProperty(CarInFront, _y) + (getProperty(CarInFront, _height) / "2")) < ((getProperty(TheCar, _y) - (getProperty(TheCar, _height) / "2")) - "2"))) {
if (CarInFront1 ne "0") {
if ((((getProperty(CarInFront1, _x) + (getProperty(CarInFront1, _width) / "2")) < ((getProperty(TheCar, _x) - (getProperty(TheCar, _width) / "2")) - "5")) or (((getProperty(TheCar, _y) + (getProperty(TheCar, _height) / "2")) + "2") < (getProperty(CarInFront1, _y) - (getProperty(CarInFront1, _height) / "2")))) or ((getProperty(CarInFront1, _y) + (getProperty(CarInFront1, _height) / "2")) < ((getProperty(TheCar, _y) - (getProperty(TheCar, _height) / "2")) - "2"))) {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
} else {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
}
} else if (CarInFront1 ne "0") {
if ((((getProperty(CarInFront1, _x) + (getProperty(CarInFront1, _width) / "2")) < ((getProperty(TheCar, _x) - (getProperty(TheCar, _width) / "2")) - "5")) or (((getProperty(TheCar, _y) + (getProperty(TheCar, _height) / "2")) + "2") < (getProperty(CarInFront1, _y) - (getProperty(CarInFront1, _height) / "2")))) or ((getProperty(CarInFront1, _y) + (getProperty(CarInFront1, _height) / "2")) < ((getProperty(TheCar, _y) - (getProperty(TheCar, _height) / "2")) - "2"))) {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
} else {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
} else if ("0" < ((-eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft)) {
if (CarInBehind ne "0") {
if (((((getProperty(TheCar, _x) + (getProperty(TheCar, _width) / "2")) + "5") < (getProperty(CarBehind, _x) - (getProperty(CarBehind, _width) / "2"))) or (((getProperty(TheCar, _y) + (getProperty(TheCar, _height) / "2")) + "2") < (getProperty(CarBehind, _y) - (getProperty(CarBehind, _height) / "2")))) or ((getProperty(CarBehind, _y) + (getProperty(CarBehind, _height) / "2")) < ((getProperty(TheCar, _y) - (getProperty(TheCar, _height) / "2")) - "2"))) {
if (CarInBehind1 ne "0") {
if (((((getProperty(TheCar, _x) + (getProperty(TheCar, _width) / "2")) + "5") < (getProperty(CarBehind1, _x) - (getProperty(CarBehind1, _width) / "2"))) or (((getProperty(TheCar, _y) + (getProperty(TheCar, _height) / "2")) + "2") < (getProperty(CarBehind1, _y) - (getProperty(CarBehind1, _height) / "2")))) or ((getProperty(CarBehind1, _y) + (getProperty(CarBehind1, _height) / "2")) < ((getProperty(TheCar, _y) - (getProperty(TheCar, _height) / "2")) - "2"))) {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
} else {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
}
} else if (CarInBehind1 ne "0") {
if (((((getProperty(TheCar, _x) + (getProperty(TheCar, _width) / "2")) + "5") < (getProperty(CarBehind1, _x) - (getProperty(CarBehind1, _width) / "2"))) or (((getProperty(TheCar, _y) + (getProperty(TheCar, _height) / "2")) + "2") < (getProperty(CarBehind1, _y) - (getProperty(CarBehind1, _height) / "2")))) or ((getProperty(CarBehind1, _y) + (getProperty(CarBehind1, _height) / "2")) < ((getProperty(TheCar, _y) - (getProperty(TheCar, _height) / "2")) - "2"))) {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
} else {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
} else {
setProperty(TheCar, _x , (getProperty(TheCar, _x) - eval (TheCar add "/:TotalDraft")) + /car5/:TotalDraft);
}
CarCount = CarCount + "1";
}
PCount2 = "1";
while (PCount2 < "5") {
if (getProperty(eval ("p" add (PCount2 + "1")), _x) < getProperty(eval ("p" add PCount2), _x)) {
Temp = eval ("p" add PCount2);
Set("p" add PCount2, eval ("p" add (PCount2 + "1")));
Set("p" add (PCount2 + "1"), Temp);
TempDriverName = eval ("Place" add PCount2);
Set("Place" add PCount2, eval ("Place" add (PCount2 + "1")));
Set("Place" add (PCount2 + "1"), TempDriverName);
}
PCount2 = PCount2 + "1";
}
Frame 331
if ("3" >= /car5/:TotalDraft) {
tellTarget ("/Speedometer") {
gotoAndPlay ("Speed123");
};
} else if (("3" < /car5/:TotalDraft) and (/car5/:TotalDraft < "6")) {
tellTarget ("/Speedometer") {
gotoAndPlay ("Speed45");
};
} else {
tellTarget ("/Speedometer") {
gotoAndPlay ("Speed678");
};
}
Frame 334
if (getProperty("/FinishLine", _x) < "0") {
gotoAndPlay (329);
} else {
play();
}
Frame 336
tellTarget ("/car1") {
stop();
};
tellTarget ("/car2") {
stop();
};
tellTarget ("/car3") {
stop();
};
tellTarget ("/car4") {
stop();
}
Frame 354
stop();
Frame 358
removeMovieClip("/car2");
removeMovieClip("/car3");
removeMovieClip("/car4");
Frame 359
stopAllSounds();
Frame 369
if (race_events == "5") {
loadVariablesNum ("http://www.uf3000.com/cgi-bin/5miles2go/pointstanding.pl", "0", "POST");
}
gotoAndStop (319);
Frame 374
RanNum = random("5");
RanNum = RanNum + "1";
Frame 384
FrontLink = ThisCar add "/:FrontLink";
FrontLink1 = ThisCar add "/:FrontLink1";
RearLink = ThisCar add "/:RearLink";
RearLink1 = ThisCar add "/:RearLink1";
TotalDraft = ThisCar add "/:TotalDraft";
FrontDraft = ThisCar add "/:FrontDraft";
RearDraft = ThisCar add "/:RearDraft";
DraftAmount = ThisCar add "/:DraftAmount";
Set(FrontLink, "0");
Set(FrontLink1, "0");
Set(RearLink, "0");
Set(RearLink1, "0");
Set(TotalDraft, "0");
Set(FrontDraft, "0");
Set(RearDraft, "0");
Set(DraftAmount, "0");
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
CarPositionCount = "0";
if (((getProperty(ThisCar, _x) - "200") < getProperty(CarNum, _x)) and (getProperty(CarNum, _x) < (getProperty(ThisCar, _x) - "175"))) {
CarPositionCount = CarPositionCount + "1";
} else if ((getProperty(CarNum, _x) >= (getProperty(ThisCar, _x) - "175")) and (getProperty(CarNum, _x) < (getProperty(ThisCar, _x) - "150"))) {
CarPositionCount = CarPositionCount + "2";
} else if ((getProperty(CarNum, _x) >= (getProperty(ThisCar, _x) - "150")) and (getProperty(CarNum, _x) < (getProperty(ThisCar, _x) - "125"))) {
CarPositionCount = CarPositionCount + "3";
} else if ((getProperty(CarNum, _x) >= (getProperty(ThisCar, _x) - "125")) and (getProperty(CarNum, _x) < getProperty(ThisCar, _x))) {
CarPositionCount = CarPositionCount + "4";
}
if (("7" >= (getProperty(CarNum, _y) - getProperty(ThisCar, _y))) and ((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) >= (-"7"))) {
CarPositionCount = CarPositionCount + "4";
} else if ((("14" >= (getProperty(CarNum, _y) - getProperty(ThisCar, _y))) and ("7" < (getProperty(CarNum, _y) - getProperty(ThisCar, _y)))) or (((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) >= (-"14")) and ((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) < (-"7")))) {
CarPositionCount = CarPositionCount + "3";
} else if ((("21" >= (getProperty(CarNum, _y) - getProperty(ThisCar, _y))) and ("14" < (getProperty(CarNum, _y) - getProperty(ThisCar, _y)))) or (((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) >= (-"21")) and ((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) < (-"14")))) {
CarPositionCount = CarPositionCount + "2";
} else if ((("28" >= (getProperty(CarNum, _y) - getProperty(ThisCar, _y))) and ("21" < (getProperty(CarNum, _y) - getProperty(ThisCar, _y)))) or (((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) >= (-"28")) and ((getProperty(CarNum, _y) - getProperty(ThisCar, _y)) < (-"21")))) {
CarPositionCount = CarPositionCount + "1";
}
if (CarPositionCount == "5") {
Set(FrontLink, CarNum);
Set(DraftAmount, "1");
} else if (CarPositionCount == "6") {
Set(FrontLink, CarNum);
Set(DraftAmount, "2");
} else if (CarPositionCount == "7") {
Set(FrontLink, CarNum);
Set(DraftAmount, "3");
} else if (CarPositionCount == "8") {
Set(FrontLink, CarNum);
Set(DraftAmount, "4");
}
CountCars = CountCars + "1";
}
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((getProperty(CarNum, _y) >= (getProperty(ThisCar, _y) - "35")) and ((getProperty(ThisCar, _y) + "35") >= getProperty(CarNum, _y))) and ((getProperty(ThisCar, _x) - "180") < getProperty(CarNum, _x))) and (getProperty(CarNum, _x) < getProperty(ThisCar, _x))) {
TempLink = CarNum;
if (TempLink ne eval (FrontLink)) {
Set(FrontLink1, CarNum);
}
}
CountCars = CountCars + "1";
}
Frame 395
DraftPassed = "None";
FrontDraft = eval (ThisCar add "/:FrontLink") add "/:FrontDraft";
FrontDraft1 = eval (ThisCar add "/:FrontLink") add ("/:FrontDraft" add PCount);
DraftAmount = ThisCar add "/:DraftAmount";
RearLink = eval (ThisCar add "/:FrontLink") add "/:RearLink";
RearLink1 = eval (ThisCar add "/:FrontLink1") add "/:RearLink1";
Set(RearLink, ThisCar);
Set(RearLink1, ThisCar);
if (eval (DraftAmount) == "4") {
Set(FrontDraft, eval (FrontDraft) + "2");
Set(FrontDraft1, "2");
DraftPassed = "Four";
} else if (eval (DraftAmount) == "3") {
Set(FrontDraft, eval (FrontDraft) + "1.5");
Set(FrontDraft1, "1.5");
DraftPassed = "Three";
} else if (eval (DraftAmount) == "2") {
Set(FrontDraft, eval (FrontDraft) + "1");
Set(FrontDraft1, "1");
DraftPassed = "Two";
} else if (eval (DraftAmount) == "1") {
Set(FrontDraft, eval (FrontDraft) + "0.5");
Set(FrontDraft1, "0.5");
DraftPassed = "One";
}
ThisCar = eval (ThisCar add "/:FrontLink");
while (ThisCar ne "0") {
FrontDraft2 = eval (ThisCar add "/:FrontLink") add ("/:FrontDraft" add PCount);
FrontDraft = eval (ThisCar add "/:FrontLink") add "/:FrontDraft";
DraftAmount = ThisCar add "/:DraftAmount";
if ((eval (DraftAmount) == "4") and (DraftPassed eq "Four")) {
Set(FrontDraft, eval (FrontDraft) + "2");
Set(FrontDraft2, "2");
DraftPassed = "Four";
} else if (((eval (DraftAmount) == "4") and (DraftPassed eq "Three")) or ((eval (DraftAmount) == "3") and (DraftPassed eq "Four"))) {
Set(FrontDraft, eval (FrontDraft) + "1.5");
Set(FrontDraft2, "1.5");
DraftPassed = "Three";
} else if ((((eval (DraftAmount) == "4") and (DraftPassed eq "Two")) or ((eval (DraftAmount) == "3") and (DraftPassed eq "Three"))) or ((eval (DraftAmount) == "2") and (DraftPassed eq "Four"))) {
Set(FrontDraft, eval (FrontDraft) + "1");
Set(FrontDraft2, "1");
DraftPassed = "Two";
} else if (((((eval (DraftAmount) == "4") and (DraftPassed eq "One")) or ((eval (DraftAmount) == "3") and (DraftPassed eq "Two"))) or ((eval (DraftAmount) == "2") and (DraftPassed eq "Three"))) or ((eval (DraftAmount) == "1") and (DraftPassed eq "Four"))) {
Set(FrontDraft, eval (FrontDraft) + "0.5");
Set(FrontDraft2, "0.5");
DraftPassed = "One";
} else {
DraftPassed = "None";
}
ThisCar = eval (ThisCar add "/:FrontLink");
}
Frame 407
DraftPassed = "None";
RearDraft = eval (ThisCar add "/:RearLink") add "/:RearDraft";
RearDraft1 = eval (ThisCar add "/:RearLink") add ("/:RearDraft" add PCount);
DraftAmount = eval (ThisCar add "/:RearLink") add "/:DraftAmount";
RearLink = eval (ThisCar add "/:RearLink") add "/:RearLink";
if (DraftAmount ne "0/:DraftAmount") {
if (eval (DraftAmount) == "4") {
Set(RearDraft, eval (RearDraft) + "2");
Set(RearDraft1, "2");
DraftPassed = "Four";
} else if (eval (DraftAmount) == "3") {
Set(RearDraft, eval (RearDraft) + "1.5");
Set(RearDraft1, "1.5");
DraftPassed = "Three";
} else if (eval (DraftAmount) == "2") {
Set(RearDraft, eval (RearDraft) + "1");
Set(RearDraft1, "1");
DraftPassed = "Two";
} else if (eval (DraftAmount) == "1") {
Set(RearDraft, eval (RearDraft) + "0.5");
Set(RearDraft1, "0.5");
DraftPassed = "One";
}
}
ThisCar = eval (ThisCar add "/:RearLink");
while (ThisCar ne "0") {
RearDraft2 = eval (ThisCar add "/:RearLink") add ("/:RearDraft" add PCount);
RearDraft = eval (ThisCar add "/:RearLink") add "/:RearDraft";
DraftAmount = eval (ThisCar add "/:RearLink") add "/:DraftAmount";
if ((eval (DraftAmount) == "4") and (DraftPassed eq "Four")) {
Set(RearDraft, eval (RearDraft) + "2");
Set(RearDraft2, "2");
DraftPassed = "Four";
} else if (((eval (DraftAmount) == "4") and (DraftPassed eq "Three")) or ((eval (DraftAmount) == "3") and (DraftPassed eq "Four"))) {
Set(RearDraft, eval (RearDraft) + "1.5");
Set(RearDraft2, "1.5");
DraftPassed = "Three";
} else if ((((eval (DraftAmount) == "4") and (DraftPassed eq "Two")) or ((eval (DraftAmount) == "3") and (DraftPassed eq "Three"))) or ((eval (DraftAmount) == "2") and (DraftPassed eq "Four"))) {
Set(RearDraft, eval (RearDraft) + "1");
Set(RearDraft2, "1");
DraftPassed = "Two";
} else if (((((eval (DraftAmount) == "4") and (DraftPassed eq "One")) or ((eval (DraftAmount) == "3") and (DraftPassed eq "Two"))) or ((eval (DraftAmount) == "2") and (DraftPassed eq "Three"))) or ((eval (DraftAmount) == "1") and (DraftPassed eq "Four"))) {
Set(RearDraft, eval (RearDraft) + "0.5");
Set(RearDraft2, "0.5");
DraftPassed = "One";
} else {
DraftPassed = "None";
}
ThisCar = eval (ThisCar add "/:RearLink");
}
Symbol 85 Button
on (keyPress "<Right>") {
asd = "asd";
}
on (keyPress "<Left>") {
asd = "asd";
}
on (keyPress "<Enter>") {
asd = "asd";
}
Symbol 89 Button
on (release) {
nextFrame();
}
Symbol 96 Button
on (release) {
getURL ("http://www.uf3000.com", "_blank");
}
Symbol 101 Button
on (release) {
stopAllSounds();
play();
}
Symbol 103 Button
on (release) {
gotoAndStop (315);
}
Symbol 105 Button
on (release) {
gotoAndStop (319);
}
Symbol 107 Button
on (release) {
gotoAndStop (324);
}
Symbol 110 Button
on (release) {
gotoAndStop (280);
}
Symbol 111 Button
on (keyPress "<Right>") {
asd = "asd";
}
on (keyPress "<Left>") {
asd = "asd";
}
on (keyPress "<Enter>") {
asd = "asd";
}
on (keyPress "q") {
toggleHighQuality();
}
on (keyPress "Q") {
toggleHighQuality();
}
Symbol 121 Button
on (release) {
gotoAndStop (317);
}
Symbol 124 Button
on (release) {
gotoAndStop (318);
}
Symbol 127 Button
on (release) {
gotoAndStop (316);
}
Symbol 140 Button
on (release) {
gotoAndStop (281);
}
Symbol 142 Button
on (release) {
gotoAndStop (315);
}
Symbol 188 Button
on (release) {
play();
}
Symbol 190 Button
on (release) {
if (race_events < "5") {
gotoAndStop (281);
} else {
gotoAndStop (280);
}
}
Symbol 196 Button
on (release) {
gotoAndStop (319);
}
Symbol 218 Button
on (release) {
if (race_events < "10") {
gotoAndStop (281);
} else {
gotoAndStop (280);
}
}
Symbol 222 MovieClip Frame 1
if ((/:FinishLine == "1") and (getProperty("/FinishLine", _x) < "670")) {
setProperty("/FinishLine", _x , getProperty("/FinishLine", _x) + "100");
}
Symbol 222 MovieClip Frame 2
if ((/:FinishLine == "1") and (getProperty("/FinishLine", _x) < "670")) {
setProperty("/FinishLine", _x , getProperty("/FinishLine", _x) + "100");
}
Symbol 222 MovieClip Frame 3
if ((/:FinishLine == "1") and (getProperty("/FinishLine", _x) < "670")) {
setProperty("/FinishLine", _x , getProperty("/FinishLine", _x) + "100");
}
Symbol 231 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
PassDownCount = "0";
PassUpCount = "0";
Passing = "0";
PassRight = "0";
PassLeft = "0";
Alone = "0";
MergeRight = "0";
MergeLeft = "0";
Symbol 232 MovieClip Frame 2
if (Passing == "1") {
call("PassHim");
} else if (Alone == "1") {
if ((reardraft <> "0") or (frontdraft <> "0")) {
Alone = "0";
MergeRight = "0";
MergeLeft = "0";
} else if ((RearLink1 ne "0") and (FrontLink1 eq "0")) {
if (MergeRight == "1") {
call("GoUp2");
} else {
call("GoDown2");
}
} else if (RearLink1 eq "0") {
if (MergeRight == "1") {
call("GoUp");
} else {
call("GoDown");
}
}
} else if ((Passing == "0") and (Alone == "0")) {
if ((reardraft < "2") and ("0" < frontdraft)) {
call("DraftFromBehind");
} else if (("0" < reardraft) and (frontdraft < "2")) {
call("DraftFromFront");
} else if ((reardraft == "2") and (frontdraft >= "2")) {
if (/:OneMile2Go == "0") {
Choice = random("15");
if (Choice == "0") {
call("PassHim");
} else {
call("DraftFromBehind");
}
} else {
Choice = random("15");
if (Choice == "0") {
call("DraftFromBehind");
} else {
call("PassHim");
}
}
} else if ((("2" < reardraft) and ("4" >= reardraft)) and ("3" < frontdraft)) {
if (/:OneMile2Go == "0") {
Choice = random("2");
if (Choice == "0") {
call("DraftFromFront");
} else {
call("PassHim");
}
} else {
Choice = random("15");
if (Choice == "0") {
call("PassHim");
} else {
call("DraftFromFront");
}
}
} else if (((reardraft == "0") and (frontdraft == "0")) and (RearLink1 ne "0")) {
Alone = "1";
if (getProperty(RearLink1, _y) < _y) {
MergeRight = "1";
call("GoUp2");
} else {
MergeLeft = "1";
call("GoDown2");
}
} else {
call("DraftFromFront");
}
}
Symbol 232 MovieClip Frame 3
gotoAndPlay (2);
Symbol 232 MovieClip Frame 11
if ("1" < (getProperty(FrontLink, _y) - _y)) {
call("GoDown");
} else if ((getProperty(FrontLink, _y) - _y) < (-"1")) {
call("GoUp");
}
Symbol 232 MovieClip Frame 22
if ("4" < (getProperty(RearLink, _y) - _y)) {
call("GoDown2");
} else if ((getProperty(RearLink, _y) - _y) < (-"4")) {
call("GoUp2");
}
Symbol 232 MovieClip Frame 34
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < ((_x - (_width / "2")) - "2")) or (((_x + (_width / "2")) + "2") < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or (((_y + (_height / "2")) + "6") < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < _y)) and ("390" >= (_y + "2"))) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
Set("Free" add (substring(_name, "4", "2")), "1");
if (((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) and (Free5 == "1")) {
_y = (_y + "2");
}
Symbol 232 MovieClip Frame 42
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < (_x - (_width / "2"))) or (((_x + (_width / "2")) + "2") < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < ((_y - (_height / "2")) - "6"))) or (_y < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) and ((_y - "2") >= "190")) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
Set("Free" add (substring(_name, "4", "2")), "1");
if (((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) and (Free5 == "1")) {
_y = (_y - "2");
}
Symbol 232 MovieClip Frame 48
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < ((_x - (_width / "2")) - "2")) or (((_x + (_width / "2")) + "2") < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or (((_y + (_height / "2")) + "3") < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < _y)) and ("390" >= (_y + "2"))) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
Set("Free" add (substring(_name, "4", "2")), "1");
if (((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) and (Free5 == "1")) {
_y = (_y + "1");
}
Symbol 232 MovieClip Frame 57
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < (_x - (_width / "2"))) or (((_x + (_width / "2")) + "2") < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < ((_y - (_height / "2")) - "3"))) or (_y < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) and ((_y - "2") >= "190")) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
Set("Free" add (substring(_name, "4", "2")), "1");
if (((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) and (Free5 == "1")) {
_y = (_y - "1");
}
Symbol 232 MovieClip Frame 64
Passing = "1";
if ((PassLeft == "0") and (PassRight == "0")) {
if ((getProperty(FrontLink, _y) >= "230") and (_y < getProperty(FrontLink, _y))) {
call("PassUp");
} else if (("350" >= getProperty(FrontLink, _y)) and (getProperty(FrontLink, _y) < _y)) {
call("PassDown");
} else if (getProperty(FrontLink, _y) < "260") {
call("PassDown");
} else {
call("PassUp");
}
} else if ((PassLeft == "0") and (PassRight == "1")) {
if ((getProperty(FrontLink, _y) < (_y - "20")) and ("350" >= getProperty(FrontLink, _y))) {
call("PassDown");
} else {
call("PassUp");
}
} else if ((PassLeft == "1") and (PassRight == "0")) {
if (((_y + "20") < getProperty(FrontLink, _y)) and (getProperty(FrontLink, _y) >= "230")) {
call("PassUp");
} else {
call("PassDown");
}
}
if ("55" < PassDownCount) {
call("PassUp");
} else if ("55" < PassUpCount) {
call("PassDown");
}
Symbol 232 MovieClip Frame 72
PassLeft = "1";
PassRight = "0";
PassUpCount = "0";
PassDownCount = PassDownCount + "1";
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < ((_x - (_width / "2")) - "2")) or (((_x + (_width / "2")) + "2") < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or (((_y + (_height / "2")) + "6") < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < _y)) and ("390" >= (_y + "2"))) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
Set("Free" add (substring(_name, "4", "2")), "1");
if (((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) and (Free5 == "1")) {
_y = (_y + "2");
} else {
Passing = "0";
PassDownCount = "0";
PassUpCount = "0";
PassLeft = "0";
PassRight = "0";
}
if (FrontLink eq "0") {
if ((((_y + (_height / "2")) + "10") < (getProperty(FrontLink1, _y) - (getProperty(FrontLink1, _height) / "2"))) or ((getProperty(FrontLink1, _y) + (getProperty(FrontLink1, _height) / "2")) < ((_y - (_height / "2")) - "10"))) {
Passing = "0";
PassDownCount = "0";
PassUpCount = "0";
PassLeft = "0";
PassRight = "0";
}
}
Symbol 232 MovieClip Frame 81
PassDownCount = "0";
PassRight = "1";
PassLeft = "0";
PassUpCount = PassUpCount + "1";
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < (_x - (_width / "2"))) or (((_x + (_width / "2")) + "2") < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < ((_y - (_height / "2")) - "6"))) or (_y < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) and ((_y - "2") >= "190")) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
Set("Free" add (substring(_name, "4", "2")), "1");
if (((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) and (Free5 == "1")) {
_y = (_y - "2");
} else {
Passing = "0";
PassDownCount = "0";
PassUpCount = "0";
PassLeft = "0";
PassRight = "0";
}
if (FrontLink eq "0") {
if ((((_y + (_height / "2")) + "10") < (getProperty(FrontLink1, _y) - (getProperty(FrontLink1, _height) / "2"))) or ((getProperty(FrontLink1, _y) + (getProperty(FrontLink1, _height) / "2")) < ((_y - (_height / "2")) - "10"))) {
Passing = "0";
PassDownCount = "0";
PassUpCount = "0";
PassLeft = "0";
PassRight = "0";
}
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 237 Button
on (keyPress "<Down>") {
asd = "asd";
}
on (keyPress "<Up>") {
asd = "asd";
}
Symbol 248 MovieClip Frame 3
gotoAndPlay (1);
Symbol 248 MovieClip Frame 6
gotoAndPlay (4);
Symbol 248 MovieClip Frame 9
gotoAndPlay (7);
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 20
stop();
Symbol 252 MovieClip Frame 40
stop();
Symbol 252 MovieClip Frame 60
stop();
Symbol 252 MovieClip Frame 80
stop();
Set("/:OneMile2Go", "1");
Symbol 252 MovieClip Frame 100
stop();
Symbol 254 MovieClip Frame 1
stop();
MilesLeft = "5";
Symbol 254 MovieClip Frame 2
tellTarget ("/Meters/Miles") {
play();
}
Symbol 254 MovieClip Frame 145
if (MilesLeft == "1") {
Set("/:FinishLine", "1");
}
Symbol 254 MovieClip Frame 150
MilesLeft = MilesLeft - "1";
if ("0" < MilesLeft) {
gotoAndPlay (2);
} else {
stop();
tellTarget ("/TV") {
play();
};
}
Symbol 281 MovieClip Frame 40
_x = "-100";
stop();
Symbol 330 MovieClip Frame 50
tellTarget ("_level0") {
play();
}
Symbol 330 MovieClip Frame 101
stop();
Symbol 330 MovieClip Frame 102
play();
Symbol 330 MovieClip Frame 136
if (/:p1 eq "car5") {
FinishedPosition = "1ST!";
Set("/:race_finishtotal", /:race_finishtotal + "1");
Set("/:race_points", /:race_points + "800");
Set("/:race_wins", /:race_wins + "1");
} else if (/:p2 eq "car5") {
FinishedPosition = "2ND!";
Set("/:race_finishtotal", /:race_finishtotal + "2");
Set("/:race_points", /:race_points + "500");
} else if (/:p3 eq "car5") {
FinishedPosition = "3RD!";
Set("/:race_finishtotal", /:race_finishtotal + "3");
Set("/:race_points", /:race_points + "300");
} else if (/:p4 eq "car5") {
FinishedPosition = "4TH!";
Set("/:race_finishtotal", /:race_finishtotal + "4");
Set("/:race_points", /:race_points + "200");
} else if (/:p5 eq "car5") {
FinishedPosition = "5TH!";
Set("/:race_finishtotal", /:race_finishtotal + "5");
Set("/:race_points", /:race_points + "100");
}
Set("/:race_avgfinish", /:race_finishtotal / /:race_events);
Set("/:race_avgfinish", int(/:race_avgfinish * "100") / "100");
Symbol 330 MovieClip Frame 200
tellTarget ("_level0") {
play();
};
stop();
Symbol 332 Button
on (keyPress "<Down>") {
CountCars = "1";
while ("5" >= CountCars) {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < (getProperty("/car5", _x) - (getProperty("/car5", _width) / "2"))) or ((getProperty("/car5", _x) + (getProperty("/car5", _width) / "2")) < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or (((getProperty("/car5", _y) + (getProperty("/car5", _height) / "2")) + "6") < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < getProperty("/car5", _y))) and ("390" >= (getProperty("/car5", _y) + "2"))) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
if ((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) {
setProperty("/car5", _y , getProperty("/car5", _y) + "2");
}
}
on (keyPress "<Up>") {
CountCars = "1";
while (CountCars < "5") {
CarNum = "/car" add CountCars;
if ((((((getProperty(CarNum, _x) + (getProperty(CarNum, _width) / "2")) < (getProperty("/car5", _x) - (getProperty("/car5", _width) / "2"))) or ((getProperty("/car5", _x) + (getProperty("/car5", _width) / "2")) < (getProperty(CarNum, _x) - (getProperty(CarNum, _width) / "2")))) or ((getProperty(CarNum, _y) + (getProperty(CarNum, _height) / "2")) < ((getProperty("/car5", _y) - (getProperty("/car5", _height) / "2")) - "6"))) or (getProperty("/car5", _y) < (getProperty(CarNum, _y) - (getProperty(CarNum, _height) / "2")))) and ((getProperty("/car5", _y) - "2") >= "190")) {
Set("Free" add CountCars, "1");
} else {
Set("Free" add CountCars, "0");
}
CountCars = CountCars + "1";
}
if ((((Free1 == "1") and (Free2 == "1")) and (Free3 == "1")) and (Free4 == "1")) {
setProperty("/car5", _y , getProperty("/car5", _y) - "2");
}
}