Frame 1
play();
Frame 2
if (_framesloaded >= _totalframes) {
nextFrame();
} else {
gotoAndPlay (1);
}
loadingg = Math.floor(getBytesLoaded() / 1024);
loadedd = Math.floor(getBytesTotal() / 1024);
totall = Math.floor((loadingg / loadedd) * 100);
disload = (((("<center><font color='#006699'>Loading..</font> <b> " + totall) + " % </b> <b><font color='#FF0000'>Amazing</font><font color='#009900'> Golf</font><font color='#0033cc'> Pro </font></b></center> Loaded Kilobytes:<b>") + loadingg) + "</b> Total Kilobytes:<b>") + loadedd;
Frame 3
score = 0;
Mouse.show();
stop();
Frame 4
function shout() {
shh.start();
}
function cry() {
stt.start();
}
function babe() {
sss.start();
}
function msound() {
dd.start();
}
function reset() {
alert = "RESET";
gotoAndPlay (1);
}
score = 0;
totalscore = "Score: " + score;
shot = 0;
shh = new Sound();
shh.attachSound("coinsound");
stt = new Sound();
stt.attachSound("shotsound");
sss = new Sound();
sss.attachSound("levelsound");
dd = new Sound();
dd.attachSound("metalsound");
stop();
Instance of Symbol 37 MovieClip "ball" in Frame 4
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (mouseDown) {
tangle = this._rotation;
}
onClipEvent (enterFrame) {
_root.ballangle = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(5);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
_root.main.sp = false;
}
if (this.hitTest(_root.ruby1) == true) {
_root.shout();
_root.ruby1._x = _root.ruby1._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ruby2) == true) {
_root.shout();
_root.ruby2._x = _root.ruby2._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ground) == false) {
_root.reset();
}
}
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.mar) == true) && (0 < this._rotation)) && (this._rotation)) && (this._rotation < 90)) {
_root.msound();
this._rotation = 180 - tangle;
this._x = 310;
tangle = this._rotation;
temp = this._rotation;
}
if ((this.hitTest(_root.mar) == true) && (this._rotation == 0)) {
_root.msound();
this._rotation = 180;
this._x = 310;
tangle = this._rotation;
temp = this._rotation;
}
if ((((this.hitTest(_root.mar) == true) && (this._rotation < 0)) && (this._rotation)) && (-90 < this._rotation)) {
_root.msound();
this._rotation = -180 - tangle;
this._x = 310;
tangle = this._rotation;
temp = this._rotation;
}
if (((this.hitTest(_root.ear) == true) && (0 < this._rotation)) && (this._rotation < 90)) {
_root.msound();
this._rotation = -tangle;
this._y = 242;
tangle = this._rotation;
temp = this._rotation;
}
if ((this.hitTest(_root.ear) == true) && (this._rotation == 90)) {
_root.msound();
this._rotation = -90;
this._y = 242;
tangle = this._rotation;
temp = this._rotation;
}
if (((this.hitTest(_root.ear) == true) && (90 < this._rotation)) && (179 >= this._rotation)) {
_root.msound();
this._rotation = -tangle;
this._y = 242;
tangle = this._rotation;
temp = this._rotation;
}
}
Instance of Symbol 79 MovieClip "main" in Frame 4
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
_root.sangle = this._rotation;
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
_root.ball.rottt = _root.ball.angle - 90;
_root.ball._rotation = _root.ball.rottt;
_root.ball.temp = _root.ball._rotation;
_root.alert = "";
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Instance of Symbol 80 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.totalscore = "Score: " + _root.score;
_root.totalshot = "Shot: " + _root.shot;
}
Frame 5
stop();
Instance of Symbol 85 MovieClip "ball" in Frame 5
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (mouseDown) {
this._rotation = angle - 90;
temp = this._rotation;
tangle = this._rotation;
}
onClipEvent (enterFrame) {
_root.aa = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(7);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
_root.main.sp = false;
}
if (this.hitTest(_root.gold1) == true) {
_root.shout();
_root.gold1._x = _root.gold1._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.gold2) == true) {
_root.shout();
_root.gold2._x = _root.gold2._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.gold3) == true) {
_root.shout();
_root.gold3._x = _root.gold3._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.gold4) == true) {
_root.shout();
_root.gold4._x = _root.gold4._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ground) == false) {
_root.reset();
}
}
Instance of Symbol 86 MovieClip "main" in Frame 5
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Frame 6
gotoAndPlay (1);
Frame 7
stop();
Instance of Symbol 87 MovieClip "ball" in Frame 7
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (mouseDown) {
this._rotation = angle - 90;
temp = this._rotation;
}
onClipEvent (enterFrame) {
_root.aa = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(9);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
_root.main.sp = false;
}
if (this.hitTest(_root.ruby1) == true) {
_root.shout();
_root.ruby1._x = _root.ruby1._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ruby2) == true) {
_root.shout();
_root.ruby2._x = _root.ruby2._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ruby3) == true) {
_root.shout();
_root.ruby3._x = _root.ruby3._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ruby4) == true) {
_root.shout();
_root.ruby4._x = _root.ruby4._x - 500;
_root.score = _root.score + 50;
}
if (this.hitTest(_root.ground) == false) {
_root.reset();
}
}
Instance of Symbol 86 MovieClip "main" in Frame 7
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Frame 8
gotoAndPlay (1);
Frame 9
stop();
Instance of Symbol 88 MovieClip "ball" in Frame 9
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (enterFrame) {
_root.aa = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(11);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (1 >= speed)) {
leftgravity = true;
this._rotation = -160;
}
if ((leftgravity == true) && (this.hitTest(_root.clope) == true)) {
if (this._rotation >= -179) {
this._rotation = this._rotation - 1;
this._rotation = -180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midslope) == true) && (midgravity == true)) {
speed = speed + 0.3;
}
if (this.hitTest(_root.downhill) == true) {
if (this._rotation >= -178) {
this._rotation = this._rotation - (20 / speed);
}
if (-178 >= this._rotation) {
this._rotation = -180;
}
speed = speed + 0.3;
}
if (this.hitTest(_root.dohill) == true) {
if (178 >= this._rotation) {
this._rotation = this._rotation + (20 / speed);
}
if (this._rotation >= 178) {
this._rotation = 180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midhill) == true) && (this._rotation == -180)) {
speed = speed + 0.3;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (this._rotation < 90)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.slope) == true) && (this._rotation >= 90)) && (gravity == false)) && (this._rotation < 180)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.slope) == true) && (this._rotation >= 178)) {
this._rotation = 180;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (-90 < this._rotation)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.clope) == true) && (-90 >= this._rotation)) && (leftgravity == false)) && (-180 < this._rotation)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.clope) == true) && (-178 >= this._rotation)) {
this._rotation = -180;
}
if ((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) {
speed = speed - 0.2;
}
if (((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) && (1 >= speed)) {
this._rotation = 180;
midgravity = true;
}
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
if ((1 >= speed) && (this.hitTest(_root.slope) == true)) {
_root.main.sp = true;
}
if ((1 >= speed) && (this.hitTest(_root.clope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.slope) == false)) {
_root.main.sp = false;
gravity = false;
}
if ((0 >= speed) && (this.hitTest(_root.clope) == false)) {
_root.main.sp = false;
leftgravity = false;
}
if ((1 >= speed) && (this.hitTest(_root.midslope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.midslope) == false)) {
_root.main.sp = false;
midgravity = false;
}
if ((0 >= speed) && (_root.gravity == true)) {
_root.main.sp = false;
}
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
} else if ((0 < speed) && (_root.main.sp == true)) {
_root.main.virtuals = false;
}
if (this.hitTest(_root.ruby1) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby1._x = -1000;
}
if (this.hitTest(_root.ruby2) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby2._x = -1000;
}
if ((this.hitTest(_root.ground) == false) && (this.hitTest(_root.hground) == false)) {
_root.reset();
}
}
Instance of Symbol 89 MovieClip "main" in Frame 9
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
if ((90 < this._rotation) && (180 >= this._rotation)) {
_root.slope._x = 240;
_root.slope._y = 35.9;
} else {
_root.slope._x = -1000;
}
if ((this._rotation < 90) && (this._rotation >= 0)) {
_root.clope._x = 240;
_root.clope._y = 35.9;
} else {
_root.clope._x = -1000;
}
if (this._rotation == 90) {
_root.midslope._x = 240;
_root.midslope._y = 35.9;
} else {
_root.midslope._x = -1000;
}
if ((0 >= this._rotation) && (-90 < this._rotation)) {
_root.downhill._x = 240;
_root.downhill._y = 35.9;
} else {
_root.downhill._x = -1000;
}
if ((this._rotation >= -180) && (this._rotation < -90)) {
_root.dohill._x = 240;
_root.dohill._y = 35.9;
} else {
_root.dohill._x = -1000;
}
if (this._rotation == -90) {
_root.midhill._x = 240;
_root.midhill._y = 35.9;
} else {
_root.midhill._x = -1000;
}
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
_root.ball.rottt = _root.ball.angle - 90;
_root.ball._rotation = _root.ball.rottt;
_root.ball.temp = _root.ball._rotation;
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Frame 10
gotoAndPlay (1);
Frame 11
stop();
Instance of Symbol 90 MovieClip "ball" in Frame 11
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (enterFrame) {
_root.aa = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(13);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (1 >= speed)) {
leftgravity = true;
this._rotation = -160;
}
if ((leftgravity == true) && (this.hitTest(_root.clope) == true)) {
if (this._rotation >= -179) {
this._rotation = this._rotation - 1;
this._rotation = -180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midslope) == true) && (midgravity == true)) {
speed = speed + 0.3;
}
if (this.hitTest(_root.downhill) == true) {
if (this._rotation >= -178) {
this._rotation = this._rotation - (20 / speed);
}
if (-178 >= this._rotation) {
this._rotation = -180;
}
speed = speed + 0.3;
}
if (this.hitTest(_root.dohill) == true) {
if (178 >= this._rotation) {
this._rotation = this._rotation + (20 / speed);
}
if (this._rotation >= 178) {
this._rotation = 180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midhill) == true) && (this._rotation == -180)) {
speed = speed + 0.3;
}
if ((((((this.hitTest(_root.dohill) == false) and (this.hitTest(_root.slope) == false)) and (this.hitTest(_root.clope) == false)) and (this.hitTest(_root.midhill) == false)) and (this.hitTest(_root.midslope) == false)) and (this.hitTest(_root.downhill) == false)) {
temp = this._rotation;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (this._rotation < 90)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.slope) == true) && (this._rotation >= 90)) && (gravity == false)) && (this._rotation < 180)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.slope) == true) && (this._rotation >= 178)) {
this._rotation = 180;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (-90 < this._rotation)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.clope) == true) && (-90 >= this._rotation)) && (leftgravity == false)) && (-180 < this._rotation)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.clope) == true) && (-178 >= this._rotation)) {
this._rotation = -180;
}
if ((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) {
speed = speed - 0.2;
}
if (((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) && (1 >= speed)) {
this._rotation = 180;
midgravity = true;
}
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
if ((1 >= speed) && (this.hitTest(_root.slope) == true)) {
_root.main.sp = true;
}
if ((1 >= speed) && (this.hitTest(_root.clope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.slope) == false)) {
_root.main.sp = false;
gravity = false;
}
if ((0 >= speed) && (this.hitTest(_root.clope) == false)) {
_root.main.sp = false;
leftgravity = false;
}
if ((1 >= speed) && (this.hitTest(_root.midslope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.midslope) == false)) {
_root.main.sp = false;
midgravity = false;
}
if ((0 >= speed) && (_root.gravity == true)) {
_root.main.sp = false;
}
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
} else if ((0 < speed) && (_root.main.sp == true)) {
_root.main.virtuals = false;
}
if (this.hitTest(_root.ruby1) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby1._x = _root.ruby1._x - 1000;
}
if (this.hitTest(_root.de1) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de1._x = -1000;
}
if (this.hitTest(_root.de2) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de2._x = -1000;
}
if (this.hitTest(_root.de3) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de3._x = -1000;
}
if (this.hitTest(_root.de4) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de4._x = -1000;
}
if (this.hitTest(_root.de5) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de5._x = -1000;
}
if (this.hitTest(_root.de6) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de6._x = -1000;
}
if (this.hitTest(_root.ground) == false) {
_root.reset();
}
}
Instance of Symbol 91 MovieClip "main" in Frame 11
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
if ((90 < this._rotation) && (180 >= this._rotation)) {
_root.slope._x = 121.3;
_root.slope._y = 35.9;
} else {
_root.slope._x = -1000;
}
if ((this._rotation < 90) && (this._rotation >= 0)) {
_root.clope._x = 121.3;
_root.clope._y = 35.9;
} else {
_root.clope._x = -1000;
}
if (this._rotation == 90) {
_root.midslope._x = 121.3;
_root.midslope._y = 35.9;
} else {
_root.midslope._x = -1000;
}
if ((0 >= this._rotation) && (-90 < this._rotation)) {
_root.downhill._x = 121.3;
_root.downhill._y = 35.9;
} else {
_root.downhill._x = -1000;
}
if ((this._rotation >= -180) && (this._rotation < -90)) {
_root.dohill._x = 121.3;
_root.dohill._y = 35.9;
} else {
_root.dohill._x = -1000;
}
if (this._rotation == -90) {
_root.midhill._x = 121.3;
_root.midhill._y = 35.9;
} else {
_root.midhill._x = -1000;
}
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
_root.ball.rottt = _root.ball.angle - 90;
_root.ball._rotation = _root.ball.rottt;
_root.ball.temp = _root.ball._rotation;
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Frame 12
gotoAndPlay (1);
Frame 13
stop();
Instance of Symbol 92 MovieClip "ball" in Frame 13
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (enterFrame) {
_root.aa = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(15);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (1 >= speed)) {
leftgravity = true;
this._rotation = -160;
}
if ((leftgravity == true) && (this.hitTest(_root.clope) == true)) {
if (this._rotation >= -179) {
this._rotation = this._rotation - 1;
this._rotation = -180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midslope) == true) && (midgravity == true)) {
speed = speed + 0.3;
}
if (this.hitTest(_root.downhill) == true) {
if (this._rotation >= -178) {
this._rotation = this._rotation - (20 / speed);
}
if (-178 >= this._rotation) {
this._rotation = -180;
}
speed = speed + 0.3;
}
if (this.hitTest(_root.dohill) == true) {
if (178 >= this._rotation) {
this._rotation = this._rotation + (20 / speed);
}
if (this._rotation >= 178) {
this._rotation = 180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midhill) == true) && (this._rotation == -180)) {
speed = speed + 0.3;
}
if ((((((this.hitTest(_root.dohill) == false) and (this.hitTest(_root.slope) == false)) and (this.hitTest(_root.clope) == false)) and (this.hitTest(_root.midhill) == false)) and (this.hitTest(_root.midslope) == false)) and (this.hitTest(_root.downhill) == false)) {
temp = this._rotation;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (this._rotation < 90)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.slope) == true) && (this._rotation >= 90)) && (gravity == false)) && (this._rotation < 180)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.slope) == true) && (this._rotation >= 178)) {
this._rotation = 180;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (-90 < this._rotation)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.clope) == true) && (-90 >= this._rotation)) && (leftgravity == false)) && (-180 < this._rotation)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.clope) == true) && (-178 >= this._rotation)) {
this._rotation = -180;
}
if ((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) {
speed = speed - 0.2;
}
if (((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) && (1 >= speed)) {
this._rotation = 180;
midgravity = true;
}
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
if ((1 >= speed) && (this.hitTest(_root.slope) == true)) {
_root.main.sp = true;
}
if ((1 >= speed) && (this.hitTest(_root.clope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.slope) == false)) {
_root.main.sp = false;
gravity = false;
}
if ((0 >= speed) && (this.hitTest(_root.clope) == false)) {
_root.main.sp = false;
leftgravity = false;
}
if ((1 >= speed) && (this.hitTest(_root.midslope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.midslope) == false)) {
_root.main.sp = false;
midgravity = false;
}
if ((0 >= speed) && (_root.gravity == true)) {
_root.main.sp = false;
}
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
} else if ((0 < speed) && (_root.main.sp == true)) {
_root.main.virtuals = false;
}
if (this.hitTest(_root.de1) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de1._x = -1000;
}
if (this.hitTest(_root.de2) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de2._x = -1000;
}
if (this.hitTest(_root.de3) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de3._x = -1000;
}
if (this.hitTest(_root.ruby1) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby1._x = -1000;
}
if (this.hitTest(_root.ruby2) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby2._x = -1000;
}
if (this.hitTest(_root.ruby3) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby3._x = -1000;
}
if (this.hitTest(_root.ruby4) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby4._x = -1000;
}
if (this.hitTest(_root.ground) == false) {
_root.reset();
}
}
Instance of Symbol 93 MovieClip "main" in Frame 13
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
if ((90 < this._rotation) && (180 >= this._rotation)) {
_root.slope._x = 155.3;
_root.slope._y = 35.9;
} else {
_root.slope._x = -1000;
}
if ((this._rotation < 90) && (this._rotation >= 0)) {
_root.clope._x = 155.3;
_root.clope._y = 35.9;
} else {
_root.clope._x = -1000;
}
if (this._rotation == 90) {
_root.midslope._x = 155.3;
_root.midslope._y = 35.9;
} else {
_root.midslope._x = -1000;
}
if ((0 >= this._rotation) && (-90 < this._rotation)) {
_root.downhill._x = 155.3;
_root.downhill._y = 35.9;
} else {
_root.downhill._x = -1000;
}
if ((this._rotation >= -180) && (this._rotation < -90)) {
_root.dohill._x = 155.3;
_root.dohill._y = 35.9;
} else {
_root.dohill._x = -1000;
}
if (this._rotation == -90) {
_root.midhill._x = 155.3;
_root.midhill._y = 35.9;
} else {
_root.midhill._x = -1000;
}
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
_root.ball.rottt = _root.ball.angle - 90;
_root.ball._rotation = _root.ball.rottt;
_root.ball.temp = _root.ball._rotation;
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Frame 14
gotoAndPlay (1);
Frame 15
stop();
Instance of Symbol 94 MovieClip "ball" in Frame 15
onClipEvent (load) {
Mouse.hide();
_root.main.sp = false;
gravity = false;
leftgravity = false;
midgravity = false;
}
onClipEvent (mouseDown) {
tangle = this._rotation;
}
onClipEvent (enterFrame) {
_root.ballangle = this._rotation;
if ((this.hitTest(_root.hole) == true) && (7 >= speed)) {
_root.babe();
_root.gotoAndStop(17);
}
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (1 >= speed)) {
gravity = true;
this._rotation = 160;
}
if ((gravity == true) && (this.hitTest(_root.slope) == true)) {
if (179 >= this._rotation) {
this._rotation = this._rotation + 1;
this._rotation = 180;
}
speed = speed + 0.3;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (1 >= speed)) {
leftgravity = true;
this._rotation = -160;
}
if ((leftgravity == true) && (this.hitTest(_root.clope) == true)) {
if (this._rotation >= -179) {
this._rotation = this._rotation - 1;
this._rotation = -180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midslope) == true) && (midgravity == true)) {
speed = speed + 0.3;
}
if (this.hitTest(_root.downhill) == true) {
if (this._rotation >= -178) {
this._rotation = this._rotation - (20 / speed);
}
if (-178 >= this._rotation) {
this._rotation = -180;
}
speed = speed + 0.3;
}
if (this.hitTest(_root.dohill) == true) {
if (178 >= this._rotation) {
this._rotation = this._rotation + (20 / speed);
}
if (this._rotation >= 178) {
this._rotation = 180;
}
speed = speed + 0.3;
}
if ((this.hitTest(_root.midhill) == true) && (this._rotation == -180)) {
speed = speed + 0.3;
}
if (_root.main.sp == true) {
speed = speed - 0.1;
if (((this.hitTest(_root.slope) == true) && (0 < this._rotation)) && (this._rotation < 90)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.slope) == true) && (this._rotation >= 90)) && (gravity == false)) && (this._rotation < 180)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.slope) == true) && (this._rotation >= 178)) {
this._rotation = 180;
}
if (((this.hitTest(_root.clope) == true) && (this._rotation < 0)) && (-90 < this._rotation)) {
speed = speed - 0.2;
this._rotation = this._rotation + (temp / 10);
}
if ((((this.hitTest(_root.clope) == true) && (-90 >= this._rotation)) && (leftgravity == false)) && (-180 < this._rotation)) {
this._rotation = this._rotation + (temp / 10);
speed = speed + 0.1;
}
if ((this.hitTest(_root.clope) == true) && (-178 >= this._rotation)) {
this._rotation = -180;
}
if ((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) {
speed = speed - 0.2;
}
if (((this.hitTest(_root.midslope) == true) && (this._rotation == 0)) && (1 >= speed)) {
this._rotation = 180;
midgravity = true;
}
_x = (_x + (Math.cos(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.sin(_rotation * (Math.PI/180)) * speed));
if ((1 >= speed) && (this.hitTest(_root.slope) == true)) {
_root.main.sp = true;
}
if ((1 >= speed) && (this.hitTest(_root.clope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.slope) == false)) {
_root.main.sp = false;
gravity = false;
}
if ((0 >= speed) && (this.hitTest(_root.clope) == false)) {
_root.main.sp = false;
leftgravity = false;
}
if ((1 >= speed) && (this.hitTest(_root.midslope) == true)) {
_root.main.sp = true;
}
if ((0 >= speed) && (this.hitTest(_root.midslope) == false)) {
_root.main.sp = false;
midgravity = false;
}
if ((0 >= speed) && (_root.gravity == true)) {
_root.main.sp = false;
}
}
}
onClipEvent (enterFrame) {
if (0 >= speed) {
_root.main.virtuals = true;
} else if ((0 < speed) && (_root.main.sp == true)) {
_root.main.virtuals = false;
}
if (this.hitTest(_root.de1) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de1._x = -1000;
}
if (this.hitTest(_root.de2) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de2._x = -1000;
}
if (this.hitTest(_root.de3) == true) {
_root.shout();
_root.score = _root.score - 50;
_root.de3._x = -1000;
}
if (this.hitTest(_root.ruby1) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby1._x = -1000;
}
if (this.hitTest(_root.ruby2) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby2._x = -1000;
}
if (this.hitTest(_root.ruby3) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby3._x = -1000;
}
if (this.hitTest(_root.ruby4) == true) {
_root.shout();
_root.score = _root.score + 50;
_root.ruby4._x = -1000;
}
if (this.hitTest(_root.ground) == false) {
_root.reset();
}
}
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.bar) == true) && (0 < this._rotation)) && (this._rotation)) && (this._rotation < 90)) {
_root.msound();
this._rotation = 180 - tangle;
this._x = 90;
tangle = this._rotation;
}
if ((this.hitTest(_root.bar) == true) && (this._rotation == 0)) {
_root.msound();
this._rotation = 180;
this._x = 90;
tangle = this._rotation;
}
if ((((this.hitTest(_root.bar) == true) && (this._rotation < 0)) && (this._rotation)) && (-90 < this._rotation)) {
_root.msound();
this._rotation = -180 - tangle;
this._x = 90;
tangle = this._rotation;
}
if (((this.hitTest(_root.bar) == true) && (this._rotation < -90)) && (-180 < this._rotation)) {
_root.msound();
this._rotation = -180 - tangle;
this._x = 108;
tangle = this._rotation;
}
if (((this.hitTest(_root.bar) == true) && (90 < this._rotation)) && (179 >= this._rotation)) {
_root.msound();
this._rotation = 180 - tangle;
this._x = 108;
tangle = this._rotation;
}
if (((this.hitTest(_root.bar) == true) && (this._rotation == -180)) or (this._rotation == 180)) {
_root.msound();
this._rotation = 0;
this._x = 108;
tangle = this._rotation;
}
if ((this.hitTest(_root.sar) == true) && (this._rotation < -90)) {
_root.msound();
this._rotation = -180 - tangle;
this._x = 64;
tangle = this._rotation;
temp = this._rotation;
}
if ((this.hitTest(_root.sar) == true) && (90 < this._rotation)) {
_root.msound();
this._rotation = 180 - tangle;
this._x = 64;
tangle = this._rotation;
temp = this._rotation;
}
if ((this.hitTest(_root.sar) == true) && (this._rotation == -180)) {
_root.msound();
this._rotation = 0;
this._x = 64;
tangle = this._rotation;
temp = this._rotation;
}
if (((this.hitTest(_root.ear) == true) && (0 < this._rotation)) && (this._rotation < 90)) {
_root.msound();
this._rotation = -tangle;
this._y = 242;
tangle = this._rotation;
}
if ((this.hitTest(_root.ear) == true) && (this._rotation == 90)) {
_root.msound();
this._rotation = -90;
this._y = 242;
tangle = this._rotation;
}
if (((this.hitTest(_root.ear) == true) && (90 < this._rotation)) && (179 >= this._rotation)) {
_root.msound();
this._rotation = -tangle;
this._y = 242;
tangle = this._rotation;
}
}
Instance of Symbol 95 MovieClip "main" in Frame 15
onClipEvent (load) {
this._x = _root.ball._x;
this._y = _root.ball._y;
_root.bt._height = 0;
loc = true;
hit = false;
barup = true;
cc = 0;
virtuals = true;
}
onClipEvent (enterFrame) {
_root.sangle = this._rotation;
if ((90 < this._rotation) && (180 >= this._rotation)) {
_root.slope._x = 155.3;
_root.slope._y = 35.9;
} else {
_root.slope._x = -1000;
}
if ((this._rotation < 90) && (this._rotation >= 0)) {
_root.clope._x = 155.3;
_root.clope._y = 35.9;
} else {
_root.clope._x = -1000;
}
if (this._rotation == 90) {
_root.midslope._x = 155.3;
_root.midslope._y = 35.9;
} else {
_root.midslope._x = -1000;
}
if ((0 >= this._rotation) && (-90 < this._rotation)) {
_root.downhill._x = 155.3;
_root.downhill._y = 35.9;
} else {
_root.downhill._x = -1000;
}
if ((this._rotation >= -180) && (this._rotation < -90)) {
_root.dohill._x = 155.3;
_root.dohill._y = 35.9;
} else {
_root.dohill._x = -1000;
}
if (this._rotation == -90) {
_root.midhill._x = 155.3;
_root.midhill._y = 35.9;
} else {
_root.midhill._x = -1000;
}
if (0 >= _root.ball.speed) {
hit = false;
}
if (_root.main.sp == false) {
_root.ball.angle = this._rotation;
}
if (((0 >= _root.ball.speed) && (hit == false)) && (_root.ball.hitTest(_root.slope) == false)) {
this._x = _root.ball._x;
this._y = _root.ball._y;
loc = true;
}
if ((hit == false) && (0 >= _root.ball.speed)) {
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
_rotation = Math.round((-Math.atan2(delta_x, delta_y)) / (Math.PI/180));
}
_root.display = _rotation;
}
onClipEvent (mouseDown) {
if (virtuals == true) {
_root.shot++;
cc = 0;
this._x = rx;
this._y = ry;
_root.cry();
_root.ball.rottt = _root.ball.angle - 90;
_root.ball._rotation = _root.ball.rottt;
_root.ball.temp = _root.ball._rotation;
sp = true;
this._rotation = rot;
loc = true;
_root.bt._height = 0;
hit = false;
virtuals = false;
}
}
onClipEvent (enterFrame) {
if (_root.main.sp == true) {
gotoAndStop (1);
}
if (_root.main.sp == false) {
hit = true;
} else {
hit = false;
}
if (Key.isDown(Key.SHIFT) && (_root.main.sp == false)) {
if (loc == true) {
rot = this._rotation;
rott = rot + 90;
rx = this._x;
ry = this._y;
hit = true;
loc = false;
}
if (cc >= 20) {
barup = false;
}
if (0 >= cc) {
barup = true;
}
if ((_root.ball.speed >= 0) && (barup == false)) {
_root.ball.speed = _root.ball.speed - 0.5;
cc = cc - 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height - 4.5;
}
if ((20 >= _root.ball.speed) && (barup == true)) {
_root.ball.speed = _root.ball.speed + 0.5;
cc = cc + 1;
this.gotoAndStop(cc);
_root.bt._height = _root.bt._height + 4.5;
}
}
}
Frame 16
gotoAndPlay (1);
Frame 17
stop();
Mouse.show();
if (score < 600) {
lastans = "You Loose";
}
if (score >= 600) {
if (20 >= shot) {
lastans = "You Win";
}
if (20 < shot) {
lastans = "You Loose";
}
}
Symbol 19 Button
on (release) {
nextFrame();
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
stop();
Symbol 79 MovieClip Frame 5
stop();
Symbol 79 MovieClip Frame 6
stop();
Symbol 79 MovieClip Frame 7
stop();
Symbol 79 MovieClip Frame 8
stop();
Symbol 79 MovieClip Frame 9
stop();
Symbol 79 MovieClip Frame 10
stop();
Symbol 79 MovieClip Frame 11
stop();
Symbol 79 MovieClip Frame 12
stop();
Symbol 79 MovieClip Frame 13
stop();
Symbol 79 MovieClip Frame 14
stop();
Symbol 79 MovieClip Frame 15
stop();
Symbol 79 MovieClip Frame 16
stop();
Symbol 79 MovieClip Frame 17
stop();
Symbol 79 MovieClip Frame 18
stop();
Symbol 79 MovieClip Frame 19
stop();
Symbol 79 MovieClip Frame 20
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 4
stop();
Symbol 86 MovieClip Frame 5
stop();
Symbol 86 MovieClip Frame 6
stop();
Symbol 86 MovieClip Frame 7
stop();
Symbol 86 MovieClip Frame 8
stop();
Symbol 86 MovieClip Frame 9
stop();
Symbol 86 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 11
stop();
Symbol 86 MovieClip Frame 12
stop();
Symbol 86 MovieClip Frame 13
stop();
Symbol 86 MovieClip Frame 14
stop();
Symbol 86 MovieClip Frame 15
stop();
Symbol 86 MovieClip Frame 16
stop();
Symbol 86 MovieClip Frame 17
stop();
Symbol 86 MovieClip Frame 18
stop();
Symbol 86 MovieClip Frame 19
stop();
Symbol 86 MovieClip Frame 20
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 3
stop();
Symbol 89 MovieClip Frame 4
stop();
Symbol 89 MovieClip Frame 5
stop();
Symbol 89 MovieClip Frame 6
stop();
Symbol 89 MovieClip Frame 7
stop();
Symbol 89 MovieClip Frame 8
stop();
Symbol 89 MovieClip Frame 9
stop();
Symbol 89 MovieClip Frame 10
stop();
Symbol 89 MovieClip Frame 11
stop();
Symbol 89 MovieClip Frame 12
stop();
Symbol 89 MovieClip Frame 13
stop();
Symbol 89 MovieClip Frame 14
stop();
Symbol 89 MovieClip Frame 15
stop();
Symbol 89 MovieClip Frame 16
stop();
Symbol 89 MovieClip Frame 17
stop();
Symbol 89 MovieClip Frame 18
stop();
Symbol 89 MovieClip Frame 19
stop();
Symbol 89 MovieClip Frame 20
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 5
stop();
Symbol 91 MovieClip Frame 6
stop();
Symbol 91 MovieClip Frame 7
stop();
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 9
stop();
Symbol 91 MovieClip Frame 10
stop();
Symbol 91 MovieClip Frame 11
stop();
Symbol 91 MovieClip Frame 12
stop();
Symbol 91 MovieClip Frame 13
stop();
Symbol 91 MovieClip Frame 14
stop();
Symbol 91 MovieClip Frame 15
stop();
Symbol 91 MovieClip Frame 16
stop();
Symbol 91 MovieClip Frame 17
stop();
Symbol 91 MovieClip Frame 18
stop();
Symbol 91 MovieClip Frame 19
stop();
Symbol 91 MovieClip Frame 20
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 6
stop();
Symbol 93 MovieClip Frame 7
stop();
Symbol 93 MovieClip Frame 8
stop();
Symbol 93 MovieClip Frame 9
stop();
Symbol 93 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 11
stop();
Symbol 93 MovieClip Frame 12
stop();
Symbol 93 MovieClip Frame 13
stop();
Symbol 93 MovieClip Frame 14
stop();
Symbol 93 MovieClip Frame 15
stop();
Symbol 93 MovieClip Frame 16
stop();
Symbol 93 MovieClip Frame 17
stop();
Symbol 93 MovieClip Frame 18
stop();
Symbol 93 MovieClip Frame 19
stop();
Symbol 93 MovieClip Frame 20
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 95 MovieClip Frame 4
stop();
Symbol 95 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 6
stop();
Symbol 95 MovieClip Frame 7
stop();
Symbol 95 MovieClip Frame 8
stop();
Symbol 95 MovieClip Frame 9
stop();
Symbol 95 MovieClip Frame 10
stop();
Symbol 95 MovieClip Frame 11
stop();
Symbol 95 MovieClip Frame 12
stop();
Symbol 95 MovieClip Frame 13
stop();
Symbol 95 MovieClip Frame 14
stop();
Symbol 95 MovieClip Frame 15
stop();
Symbol 95 MovieClip Frame 16
stop();
Symbol 95 MovieClip Frame 17
stop();
Symbol 95 MovieClip Frame 18
stop();
Symbol 95 MovieClip Frame 19
stop();
Symbol 95 MovieClip Frame 20
stop();
Symbol 98 Button
on (release) {
gotoAndStop (4);
}