STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #24639 |
% |
Concept, Animation, Illustration, & Programming by Jay Donaldson Special Thanks To: Rob Faller For supporting the project, providing feedback, and suggesting there be 12 holes instead of 18 and calling it the Twelve Holes of Christmas. Will Smith For letting me bug him with questions about functions, methods, and proper syntax. As well as for suggesting you should make a hole with a lot of walls. (Which eventually became hole 5, The Rings.) Dan Mackay For the awesome holly border and creative input throughout the project. Valerie Rutherford For designing the Send To A Friend HTML email layout and providing design feedback. Thom Dupper & Julie Disser For relentlessly testing the game, providing feedback and suggestions, and distributing the game to clients and friends. Chuck Waterhouse For letting me bug him with questions regarding trigonometry and physics. Alex Hood & Karen Gorenflo Karen for providing feedback and Alex for helping Karen with the plug-in. Liesel Donaldson For testing, feedback, and (as always) support. |
sound fx |
ActionScript [AS1/AS2]
Frame 1Instance of Symbol 192 MovieClip in Frame 130//component parameters onClipEvent (initialize) { percentLoad = 1; }Frame 131stop();Frame 132stop(); _root.scorecard._visible = false;Frame 133play();Frame 179stop(); _root.scorecard._visible = true;Frame 180stop(); _root.scorecard._visible = false;Instance of Symbol 284 MovieClip "h02" in Frame 180/* no clip actions */Frame 181play();Frame 230stop(); _root.scorecard._visible = true;Frame 231stop(); _root.scorecard._visible = false;Frame 232play();Frame 277stop(); _root.scorecard._visible = true;Frame 278stop(); _root.scorecard._visible = false;Frame 279play();Frame 325stop(); _root.scorecard._visible = true;Frame 326stop(); _root.scorecard._visible = false;Frame 327play();Frame 372stop(); _root.scorecard._visible = true;Frame 373stop(); _root.scorecard._visible = false;Frame 374play();Frame 425stop(); _root.scorecard._visible = true;Frame 426stop(); _root.scorecard._visible = false;Frame 427play();Frame 480stop(); _root.scorecard._visible = true;Frame 481stop(); _root.scorecard._visible = false;Frame 482play();Frame 536stop(); _root.scorecard._visible = true;Frame 537stop(); _root.scorecard._visible = false;Frame 538play();Frame 592stop(); _root.scorecard._visible = true;Frame 593stop(); _root.scorecard._visible = false;Frame 594play();Frame 642stop(); _root.scorecard._visible = true;Frame 643stop(); _root.scorecard._visible = false;Frame 644play();Frame 699stop(); _root.scorecard._visible = true;Frame 700stop(); _root.scorecard._visible = false;Frame 701play();Frame 757_root.scorecard._visible = true;Frame 1488stop();Symbol 30 Buttonon (release) { getURL ("http://www.sitedynamics.com"); }Symbol 69 MovieClip Frame 1stop();Symbol 69 MovieClip Frame 2stop();Symbol 69 MovieClip Frame 3stop();Symbol 69 MovieClip Frame 4stop();Symbol 69 MovieClip Frame 5stop();Symbol 69 MovieClip Frame 6stop();Symbol 69 MovieClip Frame 7stop();Symbol 69 MovieClip Frame 8stop();Symbol 69 MovieClip Frame 9stop();Symbol 69 MovieClip Frame 10stop();Symbol 69 MovieClip Frame 11stop();Symbol 69 MovieClip Frame 12stop();Symbol 69 MovieClip Frame 13stop();Symbol 69 MovieClip Frame 14stop();Symbol 69 MovieClip Frame 15stop();Symbol 69 MovieClip Frame 16stop();Symbol 69 MovieClip Frame 17stop();Symbol 69 MovieClip Frame 18stop();Symbol 69 MovieClip Frame 19stop();Symbol 69 MovieClip Frame 20stop();Symbol 69 MovieClip Frame 21stop();Symbol 69 MovieClip Frame 22stop();Symbol 69 MovieClip Frame 23stop();Symbol 69 MovieClip Frame 24stop();Symbol 69 MovieClip Frame 25stop();Symbol 69 MovieClip Frame 26stop();Symbol 69 MovieClip Frame 27stop();Symbol 69 MovieClip Frame 28stop();Symbol 69 MovieClip Frame 29stop();Symbol 69 MovieClip Frame 30stop();Symbol 69 MovieClip Frame 31stop();Symbol 69 MovieClip Frame 32stop();Symbol 69 MovieClip Frame 33stop();Symbol 69 MovieClip Frame 34stop();Symbol 69 MovieClip Frame 35stop();Symbol 69 MovieClip Frame 36stop();Symbol 107 MovieClip Frame 1stop();Symbol 107 MovieClip Frame 2stop();Symbol 107 MovieClip Frame 3stop();Symbol 107 MovieClip Frame 4stop();Symbol 107 MovieClip Frame 5stop();Symbol 107 MovieClip Frame 6stop();Symbol 107 MovieClip Frame 7stop();Symbol 107 MovieClip Frame 8stop();Symbol 107 MovieClip Frame 9stop();Symbol 107 MovieClip Frame 10stop();Symbol 107 MovieClip Frame 11stop();Symbol 107 MovieClip Frame 12stop();Symbol 107 MovieClip Frame 13stop();Symbol 107 MovieClip Frame 14stop();Symbol 107 MovieClip Frame 15stop();Symbol 107 MovieClip Frame 16stop();Symbol 107 MovieClip Frame 17stop();Symbol 107 MovieClip Frame 18stop();Symbol 107 MovieClip Frame 19stop();Symbol 107 MovieClip Frame 20stop();Symbol 107 MovieClip Frame 21stop();Symbol 107 MovieClip Frame 22stop();Symbol 107 MovieClip Frame 23stop();Symbol 107 MovieClip Frame 24stop();Symbol 107 MovieClip Frame 25stop();Symbol 107 MovieClip Frame 26stop();Symbol 107 MovieClip Frame 27stop();Symbol 107 MovieClip Frame 28stop();Symbol 107 MovieClip Frame 29stop();Symbol 107 MovieClip Frame 30stop();Symbol 107 MovieClip Frame 31stop();Symbol 107 MovieClip Frame 32stop();Symbol 107 MovieClip Frame 33stop();Symbol 107 MovieClip Frame 34stop();Symbol 107 MovieClip Frame 35stop();Symbol 107 MovieClip Frame 36stop();Symbol 114 MovieClip Frame 1stop();Symbol 114 MovieClip Frame 2stop();Symbol 114 MovieClip Frame 3stop();Symbol 114 MovieClip Frame 4stop();Symbol 114 MovieClip Frame 5stop();Symbol 114 MovieClip Frame 6stop();Symbol 122 MovieClip Frame 1stop();Symbol 122 MovieClip Frame 2stop();Symbol 122 MovieClip Frame 3stop();Symbol 122 MovieClip Frame 4stop();Symbol 122 MovieClip Frame 5stop();Symbol 122 MovieClip Frame 6stop();Symbol 127 Buttonon (release) { tellTarget ("ball") { nextFrame(); }; } on (release) { tellTarget ("ballColor") { nextFrame(); }; }Symbol 165 Buttonon (release) { play(); }Symbol 168 MovieClip Frame 1stop();Symbol 170 MovieClip Frame 20stop();Symbol 173 Buttonon (release) { tellTarget ("putter") { nextFrame(); }; } on (release) { tellTarget ("clients") { nextFrame(); }; }Symbol 174 Buttonon (release) { tellTarget ("putter") { prevFrame(); }; } on (release) { tellTarget ("clients") { prevFrame(); }; }Symbol 175 Buttonon (release) { tellTarget ("ball") { prevFrame(); }; } on (release) { tellTarget ("ballColor") { prevFrame(); }; }Symbol 191 Buttonon (release) { tellTarget ("_level0") { nextFrame(); stop(); }; }Symbol 192 MovieClip Frame 1setProperty("visual_aid", _visible , "0");Symbol 192 MovieClip Frame 12myBytesLoaded = _parent.getBytesLoaded(); myBytesTotal = _parent.getBytesTotal() / percentLoad; if (myBytesLoaded >= myBytesTotal) { gotoAndStop (15); }Symbol 192 MovieClip Frame 13myBytesLoaded = _parent.getBytesLoaded(); myBytesTotal = _parent.getBytesTotal() / percentLoad; if (myBytesLoaded < myBytesTotal) { percentOutput = int((myBytesLoaded / myBytesTotal) * 100) + "%"; setProperty("loadbar", _alpha , (myBytesLoaded / myBytesTotal) * 100); } else { gotoAndStop (15); }Symbol 192 MovieClip Frame 14gotoAndPlay (13);Symbol 192 MovieClip Frame 15stop();Symbol 195 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h01") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; _root.scorecard.one = 5; _root.scorecard.total = 5; }Symbol 196 Buttonon (keyPress "m") { play(); }Symbol 204 MovieClip Frame 1stop();Symbol 205 Buttonon (keyPress "J") { play(); }Symbol 206 Buttonon (keyPress "J") { gotoAndPlay (293); }Symbol 210 MovieClip Frame 1stop();Symbol 235 MovieClip Frame 1stop();Symbol 235 MovieClip Frame 5this.gotoAndStop(1);Symbol 235 MovieClip Frame 28this.gotoAndStop(1);Symbol 235 MovieClip Frame 52this.gotoAndStop(1);Symbol 235 MovieClip Frame 59this.gotoAndStop(1);Symbol 235 MovieClip Frame 64this.gotoAndStop(1);Symbol 235 MovieClip Frame 78this.gotoAndStop(1);Symbol 235 MovieClip Frame 103this.gotoAndStop(1);Symbol 235 MovieClip Frame 125this.gotoAndStop(1);Symbol 235 MovieClip Frame 146this.gotoAndStop(1);Symbol 235 MovieClip Frame 162this.gotoAndStop(1);Symbol 235 MovieClip Frame 172this.gotoAndStop(1);Symbol 235 MovieClip Frame 190this.gotoAndStop(1);Symbol 235 MovieClip Frame 232this.gotoAndStop(1);Symbol 235 MovieClip Frame 249this.gotoAndStop(1);Symbol 235 MovieClip Frame 349this.gotoAndStop(1);Symbol 235 MovieClip Frame 447this.gotoAndStop(1);Symbol 237 MovieClip Frame 1stop();Symbol 237 MovieClip Frame 2stop();Symbol 256 MovieClip Frame 1stop();Symbol 256 MovieClip Frame 2stop(); _root.soundfx.gotoAndStop("cheer");Symbol 256 MovieClip Frame 3stop(); _root.soundfx.gotoAndStop("cheer");Symbol 256 MovieClip Frame 4stop(); _root.soundfx.gotoAndStop("cheer");Symbol 256 MovieClip Frame 5stop(); _root.soundfx.gotoAndStop("cheer");Symbol 256 MovieClip Frame 6stop(); _root.soundfx.gotoAndStop("polite");Symbol 256 MovieClip Frame 7stop(); _root.soundfx.gotoAndStop("polite");Symbol 256 MovieClip Frame 8stop(); _root.soundfx.gotoAndStop("polite");Symbol 256 MovieClip Frame 60gotoAndStop (1);Symbol 259 MovieClip Frame 1stop();Symbol 259 MovieClip Frame 2stop();Symbol 270 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } } stop(); HoleNum = 1; Par = 2; Score = 0; _root.scorecard.ParOne = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(219, 45, 0, 116); l = createLine(l.x2, l.y2, 90, 300); l = createLine(l.x2, l.y2, 180, 116); l = createLine(l.x2, l.y2, 270, 300); l = createLine(262, 103, 0, 31); l = createLine(l.x2, l.y2, 90, 31); l = createLine(l.x2, l.y2, 180, 31); l = createLine(l.x2, l.y2, 270, 31); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 243, 302, 313, 332); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.one = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 274 MovieClip Frame 12stop();Symbol 275 Buttonon (release) { nextFrame(); }Symbol 276 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h02") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; seven = _root.scorecard.seven; eight = _root.scorecard.eight; nine = _root.scorecard.nine; ten = _root.scorecard.ten; eleven = _root.scorecard.eleven; twelve = _root.scorecard.twelve; _root.scorecard.total = one + 5; _root.scorecard.two = 5; }Symbol 284 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } } stop(); HoleNum = 2; Par = 2; Score = 0; _root.scorecard.ParTwo = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(82, 132, 0, 356); l = createLine(l.x2, l.y2, 90, 118); l = createLine(l.x2, l.y2, 180, 356); l = createLine(l.x2, l.y2, 270, 118); l = createLine(209, 143, 0, 21); l = createLine(l.x2, l.y2, 90, 50); l = createLine(l.x2, l.y2, 180, 21); l = createLine(l.x2, l.y2, 270, 50); l = createLine(328, 187, 0, 21); l = createLine(l.x2, l.y2, 90, 50); l = createLine(l.x2, l.y2, 180, 21); l = createLine(l.x2, l.y2, 270, 50); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 117.6, 158.7, 141.6, 224); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.two = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 285 Buttonon (release) { nextFrame(); }Symbol 286 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h03") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; _root.scorecard.total = (one + two) + 6; _root.scorecard.three = 6; }Symbol 302 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function createNewLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 3342336, 15); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); newLineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(sand)) { if (BXdistance > BYdistance) { ballCD.xmov = ballCD.xmov * 0.5; ballCD.ymov = ballCD.ymov * 0.8; power = power * 0.5; playSound("sand"); } else { ballCD.xmov = ballCD.xmov * 0.8; ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.5; playSound("sand"); } xdiff = ballCD.tempx - xmark; ydiff = ballCD.tempy - ymark; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); l = createNewLine(xmark, ymark, degrees, distance); } } stop(); HoleNum = 3; Par = 3; Score = 0; _root.scorecard.ParThree = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; newLineArray = []; l = createLine(290, 92, 0, 116); l = createLine(l.x2, l.y2, 90, 74); l = createLine(l.x2, l.y2, 0, 18); l = createLine(l.x2, l.y2, 270, 33); l = createLine(l.x2, l.y2, 0, 17.5); l = createLine(l.x2, l.y2, 90, 200); l = createLine(l.x2, l.y2, 180, 366); l = createLine(l.x2, l.y2, 270, 200); l = createLine(l.x2, l.y2, 0, 198.5); l = createLine(l.x2, l.y2, 90, 33); l = createLine(l.x2, l.y2, 0, 16.5); l = createLine(l.x2, l.y2, 270, 74); l = createLine(158, 193, 0, 42); l = createLine(l.x2, l.y2, 135, 59.5); l = createLine(l.x2, l.y2, 270, 42); l = createLine(193, 293, 0, 59.5); l = createLine(l.x2, l.y2, 135, 42); l = createLine(l.x2, l.y2, 225, 42); l = createLine(355, 233, 315, 42); l = createLine(l.x2, l.y2, 90, 59.5); l = createLine(l.x2, l.y2, 225, 42); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 313, 111, 383, 141); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.three = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 303 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h04") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; _root.scorecard.total = ((one + two) + three) + 6; _root.scorecard.four = 6; }Symbol 317 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(slope)) { ballCD.ymov = ballCD.ymov - 0.3; playSound("slope"); } } stop(); HoleNum = 4; Par = 3; Score = 0; _root.scorecard.ParFour = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(114, 251, 0, 49); l = createLine(l.x2, l.y2, 270, 132); l = createLine(l.x2, l.y2, 315, 54); l = createLine(l.x2, l.y2, 0, 217); l = createLine(l.x2, l.y2, 45, 54); l = createLine(l.x2, l.y2, 90, 250); l = createLine(l.x2, l.y2, 180, 293); l = createLine(l.x2, l.y2, 270, 21.5); l = createLine(l.x2, l.y2, 180, 49); l = createLine(l.x2, l.y2, 270, 97); l = createLine(227.5, 244, 0, 18.5); l = createLine(l.x2, l.y2, 90, 85); l = createLine(l.x2, l.y2, 0, 127); l = createLine(l.x2, l.y2, 270, 85); l = createLine(l.x2, l.y2, 0, 18.5); l = createLine(l.x2, l.y2, 90, 102.5); l = createLine(l.x2, l.y2, 180, 164); l = createLine(l.x2, l.y2, 270, 102.5); l = createLine(178, 169.5, 0, 54); l = createLine(l.x2, l.y2, 135, 38); l = createLine(l.x2, l.y2, 225, 38); l = createLine(246, 169.5, 0, 54); l = createLine(l.x2, l.y2, 135, 38); l = createLine(l.x2, l.y2, 225, 38); l = createLine(316, 169.5, 0, 54); l = createLine(l.x2, l.y2, 135, 38); l = createLine(l.x2, l.y2, 225, 38); l = createLine(387, 169.5, 0, 54); l = createLine(l.x2, l.y2, 135, 38); l = createLine(l.x2, l.y2, 225, 38); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 129, 264.5, 158, 333.5); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.four = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 318 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h05") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; _root.scorecard.total = (((one + two) + three) + four) + 7; _root.scorecard.five = 7; }Symbol 325 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(3, 16763904, 100); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("ring"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } } stop(); HoleNum = 5; Par = 4; Score = 0; _root.scorecard.ParFive = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 40; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(262.8, 21.3, 36, 200); l = createLine(l.x2, l.y2, 108, 200); l = createLine(l.x2, l.y2, 180, 50); l = createLine(l.x2, l.y2, 90, 47.6); l = createLine(l.x2, l.y2, 180, 100); l = createLine(l.x2, l.y2, 270, 47.6); l = createLine(l.x2, l.y2, 180, 50); l = createLine(l.x2, l.y2, 252, 200); l = createLine(l.x2, l.y2, 324, 200); l = createLine(262.8, 52.1, 36, 160); l = createLine(l.x2, l.y2, 108, 160); l = createLine(l.x2, l.y2, 180, 160); l = createLine(133.2, 146.1, 324, 160); l = createLine(262.8, 82.8, 36, 120); l = createLine(l.x2, l.y2, 108, 120); l = createLine(l.x2, l.y2, 180, 120); l = createLine(l.x2, l.y2, 252, 120); l = createLine(327.5, 160.7, 108, 80); l = createLine(l.x2, l.y2, 180, 80); l = createLine(l.x2, l.y2, 252, 80); l = createLine(l.x2, l.y2, 324, 80); l = createLine(262.8, 144.3, 36, 40); l = createLine(282.8, 205.9, 180, 40); l = createLine(l.x2, l.y2, 252, 40); l = createLine(l.x2, l.y2, 324, 40); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 228, 329, 298, 358); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.five = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 326 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h06") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; _root.scorecard.total = ((((one + two) + three) + four) + five) + 6; _root.scorecard.six = 6; }Symbol 348 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(slope)) { ballCD.xmov = ballCD.xmov - 0.5; playSound("slope"); } if (_root.ball.hitTest(slope2)) { ballCD.ymov = ballCD.ymov + 0.5; playSound("slope"); } if (_root.ball.hitTest(holeA)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 300; ballCD.y = 253; ballCD.xmov = -4; ballCD.ymov = 9; playSound("puff"); } } if (_root.ball.hitTest(holeB)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 329; ballCD.y = 254; ballCD.xmov = 2; ballCD.ymov = 11; playSound("puff"); } } if (_root.ball.hitTest(holeC)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 356.5; ballCD.y = 254; ballCD.xmov = 0; ballCD.ymov = 9; playSound("puff"); } } if (_root.ball.hitTest(holeD)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 375.5; ballCD.y = 255.5; ballCD.xmov = -4; ballCD.ymov = 9; playSound("puff"); } } if (_root.ball.hitTest(holeE)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 407; ballCD.y = 255; ballCD.xmov = 2; ballCD.ymov = 11; playSound("puff"); } } if (_root.ball.hitTest(holeF)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 425; ballCD.y = 255; ballCD.xmov = 0; ballCD.ymov = 9; playSound("puff"); } } } stop(); HoleNum = 6; Par = 3; Score = 0; _root.scorecard.ParSix = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(68.8, 321.8, 270, 142.4); l = createLine(l.x2, l.y2, 315, 186.1); l = createLine(l.x2, l.y2, 0, 254.1); l = createLine(l.x2, l.y2, 90, 122.8); l = createLine(l.x2, l.y2, 180, 263.2); l = createLine(l.x2, l.y2, 90, 150.2); l = createLine(l.x2, l.y2, 180, 122.8); l = createLine(258.9, 247.7, 0, 177.2); l = createLine(l.x2, l.y2, 90, 122.8); l = createLine(l.x2, l.y2, 180, 177.2); l = createLine(l.x2, l.y2, 270, 122.8); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 96.5, 268, 166.5, 298); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.225; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.six = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 385 MovieClip Frame 310stop();Symbol 386 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h07") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; _root.scorecard.total = (((((one + two) + three) + four) + five) + six) + 5; _root.scorecard.seven = 5; }Symbol 404 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length, will) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.will = will; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { if (tempLine.will == "BL") { point.tempx = x - 49; point.tempy = y - 58.5; playSound("loop"); } else if (tempLine.will == "TL") { point.tempx = x + 49; point.tempy = y + 58.5; playSound("loop"); } else if (tempLine.will == "TR") { point.tempx = x - 53; point.tempy = y + 58.1; playSound("loop"); } else if (tempLine.will == "BR") { point.tempx = x + 53; point.tempy = y - 58.1; playSound("loop"); } else { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } } return(frames); } function ballCDlinereaction2() { moveBalls(); bankCollisionDetect(); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(slope)) { ballCD.xmov = ballCD.xmov + 0.5; } if (_root.ball.hitTest(slope2)) { ballCD.xmov = ballCD.xmov - 0.5; } if (_root.ball.hitTest(slope3)) { ballCD.xmov = ballCD.xmov + 0.5; } if (_root.ball.hitTest(slope4)) { ballCD.xmov = ballCD.xmov - 0.5; } } stop(); HoleNum = 7; Par = 2; Score = 0; _root.scorecard.ParSeven = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 100; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(91.5, 315.5, 270, 69.6, ""); l = createLine(l.x2, l.y2, 315, 41, ""); l = createLine(l.x2, l.y2, 0, 120.7, ""); l = createLine(l.x2, l.y2, 90, 42.2, "BL"); l = createLine(l.x2, l.y2, 180, 59.6, ""); l = createLine(l.x2, l.y2, 90, 9.3, ""); l = createLine(l.x2, l.y2, 0, 59.6, ""); l = createLine(l.x2, l.y2, 90, 47, ""); l = createLine(l.x2, l.y2, 180, 149.6, ""); l = createLine(187, 200.7, 270, 41.9, "TL"); l = createLine(l.x2, l.y2, 0, 58.9, ""); l = createLine(l.x2, l.y2, 270, 10.3, ""); l = createLine(l.x2, l.y2, 180, 58.9, ""); l = createLine(l.x2, l.y2, 270, 56.4, ""); l = createLine(l.x2, l.y2, 0, 148.8, ""); l = createLine(l.x2, l.y2, 90, 56.5, ""); l = createLine(l.x2, l.y2, 180, 63.1, ""); l = createLine(l.x2, l.y2, 90, 10.2, ""); l = createLine(l.x2, l.y2, 0, 62.7, ""); l = createLine(l.x2, l.y2, 90, 42, "TR"); l = createLine(l.x2, l.y2, 180, 148.8, ""); l = createLine(276.9, 315.4, 270, 47.1, ""); l = createLine(l.x2, l.y2, 0, 63.6, ""); l = createLine(l.x2, l.y2, 270, 9.3, ""); l = createLine(l.x2, l.y2, 180, 62, ""); l = createLine(l.x2, l.y2, 270, 42.4, "BR"); l = createLine(l.x2, l.y2, 0, 119.2, ""); l = createLine(l.x2, l.y2, 45, 41, ""); l = createLine(l.x2, l.y2, 90, 69.6, ""); l = createLine(l.x2, l.y2, 180, 149.6, ""); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 96, 282, 166, 312); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.seven = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 405 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h08") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; seven = _root.scorecard.seven; _root.scorecard.total = ((((((one + two) + three) + four) + five) + six) + seven) + 5; _root.scorecard.eight = 5; }Symbol 425 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(w1)) { ballCD.ymov = ballCD.ymov + 0.2; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(w2)) { ballCD.ymov = ballCD.ymov + 0.4; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(w3)) { ballCD.ymov = ballCD.ymov + 0.6; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(w4)) { ballCD.ymov = ballCD.ymov + 0.8; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(damper)) { ballCD.ymov = ballCD.ymov * 0.95; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(damper2)) { ballCD.ymov = ballCD.ymov * 0.85; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(damper3)) { ballCD.ymov = ballCD.ymov * 0.9; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } if (_root.ball.hitTest(damper4)) { ballCD.ymov = ballCD.ymov * 0.8; ballCD.xmov = ballCD.xmov * 0.95; playSound("splash"); } } stop(); HoleNum = 8; Par = 2; Score = 0; _root.scorecard.ParEight = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(357.4, 212.1, 270, 78.2); l = createLine(l.x2, l.y2, 0, 76.8); l = createLine(l.x2, l.y2, 90, 155.8); l = createLine(l.x2, l.y2, 135, 42.2); l = createLine(l.x2, l.y2, 180, 280.6); l = createLine(l.x2, l.y2, 225, 42.4); l = createLine(l.x2, l.y2, 270, 155.8); l = createLine(l.x2, l.y2, 0, 90.8); l = createLine(l.x2, l.y2, 90, 78.2); l = createLine(l.x2, l.y2, 0, 173); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 104, 145, 174, 175); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.eight = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 426 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h09") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; seven = _root.scorecard.seven; eight = _root.scorecard.eight; _root.scorecard.total = (((((((one + two) + three) + four) + five) + six) + seven) + eight) + 6; _root.scorecard.nine = 6; }Symbol 433 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } } stop(); HoleNum = 9; Par = 3; Score = 0; _root.scorecard.ParNine = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(83.5, 250, 0, 91.3); l = createLine(l.x2, l.y2, 270, 182.6); l = createLine(l.x2, l.y2, 0, 273.1); l = createLine(l.x2, l.y2, 90, 269.1); l = createLine(l.x2, l.y2, 180, 365.2); l = createLine(l.x2, l.y2, 270, 86.5); l = createLine(186.6, 74.8, 0, 42); l = createLine(l.x2, l.y2, 135, 59.5); l = createLine(l.x2, l.y2, 270, 42); l = createLine(249.3, 120.8, 45, 42); l = createLine(l.x2, l.y2, 135, 42); l = createLine(l.x2, l.y2, 270, 59.5); l = createLine(301.2, 146.8, 0, 59.5); l = createLine(l.x2, l.y2, 135, 42); l = createLine(l.x2, l.y2, 225, 42); l = createLine(245.3, 211.8, 0, 59.5); l = createLine(l.x2, l.y2, 135, 42); l = createLine(l.x2, l.y2, 225, 42); l = createLine(186.8, 203.3, 45, 59.5); l = createLine(l.x2, l.y2, 180, 42); l = createLine(l.x2, l.y2, 270, 42); l = createLine(291.7, 268.3, 90, 42); l = createLine(l.x2, l.y2, 180, 42); l = createLine(l.x2, l.y2, 315, 59.5); l = createLine(439, 284.5, 90, 42); l = createLine(l.x2, l.y2, 180, 42); l = createLine(l.x2, l.y2, 315, 59.5); l = createLine(321, 231.4, 315, 42); l = createLine(l.x2, l.y2, 90, 59.5); l = createLine(l.x2, l.y2, 225, 42); l = createLine(375, 108.4, 0, 42); l = createLine(l.x2, l.y2, 90, 42); l = createLine(l.x2, l.y2, 225, 59.5); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 95.2, 259, 125.2, 329); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.nine = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 434 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h10") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; seven = _root.scorecard.seven; eight = _root.scorecard.eight; nine = _root.scorecard.nine; _root.scorecard.total = ((((((((one + two) + three) + four) + five) + six) + seven) + eight) + nine) + 7; _root.scorecard.ten = 7; }Symbol 459 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(A)) { ballCD.xmov = ballCD.xmov - 0.5; playSound("slope"); } if (_root.ball.hitTest(B)) { ballCD.xmov = ballCD.xmov + 0.5; playSound("slope"); } if (_root.ball.hitTest(C)) { ballCD.Ymov = ballCD.Ymov - 0.5; playSound("slope"); } if (_root.ball.hitTest(D)) { ballCD.Ymov = ballCD.Ymov + 0.5; playSound("slope"); } if (_root.ball.hitTest(E)) { ballCD.xmov = ballCD.xmov - 0.5; playSound("slope"); } if (_root.ball.hitTest(F)) { ballCD.xmov = ballCD.xmov + 0.5; playSound("slope"); } if (_root.ball.hitTest(G)) { ballCD.xmov = ballCD.xmov - 0.5; playSound("slope"); } if (_root.ball.hitTest(H)) { ballCD.xmov = ballCD.xmov + 0.5; playSound("slope"); } if (_root.ball.hitTest(I)) { ballCD.ymov = ballCD.ymov + 1; playSound("slope"); } if (_root.ball.hitTest(J)) { ballCD.xmov = ballCD.xmov + 1; playSound("slope"); } if (_root.ball.hitTest(K)) { ballCD.ymov = ballCD.ymov + 1.5; ballCD.xmov = ballCD.xmov + 0.125; playSound("slope"); } if (_root.ball.hitTest(L)) { ballCD.ymov = ballCD.ymov - 1.5; ballCD.xmov = ballCD.xmov - 0.125; playSound("slope"); } if (_root.ball.hitTest(M)) { ballCD.xmov = ballCD.xmov - 0.125; playSound("slope"); } if (_root.ball.hitTest(N)) { ballCD.xmov = ballCD.xmov + 0.125; playSound("slope"); } if (_root.ball.hitTest(W1)) { _root.ball._visible = false; playSound("bloop"); ballMov = false; tellTarget ("../messages") { gotoAndPlay ("messFrog"); }; ballCD.xmov = 0; ballCD.ymov = 0; _root.putter._visible = false; Mouse.show(); ballCD.x = 272.1; ballCD.y = 107.3; Drop = true; } if (_root.ball.hitTest(W2)) { _root.ball._visible = false; playSound("bloop"); ballMov = false; tellTarget ("../messages") { gotoAndPlay ("messFrog"); }; ballCD.xmov = 0; ballCD.ymov = 0; _root.putter._visible = false; Mouse.show(); ballCD.x = 272.1; ballCD.y = 107.3; Drop = true; } } stop(); HoleNum = 10; Par = 4; Score = 0; _root.scorecard.ParTen = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; ballMov = false; Aim = false; Hit = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(214.9, 75.4, 0, 118.2); l = createLine(l.x2, l.y2, 90, 49); l = createLine(l.x2, l.y2, 0, 141.9); l = createLine(l.x2, l.y2, 90, 230.1); l = createLine(l.x2, l.y2, 180, 184.3); l = createLine(l.x2, l.y2, 225, 30.6); l = createLine(l.x2, l.y2, 135, 30.6); l = createLine(l.x2, l.y2, 180, 200.3); l = createLine(l.x2, l.y2, 270, 230.1); l = createLine(l.x2, l.y2, 0, 167); l = createLine(l.x2, l.y2, 270, 49); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 237.1, 92.2, 307.1, 122.2); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.ten = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 460 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h11") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; seven = _root.scorecard.seven; eight = _root.scorecard.eight; nine = _root.scorecard.nine; ten = _root.scorecard.ten; _root.scorecard.total = (((((((((one + two) + three) + four) + five) + six) + seven) + eight) + nine) + ten) + 6; _root.scorecard.eleven = 6; }Symbol 482 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 0.98; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { xmark = ballCD.x; ymark = ballCD.y; ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("WallHit"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("PuttSink"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } if (_root.ball.hitTest(slope)) { ballCD.xmov = ballCD.xmov - 0.5; } if (_root.ball.hitTest(slope2)) { ballCD.ymov = ballCD.ymov + 0.5; } if (_root.ball.hitTest(holeA)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 432.4; ballCD.y = 167.6; ballCD.xmov = -3; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeB)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 458.2; ballCD.y = 177.3; ballCD.xmov = 5; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeC)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 390.1; ballCD.y = 146.6; ballCD.xmov = 0; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeD)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 408.9; ballCD.y = 150.3; ballCD.xmov = 8; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeE)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 369.1; ballCD.y = 140.2; ballCD.xmov = 7; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeF)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 335.6; ballCD.y = 122.5; ballCD.xmov = 0; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeG)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 309.2; ballCD.y = 142.6; ballCD.xmov = 0; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeH)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 277.9; ballCD.y = 148.2; ballCD.xmov = 1; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeI)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 260.3; ballCD.y = 162.1; ballCD.xmov = -8; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeJ)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 416.1; ballCD.y = 164; ballCD.xmov = 5; ballCD.ymov = -10; playSound("flute"); } } if (_root.ball.hitTest(holeK)) { if (Number(power) > 15) { if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { ballCD.x = 241.2; ballCD.y = 178.3; ballCD.xmov = -7; ballCD.ymov = -10; playSound("flute"); } } } stop(); HoleNum = 11; Par = 3; Score = 0; _root.scorecard.ParEleven = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(220.9, 51.6, 0, 249.2); l = createLine(l.x2, l.y2, 90, 130.8); l = createLine(l.x2, l.y2, 180, 248.8); l = createLine(l.x2, l.y2, 270, 130.8); l = createLine(51, 144.1, 0, 154.8); l = createLine(l.x2, l.y2, 90, 128.9); l = createLine(l.x2, l.y2, 0, 15.2); l = createLine(l.x2, l.y2, 270, 75.3); l = createLine(l.x2, l.y2, 0, 248.8); l = createLine(l.x2, l.y2, 90, 154.8); l = createLine(l.x2, l.y2, 180, 419.2); l = createLine(l.x2, l.y2, 270, 208.4); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 92.5, 165.2, 162.5, 195.2); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.3; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.eleven = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 483 Buttonon (keyPress "s") { nextFrame(); tellTarget ("h12") { stopDrag(); ballMov = false; Aim = false; Hit = false; Drop = false; }; _root.ball._visible = false; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; tellTarget ("messages") { gotoAndStop ("messOver"); }; _root.messages.over = 3; one = _root.scorecard.one; two = _root.scorecard.two; three = _root.scorecard.three; four = _root.scorecard.four; five = _root.scorecard.five; six = _root.scorecard.six; seven = _root.scorecard.seven; eight = _root.scorecard.eight; nine = _root.scorecard.nine; ten = _root.scorecard.ten; eleven = _root.scorecard.eleven; _root.scorecard.total = ((((((((((one + two) + three) + four) + five) + six) + seven) + eight) + nine) + ten) + eleven) + 5; _root.scorecard.twelve = 5; }Symbol 490 MovieClip Frame 1function playSound(name) { if (soundOn) { _root.soundfx.gotoAndStop(name); } } function createLine(x, y, angle, length) { lineDepth = ++depth; name = "line" + lineDepth; clipName = "line_clip" + lineDepth; this.attachMovie("bank", clipName, lineDepth); this[name] = {}; ob = this[name]; ob.lineDecay = 1.25; ob.length = length; if (angle == 0) { angle = 1E-7; } if (angle == 90) { angle = 90.0000001; } if (angle == 180) { angle = 180.0000001; } if (angle == 270) { angle = 270.0000001; } ob.realAngle = angle; ob.angle = ob.realAngle * (Math.PI/180); ob.clip = this[clipName]; ob.clip._x = x; ob.clip._y = y; ob.clip._rotation = ob.realAngle; ob.slope = Math.tan(ob.angle); ob.sinAngle = Math.sin(ob.angle); ob.cosAngle = Math.cos(ob.angle); ob.x = ob.clip._x; ob.y = ob.clip._y; ob.b = ob.y - (ob.slope * ob.x); ob.clip.lineStyle(0, 0, 0); ob.clip.lineTo(ob.length, 0); ob.x1 = ob.x; ob.y1 = ob.y; ob.x2 = ob.x + (ob.length * ob.cosAngle); ob.y2 = ob.y + (ob.length * ob.sinAngle); lineArray.push(ob); return(ob); } function moveBalls() { ballCD.xmov = ballCD.xmov * Decay; ballCD.ymov = ballCD.ymov * Decay; velocity = Math.sqrt((ballCD.xmov * ballCD.xmov) + (ballCD.ymov * ballCD.ymov)); if (Number(velocity) < 0.08) { ballCD.xmov = 0; ballCD.ymov = 0; ballMov = false; Hit = false; Aim = true; } ballCD.tempx = ballCD.x + ballCD.xmov; ballCD.tempy = ballCD.y + ballCD.ymov; } function bankCollisionDetect() { var i = 0; while (i < lineArray.length) { getFrames(lineArray[i], ballCD); i++; } } function render() { ballCD.x = ballCD.tempx; ballCD.y = ballCD.tempy; ballCD.clip._x = ballCD.x; ballCD.clip._y = ballCD.y; } function getFrames(tempLine, point) { var slope2 = (point.ymov / point.xmov); if (slope2 == Number.POSITIVE_INFINITY) { var slope2 = 1000000; } else if (slope2 == Number.NEGATIVE_INFINITY) { var slope2 = -1000000; } var b2 = (point.y - (slope2 * point.x)); var x = ((b2 - tempLine.b) / (tempLine.slope - slope2)); var y = ((tempLine.slope * x) + tempLine.b); if ((((x >= tempLine.x1) && (x <= tempLine.x2)) || ((x <= tempLine.x1) && (x >= tempLine.x2))) || (((y >= tempLine.y1) && (y <= tempLine.y2)) || ((y <= tempLine.y1) && (y >= tempLine.y2)))) { var segment_a = true; } else { var segment_a = false; } if ((((x > point.x) && (x < point.tempx)) || ((x < point.x) && (x > point.tempx))) || (((y > point.y) && (y < point.tempy)) || ((y < point.y) && (y > point.tempy)))) { var segment_b = true; } else { var segment_b = false; } if (segment_a && (segment_b == true)) { var dis = Math.sqrt(((x - point.x) * (x - point.x)) + ((y - point.y) * (y - point.y))); var vel = Math.sqrt((point.xmov * point.xmov) + (point.ymov * point.ymov)); var frames = (dis / vel); } else { var frames = 1000; } if ((frames >= 0) && (frames <= 1)) { ballCDlinereaction(tempLine, point, x, y); playSound("drum"); } return(frames); } function ballCDlinereaction(tempLine, point, x, y) { var lineDecay = tempLine.lineDecay; var alpha = tempLine.angle; var cosAlpha = Math.cos(alpha); var sinAlpha = Math.sin(alpha); var vyi = point.ymov; var vxi = point.xmov; var vyip = ((vyi * cosAlpha) - (vxi * sinAlpha)); var vxip = ((vxi * cosAlpha) + (vyi * sinAlpha)); var vyfp = ((-vyip) * lineDecay); var vxfp = vxip; var vyf = ((vyfp * cosAlpha) + (vxfp * sinAlpha)); var vxf = ((vxfp * cosAlpha) - (vyfp * sinAlpha)); point.xmov = vxf; point.ymov = vyf; point.tempx = x + point.xmov; point.tempy = y + point.ymov; moveBalls(); bankCollisionDetect(); } function checkHitTest() { if (_root.ball.hitTest(hole)) { if (Number(power) > 15) { BXdistance = Math.sqrt(ballCD.xmov * ballCD.xmov); BYdistance = Math.sqrt(ballCD.ymov * ballCD.ymov); if (BXdistance > BYdistance) { ballCD.ymov = ballCD.ymov * 0.5; power = power * 0.8; playSound("muff"); } else { ballCD.xmov = ballCD.xmov * 0.5; power = power * 0.8; playSound("muff"); } } else { playSound("crash"); ballMov = false; Aim = false; Hit = false; Drop = false; _root.ball._visible = false; tellTarget ("hole") { gotoAndStop ("holeSink"); }; _root.arrow._visible = false; Mouse.show(); _root.putter._visible = false; switch (Score) { case 1 : tellTarget ("../messages") { gotoAndStop ("messOne"); }; break; case Par - 3 : tellTarget ("../messages") { gotoAndStop ("messAlbatross"); }; break; case Par - 2 : tellTarget ("../messages") { gotoAndStop ("messEagle"); }; break; case Par - 1 : tellTarget ("../messages") { gotoAndStop ("messBirdie"); }; break; case Par : tellTarget ("../messages") { gotoAndStop ("messPar"); }; break; case Par + 1 : tellTarget ("../messages") { gotoAndStop ("messBogie"); }; break; default : tellTarget ("../messages") { gotoAndStop ("messOver"); }; _root.messages.over = Score - Par; } tellTarget ("_level0") { nextFrame(); }; } } } stop(); HoleNum = 12; Par = 2; Score = 0; _root.scorecard.ParTwelve = int(Par); tellTarget ("../messages") { gotoAndStop ("messDefault"); }; _root.holePar = int(Par); _root.scorecard.parTotal = _root.scorecard.parTotal + int(Par); _root.putter._visible = false; _root.arrow._visible = false; reaction = false; Drop = true; Aim = false; Hit = false; ballMov = false; SoundOn = true; segment_a = false; segment_b = false; depth = 10; decay = 0.96; Maxpower = 35; ballCD = {}; ballCD.clip = _root.ball; ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; lineArray = []; l = createLine(235, 30, 0, 80); l = createLine(l.x2, l.y2, 30, 80); l = createLine(l.x2, l.y2, 60, 80); l = createLine(l.x2, l.y2, 90, 80); l = createLine(l.x2, l.y2, 120, 80); l = createLine(l.x2, l.y2, 150, 80); l = createLine(l.x2, l.y2, 180, 80); l = createLine(l.x2, l.y2, 210, 80); l = createLine(l.x2, l.y2, 240, 80); l = createLine(l.x2, l.y2, 270, 80); l = createLine(l.x2, l.y2, 300, 80); l = createLine(l.x2, l.y2, 330, 80); l = createLine(270.8, 196.6, 0, 9.8); l = createLine(l.x2, l.y2, 105, 18.9); l = createLine(l.x2, l.y2, 240, 18.9); _root.onMouseMove = function () { if (Drop == true) { startDrag (_root.ball, true, 243, 291, 313, 321); _root.ball._visible = true; } if (ballMov == true) { updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; } if (Aim == true) { ball_x = getProperty("../ball", _x); ball_y = getProperty("../ball", _y); setProperty("../arrow", _x , ball_x); setProperty("../arrow", _y , ball_y); updateAfterEvent(); mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); xdiff = ball_x - mouse_x; ydiff = ball_y - mouse_y; ball_angle = Math.atan2(ydiff, xdiff); degrees = ball_angle * 57.2957795130823; _root.putter._rotation = degrees; _root.arrow._rotation = degrees; _root.arrow._visible = true; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); _root.arrow._xscale = distance; power = distance * 0.2; if (Number(power) > Maxpower) { power = Maxpower; tellTarget ("../arrow") { gotoAndStop ("red"); }; } else { tellTarget ("../arrow") { gotoAndStop ("green"); }; } ballCD.xmov = Math.cos(ball_angle) * power; ballCD.ymov = Math.sin(ball_angle) * power; Hit = true; } }; _root.onMouseDown = function () { if (Drop == true) { stopDrag(); ballCD.x = ballCD.clip._x; ballCD.y = ballCD.clip._y; mouse_x = _root._xmouse; mouse_y = _root._ymouse; setProperty("../putter", _x , mouse_x); setProperty("../putter", _y , mouse_y); _root.putter._visible = true; Mouse.hide(); Drop = false; Aim = true; } if (Hit == true) { if (ballMov == true) { } else { Aim = false; Score = Score + 1; _root.scorecard.twelve = int(Score); _root.scorecard.total = _root.scorecard.total + 1; setProperty("../putter", _x , ballCD.x); setProperty("../putter", _y , ballCD.y); playSound("PuttHit"); _root.arrow._visible = false; ballMov = true; } } }; _root.onEnterFrame = function () { if (ballMov == true) { moveBalls(); bankCollisionDetect(); render(); checkHitTest(); } };Symbol 491 Buttonon (press) { gotoAndPlay (1212); }Symbol 495 Buttonon (release) { getURL ("http://www.sitedynamics.com"); }Symbol 499 MovieClip Frame 325gotoAndPlay (251);Symbol 509 Buttonon (press) { getURL ("http://www.sitedynamics.com/refer_p.php", "_blank", "POST"); }Symbol 511 Buttonon (release) { gotoAndPlay (130); }Symbol 512 Buttonon (release) { _root.scorecard.one = ""; _root.scorecard.two = ""; _root.scorecard.three = ""; _root.scorecard.four = ""; _root.scorecard.five = ""; _root.scorecard.six = ""; _root.scorecard.seven = ""; _root.scorecard.eight = ""; _root.scorecard.nine = ""; _root.scorecard.ten = ""; _root.scorecard.eleven = ""; _root.scorecard.twelve = ""; _root.scorecard.total = ""; gotoAndPlay (130); }
Library Items
Symbol 1 Graphic | Used by:2 | |
Symbol 2 MovieClip | Uses:1 | Used by:Timeline |
Symbol 3 Graphic | Used by:Timeline | |
Symbol 4 Graphic | Used by:Timeline | |
Symbol 5 Bitmap | Used by:6 | |
Symbol 6 Graphic | Uses:5 | Used by:Timeline |
Symbol 7 Graphic | Used by:Timeline | |
Symbol 8 Graphic | Used by:Timeline | |
Symbol 9 Graphic | Used by:Timeline | |
Symbol 10 Graphic | Used by:Timeline | |
Symbol 11 Graphic | Used by:15 | |
Symbol 12 Graphic | Used by:15 | |
Symbol 13 Graphic | Used by:15 | |
Symbol 14 Graphic | Used by:15 | |
Symbol 15 MovieClip | Uses:11 12 13 14 | Used by:Timeline |
Symbol 16 Bitmap | Used by:17 | |
Symbol 17 Graphic | Uses:16 | Used by:Timeline |
Symbol 18 Graphic | Used by:Timeline | |
Symbol 19 Graphic | Used by:21 22 23 24 | |
Symbol 20 Graphic | Used by:21 22 23 24 | |
Symbol 21 MovieClip | Uses:19 20 | Used by:Timeline |
Symbol 22 MovieClip | Uses:19 20 | Used by:Timeline |
Symbol 23 MovieClip | Uses:19 20 | Used by:Timeline |
Symbol 24 MovieClip | Uses:19 20 | Used by:Timeline |
Symbol 25 Graphic | Used by:164 Timeline | |
Symbol 26 Graphic | Used by:164 Timeline | |
Symbol 27 Graphic | Used by:30 | |
Symbol 28 Graphic | Used by:30 | |
Symbol 29 Graphic | Used by:30 165 195 196 205 206 276 286 303 318 326 386 405 426 434 460 483 495 | |
Symbol 30 Button | Uses:27 28 29 | Used by:Timeline |
Symbol 31 Graphic | Used by:Timeline | |
Symbol 32 Graphic | Used by:192 Timeline | |
Symbol 33 Graphic | Used by:69 | |
Symbol 34 Graphic | Used by:69 | |
Symbol 35 Graphic | Used by:69 | |
Symbol 36 Graphic | Used by:69 | |
Symbol 37 Graphic | Used by:69 | |
Symbol 38 Graphic | Used by:69 | |
Symbol 39 Graphic | Used by:69 | |
Symbol 40 Graphic | Used by:69 | |
Symbol 41 Graphic | Used by:69 | |
Symbol 42 Graphic | Used by:69 | |
Symbol 43 Graphic | Used by:69 | |
Symbol 44 Graphic | Used by:69 | |
Symbol 45 Graphic | Used by:69 | |
Symbol 46 Graphic | Used by:69 | |
Symbol 47 Graphic | Used by:69 | |
Symbol 48 Graphic | Used by:69 | |
Symbol 49 Graphic | Used by:69 | |
Symbol 50 Graphic | Used by:69 | |
Symbol 51 Graphic | Used by:69 | |
Symbol 52 Graphic | Used by:69 | |
Symbol 53 Graphic | Used by:69 | |
Symbol 54 Graphic | Used by:69 | |
Symbol 55 Graphic | Used by:69 | |
Symbol 56 Graphic | Used by:69 | |
Symbol 57 Graphic | Used by:69 | |
Symbol 58 Graphic | Used by:69 | |
Symbol 59 Graphic | Used by:69 | |
Symbol 60 Graphic | Used by:69 | |
Symbol 61 Graphic | Used by:69 | |
Symbol 62 Graphic | Used by:69 | |
Symbol 63 Graphic | Used by:69 | |
Symbol 64 Graphic | Used by:69 | |
Symbol 65 Graphic | Used by:69 | |
Symbol 66 Graphic | Used by:69 | |
Symbol 67 Graphic | Used by:69 | |
Symbol 68 Graphic | Used by:69 | |
Symbol 69 MovieClip | Uses:33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | Used by:Timeline |
Symbol 70 Graphic | Used by:Timeline | |
Symbol 71 Graphic | Used by:107 | |
Symbol 72 Graphic | Used by:107 | |
Symbol 73 Graphic | Used by:107 | |
Symbol 74 Graphic | Used by:107 | |
Symbol 75 Graphic | Used by:107 | |
Symbol 76 Graphic | Used by:107 | |
Symbol 77 Graphic | Used by:107 | |
Symbol 78 Graphic | Used by:107 | |
Symbol 79 Graphic | Used by:107 | |
Symbol 80 Graphic | Used by:107 | |
Symbol 81 Graphic | Used by:107 | |
Symbol 82 Graphic | Used by:107 | |
Symbol 83 Graphic | Used by:107 | |
Symbol 84 Graphic | Used by:107 | |
Symbol 85 Graphic | Used by:107 | |
Symbol 86 Graphic | Used by:107 | |
Symbol 87 Graphic | Used by:107 | |
Symbol 88 Graphic | Used by:107 | |
Symbol 89 Graphic | Used by:107 | |
Symbol 90 Graphic | Used by:107 | |
Symbol 91 Graphic | Used by:107 | |
Symbol 92 Graphic | Used by:107 | |
Symbol 93 Graphic | Used by:107 | |
Symbol 94 Graphic | Used by:107 | |
Symbol 95 Graphic | Used by:107 | |
Symbol 96 Graphic | Used by:107 | |
Symbol 97 Graphic | Used by:107 | |
Symbol 98 Graphic | Used by:107 | |
Symbol 99 Graphic | Used by:107 | |
Symbol 100 Graphic | Used by:107 | |
Symbol 101 Graphic | Used by:107 | |
Symbol 102 Graphic | Used by:107 | |
Symbol 103 Graphic | Used by:107 | |
Symbol 104 Graphic | Used by:107 | |
Symbol 105 Graphic | Used by:107 | |
Symbol 106 Graphic | Used by:107 | |
Symbol 107 MovieClip | Uses:71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | Used by:Timeline |
Symbol 108 Graphic | Used by:114 | |
Symbol 109 Graphic | Used by:114 | |
Symbol 110 Graphic | Used by:114 | |
Symbol 111 Graphic | Used by:114 | |
Symbol 112 Graphic | Used by:114 | |
Symbol 113 Graphic | Used by:114 | |
Symbol 114 MovieClip | Uses:108 109 110 111 112 113 | Used by:Timeline |
Symbol 115 Graphic | Used by:Timeline | |
Symbol 116 Graphic | Used by:122 | |
Symbol 117 Graphic | Used by:122 | |
Symbol 118 Graphic | Used by:122 | |
Symbol 119 Graphic | Used by:122 | |
Symbol 120 Graphic | Used by:122 | |
Symbol 121 Graphic | Used by:122 | |
Symbol 122 MovieClip | Uses:116 117 118 119 120 121 | Used by:Timeline |
Symbol 123 Graphic | Used by:Timeline | |
Symbol 124 Graphic | Used by:127 173 174 175 | |
Symbol 125 Graphic | Used by:127 173 174 175 | |
Symbol 126 Graphic | Used by:127 173 174 175 | |
Symbol 127 Button | Uses:124 125 126 | Used by:Timeline |
Symbol 128 Graphic | Used by:129 | |
Symbol 129 Button | Uses:128 | Used by:Timeline |
Symbol 130 Font | Used by:131 132 133 134 135 136 137 138 139 140 141 155 156 213 278 288 305 320 328 388 407 428 436 462 485 | |
Symbol 131 EditableText | Uses:130 | Used by:164 |
Symbol 132 EditableText | Uses:130 | Used by:164 |
Symbol 133 EditableText | Uses:130 | Used by:164 |
Symbol 134 EditableText | Uses:130 | Used by:164 |
Symbol 135 EditableText | Uses:130 | Used by:164 |
Symbol 136 EditableText | Uses:130 | Used by:164 |
Symbol 137 EditableText | Uses:130 | Used by:164 |
Symbol 138 EditableText | Uses:130 | Used by:164 |
Symbol 139 EditableText | Uses:130 | Used by:164 |
Symbol 140 EditableText | Uses:130 | Used by:164 |
Symbol 141 EditableText | Uses:130 | Used by:164 |
Symbol 142 Font | Used by:143 144 145 146 147 148 149 150 151 152 153 154 157 158 500 501 502 503 | |
Symbol 143 EditableText | Uses:142 | Used by:164 |
Symbol 144 EditableText | Uses:142 | Used by:164 |
Symbol 145 EditableText | Uses:142 | Used by:164 |
Symbol 146 EditableText | Uses:142 | Used by:164 |
Symbol 147 EditableText | Uses:142 | Used by:164 |
Symbol 148 EditableText | Uses:142 | Used by:164 |
Symbol 149 EditableText | Uses:142 | Used by:164 |
Symbol 150 EditableText | Uses:142 | Used by:164 |
Symbol 151 EditableText | Uses:142 | Used by:164 |
Symbol 152 EditableText | Uses:142 | Used by:164 |
Symbol 153 EditableText | Uses:142 | Used by:164 |
Symbol 154 EditableText | Uses:142 | Used by:164 |
Symbol 155 EditableText | Uses:130 | Used by:164 |
Symbol 156 EditableText | Uses:130 | Used by:164 |
Symbol 157 EditableText | Uses:142 | Used by:164 |
Symbol 158 EditableText | Uses:142 | Used by:164 |
Symbol 159 Graphic | Used by:164 | |
Symbol 160 Graphic | Used by:164 | |
Symbol 161 Graphic | Used by:164 | |
Symbol 162 Graphic | Used by:164 | |
Symbol 163 Graphic | Used by:164 | |
Symbol 164 MovieClip | Uses:131 132 133 134 135 136 137 138 139 140 141 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 25 26 163 | Used by:Timeline |
Symbol 165 Button | Uses:29 | Used by:168 |
Symbol 166 Graphic | Used by:168 | |
Symbol 167 Graphic | Used by:168 | |
Symbol 168 MovieClip | Uses:165 166 167 | Used by:Timeline |
Symbol 169 Graphic | Used by:170 | |
Symbol 170 MovieClip | Uses:169 | Used by:Timeline |
Symbol 171 Graphic | Used by:Timeline | |
Symbol 172 Graphic | Used by:Timeline | |
Symbol 173 Button | Uses:124 125 126 | Used by:Timeline |
Symbol 174 Button | Uses:124 125 126 | Used by:Timeline |
Symbol 175 Button | Uses:124 125 126 | Used by:Timeline |
Symbol 176 Graphic | Used by:177 | |
Symbol 177 MovieClip | Uses:176 | Used by:192 |
Symbol 178 Font | Used by:179 | |
Symbol 179 EditableText | Uses:178 | Used by:192 |
Symbol 180 Graphic | Used by:181 | |
Symbol 181 MovieClip | Uses:180 | Used by:191 192 509 |
Symbol 182 Graphic | Used by:191 509 | |
Symbol 183 Graphic | Used by:191 | |
Symbol 184 Graphic | Used by:191 | |
Symbol 185 Graphic | Used by:191 | |
Symbol 186 Graphic | Used by:191 509 | |
Symbol 187 Graphic | Used by:191 275 285 491 509 | |
Symbol 188 Graphic | Used by:191 275 285 491 509 | |
Symbol 189 Sound | Used by:191 235 275 285 491 509 | |
Symbol 190 Sound | Used by:191 275 285 491 509 | |
Symbol 191 Button | Uses:182 183 184 185 181 186 187 188 189 190 | Used by:192 |
Symbol 192 MovieClip | Uses:177 32 179 181 191 | Used by:Timeline |
Symbol 193 Graphic | Used by:Timeline | |
Symbol 194 Sound | Used by:Timeline | |
Symbol 195 Button | Uses:29 | Used by:Timeline |
Symbol 196 Button | Uses:29 | Used by:204 |
Symbol 197 Graphic | Used by:204 | |
Symbol 198 Graphic | Used by:204 | |
Symbol 199 Bitmap | Used by:200 | |
Symbol 200 Graphic | Uses:199 | Used by:204 |
Symbol 201 Graphic | Used by:204 | |
Symbol 202 Graphic | Used by:204 | |
Symbol 203 Graphic | Used by:204 | |
Symbol 204 MovieClip | Uses:196 197 200 198 201 202 203 SS2 | Used by:Timeline |
Symbol 205 Button | Uses:29 | Used by:210 |
Symbol 206 Button | Uses:29 | Used by:210 |
Symbol 207 Font | Used by:208 | |
Symbol 208 Text | Uses:207 | Used by:210 |
Symbol 209 Graphic | Used by:210 348 Timeline | |
Symbol 210 MovieClip | Uses:205 206 208 209 | Used by:Timeline |
Symbol 211 Graphic | Used by:Timeline | |
Symbol 212 Graphic | Used by:Timeline | |
Symbol 213 EditableText | Uses:130 | Used by:Timeline |
Symbol 214 Graphic | Used by:Timeline | |
Symbol 215 Graphic | Used by:Timeline | |
Symbol 216 Graphic | Used by:Timeline | |
Symbol 217 Graphic | Used by:Timeline | |
Symbol 218 Font | Used by:219 254 | |
Symbol 219 Text | Uses:218 | Used by:235 |
Symbol 220 Sound | Used by:235 | |
Symbol 221 Sound | Used by:235 | |
Symbol 222 Sound | Used by:235 | |
Symbol 223 Sound | Used by:235 | |
Symbol 224 Sound | Used by:235 | |
Symbol 225 Sound | Used by:235 | |
Symbol 226 Sound | Used by:235 | |
Symbol 227 Sound | Used by:235 | |
Symbol 228 Sound | Used by:235 | |
Symbol 229 Sound | Used by:235 | |
Symbol 230 Sound | Used by:235 | |
Symbol 231 Sound | Used by:235 | |
Symbol 232 Sound | Used by:235 | |
Symbol 233 Sound | Used by:235 | |
Symbol 234 Sound | Used by:235 | |
Symbol 235 MovieClip | Uses:219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 189 | Used by:Timeline |
Symbol 236 Graphic | Used by:237 | |
Symbol 237 MovieClip | Uses:236 | Used by:Timeline |
Symbol 238 Graphic | Used by:256 | |
Symbol 239 Graphic | Used by:256 | |
Symbol 240 Graphic | Used by:256 | |
Symbol 241 Graphic | Used by:256 | |
Symbol 242 Graphic | Used by:256 | |
Symbol 243 Graphic | Used by:256 | |
Symbol 244 Graphic | Used by:256 | |
Symbol 245 Graphic | Used by:256 | |
Symbol 246 Graphic | Used by:256 | |
Symbol 247 Graphic | Used by:256 | |
Symbol 248 Graphic | Used by:256 | |
Symbol 249 Graphic | Used by:256 | |
Symbol 250 Graphic | Used by:256 | |
Symbol 251 Graphic | Used by:256 | |
Symbol 252 Graphic | Used by:256 | |
Symbol 253 Graphic | Used by:256 | |
Symbol 254 EditableText | Uses:218 | Used by:256 |
Symbol 255 Graphic | Used by:256 | |
Symbol 256 MovieClip | Uses:238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | Used by:Timeline |
Symbol 257 Graphic | Used by:259 | |
Symbol 258 Graphic | Used by:259 | |
Symbol 259 MovieClip | Uses:257 258 | Used by:270 284 302 317 325 348 404 425 433 459 482 490 |
Symbol 260 Graphic | Used by:270 | |
Symbol 261 MovieClip [bank] | Used by:270 284 302 317 325 348 404 425 433 459 482 490 | |
Symbol 262 Graphic | Used by:270 | |
Symbol 263 Graphic | Used by:270 | |
Symbol 264 Graphic | Used by:270 | |
Symbol 265 Graphic | Used by:270 284 302 317 325 348 404 425 433 459 482 490 | |
Symbol 266 Bitmap | Used by:267 | |
Symbol 267 Graphic | Uses:266 | Used by:270 284 302 317 325 348 404 425 433 459 482 490 |
Symbol 268 Graphic | Used by:270 284 302 317 325 348 404 425 433 459 482 490 | |
Symbol 269 Graphic | Used by:270 284 | |
Symbol 270 MovieClip | Uses:259 260 261 262 263 264 267 265 268 269 | Used by:Timeline |
Symbol 271 Graphic | Used by:274 275 285 491 | |
Symbol 272 Graphic | Used by:275 285 491 | |
Symbol 273 Graphic | Used by:274 275 285 491 | |
Symbol 274 MovieClip | Uses:273 271 | Used by:275 285 491 |
Symbol 275 Button | Uses:271 272 274 187 273 188 189 190 | Used by:Timeline |
Symbol 276 Button | Uses:29 | Used by:Timeline |
Symbol 277 Graphic | Used by:Timeline | |
Symbol 278 EditableText | Uses:130 | Used by:Timeline |
Symbol 279 Graphic | Used by:280 | |
Symbol 280 MovieClip | Uses:279 | Used by:284 |
Symbol 281 Graphic | Used by:284 | |
Symbol 282 Graphic | Used by:284 | |
Symbol 283 Graphic | Used by:284 | |
Symbol 284 MovieClip | Uses:280 281 259 282 261 283 267 265 268 269 | Used by:Timeline |
Symbol 285 Button | Uses:271 272 274 187 273 188 189 190 | Used by:Timeline |
Symbol 286 Button | Uses:29 | Used by:Timeline |
Symbol 287 Graphic | Used by:Timeline | |
Symbol 288 EditableText | Uses:130 | Used by:Timeline |
Symbol 289 Graphic | Used by:302 | |
Symbol 290 Graphic | Used by:302 317 404 425 | |
Symbol 291 Graphic | Used by:302 | |
Symbol 292 Graphic | Used by:296 | |
Symbol 293 Bitmap | Used by:294 | |
Symbol 294 Graphic | Uses:293 | Used by:296 |
Symbol 295 Graphic | Used by:296 | |
Symbol 296 MovieClip | Uses:292 294 295 | Used by:302 |
Symbol 297 Graphic | Used by:302 | |
Symbol 298 Graphic | Used by:302 | |
Symbol 299 Graphic | Used by:302 | |
Symbol 300 Graphic | Used by:302 | |
Symbol 301 Graphic | Used by:302 | |
Symbol 302 MovieClip | Uses:289 290 291 296 297 259 298 261 299 300 267 265 268 301 | Used by:Timeline |
Symbol 303 Button | Uses:29 | Used by:Timeline |
Symbol 304 Graphic | Used by:Timeline | |
Symbol 305 EditableText | Uses:130 | Used by:Timeline |
Symbol 306 Graphic | Used by:317 | |
Symbol 307 Graphic | Used by:317 | |
Symbol 308 Graphic | Used by:317 | |
Symbol 309 Graphic | Used by:317 | |
Symbol 310 Graphic | Used by:317 | |
Symbol 311 Graphic | Used by:317 | |
Symbol 312 Graphic | Used by:313 | |
Symbol 313 MovieClip | Uses:312 | Used by:317 |
Symbol 314 Graphic | Used by:315 | |
Symbol 315 MovieClip | Uses:314 | Used by:317 348 |
Symbol 316 Graphic | Used by:317 | |
Symbol 317 MovieClip | Uses:261 306 290 307 259 308 309 310 267 265 268 311 313 315 316 | Used by:Timeline |
Symbol 318 Button | Uses:29 | Used by:Timeline |
Symbol 319 Graphic | Used by:Timeline | |
Symbol 320 EditableText | Uses:130 | Used by:Timeline |
Symbol 321 Graphic | Used by:325 | |
Symbol 322 Graphic | Used by:325 | |
Symbol 323 Graphic | Used by:325 | |
Symbol 324 Graphic | Used by:325 | |
Symbol 325 MovieClip | Uses:261 259 321 322 323 267 265 268 324 | Used by:Timeline |
Symbol 326 Button | Uses:29 | Used by:Timeline |
Symbol 327 Graphic | Used by:Timeline | |
Symbol 328 EditableText | Uses:130 | Used by:Timeline |
Symbol 329 Graphic | Used by:348 Timeline | |
Symbol 330 Graphic | Used by:348 482 Timeline | |
Symbol 331 Graphic | Used by:Timeline | |
Symbol 332 Graphic | Used by:348 | |
Symbol 333 Graphic | Used by:348 | |
Symbol 334 Graphic | Used by:348 | |
Symbol 335 Graphic | Used by:348 | |
Symbol 336 Graphic | Used by:348 | |
Symbol 337 Graphic | Used by:348 | |
Symbol 338 Graphic | Used by:348 | |
Symbol 339 Graphic | Used by:348 | |
Symbol 340 Graphic | Used by:348 | |
Symbol 341 Graphic | Used by:348 | |
Symbol 342 Graphic | Used by:348 | |
Symbol 343 Graphic | Used by:348 | |
Symbol 344 Graphic | Used by:348 | |
Symbol 345 Graphic | Used by:346 | |
Symbol 346 MovieClip | Uses:345 | Used by:348 |
Symbol 347 Graphic | Used by:348 | |
Symbol 348 MovieClip | Uses:261 259 332 333 334 335 336 337 338 329 330 339 209 340 341 342 267 265 268 343 344 346 315 347 | Used by:Timeline |
Symbol 349 Graphic | Used by:352 | |
Symbol 350 Bitmap | Used by:351 | |
Symbol 351 Graphic | Uses:350 | Used by:352 |
Symbol 352 MovieClip | Uses:351 349 | Used by:385 |
Symbol 353 Graphic | Used by:356 | |
Symbol 354 Bitmap | Used by:355 | |
Symbol 355 Graphic | Uses:354 | Used by:356 |
Symbol 356 MovieClip | Uses:355 353 | Used by:385 |
Symbol 357 Graphic | Used by:360 | |
Symbol 358 Bitmap | Used by:359 | |
Symbol 359 Graphic | Uses:358 | Used by:360 |
Symbol 360 MovieClip | Uses:359 357 | Used by:385 |
Symbol 361 Graphic | Used by:364 | |
Symbol 362 Bitmap | Used by:363 | |
Symbol 363 Graphic | Uses:362 | Used by:364 |
Symbol 364 MovieClip | Uses:363 361 | Used by:385 |
Symbol 365 Graphic | Used by:368 | |
Symbol 366 Bitmap | Used by:367 | |
Symbol 367 Graphic | Uses:366 | Used by:368 |
Symbol 368 MovieClip | Uses:367 365 | Used by:385 |
Symbol 369 Graphic | Used by:372 | |
Symbol 370 Bitmap | Used by:371 | |
Symbol 371 Graphic | Uses:370 | Used by:372 |
Symbol 372 MovieClip | Uses:371 369 | Used by:385 |
Symbol 373 Graphic | Used by:376 | |
Symbol 374 Bitmap | Used by:375 | |
Symbol 375 Graphic | Uses:374 | Used by:376 |
Symbol 376 MovieClip | Uses:375 373 | Used by:385 |
Symbol 377 Graphic | Used by:380 | |
Symbol 378 Bitmap | Used by:379 | |
Symbol 379 Graphic | Uses:378 | Used by:380 |
Symbol 380 MovieClip | Uses:379 377 | Used by:385 |
Symbol 381 Graphic | Used by:384 | |
Symbol 382 Bitmap | Used by:383 | |
Symbol 383 Graphic | Uses:382 | Used by:384 |
Symbol 384 MovieClip | Uses:383 381 | Used by:385 |
Symbol 385 MovieClip | Uses:352 356 360 364 368 372 376 380 384 SS3 | Used by:Timeline |
Symbol 386 Button | Uses:29 | Used by:Timeline |
Symbol 387 Graphic | Used by:Timeline | |
Symbol 388 EditableText | Uses:130 | Used by:Timeline |
Symbol 389 Graphic | Used by:404 Timeline | |
Symbol 390 Graphic | Used by:404 | |
Symbol 391 Graphic | Used by:404 | |
Symbol 392 Graphic | Used by:404 | |
Symbol 393 Graphic | Used by:404 | |
Symbol 394 Graphic | Used by:395 | |
Symbol 395 MovieClip | Uses:394 | Used by:404 |
Symbol 396 Graphic | Used by:397 | |
Symbol 397 MovieClip | Uses:396 | Used by:404 |
Symbol 398 Graphic | Used by:399 | |
Symbol 399 MovieClip | Uses:398 | Used by:404 |
Symbol 400 Graphic | Used by:401 | |
Symbol 401 MovieClip | Uses:400 | Used by:404 |
Symbol 402 Graphic | Used by:404 | |
Symbol 403 Graphic | Used by:404 | |
Symbol 404 MovieClip | Uses:390 391 261 389 259 392 290 393 395 397 399 401 402 267 265 268 403 | Used by:Timeline |
Symbol 405 Button | Uses:29 | Used by:Timeline |
Symbol 406 Graphic | Used by:Timeline | |
Symbol 407 EditableText | Uses:130 | Used by:Timeline |
Symbol 408 Graphic | Used by:425 | |
Symbol 409 Graphic | Used by:411 | |
Symbol 410 Graphic | Used by:411 441 | |
Symbol 411 MovieClip | Uses:410 409 | Used by:425 |
Symbol 412 Graphic | Used by:425 | |
Symbol 413 Graphic | Used by:425 | |
Symbol 414 Graphic | Used by:425 | |
Symbol 415 Graphic | Used by:421 | |
Symbol 416 Graphic | Used by:421 | |
Symbol 417 Graphic | Used by:421 423 424 | |
Symbol 418 Graphic | Used by:421 | |
Symbol 419 Graphic | Used by:421 | |
Symbol 420 Graphic | Used by:421 | |
Symbol 421 MovieClip | Uses:416 417 418 419 420 415 | Used by:425 |
Symbol 422 Graphic | Used by:425 | |
Symbol 423 MovieClip | Uses:417 | Used by:425 |
Symbol 424 MovieClip | Uses:417 | Used by:425 |
Symbol 425 MovieClip | Uses:261 259 408 411 412 290 413 414 421 267 265 268 422 423 424 | Used by:Timeline |
Symbol 426 Button | Uses:29 | Used by:Timeline |
Symbol 427 Graphic | Used by:Timeline | |
Symbol 428 EditableText | Uses:130 | Used by:Timeline |
Symbol 429 Graphic | Used by:433 | |
Symbol 430 Graphic | Used by:433 | |
Symbol 431 Graphic | Used by:433 | |
Symbol 432 Graphic | Used by:433 | |
Symbol 433 MovieClip | Uses:429 259 430 261 431 267 265 268 432 | Used by:Timeline |
Symbol 434 Button | Uses:29 | Used by:Timeline |
Symbol 435 Graphic | Used by:Timeline | |
Symbol 436 EditableText | Uses:130 | Used by:Timeline |
Symbol 437 Graphic | Used by:459 | |
Symbol 438 Graphic | Used by:459 | |
Symbol 439 Graphic | Used by:459 | |
Symbol 440 Graphic | Used by:459 | |
Symbol 441 MovieClip | Uses:410 | Used by:459 |
Symbol 442 Graphic | Used by:459 | |
Symbol 443 Graphic | Used by:459 | |
Symbol 444 Graphic | Used by:459 | |
Symbol 445 Graphic | Used by:446 | |
Symbol 446 MovieClip | Uses:445 | Used by:459 |
Symbol 447 Graphic | Used by:459 | |
Symbol 448 Graphic | Used by:449 | |
Symbol 449 MovieClip | Uses:448 | Used by:459 |
Symbol 450 Graphic | Used by:451 | |
Symbol 451 MovieClip | Uses:450 | Used by:459 |
Symbol 452 Graphic | Used by:453 | |
Symbol 453 MovieClip | Uses:452 | Used by:459 |
Symbol 454 Graphic | Used by:455 | |
Symbol 455 MovieClip | Uses:454 | Used by:459 |
Symbol 456 Graphic | Used by:457 | |
Symbol 457 MovieClip | Uses:456 | Used by:459 |
Symbol 458 Graphic | Used by:459 | |
Symbol 459 MovieClip | Uses:437 438 440 441 439 259 442 261 443 267 265 268 444 446 447 449 451 453 455 457 458 | Used by:Timeline |
Symbol 460 Button | Uses:29 | Used by:Timeline |
Symbol 461 Graphic | Used by:Timeline | |
Symbol 462 EditableText | Uses:130 | Used by:Timeline |
Symbol 463 Graphic | Used by:482 Timeline | |
Symbol 464 Graphic | Used by:482 Timeline | |
Symbol 465 Graphic | Used by:482 | |
Symbol 466 Graphic | Used by:482 | |
Symbol 467 Graphic | Used by:482 | |
Symbol 468 Graphic | Used by:482 | |
Symbol 469 Graphic | Used by:482 | |
Symbol 470 Graphic | Used by:482 | |
Symbol 471 Graphic | Used by:482 | |
Symbol 472 Graphic | Used by:482 | |
Symbol 473 Graphic | Used by:482 | |
Symbol 474 Graphic | Used by:482 | |
Symbol 475 Graphic | Used by:482 | |
Symbol 476 Graphic | Used by:482 | |
Symbol 477 Graphic | Used by:482 | |
Symbol 478 Graphic | Used by:482 | |
Symbol 479 Graphic | Used by:482 | |
Symbol 480 Graphic | Used by:482 | |
Symbol 481 Graphic | Used by:482 | |
Symbol 482 MovieClip | Uses:261 259 465 466 467 468 469 470 471 472 473 474 475 476 464 330 477 463 478 479 267 265 268 480 481 | Used by:Timeline |
Symbol 483 Button | Uses:29 | Used by:Timeline |
Symbol 484 Graphic | Used by:Timeline | |
Symbol 485 EditableText | Uses:130 | Used by:Timeline |
Symbol 486 Graphic | Used by:490 | |
Symbol 487 Graphic | Used by:490 | |
Symbol 488 Graphic | Used by:490 | |
Symbol 489 Graphic | Used by:490 | |
Symbol 490 MovieClip | Uses:259 486 261 487 267 265 268 488 489 | Used by:Timeline |
Symbol 491 Button | Uses:271 272 274 187 273 188 189 190 | Used by:Timeline |
Symbol 492 Graphic | Used by:Timeline | |
Symbol 493 Graphic | Used by:495 | |
Symbol 494 Graphic | Used by:495 | |
Symbol 495 Button | Uses:493 494 29 | Used by:Timeline |
Symbol 496 Graphic | Used by:Timeline | |
Symbol 497 Graphic | Used by:499 | |
Symbol 498 Graphic | Used by:499 | |
Symbol 499 MovieClip | Uses:497 498 | Used by:Timeline |
Symbol 500 EditableText | Uses:142 | Used by:Timeline |
Symbol 501 EditableText | Uses:142 | Used by:Timeline |
Symbol 502 EditableText | Uses:142 | Used by:Timeline |
Symbol 503 EditableText | Uses:142 | Used by:Timeline |
Symbol 504 Graphic | Used by:Timeline | |
Symbol 505 Graphic | Used by:Timeline | |
Symbol 506 Graphic | Used by:Timeline | |
Symbol 507 Graphic | Used by:509 | |
Symbol 508 Graphic | Used by:509 | |
Symbol 509 Button | Uses:182 507 508 181 186 187 188 189 190 | Used by:Timeline |
Symbol 510 Graphic | Used by:511 512 | |
Symbol 511 Button | Uses:510 | Used by:Timeline |
Symbol 512 Button | Uses:510 | Used by:Timeline |
Streaming Sound 1 | Used by:Timeline | |
Streaming Sound 2 | Used by:Symbol 204 MovieClip | |
Streaming Sound 3 | Used by:Symbol 385 MovieClip |
Instance Names
" " | Frame 18 | Symbol 24 MovieClip |
"putter" | Frame 129 | Symbol 69 MovieClip |
"clients" | Frame 129 | Symbol 107 MovieClip |
"ballColor" | Frame 129 | Symbol 114 MovieClip |
"ball" | Frame 129 | Symbol 122 MovieClip |
"scorecard" | Frame 129 | Symbol 164 MovieClip |
"putter" | Frame 130 | Symbol 69 MovieClip |
"clients" | Frame 130 | Symbol 107 MovieClip |
"ballColor" | Frame 130 | Symbol 114 MovieClip |
"ball" | Frame 130 | Symbol 122 MovieClip |
"soundfx" | Frame 132 | Symbol 235 MovieClip |
"arrow" | Frame 132 | Symbol 237 MovieClip |
"messages" | Frame 132 | Symbol 256 MovieClip |
"h01" | Frame 132 | Symbol 270 MovieClip |
" " | Frame 179 | Symbol 24 MovieClip |
"h02" | Frame 180 | Symbol 284 MovieClip |
" " | Frame 230 | Symbol 24 MovieClip |
"h03" | Frame 231 | Symbol 302 MovieClip |
" " | Frame 277 | Symbol 24 MovieClip |
"h04" | Frame 278 | Symbol 317 MovieClip |
" " | Frame 325 | Symbol 24 MovieClip |
"h05" | Frame 326 | Symbol 325 MovieClip |
" " | Frame 372 | Symbol 24 MovieClip |
"h06" | Frame 373 | Symbol 348 MovieClip |
" " | Frame 425 | Symbol 24 MovieClip |
"h07" | Frame 426 | Symbol 404 MovieClip |
" " | Frame 480 | Symbol 24 MovieClip |
"h08" | Frame 481 | Symbol 425 MovieClip |
" " | Frame 536 | Symbol 24 MovieClip |
"h09" | Frame 537 | Symbol 433 MovieClip |
" " | Frame 592 | Symbol 24 MovieClip |
"h10" | Frame 593 | Symbol 459 MovieClip |
" " | Frame 642 | Symbol 24 MovieClip |
"h11" | Frame 643 | Symbol 482 MovieClip |
" " | Frame 699 | Symbol 24 MovieClip |
"h12" | Frame 700 | Symbol 490 MovieClip |
" " | Frame 757 | Symbol 24 MovieClip |
" " | Frame 1182 | Symbol 24 MovieClip |
" " | Frame 1212 | Symbol 24 MovieClip |
"visual_aid" | Symbol 192 MovieClip Frame 1 | Symbol 177 MovieClip |
"loadbar" | Symbol 192 MovieClip Frame 13 | Symbol 181 MovieClip |
"hole" | Symbol 270 MovieClip Frame 1 | Symbol 259 MovieClip |
"bank" | Symbol 270 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"box" | Symbol 284 MovieClip Frame 1 | Symbol 280 MovieClip |
"box" | Symbol 284 MovieClip Frame 1 | Symbol 280 MovieClip |
"hole" | Symbol 284 MovieClip Frame 1 | Symbol 259 MovieClip |
"bank" | Symbol 284 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"sand" | Symbol 302 MovieClip Frame 1 | Symbol 296 MovieClip |
"hole" | Symbol 302 MovieClip Frame 1 | Symbol 259 MovieClip |
"bank" | Symbol 302 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"bank" | Symbol 317 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"hole" | Symbol 317 MovieClip Frame 1 | Symbol 259 MovieClip |
"guides" | Symbol 317 MovieClip Frame 1 | Symbol 313 MovieClip |
"slope" | Symbol 317 MovieClip Frame 1 | Symbol 315 MovieClip |
"bank" | Symbol 325 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"hole" | Symbol 325 MovieClip Frame 1 | Symbol 259 MovieClip |
" " | Symbol 348 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"holeB" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeA" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeF" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeD" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeE" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeC" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"hole" | Symbol 348 MovieClip Frame 1 | Symbol 259 MovieClip |
"slope2" | Symbol 348 MovieClip Frame 1 | Symbol 346 MovieClip |
"slope" | Symbol 348 MovieClip Frame 1 | Symbol 315 MovieClip |
"bank" | Symbol 404 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"hole" | Symbol 404 MovieClip Frame 1 | Symbol 259 MovieClip |
"slope3" | Symbol 404 MovieClip Frame 1 | Symbol 395 MovieClip |
"slope2" | Symbol 404 MovieClip Frame 1 | Symbol 397 MovieClip |
"slope4" | Symbol 404 MovieClip Frame 1 | Symbol 399 MovieClip |
"slope" | Symbol 404 MovieClip Frame 1 | Symbol 401 MovieClip |
" " | Symbol 425 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"hole" | Symbol 425 MovieClip Frame 1 | Symbol 259 MovieClip |
"damper4" | Symbol 425 MovieClip Frame 1 | Symbol 423 MovieClip |
"damper3" | Symbol 425 MovieClip Frame 1 | Symbol 423 MovieClip |
"damper2" | Symbol 425 MovieClip Frame 1 | Symbol 423 MovieClip |
"damper" | Symbol 425 MovieClip Frame 1 | Symbol 423 MovieClip |
"w4" | Symbol 425 MovieClip Frame 1 | Symbol 424 MovieClip |
"w2" | Symbol 425 MovieClip Frame 1 | Symbol 424 MovieClip |
"w3" | Symbol 425 MovieClip Frame 1 | Symbol 424 MovieClip |
"w1" | Symbol 425 MovieClip Frame 1 | Symbol 424 MovieClip |
"hole" | Symbol 433 MovieClip Frame 1 | Symbol 259 MovieClip |
"bank" | Symbol 433 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"hole" | Symbol 459 MovieClip Frame 1 | Symbol 259 MovieClip |
"bank" | Symbol 459 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"W2" | Symbol 459 MovieClip Frame 1 | Symbol 446 MovieClip |
"W1" | Symbol 459 MovieClip Frame 1 | Symbol 446 MovieClip |
"M" | Symbol 459 MovieClip Frame 1 | Symbol 449 MovieClip |
"N" | Symbol 459 MovieClip Frame 1 | Symbol 449 MovieClip |
"L" | Symbol 459 MovieClip Frame 1 | Symbol 451 MovieClip |
"K" | Symbol 459 MovieClip Frame 1 | Symbol 453 MovieClip |
"G" | Symbol 459 MovieClip Frame 1 | Symbol 455 MovieClip |
"H" | Symbol 459 MovieClip Frame 1 | Symbol 455 MovieClip |
"E" | Symbol 459 MovieClip Frame 1 | Symbol 455 MovieClip |
"F" | Symbol 459 MovieClip Frame 1 | Symbol 455 MovieClip |
"D" | Symbol 459 MovieClip Frame 1 | Symbol 457 MovieClip |
"C" | Symbol 459 MovieClip Frame 1 | Symbol 457 MovieClip |
"B" | Symbol 459 MovieClip Frame 1 | Symbol 457 MovieClip |
"A" | Symbol 459 MovieClip Frame 1 | Symbol 457 MovieClip |
"I" | Symbol 459 MovieClip Frame 1 | Symbol 457 MovieClip |
"J" | Symbol 459 MovieClip Frame 1 | Symbol 457 MovieClip |
" " | Symbol 482 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
"holeK" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeC" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeI" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeA" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeB" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeJ" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeG" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeH" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeD" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeF" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"holeE" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"hole" | Symbol 482 MovieClip Frame 1 | Symbol 259 MovieClip |
"hole" | Symbol 490 MovieClip Frame 1 | Symbol 259 MovieClip |
"bank" | Symbol 490 MovieClip Frame 1 | Symbol 261 MovieClip [bank] |
Special Tags
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 132 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 180 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 231 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 278 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 326 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 373 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 426 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 481 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 537 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 593 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 643 | Symbol 261 as "bank" |
ExportAssets (56) | Timeline Frame 700 | Symbol 261 as "bank" |
Labels
"holding" | Frame 130 |
"001" | Frame 132 |
"002" | Frame 180 |
"003" | Frame 231 |
"004" | Frame 278 |
"005" | Frame 326 |
"006" | Frame 373 |
"007" | Frame 426 |
"008" | Frame 481 |
"009" | Frame 537 |
"010" | Frame 593 |
"011" | Frame 643 |
"012" | Frame 700 |
"send" | Frame 1212 |
"preload" | Symbol 192 MovieClip Frame 13 |
"startGame" | Symbol 192 MovieClip Frame 15 |
"out" | Symbol 210 MovieClip Frame 293 |
"PuttHit" | Symbol 235 MovieClip Frame 5 |
"PuttSink" | Symbol 235 MovieClip Frame 28 |
"WallHit" | Symbol 235 MovieClip Frame 52 |
"muff" | Symbol 235 MovieClip Frame 59 |
"puff" | Symbol 235 MovieClip Frame 64 |
"loop" | Symbol 235 MovieClip Frame 78 |
"bloop" | Symbol 235 MovieClip Frame 103 |
"splash" | Symbol 235 MovieClip Frame 125 |
"sand" | Symbol 235 MovieClip Frame 146 |
"flute" | Symbol 235 MovieClip Frame 162 |
"drum" | Symbol 235 MovieClip Frame 172 |
"crash" | Symbol 235 MovieClip Frame 190 |
"slope" | Symbol 235 MovieClip Frame 232 |
"cheer" | Symbol 235 MovieClip Frame 249 |
"polite" | Symbol 235 MovieClip Frame 349 |
"ring" | Symbol 235 MovieClip Frame 447 |
"green" | Symbol 237 MovieClip Frame 1 |
"red" | Symbol 237 MovieClip Frame 2 |
"messDefault" | Symbol 256 MovieClip Frame 1 |
"messOne" | Symbol 256 MovieClip Frame 2 |
"messAlbatross" | Symbol 256 MovieClip Frame 3 |
"messEagle" | Symbol 256 MovieClip Frame 4 |
"messBirdie" | Symbol 256 MovieClip Frame 5 |
"messPar" | Symbol 256 MovieClip Frame 6 |
"messBogie" | Symbol 256 MovieClip Frame 7 |
"messOver" | Symbol 256 MovieClip Frame 8 |
"messFrog" | Symbol 256 MovieClip Frame 9 |
"holeDefault" | Symbol 259 MovieClip Frame 1 |
"holeSink" | Symbol 259 MovieClip Frame 2 |
"snowLoop" | Symbol 499 MovieClip Frame 251 |
Dynamic Text Variables
ParTwelve | Symbol 131 EditableText | "" |
ParEleven | Symbol 132 EditableText | "" |
ParTen | Symbol 133 EditableText | "" |
ParNine | Symbol 134 EditableText | "" |
ParEight | Symbol 135 EditableText | "" |
ParSeven | Symbol 136 EditableText | "" |
ParSix | Symbol 137 EditableText | "" |
ParFive | Symbol 138 EditableText | "" |
ParFour | Symbol 139 EditableText | "" |
ParThree | Symbol 140 EditableText | "" |
ParTwo | Symbol 141 EditableText | "" |
user_name | Symbol 143 EditableText | "" |
twelve | Symbol 144 EditableText | "" |
eleven | Symbol 145 EditableText | "" |
ten | Symbol 146 EditableText | "" |
nine | Symbol 147 EditableText | "" |
eight | Symbol 148 EditableText | "" |
seven | Symbol 149 EditableText | "" |
six | Symbol 150 EditableText | "" |
five | Symbol 151 EditableText | "" |
four | Symbol 152 EditableText | "" |
three | Symbol 153 EditableText | "" |
two | Symbol 154 EditableText | "" |
ParOne | Symbol 155 EditableText | "" |
parTotal | Symbol 156 EditableText | "" |
total | Symbol 157 EditableText | "" |
one | Symbol 158 EditableText | "" |
percentOutput | Symbol 179 EditableText | "%" |
holePar | Symbol 213 EditableText | "" |
over | Symbol 254 EditableText | "" |
holePar | Symbol 278 EditableText | "" |
holePar | Symbol 288 EditableText | "" |
holePar | Symbol 305 EditableText | "" |
holePar | Symbol 320 EditableText | "" |
holePar | Symbol 328 EditableText | "" |
holePar | Symbol 388 EditableText | "" |
holePar | Symbol 407 EditableText | "" |
holePar | Symbol 428 EditableText | "" |
holePar | Symbol 436 EditableText | "" |
holePar | Symbol 462 EditableText | "" |
holePar | Symbol 485 EditableText | "" |
their_email | Symbol 500 EditableText | "" |
your_email | Symbol 501 EditableText | "" |
your_name | Symbol 502 EditableText | "" |
their_name | Symbol 503 EditableText | "" |
|