Frame 1
version = "Newgrounds Open";
Frame 3
ifFrameLoaded (18) {
gotoAndStop (5);
}
Frame 4
gotoAndPlay (2);
Frame 5
Mouse.show();
mplink = "http://www.psychogoldfish.com";
i = 1;
while (18 >= i) {
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") {
site = "World Tour";
getURL ("http://www.psychogoldfish.com/mini_putt/leaderboard.php", "", "POST");
};
}
Symbol 13 Button
on (press) {
tellTarget ("_root") {
site = version;
getURL ("http://www.psychogoldfish.com/mini_putt/leaderboard.php", "", "POST");
};
}
Symbol 17 Button
on (press) {
tellTarget ("_root") {
mode = "world";
play();
};
}
Symbol 18 Button
on (press) {
tellTarget ("_root") {
mode = "site";
play();
};
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 22 Button
on (release) {
if (music == "on") {
music = "off";
} else {
music = "on";
}
}
Symbol 28 Button
on (release) {
mode = "practice";
play();
}
Symbol 29 Button
on (release) {
if (killing == "on") {
killing = "off";
} else {
killing = "on";
}
}
Symbol 37 Button
on (release) {
_root.player = player;
tellTarget ("_root") {
play();
};
}
Symbol 51 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 56 Button
on (release) {
_root.player = player;
_root.email = email;
_root.login = login;
tellTarget ("_root") {
play();
};
}
Symbol 57 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 57 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 63 Button
on (press, keyPress "1") {
stopAllSounds();
gotoAndPlay (5);
}
on (keyPress "$") {
tellTarget ("..") {
play();
};
}
Symbol 65 Button
on (press, keyPress "x") {
stopAllSounds();
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
gotoAndStop (1);
Symbol 73 MovieClip Frame 3
gotoAndStop (1);
Symbol 73 MovieClip Frame 4
gotoAndStop (1);
Symbol 73 MovieClip Frame 5
gotoAndStop (1);
Symbol 73 MovieClip Frame 6
gotoAndStop (1);
Symbol 73 MovieClip Frame 7
gotoAndStop (1);
Symbol 156 MovieClip Frame 1
Mouse.show();
Symbol 156 MovieClip Frame 2
Set("_root.score" add _root.hole, int(_root.strokes));
par = 0;
message = "";
i = 1;
while (18 >= i) {
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);
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 159 Button
on (release) {
tellTarget ("..") {
play();
};
}
Symbol 161 MovieClip Frame 1
tellTarget ("..") {
stop();
};
Symbol 166 MovieClip Frame 1
Mouse.hide();
Symbol 169 MovieClip Frame 2
stop();
Symbol 170 MovieClip Frame 1
countme = "y";
stop();
Symbol 172 MovieClip Frame 1
countme = "y";
Symbol 175 MovieClip Frame 1
countme = "y";
Symbol 178 MovieClip Frame 1
countme = "y";
Symbol 185 Button
on (release) {
tellTarget ("..") {
nextFrame();
};
}
Symbol 186 MovieClip Frame 1
../:ball._x = ../:button._x;
../:ball._y = ../:button._y;
Symbol 186 MovieClip Frame 2
gotoAndPlay (1);
Symbol 187 Button
on (release, releaseOutside) {
if (775 < ../:speed) {
if (_root.killing == "on") {
tellTarget ("../..") {
gotoAndStop ("kill");
};
}
} else {
tellTarget ("../../sound") {
gotoAndStop ("hit");
};
_root.strokes = _root.strokes + 1;
tellTarget ("..") {
play();
};
}
}
Symbol 189 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 (775 < ../:speed) {
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 189 MovieClip Frame 2
gotoAndPlay (1);
Symbol 189 MovieClip Frame 3
tellTarget ("..") {
gotoAndPlay ("rolling");
};
Symbol 194 MovieClip Frame 1
_root.strokes = 0;
Symbol 194 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 194 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 194 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 194 MovieClip Frame 5
gotoAndPlay (4);
Symbol 194 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 194 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 194 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 196 MovieClip Frame 1
countme = "y";
Symbol 198 MovieClip Frame 1
countme = "y";
stop();
Symbol 198 MovieClip Frame 21
setProperty("../ball", _x , _x);
setProperty("../ball", _y , _y);
tellTarget ("..") {
play();
};
gotoAndStop (1);
Symbol 201 MovieClip Frame 1
countme = "y";
Symbol 203 MovieClip Frame 1
_root.strokes = 0;
Symbol 203 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 203 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 203 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (tu >= ty) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 203 MovieClip Frame 5
gotoAndPlay (4);
Symbol 203 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 203 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 203 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 206 MovieClip Frame 1
_root.strokes = 0;
Symbol 206 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 206 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 206 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 206 MovieClip Frame 5
gotoAndPlay (4);
Symbol 206 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 206 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 206 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 210 MovieClip Frame 1
_root.strokes = 0;
Symbol 210 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 210 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 210 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 210 MovieClip Frame 5
gotoAndPlay (4);
Symbol 210 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 210 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 210 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 215 MovieClip Frame 1
_root.strokes = 0;
Symbol 215 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 215 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 215 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 215 MovieClip Frame 5
gotoAndPlay (4);
Symbol 215 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 215 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 215 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 219 MovieClip Frame 1
_root.strokes = 0;
Symbol 219 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 219 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 219 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 219 MovieClip Frame 5
gotoAndPlay (4);
Symbol 219 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 219 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 219 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 225 MovieClip Frame 1
_root.strokes = 0;
Symbol 225 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 225 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 225 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 225 MovieClip Frame 5
gotoAndPlay (4);
Symbol 225 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 225 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 225 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 227 MovieClip Frame 1
tellTarget ("..") {
ymod = ydir * 0.4;
if (frame >= 46) {
ydir = ydir - 0.3;
} else {
ydir = ydir + 0.3;
}
frame = frame - ymod;
if ((92 < int(frame)) or (int(frame) < 3)) {
gotoAndStop (93);
} else {
gotoAndStop(int(frame));
}
};
Symbol 227 MovieClip Frame 2
gotoAndPlay (1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
if (side == "top") {
frame = 92;
} else {
frame = 3;
}
nextFrame();
Symbol 228 MovieClip Frame 3
hill = "d";
Symbol 228 MovieClip Frame 45
hill = "d";
Symbol 228 MovieClip Frame 46
hill = "u";
Set("../:halfway", "y");
Symbol 228 MovieClip Frame 91
hill = "u";
Symbol 228 MovieClip Frame 93
if (0 < ymod) {
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 235 MovieClip Frame 1
_root.strokes = 0;
Symbol 235 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 235 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 235 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (((spiral._x < ball._x) and (ball._y < spiral._y)) and (0 < ymod)) {
spiral.ball.side = "top";
spiral.ball.x_pos = (ball._x - spiral._x) - 18;
inspiral = "y";
} else if (((ball._x < spiral._x) and (spiral._y < ball._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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 235 MovieClip Frame 5
gotoAndPlay (4);
Symbol 235 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 235 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 235 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 237 MovieClip Frame 1
countme = "y";
Symbol 246 MovieClip Frame 1
_root.strokes = 0;
Symbol 246 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 246 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 246 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 246 MovieClip Frame 5
gotoAndPlay (4);
Symbol 246 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 246 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 246 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 254 MovieClip Frame 1
_root.strokes = 0;
Symbol 254 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 254 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 254 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (tu >= ty) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 254 MovieClip Frame 5
gotoAndPlay (4);
Symbol 254 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 254 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 254 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;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 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 (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
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 264 MovieClip Frame 1
countme = "y";
Symbol 267 MovieClip Frame 1
countme = "y";
Symbol 269 MovieClip Frame 1
_root.strokes = 0;
Symbol 269 MovieClip Frame 2
if (init != "y") {
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 269 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 269 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ws >= w) {
if (ball.hittest(eval ("w" add w))) {
tellTarget ("../sound") {
gotoAndStop ("water");
};
gotoAndStop (2);
}
w++;
}
s = 1;
while (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 269 MovieClip Frame 5
gotoAndPlay (4);
Symbol 269 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 269 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 269 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 271 MovieClip Frame 1
countme = "y";
Symbol 276 MovieClip Frame 1
_root.strokes = 0;
Symbol 276 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 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 (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (((spiral._x < ball._x) and (ball._y < spiral._y)) and (0 < ymod)) {
spiral.ball.side = "top";
spiral.ball.x_pos = (ball._x - spiral._x) - 18;
inspiral = "y";
} else if (((ball._x < spiral._x) and (spiral._y < ball._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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
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
_root.strokes = 0;
Symbol 278 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 278 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 278 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (tu >= ty) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 278 MovieClip Frame 5
gotoAndPlay (4);
Symbol 278 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 278 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 278 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 283 MovieClip Frame 1
_root.strokes = 0;
Symbol 283 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
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 287 MovieClip Frame 1
_root.strokes = 0;
Symbol 287 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 287 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 287 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 287 MovieClip Frame 5
gotoAndPlay (4);
Symbol 287 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 287 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 287 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 288 MovieClip Frame 1
countme = "y";
Symbol 290 MovieClip Frame 1
_root.strokes = 0;
Symbol 290 MovieClip Frame 2
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 (xcnt < ycnt) {
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 (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
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 292 MovieClip Frame 1
countme = "y";
Symbol 293 MovieClip Frame 1
_root.strokes = 0;
Symbol 293 MovieClip Frame 2
if (init != "y") {
Mouse.show();
hill = 0.075;
matw = mat._width;
math = mat._height;
mat_l = (mat._x - (matw / 2)) + 2;
mat_r = (mat._x + (matw / 2)) - 2;
mat_t = (mat._y - (math / 2)) + 2;
mat_b = (mat._y + (math / 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 293 MovieClip Frame 3
Mouse.hide();
if (_root.strokes == 10) {
gotoAndPlay (16);
}
startDrag ("putter", true);
Symbol 293 MovieClip Frame 4
if (xdir < 0) {
xcnt = xdir * -1;
} else {
xcnt = xdir;
}
if (ydir < 0) {
ycnt = ydir * -1;
} else {
ycnt = ydir;
}
if (xcnt < ycnt) {
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 (ws >= w) {
if (ball.hittest(eval ("w" add w))) {
tellTarget ("../sound") {
gotoAndStop ("water");
};
gotoAndStop (2);
}
w++;
}
s = 1;
while (ss >= s) {
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 (ts >= t) {
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 (drs >= dr) {
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 (ball._y < y_anc) {
area = "t";
} else {
area = "b";
}
if (ball._x < x_anc) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
}
} else if (area == "tr") {
if ((ymod == 0) or (xmod == 0)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((xmod < 0) and (0 < ymod)) {
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 ((0 < xmod) and (0 < ymod)) {
ymod2 = xmod * 1;
xmod2 = ymod * 1;
} else if ((0 < xmod) 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 ((0 < xmod) and (ymod < 0)) {
ymod2 = xmod * -1;
xmod2 = ymod * -1;
} else if ((xmod < 0) and (0 < ymod)) {
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 (hrs >= hr) {
if (ball.hittest(eval ("hr" add hr))) {
xdir = xdir + hill;
onhill = "yes";
}
hr++;
}
hl = 1;
while (hls >= hl) {
if (ball.hittest(eval ("hl" add hl))) {
xdir = xdir - hill;
onhill = "yes";
}
hl++;
}
hu = 1;
while (hus >= hu) {
if (ball.hittest(eval ("hu" add hu))) {
ydir = ydir - hill;
onhill = "yes";
}
hu++;
}
hd = 1;
while (hds >= hd) {
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 (0.02 < speed) {
ydir = ydir * 0.96;
xdir = xdir * 0.95;
} else {
ydir = 0;
xdir = 0;
prevFrame();
}
Symbol 293 MovieClip Frame 5
gotoAndPlay (4);
Symbol 293 MovieClip Frame 6
ball._x = hole._x;
ball._y = hole._y;
tellTarget ("../:sound") {
gotoAndStop ("sunk");
};
play();
Symbol 293 MovieClip Frame 15
tellTarget ("..") {
play();
};
Symbol 293 MovieClip Frame 115
tellTarget ("..") {
play();
};
Symbol 296 Button
on (release) {
stopAllSounds();
tellTarget ("_root") {
gotoAndPlay (1);
};
}
Symbol 297 MovieClip Frame 3
if (_root.mode != "practice") {
if (_root.mode == "email") {
_root.mode = "email2";
} else {
_root.savescore = "y";
}
tellTarget ("_root") {
remote = "yes";
getURL ("http://www.psychogoldfish.com/mini_putt/tournament.php", "mp2", "POST");
};
} else {
gotoAndStop (6);
}
_root.loaded = "";
Symbol 297 MovieClip Frame 4
if (_root.loaded == "true") {
gotoAndStop (6);
}
Symbol 297 MovieClip Frame 6
message = _root.message;
_root.savescore = "";
stop();
Symbol 322 MovieClip Frame 112
tellTarget ("_root") {
gotoAndStop ("kicked");
};
Symbol 329 MovieClip Frame 63
tellTarget ("_root") {
gotoAndStop ("kicked");
};
Symbol 343 MovieClip Frame 46
tellTarget ("_root") {
gotoAndStop ("kicked");
};
Symbol 344 MovieClip Frame 1
gotoAndStop(random(3) + 2);
Symbol 345 MovieClip Frame 1
_root.hole = 0;
Symbol 345 MovieClip Frame 2
stop();
Symbol 345 MovieClip Frame 4
stop();
Symbol 345 MovieClip Frame 6
stop();
Symbol 345 MovieClip Frame 8
stop();
Symbol 345 MovieClip Frame 10
stop();
Symbol 345 MovieClip Frame 12
stop();
Symbol 345 MovieClip Frame 14
stop();
Symbol 345 MovieClip Frame 16
stop();
Symbol 345 MovieClip Frame 18
stop();
Symbol 345 MovieClip Frame 20
stop();
Symbol 345 MovieClip Frame 22
stop();
Symbol 345 MovieClip Frame 24
stop();
Symbol 345 MovieClip Frame 26
stop();
Symbol 345 MovieClip Frame 28
stop();
Symbol 345 MovieClip Frame 30
stop();
Symbol 345 MovieClip Frame 32
stop();
Symbol 345 MovieClip Frame 34
stop();
Symbol 345 MovieClip Frame 36
stop();
Symbol 345 MovieClip Frame 37
stop();
Symbol 345 MovieClip Frame 38
Mouse.show();
stopAllSounds();
Symbol 349 Button
on (release) {
gotoAndPlay (1);
}