Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("1545c405", this, 10301, true);
stop();
Frame 2
stop();
Frame 3
function menuChoiceOne() {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
function savestage() {
var _local2 = SharedObject.getLocal("puzzlegolf", "/");
_local2.data.stage = _root.stage;
_local2.flush();
}
fscommand ("allowscale", 0);
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("Visit The Game Homepage", menuChoiceOne));
this.menu = NewMenu;
sinkball = new Sound();
sinkball.attachSound("sinkball");
puttball = new Sound();
puttball.attachSound("puttball");
scratchfx = new Sound();
scratchfx.attachSound("scratchfx");
oobfx = new Sound();
oobfx.attachSound("oobfx");
cheerfx = new Sound();
cheerfx.attachSound("cheerfx");
createEmptyMovieClip("bouncesfxmc", _root.getNextHighestDepth());
bounceball = new Sound(bouncesfxmc);
bounceball.attachSound("bounceball");
bounceball.setVolume(5);
mute = false;
var save_bb = SharedObject.getLocal("puzzlegolf", "/");
if (save_bb.getSize() > 0) {
_root.stage = save_bb.data.stage;
} else {
stage = 1;
}
Frame 4
_root.shotstaken = 0;
stop();
Instance of Symbol 83 MovieClip in Frame 4
onClipEvent (load) {
if (_root.stage > 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 93 MovieClip in Frame 4
onClipEvent (load) {
if (_root.stage > 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 101 MovieClip in Frame 4
onClipEvent (load) {
if (_root.stage > 4) {
this.gotoAndStop(2);
}
}
Instance of Symbol 127 MovieClip in Frame 5
onClipEvent (load) {
if (((_root.gamemode == "normal") && (_root.stage > 2)) || (((_root.gamemode == "timed") || (_root.gamemode == "practice")) && (_root.stage > 3))) {
this.gotoAndStop(2);
}
}
Frame 6
nextFrame();
Frame 7
holetext = "Hole 1";
Instance of Symbol 155 MovieClip "cue" in Frame 7
onClipEvent (load) {
_visible = false;
}
Frame 8
nextFrame();
Frame 9
holetext = "Hole 2";
Instance of Symbol 155 MovieClip "cue" in Frame 9
onClipEvent (load) {
_visible = false;
}
Frame 10
nextFrame();
Frame 11
holetext = "Hole 3";
Instance of Symbol 153 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 155 MovieClip "cue" in Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 11
onClipEvent (load) {
xspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._x = this._x + xspeed;
}
Frame 12
nextFrame();
Frame 13
holetext = "Hole 4";
Instance of Symbol 155 MovieClip "cue" in Frame 13
onClipEvent (load) {
_visible = false;
}
Frame 14
nextFrame();
Frame 15
holetext = "Hole 5";
Instance of Symbol 155 MovieClip "cue" in Frame 15
onClipEvent (load) {
_visible = false;
}
Frame 16
nextFrame();
Frame 17
holetext = "Hole 6";
Instance of Symbol 155 MovieClip "cue" in Frame 17
onClipEvent (load) {
_visible = false;
}
Frame 18
nextFrame();
Frame 19
holetext = "Hole 7";
Instance of Symbol 155 MovieClip "cue" in Frame 19
onClipEvent (load) {
_visible = false;
}
Frame 20
nextFrame();
Frame 21
holetext = "Hole 8";
Instance of Symbol 155 MovieClip "cue" in Frame 21
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 21
onClipEvent (load) {
speed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
speed = -speed;
}
this._y = this._y + speed;
}
Instance of Symbol 178 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.holenumber++;
_root.shotstaken++;
_root.nextFrame();
}
}
Frame 22
nextFrame();
Frame 23
holetext = "Hole 9";
Instance of Symbol 153 MovieClip in Frame 23
/* no clip actions */
Instance of Symbol 155 MovieClip "cue" in Frame 23
onClipEvent (load) {
_visible = false;
}
Frame 24
nextFrame();
Frame 25
holetext = "Hole 10";
Instance of Symbol 155 MovieClip "cue" in Frame 25
onClipEvent (load) {
_visible = false;
}
Frame 26
nextFrame();
Frame 27
holetext = "Hole 11";
Instance of Symbol 155 MovieClip "cue" in Frame 27
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 27
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Frame 28
nextFrame();
Instance of Symbol 198 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.yspeed < 9.5)) {
_root.ball.yspeed = _root.ball.yspeed + 0.19;
}
}
Instance of Symbol 167 MovieClip in Frame 28
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
speed = -speed;
}
this._x = this._x + speed;
}
Frame 29
holetext = "Hole 12";
Instance of Symbol 155 MovieClip "cue" in Frame 29
onClipEvent (load) {
_visible = false;
}
Frame 30
nextFrame();
Frame 31
holetext = "Hole 13";
Instance of Symbol 155 MovieClip "cue" in Frame 31
onClipEvent (load) {
_visible = false;
}
Frame 32
nextFrame();
Instance of Symbol 205 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed + 0.19;
}
}
Frame 33
holetext = "Hole 14";
Instance of Symbol 155 MovieClip "cue" in Frame 33
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 178 MovieClip in Frame 33
/* no clip actions */
Frame 34
nextFrame();
Frame 35
holetext = "Hole 15";
Instance of Symbol 155 MovieClip "cue" in Frame 35
onClipEvent (load) {
_visible = false;
}
Frame 36
nextFrame();
Frame 37
holetext = "Hole 16";
Instance of Symbol 155 MovieClip "cue" in Frame 37
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 37
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 37
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 37
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 37
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 37
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Frame 38
nextFrame();
Instance of Symbol 216 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed + 0.19;
}
}
Instance of Symbol 218 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed - 0.19;
}
}
Frame 39
holetext = "Hole 17";
Instance of Symbol 155 MovieClip "cue" in Frame 39
onClipEvent (load) {
_visible = false;
}
Frame 40
nextFrame();
Frame 41
holetext = "Hole 18";
Instance of Symbol 227 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.shotstaken++;
_root.sinkball.start(0, 1);
_root.cheerfx.start(0, 1);
if (_root.gamemode == "practice") {
_root.prevFrame();
} else if (_root.gamemode == "normal") {
_root.gotoAndStop("beatnormal");
} else if (_root.gamemode == "timed") {
_root.gotoAndStop("beattimed");
}
}
}
Instance of Symbol 155 MovieClip "cue" in Frame 41
onClipEvent (load) {
_visible = false;
}
Frame 42
gameendtext = ("Congratulations!!!\n\nYou beat normal mode!\n\nShots: " + _root.shotstaken) + " \n\nYou have now unlocked timed mode,\nlets see if you can putt under pressure!";
if (stage < 2) {
stage = 2;
savestage();
}
stop();
Frame 43
endtext = ("You ran out of time!\n\nYou managed to get to " + _root.holetext) + " though,\n not bad!\n\n\nKeep on trying to unlock the hard course";
Frame 44
if (stage < 3) {
stage = 3;
savestage();
}
Frame 45
endtext = ("WOW!\n\nYou beat HARD mode!\n\nShots: " + _root.shotstaken) + "\n\n\nYou totally rock at this game. A new challenge awaits, you have unlocked TIMED HARD MODE!";
if (stage < 4) {
stage = 4;
savestage();
}
Frame 46
endtext = ("You ran out of time!\n\nYou managed to get to " + _root.holetext) + " though,\n not bad!\n\n\nKeep on trying to unlock the \nbonus levels";
stop();
Frame 47
if (stage < 5) {
stage = 5;
savestage();
}
Frame 48
nextFrame();
Frame 49
holetext = "Hole 1";
Instance of Symbol 155 MovieClip "cue" in Frame 49
onClipEvent (load) {
_visible = false;
}
Frame 50
nextFrame();
Frame 51
holetext = "Hole 2";
Instance of Symbol 155 MovieClip "cue" in Frame 51
onClipEvent (load) {
_visible = false;
}
Frame 52
nextFrame();
Frame 53
holetext = "Hole 3";
Instance of Symbol 155 MovieClip "cue" in Frame 53
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 53
onClipEvent (load) {
xspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 53
onClipEvent (load) {
xspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 53
onClipEvent (load) {
xspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._x = this._x + xspeed;
}
Frame 54
nextFrame();
Frame 55
holetext = "Hole 4";
Instance of Symbol 153 MovieClip in Frame 55
onClipEvent (load) {
velocity = 2;
}
onClipEvent (enterFrame) {
dist = 466 - this._x;
velocity = velocity + (dist * 0.0015);
this._x = this._x + velocity;
}
Instance of Symbol 155 MovieClip "cue" in Frame 55
onClipEvent (load) {
_visible = false;
}
Frame 56
nextFrame();
Frame 57
holetext = "Hole 5";
Instance of Symbol 155 MovieClip "cue" in Frame 57
onClipEvent (load) {
_visible = false;
}
Frame 58
nextFrame();
Frame 59
holetext = "Hole 6";
Instance of Symbol 155 MovieClip "cue" in Frame 59
onClipEvent (load) {
_visible = false;
}
Frame 60
nextFrame();
Frame 61
holetext = "Hole 7";
Instance of Symbol 155 MovieClip "cue" in Frame 61
onClipEvent (load) {
_visible = false;
}
Frame 62
nextFrame();
Frame 63
holetext = "Hole 8";
Instance of Symbol 155 MovieClip "cue" in Frame 63
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 63
onClipEvent (load) {
speed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
speed = -speed;
}
this._y = this._y + speed;
}
Instance of Symbol 178 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.nextFrame();
}
}
Frame 64
nextFrame();
Frame 65
holetext = "Hole 9";
Instance of Symbol 155 MovieClip "cue" in Frame 65
onClipEvent (load) {
_visible = false;
}
Frame 66
nextFrame();
Frame 67
holetext = "Hole 10";
Instance of Symbol 155 MovieClip "cue" in Frame 67
onClipEvent (load) {
_visible = false;
}
Frame 68
nextFrame();
Frame 69
holetext = "Hole 11";
Instance of Symbol 155 MovieClip "cue" in Frame 69
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = -3;
yspeed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 167 MovieClip in Frame 69
onClipEvent (load) {
xspeed = 3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Frame 70
nextFrame();
Instance of Symbol 260 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.yspeed < 9.5)) {
_root.ball.yspeed = _root.ball.yspeed + 0.19;
}
}
Instance of Symbol 167 MovieClip in Frame 70
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.prevFrame();
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
speed = -speed;
}
this._x = this._x + speed;
}
Instance of Symbol 167 MovieClip in Frame 70
onClipEvent (load) {
speed = -3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
speed = -speed;
}
this._x = this._x + speed;
}
Frame 71
holetext = "Hole 12";
Instance of Symbol 155 MovieClip "cue" in Frame 71
onClipEvent (load) {
_visible = false;
}
Frame 72
nextFrame();
Frame 73
holetext = "Hole 13";
Instance of Symbol 155 MovieClip "cue" in Frame 73
onClipEvent (load) {
_visible = false;
}
Frame 74
nextFrame();
Instance of Symbol 265 MovieClip in Frame 74
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed + 0.19;
}
}
Frame 75
holetext = "Hole 14";
Instance of Symbol 155 MovieClip "cue" in Frame 75
onClipEvent (load) {
_visible = false;
}
Frame 76
nextFrame();
Frame 77
holetext = "Hole 15";
Instance of Symbol 155 MovieClip "cue" in Frame 77
onClipEvent (load) {
_visible = false;
}
Frame 78
nextFrame();
Frame 79
holetext = "Hole 16";
Instance of Symbol 155 MovieClip "cue" in Frame 79
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Instance of Symbol 167 MovieClip in Frame 79
onClipEvent (load) {
xspeed = -3;
yspeed = 3;
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y - 20, true) || (_root.walls.hitTest(this._x, this._y + 20, true))) {
yspeed = -yspeed;
}
if (_root.walls.hitTest(this._x - 20, this._y, true) || (_root.walls.hitTest(this._x + 20, this._y, true))) {
xspeed = -xspeed;
}
this._y = this._y + yspeed;
}
Frame 80
nextFrame();
Instance of Symbol 272 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed + 0.19;
}
}
Instance of Symbol 274 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed - 0.19;
}
}
Frame 81
holetext = "Hole 17";
Instance of Symbol 155 MovieClip "cue" in Frame 81
onClipEvent (load) {
_visible = false;
}
Frame 82
nextFrame();
Frame 83
holetext = "Hole 18";
Instance of Symbol 281 MovieClip in Frame 83
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.sinkball.start(0, 1);
_root.cheerfx.start(0, 1);
_root.holenumber++;
_root.shotstaken++;
if (_root.gamemode == "practice") {
_root.prevFrame();
} else if (_root.gamemode == "normal") {
_root.gotoAndStop("beatnormalhard");
} else if (_root.gamemode == "timed") {
_root.gotoAndStop("beattimedhard");
}
}
}
Instance of Symbol 155 MovieClip "cue" in Frame 83
onClipEvent (load) {
_visible = false;
}
Frame 97
Frame 98
nextFrame();
Instance of Symbol 272 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed < 9.5)) {
_root.ball.xspeed = _root.ball.xspeed + 0.19;
_root.ball.yspeed = _root.ball.yspeed + 0.19;
}
}
Instance of Symbol 272 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed > -9.5)) {
_root.ball.xspeed = _root.ball.xspeed - 0.19;
_root.ball.yspeed = _root.ball.yspeed + 0.19;
}
}
Instance of Symbol 272 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true) && (_root.ball.xspeed > -9.5)) {
_root.ball.xspeed = _root.ball.xspeed - 0.19;
_root.ball.xspeed = _root.ball.xspeed - 0.19;
}
}
Frame 99
holetext = "Extra 1";
Instance of Symbol 155 MovieClip "cue" in Frame 99
onClipEvent (load) {
_visible = false;
}
Frame 100
nextFrame();
Frame 101
holetext = "Extra 2";
Instance of Symbol 155 MovieClip "cue" in Frame 101
onClipEvent (load) {
_visible = false;
}
Frame 102
nextFrame();
Frame 103
holetext = "Extra 3";
Instance of Symbol 155 MovieClip "cue" in Frame 103
onClipEvent (load) {
_visible = false;
}
Frame 104
stop();
Symbol 16 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 24 Button
on (release) {
gotoAndPlay ("intro");
}
Symbol 25 Button
on (release) {
_root.play();
}
Symbol 26 MovieClip Frame 1
barpc = 0;
var CPMStarPoolID = 1577;
var CPMStarSubPoolID = 6;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Symbol 26 MovieClip Frame 2
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
dif = PercentLoaded - barpc;
if (dif >= 0.25) {
barpc = barpc + 0.25;
}
if (barpc != 100) {
tghbar._xscale = barpc;
} else {
gotoAndPlay ("loaded");
}
Symbol 26 MovieClip Frame 3
gotoAndPlay (2);
Symbol 26 MovieClip Frame 71
stop();
Symbol 31 MovieClip Frame 104
stop();
Symbol 33 MovieClip Frame 66
stop();
Symbol 34 MovieClip Frame 160
_root.play();
Symbol 39 MovieClip [expl_particle] Frame 1
this._height = (this._width = Math.random() * 40);
this._alpha = Math.random() * 100;
yonx = Math.random() * 2;
px = Math.random() * 6;
if (yonx >= 1) {
px = px * -1;
}
this._x = this._x + px;
this._y = this._y + py;
py = Math.random() * 12;
friction = 0.98;
gravity = 0.2;
this.onEnterFrame = function () {
if (!smoke) {
this._alpha = this._alpha - 0.5;
this._x = this._x + px;
this._y = this._y - py;
px = px * friction;
py = py * friction;
py = py - gravity;
if (_alpha < 30) {
this.gotoAndStop(6);
}
} else {
this._height = this._height + 0.5;
this._width = this._width + 0.5;
this._alpha = this._alpha - 0.4;
this._x = this._x + px;
this._y = this._y - py;
px = px * friction;
py = py * friction;
}
if ((this._y > Stage.height) || (this._alpha < 1)) {
this.swapDepths(this.getNextHighestDepth());
this.removeMovieClip();
}
};
if (smoke) {
gotoAndStop (4);
} else {
gotoAndStop(Math.ceil((Math.random() * 3.6) + 1));
}
Symbol 39 MovieClip [expl_particle] Frame 5
px = px * 0.1;
py = py * 0.4;
friction = 0.99;
smoke = true;
stop();
Symbol 39 MovieClip [expl_particle] Frame 6
px = px * 0.5;
py = 1.2;
friction = 0.99;
stop();
Symbol 42 MovieClip [leaking_water] Frame 60
stop();
Symbol 46 MovieClip [drop] Frame 1
_alpha = 0;
var friction = 0.85;
var drop_speed = 0.2;
var px = drop_speed;
var cx = 0;
var xrnd = 0;
drop_alpha = 100;
depth = Math.random();
_yscale = ((depth * 50) + 50);
_xscale = ((depth * 50) + 50);
this._x = x1 + (Math.random() * (x2 - x1));
this._y = y1 + (Math.random() * (y2 - y1));
alpha_speed = (depth * 3) + 1;
this.onEnterFrame = function () {
if (_parent.start_rain == 1) {
if (_alpha < drop_alpha) {
_alpha = (_alpha + alpha_speed);
}
}
if (_parent.start_rain == 0) {
if (_alpha > 0) {
_alpha = (_alpha - alpha_speed);
} else {
this.swapDepths(this.getNextHighestDepth());
this.removeMovieClip();
}
}
if (cx == xrnd) {
px = drop_speed;
cx = 0;
xrnd = Math.floor(Math.random() * 40) + 5;
}
if (cx < (xrnd / 2)) {
px = px / friction;
} else {
px = px * friction;
}
cx++;
this._y = this._y + px;
if (_y > (y2 + (this._height / 2))) {
this._x = x1 + (Math.random() * (x2 - x1));
_y = ((-this._height) / 2);
}
};
Symbol 48 MovieClip [rain] Frame 1
rain_max_speed = 15;
rain_min_speed = 5;
depth = Math.random();
_yscale = ((depth * 60) + 20);
_xscale = ((depth * 60) + 20);
rain_alpha = 100;
_alpha = 0;
this._x = x1 + (Math.random() * (x2 - x1));
this._y = y1 + (Math.random() * (y2 - y1));
speed = (depth * rain_max_speed) + rain_min_speed;
this.onEnterFrame = function () {
_y = (_y + speed);
if (_parent.start_rain == 1) {
if (_alpha < rain_alpha) {
_alpha = (_alpha + speed);
}
}
if (_parent.start_rain == 0) {
if (_alpha > 0) {
_alpha = (_alpha - speed);
} else {
this.swapDepths(this.getNextHighestDepth());
this.removeMovieClip();
}
}
if (_x > (x2 + (this._width / 2))) {
_x = (x1 - (this._width / 2));
}
if (_x < (x1 - (this._width / 2))) {
_x = (x2 + (this._width / 2));
}
if (_y > (y2 + (this._height / 2))) {
_y = (y1 - (this._height / 2));
}
};
frame = Math.floor(Math.random() * 2) + 1;
gotoAndStop(frame);
Symbol 51 MovieClip Frame 1
stop();
this._rotation = random(360);
Symbol 53 MovieClip [smoke] Frame 1
this.swapDepths(this.getNextHighestDepth());
Symbol 53 MovieClip [smoke] Frame 55
this.removeMovieClip();
Symbol 57 MovieClip Frame 1
gotoAndStop(Math.ceil(Math.random() * 3) + 1);
Symbol 58 MovieClip [spark] Frame 1
vx = (Math.random() * 6) - 3;
vy = Math.random() * -8;
Symbol 58 MovieClip [spark] Frame 2
if (_y < 20) {
vy = vy + 0.6;
vx = vx * 0.95;
_x = (_x + vx);
_y = (_y + vy);
}
_alpha = (_alpha - 3);
if (_alpha < 2) {
this.swapDepths(_parent.getNextHighestDepth());
removeMovieClip(this);
}
Symbol 58 MovieClip [spark] Frame 3
gotoAndPlay (2);
Symbol 60 MovieClip [glass_particle_mc] Frame 1
var rotate_speed = (Math.random() * 20);
this._rotation = Math.random() * 360;
this._height = Math.random() * 20;
this._width = Math.random() * 20;
this._alpha = Math.random() * 100;
yonx = Math.random() * 2;
px = Math.random() * 10;
if (yonx >= 1) {
px = px * -1;
}
this._x = this._x + px;
this._y = this._y + py;
yony = Math.random() * 2;
py = Math.random() * 10;
if (yony >= 1) {
py = py * -1;
}
friction = 0.98;
gravity = 1;
this.onEnterFrame = function () {
this._x = this._x + px;
this._y = this._y - py;
this._rotation = this._rotation + rotate_speed;
px = px * friction;
py = py * friction;
py = py - gravity;
if (this._y > Stage.height) {
this.swapDepths(this.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 64 MovieClip Frame 1
stop();
Symbol 73 Button
on (release) {
gamemode = "normal";
gamemodetext = "normal game";
_root.nextFrame();
}
Symbol 82 Button
on (release) {
_root.gamemode = "practice";
_root.gamemodetext = "practice game";
_root.nextFrame();
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 92 Button
on (release) {
_root.time = 5;
_root.timehard = 5.5;
_root.gamemode = "timed";
_root.gamemodetext = "timed game";
_root.nextFrame();
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 100 Button
on (release) {
_root.gamemode = "normal";
_root.gamemodetext = "Extra Holes";
_root.gotoAndPlay("startextra");
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 105 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 114 Button
on (release) {
_root.course = "easy";
_root.gotoAndPlay("starteasy");
}
Symbol 118 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 126 Button
on (release) {
_root.course = "hard";
if (_root.gamemode == "timed") {
_root.time = _root.timehard;
}
_root.gotoAndPlay("starthard");
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
stop();
Symbol 135 Button
on (release) {
_root.shotstaken++;
_root.prevFrame();
}
Symbol 139 Button
on (release) {
if (_root.holetext != "Hole 18") {
_root.nextFrame();
}
}
Symbol 141 Button
on (release) {
if (_root.holetext != "Hole 1") {
_root.gotoAndPlay(_root._currentframe - 3);
}
}
Symbol 144 MovieClip Frame 1
function time_to_string(time_to_convert) {
elapsed_minutes = Math.floor(time_to_convert / 60000);
remaining = time_to_convert - (elapsed_minutes * 60000);
elapsed_seconds = Math.floor(remaining / 1000);
remaining = remaining - (elapsed_seconds * 1000);
minutes = elapsed_minutes.toString();
if (elapsed_seconds < 10) {
seconds = "0" + elapsed_seconds.toString();
} else {
seconds = elapsed_seconds.toString();
}
return((minutes + ":") + seconds);
}
if (_root.gamemode != "timed") {
counterstring = "";
stop();
}
start_time = getTimer();
countdownfrom = 60000 * _root.time;
Symbol 144 MovieClip Frame 2
elapsed_time = getTimer() - start_time;
counter = countdownfrom - elapsed_time;
counterstring = "Time: " + time_to_string(counter);
if (counter < 0) {
if (_root.gamemode == "timed") {
if (_root.course == "easy") {
_root.gotoAndStop("failedtimed");
} else if (_root.course == "hard") {
_root.gotoAndStop("failedtimedhard");
}
}
}
Symbol 144 MovieClip Frame 3
gotoAndPlay (2);
Symbol 145 MovieClip Frame 1
if (_root.gamemode == "normal") {
stop();
} else if (_root.gamemode == "practice") {
gotoAndStop (2);
} else if (_root.gamemode == "timed") {
gotoAndStop (3);
}
Symbol 149 Button
on (release) {
_root.gotoAndStop("menu");
}
Instance of Symbol 152 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.holenumber++;
_root.shotstaken++;
if (!_root.mute) {
_root.sinkball.start(0, 1);
}
_root.nextFrame();
}
}
Symbol 159 Button
on (press) {
if (!shottaken) {
aiming = true;
}
}
on (release, releaseOutside) {
if (!_root.mute) {
_root.puttball.start(0, 1);
}
aiming = false;
shottaken = true;
_root.cue._visible = false;
}
Symbol 160 MovieClip Frame 1
friction = 0.995;
bounce = 0.95;
stagewidth = 600;
stageheight = 500;
yspeed = 0;
xspeed = 0;
radius = 10.5;
precision = 360;
bounces = 0;
test_x = _x;
test_y = _y;
shottaken = false;
Symbol 160 MovieClip Frame 2
if (aiming) {
_root.cue._visible = true;
_root.cue._x = _x;
_root.cue._y = _y;
xspeed = (_root._xmouse - _x) / 20;
yspeed = (_root._ymouse - _y) / 20;
speed = Math.sqrt(Math.pow(xspeed, 2) + Math.pow(yspeed, 2));
if (speed > 10) {
angle = Math.atan2(xspeed, yspeed);
xspeed = 10 * Math.sin(angle);
yspeed = 10 * Math.cos(angle);
speed = 10;
}
_root.cue._xscale = xspeed * 20;
_root.cue._yscale = yspeed * 20;
} else {
if ((((_x < 0) || (_x > stagewidth)) || (_y < 0)) || (_y > stageheight)) {
_root.shotstaken++;
if (!_root.mute) {
_root.oobfx.start(0, 1);
}
_root.prevFrame();
}
collisions = 0;
sum_x = 0;
sum_y = 0;
x = 1;
while (x < precision) {
spot_x = test_x + (radius * Math.sin((x * 360) / precision));
spot_y = test_y - (radius * Math.cos((x * 360) / precision));
if (_root.walls.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
if (!_root.mute) {
_root.bounceball.start(0, 1);
}
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - test_x;
y_cat = spot_y - test_y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * bounce;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * bounce;
test_x = old_x;
test_y = old_y;
xspeed = xspeed * friction;
yspeed = yspeed * friction;
_x = (_x + xspeed);
_y = (_y + yspeed);
old_x = _x;
old_y = _y;
} else {
old_x = _x;
old_y = _y;
xspeed = xspeed * friction;
yspeed = yspeed * friction;
_x = (_x + xspeed);
_y = (_y + yspeed);
test_x = _x;
test_y = _y;
}
}
Symbol 160 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 166 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.ball._x, _root.ball._y, true)) {
if (!_root.mute) {
_root.scratchfx.start(0, 1);
}
_root.prevFrame();
}
}
Symbol 171 MovieClip Frame 1
this._rotation = this._rotation + 1;
Symbol 171 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 152 MovieClip in Symbol 178 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.holenumber++;
_root.shotstaken++;
if (!_root.mute) {
_root.sinkball.start(0, 1);
}
_root.nextFrame();
}
}
Symbol 181 Button
on (press) {
if (!shottaken) {
aiming = true;
}
}
on (release, releaseOutside) {
aiming = false;
shottaken = true;
_root.cue._visible = false;
}
Instance of Symbol 211 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (load) {
xspeed = -2;
}
onClipEvent (enterFrame) {
if ((this._x > 448) || (this._x < 172)) {
xspeed = -xspeed;
}
this._x = this._x + xspeed;
}
Symbol 225 MovieClip Frame 1
xdist = _root.ball._x - this._x;
ydist = _root.ball._y - this._y;
this._rotation = ((Math.atan2(ydist, xdist) * 180) / Math.PI) + 90;
Symbol 225 MovieClip Frame 2
gotoAndPlay (1);
Symbol 241 MovieClip Frame 1
this._rotation = this._rotation + 1;
Symbol 241 MovieClip Frame 2
gotoAndPlay (1);
Symbol 248 Button
on (press) {
if (!shottaken) {
aiming = true;
}
}
on (release, releaseOutside) {
aiming = false;
shottaken = true;
_root.cue._visible = false;
}
Instance of Symbol 269 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
xspeed = -2;
}
onClipEvent (enterFrame) {
if ((this._x > 472) || (this._x < 148)) {
xspeed = -xspeed;
}
this._x = this._x + xspeed;
}
Symbol 279 MovieClip Frame 1
xdist = _root.ball._x - this._x;
ydist = _root.ball._y - this._y;
this._rotation = ((Math.atan2(ydist, xdist) * 180) / Math.PI) + 90;
Symbol 279 MovieClip Frame 2
gotoAndPlay (1);