Frame 1
ifFrameLoaded (28) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
holescore1 = "0";
holescore2 = "0";
holescore3 = "0";
holescore4 = "0";
holescore5 = "0";
stop();
Frame 5
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 15
stop();
Frame 19
Set("/:windspeed", random("5"));
if (/:windspeed == "0") {
Set("/windflag:windspeeds", "5");
tellTarget ("/windflag") {
gotoAndStop (1);
};
} else if (/:windspeed == "1") {
Set("/windflag:windspeeds", "3");
tellTarget ("/windflag") {
gotoAndStop (1);
};
} else if (/:windspeed == "2") {
Set("/windflag:windspeeds", "3");
tellTarget ("/windflag") {
gotoAndStop (2);
};
} else if (/:windspeed == "3") {
Set("/windflag:windspeeds", "5");
tellTarget ("/windflag") {
gotoAndStop (2);
};
} else {
Set("/windflag:windspeeds", "0");
tellTarget ("/windflag") {
gotoAndStop (1);
};
}
transx1 = "0";
Set("/:ballinhole", "0");
Set("/:distancetohole", "360");
transy1 = "0";
transx2 = "1.8";
transy2 = "3.5";
transx3 = "3.5";
transy3 = "7";
transx4 = "5.3";
transy4 = "10.8";
transx5 = "6.3";
transy5 = "14";
transx6 = "7.7";
transy6 = "17.5";
transx7 = "9.5";
transy7 = "20.8";
transx8 = "11.2";
transy8 = "24.3";
transx9 = "12.5";
transy9 = "27.7";
transx10 = "14";
transy10 = "30.7";
transx11 = "15";
transy11 = "34.7";
transx12 = "15.7";
transy12 = "37.8";
transx13 = "17.3";
transy13 = "41.3";
transx14 = "18.2";
transy14 = "44.3";
transx15 = "18.5";
transy15 = "47.7";
transx16 = "18.5";
transy16 = "50.5";
transx17 = "17.5";
transy17 = "54.3";
transx18 = "9.3";
transy18 = "41.3";
transx19 = "4";
transy19 = "18.3";
transx20 = "0";
transy20 = "0";
markerx = "192";
markery = "327";
strokes = "0";
maintoflag = "162.3";
quadrant = "1";
rotation = "0";
mainballx = "189.6";
mainbally = "325.6";
facing = "1";
finished = "0";
ballx = "0";
bally = "184.5";
holex = "0";
holey = "0";
flagflag = "0";
sin0 = "0";
cos0 = "1";
sin1 = "0.0175";
cos1 = "0.9998";
sin2 = "0.0349";
cos2 = "0.9994";
sin3 = "0.0523";
cos3 = "0.9986";
sin4 = "0.0698";
cos4 = "0.9976";
sin5 = "0.0872";
cos5 = "0.9962";
sin6 = "0.1045";
cos6 = "0.9945";
sin7 = "0.1219";
cos7 = "0.9925";
sin8 = "0.1392";
cos8 = "0.9903";
sin9 = "0.1564";
cos9 = "0.9877";
sin10 = "0.1736";
cos10 = "0.9848";
sin11 = "0.1908";
cos11 = "0.9816";
sin12 = "0.2079";
cos12 = "0.9781";
sin13 = "0.225";
cos13 = "0.9744";
sin14 = "0.2419";
cos14 = "0.9703";
sin15 = "0.2588";
cos15 = "0.9659";
sin16 = "0.2756";
cos16 = "0.9613";
sin17 = "0.2924";
cos17 = "0.9563";
sin18 = "0.309";
cos18 = "0.9511";
sin19 = "0.3256";
cos19 = "0.9455";
sin20 = "0.342";
cos20 = "0.9397";
sin21 = "0.3584";
cos21 = "0.9336";
sin22 = "0.3746";
cos22 = "0.9272";
sin23 = "0.3907";
cos23 = "0.9205";
sin24 = "0.4067";
cos24 = "0.9135";
sin25 = "0.4226";
cos25 = "0.9063";
sin26 = "0.4384";
cos26 = "0.8988";
sin27 = "0.454";
cos27 = "0.891";
sin28 = "0.4695";
cos28 = "0.8829";
sin29 = "0.4848";
cos29 = "0.8746";
sin30 = "0.5";
cos30 = "0.866";
sin31 = "0.515";
cos31 = "0.8572";
sin32 = "0.5299";
cos32 = "0.848";
sin33 = "0.5446";
cos33 = "0.8387";
sin34 = "0.5592";
cos34 = "0.829";
sin35 = "0.5736";
cos35 = "0.8192";
sin36 = "0.5878";
cos36 = "0.809";
sin37 = "0.6018";
cos37 = "0.7986";
sin38 = "0.6157";
cos38 = "0.788";
sin39 = "0.6293";
cos39 = "0.7771";
sin40 = "0.6428";
cos40 = "0.766";
sin41 = "0.6561";
cos41 = "0.7547";
sin42 = "0.6691";
cos42 = "0.7431";
sin43 = "0.682";
cos43 = "0.7314";
sin44 = "0.6947";
cos44 = "0.7193";
sin45 = "0.7071";
cos45 = "0.7071";
sin46 = "0.7193";
cos46 = "0.6947";
sin47 = "0.7314";
cos47 = "0.682";
sin48 = "0.7431";
cos48 = "0.6691";
sin49 = "0.7547";
cos49 = "0.6561";
sin50 = "0.766";
cos50 = "0.6428";
sin51 = "0.7771";
cos51 = "0.6293";
sin52 = "0.788";
cos52 = "0.6157";
sin53 = "0.7986";
cos53 = "0.6018";
sin54 = "0.809";
cos54 = "0.5878";
sin55 = "0.8192";
cos55 = "0.5736";
sin56 = "0.829";
cos56 = "0.5592";
sin57 = "0.8387";
cos57 = "0.5446";
sin58 = "0.848";
cos58 = "0.5299";
sin59 = "0.8572";
cos59 = "0.515";
sin60 = "0.866";
cos60 = "0.5";
sin61 = "0.8746";
cos61 = "0.4848";
sin62 = "0.8829";
cos62 = "0.4695";
sin63 = "0.891";
cos63 = "0.454";
sin64 = "0.8988";
cos64 = "0.4384";
sin65 = "0.9063";
cos65 = "0.4226";
sin66 = "0.9135";
cos66 = "0.4067";
sin67 = "0.4067";
cos67 = "0.4067";
sin68 = "0.9272";
cos68 = "0.3746";
sin69 = "0.9336";
cos69 = "0.3584";
sin70 = "0.9397";
cos70 = "0.342";
sin71 = "0.9455";
cos71 = "0.3256";
sin72 = "0.9511";
cos72 = "0.309";
sin73 = "0.9563";
cos73 = "0.2924";
sin74 = "0.9613";
cos74 = "0.2756";
sin75 = "0.9659";
cos75 = "0.2588";
sin76 = "0.9703";
cos76 = "0.2419";
sin77 = "0.9744";
cos77 = "0.225";
sin78 = "0.9781";
cos78 = "0.2079";
sin79 = "0.9816";
cos79 = "0.1908";
sin80 = "0.9848";
cos80 = "0.1736";
sin81 = "0.9877";
cos81 = "0.1564";
sin82 = "0.9903";
cos82 = "0.1392";
sin83 = "0.9925";
cos83 = "0.1219";
sin84 = "0.9945";
cos84 = "0.1045";
sin85 = "0.9962";
cos85 = "0.0872";
sin86 = "0.9976";
cos86 = "0.0698";
sin87 = "0.9986";
cos87 = "0.0523";
sin88 = "0.9994";
cos88 = "0.0349";
sin89 = "0.9998";
cos89 = "0.0175";
sin90 = "1";
cos90 = "0";
Frame 23
stop();
Frame 24
if ("0" < ballhit) {
anglesin = eval ("sin" add int(/:angle));
anglecos = eval ("cos" add int(/:angle));
bally = bally - (((anglecos * distance) / "20") * facing);
setProperty("/coursetop/golfball", _y , bally);
ballx = ballx - ((((anglesin * distance) / "20") * horiz) * facing);
setProperty("/coursetop/golfball", _x , ballx);
mainanglesin = eval ("sin" add int(/:nonperspective_angle));
mainanglecos = eval ("cos" add int(/:nonperspective_angle));
if ("40" < /:club) {
markerx = markerx + ((/:mainballdirection * (mainanglesin * /:maindistance)) / "20");
setProperty("/marker", _x , markerx - (/:mainballdirection * eval ("transx" add /:markercounter)));
markery = markery - ((mainanglecos * /:maindistance) / "20");
setProperty("/marker", _y , markery - eval ("transy" add /:markercounter));
if (/:horizonflag == "0") {
setProperty("/marker", _xscale , "40" - int(travelled / "6.2"));
setProperty("/marker", _yscale , "40" - int(travelled / "6.2"));
} else {
setProperty("/marker", _xscale , ("20" - /:markercounter) * "2");
setProperty("/marker", _yscale , ("20" - /:markercounter) * "2");
}
setProperty("/shadowmarker", _x , markerx);
setProperty("/shadowmarker", _y , markery);
if (/:horizonflag == "0") {
setProperty("/shadowmarker", _xscale , "40" - int(travelled / "6.3"));
setProperty("/shadowmarker", _yscale , "40" - int(travelled / "6.3"));
} else {
setProperty("/shadowmarker", _xscale , ("20" - /:markercounter) * "2");
setProperty("/shadowmarker", _yscale , ("20" - /:markercounter) * "2");
}
inholecounter = "1";
} else if (/:ballinhole < "1") {
markerx = markerx + ((/:mainballdirection * (mainanglesin * /:maindistance)) / "20");
setProperty("/marker", _x , markerx);
markery = markery - ((mainanglecos * /:maindistance) / "20");
setProperty("/marker", _y , markery);
setProperty("/shadowmarker", _x , markerx);
setProperty("/shadowmarker", _y , markery);
inholecounter = "1";
} else {
setProperty("/marker", _x , markerx + (("191" - markerx) / "3"));
setProperty("/marker", _y , markery + (((getProperty("/thehole", _y) - "3") - markery) / "3"));
setProperty("/shadowmarker", _x , markerx + (("191" - markerx) / "3"));
setProperty("/shadowmarker", _y , markery + (((getProperty("/thehole", _y) - "3") - markery) / "3"));
inholecounter = inholecounter + "1";
}
if ((((((bally < "0.5") and ((-"0.5") < bally)) and (ballx < "0.5")) and ((-"0.5") < ballx)) and (distance < "50")) and (/:club < "41")) {
mytempresult = (/:playername add " : ") add /:strokes;
Set("/:ballinhole", "1");
}
if (inholecounter >= "3") {
setProperty("/marker", _y , getProperty("/marker", _y) - "1");
setProperty("/coursetop/golfball", _alpha , "0");
setProperty("/marker", _alpha , "0");
setProperty("/shadowmarker", _alpha , "0");
if (inholecounter >= "4") {
tellTarget ("/coursetop/ballinhole") {
gotoAndPlay (2);
};
tellTarget ("/messagebox") {
gotoAndStop (2);
};
finished = "0";
gotoAndStop (23);
}
}
Set("/:markercounter", /:markercounter + "1");
travelled = travelled + (distance / "20");
if ((travelled >= distance) and (/:ballinhole < "1")) {
finished = "0";
if (((/:whichhole == "4") or (/:whichhole == "5")) or (/:whichhole == "2")) {
if (bally == "0") {
bally = "1";
}
rotmyangle2 = "0";
rotoppoveradj2 = ballx / bally;
if (rotoppoveradj2 < "0") {
rotoppoveradj2 = rotoppoveradj2 * (-"1");
}
rotexitloop2 = "0";
while ((rotmyangle2 < "90") and (rotexitloop2 < "1")) {
rotmytan2 = eval ("sin" add rotmyangle2) / eval ("cos" add rotmyangle2);
if (rotoppoveradj2 < rotmytan2) {
Set("/:rotation2", rotmyangle2);
rotexitloop2 = "1";
}
rotmyangle2 = rotmyangle2 + "1";
}
yfromhole2 = bally;
if (yfromhole2 == "0") {
yfromhole2 = "1";
}
xfromhole2 = ballx;
if (xfromhole2 == "0") {
xfromhole2 = "1";
}
if (bally < "0") {
yfromhole2 = bally * (-"1");
}
if (ballx < "0") {
xfromhole2 = ballx * (-"1");
}
if (/:rotation2 < "45") {
Set("/:altdd2", (yfromhole2 / eval ("cos" add /:rotation2)) * "2");
} else {
Set("/:altdd2", (xfromhole2 / eval ("sin" add /:rotation2)) * "2");
}
if (((("190" >= /:altdd2) and (/:altdd2 >= "100")) and (/:whichhole == "2")) and ("9" >= int(/:rotation2))) {
setProperty("/marker", _alpha , "0");
Set("/:ballx", prevballx);
Set("/:bally", prevbally);
setProperty("/coursetop/golfball", _x , ballx);
setProperty("/coursetop/golfball", _y , bally);
tellTarget ("/splash") {
gotoAndPlay (2);
};
}
if ((/:whichhole == "5") and ("48" < /:altdd2)) {
if ((("190" >= /:altdd2) and (/:altdd2 >= "100")) and (int(/:rotation2) < "9")) {
} else {
setProperty("/marker", _alpha , "0");
Set("/:ballx", prevballx);
Set("/:bally", prevbally);
setProperty("/coursetop/golfball", _x , ballx);
setProperty("/coursetop/golfball", _y , bally);
tellTarget ("/splash") {
gotoAndPlay (2);
};
}
}
if ((("100" >= /:altdd2) and ("48" < /:altdd2)) and (/:whichhole == "4")) {
setProperty("/marker", _alpha , "0");
Set("/:ballx", prevballx);
Set("/:bally", prevbally);
setProperty("/coursetop/golfball", _x , ballx);
setProperty("/coursetop/golfball", _y , bally);
tellTarget ("/splash") {
gotoAndPlay (2);
};
}
}
y = ((bally - holey) * (bally - holey)) + ((ballx - holex) * (ballx - holex));
a = "0.5" * (y + "1");
if (a < "1") {
b = "2";
} else {
b = "0.5";
}
c = "0";
while (c < "14") {
c = c + "1";
a = "0.5" * (a + (y * b));
t = b * ("2" - (a * b));
if ("0" < t) {
b = t;
} else {
b = b * "0.5";
}
}
Set("/:distancetohole", int(a * "2"));
}
}
Frame 25
if ("0" < finished) {
gotoAndPlay (24);
} else {
Set("/:maintoflag", "162.3");
tellTarget ("/thehole") {
gotoAndStop (1);
};
tellTarget ("/flag") {
gotoAndStop (1);
};
if (bally < holey) {
facing = -"1";
} else {
facing = "1";
}
yfromhole = bally;
if (yfromhole == "0") {
yfromhole = "1";
}
if (bally == "0") {
bally = "1";
}
xfromhole = ballx;
if (xfromhole == "0") {
xfromhole = "1";
}
if (ballx == "0") {
ballx = "1";
}
if (bally < "0") {
yfromhole = bally * (-"1");
}
if (ballx < "0") {
xfromhole = ballx * (-"1");
}
if (xfromhole < ("50" * (bally / "184"))) {
mag = "184" / bally;
} else {
mag = "50" / ballx;
}
if (mag < "0") {
mag = mag * (-"1");
}
if ("2" < mag) {
mag = "2";
}
if ("0" >= bally) {
setProperty("/coursetop", _y , "11.8" - (bally * mag));
} else {
setProperty("/coursetop", _y , "11.8");
}
setProperty("/coursetop", _yscale , "100" * mag);
setProperty("/coursetop", _xscale , "100" * mag);
rotmyangle = "0";
rotoppoveradj = ballx / bally;
if (rotoppoveradj < "0") {
rotoppoveradj = rotoppoveradj * (-"1");
}
rotexitloop = "0";
while ((rotmyangle < "90") and (rotexitloop < "1")) {
rotmytan = eval ("sin" add rotmyangle) / eval ("cos" add rotmyangle);
if (rotoppoveradj < rotmytan) {
Set("/:rotation", rotmyangle);
rotexitloop = "1";
}
rotmyangle = rotmyangle + "1";
}
if (bally >= "0") {
if (/:ballx >= "0") {
setProperty("/maincircle/circle3/circle2", _rotation , /:rotation);
setProperty("/sky2", _x , "284" + ("420" * (/:rotation / "90")));
} else {
setProperty("/maincircle/circle3/circle2", _rotation , /:rotation * (-"1"));
setProperty("/sky2", _x , "284" - ("420" * (/:rotation / "90")));
}
} else if (/:ballx >= "0") {
setProperty("/maincircle/circle3/circle2", _rotation , "90" + ("90" - /:rotation));
setProperty("/sky2", _x , ("284" + "420") + ("420" * (/:rotation / "90")));
} else {
setProperty("/maincircle/circle3/circle2", _rotation , ("90" + ("90" - /:rotation)) * (-"1"));
setProperty("/sky2", _x , ("284" + "420") - ("420" * (/:rotation / "90")));
}
if (/:rotation < "45") {
Set("/:altdd", (yfromhole / eval ("cos" add /:rotation)) * "2");
} else {
Set("/:altdd", (xfromhole / eval ("sin" add /:rotation)) * "2");
}
if (/:distancetohole < /:altdd) {
Set("/:distancetohole", int(/:altdd));
}
magflag = "360" - /:distancetohole;
setProperty("/flag", _xscale , "36" + (magflag / "3"));
setProperty("/flag", _yscale , "36" + (magflag / "3"));
magad = "360" - /:distancetohole;
setProperty("/sky2/advert", _xscale , "36" + (magflag / "3"));
setProperty("/sky2/advert", _yscale , "36" + (magflag / "3"));
setProperty("/sky2/ad2", _xscale , "36" + (magflag / "3"));
setProperty("/sky2/ad2", _yscale , "36" + (magflag / "3"));
if (/:bally >= "0") {
if (getProperty("/flag", _rotation) == "180") {
setProperty("/flag", _xscale , ((("36" + (magflag / "3")) + "3") - ((("36" + (magflag / "3")) * /:rotation) / "90")) * (-"1"));
Set("/:flagflag", "0");
} else {
setProperty("/flag", _xscale , (("36" + (magflag / "3")) + "3") - ((("36" + (magflag / "3")) * /:rotation) / "90"));
}
} else if (/:flagflag < "1") {
setProperty("/flag", _xscale , ((("36" + (magflag / "3")) + "3") - ((("36" + (magflag / "3")) * /:rotation) / "90")) * (-"1"));
Set("/:flagflag", "1");
} else {
setProperty("/flag", _xscale , (("36" + (magflag / "3")) + "3") - ((("36" + (magflag / "3")) * /:rotation) / "90"));
}
magflag = "360" - /:distancetohole;
if (/:distancetohole < "100") {
multiplyerforclose = ("100" - /:distancetohole) / "10";
addon = "10";
if ((/:distancetohole < "100") and ("54" < /:distancetohole)) {
addon = multiplyerforclose + "200";
}
if (/:distancetohole < "40") {
setProperty("/thehole", _y , "165.5" + (("40" - /:distancetohole) * "3.5"));
Set("/:maintoflag", "155" - (("40" - /:distancetohole) * "3.5"));
tellTarget ("/thehole") {
gotoAndStop (2);
};
tellTarget ("/flag") {
gotoAndStop (2);
};
} else {
Set("/:maintoflag", "162.3");
}
multiplyerforclose = ((multiplyerforclose * multiplyerforclose) * multiplyerforclose) * multiplyerforclose;
magflag = (("360" - /:distancetohole) + multiplyerforclose) + addon;
}
if (((/:ballx >= "0") and ("1" >= /:ballx)) and (/:bally == "184.5")) {
} else {
setProperty("/maincircle", _xscale , "80.5" + magflag);
setProperty("/maincircle", _yscale , "80.5" + magflag);
}
Set("/:ddd", magflag);
if ("40" < /:club) {
tellTarget ("/thomas") {
gotoAndStop (1);
};
} else {
tellTarget ("/thomas") {
gotoAndStop (15);
};
}
if ((((((("0" < ballx) and ("0" < bally)) and ("15" < rotmyangle)) and (rotmyangle < "38")) and ("60" < /:distancetohole)) and (/:distancetohole < "75")) and (/:whichhole < "3")) {
Set("/:insand", "1");
} else if ((((((((ballx < "0") and ("0" < bally)) and ("24" < rotmyangle)) and (rotmyangle < "52")) and ("54" < /:distancetohole)) and (/:distancetohole < "78")) and (/:whichhole < "4")) and ("1" < /:whichhole)) {
Set("/:insand", "1");
} else if ((((("0" < bally) and (rotmyangle < "6")) and ("90" < /:distancetohole)) and (/:distancetohole < "295")) and (/:whichhole == "3")) {
Set("/:insand", "1");
} else {
Set("/:insand", "0");
}
setProperty("/marker", _x , "192");
setProperty("/marker", _alpha , "100");
setProperty("/marker", _xscale , "40");
setProperty("/shadowmarker", _xscale , "40");
setProperty("/shadowmarker", _x , "192");
setProperty("/marker", _y , "327");
setProperty("/marker", _yscale , "40");
setProperty("/shadowmarker", _yscale , "40");
setProperty("/shadowmarker", _y , "327");
setProperty("/shadowmarker", _alpha , "38");
gotoAndStop (23);
}
Frame 33
gotoAndPlay (1);
Symbol 2 Button
on (release) {
getURL ("http://www.artifactinteractive.com.au", "_blank");
}
Symbol 21 Button
on (release, releaseOutside) {
gotoAndStop (5);
}
Symbol 26 Button
on (release) {
gotoAndStop (10);
}
Symbol 31 Button
on (release) {
gotoAndPlay (15);
}
Symbol 37 Button
on (release, releaseOutside) {
gotoAndStop (3);
}
Symbol 41 Button
on (release, releaseOutside) {
gotoAndStop (11);
}
Symbol 46 Button
on (release, releaseOutside) {
gotoAndStop (12);
}
Symbol 49 Button
on (release, releaseOutside) {
gotoAndStop (10);
}
Symbol 57 Button
on (release) {
gotoAndPlay (19);
}
Symbol 60 Button
on (release) {
gotoAndStop (1);
}
Symbol 61 Button
on (release, releaseOutside) {
nextFrame();
}
Symbol 63 Button
on (release, releaseOutside) {
gotoAndStop (2);
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 71 Button
on (release) {
tellTarget ("/coursetop") {
nextFrame();
};
tellTarget ("/maincircle/circle3/circle2") {
nextFrame();
};
tellTarget ("/") {
gotoAndPlay ("part1");
};
setProperty("/coursetop", _yscale , "100");
setProperty("/coursetop", _xscale , "100");
setProperty("/maincircle/circle3/circle2", _rotation , "0");
setProperty("/sky2", _x , "284");
setProperty("/marker", _x , "192");
setProperty("/marker", _alpha , "100");
setProperty("/marker", _xscale , "40");
setProperty("/shadowmarker", _xscale , "40");
setProperty("/shadowmarker", _x , "192");
setProperty("/marker", _y , "327");
setProperty("/marker", _yscale , "40");
setProperty("/shadowmarker", _yscale , "40");
setProperty("/shadowmarker", _y , "327");
setProperty("/shadowmarker", _alpha , "38");
if (getProperty("/flag", _rotation) == "180") {
setProperty("/flag", _xscale , "36" * (-"1"));
setProperty("/flag", _yscale , "36");
} else {
setProperty("/flag", _xscale , "36");
setProperty("/flag", _yscale , "36");
}
tellTarget ("/thomas") {
gotoAndStop (1);
};
tellTarget ("/thehole") {
gotoAndStop (1);
};
tellTarget ("/flag") {
gotoAndStop (1);
};
tellTarget ("/clubmenu") {
gotoAndStop (1);
};
setProperty("/maincircle", _xscale , "61.3");
setProperty("/maincircle", _yscale , "85");
setProperty("/sky2/ad2", _xscale , "40");
setProperty("/sky2/ad2", _yscale , "40");
setProperty("/sky2/advert", _xscale , "40");
setProperty("/sky2/advert", _yscale , "40");
tellTarget ("/sky2") {
nextFrame();
};
gotoAndStop (1);
Set("/:ballx", "0");
Set("/:bally", "184.5");
setProperty("/coursetop/golfball", _x , "0");
setProperty("/coursetop/golfball", _y , "184.5");
setProperty("/coursetop/golfball", _alpha , "100");
Set("/:ballinhole", "0");
}
Symbol 89 Button
on (release) {
gotoAndPlay (4);
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
Set("/:pastholescore", /:strokes);
playeresult = /:mytempresult add " strokes";
messagehole = /:holedetails;
if (/:whichhole == "5") {
gotoAndStop (3);
}
tellTarget ("/thomas") {
gotoAndStop (1);
};
stop();
Symbol 104 MovieClip Frame 3
h5 = /:strokes;
h1 = /:holescore1;
h2 = /:holescore2;
h3 = /:holescore3;
h4 = /:holescore4;
finalscore = (((h1 + h2) + h3) + h4) + h5;
Set("/:eof", "0");
loadVariablesNum ("h10.txt", "0");
Symbol 104 MovieClip Frame 5
if (/:eof < "1") {
gotoAndPlay (4);
} else {
gotoAndPlay (6);
}
Symbol 104 MovieClip Frame 6
pname = /:playername;
pn1 = /:pn1;
pn2 = /:pn2;
pn3 = /:pn3;
pn4 = /:pn4;
pn5 = /:pn5;
p1 = /:p1;
p2 = /:p2;
p3 = /:p3;
p4 = /:p4;
p5 = /:p5;
if (int(p5) >= finalscore) {
gothigh = "Congratulations you got a high score";
if (p1 >= finalscore) {
pn5 = pn4;
pn4 = pn3;
pn3 = pn2;
pn2 = pn1;
pn1 = pname;
p5 = p4;
p4 = p3;
p3 = p2;
p2 = p1;
p1 = finalscore;
} else if (p2 >= finalscore) {
pn5 = pn4;
pn4 = pn3;
pn3 = pn2;
pn2 = pname;
p5 = p4;
p4 = p3;
p3 = p2;
p2 = finalscore;
} else if (p3 >= finalscore) {
pn5 = pn4;
pn4 = pn3;
pn3 = pname;
p5 = p4;
p4 = p3;
p3 = finalscore;
} else if (p4 >= finalscore) {
pn5 = pn4;
pn4 = pname;
p5 = p4;
p4 = finalscore;
} else {
pn5 = pname;
p5 = finalscore;
}
} else {
gothigh = "";
}
loadVariables ("write.asp", "", "POST");
stop();
Symbol 132 MovieClip Frame 1
setProperty("/mainball", _alpha , "0");
stop();
Symbol 132 MovieClip Frame 7
Set("/:ballhit", "1");
setProperty("/mainball", _alpha , "0");
Symbol 132 MovieClip Frame 10
stop();
Symbol 132 MovieClip Frame 15
setProperty("/mainball", _alpha , "0");
stop();
Symbol 132 MovieClip Frame 20
Set("/:ballhit", "1");
setProperty("/mainball", _alpha , "0");
Symbol 132 MovieClip Frame 22
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 145 Button
on (release, releaseOutside) {
tellTarget ("/powermeter") {
gotoAndStop (1);
};
Set("/:ballhit", "0");
if ("40" < /:club) {
tellTarget ("/thomas") {
gotoAndPlay (2);
};
} else {
tellTarget ("/thomas") {
gotoAndPlay (16);
};
}
Set("/:strokes", /:strokes + "1");
finished = "1";
ballupheight = "1";
Set("/:angle", getProperty("/directionmarker", _x));
dmangle = /:angle;
if ("40" < /:club) {
if (((/:windspeed == "0") and (bally >= "0")) or ((/:windspeed == "3") and (bally < "0"))) {
Set("/:angle", /:angle + "50");
dmangle = /:angle + "50";
} else if (((/:windspeed == "1") and (bally >= "0")) or ((/:windspeed == "2") and (bally < "0"))) {
Set("/:angle", /:angle + "3");
dmangle = /:angle + "30";
} else if (((/:windspeed == "2") and (bally >= "0")) or ((/:windspeed == "1") and (bally < "0"))) {
Set("/:angle", /:angle - "30");
dmangle = /:angle - "30";
} else if (((/:windspeed == "3") and (bally >= "0")) or ((/:windspeed == "0") and (bally < "0"))) {
Set("/:angle", /:angle - "50");
dmangle = /:angle - "50";
}
}
if (getProperty("/mainball", _x) >= /:angle) {
oppoveradj = (getProperty("/mainball", _x) - /:angle) / /:maintoflag;
myangle = "0";
exitloop = "0";
while ((myangle < "90") and (exitloop < "1")) {
mytan = eval ("sin" add myangle) / eval ("cos" add myangle);
if (oppoveradj < mytan) {
Set("/:angle", myangle);
exitloop = "1";
}
myangle = myangle + "1";
}
horiz = "1";
} else {
oppoveradj = (/:angle - getProperty("/mainball", _x)) / "162.3";
myangle = "0";
exitloop = "0";
while ((myangle < "90") and (exitloop < "1")) {
mytan = eval ("sin" add myangle) / eval ("cos" add myangle);
if (oppoveradj < mytan) {
Set("/:angle", myangle);
exitloop = "1";
}
myangle = myangle + "1";
}
horiz = -"1";
}
travelled = "0";
Set("/:nonperspective_angle", /:angle);
if ("100" < /:distancetohole) {
Set("/:angle", int(/:angle / "3"));
}
if (bally >= "0") {
if ("0" < /:ballx) {
Set("/:angle", "90" - (("90" - /:rotation) + ((/:angle * horiz) * (-"1"))));
if ("0" < /:angle) {
horiz = "1";
if ("90" < /:angle) {
Set("/:angle", "90" - (/:angle - "90"));
Set("/:facing", /:facing * (-"1"));
horiz = -"1";
}
} else {
horiz = -"1";
Set("/:angle", /:angle * (-"1"));
}
} else if (/:ballx < "0") {
Set("/:angle", "90" - (("90" - /:rotation) - ((/:angle * horiz) * (-"1"))));
if (/:angle < "0") {
horiz = "1";
Set("/:angle", /:angle * (-"1"));
} else {
horiz = -"1";
if ("90" < /:angle) {
Set("/:angle", "90" - (/:angle - "90"));
Set("/:facing", /:facing * (-"1"));
horiz = "1";
}
}
}
} else if ("0" < /:ballx) {
Set("/:angle", ("90" - ("90" - /:rotation)) + ((/:angle * horiz) * (-"1")));
if ("0" < /:angle) {
horiz = -"1";
if ("90" < /:angle) {
Set("/:angle", "90" - (/:angle - "90"));
Set("/:facing", /:facing * (-"1"));
horiz = "1";
}
} else {
horiz = "1";
Set("/:angle", /:angle * (-"1"));
}
} else if (/:ballx < "0") {
Set("/:angle", ("90" - ("90" - /:rotation)) - ((/:angle * horiz) * (-"1")));
if (/:angle < "0") {
horiz = -"1";
Set("/:angle", /:angle * (-"1"));
} else {
horiz = "1";
if ("90" < /:angle) {
Set("/:angle", "90" - (/:angle - "90"));
Set("/:facing", /:facing * (-"1"));
horiz = -"1";
}
}
}
distance = int(club / "2") * power;
if ((/:insand == "1") and ("87" < /:club)) {
distance = int("10") * power;
}
Set("/:maindistance", /:maintoflag * ((distance * "2") / /:distancetohole));
if (dmangle >= getProperty("/mainball", _x)) {
Set("/:mainballdirection", "1");
} else {
Set("/:mainballdirection", -"1");
}
markerx = "192";
markery = "327";
Set("/:markercounter", "1");
if ("165" < (eval ("/:cos" add int(/:nonperspective_angle)) * /:maindistance)) {
Set("/:horizonflag", "1");
Set("/:maindistance", "165" / eval ("/:cos" add int(/:nonperspective_angle)));
} else {
Set("/:horizonflag", "0");
}
if ("358" < /:distancetohole) {
Set("/:maindistance", (/:maindistance + "20") + (int(/:nonperspective_angle) / "2"));
}
prevballx = ballx;
prevbally = bally;
gotoAndPlay (24);
}
on (press) {
tellTarget ("/powermeter") {
gotoAndPlay (2);
}
}
Symbol 149 Button
on (rollOver) {
gotoAndStop (20);
}
Symbol 154 Button
on (release) {
tellTarget ("/helpbox") {
gotoAndStop (2);
}
}
Symbol 155 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("restart");
}
}
Symbol 158 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 166 Button
on (press) {
startDrag ("/directionmarker", true, "50", "150", "350", "150");
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
Set("/:power", "0.1");
Symbol 177 MovieClip Frame 3
Set("/:power", "0.2");
Symbol 177 MovieClip Frame 5
Set("/:power", "0.3");
Symbol 177 MovieClip Frame 7
Set("/:power", "0.4");
Symbol 177 MovieClip Frame 9
Set("/:power", "0.5");
Symbol 177 MovieClip Frame 11
Set("/:power", "0.6");
Symbol 177 MovieClip Frame 14
Set("/:power", "0.7");
Symbol 177 MovieClip Frame 16
Set("/:power", "0.8");
Symbol 177 MovieClip Frame 18
Set("/:power", "0.9");
Symbol 177 MovieClip Frame 20
Set("/:power", "1");
Symbol 177 MovieClip Frame 30
stop();
Symbol 179 Button
on (release) {
gotoAndStop (12);
}
Symbol 180 Button
on (release) {
nextFrame();
}
Symbol 183 Button
on (release) {
prevFrame();
}
Symbol 194 Button
on (release) {
prevFrame();
tellTarget ("/thomas") {
gotoAndStop (1);
}
}
Symbol 195 Button
on (release) {
gotoAndStop (1);
tellTarget ("/thomas") {
gotoAndStop (1);
}
}
Symbol 197 MovieClip Frame 1
Set("/:club", "247");
stop();
Symbol 197 MovieClip Frame 2
Set("/:club", "183");
stop();
Symbol 197 MovieClip Frame 3
Set("/:club", "160");
stop();
Symbol 197 MovieClip Frame 4
Set("/:club", "151");
stop();
Symbol 197 MovieClip Frame 5
Set("/:club", "142");
stop();
Symbol 197 MovieClip Frame 6
Set("/:club", "133");
stop();
Symbol 197 MovieClip Frame 7
Set("/:club", "123");
stop();
Symbol 197 MovieClip Frame 8
Set("/:club", "114");
stop();
Symbol 197 MovieClip Frame 9
stop();
Set("/:club", "105");
Symbol 197 MovieClip Frame 10
Set("/:club", "96");
stop();
Symbol 197 MovieClip Frame 11
Set("/:club", "87");
stop();
Symbol 197 MovieClip Frame 12
Set("/:club", "40");
tellTarget ("/thomas") {
gotoAndStop (15);
};
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 3
gotoAndStop (1);
Symbol 234 MovieClip Frame 1
Set("/:holedetails", "Hole: 1");
Set("/:whichhole", "1");
stop();
Symbol 234 MovieClip Frame 2
Set("/:holedetails", "Hole: 2");
Set("/:whichhole", "2");
Set("/:distancetohole", "369");
Set("/:holescore1", /:pastholescore);
stop();
Symbol 234 MovieClip Frame 3
Set("/:holedetails", "Hole: 3");
Set("/:whichhole", "3");
Set("/:pardetails", "Par: 4");
Set("/:holescore2", /:pastholescore);
stop();
Symbol 234 MovieClip Frame 4
Set("/:holedetails", "Hole: 4");
Set("/:whichhole", "4");
Set("/:pardetails", "Par: 3");
Set("/:holescore3", /:pastholescore);
stop();
Symbol 234 MovieClip Frame 5
Set("/:holedetails", "Hole: 5");
tellTarget ("/feetisland") {
gotoAndStop (2);
};
Set("/:distancetohole", "369");
Set("/:whichhole", "5");
Set("/:holescore4", /:pastholescore);
tellTarget ("/waterall") {
gotoAndStop (2);
};
stop();
Symbol 234 MovieClip Frame 6
tellTarget ("/waterall") {
gotoAndStop (1);
};
tellTarget ("/feetisland") {
gotoAndStop (1);
};
gotoAndStop (1);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 2
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 3
stop();
Symbol 254 MovieClip Frame 4
stop();
Symbol 254 MovieClip Frame 5
stop();
Symbol 254 MovieClip Frame 6
gotoAndStop (1);