Frame 1
stop();
Frame 2
_global.groundCounter = 10;
hole = 1;
stroke = 1;
par = 3;
stop();
Instance of Symbol 52 MovieClip "line" in Frame 2
onClipEvent (enterFrame) {
this._rotation = _root.club._rotation;
this._x = _root.club._x;
this._y = _root.club._y;
}
Instance of Symbol 63 MovieClip "club" in Frame 2
onClipEvent (enterFrame) {
if (animation._currentframe == 1) {
_x = _root.level.ball._x;
_y = _root.level.ball._y;
a = this._y - _root._ymouse;
b = this._x - _root._xmouse;
angleA = Math.atan2(a, b);
degrees = angleA / (Math.pi / 180);
this._rotation = degrees;
speed = Math.abs(Math.sqrt((a * a) + (b * b))) / 10;
if (speed > 15) {
speed = 15;
}
_root.line._xscale = speed * 25;
}
}
Instance of Symbol 74 MovieClip "score" in Frame 2
onClipEvent (mouseDown) {
if (_currentframe > 1) {
_root.level.play();
_root.level.ball._visible = true;
gotoAndStop (1);
}
}
Symbol 5 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
_root.level.ball.hspeed = (_root.level.ball.vspeed = 0);
_root.level.ball._visible = false;
_root.club._visible = false;
_root.line._visible = false;
s = (_root.stroke - _root.par) + 4;
if (s < 1) {
s = 1;
}
if (s > 8) {
s = 8;
}
_root.score.gotoAndPlay(s);
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 31 Button
on (release) {
play();
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
_root.level.ball.hspeed = (_root.level.ball.vspeed = 0);
_root.level.ball._visible = false;
Symbol 38 MovieClip Frame 34
_root.level.ball._x = 220;
_root.level.ball._y = 246;
_root.level.ball.vspeed = 3;
_root.level.ball._visible = true;
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip "downs1" in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed + 0.21;
}
}
Instance of Symbol 28 MovieClip "ball" in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
handle = "ball";
hspeed = (vspeed = 0);
friction = 0.965;
}
onClipEvent (enterFrame) {
if ((((hspeed == 0) && (vspeed == 0)) && (_visible == true)) && (_root.club._visible == false)) {
_root.stroke++;
_root.club._visible = true;
_root.line._visible = true;
}
if (Math.abs(hspeed) > 0.2) {
hspeed = hspeed * friction;
} else {
hspeed = 0;
}
if (Math.abs(vspeed) > 0.2) {
vspeed = vspeed * friction;
} else {
vspeed = 0;
}
hblock = false;
vblock = false;
_root.proxy._x = _x + hspeed;
_root.proxy._y = _y + vspeed;
r = _width / 2;
holeR = _root.level.hole._width / 2;
c = _x - _root.level.hole._x;
d = _y - _root.level.hole._y;
s = Math.abs(hspeed) + Math.abs(vspeed);
if (Math.abs(Math.sqrt((c * c) + (d * d))) < ((r + holeR) - 2)) {
if (s < 3) {
_root.level.hole.gotoAndStop(2);
} else {
hspeed = hspeed + ((Math.random() * 3) - 1);
vspeed = vspeed + ((Math.random() * 3) - 1);
}
}
i = 0;
while (i <= _global.groundCounter) {
if (_root.proxy.hitTest(_root.level["ground" + i])) {
_root.putt.start(0, 1);
if (((this._y < (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2))) && ((this._x - ((_width / 2) - 2)) < (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)))) && ((this._x + ((_width / 2) - 2)) > (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)))) {
this.vSpeed = -this.vSpeed;
vblock = true;
this._y = (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)) - (this._height / 2);
}
if (((this._y > (_root.level["ground" + i]._y + (_root.level["ground" + i]._height / 2))) && ((this._x - ((this._width / 2) - 2)) < (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)))) && ((this._x + ((this._width / 2) - 2)) > (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)))) {
this.vSpeed = -this.vSpeed;
vblock = true;
this._y = (_root.level["ground" + i]._y + (_root.level["ground" + i]._height / 2)) + (this._height / 2);
}
if ((this._x >= (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2))) && (this._y > (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)))) {
this.hSpeed = -this.hSpeed;
hblock = true;
this._x = (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)) + (this._width / 2);
}
if ((this._x <= (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2))) && (this._y > (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)))) {
this.hSpeed = -this.hSpeed;
hblock = true;
this._x = ((_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)) - (this._width / 2)) - 2.1;
}
}
i++;
}
if (hblock == false) {
_x = (_x + hspeed);
}
if (vblock == false) {
_y = (_y + vspeed);
}
}
Symbol 45 MovieClip Frame 10
_root.stroke = 0;
_root.hole = 2;
stop();
Instance of Symbol 19 MovieClip "downs1" in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed + 0.21;
}
}
Instance of Symbol 19 MovieClip "downs2" in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed + 0.21;
}
}
Instance of Symbol 19 MovieClip "downs3" in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed - 0.21;
}
}
Instance of Symbol 19 MovieClip "downs4" in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed - 0.21;
}
}
Instance of Symbol 33 MovieClip in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.proxy) || (this.hitTest(_root.level.ball))) {
if (_root.level.ball._x < this._x) {
_root.level.ball._x = (this._x - (_root.level.ball._width / 2)) - 1;
if (_root.level.ball.hspeed > 0) {
_root.level.ball.hspeed = -_root.level.ball.hspeed;
}
}
}
}
Instance of Symbol 33 MovieClip in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.proxy) || (this.hitTest(_root.level.ball))) {
if (_root.level.ball._x > this._x) {
_root.level.ball._x = (this._x + (_root.level.ball._width / 2)) + 1;
if (_root.level.ball.hspeed < 0) {
_root.level.ball.hspeed = -_root.level.ball.hspeed;
}
}
}
}
Instance of Symbol 28 MovieClip "ball" in Symbol 45 MovieClip Frame 10
onClipEvent (load) {
handle = "ball";
hspeed = (vspeed = 0);
friction = 0.965;
}
onClipEvent (enterFrame) {
if ((((hspeed == 0) && (vspeed == 0)) && (_visible == true)) && (_root.club._visible == false)) {
_root.stroke++;
_root.club._visible = true;
_root.line._visible = true;
}
if (Math.abs(hspeed) > 0.2) {
hspeed = hspeed * friction;
} else {
hspeed = 0;
}
if (Math.abs(vspeed) > 0.2) {
vspeed = vspeed * friction;
} else {
vspeed = 0;
}
hblock = false;
vblock = false;
_root.proxy._x = _x + hspeed;
_root.proxy._y = _y + vspeed;
r = _width / 2;
holeR = _root.level.hole._width / 2;
c = _x - _root.level.hole._x;
d = _y - _root.level.hole._y;
s = Math.abs(hspeed) + Math.abs(vspeed);
if (Math.abs(Math.sqrt((c * c) + (d * d))) < ((r + holeR) - 2)) {
if (s < 3) {
_root.level.hole.gotoAndStop(2);
} else {
hspeed = hspeed + ((Math.random() * 3) - 1);
vspeed = vspeed + ((Math.random() * 3) - 1);
}
}
i = 0;
while (i <= _global.groundCounter) {
if (_root.proxy.hitTest(_root.level["ground" + i])) {
_root.putt.start(0, 1);
if (((this._y < (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2))) && ((this._x - ((_width / 2) - 2)) < (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)))) && ((this._x + ((_width / 2) - 2)) > (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)))) {
this.vSpeed = -this.vSpeed;
vblock = true;
this._y = (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)) - (this._height / 2);
}
if (((this._y > (_root.level["ground" + i]._y + (_root.level["ground" + i]._height / 2))) && ((this._x - ((this._width / 2) - 2)) < (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)))) && ((this._x + ((this._width / 2) - 2)) > (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)))) {
this.vSpeed = -this.vSpeed;
vblock = true;
this._y = (_root.level["ground" + i]._y + (_root.level["ground" + i]._height / 2)) + (this._height / 2);
}
if ((this._x >= (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2))) && (this._y > (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)))) {
this.hSpeed = -this.hSpeed;
hblock = true;
this._x = (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)) + (this._width / 2);
}
if ((this._x <= (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2))) && (this._y > (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)))) {
this.hSpeed = -this.hSpeed;
hblock = true;
this._x = ((_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)) - (this._width / 2)) - 2.1;
}
}
i++;
}
if (hblock == false) {
_x = (_x + hspeed);
}
if (vblock == false) {
_y = (_y + vspeed);
}
}
Symbol 45 MovieClip Frame 20
_root.stroke = 0;
_root.hole = 3;
stop();
Instance of Symbol 19 MovieClip "downs1" in Symbol 45 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed + 0.21;
}
}
Instance of Symbol 19 MovieClip "downs2" in Symbol 45 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.hspeed = _root.level.ball.hspeed - 0.21;
}
}
Instance of Symbol 19 MovieClip "downs3" in Symbol 45 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
_root.level.ball.vspeed = _root.level.ball.vspeed + 0.21;
}
}
Instance of Symbol 38 MovieClip in Symbol 45 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.level.ball)) {
play();
}
}
Instance of Symbol 17 MovieClip "ground10" in Symbol 45 MovieClip Frame 20
onClipEvent (enterFrame) {
_x = _parent.mblock.block._x;
}
Instance of Symbol 28 MovieClip "ball" in Symbol 45 MovieClip Frame 20
onClipEvent (load) {
handle = "ball";
hspeed = (vspeed = 0);
friction = 0.965;
}
onClipEvent (enterFrame) {
if ((((hspeed == 0) && (vspeed == 0)) && (_visible == true)) && (_root.club._visible == false)) {
_root.stroke++;
_root.club._visible = true;
_root.line._visible = true;
}
if (Math.abs(hspeed) > 0.2) {
hspeed = hspeed * friction;
} else {
hspeed = 0;
}
if (Math.abs(vspeed) > 0.2) {
vspeed = vspeed * friction;
} else {
vspeed = 0;
}
hblock = false;
vblock = false;
_root.proxy._x = _x + hspeed;
_root.proxy._y = _y + vspeed;
r = _width / 2;
holeR = _root.level.hole._width / 2;
c = _x - _root.level.hole._x;
d = _y - _root.level.hole._y;
s = Math.abs(hspeed) + Math.abs(vspeed);
if (Math.abs(Math.sqrt((c * c) + (d * d))) < ((r + holeR) - 2)) {
if (s < 3) {
_root.level.hole.gotoAndStop(2);
} else {
hspeed = hspeed + ((Math.random() * 3) - 1);
vspeed = vspeed + ((Math.random() * 3) - 1);
}
}
i = 0;
while (i <= _global.groundCounter) {
if (_root.proxy.hitTest(_root.level["ground" + i])) {
_root.putt.start(0, 1);
if (((this._y < (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2))) && ((this._x - ((_width / 2) - 2)) < (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)))) && ((this._x + ((_width / 2) - 2)) > (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)))) {
this.vSpeed = -this.vSpeed;
vblock = true;
this._y = (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)) - (this._height / 2);
}
if (((this._y > (_root.level["ground" + i]._y + (_root.level["ground" + i]._height / 2))) && ((this._x - ((this._width / 2) - 2)) < (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)))) && ((this._x + ((this._width / 2) - 2)) > (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)))) {
this.vSpeed = -this.vSpeed;
vblock = true;
this._y = (_root.level["ground" + i]._y + (_root.level["ground" + i]._height / 2)) + (this._height / 2);
}
if ((this._x >= (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2))) && (this._y > (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)))) {
this.hSpeed = -this.hSpeed;
hblock = true;
this._x = (_root.level["ground" + i]._x + (_root.level["ground" + i]._width / 2)) + (this._width / 2);
}
if ((this._x <= (_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2))) && (this._y > (_root.level["ground" + i]._y - (_root.level["ground" + i]._height / 2)))) {
this.hSpeed = -this.hSpeed;
hblock = true;
this._x = ((_root.level["ground" + i]._x - (_root.level["ground" + i]._width / 2)) - (this._width / 2)) - 2.1;
}
}
i++;
}
if (hblock == false) {
_x = (_x + hspeed);
}
if (vblock == false) {
_y = (_y + vspeed);
}
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 5
if (_parent._visible == false) {
gotoAndPlay (25);
}
Symbol 62 MovieClip Frame 7
if (_parent._visible == true) {
_root.level.ball.hspeed = _root.level.ball.hspeed + (Math.cos((_parent._rotation * Math.PI) / 180) * _parent.speed);
_root.level.ball.vspeed = _root.level.ball.vspeed + (Math.sin((_parent._rotation * Math.PI) / 180) * _parent.speed);
_root.line._visible = false;
}
Symbol 62 MovieClip Frame 26
_parent._visible = false;
Symbol 63 MovieClip Frame 1
stop();
Instance of Symbol 62 MovieClip "animation" in Symbol 63 MovieClip Frame 1
onClipEvent (mouseDown) {
play();
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 74 MovieClip Frame 4
stop();
Symbol 74 MovieClip Frame 5
stop();
Symbol 74 MovieClip Frame 6
stop();
Symbol 74 MovieClip Frame 7
stop();
Symbol 74 MovieClip Frame 8
stop();