Frame 3
var l = _root.getBytesLoaded();
var t = _root.getBytesTotal();
var LT = (l / t);
preloader.line._width = 400 * LT;
var info = (Math.round(LT * 100) + "%");
preloader.infoMC.text = info;
if (LT < 1) {
gotoAndPlay (2);
}
Frame 121
function checkDomain(keyStr) {
trace(keyStr);
var _local2 = _root._url;
if (_local2.split(keyStr).length < 2) {
trace("..");
getURL ("http://" + keyStr);
fscommand ("quit", true);
}
}
stop();
Frame 122
stop();
Frame 123
stop();
Frame 124
function setGame() {
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
function hitgetBounds() {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
}
backSound = new Sound();
backSound.attachSound("mciBackground1.WAV");
backSound.start(0, 999);
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 123;
count = 0;
onEnterFrame = function () {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = 1 - (Math.abs(r - 90) / 100);
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
};
onMouseUp = function () {
getXY = false;
if (Release) {
releaseSound.start(0, 1);
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
if (r > 0) {
count++;
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
ringSound.start(0, 1);
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
winSound.start(0, 1);
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 600) || (this._x < 0)) || (this._x > 800)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
dropSound.start(0, 1);
Press = true;
count++;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
};
setGame();
hitgetBounds();
stop();
Frame 125
stop();
setGame();
hitgetBounds();
Frame 126
stop();
setGame();
hitgetBounds();
Frame 127
stop();
setGame();
hitgetBounds();
Frame 128
stop();
setGame();
hitgetBounds();
Frame 129
stop();
setGame();
hitgetBounds();
Frame 130
stop();
setGame();
hitgetBounds();
Frame 131
stop();
setGame();
hitgetBounds();
Frame 132
stop();
setGame();
hitgetBounds();
Frame 133
stop();
setGame();
hitgetBounds();
Frame 134
stop();
setGame();
hitgetBounds();
Frame 135
stop();
Frame 136
function setGame() {
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
function hitgetBounds() {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
hit6Bounds = hit6.getBounds(_root);
}
backSound = new Sound();
backSound.attachSound("mciBackground2.WAV");
backSound.start(0, 999);
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 124;
count = 0;
onEnterFrame = function () {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = 1 - (Math.abs(r - 90) / 100);
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
};
onMouseUp = function () {
getXY = false;
if (Release) {
releaseSound.start(0, 1);
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
hitS = true;
if (r > 0) {
count++;
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
if (hit1.ice) {
this._y = hit1Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
if (hit4.ice) {
this._y = hit4Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
if (hit5.ice) {
this._y = hit5Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit6Bounds.yMin) && (this.xmax > (hit6Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit6Bounds.xMax - (this._width / 2)))) {
if (hit6.ice) {
this._y = hit6Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit6Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit6Bounds.yMin) {
if (this.hitTest(hit6)) {
if ((this.xmax - (this._width / 2)) < hit6Bounds.xMin) {
this._x = (hit6._x - (hit6._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit6Bounds.xMax) {
this._x = (hit6._x + (hit6._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
ringSound.start(0, 1);
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
winSound.start(0, 1);
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 600) || (this._x < 0)) || (this._x > 800)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
dropSound.start(0, 1);
Press = true;
count++;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
};
setGame();
hitgetBounds();
stop();
Frame 137
stop();
setGame();
hitgetBounds();
Frame 138
stop();
setGame();
hitgetBounds();
Frame 139
stop();
setGame();
hitgetBounds();
Frame 140
stop();
setGame();
hitgetBounds();
Frame 141
stop();
setGame();
hitgetBounds();
Frame 142
stop();
setGame();
hitgetBounds();
Frame 143
stop();
setGame();
hitgetBounds();
Frame 144
stop();
setGame();
hitgetBounds();
Frame 145
stop();
setGame();
hitgetBounds();
Frame 146
stop();
Frame 147
function setGame() {
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
function hitgetBounds() {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
hit6Bounds = hit6.getBounds(_root);
hit7Bounds = hit7.getBounds(_root);
}
backSound = new Sound();
backSound.attachSound("sound7.mp3");
backSound.start(0, 999);
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 124;
count = 0;
onEnterFrame = function () {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = (1 - (Math.abs(r - 90) / 100)) * 0.6;
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
};
onMouseUp = function () {
getXY = false;
if (Release) {
releaseSound.start(0, 1);
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
if (r > 0) {
count++;
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit1Bounds.yMax) {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit4Bounds.yMax) {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit5Bounds.yMax) {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit6Bounds.yMin) && (this.xmax > (hit6Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit6Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit6Bounds.yMax) {
this._y = hit6Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit7Bounds.yMin) && (this.xmax > (hit7Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit7Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit7Bounds.yMax) {
this._y = hit7Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
}
if (dir == "up") {
if (hit1Bounds.yMin < this.ymax) {
if (this.hitTest(hit1) && ((this.ymin + (this._width / 2)) > hit1Bounds.yMax)) {
this._y = (hit1._y + (hit1._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit4Bounds.yMin < this.ymax) {
if (this.hitTest(hit4) && ((this.ymin + (this._width / 2)) > hit4Bounds.yMax)) {
this._y = (hit4._y + (hit4._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit5Bounds.yMin < this.ymax) {
if (this.hitTest(hit5) && ((this.ymin + (this._width / 2)) > hit5Bounds.yMax)) {
this._y = (hit5._y + (hit5._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit6Bounds.yMin < this.ymax) {
if (this.hitTest(hit6) && ((this.ymin + (this._width / 2)) > hit6Bounds.yMax)) {
this._y = (hit6._y + (hit6._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit7Bounds.yMin < this.ymax) {
if (this.hitTest(hit7) && ((this.ymin + (this._width / 2)) > hit7Bounds.yMax)) {
this._y = (hit7._y + (hit7._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit6Bounds.yMin) {
if (this.hitTest(hit6)) {
if ((this.xmax - (this._width / 2)) < hit6Bounds.xMin) {
this._x = (hit6._x - (hit6._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit6Bounds.xMax) {
this._x = (hit6._x + (hit6._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit7Bounds.yMin) {
if (this.hitTest(hit7)) {
if ((this.xmax - (this._width / 2)) < hit7Bounds.xMin) {
this._x = (hit7._x - (hit7._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit7Bounds.xMax) {
this._x = (hit7._x + (hit7._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
ringSound.start(0, 1);
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
winSound.start(0, 1);
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 600) || (this._x < 0)) || (this._x > 800)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
dropSound.start(0, 1);
Press = true;
count++;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
};
setGame();
hitgetBounds();
stop();
Frame 148
stop();
setGame();
hitgetBounds();
Frame 149
stop();
setGame();
hitgetBounds();
Frame 150
stop();
setGame();
hitgetBounds();
Frame 151
stop();
setGame();
hitgetBounds();
Frame 152
stop();
setGame();
hitgetBounds();
Frame 153
stop();
setGame();
hitgetBounds();
Frame 154
stop();
setGame();
hitgetBounds();
Frame 155
stop();
setGame();
hitgetBounds();
Frame 156
stop();
setGame();
hitgetBounds();
Frame 157
stop();
Symbol 72 MovieClip Frame 1
bull.onRelease = function () {
getURL ("http://sillybull.com");
};
Symbol 98 Button
on (release) {
gotoAndStop (122);
}
Symbol 101 Button
on (release) {
gotoAndStop (123);
}
Symbol 104 Button
on (release) {
getURL ("http://sillybull.com", "_blank");
}
Symbol 109 Button
on (release) {
gotoAndStop (121);
}
Symbol 113 Button
on (release) {
gotoAndStop (124);
}
Symbol 117 Button
on (release) {
gotoAndStop (136);
}
Symbol 121 Button
on (release) {
gotoAndStop (147);
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 5
gotoAndPlay (2);
Symbol 170 Button
on (release) {
_root.backSound.stop();
gotoAndStop (2);
}
Symbol 171 Button
on (release) {
_root.backSound.start(0, 999);
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 1
ice = true;
Symbol 209 MovieClip Frame 1
ice = true;
Symbol 211 MovieClip Frame 1
ice = true;
Symbol 221 MovieClip Frame 1
ice = true;
Symbol 233 MovieClip Frame 1
ice = true;
Symbol 239 MovieClip Frame 1
ice = true;
Symbol 245 MovieClip Frame 1
ice = true;
Symbol 251 MovieClip Frame 1
ice = true;
Symbol 261 MovieClip Frame 1
ice = true;
Symbol 263 MovieClip Frame 1
ice = true;
Symbol 269 MovieClip Frame 1
ice = true;