Frame 1
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
stop();
fscommand ("");
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.perc = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
}
}
Frame 2
stop();
Frame 3
stop();
Frame 4
play();
Frame 5
if (!_root.go) {
gotoAndPlay (4);
} else {
gotoAndStop (6);
}
Frame 6
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole1score = _root.hole1hitCount;
_root.holepar = 2;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 7
stop();
Frame 8
play();
Frame 9
if (!_root.go) {
gotoAndPlay (8);
} else {
gotoAndStop (10);
}
Frame 10
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole2score = _root.hole1hitCount;
_root.holepar = 3;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 11
stop();
Frame 12
play();
Instance of Symbol 115 MovieClip in Frame 12
//component parameters
onClipEvent (initialize) {
returnx = 565;
returny = 100;
}
Instance of Symbol 115 MovieClip in Frame 12
//component parameters
onClipEvent (initialize) {
returnx = 565;
returny = 100;
}
Frame 13
if (!_root.go) {
gotoAndPlay (12);
} else {
gotoAndStop (14);
}
Frame 14
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole3score = _root.hole1hitCount;
_root.holepar = 2;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 15
stop();
Frame 16
function goScene() {
trace("guh");
gotoAndStop (18);
}
play();
Frame 17
if (!_root.go) {
gotoAndPlay (16);
} else {
gotoAndStop (18);
}
Frame 18
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole4score = _root.hole1hitCount;
_root.holepar = 3;
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 19
stop();
Frame 20
play();
Frame 21
if (!_root.go) {
gotoAndPlay (20);
} else {
gotoAndStop (22);
}
Frame 22
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole5score = _root.hole1hitCount;
_root.holepar = 2;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 23
stop();
Frame 24
play();
Instance of Symbol 115 MovieClip in Frame 24
//component parameters
onClipEvent (initialize) {
returnx = 216;
returny = 370;
}
Instance of Symbol 115 MovieClip in Frame 24
//component parameters
onClipEvent (initialize) {
returnx = 216;
returny = 370;
}
Frame 25
if (!_root.go) {
gotoAndPlay (24);
} else {
gotoAndStop (26);
}
Frame 26
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole6score = _root.hole1hitCount;
_root.holepar = 3;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 27
stop();
Frame 28
play();
Frame 29
if (!_root.go) {
gotoAndPlay (28);
} else {
gotoAndStop (30);
}
Frame 30
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole7score = _root.hole1hitCount;
_root.holepar = 2;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 31
stop();
Frame 32
play();
Frame 33
if (!_root.go) {
gotoAndPlay (32);
} else {
gotoAndStop (34);
}
Frame 34
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole8score = _root.hole1hitCount;
_root.holepar = 2;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
sc10 = _root.hole10score;
sc11 = _root.hole11score;
sc12 = _root.hole12score;
sc13 = _root.hole13score;
sc14 = _root.hole14score;
sc15 = _root.hole15score;
sc16 = _root.hole16score;
sc17 = _root.hole17score;
sc18 = _root.hole18score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
total2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
_root.hole1hitCount = 0;
play();
Frame 35
stop();
Frame 36
play();
Instance of Symbol 302 MovieClip in Frame 36
//component parameters
onClipEvent (initialize) {
returnx = 245;
returny = 390;
}
Frame 37
if (!_root.go) {
gotoAndPlay (36);
} else {
gotoAndStop (38);
}
Frame 38
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole9score = _root.hole1hitCount;
_root.holepar = 2;
Mouse.show();
if (_root.hole1hitCount == 1) {
comments = "Hole in One!";
} else if ((_root.holepar - _root.hole1hitCount) == 2) {
comments = "Eagle!";
} else if ((_root.holepar - _root.hole1hitCount) == 1) {
comments = "Birdie!";
} else if ((_root.holepar - _root.hole1hitCount) == 0) {
comments = "Nice Par!";
} else if ((_root.holepar - _root.hole1hitCount) == -1) {
comments = "Bogey";
} else if ((_root.holepar - _root.hole1hitCount) == -2) {
comments = "Double Bogey";
} else if (_root.limit) {
comments = "Eight stroke limit";
_root.limit = 0;
} else {
comments = (_root.hole1hitCount - _root.holepar) + " over Par";
}
sc1 = _root.hole1score;
sc2 = _root.hole2score;
sc3 = _root.hole3score;
sc4 = _root.hole4score;
sc5 = _root.hole5score;
sc6 = _root.hole6score;
sc7 = _root.hole7score;
sc8 = _root.hole8score;
sc9 = _root.hole9score;
total1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
_root.myScore = total1;
_root.hole1hitCount = 0;
play();
Frame 39
stop();
Frame 40
_root.yourRank = 0;
mytxt = "getRank01252004.asp?score=" + _root.myScore;
loadVariablesNum (mytxt, 0);
play();
Frame 42
if (_root.yourRank != 0) {
theRank = Number(_root.yourRank);
if (theRank < 101) {
gotoAndStop (43);
} else {
gotoAndStop (45);
}
} else {
gotoAndPlay (41);
}
Frame 43
score = _root.myScore;
rank = _root.yourRank;
stop();
Frame 44
stop();
Frame 45
stop();
Frame 46
stop();
Frame 47
score = _root.myScore;
rank = _root.yourRank;
stop();
Frame 48
stop();
Symbol 16 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "adventuregolf";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 18 Button
on (release) {
gotoAndPlay (3);
}
Symbol 28 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 37 Button
on (release) {
gotoAndPlay (3);
}
Symbol 42 Button
on (release) {
gotoAndPlay (2);
}
Symbol 47 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 49 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 50 MovieClip Frame 1
this._xscale = 180;
this._yscale = 180;
Symbol 50 MovieClip Frame 3
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if ((Math.abs(_root.xfactor) + Math.abs(_root.yfactor)) < 6) {
_root.ball.gotoAndStop(3);
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball._alpha = 0;
_root.rolling = 0;
_root.ballin._alpha = 100;
_root.ballin.play();
ds = 1;
dtime = getTimer();
if (_root.hole1hitCount == 1) {
mySound = new Sound();
mySound.attachSound("crowd");
mySound.start();
}
}
}
}
if (ds) {
if ((getTimer() - dtime) > 4000) {
ds = 0;
_root.go = 1;
}
}
gotoAndPlay (2);
Symbol 52 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.xfactor = _root.xfactor - 0.2;
_root.yfactor = _root.yfactor - 0.2;
}
}
gotoAndPlay (1);
Symbol 55 Button
on (release) {
gotoAndPlay (2);
}
Instance of Symbol 53 MovieClip "mywall" in Symbol 56 MovieClip Frame 1
onClipEvent (mouseMove) {
if (_root.ballDown != 1) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.ball.gotoAndStop(1);
Mouse.hide();
_root.ball._x = _root._xmouse;
_root.ball._y = _root._ymouse;
} else {
Mouse.show();
}
}
}
onClipEvent (mouseUp) {
if (_root.ballDown != 1) {
Mouse.show();
_root.ballDown = 1;
_root.ball.gotoAndStop(2);
}
}
onClipEvent (load) {
_root.ballDown = 0;
}
Symbol 57 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 57 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, false) || (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y - 3.85) + _root.yfactor, false))) || (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y + 3.85) + _root.yfactor, false))) {
if (_root.yfactor < 0) {
_root.adjust = "y";
_root.yadjust = Math.ceil(myBounds.yMax - (_root.ball._y - 3.85));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = 0.1;
}
_root.wall_snd.start("wlbounce");
} else if (_root.yfactor > 0) {
_root.adjust = "y";
_root.yadjust = Math.floor(myBounds.yMin - (_root.ball._y + 3.85));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = -0.1;
}
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 58 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 58 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, false) || (this.hitTest((_root.ball._x + 3.85) + _root.xfactor, _root.ball._y + _root.yfactor, false))) || (this.hitTest((_root.ball._x - 3.85) + _root.xfactor, _root.ball._y + _root.yfactor, false))) {
if (_root.xfactor < 0) {
_root.adjust = "x";
_root.xadjust = Math.ceil(myBounds.xMax - (_root.ball._x - (_root.ball._width / 2)));
if (Math.abs(_root.xadjust) < 0.1) {
_root.xadjust = 0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
} else if (_root.xfactor > 0) {
_root.adjust = "x";
_root.xadjust = Math.floor(myBounds.xMin - (_root.ball._x + (_root.ball._width / 2)));
if (Math.abs(_root.xadjust) < 0.1) {
_root.xadjust = -0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
gotoAndPlay (2);
Symbol 59 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 60 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 60 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
xw = mybounds.xMin - mybounds.xMax;
yw = mybounds.yMax - mybounds.yMin;
bw = mybounds.yMin - ((yw / xw) * mybounds.xMax);
xc = ((_root.ball._x - 2.72) + _root.xfactor) - (_root.ball._x - 2.72);
yc = ((_root.ball._y - 2.72) + _root.yfactor) - (_root.ball._y - 2.72);
b2 = (_root.ball._y - 2.72) - ((yc / xc) * (_root.ball._x - 2.72));
ix = ((bw - b2) / (yc / xc)) / (1 - ((yw / xw) / (yc / xc)));
_root.xadjust = ix - (_root.ball._x - 2.72);
_root.yadjust = Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
_root.adjust = "xy1";
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 63 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 63 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
xw = mybounds.xMin - mybounds.xMax;
yw = mybounds.yMax - mybounds.yMin;
bw = mybounds.yMax - ((yw / xw) * mybounds.xMin);
xc = ((_root.ball._x + 2.72) + _root.xfactor) - (_root.ball._x + 2.72);
yc = ((_root.ball._y + 2.72) + _root.yfactor) - (_root.ball._y + 2.72);
b2 = (_root.ball._y + 2.72) - ((yc / xc) * (_root.ball._x + 2.72));
ix = ((bw - b2) / (yc / xc)) / (1 - ((yw / xw) / (yc / xc)));
_root.xadjust = ix - (_root.ball._x + 2.72);
_root.yadjust = Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
_root.adjust = "xy4";
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Instance of Symbol 70 MovieClip in Symbol 67 MovieClip Frame 2
onClipEvent (mouseMove) {
if (_root.hole1hitCount > 7) {
_root.limit = 1;
_root.go = 1;
}
Mouse.hide();
_root.putter._x = _root._xmouse;
_root.putter._y = _root._ymouse;
_root.xinit = _parent._x - _root._xmouse;
_root.yinit = _parent._y - _root._ymouse;
this._rotation = 90 + ((Math.atan2(_parent._y - _root._ymouse, _parent._x - _root._xmouse) * 180) / Math.PI);
initScale = Math.abs((_root.xinit * _root.xinit) + (_root.yinit * _root.yinit)) / 20;
if ((initScale <= 200) && (initScale >= 20)) {
this._yscale = initScale;
} else if (initScale > 200) {
this._yscale = 200;
} else {
this._yscale = 20;
}
if (_root.xinit < 0) {
_root.xmult = -1;
} else {
_root.xmult = 1;
}
if (_root.yinit < 0) {
_root.ymult = -1;
} else {
_root.ymult = 1;
}
}
onClipEvent (mouseUp) {
Mouse.show();
_root.putter._x = 1000;
_root.putter._y = 1000;
_root.fa = (Math.atan2(_parent._y - _root._ymouse, _parent._x - _root._xmouse) * 180) / Math.PI;
cp = (11.5 * (this._yscale / 200)) + 1;
_root.xfactor = cp * Math.cos((_root.fa * Math.Pi) / 180);
_root.yfactor = cp * Math.sin((_root.fa * Math.Pi) / 180);
_root.rolling = 1;
_root.hole1hitCount = _root.hole1hitCount + 1;
_root.adjust = "na";
me = new Sound();
me.attachSound("putt");
me.start("putt");
_parent.gotoAndPlay(3);
}
Symbol 67 MovieClip Frame 4
if (_root.balldown == 1) {
if (_root.rolling) {
_root.fa = (Math.atan2(_root.yfactor, _root.xfactor) * 180) / Math.PI;
_root.xdecel = 0.075 * Math.cos((_root.fa * Math.Pi) / 180);
_root.ydecel = 0.075 * Math.sin((_root.fa * Math.Pi) / 180);
if (_root.adjust == "na") {
this._y = this._y + _root.yfactor;
this._x = this._x + _root.xfactor;
} else {
if (_root.adjust == "x") {
this._x = this._x + _root.xadjust;
if (_root.yfactor > 0) {
this._y = this._y + Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
} else if (_root.yfactor < 0) {
this._y = this._y + Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
} else {
this._y = this._y;
}
_root.fa = 180 - _root.fa;
}
if (_root.adjust == "y") {
this._y = this._y + _root.yadjust;
if (_root.xfactor > 0) {
this._x = this._x + Math.abs(_root.yadjust * Math.cos((_root.fa * Math.Pi) / 180));
} else if (_root.yfactor < 0) {
this._x = this._x + Math.abs(_root.yadjust * Math.cos((_root.fa * Math.Pi) / 180));
} else {
this._x = this._x;
}
_root.fa = -1 * _root.fa;
}
if ((_root.adjust == "xy1") && (_root.startCount > 2)) {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = 270 - _root.fa;
_root.startCount = 0;
}
if ((_root.adjust == "xy2") && (_root.startCount > 2)) {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = -270 - _root.fa;
_root.startCount = 0;
}
if ((_root.adjust == "xy3") && (_root.startCount > 2)) {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = -270 - _root.fa;
_root.startCount = 0;
}
if ((_root.adjust == "xy4") && (_root.startCount > 2)) {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = 270 - _root.fa;
_root.startCount = 0;
}
cp = Math.sqrt((_root.xfactor * _root.xfactor) + (_root.yfactor * _root.yfactor));
_root.xfactor = (cp * Math.cos((_root.fa * Math.Pi) / 180)) - _root.xdecel;
_root.yfactor = (cp * Math.sin((_root.fa * Math.Pi) / 180)) - _root.ydecel;
_root.adjust = "na";
}
cp = Math.sqrt((_root.xfactor * _root.xfactor) + (_root.yfactor * _root.yfactor));
_root.xfactor = (cp * Math.cos((_root.fa * Math.Pi) / 180)) - _root.xdecel;
_root.yfactor = (cp * Math.sin((_root.fa * Math.Pi) / 180)) - _root.ydecel;
_root.startCount = _root.startCount + 1;
}
if ((Math.abs(_root.yfactor) + Math.abs(_root.xfactor)) < 0.08) {
_root.rolling = 0;
gotoAndStop (2);
} else {
gotoAndPlay (3);
}
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 65
stop();
Symbol 75 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 88 Button
on (release) {
_root.go = 0;
gotoAndStop (8);
}
Symbol 97 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 98 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.xfactor = _root.xfactor + 0.2;
}
}
gotoAndPlay (1);
Symbol 99 Button
on (release) {
_root.go = 0;
gotoAndStop (8);
}
Symbol 100 MovieClip Frame 1
xinc = 1;
yinc = -8;
Symbol 100 MovieClip Frame 3
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
animStart = 1;
me = new Sound();
me.attachSound("mine");
me.start("mine");
}
}
if (animStart) {
_root.ball._y = _root.ball._y + yinc;
_root.ball._x = _root.ball._x + xinc;
xinc = xinc + 0.05;
yinc = yinc + 1;
if (_root.ball._x > 500) {
_root.ball._alpha = 0;
animStart = 0;
ds = 1;
dtime = getTimer();
_root.ball._x = 560;
_root.ball._y = 152;
}
}
if (ds) {
if ((getTimer() - dtime) > 3400) {
_root.xfactor = -3;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (2);
Symbol 104 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 105 Button
on (release) {
_root.go = 0;
gotoAndStop (12);
}
Symbol 114 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 115 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.xfactor = 0;
_root.yfactor = 0;
_root.ball._x = returnx;
_root.ball._y = returny;
_root.ballDown = 0;
me = new Sound();
me.attachSound("water");
me.start("water");
}
}
gotoAndPlay (1);
Symbol 116 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.yfactor = _root.yfactor - 0.2;
}
}
gotoAndPlay (1);
Symbol 117 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.yfactor = _root.yfactor + 0.2;
}
}
gotoAndPlay (1);
Symbol 118 Button
on (release) {
_root.go = 0;
gotoAndStop (12);
}
Symbol 119 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 119 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
xw = mybounds.xMin - mybounds.xMax;
yw = mybounds.yMin - mybounds.yMax;
bw = mybounds.yMax - ((yw / xw) * mybounds.xMax);
xc = ((_root.ball._x - 2.72) + _root.xfactor) - (_root.ball._x - 2.72);
yc = ((_root.ball._y + 2.72) + _root.yfactor) - (_root.ball._y + 2.72);
b2 = (_root.ball._y + 2.72) - ((yc / xc) * (_root.ball._x - 2.72));
ix = ((bw - b2) / (yc / xc)) / (1 - ((yw / xw) / (yc / xc)));
_root.xadjust = ix - (_root.ball._x - 2.72);
_root.yadjust = Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
_root.adjust = "xy2";
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 123 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 124 Button
on (release) {
_root.go = 0;
gotoAndStop (16);
}
Symbol 135 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 136 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if ((Math.abs(_root.xfactor) + Math.abs(_root.yfactor)) < 4) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.balldown1._alpha = 100;
_root.balldown1.play();
me = new Sound();
me.attachSound("pipe");
me.start("pipe");
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
if (_root.hole1hitCount != 1) {
_root.trainchoice = 3;
_root.ball._x = 556;
_root.ball._y = 259;
} else {
_root.trainchoice = 2;
_root.ball._x = 536;
_root.ball._y = 251;
}
_root.smoke.play();
ds = 0;
}
}
gotoAndPlay (1);
Symbol 137 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if ((Math.abs(_root.xfactor) + Math.abs(_root.yfactor)) < 4) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.balldown2._alpha = 100;
_root.balldown2.play();
me = new Sound();
me.attachSound("pipe");
me.start("pipe");
_root.trainchoice = 1;
_root.ball._x = 556;
_root.ball._y = 145;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.smoke.play();
ds = 0;
}
}
gotoAndPlay (1);
Symbol 138 Button
on (release) {
_root.go = 0;
gotoAndStop (16);
}
Symbol 142 MovieClip Frame 1
this._alpha = 0;
stop();
Symbol 144 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 51
stop();
if (_root.trainchoice == 1) {
_root.train_ball1.play();
} else if (_root.trainchoice == 2) {
_root.train_ball2.play();
} else {
_root.train_ball3.play();
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 53
stop();
_root.xfactor = 0.5;
_root.yfactor = 4;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 53
stop();
_root.xfactor = 0.5;
_root.yfactor = 5;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 46
stop();
_root.xfactor = 0.5;
_root.yfactor = 5;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
Symbol 152 Button
on (release) {
_root.go = 0;
gotoAndStop (20);
}
Symbol 165 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 166 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.xfactor = _root.xfactor - 0.2;
_root.yfactor = _root.yfactor - 0.2;
}
}
gotoAndPlay (1);
Symbol 168 Button
on (release) {
_root.go = 0;
gotoAndStop (20);
}
Symbol 172 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if ((Math.Abs(_root.xfactor) + Math.Abs(_root.yfactor)) < 4) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.balldown1._alpha = 100;
_root.balldown1.play();
_root.newsound = new Sound();
_root.newsound.attachSound("pipe");
_root.newSound.start("pipe");
_root.ball._x = 315;
_root.ball._y = 290;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = 0;
_root.yfactor = random(4) + 2;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 173 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if ((Math.Abs(_root.xfactor) + Math.Abs(_root.yfactor)) < 4) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.balldown2._alpha = 100;
_root.balldown2.play();
_root.ball._x = 455;
_root.ball._y = 397;
_root.newsound = new Sound();
_root.newsound.attachSound("pipe");
_root.newSound.start("pipe");
}
}
}
if (ds) {
if ((getTimer() - dtime) > 1250) {
_root.ramp_clip.play();
ds = 0;
}
}
gotoAndPlay (1);
Symbol 174 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 177 MovieClip Frame 100
stop();
Symbol 180 MovieClip Frame 187
stop();
_root.xfactor = -2;
_root.yfactor = -1;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
Symbol 181 MovieClip Frame 177
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 183 Button
on (release) {
_root.go = 0;
gotoAndStop (24);
}
Symbol 198 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 199 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.xfactor = _root.xfactor - 0.2;
}
}
gotoAndPlay (1);
Symbol 200 Button
on (release) {
_root.go = 0;
gotoAndStop (24);
}
Symbol 202 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 202 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._x < mybounds.xMax) && (_root.ball._x > mybounds.xMin)) {
if (_root.yfactor < 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y - 3.85) + _root.yfactor, true)) {
_root.adjust = "y";
_root.yadjust = Math.ceil(myBounds.yMax - (_root.ball._y - 3.85));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = 0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 205 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 205 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._y < mybounds.yMax) && (_root.ball._y > mybounds.yMin)) {
if (_root.xfactor > 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
_root.adjust = "x";
_root.xadjust = Math.floor(myBounds.xMin - (_root.ball._x + 3.85));
if (Math.abs(_root.xadjust) < 0.1) {
_root.xadjust = -0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 207 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 207 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._x < mybounds.xMax) && (_root.ball._x > mybounds.xMin)) {
if (_root.yfactor < 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
_root.adjust = "y";
_root.yadjust = Math.ceil(myBounds.yMax - (_root.ball._y - 3.85));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = 0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 208 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 208 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._y < mybounds.yMax) && (_root.ball._y > mybounds.yMin)) {
if (_root.xfactor < 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y - 3.85) + _root.yfactor, true)) {
_root.adjust = "x";
_root.xadjust = Math.ceil(myBounds.xMax - (_root.ball._x - 3.85));
if (Math.abs(_root.xadjust) < 0.1) {
_root.xadjust = 0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 210 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 210 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._x < mybounds.xMax) && (_root.ball._x > mybounds.xMin)) {
if (_root.yfactor > 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y - 3.85) + _root.yfactor, true)) {
_root.adjust = "y";
_root.yadjust = Math.floor(myBounds.yMin - (_root.ball._y + 3.85));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = 0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 211 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 211 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._y < mybounds.yMax) && (_root.ball._y > mybounds.yMin)) {
if (_root.xfactor > 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
_root.adjust = "x";
_root.xadjust = Math.floor(myBounds.xMin - (_root.ball._x + 3.85));
if (Math.abs(_root.xadjust) < 0.1) {
_root.xadjust = -0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 213 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 213 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._x < mybounds.xMax) && (_root.ball._x > mybounds.xMin)) {
if (_root.yfactor > 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
_root.adjust = "y";
_root.yadjust = Math.floor(myBounds.yMin - (_root.ball._y + 3.85));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = -0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 214 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 214 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((_root.ball._y < mybounds.yMax) && (_root.ball._y > mybounds.yMin)) {
if (_root.xfactor < 0) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
_root.adjust = "x";
_root.xadjust = Math.ceil(myBounds.xMax - (_root.ball._x - 3.85));
if (Math.abs(_root.xadjust) < 0.1) {
_root.xadjust = 0.1;
}
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 218 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 219 Button
on (release) {
_root.go = 0;
gotoAndStop (28);
}
Symbol 236 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 237 Button
on (release) {
_root.go = 0;
gotoAndStop (28);
}
Symbol 238 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 238 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if (this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true)) {
xw = mybounds.xMin - mybounds.xMax;
yw = mybounds.yMin - mybounds.yMax;
bw = mybounds.yMin - ((yw / xw) * mybounds.xMin);
xc = ((_root.ball._x + 2.72) + _root.xfactor) - (_root.ball._x + 2.72);
yc = ((_root.ball._y - 2.72) + _root.yfactor) - (_root.ball._y - 2.72);
b2 = (_root.ball._y - 2.72) - ((yc / xc) * (_root.ball._x + 2.72));
ix = ((bw - b2) / (yc / xc)) / (1 - ((yw / xw) / (yc / xc)));
fm = Math.sqrt((_root.xfactor * _root.xfactor) + (_root.yfactor * _root.yfactor));
fa = (Math.acos(Math.Abs(_root.yfactor) / fm) * 180) / Math.PI;
_root.xadjust = ix - (_root.ball._x + 2.72);
_root.yadjust = Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
_root.adjust = "xy3";
_root.wall_snd = new Sound();
_root.wall_snd.attachSound("wlbounce");
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 243 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 244 Button
on (release) {
_root.go = 0;
gotoAndStop (32);
}
Symbol 263 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 264 Button
on (release) {
_root.go = 0;
gotoAndStop (32);
}
Symbol 271 MovieClip Frame 41
stop();
Symbol 274 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 275 Button
on (release) {
_root.go = 0;
gotoAndStop (36);
}
Symbol 296 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 297 Button
on (release) {
_root.go = 0;
gotoAndStop (36);
}
Symbol 302 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if ((_root.yfactor > -2.5) && (!timeMarker)) {
_root.yfactor = _root.yfactor + 2.5;
} else if (!timeMarker) {
timeMarker = 1;
_root.rolling = 0;
_root.ball._alpha = 0;
_root.fake_ball._x = _root.ball._x;
_root.fake_ball._y = _root.ball._y;
xSlide = _root.xfactor;
if (_root.yfactor > -6.35) {
yslide = _root.yfactor / 2.3;
initZspeed = Math.abs(_root.yFactor) / 2;
} else {
initZspeed = 3.18;
yslide = -2.76;
}
}
}
}
if ((timeMarker > 0) && (_root.fake_ball._xscale > 99)) {
scaler = (initZspeed * timeMarker) + (Math.pow(timeMarker, 2) * -0.15);
timeMarker = timeMarker + 1;
if ((_root.fake_ball._xscale + scaler) > 99) {
_root.fake_ball._xscale = _root.fake_ball._xscale + scaler;
_root.fake_ball._yscale = _root.fake_ball._xscale + scaler;
} else {
_root.fake_ball._xscale = 99;
_root.fake_ball._yscale = 99;
landed = 1;
}
_root.fake_ball._x = _root.fake_ball._x + xSlide;
_root.fake_ball._y = _root.fake_ball._y + yslide;
}
if (landed) {
landed = 0;
_root.fake_ball._alpha = 0;
if (_root.fake_ball.hitTest(_root.ring_target1)) {
_root.hole1hitCount = _root.hole1hitCount;
_root.ring_light1._alpha = 100;
_root.siren.siren_swipe.play();
_root.sirenSound = new Sound();
_root.sirenSound.attachSound("siren_sound");
_root.sirenSound.start("siren_sound");
} else if (_root.fake_ball.hitTest(_root.ring_target2)) {
if (_root.fake_ball._x < 409.5) {
_root.rolly.gotoAndStop(2);
} else {
_root.rolly.gotoAndStop(3);
}
_root.hole1hitCount = _root.hole1hitCount + 1;
} else {
if (_root.fake_ball._x < 409.5) {
_root.rolly.gotoAndStop(4);
} else {
_root.rolly.gotoAndStop(5);
}
_root.hole1hitCount = _root.hole1hitCount + 2;
}
ds = 1;
dtime = getTimer();
}
if (ds) {
if ((getTimer() - dtime) > 6000) {
ds = 0;
_root.go = 1;
}
}
gotoAndPlay (1);
Symbol 305 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 314 MovieClip Frame 50
stop();
_root.ring_light2._alpha = 100;
Symbol 315 MovieClip Frame 50
stop();
_root.ring_light2._alpha = 100;
Symbol 316 MovieClip Frame 50
stop();
_root.ring_light3._alpha = 100;
Symbol 317 MovieClip Frame 50
stop();
_root.ring_light3._alpha = 100;
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 3
stop();
Symbol 312 MovieClip Frame 4
stop();
Symbol 312 MovieClip Frame 5
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 41
gotoAndPlay (2);
Symbol 318 MovieClip Frame 1
stop();
Symbol 347 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 348 Button
on (release) {
_root.score = total1;
gname = "adventuregolf";
_root.gameover = 1;
}
Symbol 352 Button
on (release) {
_root.score = total1;
gname = "adventuregolf";
_root.gameover = 1;
}
Symbol 366 Button
on (release) {
_root.elist = 0;
gotoAndStop (2);
}
Symbol 370 Button
on (release) {
_root.elist = 0;
gotoAndStop (2);
}
Symbol 371 Button
on (release) {
_root.elist = 1;
gotoAndStop (1);
}
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 372 Button
on (release) {
gotoAndStop (44);
}
Symbol 389 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 396 Button
on (release) {
getURL ("golf_leaderboard.asp", "_blank");
}
Symbol 403 Button
on (release) {
getURL ("http://www.bransontracks.com/offers.html", "_blank");
}
Symbol 409 Button
on (release) {
gotoAndStop (44);
}
Symbol 412 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 413 Button
on (release) {
getURL ("golf_leaderboard.asp", "_blank");
}
Symbol 416 Button
on (release) {
getURL ("http://www.bransontracks.com/offers.html", "_blank");
}
Symbol 417 Button
on (release) {
gotoAndStop (46);
}
Symbol 432 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 433 Button
on (release) {
getURL ("golf_leaderboard.asp", "_blank");
}
Symbol 434 Button
on (release) {
getURL ("http://www.bransontracks.com/offers.html", "_blank");
}
Symbol 435 Button
on (release) {
gotoAndStop (46);
}
Symbol 438 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 443 Button
on (release) {
getURL ("golf_leaderboard.asp", "_blank");
}
Symbol 444 Button
on (release) {
gotoAndStop (48);
}
Symbol 448 Button
on (release) {
getURL ("http://www.bransontracks.com/offers.html", "_blank");
}
Symbol 456 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 457 Button
on (release) {
gotoAndStop (48);
}
Symbol 458 Button
on (release) {
getURL ("golf_leaderboard.asp", "_blank");
}
Symbol 459 Button
on (release) {
gotoAndStop (47);
}
Symbol 466 Button
on (release) {
"game_set_stats_golf.asp?dp=game_starts&extra=" + getTimer();
gotoAndPlay (4);
}
Symbol 467 Button
on (release) {
getURL ("golf_leaderboard.asp", "_blank");
}
Symbol 468 Button
on (release) {
gotoAndStop (47);
}