Frame 1
actionx = "load";
version = "Goldfish Cup";
Frame 3
ifFrameLoaded (18) {
gotoAndStop (5);
}
Frame 4
gotoAndPlay (1);
Frame 5
Mouse.show();
mplink = "http://www.psychogoldfish.com";
i = 1;
while (i <= 18) {
Set("score" add i, "");
i++;
}
stop();
Frame 6
if (mode != "practice") {
if (mode == "site") {
site = version;
} else if (mode == "world") {
site = "World Tour";
}
stop();
}
Frame 16
if (music == "on") {
tellTarget ("game.sound") {
gotoAndPlay ("bgm1");
};
}
Frame 17
stop();
Frame 18
prevFrame();
Frame 19
Mouse.show();
Symbol 12 Button
on (press) {
tellTarget ("_root") {
mode = "world";
site = "World Tour";
getURL ("http://www.psychogoldfish.com/mini_putt/leaderboard.php", "_blank", "GET");
};
}
Symbol 13 Button
on (press) {
tellTarget ("_root") {
site = version;
mode = "site";
getURL ("http://www.psychogoldfish.com/mini_putt/leaderboard.php", "_blank", "GET");
};
}
Symbol 22 Button
on (press) {
tellTarget ("_root") {
mode = "world";
play();
};
}
Symbol 23 Button
on (press) {
tellTarget ("_root") {
mode = "site";
play();
};
}
Symbol 26 Button
on (release) {
getURL ("http://www.psychogoldfish.com");
}
Symbol 28 MovieClip Frame 1
_root.mode = "practice";
loops = 0;
server = "";
actionx = "load";
loadVariables ("http://www.psychogoldfish.com/mini_putt/tournament.php", "_root.menu", "POST");
Symbol 28 MovieClip Frame 2
loops++;
if (loops > 90) {
gotoAndStop (10);
}
Symbol 28 MovieClip Frame 3
if (server != "") {
gotoAndStop (5);
}
Symbol 28 MovieClip Frame 4
gotoAndPlay (2);
Symbol 28 MovieClip Frame 5
stop();
Symbol 31 Button
on (release) {
if (music == "on") {
music = "off";
} else {
music = "on";
}
}
Symbol 37 Button
on (release) {
mode = "practice";
play();
}
Symbol 38 Button
on (release) {
if (killing == "on") {
killing = "off";
} else {
killing = "on";
}
}
Symbol 45 Button
on (release) {
_root.player = player;
tellTarget ("_root") {
play();
};
}
Symbol 57 Button
on (release) {
_root.player = player;
_root.email = email;
_root.login = email;
tellTarget ("_root") {
loadVariables ("http://www.psychogoldfish.com/mini_putt/tournament.php", "_root", "POST");
play();
};
}
Symbol 62 Button
on (release) {
_root.player = player;
_root.email = email;
_root.login = login;
tellTarget ("_root") {
play();
};
}
Symbol 63 MovieClip Frame 1
player = _root.player;
email = _root.email;
player1 = _root.player1;
email1 = _root.email1;
player2 = _root.player2;
email2 = _root.email2;
player3 = _root.player3;
email3 = _root.email3;
Symbol 63 MovieClip Frame 2
if (_root.mode == "world") {
gotoAndStop (3);
} else if (_root.mode == "site") {
gotoAndStop (4);
} else if (_root.mode == "email") {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
Symbol 69 Button
on (press, keyPress "1") {
stopAllSounds();
gotoAndPlay (5);
}
on (keyPress "$") {
tellTarget ("..") {
play();
};
}
Symbol 71 Button
on (press, keyPress "x") {
stopAllSounds();
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
gotoAndStop (1);
Symbol 79 MovieClip Frame 3
gotoAndStop (1);
Symbol 79 MovieClip Frame 4
gotoAndStop (1);
Symbol 79 MovieClip Frame 5
gotoAndStop (1);
Symbol 79 MovieClip Frame 6
gotoAndStop (1);
Symbol 79 MovieClip Frame 7
gotoAndStop (1);
Symbol 162 MovieClip Frame 1
Mouse.show();
Symbol 162 MovieClip Frame 2
Set("_root.score" add _root.hole, _root.strokes);
par = 0;
message = "";
scr12 = "";
i = 1;
while (i <= 18) {
Set("_root.par" add i, int(eval ("par" add i)));
Set("score" add i, eval ("_root.score" add i));
score = score + eval ("_root.score" add i);
par = par + eval ("_root.par" add i);
_root.timestamp = ((score * 1337) * 1337) + 80085;
if (i == _root.hole) {
if (eval ("_root.score" add i) == 1) {
message = "Hole in One!!!";
} else if (eval ("_root.score" add i) == (eval ("_root.par" add i) - 3)) {
message = "Albatross (-3)";
} else if (eval ("_root.score" add i) == (eval ("_root.par" add i) - 2)) {
message = "Eagle (-2)";
} else if (eval ("_root.score" add i) == (eval ("_root.par" add i) - 1)) {
message = "Birdie (-1)";
} else if (eval ("_root.score" add i) == eval ("_root.par" add i)) {
message = "You got par";
} else if (eval ("_root.score" add i) == (eval ("_root.par" add i) + 1)) {
message = "Bogey (+1)";
} else if (eval ("_root.score" add i) == (eval ("_root.par" add i) + 2)) {
message = "Double Bogey (+1)";
}
}
i++;
}
_root.hole = _root.hole + 1;
_root.score = score;
stop();
Symbol 165 Button
on (release) {
tellTarget ("..") {
play();
};
}
Symbol 167 MovieClip Frame 1
tellTarget ("..") {
stop();
};
Symbol 172 MovieClip Frame 1
Mouse.hide();
Symbol 175 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 1
countme = "y";
stop();
Symbol 178 MovieClip Frame 1
countme = "y";
Symbol 181 MovieClip Frame 1
countme = "y";
Symbol 184 MovieClip Frame 1
countme = "y";
Symbol 191 Button
on (release) {
tellTarget ("..") {
nextFrame();
};
}
Symbol 192 MovieClip Frame 1
../:ball._x = ../:button._x;
../:ball._y = ../:button._y;
Symbol 192 MovieClip Frame 2
gotoAndPlay (1);
Symbol 193 Button
on (release, releaseOutside) {
if (../:speed > 775) {
if (_root.killing == "on") {
tellTarget ("../..") {
gotoAndStop ("kill");
};
}
} else {
tellTarget ("../../sound") {
gotoAndStop ("hit");
};
_root.strokes = _root.strokes + 1;
tellTarget ("..") {
play();
};
}
}
Symbol 195 MovieClip Frame 1
tellTarget ("..") {
xdir = (ball._x - putter._x) * 0.33;
ydir = (ball._y - putter._y) * 0.33;
node1._x = ball._x + (xdir * 4.5);
node1._y = ball._y + (ydir * 4.5);
node2._x = ball._x + (xdir * 2.75);
node2._y = ball._y + (ydir * 2.75);
node3._x = ball._x + (xdir * 1.5);
node3._y = ball._y + (ydir * 1.5);
node4._x = ball._x + (xdir * 0.5);
node4._y = ball._y + (ydir * 0.5);
};
Set("../:speed", (../:xdir * ../:xdir) + (../:ydir * ../:ydir));
if (../:speed > 775) {
tellTarget ("../node1") {
gotoAndStop (2);
};
tellTarget ("../node2") {
gotoAndStop (2);
};
tellTarget ("../node3") {
gotoAndStop (2);
};
tellTarget ("../node4") {
gotoAndStop (2);
};
} else {
tellTarget ("../node1") {
gotoAndStop (1);
};
tellTarget ("../node2") {
gotoAndStop (1);
};
tellTarget ("../node3") {
gotoAndStop (1);
};
tellTarget ("../node4") {
gotoAndStop (1);
};
}
../:putt._x = ../:putter._x;
../:putt._y = ../:putter._y;
Symbol 195 MovieClip Frame 2
gotoAndPlay (1);
Symbol 195 MovieClip Frame 3
tellTarget ("..") {
gotoAndPlay ("rolling");
};
Symbol 200 MovieClip Frame 1
_root.strokes = 0;
Symbol 200 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 200 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 200 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 200 MovieClip Frame 5
gotoAndPlay (4);
Symbol 200 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 200 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 200 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 202 MovieClip Frame 1
countme = "y";
Symbol 204 MovieClip Frame 1
countme = "y";
stop();
Symbol 204 MovieClip Frame 21
setProperty("../ball", _x , _x);
setProperty("../ball", _y , _y);
tellTarget ("..") {
play();
};
gotoAndStop (1);
Symbol 207 MovieClip Frame 1
countme = "y";
Symbol 209 MovieClip Frame 1
_root.strokes = 0;
Symbol 209 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
tu = 0;
while (tudone != "y") {
if (eval (("tu" add (tu + 1)) add ".countme") != "y") {
tudone = "y";
tu = tu - 1;
}
tu++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 209 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 209 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
ty = 1;
while (ty <= tu) {
if (speed < 20) {
if (ball.hittest(eval ("th" add ty))) {
ball._x = 9999;
ydir = (eval (("tu" add ty) add "._y") - eval (("th" add ty) add "._y")) / 50;
xdir = (eval (("tu" add ty) add "._x") - eval (("th" add ty) add "._x")) / 50;
tellTarget ("tu" add ty) {
play();
};
stop();
}
}
ty++;
}
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 209 MovieClip Frame 5
gotoAndPlay (4);
Symbol 209 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 209 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 209 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 213 MovieClip Frame 1
_root.strokes = 0;
Symbol 213 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 213 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 213 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 213 MovieClip Frame 5
gotoAndPlay (4);
Symbol 213 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 213 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 213 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 217 MovieClip Frame 1
_root.strokes = 0;
Symbol 217 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 217 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 217 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 217 MovieClip Frame 5
gotoAndPlay (4);
Symbol 217 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 217 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 217 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 222 MovieClip Frame 1
_root.strokes = 0;
Symbol 222 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 222 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 222 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 222 MovieClip Frame 5
gotoAndPlay (4);
Symbol 222 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 222 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 222 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 226 MovieClip Frame 1
_root.strokes = 0;
Symbol 226 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 226 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 226 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 226 MovieClip Frame 5
gotoAndPlay (4);
Symbol 226 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 226 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 226 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 232 MovieClip Frame 1
_root.strokes = 0;
Symbol 232 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 232 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 232 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 232 MovieClip Frame 5
gotoAndPlay (4);
Symbol 232 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 232 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 232 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 234 MovieClip Frame 1
tellTarget ("..") {
ymod = ydir * 0.4;
if (frame >= 46) {
ydir = ydir - 0.3;
} else {
ydir = ydir + 0.3;
}
frame = frame - ymod;
if ((int(frame) > 92) or (int(frame) < 3)) {
gotoAndStop (93);
} else {
gotoAndStop(int(frame));
}
};
Symbol 234 MovieClip Frame 2
gotoAndPlay (1);
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
if (side == "top") {
frame = 92;
} else {
frame = 3;
}
nextFrame();
Symbol 235 MovieClip Frame 3
hill = "d";
Symbol 235 MovieClip Frame 45
hill = "d";
Symbol 235 MovieClip Frame 46
hill = "u";
Set("../:halfway", "y");
Symbol 235 MovieClip Frame 91
hill = "u";
Symbol 235 MovieClip Frame 93
if (ymod > 0) {
setProperty("../../ball", _x , (getProperty("../../spiral", _x) + (_x - x_pos)) - 18);
setProperty("../../ball", _y , getProperty("../../spiral", _y) + 40);
} else {
setProperty("../../ball", _x , (getProperty("../../spiral", _x) - (_x - x_pos)) + 18);
setProperty("../../ball", _y , getProperty("../../spiral", _y) - 40);
}
Set("../../:ydir", ydir);
tellTarget ("../..") {
inspiral = "";
play();
};
gotoAndStop (1);
Symbol 242 MovieClip Frame 1
_root.strokes = 0;
Symbol 242 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 242 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 242 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
if (ball.hittest(spiral)) {
if (((ball._x > spiral._x) and (ball._y < spiral._y)) and (ymod > 0)) {
spiral.ball.side = "top";
spiral.ball.x_pos = (ball._x - spiral._x) - 18;
inspiral = "y";
} else if (((ball._x < spiral._x) and (ball._y > spiral._y)) and (ymod < 0)) {
spiral.ball.side = "bot";
spiral.ball.x_pos = (ball._x - spiral._x) + 18;
inspiral = "y";
}
}
if (inspiral == "y") {
ball._x = spiral._x;
ball._y = spiral._y;
spiral.ball._x = spiral.ball.x_pos;
spiral.ball.ydir = ydir;
tellTarget ("spiral.ball") {
play();
};
tellTarget ("../sound") {
gotoAndStop ("metal");
};
stop();
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 242 MovieClip Frame 5
gotoAndPlay (4);
Symbol 242 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 242 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 242 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 244 MovieClip Frame 1
countme = "y";
Symbol 253 MovieClip Frame 1
_root.strokes = 0;
Symbol 253 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 253 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 253 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 253 MovieClip Frame 5
gotoAndPlay (4);
Symbol 253 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 253 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 253 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 261 MovieClip Frame 1
_root.strokes = 0;
Symbol 261 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
tu = 0;
while (tudone != "y") {
if (eval (("tu" add (tu + 1)) add ".countme") != "y") {
tudone = "y";
tu = tu - 1;
}
tu++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 261 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 261 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
ty = 1;
while (ty <= tu) {
if (speed < 20) {
if (ball.hittest(eval ("th" add ty))) {
ball._x = 9999;
ydir = (eval (("tu" add ty) add "._y") - eval (("th" add ty) add "._y")) / 50;
xdir = (eval (("tu" add ty) add "._x") - eval (("th" add ty) add "._x")) / 50;
tellTarget ("tu" add ty) {
play();
};
stop();
}
}
ty++;
}
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 261 MovieClip Frame 5
gotoAndPlay (4);
Symbol 261 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 261 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 261 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 268 MovieClip Frame 1
_root.strokes = 0;
Symbol 268 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 268 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 268 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 268 MovieClip Frame 5
gotoAndPlay (4);
Symbol 268 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 268 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 268 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 271 MovieClip Frame 1
countme = "y";
Symbol 274 MovieClip Frame 1
countme = "y";
Symbol 276 MovieClip Frame 1
_root.strokes = 0;
Symbol 276 MovieClip Frame 2
if (init != "y") {
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
ws = 0;
while (wdone != "y") {
if (eval (("w" add (ws + 1)) add ".countme") != "y") {
wdone = "y";
ws = ws - 1;
}
ws++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
init = "y";
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 276 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 276 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
w = 1;
while (w <= ws) {
if (ball.hittest(eval ("w" add w))) {
tellTarget ("../sound") {
gotoAndStop ("water");
};
gotoAndStop (2);
}
w++;
}
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 276 MovieClip Frame 5
gotoAndPlay (4);
Symbol 276 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 276 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 276 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 278 MovieClip Frame 1
countme = "y";
Symbol 283 MovieClip Frame 1
_root.strokes = 0;
Symbol 283 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 283 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 283 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
if (ball.hittest(spiral)) {
if (((ball._x > spiral._x) and (ball._y < spiral._y)) and (ymod > 0)) {
spiral.ball.side = "top";
spiral.ball.x_pos = (ball._x - spiral._x) - 18;
inspiral = "y";
} else if (((ball._x < spiral._x) and (ball._y > spiral._y)) and (ymod < 0)) {
spiral.ball.side = "bot";
spiral.ball.x_pos = (ball._x - spiral._x) + 18;
inspiral = "y";
}
}
if (inspiral == "y") {
ball._x = spiral._x;
ball._y = spiral._y;
spiral.ball._x = spiral.ball.x_pos;
spiral.ball.ydir = ydir;
tellTarget ("spiral.ball") {
play();
};
tellTarget ("../sound") {
gotoAndStop ("metal");
};
stop();
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 283 MovieClip Frame 5
gotoAndPlay (4);
Symbol 283 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 283 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 283 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 285 MovieClip Frame 1
_root.strokes = 0;
Symbol 285 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
tu = 0;
while (tudone != "y") {
if (eval (("tu" add (tu + 1)) add ".countme") != "y") {
tudone = "y";
tu = tu - 1;
}
tu++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 285 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 285 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
ty = 1;
while (ty <= tu) {
if (speed < 20) {
if (ball.hittest(eval ("th" add ty))) {
ball._x = 9999;
ydir = (eval (("tu" add ty) add "._y") - eval (("th" add ty) add "._y")) / 50;
xdir = (eval (("tu" add ty) add "._x") - eval (("th" add ty) add "._x")) / 50;
tellTarget ("tu" add ty) {
play();
};
stop();
}
}
ty++;
}
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 285 MovieClip Frame 5
gotoAndPlay (4);
Symbol 285 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 285 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 285 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 290 MovieClip Frame 1
_root.strokes = 0;
Symbol 290 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 290 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 290 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 290 MovieClip Frame 5
gotoAndPlay (4);
Symbol 290 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 290 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 290 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 294 MovieClip Frame 1
_root.strokes = 0;
Symbol 294 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math2 = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math2 / 2)) + 2;
mat_b = (mat._y + (math2 / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 294 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 294 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 294 MovieClip Frame 5
gotoAndPlay (4);
Symbol 294 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 294 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 294 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 296 MovieClip Frame 1
countme = "y";
Symbol 298 MovieClip Frame 1
_root.strokes = 0;
Symbol 298 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
mathx = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (mathx / 2)) + 2;
mat_b = (mat._y + (mathx / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 298 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 298 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 298 MovieClip Frame 5
gotoAndPlay (4);
Symbol 298 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 298 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 298 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 300 MovieClip Frame 1
countme = "y";
Symbol 301 MovieClip Frame 1
_root.strokes = 0;
Symbol 301 MovieClip Frame 2
if (init != "y") {
Mouse.show();
hill = 0.075;
matw = mat._width;
mathx = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (mathx / 2)) + 2;
mat_b = (mat._y + (mathx / 2)) - 2;
ss = 0;
while (sdone != "y") {
if (eval (("s" add (ss + 1)) add ".countme") != "y") {
sdone = "y";
ss = ss - 1;
}
ss++;
}
ts = 0;
while (tdone != "y") {
if (eval (("t" add (ts + 1)) add ".countme") != "y") {
tdone = "y";
ts = ts - 1;
}
ts++;
}
ws = 0;
while (wdone != "y") {
if (eval (("w" add (ws + 1)) add ".countme") != "y") {
wdone = "y";
ws = ws - 1;
}
ws++;
}
drs = 0;
while (drdone != "y") {
if (eval (("dr" add (drs + 1)) add ".countme") != "y") {
drdone = "y";
drs = drs - 1;
}
drs++;
}
hrs = 0;
while (hrdone != "y") {
if (eval (("hr" add (hrs + 1)) add ".countme") != "y") {
hrdone = "y";
hrs = hrs - 1;
}
hrs++;
}
hls = 0;
while (hldone != "y") {
if (eval (("hl" add (hls + 1)) add ".countme") != "y") {
hldone = "y";
hls = hls - 1;
}
hls++;
}
hus = 0;
while (hudone != "y") {
if (eval (("hu" add (hus + 1)) add ".countme") != "y") {
hudone = "y";
hus = hus - 1;
}
hus++;
}
hds = 0;
while (hddone != "y") {
if (eval (("hd" add (hds + 1)) add ".countme") != "y") {
hddone = "y";
hds = hds - 1;
}
hds++;
}
init = "y";
}
startDrag ("button", true, mat_l, mat_t, mat_r, mat_b);
stop();
Symbol 301 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 301 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (ycnt > xcnt) {
cnt = ycnt;
} else {
cnt = xcnt;
}
ymod = ydir / cnt;
xmod = xdir / cnt;
x_old2 = ball._x;
y_old2 = ball._y;
i = 0;
while (i < cnt) {
x_old = ball._x;
y_old = ball._y;
ball._x = ball._x + xmod;
w = 1;
while (w <= ws) {
if (ball.hittest(eval ("w" add w))) {
tellTarget ("../sound") {
gotoAndStop ("water");
};
gotoAndStop (2);
}
w++;
}
s = 1;
while (s <= ss) {
if (ball.hittest(eval ("s" add s))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._x = x_old;
xmod = xmod * -1;
xdir = xdir * -1;
}
s++;
}
ball._y = ball._y + ymod;
t = 1;
while (t <= ts) {
if (ball.hittest(eval ("t" add t))) {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
ball._y = y_old;
ymod = ymod * -1;
ydir = ydir * -1;
}
t++;
}
dr = 0;
while (dr <= drs) {
if (ball.hittest(eval ("dr" add dr))) {
if (eval ("on_dr" add dr) != "y") {
tellTarget ("../sound") {
gotoAndStop ("bounce");
};
x_anc = eval (("dr" add dr) add "._x");
y_anc = eval (("dr" add dr) add "._y");
if (y_anc > ball._y) {
area = "t";
} else {
area = "b";
}
if (x_anc > ball._x) {
area = area add "l";
} else {
area = area add "r";
}
if (area == "tl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if (area == "bl") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod > 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
}
} else if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod > 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod > 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
ymod = ymod2;
xmod = xmod2;
ball._x = ball._x + xmod;
ball._y = ball._y + ymod;
ydir = ymod * cnt;
xdir = xmod * cnt;
checktimes = checktimes + 1;
Set("on_dr" add dr, "y");
tellTarget ("dr" add dr) {
gotoAndStop (1);
};
}
} else {
Set("on_dr" add dr, "n");
}
dr++;
}
onhill = "no";
hr = 1;
while (hr <= hrs) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hl <= hls) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hu <= hus) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hd <= hds) {
if (ball.hittest(eval ("hd" add hd))) {
ydir = ydir + hill;
onhill = "yes";
}
hd++;
}
i++;
}
speed = (ydir * ydir) + (xdir * xdir);
if (speed < 20) {
if (ball.hittest(hole)) {
gotoAndPlay (6);
}
} else if (speed < 90) {
if (ball.hittest(hole)) {
ydir = ydir * (0.7 + (random(6) / 10));
xdir = xdir * (0.7 + (random(6) / 10));
}
}
if (speed > 0.02) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 301 MovieClip Frame 5
gotoAndPlay (4);
Symbol 301 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 301 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 301 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 304 Button
on (release) {
stopAllSounds();
tellTarget ("_root") {
gotoAndPlay (1);
};
}
Symbol 305 MovieClip Frame 3
if (_root.mode != "practice") {
_root.actionx = "tourney";
if (_root.mode == "email") {
_root.mode = "email2";
} else {
_root.savescore = "y";
}
tellTarget ("_root") {
getURL ("http://www.psychogoldfish.com/mini_putt/tournament.php", "_blank", "POST");
};
} else {
gotoAndStop (6);
}
_root.loaded = "";
Symbol 305 MovieClip Frame 4
if (_root.loaded == "true") {
gotoAndStop (6);
}
Symbol 305 MovieClip Frame 5
gotoAndPlay (4);
Symbol 305 MovieClip Frame 6
message = _root.message;
_root.savescore = "";
Symbol 307 Button
on (release) {
_root.email = email;
_root.name = name;
_root.message = message;
_root.friend1 = friend1;
_root.friend2 = friend2;
_root.friend3 = friend3;
_root.friend4 = friend4;
tellTarget ("_root") {
actionx = "email";
getURL ("http://www.psychogoldfish.com/mini_putt/tournament.php", "_blank", "POST");
};
}
Symbol 323 Button
on (release) {
getURL ("javascript:window.location.reload(false)");
}
Symbol 348 MovieClip Frame 112
tellTarget ("_root") {
gotoAndStop ("kicked");
};
Symbol 355 MovieClip Frame 63
tellTarget ("_root") {
gotoAndStop ("kicked");
};
Symbol 369 MovieClip Frame 46
tellTarget ("_root") {
gotoAndStop ("kicked");
};
Symbol 370 MovieClip Frame 1
gotoAndStop(random(3) + 2);
Symbol 371 MovieClip Frame 1
_root.hole = 0;
Symbol 371 MovieClip Frame 2
stop();
Symbol 371 MovieClip Frame 4
stop();
Symbol 371 MovieClip Frame 6
stop();
Symbol 371 MovieClip Frame 8
stop();
Symbol 371 MovieClip Frame 10
stop();
Symbol 371 MovieClip Frame 12
stop();
Symbol 371 MovieClip Frame 14
stop();
Symbol 371 MovieClip Frame 16
stop();
Symbol 371 MovieClip Frame 18
stop();
Symbol 371 MovieClip Frame 20
stop();
Symbol 371 MovieClip Frame 22
stop();
Symbol 371 MovieClip Frame 24
stop();
Symbol 371 MovieClip Frame 26
stop();
Symbol 371 MovieClip Frame 28
stop();
Symbol 371 MovieClip Frame 30
stop();
Symbol 371 MovieClip Frame 32
stop();
Symbol 371 MovieClip Frame 34
stop();
Symbol 371 MovieClip Frame 36
stop();
Symbol 371 MovieClip Frame 37
name = _root.player;
stopAllSounds();
stop();
Symbol 371 MovieClip Frame 38
Mouse.show();
stopAllSounds();
Symbol 375 Button
on (release) {
gotoAndPlay (1);
}