STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76810645?noj=FRM76810645-22DC" width="1" height="1"></div>

12 holes of Xmas.swf

This is the info page for
Flash #24639

(Click the ID number above for more basic data on this flash file.)


Text
%

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 1
Instance of Symbol 192 MovieClip in Frame 130
//component parameters onClipEvent (initialize) { percentLoad = 1; }
Frame 131
stop();
Frame 132
stop(); _root.scorecard._visible = false;
Frame 133
play();
Frame 179
stop(); _root.scorecard._visible = true;
Frame 180
stop(); _root.scorecard._visible = false;
Instance of Symbol 284 MovieClip "h02" in Frame 180
/* no clip actions */
Frame 181
play();
Frame 230
stop(); _root.scorecard._visible = true;
Frame 231
stop(); _root.scorecard._visible = false;
Frame 232
play();
Frame 277
stop(); _root.scorecard._visible = true;
Frame 278
stop(); _root.scorecard._visible = false;
Frame 279
play();
Frame 325
stop(); _root.scorecard._visible = true;
Frame 326
stop(); _root.scorecard._visible = false;
Frame 327
play();
Frame 372
stop(); _root.scorecard._visible = true;
Frame 373
stop(); _root.scorecard._visible = false;
Frame 374
play();
Frame 425
stop(); _root.scorecard._visible = true;
Frame 426
stop(); _root.scorecard._visible = false;
Frame 427
play();
Frame 480
stop(); _root.scorecard._visible = true;
Frame 481
stop(); _root.scorecard._visible = false;
Frame 482
play();
Frame 536
stop(); _root.scorecard._visible = true;
Frame 537
stop(); _root.scorecard._visible = false;
Frame 538
play();
Frame 592
stop(); _root.scorecard._visible = true;
Frame 593
stop(); _root.scorecard._visible = false;
Frame 594
play();
Frame 642
stop(); _root.scorecard._visible = true;
Frame 643
stop(); _root.scorecard._visible = false;
Frame 644
play();
Frame 699
stop(); _root.scorecard._visible = true;
Frame 700
stop(); _root.scorecard._visible = false;
Frame 701
play();
Frame 757
_root.scorecard._visible = true;
Frame 1488
stop();
Symbol 30 Button
on (release) { getURL ("http://www.sitedynamics.com"); }
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 69 MovieClip Frame 5
stop();
Symbol 69 MovieClip Frame 6
stop();
Symbol 69 MovieClip Frame 7
stop();
Symbol 69 MovieClip Frame 8
stop();
Symbol 69 MovieClip Frame 9
stop();
Symbol 69 MovieClip Frame 10
stop();
Symbol 69 MovieClip Frame 11
stop();
Symbol 69 MovieClip Frame 12
stop();
Symbol 69 MovieClip Frame 13
stop();
Symbol 69 MovieClip Frame 14
stop();
Symbol 69 MovieClip Frame 15
stop();
Symbol 69 MovieClip Frame 16
stop();
Symbol 69 MovieClip Frame 17
stop();
Symbol 69 MovieClip Frame 18
stop();
Symbol 69 MovieClip Frame 19
stop();
Symbol 69 MovieClip Frame 20
stop();
Symbol 69 MovieClip Frame 21
stop();
Symbol 69 MovieClip Frame 22
stop();
Symbol 69 MovieClip Frame 23
stop();
Symbol 69 MovieClip Frame 24
stop();
Symbol 69 MovieClip Frame 25
stop();
Symbol 69 MovieClip Frame 26
stop();
Symbol 69 MovieClip Frame 27
stop();
Symbol 69 MovieClip Frame 28
stop();
Symbol 69 MovieClip Frame 29
stop();
Symbol 69 MovieClip Frame 30
stop();
Symbol 69 MovieClip Frame 31
stop();
Symbol 69 MovieClip Frame 32
stop();
Symbol 69 MovieClip Frame 33
stop();
Symbol 69 MovieClip Frame 34
stop();
Symbol 69 MovieClip Frame 35
stop();
Symbol 69 MovieClip Frame 36
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 4
stop();
Symbol 107 MovieClip Frame 5
stop();
Symbol 107 MovieClip Frame 6
stop();
Symbol 107 MovieClip Frame 7
stop();
Symbol 107 MovieClip Frame 8
stop();
Symbol 107 MovieClip Frame 9
stop();
Symbol 107 MovieClip Frame 10
stop();
Symbol 107 MovieClip Frame 11
stop();
Symbol 107 MovieClip Frame 12
stop();
Symbol 107 MovieClip Frame 13
stop();
Symbol 107 MovieClip Frame 14
stop();
Symbol 107 MovieClip Frame 15
stop();
Symbol 107 MovieClip Frame 16
stop();
Symbol 107 MovieClip Frame 17
stop();
Symbol 107 MovieClip Frame 18
stop();
Symbol 107 MovieClip Frame 19
stop();
Symbol 107 MovieClip Frame 20
stop();
Symbol 107 MovieClip Frame 21
stop();
Symbol 107 MovieClip Frame 22
stop();
Symbol 107 MovieClip Frame 23
stop();
Symbol 107 MovieClip Frame 24
stop();
Symbol 107 MovieClip Frame 25
stop();
Symbol 107 MovieClip Frame 26
stop();
Symbol 107 MovieClip Frame 27
stop();
Symbol 107 MovieClip Frame 28
stop();
Symbol 107 MovieClip Frame 29
stop();
Symbol 107 MovieClip Frame 30
stop();
Symbol 107 MovieClip Frame 31
stop();
Symbol 107 MovieClip Frame 32
stop();
Symbol 107 MovieClip Frame 33
stop();
Symbol 107 MovieClip Frame 34
stop();
Symbol 107 MovieClip Frame 35
stop();
Symbol 107 MovieClip Frame 36
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 114 MovieClip Frame 4
stop();
Symbol 114 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 6
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 122 MovieClip Frame 6
stop();
Symbol 127 Button
on (release) { tellTarget ("ball") { nextFrame(); }; } on (release) { tellTarget ("ballColor") { nextFrame(); }; }
Symbol 165 Button
on (release) { play(); }
Symbol 168 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 20
stop();
Symbol 173 Button
on (release) { tellTarget ("putter") { nextFrame(); }; } on (release) { tellTarget ("clients") { nextFrame(); }; }
Symbol 174 Button
on (release) { tellTarget ("putter") { prevFrame(); }; } on (release) { tellTarget ("clients") { prevFrame(); }; }
Symbol 175 Button
on (release) { tellTarget ("ball") { prevFrame(); }; } on (release) { tellTarget ("ballColor") { prevFrame(); }; }
Symbol 191 Button
on (release) { tellTarget ("_level0") { nextFrame(); stop(); }; }
Symbol 192 MovieClip Frame 1
setProperty("visual_aid", _visible , "0");
Symbol 192 MovieClip Frame 12
myBytesLoaded = _parent.getBytesLoaded(); myBytesTotal = _parent.getBytesTotal() / percentLoad; if (myBytesLoaded >= myBytesTotal) { gotoAndStop (15); }
Symbol 192 MovieClip Frame 13
myBytesLoaded = _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 14
gotoAndPlay (13);
Symbol 192 MovieClip Frame 15
stop();
Symbol 195 Button
on (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 Button
on (keyPress "m") { play(); }
Symbol 204 MovieClip Frame 1
stop();
Symbol 205 Button
on (keyPress "J") { play(); }
Symbol 206 Button
on (keyPress "J") { gotoAndPlay (293); }
Symbol 210 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 28
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 52
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 59
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 64
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 78
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 103
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 125
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 146
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 162
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 172
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 190
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 232
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 249
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 349
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 447
this.gotoAndStop(1);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
stop(); _root.soundfx.gotoAndStop("cheer");
Symbol 256 MovieClip Frame 3
stop(); _root.soundfx.gotoAndStop("cheer");
Symbol 256 MovieClip Frame 4
stop(); _root.soundfx.gotoAndStop("cheer");
Symbol 256 MovieClip Frame 5
stop(); _root.soundfx.gotoAndStop("cheer");
Symbol 256 MovieClip Frame 6
stop(); _root.soundfx.gotoAndStop("polite");
Symbol 256 MovieClip Frame 7
stop(); _root.soundfx.gotoAndStop("polite");
Symbol 256 MovieClip Frame 8
stop(); _root.soundfx.gotoAndStop("polite");
Symbol 256 MovieClip Frame 60
gotoAndStop (1);
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 270 MovieClip Frame 1
function 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 12
stop();
Symbol 275 Button
on (release) { nextFrame(); }
Symbol 276 Button
on (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 1
function 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 Button
on (release) { nextFrame(); }
Symbol 286 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (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 1
function 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 310
stop();
Symbol 386 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (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 1
function 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 Button
on (press) { gotoAndPlay (1212); }
Symbol 495 Button
on (release) { getURL ("http://www.sitedynamics.com"); }
Symbol 499 MovieClip Frame 325
gotoAndPlay (251);
Symbol 509 Button
on (press) { getURL ("http://www.sitedynamics.com/refer_p.php", "_blank", "POST"); }
Symbol 511 Button
on (release) { gotoAndPlay (130); }
Symbol 512 Button
on (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 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 3 GraphicUsed by:Timeline
Symbol 4 GraphicUsed by:Timeline
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:Timeline
Symbol 7 GraphicUsed by:Timeline
Symbol 8 GraphicUsed by:Timeline
Symbol 9 GraphicUsed by:Timeline
Symbol 10 GraphicUsed by:Timeline
Symbol 11 GraphicUsed by:15
Symbol 12 GraphicUsed by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:11 12 13 14Used by:Timeline
Symbol 16 BitmapUsed by:17
Symbol 17 GraphicUses:16Used by:Timeline
Symbol 18 GraphicUsed by:Timeline
Symbol 19 GraphicUsed by:21 22 23 24
Symbol 20 GraphicUsed by:21 22 23 24
Symbol 21 MovieClipUses:19 20Used by:Timeline
Symbol 22 MovieClipUses:19 20Used by:Timeline
Symbol 23 MovieClipUses:19 20Used by:Timeline
Symbol 24 MovieClipUses:19 20Used by:Timeline
Symbol 25 GraphicUsed by:164  Timeline
Symbol 26 GraphicUsed by:164  Timeline
Symbol 27 GraphicUsed by:30
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30 165 195 196 205 206 276 286 303 318 326 386 405 426 434 460 483 495
Symbol 30 ButtonUses:27 28 29Used by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 GraphicUsed by:192  Timeline
Symbol 33 GraphicUsed by:69
Symbol 34 GraphicUsed by:69
Symbol 35 GraphicUsed by:69
Symbol 36 GraphicUsed by:69
Symbol 37 GraphicUsed by:69
Symbol 38 GraphicUsed by:69
Symbol 39 GraphicUsed by:69
Symbol 40 GraphicUsed by:69
Symbol 41 GraphicUsed by:69
Symbol 42 GraphicUsed by:69
Symbol 43 GraphicUsed by:69
Symbol 44 GraphicUsed by:69
Symbol 45 GraphicUsed by:69
Symbol 46 GraphicUsed by:69
Symbol 47 GraphicUsed by:69
Symbol 48 GraphicUsed by:69
Symbol 49 GraphicUsed by:69
Symbol 50 GraphicUsed by:69
Symbol 51 GraphicUsed by:69
Symbol 52 GraphicUsed by:69
Symbol 53 GraphicUsed by:69
Symbol 54 GraphicUsed by:69
Symbol 55 GraphicUsed by:69
Symbol 56 GraphicUsed by:69
Symbol 57 GraphicUsed by:69
Symbol 58 GraphicUsed by:69
Symbol 59 GraphicUsed by:69
Symbol 60 GraphicUsed by:69
Symbol 61 GraphicUsed by:69
Symbol 62 GraphicUsed by:69
Symbol 63 GraphicUsed by:69
Symbol 64 GraphicUsed by:69
Symbol 65 GraphicUsed by:69
Symbol 66 GraphicUsed by:69
Symbol 67 GraphicUsed by:69
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses: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 68Used by:Timeline
Symbol 70 GraphicUsed by:Timeline
Symbol 71 GraphicUsed by:107
Symbol 72 GraphicUsed by:107
Symbol 73 GraphicUsed by:107
Symbol 74 GraphicUsed by:107
Symbol 75 GraphicUsed by:107
Symbol 76 GraphicUsed by:107
Symbol 77 GraphicUsed by:107
Symbol 78 GraphicUsed by:107
Symbol 79 GraphicUsed by:107
Symbol 80 GraphicUsed by:107
Symbol 81 GraphicUsed by:107
Symbol 82 GraphicUsed by:107
Symbol 83 GraphicUsed by:107
Symbol 84 GraphicUsed by:107
Symbol 85 GraphicUsed by:107
Symbol 86 GraphicUsed by:107
Symbol 87 GraphicUsed by:107
Symbol 88 GraphicUsed by:107
Symbol 89 GraphicUsed by:107
Symbol 90 GraphicUsed by:107
Symbol 91 GraphicUsed by:107
Symbol 92 GraphicUsed by:107
Symbol 93 GraphicUsed by:107
Symbol 94 GraphicUsed by:107
Symbol 95 GraphicUsed by:107
Symbol 96 GraphicUsed by:107
Symbol 97 GraphicUsed by:107
Symbol 98 GraphicUsed by:107
Symbol 99 GraphicUsed by:107
Symbol 100 GraphicUsed by:107
Symbol 101 GraphicUsed by:107
Symbol 102 GraphicUsed by:107
Symbol 103 GraphicUsed by:107
Symbol 104 GraphicUsed by:107
Symbol 105 GraphicUsed by:107
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses: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 106Used by:Timeline
Symbol 108 GraphicUsed by:114
Symbol 109 GraphicUsed by:114
Symbol 110 GraphicUsed by:114
Symbol 111 GraphicUsed by:114
Symbol 112 GraphicUsed by:114
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:108 109 110 111 112 113Used by:Timeline
Symbol 115 GraphicUsed by:Timeline
Symbol 116 GraphicUsed by:122
Symbol 117 GraphicUsed by:122
Symbol 118 GraphicUsed by:122
Symbol 119 GraphicUsed by:122
Symbol 120 GraphicUsed by:122
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:116 117 118 119 120 121Used by:Timeline
Symbol 123 GraphicUsed by:Timeline
Symbol 124 GraphicUsed by:127 173 174 175
Symbol 125 GraphicUsed by:127 173 174 175
Symbol 126 GraphicUsed by:127 173 174 175
Symbol 127 ButtonUses:124 125 126Used by:Timeline
Symbol 128 GraphicUsed by:129
Symbol 129 ButtonUses:128Used by:Timeline
Symbol 130 FontUsed 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 EditableTextUses:130Used by:164
Symbol 132 EditableTextUses:130Used by:164
Symbol 133 EditableTextUses:130Used by:164
Symbol 134 EditableTextUses:130Used by:164
Symbol 135 EditableTextUses:130Used by:164
Symbol 136 EditableTextUses:130Used by:164
Symbol 137 EditableTextUses:130Used by:164
Symbol 138 EditableTextUses:130Used by:164
Symbol 139 EditableTextUses:130Used by:164
Symbol 140 EditableTextUses:130Used by:164
Symbol 141 EditableTextUses:130Used by:164
Symbol 142 FontUsed by:143 144 145 146 147 148 149 150 151 152 153 154 157 158 500 501 502 503
Symbol 143 EditableTextUses:142Used by:164
Symbol 144 EditableTextUses:142Used by:164
Symbol 145 EditableTextUses:142Used by:164
Symbol 146 EditableTextUses:142Used by:164
Symbol 147 EditableTextUses:142Used by:164
Symbol 148 EditableTextUses:142Used by:164
Symbol 149 EditableTextUses:142Used by:164
Symbol 150 EditableTextUses:142Used by:164
Symbol 151 EditableTextUses:142Used by:164
Symbol 152 EditableTextUses:142Used by:164
Symbol 153 EditableTextUses:142Used by:164
Symbol 154 EditableTextUses:142Used by:164
Symbol 155 EditableTextUses:130Used by:164
Symbol 156 EditableTextUses:130Used by:164
Symbol 157 EditableTextUses:142Used by:164
Symbol 158 EditableTextUses:142Used by:164
Symbol 159 GraphicUsed by:164
Symbol 160 GraphicUsed by:164
Symbol 161 GraphicUsed by:164
Symbol 162 GraphicUsed by:164
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses: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 163Used by:Timeline
Symbol 165 ButtonUses:29Used by:168
Symbol 166 GraphicUsed by:168
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:165 166 167Used by:Timeline
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:Timeline
Symbol 171 GraphicUsed by:Timeline
Symbol 172 GraphicUsed by:Timeline
Symbol 173 ButtonUses:124 125 126Used by:Timeline
Symbol 174 ButtonUses:124 125 126Used by:Timeline
Symbol 175 ButtonUses:124 125 126Used by:Timeline
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClipUses:176Used by:192
Symbol 178 FontUsed by:179
Symbol 179 EditableTextUses:178Used by:192
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:180Used by:191 192 509
Symbol 182 GraphicUsed by:191 509
Symbol 183 GraphicUsed by:191
Symbol 184 GraphicUsed by:191
Symbol 185 GraphicUsed by:191
Symbol 186 GraphicUsed by:191 509
Symbol 187 GraphicUsed by:191 275 285 491 509
Symbol 188 GraphicUsed by:191 275 285 491 509
Symbol 189 SoundUsed by:191 235 275 285 491 509
Symbol 190 SoundUsed by:191 275 285 491 509
Symbol 191 ButtonUses:182 183 184 185 181 186 187 188 189 190Used by:192
Symbol 192 MovieClipUses:177 32 179 181 191Used by:Timeline
Symbol 193 GraphicUsed by:Timeline
Symbol 194 SoundUsed by:Timeline
Symbol 195 ButtonUses:29Used by:Timeline
Symbol 196 ButtonUses:29Used by:204
Symbol 197 GraphicUsed by:204
Symbol 198 GraphicUsed by:204
Symbol 199 BitmapUsed by:200
Symbol 200 GraphicUses:199Used by:204
Symbol 201 GraphicUsed by:204
Symbol 202 GraphicUsed by:204
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClipUses:196 197 200 198 201 202 203 SS2Used by:Timeline
Symbol 205 ButtonUses:29Used by:210
Symbol 206 ButtonUses:29Used by:210
Symbol 207 FontUsed by:208
Symbol 208 TextUses:207Used by:210
Symbol 209 GraphicUsed by:210 348  Timeline
Symbol 210 MovieClipUses:205 206 208 209Used by:Timeline
Symbol 211 GraphicUsed by:Timeline
Symbol 212 GraphicUsed by:Timeline
Symbol 213 EditableTextUses:130Used by:Timeline
Symbol 214 GraphicUsed by:Timeline
Symbol 215 GraphicUsed by:Timeline
Symbol 216 GraphicUsed by:Timeline
Symbol 217 GraphicUsed by:Timeline
Symbol 218 FontUsed by:219 254
Symbol 219 TextUses:218Used by:235
Symbol 220 SoundUsed by:235
Symbol 221 SoundUsed by:235
Symbol 222 SoundUsed by:235
Symbol 223 SoundUsed by:235
Symbol 224 SoundUsed by:235
Symbol 225 SoundUsed by:235
Symbol 226 SoundUsed by:235
Symbol 227 SoundUsed by:235
Symbol 228 SoundUsed by:235
Symbol 229 SoundUsed by:235
Symbol 230 SoundUsed by:235
Symbol 231 SoundUsed by:235
Symbol 232 SoundUsed by:235
Symbol 233 SoundUsed by:235
Symbol 234 SoundUsed by:235
Symbol 235 MovieClipUses:219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 189Used by:Timeline
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClipUses:236Used by:Timeline
Symbol 238 GraphicUsed by:256
Symbol 239 GraphicUsed by:256
Symbol 240 GraphicUsed by:256
Symbol 241 GraphicUsed by:256
Symbol 242 GraphicUsed by:256
Symbol 243 GraphicUsed by:256
Symbol 244 GraphicUsed by:256
Symbol 245 GraphicUsed by:256
Symbol 246 GraphicUsed by:256
Symbol 247 GraphicUsed by:256
Symbol 248 GraphicUsed by:256
Symbol 249 GraphicUsed by:256
Symbol 250 GraphicUsed by:256
Symbol 251 GraphicUsed by:256
Symbol 252 GraphicUsed by:256
Symbol 253 GraphicUsed by:256
Symbol 254 EditableTextUses:218Used by:256
Symbol 255 GraphicUsed by:256
Symbol 256 MovieClipUses:238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255Used by:Timeline
Symbol 257 GraphicUsed by:259
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClipUses:257 258Used by:270 284 302 317 325 348 404 425 433 459 482 490
Symbol 260 GraphicUsed by:270
Symbol 261 MovieClip [bank]Used by:270 284 302 317 325 348 404 425 433 459 482 490
Symbol 262 GraphicUsed by:270
Symbol 263 GraphicUsed by:270
Symbol 264 GraphicUsed by:270
Symbol 265 GraphicUsed by:270 284 302 317 325 348 404 425 433 459 482 490
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:270 284 302 317 325 348 404 425 433 459 482 490
Symbol 268 GraphicUsed by:270 284 302 317 325 348 404 425 433 459 482 490
Symbol 269 GraphicUsed by:270 284
Symbol 270 MovieClipUses:259 260 261 262 263 264 267 265 268 269Used by:Timeline
Symbol 271 GraphicUsed by:274 275 285 491
Symbol 272 GraphicUsed by:275 285 491
Symbol 273 GraphicUsed by:274 275 285 491
Symbol 274 MovieClipUses:273 271Used by:275 285 491
Symbol 275 ButtonUses:271 272 274 187 273 188 189 190Used by:Timeline
Symbol 276 ButtonUses:29Used by:Timeline
Symbol 277 GraphicUsed by:Timeline
Symbol 278 EditableTextUses:130Used by:Timeline
Symbol 279 GraphicUsed by:280
Symbol 280 MovieClipUses:279Used by:284
Symbol 281 GraphicUsed by:284
Symbol 282 GraphicUsed by:284
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClipUses:280 281 259 282 261 283 267 265 268 269Used by:Timeline
Symbol 285 ButtonUses:271 272 274 187 273 188 189 190Used by:Timeline
Symbol 286 ButtonUses:29Used by:Timeline
Symbol 287 GraphicUsed by:Timeline
Symbol 288 EditableTextUses:130Used by:Timeline
Symbol 289 GraphicUsed by:302
Symbol 290 GraphicUsed by:302 317 404 425
Symbol 291 GraphicUsed by:302
Symbol 292 GraphicUsed by:296
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:296
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClipUses:292 294 295Used by:302
Symbol 297 GraphicUsed by:302
Symbol 298 GraphicUsed by:302
Symbol 299 GraphicUsed by:302
Symbol 300 GraphicUsed by:302
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:289 290 291 296 297 259 298 261 299 300 267 265 268 301Used by:Timeline
Symbol 303 ButtonUses:29Used by:Timeline
Symbol 304 GraphicUsed by:Timeline
Symbol 305 EditableTextUses:130Used by:Timeline
Symbol 306 GraphicUsed by:317
Symbol 307 GraphicUsed by:317
Symbol 308 GraphicUsed by:317
Symbol 309 GraphicUsed by:317
Symbol 310 GraphicUsed by:317
Symbol 311 GraphicUsed by:317
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312Used by:317
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:314Used by:317 348
Symbol 316 GraphicUsed by:317
Symbol 317 MovieClipUses:261 306 290 307 259 308 309 310 267 265 268 311 313 315 316Used by:Timeline
Symbol 318 ButtonUses:29Used by:Timeline
Symbol 319 GraphicUsed by:Timeline
Symbol 320 EditableTextUses:130Used by:Timeline
Symbol 321 GraphicUsed by:325
Symbol 322 GraphicUsed by:325
Symbol 323 GraphicUsed by:325
Symbol 324 GraphicUsed by:325
Symbol 325 MovieClipUses:261 259 321 322 323 267 265 268 324Used by:Timeline
Symbol 326 ButtonUses:29Used by:Timeline
Symbol 327 GraphicUsed by:Timeline
Symbol 328 EditableTextUses:130Used by:Timeline
Symbol 329 GraphicUsed by:348  Timeline
Symbol 330 GraphicUsed by:348 482  Timeline
Symbol 331 GraphicUsed by:Timeline
Symbol 332 GraphicUsed by:348
Symbol 333 GraphicUsed by:348
Symbol 334 GraphicUsed by:348
Symbol 335 GraphicUsed by:348
Symbol 336 GraphicUsed by:348
Symbol 337 GraphicUsed by:348
Symbol 338 GraphicUsed by:348
Symbol 339 GraphicUsed by:348
Symbol 340 GraphicUsed by:348
Symbol 341 GraphicUsed by:348
Symbol 342 GraphicUsed by:348
Symbol 343 GraphicUsed by:348
Symbol 344 GraphicUsed by:348
Symbol 345 GraphicUsed by:346
Symbol 346 MovieClipUses:345Used by:348
Symbol 347 GraphicUsed by:348
Symbol 348 MovieClipUses:261 259 332 333 334 335 336 337 338 329 330 339 209 340 341 342 267 265 268 343 344 346 315 347Used by:Timeline
Symbol 349 GraphicUsed by:352
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:352
Symbol 352 MovieClipUses:351 349Used by:385
Symbol 353 GraphicUsed by:356
Symbol 354 BitmapUsed by:355
Symbol 355 GraphicUses:354Used by:356
Symbol 356 MovieClipUses:355 353Used by:385
Symbol 357 GraphicUsed by:360
Symbol 358 BitmapUsed by:359
Symbol 359 GraphicUses:358Used by:360
Symbol 360 MovieClipUses:359 357Used by:385
Symbol 361 GraphicUsed by:364
Symbol 362 BitmapUsed by:363
Symbol 363 GraphicUses:362Used by:364
Symbol 364 MovieClipUses:363 361Used by:385
Symbol 365 GraphicUsed by:368
Symbol 366 BitmapUsed by:367
Symbol 367 GraphicUses:366Used by:368
Symbol 368 MovieClipUses:367 365Used by:385
Symbol 369 GraphicUsed by:372
Symbol 370 BitmapUsed by:371
Symbol 371 GraphicUses:370Used by:372
Symbol 372 MovieClipUses:371 369Used by:385
Symbol 373 GraphicUsed by:376
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:376
Symbol 376 MovieClipUses:375 373Used by:385
Symbol 377 GraphicUsed by:380
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380
Symbol 380 MovieClipUses:379 377Used by:385
Symbol 381 GraphicUsed by:384
Symbol 382 BitmapUsed by:383
Symbol 383 GraphicUses:382Used by:384
Symbol 384 MovieClipUses:383 381Used by:385
Symbol 385 MovieClipUses:352 356 360 364 368 372 376 380 384 SS3Used by:Timeline
Symbol 386 ButtonUses:29Used by:Timeline
Symbol 387 GraphicUsed by:Timeline
Symbol 388 EditableTextUses:130Used by:Timeline
Symbol 389 GraphicUsed by:404  Timeline
Symbol 390 GraphicUsed by:404
Symbol 391 GraphicUsed by:404
Symbol 392 GraphicUsed by:404
Symbol 393 GraphicUsed by:404
Symbol 394 GraphicUsed by:395
Symbol 395 MovieClipUses:394Used by:404
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:396Used by:404
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:398Used by:404
Symbol 400 GraphicUsed by:401
Symbol 401 MovieClipUses:400Used by:404
Symbol 402 GraphicUsed by:404
Symbol 403 GraphicUsed by:404
Symbol 404 MovieClipUses:390 391 261 389 259 392 290 393 395 397 399 401 402 267 265 268 403Used by:Timeline
Symbol 405 ButtonUses:29Used by:Timeline
Symbol 406 GraphicUsed by:Timeline
Symbol 407 EditableTextUses:130Used by:Timeline
Symbol 408 GraphicUsed by:425
Symbol 409 GraphicUsed by:411
Symbol 410 GraphicUsed by:411 441
Symbol 411 MovieClipUses:410 409Used by:425
Symbol 412 GraphicUsed by:425
Symbol 413 GraphicUsed by:425
Symbol 414 GraphicUsed by:425
Symbol 415 GraphicUsed by:421
Symbol 416 GraphicUsed by:421
Symbol 417 GraphicUsed by:421 423 424
Symbol 418 GraphicUsed by:421
Symbol 419 GraphicUsed by:421
Symbol 420 GraphicUsed by:421
Symbol 421 MovieClipUses:416 417 418 419 420 415Used by:425
Symbol 422 GraphicUsed by:425
Symbol 423 MovieClipUses:417Used by:425
Symbol 424 MovieClipUses:417Used by:425
Symbol 425 MovieClipUses:261 259 408 411 412 290 413 414 421 267 265 268 422 423 424Used by:Timeline
Symbol 426 ButtonUses:29Used by:Timeline
Symbol 427 GraphicUsed by:Timeline
Symbol 428 EditableTextUses:130Used by:Timeline
Symbol 429 GraphicUsed by:433
Symbol 430 GraphicUsed by:433
Symbol 431 GraphicUsed by:433
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:429 259 430 261 431 267 265 268 432Used by:Timeline
Symbol 434 ButtonUses:29Used by:Timeline
Symbol 435 GraphicUsed by:Timeline
Symbol 436 EditableTextUses:130Used by:Timeline
Symbol 437 GraphicUsed by:459
Symbol 438 GraphicUsed by:459
Symbol 439 GraphicUsed by:459
Symbol 440 GraphicUsed by:459
Symbol 441 MovieClipUses:410Used by:459
Symbol 442 GraphicUsed by:459
Symbol 443 GraphicUsed by:459
Symbol 444 GraphicUsed by:459
Symbol 445 GraphicUsed by:446
Symbol 446 MovieClipUses:445Used by:459
Symbol 447 GraphicUsed by:459
Symbol 448 GraphicUsed by:449
Symbol 449 MovieClipUses:448Used by:459
Symbol 450 GraphicUsed by:451
Symbol 451 MovieClipUses:450Used by:459
Symbol 452 GraphicUsed by:453
Symbol 453 MovieClipUses:452Used by:459
Symbol 454 GraphicUsed by:455
Symbol 455 MovieClipUses:454Used by:459
Symbol 456 GraphicUsed by:457
Symbol 457 MovieClipUses:456Used by:459
Symbol 458 GraphicUsed by:459
Symbol 459 MovieClipUses:437 438 440 441 439 259 442 261 443 267 265 268 444 446 447 449 451 453 455 457 458Used by:Timeline
Symbol 460 ButtonUses:29Used by:Timeline
Symbol 461 GraphicUsed by:Timeline
Symbol 462 EditableTextUses:130Used by:Timeline
Symbol 463 GraphicUsed by:482  Timeline
Symbol 464 GraphicUsed by:482  Timeline
Symbol 465 GraphicUsed by:482
Symbol 466 GraphicUsed by:482
Symbol 467 GraphicUsed by:482
Symbol 468 GraphicUsed by:482
Symbol 469 GraphicUsed by:482
Symbol 470 GraphicUsed by:482
Symbol 471 GraphicUsed by:482
Symbol 472 GraphicUsed by:482
Symbol 473 GraphicUsed by:482
Symbol 474 GraphicUsed by:482
Symbol 475 GraphicUsed by:482
Symbol 476 GraphicUsed by:482
Symbol 477 GraphicUsed by:482
Symbol 478 GraphicUsed by:482
Symbol 479 GraphicUsed by:482
Symbol 480 GraphicUsed by:482
Symbol 481 GraphicUsed by:482
Symbol 482 MovieClipUses:261 259 465 466 467 468 469 470 471 472 473 474 475 476 464 330 477 463 478 479 267 265 268 480 481Used by:Timeline
Symbol 483 ButtonUses:29Used by:Timeline
Symbol 484 GraphicUsed by:Timeline
Symbol 485 EditableTextUses:130Used by:Timeline
Symbol 486 GraphicUsed by:490
Symbol 487 GraphicUsed by:490
Symbol 488 GraphicUsed by:490
Symbol 489 GraphicUsed by:490
Symbol 490 MovieClipUses:259 486 261 487 267 265 268 488 489Used by:Timeline
Symbol 491 ButtonUses:271 272 274 187 273 188 189 190Used by:Timeline
Symbol 492 GraphicUsed by:Timeline
Symbol 493 GraphicUsed by:495
Symbol 494 GraphicUsed by:495
Symbol 495 ButtonUses:493 494 29Used by:Timeline
Symbol 496 GraphicUsed by:Timeline
Symbol 497 GraphicUsed by:499
Symbol 498 GraphicUsed by:499
Symbol 499 MovieClipUses:497 498Used by:Timeline
Symbol 500 EditableTextUses:142Used by:Timeline
Symbol 501 EditableTextUses:142Used by:Timeline
Symbol 502 EditableTextUses:142Used by:Timeline
Symbol 503 EditableTextUses:142Used by:Timeline
Symbol 504 GraphicUsed by:Timeline
Symbol 505 GraphicUsed by:Timeline
Symbol 506 GraphicUsed by:Timeline
Symbol 507 GraphicUsed by:509
Symbol 508 GraphicUsed by:509
Symbol 509 ButtonUses:182 507 508 181 186 187 188 189 190Used by:Timeline
Symbol 510 GraphicUsed by:511 512
Symbol 511 ButtonUses:510Used by:Timeline
Symbol 512 ButtonUses:510Used by:Timeline
Streaming Sound 1Used by:Timeline
Streaming Sound 2Used by:Symbol 204 MovieClip
Streaming Sound 3Used by:Symbol 385 MovieClip

Instance Names

"    "Frame 18Symbol 24 MovieClip
"putter"Frame 129Symbol 69 MovieClip
"clients"Frame 129Symbol 107 MovieClip
"ballColor"Frame 129Symbol 114 MovieClip
"ball"Frame 129Symbol 122 MovieClip
"scorecard"Frame 129Symbol 164 MovieClip
"putter"Frame 130Symbol 69 MovieClip
"clients"Frame 130Symbol 107 MovieClip
"ballColor"Frame 130Symbol 114 MovieClip
"ball"Frame 130Symbol 122 MovieClip
"soundfx"Frame 132Symbol 235 MovieClip
"arrow"Frame 132Symbol 237 MovieClip
"messages"Frame 132Symbol 256 MovieClip
"h01"Frame 132Symbol 270 MovieClip
"    "Frame 179Symbol 24 MovieClip
"h02"Frame 180Symbol 284 MovieClip
"    "Frame 230Symbol 24 MovieClip
"h03"Frame 231Symbol 302 MovieClip
"    "Frame 277Symbol 24 MovieClip
"h04"Frame 278Symbol 317 MovieClip
"    "Frame 325Symbol 24 MovieClip
"h05"Frame 326Symbol 325 MovieClip
"    "Frame 372Symbol 24 MovieClip
"h06"Frame 373Symbol 348 MovieClip
"    "Frame 425Symbol 24 MovieClip
"h07"Frame 426Symbol 404 MovieClip
"    "Frame 480Symbol 24 MovieClip
"h08"Frame 481Symbol 425 MovieClip
"    "Frame 536Symbol 24 MovieClip
"h09"Frame 537Symbol 433 MovieClip
"    "Frame 592Symbol 24 MovieClip
"h10"Frame 593Symbol 459 MovieClip
"    "Frame 642Symbol 24 MovieClip
"h11"Frame 643Symbol 482 MovieClip
"    "Frame 699Symbol 24 MovieClip
"h12"Frame 700Symbol 490 MovieClip
"    "Frame 757Symbol 24 MovieClip
"    "Frame 1182Symbol 24 MovieClip
"    "Frame 1212Symbol 24 MovieClip
"visual_aid"Symbol 192 MovieClip Frame 1Symbol 177 MovieClip
"loadbar"Symbol 192 MovieClip Frame 13Symbol 181 MovieClip
"hole"Symbol 270 MovieClip Frame 1Symbol 259 MovieClip
"bank"Symbol 270 MovieClip Frame 1Symbol 261 MovieClip [bank]
"box"Symbol 284 MovieClip Frame 1Symbol 280 MovieClip
"box"Symbol 284 MovieClip Frame 1Symbol 280 MovieClip
"hole"Symbol 284 MovieClip Frame 1Symbol 259 MovieClip
"bank"Symbol 284 MovieClip Frame 1Symbol 261 MovieClip [bank]
"sand"Symbol 302 MovieClip Frame 1Symbol 296 MovieClip
"hole"Symbol 302 MovieClip Frame 1Symbol 259 MovieClip
"bank"Symbol 302 MovieClip Frame 1Symbol 261 MovieClip [bank]
"bank"Symbol 317 MovieClip Frame 1Symbol 261 MovieClip [bank]
"hole"Symbol 317 MovieClip Frame 1Symbol 259 MovieClip
"guides"Symbol 317 MovieClip Frame 1Symbol 313 MovieClip
"slope"Symbol 317 MovieClip Frame 1Symbol 315 MovieClip
"bank"Symbol 325 MovieClip Frame 1Symbol 261 MovieClip [bank]
"hole"Symbol 325 MovieClip Frame 1Symbol 259 MovieClip
"   "Symbol 348 MovieClip Frame 1Symbol 261 MovieClip [bank]
"holeB"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"holeA"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"holeF"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"holeD"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"holeE"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"holeC"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"hole"Symbol 348 MovieClip Frame 1Symbol 259 MovieClip
"slope2"Symbol 348 MovieClip Frame 1Symbol 346 MovieClip
"slope"Symbol 348 MovieClip Frame 1Symbol 315 MovieClip
"bank"Symbol 404 MovieClip Frame 1Symbol 261 MovieClip [bank]
"hole"Symbol 404 MovieClip Frame 1Symbol 259 MovieClip
"slope3"Symbol 404 MovieClip Frame 1Symbol 395 MovieClip
"slope2"Symbol 404 MovieClip Frame 1Symbol 397 MovieClip
"slope4"Symbol 404 MovieClip Frame 1Symbol 399 MovieClip
"slope"Symbol 404 MovieClip Frame 1Symbol 401 MovieClip
"   "Symbol 425 MovieClip Frame 1Symbol 261 MovieClip [bank]
"hole"Symbol 425 MovieClip Frame 1Symbol 259 MovieClip
"damper4"Symbol 425 MovieClip Frame 1Symbol 423 MovieClip
"damper3"Symbol 425 MovieClip Frame 1Symbol 423 MovieClip
"damper2"Symbol 425 MovieClip Frame 1Symbol 423 MovieClip
"damper"Symbol 425 MovieClip Frame 1Symbol 423 MovieClip
"w4"Symbol 425 MovieClip Frame 1Symbol 424 MovieClip
"w2"Symbol 425 MovieClip Frame 1Symbol 424 MovieClip
"w3"Symbol 425 MovieClip Frame 1Symbol 424 MovieClip
"w1"Symbol 425 MovieClip Frame 1Symbol 424 MovieClip
"hole"Symbol 433 MovieClip Frame 1Symbol 259 MovieClip
"bank"Symbol 433 MovieClip Frame 1Symbol 261 MovieClip [bank]
"hole"Symbol 459 MovieClip Frame 1Symbol 259 MovieClip
"bank"Symbol 459 MovieClip Frame 1Symbol 261 MovieClip [bank]
"W2"Symbol 459 MovieClip Frame 1Symbol 446 MovieClip
"W1"Symbol 459 MovieClip Frame 1Symbol 446 MovieClip
"M"Symbol 459 MovieClip Frame 1Symbol 449 MovieClip
"N"Symbol 459 MovieClip Frame 1Symbol 449 MovieClip
"L"Symbol 459 MovieClip Frame 1Symbol 451 MovieClip
"K"Symbol 459 MovieClip Frame 1Symbol 453 MovieClip
"G"Symbol 459 MovieClip Frame 1Symbol 455 MovieClip
"H"Symbol 459 MovieClip Frame 1Symbol 455 MovieClip
"E"Symbol 459 MovieClip Frame 1Symbol 455 MovieClip
"F"Symbol 459 MovieClip Frame 1Symbol 455 MovieClip
"D"Symbol 459 MovieClip Frame 1Symbol 457 MovieClip
"C"Symbol 459 MovieClip Frame 1Symbol 457 MovieClip
"B"Symbol 459 MovieClip Frame 1Symbol 457 MovieClip
"A"Symbol 459 MovieClip Frame 1Symbol 457 MovieClip
"I"Symbol 459 MovieClip Frame 1Symbol 457 MovieClip
"J"Symbol 459 MovieClip Frame 1Symbol 457 MovieClip
"   "Symbol 482 MovieClip Frame 1Symbol 261 MovieClip [bank]
"holeK"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeC"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeI"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeA"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeB"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeJ"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeG"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeH"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeD"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeF"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"holeE"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"hole"Symbol 482 MovieClip Frame 1Symbol 259 MovieClip
"hole"Symbol 490 MovieClip Frame 1Symbol 259 MovieClip
"bank"Symbol 490 MovieClip Frame 1Symbol 261 MovieClip [bank]

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 132Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 180Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 231Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 278Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 326Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 373Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 426Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 481Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 537Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 593Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 643Symbol 261 as "bank"
ExportAssets (56)Timeline Frame 700Symbol 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

ParTwelveSymbol 131 EditableText""
ParElevenSymbol 132 EditableText""
ParTenSymbol 133 EditableText""
ParNineSymbol 134 EditableText""
ParEightSymbol 135 EditableText""
ParSevenSymbol 136 EditableText""
ParSixSymbol 137 EditableText""
ParFiveSymbol 138 EditableText""
ParFourSymbol 139 EditableText""
ParThreeSymbol 140 EditableText""
ParTwoSymbol 141 EditableText""
user_nameSymbol 143 EditableText""
twelveSymbol 144 EditableText""
elevenSymbol 145 EditableText""
tenSymbol 146 EditableText""
nineSymbol 147 EditableText""
eightSymbol 148 EditableText""
sevenSymbol 149 EditableText""
sixSymbol 150 EditableText""
fiveSymbol 151 EditableText""
fourSymbol 152 EditableText""
threeSymbol 153 EditableText""
twoSymbol 154 EditableText""
ParOneSymbol 155 EditableText""
parTotalSymbol 156 EditableText""
totalSymbol 157 EditableText""
oneSymbol 158 EditableText""
percentOutputSymbol 179 EditableText"%"
holeParSymbol 213 EditableText""
overSymbol 254 EditableText""
holeParSymbol 278 EditableText""
holeParSymbol 288 EditableText""
holeParSymbol 305 EditableText""
holeParSymbol 320 EditableText""
holeParSymbol 328 EditableText""
holeParSymbol 388 EditableText""
holeParSymbol 407 EditableText""
holeParSymbol 428 EditableText""
holeParSymbol 436 EditableText""
holeParSymbol 462 EditableText""
holeParSymbol 485 EditableText""
their_emailSymbol 500 EditableText""
your_emailSymbol 501 EditableText""
your_nameSymbol 502 EditableText""
their_nameSymbol 503 EditableText""




http://swfchan.com/5/24639/info.shtml
Created: 24/5 -2019 17:37:55 Last modified: 24/5 -2019 17:37:55 Server time: 22/12 -2024 13:15:08