Frame 1
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
stop();
fscommand ("");
Instance of Symbol 15 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 = 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 11
stop();
Frame 12
play();
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 = 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 15
stop();
Frame 16
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 = 2;
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();
Instance of Symbol 126 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
returnx = 322;
returny = 100;
}
Instance of Symbol 126 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
returnx = 322;
returny = 100;
}
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 = 4;
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();
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 = 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 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 = 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 35
stop();
Frame 36
play();
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 = 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 39
stop();
Frame 40
function goScene() {
gotoAndStop (42);
}
play();
Frame 41
if (!_root.go) {
gotoAndPlay (40);
} else {
gotoAndStop (42);
}
Frame 42
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole10score = _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 43
stop();
Frame 44
play();
Frame 45
if (!_root.go) {
gotoAndPlay (44);
} else {
gotoAndStop (46);
}
Frame 46
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole11score = _root.hole1hitCount;
_root.holepar = 4;
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 47
stop();
Frame 48
play();
Instance of Symbol 126 MovieClip in Frame 48
//component parameters
onClipEvent (initialize) {
returnx = 216;
returny = 370;
}
Instance of Symbol 126 MovieClip in Frame 48
//component parameters
onClipEvent (initialize) {
returnx = 216;
returny = 370;
}
Frame 49
if (!_root.go) {
gotoAndPlay (48);
} else {
gotoAndStop (50);
}
Frame 50
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole12score = _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 51
stop();
Frame 52
play();
Instance of Symbol 126 MovieClip in Frame 52
//component parameters
onClipEvent (initialize) {
returnx = 565;
returny = 100;
}
Instance of Symbol 126 MovieClip in Frame 52
//component parameters
onClipEvent (initialize) {
returnx = 565;
returny = 100;
}
Frame 53
if (!_root.go) {
gotoAndPlay (52);
} else {
gotoAndStop (54);
}
Frame 54
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole13score = _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 55
stop();
Frame 56
play();
Instance of Symbol 339 MovieClip in Frame 56
//component parameters
onClipEvent (initialize) {
returnx = 245;
returny = 390;
}
Frame 57
if (!_root.go) {
gotoAndPlay (56);
} else {
gotoAndStop (58);
}
Frame 58
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole14score = _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 59
stop();
Frame 60
play();
Frame 61
if (!_root.go) {
gotoAndPlay (60);
} else {
gotoAndStop (62);
}
Frame 62
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole15score = _root.hole1hitCount;
_root.holepar = 4;
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 63
stop();
Frame 64
play();
Instance of Symbol 126 MovieClip in Frame 64
//component parameters
onClipEvent (initialize) {
returnx = 613;
returny = 366;
}
Instance of Symbol 126 MovieClip in Frame 64
//component parameters
onClipEvent (initialize) {
returnx = 613;
returny = 366;
}
Instance of Symbol 126 MovieClip in Frame 64
//component parameters
onClipEvent (initialize) {
returnx = 613;
returny = 366;
}
Instance of Symbol 126 MovieClip in Frame 64
//component parameters
onClipEvent (initialize) {
returnx = 613;
returny = 366;
}
Instance of Symbol 126 MovieClip in Frame 64
//component parameters
onClipEvent (initialize) {
returnx = 613;
returny = 366;
}
Frame 65
if (!_root.go) {
gotoAndPlay (64);
} else {
gotoAndStop (66);
}
Frame 66
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole16score = _root.hole1hitCount;
_root.holepar = 4;
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 67
stop();
Frame 68
play();
Frame 69
if (!_root.go) {
gotoAndPlay (68);
} else {
gotoAndStop (70);
}
Frame 70
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole17score = _root.hole1hitCount;
_root.holepar = 4;
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 71
stop();
Frame 72
play();
Frame 73
if (!_root.go) {
gotoAndPlay (72);
} else {
gotoAndStop (74);
}
Frame 74
if (_root.hole1hitCount == 0) {
_root.go = 0;
gotoAndStop (2);
}
_root.hole18score = _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;
score1 = (((((((_root.hole1score + _root.hole2score) + _root.hole3score) + _root.hole4score) + _root.hole5score) + _root.hole6score) + _root.hole7score) + _root.hole8score) + _root.hole9score;
score2 = (((((((_root.hole10score + _root.hole11score) + _root.hole12score) + _root.hole13score) + _root.hole14score) + _root.hole15score) + _root.hole16score) + _root.hole17score) + _root.hole18score;
total1 = score1;
total2 = score2;
_root.hole1hitCount = 0;
_root.myScore = score1 + score2;
play();
Frame 75
stop();
Frame 76
_root.yourRank = 0;
mytxt = "getRank.asp?score=" + _root.myScore;
loadVariablesNum (mytxt, 0);
play();
Frame 78
if (_root.yourRank != 0) {
theRank = Number(_root.yourRank);
if (theRank < 101) {
gotoAndStop (79);
} else {
gotoAndStop (81);
}
} else {
gotoAndPlay (77);
}
Frame 79
score = _root.myScore;
rank = _root.yourRank;
stop();
Frame 80
stop();
Frame 81
stop();
Frame 82
stop();
Frame 83
score = _root.myScore;
rank = _root.yourRank;
stop();
Frame 84
stop();
Symbol 26 Button
on (release) {
gotoAndPlay (3);
}
Symbol 36 Button
on (release) {
mytxt = "http://www.finestramedia.com/wbc/game_set_stats.asp?dp=game_starts";
loadVariablesNum (mytxt, 0);
gotoAndPlay (4);
}
Symbol 45 Button
on (release) {
gotoAndPlay (2);
}
Symbol 47 Button
on (release) {
gotoAndPlay (4);
}
Instance of Symbol 49 MovieClip "mywall" in Symbol 50 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 52 MovieClip Frame 1
this._xscale = 180;
this._yscale = 180;
Symbol 52 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 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Instance of Symbol 64 MovieClip in Symbol 65 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 65 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 66 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 67 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 68 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 68 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.start("wlbounce");
}
}
}
gotoAndPlay (2);
Symbol 69 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 69 MovieClip Frame 3
if (_root.rolling && (_root.adjust == "na")) {
if ((this.hitTest(_root.ball._x + _root.xfactor, _root.ball._y + _root.yfactor, true) || (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y - 3.85) + _root.yfactor, true))) || (this.hitTest(_root.ball._x + _root.xfactor, (_root.ball._y + 3.85) + _root.yfactor, true))) {
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;
}
me = new Sound();
me.attachSound("bottle_hit");
me.start("bottle_hit");
} 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;
}
me = new Sound();
me.attachSound("bottle_hit");
me.start("bottle_hit");
}
}
}
gotoAndPlay (2);
Symbol 72 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 72 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 73 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 73 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 75 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 75 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 76 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 76 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 78 MovieClip Frame 1
myBounds = this.getBounds(_root);
Instance of Symbol 49 MovieClip "mywall" in Symbol 78 MovieClip Frame 1
/* no clip actions */
Symbol 78 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 81 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 81 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";
wall_snd = new Sound();
wall_snd.attachSound("wlbounce");
wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 82 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 82 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";
wall_snd = new Sound();
wall_snd.attachSound("wlbounce");
wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 65
stop();
Symbol 91 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 104 Button
on (release) {
_root.go = 0;
gotoAndStop (8);
}
Symbol 112 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 113 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 113 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";
wall_snd = new Sound();
wall_snd.attachSound("wlbounce");
wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 114 Button
on (release) {
_root.go = 0;
gotoAndStop (12);
}
Symbol 126 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;
me = new Sound();
me.attachSound("water");
me.start("water");
}
}
gotoAndPlay (1);
Instance of Symbol 126 MovieClip in Symbol 127 MovieClip Frame 82
//component parameters
onClipEvent (initialize) {
returnx = 270;
returny = 410;
}
Symbol 128 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 128 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";
wall_snd = new Sound();
wall_snd.attachSound("wlbounce");
wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 129 Button
on (release) {
_root.go = 0;
gotoAndStop (16);
}
Symbol 135 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 140 Button
on (release) {
_root.go = 0;
gotoAndStop (20);
}
Symbol 152 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");
_root.ball._x = 410;
_root.ball._y = 150;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = random(5) + 2;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 154 MovieClip Frame 1
this._alpha = 0;
stop();
Symbol 154 MovieClip Frame 40
Symbol 155 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x + 3, _root.ball._y, false)) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.ball._x = 558;
_root.ball._y = 308;
}
}
if (ds) {
if ((getTimer() - dtime) > 1000) {
_root.xfactor = 0;
_root.yfactor = random(4) + 2;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 156 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 157 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 158 Button
on (release) {
_root.go = 0;
gotoAndStop (24);
}
Symbol 170 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)) < 130) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.ball._x = 360;
_root.ball._y = random(100) + 100;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = random(5) + 3;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 171 Button
on (release) {
_root.go = 0;
gotoAndStop (28);
}
Symbol 180 MovieClip Frame 1
xinc = 1;
yinc = -8;
Symbol 180 MovieClip Frame 3
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if (_root.yfactor < -6) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
animStart = 1;
me = new Sound();
me.attachSound("pipe");
me.start("pipe");
} else {
_root.yfactor = _root.yfactor + 0.5;
}
}
}
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 = 535;
_root.ball._y = 205;
}
}
if (ds) {
if ((getTimer() - dtime) > 750) {
_root.xfactor = 0;
_root.yfactor = -3;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (2);
Symbol 185 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 185 MovieClip Frame 3
if ((_root.ball._x < mybounds.xMax) && (_root.ball._x > mybounds.xMin)) {
if (_root.yfactor > 0) {
if (_root.rolling && (_root.adjust == "na")) {
if ((((((_root.ball._y + (_root.ball._height / 2)) + _root.yfactor) > myBounds.yMin) && (((_root.ball._y + (_root.ball._height / 2)) + _root.yfactor) < myBounds.yMax)) || ((((_root.ball._y - (_root.ball._height / 2)) + _root.yfactor) > myBounds.yMin) && (((_root.ball._y - (_root.ball._height / 2)) + _root.yfactor) < myBounds.yMax))) || (((_root.ball._y + _root.yfactor) > myBounds.yMin) && ((_root.ball._y + _root.yfactor) < myBounds.yMax))) {
_root.adjust = "y";
_root.yadjust = Math.floor(myBounds.yMin - (_root.ball._y + (_root.ball._height / 2)));
if (Math.abs(_root.yadjust) < 0.1) {
_root.yadjust = -0.1;
}
_root.wall_snd.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 186 Button
on (release) {
_root.go = 0;
gotoAndStop (32);
}
Symbol 204 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 205 Button
on (release) {
_root.go = 0;
gotoAndStop (36);
}
Symbol 217 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 223 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.xfactor = 0;
_root.yfactor = 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");
_root.ball._x = 230;
_root.ball._y = 150;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 1500) {
_root.bottle_movie.play();
ds2 = 1;
dtime2 = getTimer();
ds = 0;
}
}
if (ds2) {
if ((getTimer() - dtime2) > 2500) {
_root.ball._alpha = 100;
ds2 = 0;
}
}
gotoAndPlay (1);
Symbol 224 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.ball._x = 300;
_root.ball._y = 285;
}
}
}
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 231 MovieClip Frame 1
stop();
Symbol 232 Button
on (release) {
_root.go = 0;
gotoAndStop (40);
}
Symbol 244 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("bottle_drop");
me.start("bottle_drop");
_root.ball._x = 475;
_root.ball._y = 270;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
if (_root.hole1hitCount != 1) {
_root.xfactor = random(7);
_root.yfactor = random(7);
} else {
_root.xfactor = 4;
_root.yfactor = 4;
}
_root.glassbreak._alpha = 100;
_root.glassbreak.play();
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 245 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.ball._x = 490;
_root.ball._y = 140;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = random(8);
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 27
stop();
Symbol 255 Button
on (release) {
_root.go = 0;
gotoAndStop (44);
}
Symbol 275 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 275 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 = (_root.ball._x + 2.72) - ix;
_root.yadjust = Math.abs(_root.xadjust * Math.sin((_root.fa * Math.Pi) / 180));
_root.adjust = "xy3";
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 276 Button
on (release) {
_root.go = 0;
gotoAndStop (48);
}
Symbol 295 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 295 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 296 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 296 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 298 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 298 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 299 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 299 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.start("wlbounce");
}
}
}
}
gotoAndPlay (2);
Symbol 301 Button
on (release) {
_root.go = 0;
gotoAndStop (52);
}
Symbol 321 Button
on (release) {
_root.go = 0;
gotoAndStop (56);
}
Symbol 338 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 338 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";
glass_snd = new Sound();
glass_snd.attachSound("bottle_hit");
glass_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 339 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
if (_root.xfactor < 4) {
_root.rolling = 0;
_root.xfactor = 0;
_root.yfactor = 0;
me = new Sound();
me.attachSound("water");
me.start("water");
_root.ball._x = returnx;
_root.ball._y = returny;
} else {
_root.shadow_ball = 1;
ds = 1;
dtime = getTimer();
_root.ball._xscale = 120;
_root.ball._yscale = 130;
}
}
}
if (ds) {
if (((getTimer() - dtime) > 1000) || (_root.ball._x > 550)) {
_root.shadow_ball = 0;
_root.bshadow._alpha = 0;
_root.ball._xscale = 100;
_root.ball._yscale = 100;
ds = 0;
}
}
gotoAndPlay (1);
Symbol 341 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 349 MovieClip Frame 1
xd = 10;
yd = 15;
Symbol 349 MovieClip Frame 3
if (_root.shadow_ball) {
this._alpha = 100;
this._x = _root.ball._x + xd;
this._y = _root.ball._y + yd;
xd = xd - 0.5;
yd = yd - 0.5;
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
gotoAndPlay (2);
Symbol 350 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 350 MovieClip Frame 3
if ((((((_root.ball._x - 3.85) + _root.xfactor) < myBounds.xMax) && (((_root.ball._x - 3.85) + _root.xfactor) > myBounds.xMin)) || ((((_root.ball._x + 3.85) + _root.xfactor) < myBounds.xMax) && (((_root.ball._x + 3.85) + _root.xfactor) > myBounds.xMin))) || (((_root.ball._x + _root.xfactor) < myBounds.xMax) && ((_root.ball._x + _root.xfactor) > myBounds.xMin))) {
if ((_root.ball._y < mybounds.yMax) && (_root.ball._y > mybounds.yMin)) {
if (_root.rolling && (_root.adjust == "na")) {
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");
}
}
}
}
gotoAndPlay (2);
Symbol 351 Button
on (release) {
_root.go = 0;
gotoAndStop (60);
}
Symbol 379 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_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");
_root.ball._x = 502;
_root.ball._y = 213;
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = 3;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 380 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_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.ball._x = 502;
_root.ball._y = 213;
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = 3;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 381 Button
on (release) {
_root.go = 0;
gotoAndStop (64);
}
Symbol 404 Button
on (release) {
_root.go = 0;
gotoAndStop (68);
}
Symbol 425 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 430 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
me = new Sound();
me.attachSound("pipe");
me.start("pipe");
_root.ball._x = 465;
_root.ball._y = 175;
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = -2;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 431 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.rolling = 0;
_root.ball.gotoAndStop(3);
_root.ball._alpha = 0;
dtime = getTimer();
ds = 1;
_root.ball._x = 350;
_root.ball._y = 110;
me = new Sound();
me.attachSound("bottle_drop");
me.start("bottle_drop");
}
}
if (ds) {
if ((getTimer() - dtime) > 2500) {
_root.xfactor = -1 * (random(4) + 5);
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 432 Button
on (release) {
_root.go = 0;
gotoAndStop (72);
}
Symbol 453 MovieClip Frame 1
this._xscale = 180;
this._yscale = 180;
Symbol 453 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)) < 60) {
_root.ball.gotoAndStop(3);
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball._alpha = 0;
_root.rolling = 0;
_root.ballin1._alpha = 100;
_root.ballin1.play();
ds = 1;
dtime = getTimer();
_root.hole1hitCount = _root.hole1hitCount + 2;
if (_root.hole1hitCount == 1) {
}
}
}
}
if (ds) {
if ((getTimer() - dtime) > 4000) {
ds = 0;
_root.go = 1;
}
}
gotoAndPlay (2);
Symbol 454 MovieClip Frame 1
this._xscale = 180;
this._yscale = 180;
Symbol 454 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)) < 60) {
_root.ball.gotoAndStop(3);
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball._alpha = 0;
_root.rolling = 0;
_root.ballin2._alpha = 100;
_root.ballin2.play();
ds = 1;
dtime = getTimer();
_root.hole1hitCount = _root.hole1hitCount + 1;
if (_root.hole1hitCount == 1) {
}
}
}
}
if (ds) {
if ((getTimer() - dtime) > 4000) {
ds = 0;
_root.go = 1;
}
}
gotoAndPlay (2);
Symbol 455 MovieClip Frame 2
if (_root.rolling) {
if (this.hitTest(_root.ball._x, _root.ball._y, false)) {
_root.yfactor = _root.yfactor + 0.25;
}
}
gotoAndPlay (1);
Symbol 461 MovieClip Frame 1
this._xscale = 180;
this._yscale = 180;
Symbol 461 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)) < 60) {
_root.ball.gotoAndStop(3);
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball._alpha = 0;
_root.rolling = 0;
_root.ballin3._alpha = 100;
_root.ballin3.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 462 Button
on (release) {
_root.go = 0;
gotoAndStop (76);
}
Symbol 500 Button
on (release) {
_root.elist = 0;
gotoAndStop (2);
}
Symbol 502 Button
on (release) {
_root.elist = 1;
gotoAndStop (1);
}
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 509 Button
on (release) {
loadVariablesNum ("addtoboard.asp", 0, "POST");
gotoAndStop (80);
}
Symbol 523 Button
on (release) {
gotoAndPlay (4);
}
Symbol 530 Button
on (release) {
getURL ("http://www.widmer.com/games/golfboard2.html");
}
Symbol 537 Button
on (release) {
gotoAndStop (83);
}
Symbol 543 Button
on (release) {
loadVariablesNum ("http://www.finestramedia.com/wbc/addtocontest.asp", 0, "POST");
gotoAndStop (82);
}
Symbol 557 Button
on (release) {
loadVariablesNum ("http://www.finestramedia.com/wbc/tellafriend2.asp", 0, "POST");
gotoAndStop (84);
}
Symbol 563 Button
on (release) {
gotoAndStop (83);
}