Frame 1
stop();
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
_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
_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
_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
play();
Instance of Symbol 164 MovieClip in Frame 16
//component parameters
onClipEvent (initialize) {
returnx = 285;
returny = 80;
}
Frame 17
if (!_root.go) {
gotoAndPlay (16);
} else {
gotoAndStop (18);
}
Frame 18
_root.hole4score = _root.hole1hitCount;
_root.holepar = 4;
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 164 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
returnx = 322;
returny = 100;
}
Frame 21
if (!_root.go) {
gotoAndPlay (20);
} else {
gotoAndStop (22);
}
Frame 22
_root.hole5score = _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 23
stop();
Frame 24
play();
Frame 25
if (!_root.go) {
gotoAndPlay (24);
} else {
gotoAndStop (26);
}
Frame 26
_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
_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
_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();
Frame 37
if (!_root.go) {
gotoAndPlay (36);
} else {
gotoAndStop (38);
}
Frame 38
_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() {
trace("guh");
gotoAndStop (42);
}
play();
Frame 41
if (!_root.go) {
gotoAndPlay (40);
} else {
gotoAndStop (42);
}
Frame 42
_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
_root.hole11score = _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 47
stop();
Frame 48
play();
Frame 49
if (!_root.go) {
gotoAndPlay (48);
} else {
gotoAndStop (50);
}
Frame 50
_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 164 MovieClip in Frame 52
//component parameters
onClipEvent (initialize) {
returnx = 565;
returny = 100;
}
Instance of Symbol 164 MovieClip in Frame 52
//component parameters
onClipEvent (initialize) {
returnx = 565;
returny = 100;
}
Frame 53
if (!_root.go) {
gotoAndPlay (52);
} else {
gotoAndStop (54);
}
Frame 54
_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 379 MovieClip in Frame 56
//component parameters
onClipEvent (initialize) {
returnx = 245;
returny = 390;
}
Frame 57
if (!_root.go) {
gotoAndPlay (56);
} else {
gotoAndStop (58);
}
Frame 58
_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
_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();
Frame 65
if (!_root.go) {
gotoAndPlay (64);
} else {
gotoAndStop (66);
}
Frame 66
_root.hole16score = _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 67
stop();
Frame 68
play();
Frame 69
if (!_root.go) {
gotoAndPlay (68);
} else {
gotoAndStop (70);
}
Frame 70
_root.hole17score = _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 71
stop();
Frame 72
play();
Frame 73
if (!_root.go) {
gotoAndPlay (72);
} else {
gotoAndStop (74);
}
Frame 74
_root.hole18score = _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;
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 = "http://www.finestramedia.com/wbc/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) {
gotoAndPlay (4);
}
Symbol 45 Button
on (release) {
gotoAndPlay (2);
}
Instance of Symbol 48 MovieClip "mywall" in Symbol 49 MovieClip Frame 1
onClipEvent (mouseMove) {
if (_root.ballDown != 1) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
_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 50 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 51 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 53 MovieClip Frame 1
this._xscale = 180;
this._yscale = 180;
Symbol 53 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 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Instance of Symbol 78 MovieClip in Symbol 79 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 79 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") {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = 270 - _root.fa;
}
if (_root.adjust == "xy2") {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = -270 - _root.fa;
}
if (_root.adjust == "xy3") {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = -270 - _root.fa;
}
if (_root.adjust == "xy4") {
this._y = this._y + _root.yadjust;
this._x = this._x + _root.xadjust;
_root.fa = 270 - _root.fa;
}
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;
}
if ((Math.abs(_root.yfactor) + Math.abs(_root.xfactor)) < 0.08) {
trace("hi");
_root.rolling = 0;
gotoAndStop (2);
} else {
gotoAndPlay (3);
}
}
Symbol 80 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 80 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 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) || (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 84 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 84 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 85 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 85 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 87 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 87 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 88 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 88 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 90 MovieClip Frame 1
myBounds = this.getBounds(_root);
Instance of Symbol 48 MovieClip "mywall" in Symbol 90 MovieClip Frame 1
/* no clip actions */
Symbol 90 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 93 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 93 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.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 94 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 94 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 95 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 95 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)));
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 = "xy4";
_root.wall_snd.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 96 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 96 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.start("wlbounce");
}
}
gotoAndPlay (2);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 65
stop();
Symbol 107 Button
on (release, keyPress "8") {
_root.hole1HitCount = 8;
_root.go = 1;
}
Symbol 142 Button
on (release) {
_root.go = 0;
gotoAndStop (8);
}
Symbol 151 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 153 Button
on (release) {
_root.go = 0;
gotoAndStop (12);
}
Symbol 164 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 164 MovieClip in Symbol 165 MovieClip Frame 82
//component parameters
onClipEvent (initialize) {
returnx = 270;
returny = 410;
}
Symbol 171 Button
on (release) {
_root.go = 0;
gotoAndStop (16);
}
Symbol 184 Button
on (release) {
_root.go = 0;
gotoAndStop (20);
}
Symbol 196 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(4) + 2;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 198 MovieClip Frame 1
this._alpha = 0;
stop();
Symbol 198 MovieClip Frame 40
Symbol 199 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 201 Button
on (release) {
_root.go = 0;
gotoAndStop (24);
}
Symbol 212 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 214 Button
on (release) {
_root.go = 0;
gotoAndStop (28);
}
Symbol 223 MovieClip Frame 1
xinc = 1;
yinc = -8;
Symbol 223 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 226 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 226 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 227 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 229 Button
on (release) {
_root.go = 0;
gotoAndStop (32);
}
Symbol 239 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 = 390;
_root.ball._y = random(60) + 100;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 1500) {
_root.xfactor = random(4) + 3;
_root.yfactor = 0;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 247 Button
on (release) {
_root.go = 0;
gotoAndStop (36);
}
Symbol 260 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) {
trace("hi");
_root.ball._alpha = 100;
ds2 = 0;
}
}
gotoAndPlay (1);
Symbol 261 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 267 MovieClip Frame 1
stop();
Symbol 269 Button
on (release) {
_root.go = 0;
gotoAndStop (40);
}
Symbol 281 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 = 435;
_root.ball._y = 270;
}
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
if (_root.hole1hitCount != 1) {
_root.xfactor = random(7);
_root.yfactor = random(7);
} else {
trace("yep");
_root.xfactor = 5;
_root.yfactor = 3;
}
_root.glassbreak._alpha = 100;
_root.glassbreak.play();
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 27
stop();
Symbol 294 Button
on (release) {
_root.go = 0;
gotoAndStop (44);
}
Symbol 311 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 311 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 312 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 312 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 314 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 314 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 315 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 315 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 318 Button
on (release) {
_root.go = 0;
gotoAndStop (48);
}
Symbol 338 Button
on (release) {
_root.go = 0;
gotoAndStop (52);
}
Symbol 358 Button
on (release) {
_root.go = 0;
gotoAndStop (56);
}
Symbol 379 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 382 MovieClip Frame 1
xd = 10;
yd = 15;
Symbol 382 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 383 MovieClip Frame 1
myBounds = this.getBounds(_root);
Symbol 383 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 385 Button
on (release) {
_root.go = 0;
gotoAndStop (60);
}
Symbol 412 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 = 510;
_root.ball._y = 365;
}
}
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 414 Button
on (release) {
_root.go = 0;
gotoAndStop (64);
}
Symbol 437 Button
on (release) {
_root.go = 0;
gotoAndStop (68);
}
Symbol 462 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 463 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 = 385;
_root.ball._y = 105;
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 465 Button
on (release) {
_root.go = 0;
gotoAndStop (72);
}
Symbol 489 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 = 405;
_root.ball._y = 220;
}
}
if (ds) {
if ((getTimer() - dtime) > 2000) {
_root.xfactor = 8;
_root.yfactor = 3.5;
_root.ball._alpha = 100;
_root.rolling = 1;
_root.ball.gotoAndPlay(3);
ds = 0;
}
}
gotoAndPlay (1);
Symbol 495 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 = 405;
_root.ball._y = 328;
}
}
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 496 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 = 405;
_root.ball._y = 220;
}
}
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 498 Button
on (release) {
_root.go = 0;
gotoAndStop (76);
}
Symbol 536 Button
on (release) {
_root.elist = 0;
gotoAndStop (2);
}
Symbol 538 Button
on (release) {
_root.elist = 1;
gotoAndStop (1);
}
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
stop();
Symbol 545 Button
on (release) {
loadVariablesNum ("http://www.finestramedia.com/wbc/addtoboard.asp", 0, "POST");
gotoAndStop (80);
}
Symbol 559 Button
on (release) {
gotoAndPlay (4);
}
Symbol 566 Button
on (release) {
getURL ("http://www.widmer.com/games/golfboard2.html");
}
Symbol 573 Button
on (release) {
gotoAndStop (83);
}
Symbol 580 Button
on (release) {
loadVariablesNum ("http://www.finestramedia.com/wbc/addtocontest.asp", 0, "POST");
gotoAndStop (82);
}
Symbol 594 Button
on (release) {
loadVariablesNum ("http://www.finestramedia.com/wbc/tellafriend2.asp", 0, "POST");
gotoAndStop (84);
}
Symbol 600 Button
on (release) {
gotoAndStop (83);
}