Frame 1
stop();
gamename = "robotmania";
url = "www.gamesonly.com.cn";
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if (((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) {
load_Mc.nextFrame();
delete onEnterFrame;
}
};
Frame 2
stop();
bs = new Sound();
bs.attachSound("sound3.wav");
bs.start(0, 99);
Frame 3
stop();
Frame 4
stop();
Frame 5
function setGame() {
count = 0;
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
function hitgetBounds() {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
}
backSound = new Sound();
backSound.attachSound("back.mp3");
backSound.start(0, 999);
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 4;
onEnterFrame = function () {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = 1 - (Math.abs(r - 90) / 100);
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
};
onMouseUp = function () {
getXY = false;
if (Release) {
releaseSound.start(0, 1);
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
if (r > 0) {
count++;
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
score = score + 50;
ringSound.start(0, 1);
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
if (count == 1) {
score = score + 500;
} else if (count == 2) {
score = score + 400;
} else if (count == 3) {
score = score + 300;
} else if (count == 4) {
score = score + 200;
} else if (count == 5) {
score = score + 100;
} else if (count == 6) {
score = score + 50;
} else if (count == 7) {
score = score + 25;
} else if (count == 8) {
score = score + 10;
} else if (count >= 9) {
score = score + 5;
}
winSound.start(0, 1);
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 600) || (this._x < 0)) || (this._x > 800)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
life = life - 1;
lifemc.gotoAndStop(life + 1);
if (life == 0) {
removeMovieClip(eval ("golf" + (Number(_currentframe) - frame)));
gotoAndStop ("end");
}
dropSound.start(0, 1);
Press = true;
count++;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
};
setGame();
hitgetBounds();
var _sound = new Sound(this);
if (_sound.getVolume() == 100) {
SoundBtn.gotoAndStop(1);
} else {
SoundBtn.gotoAndStop(2);
}
SoundBtn.onRelease = function () {
if (this._currentframe == 1) {
_sound.setVolume(0);
this.gotoAndStop(2);
} else {
_sound.setVolume(100);
this.gotoAndStop(1);
}
};
score = 0;
life = 5;
lifemc.gotoAndStop(life + 1);
stop();
Frame 6
stop();
setGame();
hitgetBounds();
Frame 7
stop();
setGame();
hitgetBounds();
Frame 8
stop();
setGame();
hitgetBounds();
Frame 9
stop();
setGame();
hitgetBounds();
Frame 10
stop();
setGame();
hitgetBounds();
Frame 11
stop();
setGame();
hitgetBounds();
Frame 12
stop();
setGame();
hitgetBounds();
Frame 13
stop();
setGame();
hitgetBounds();
Frame 14
stop();
setGame();
hitgetBounds();
Frame 15
stop();
setGame();
hitgetBounds();
Frame 16
var _sound = new Sound(this);
if (_sound.getVolume() == 100) {
SoundBtn.gotoAndStop(1);
} else {
SoundBtn.gotoAndStop(2);
}
SoundBtn.onRelease = function () {
if (this._currentframe == 1) {
_sound.setVolume(0);
this.gotoAndStop(2);
} else {
_sound.setVolume(100);
this.gotoAndStop(1);
}
};
lifemc.gotoAndStop(life + 1);
function setGame() {
count = 0;
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
function hitgetBounds() {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
hit6Bounds = hit6.getBounds(_root);
}
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
onEnterFrame = function () {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = 1 - (Math.abs(r - 90) / 100);
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
};
onMouseUp = function () {
getXY = false;
if (Release) {
releaseSound.start(0, 1);
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
hitS = true;
if (r > 0) {
count++;
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
if (hit1.ice) {
this._y = hit1Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
if (hit4.ice) {
this._y = hit4Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
if (hit5.ice) {
this._y = hit5Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit6Bounds.yMin) && (this.xmax > (hit6Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit6Bounds.xMax - (this._width / 2)))) {
if (hit6.ice) {
this._y = hit6Bounds.yMin - (this._height / 2);
if (hitS) {
hitSound.start(0, 1);
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit6Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit6Bounds.yMin) {
if (this.hitTest(hit6)) {
if ((this.xmax - (this._width / 2)) < hit6Bounds.xMin) {
this._x = (hit6._x - (hit6._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit6Bounds.xMax) {
this._x = (hit6._x + (hit6._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
score = score + 50;
ringSound.start(0, 1);
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
if (count == 1) {
score = score + 500;
} else if (count == 2) {
score = score + 400;
} else if (count == 3) {
score = score + 300;
} else if (count == 4) {
score = score + 200;
} else if (count == 5) {
score = score + 100;
} else if (count == 6) {
score = score + 50;
} else if (count == 7) {
score = score + 25;
} else if (count == 8) {
score = score + 10;
} else if (count >= 9) {
score = score + 5;
}
winSound.start(0, 1);
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 600) || (this._x < 0)) || (this._x > 800)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
life = life - 1;
lifemc.gotoAndStop(life + 1);
if (life == 0) {
removeMovieClip(eval ("golf" + (Number(_currentframe) - frame)));
gotoAndStop ("end");
}
dropSound.start(0, 1);
Press = true;
count++;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
};
setGame();
hitgetBounds();
stop();
Frame 17
stop();
setGame();
hitgetBounds();
Frame 18
stop();
setGame();
hitgetBounds();
Frame 19
stop();
setGame();
hitgetBounds();
Frame 20
stop();
setGame();
hitgetBounds();
Frame 21
stop();
setGame();
hitgetBounds();
Frame 22
stop();
setGame();
hitgetBounds();
Frame 23
stop();
setGame();
hitgetBounds();
Frame 24
stop();
setGame();
hitgetBounds();
Frame 25
stop();
setGame();
hitgetBounds();
Frame 26
function setGame() {
count = 0;
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
function hitgetBounds() {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
hit6Bounds = hit6.getBounds(_root);
hit7Bounds = hit7.getBounds(_root);
}
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 3;
onEnterFrame = function () {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = (1 - (Math.abs(r - 90) / 100)) * 0.6;
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
};
onMouseUp = function () {
getXY = false;
if (Release) {
releaseSound.start(0, 1);
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
if (r > 0) {
count++;
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit1Bounds.yMax) {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit4Bounds.yMax) {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit5Bounds.yMax) {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit6Bounds.yMin) && (this.xmax > (hit6Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit6Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit6Bounds.yMax) {
this._y = hit6Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
if (((this.ymax > hit7Bounds.yMin) && (this.xmax > (hit7Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit7Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit7Bounds.yMax) {
this._y = hit7Bounds.yMin - (this._height / 2);
Press = true;
hitSound.start(0, 1);
delete this.onEnterFrame;
}
}
}
if (dir == "up") {
if (hit1Bounds.yMin < this.ymax) {
if (this.hitTest(hit1) && ((this.ymin + (this._width / 2)) > hit1Bounds.yMax)) {
this._y = (hit1._y + (hit1._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit4Bounds.yMin < this.ymax) {
if (this.hitTest(hit4) && ((this.ymin + (this._width / 2)) > hit4Bounds.yMax)) {
this._y = (hit4._y + (hit4._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit5Bounds.yMin < this.ymax) {
if (this.hitTest(hit5) && ((this.ymin + (this._width / 2)) > hit5Bounds.yMax)) {
this._y = (hit5._y + (hit5._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit6Bounds.yMin < this.ymax) {
if (this.hitTest(hit6) && ((this.ymin + (this._width / 2)) > hit6Bounds.yMax)) {
this._y = (hit6._y + (hit6._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
if (hit7Bounds.yMin < this.ymax) {
if (this.hitTest(hit7) && ((this.ymin + (this._width / 2)) > hit7Bounds.yMax)) {
this._y = (hit7._y + (hit7._height / 2)) + (this._height / 2);
yinc = -yinc;
hitSound.start(0, 1);
}
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit6Bounds.yMin) {
if (this.hitTest(hit6)) {
if ((this.xmax - (this._width / 2)) < hit6Bounds.xMin) {
this._x = (hit6._x - (hit6._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit6Bounds.xMax) {
this._x = (hit6._x + (hit6._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit7Bounds.yMin) {
if (this.hitTest(hit7)) {
if ((this.xmax - (this._width / 2)) < hit7Bounds.xMin) {
this._x = (hit7._x - (hit7._width / 2)) - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit7Bounds.xMax) {
this._x = (hit7._x + (hit7._width / 2)) + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
hitSound.start(0, 1);
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
score = score + 50;
ringSound.start(0, 1);
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
if (count == 1) {
score = score + 500;
} else if (count == 2) {
score = score + 400;
} else if (count == 3) {
score = score + 300;
} else if (count == 4) {
score = score + 200;
} else if (count == 5) {
score = score + 100;
} else if (count == 6) {
score = score + 50;
} else if (count == 7) {
score = score + 25;
} else if (count == 8) {
score = score + 10;
} else if (count >= 9) {
score = score + 5;
}
winSound.start(0, 1);
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 600) || (this._x < 0)) || (this._x > 800)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
life = life - 1;
lifemc.gotoAndStop(life + 1);
if (life == 0) {
removeMovieClip(eval ("golf" + (Number(_currentframe) - frame)));
gotoAndStop ("end");
}
dropSound.start(0, 1);
Press = true;
count++;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
};
setGame();
hitgetBounds();
var _sound = new Sound(this);
if (_sound.getVolume() == 100) {
SoundBtn.gotoAndStop(1);
} else {
SoundBtn.gotoAndStop(2);
}
SoundBtn.onRelease = function () {
if (this._currentframe == 1) {
_sound.setVolume(0);
this.gotoAndStop(2);
} else {
_sound.setVolume(100);
this.gotoAndStop(1);
}
};
lifemc.gotoAndStop(life + 1);
stop();
Frame 27
stop();
setGame();
hitgetBounds();
Frame 28
stop();
setGame();
hitgetBounds();
Frame 29
stop();
setGame();
hitgetBounds();
Frame 30
stop();
setGame();
hitgetBounds();
Frame 31
stop();
setGame();
hitgetBounds();
Frame 32
stop();
setGame();
hitgetBounds();
Frame 33
stop();
setGame();
hitgetBounds();
Frame 34
stop();
setGame();
hitgetBounds();
Frame 35
stop();
setGame();
hitgetBounds();
Frame 36
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local2 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
backSound.stop();
var hexcase = 0;
var strsize = 8;
Frame 37
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local2 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
backSound.stop();
var hexcase = 0;
var strsize = 8;
Symbol 43 MovieClip Frame 80
stop();
Symbol 47 MovieClip Frame 107
stop();
Symbol 70 Button
on (release) {
msound.stop();
_root.nextFrame();
}
Symbol 83 MovieClip Frame 1
msound = new Sound();
msound.attachSound("f8i815.MP3");
msound.start(0, 99);
Symbol 83 MovieClip Frame 174
msound.stop();
_root.nextFrame();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 111 Button
on (release) {
bs.stop();
gotoAndStop (5);
}
Symbol 114 Button
on (release) {
gotoAndStop (4);
}
Symbol 117 Button
on (release) {
getURL ("http://" + url, "_blank");
}
Symbol 120 Button
on (release) {
getURL (("http://" + url) + "/highscore.php", "_blank");
}
Symbol 123 Button
on (release) {
gotoAndStop (1);
}
Symbol 127 Button
on (release) {
gotoAndStop (5);
}
Symbol 131 Button
on (release) {
gotoAndStop (16);
}
Symbol 135 Button
on (release) {
gotoAndStop (26);
}
Symbol 139 Button
on (release) {
bs.stop();
gotoAndStop (2);
}
Symbol 171 Button
on (release) {
removeMovieClip(eval ("golf" + (Number(_currentframe) - frame)));
backSound.stop();
gotoAndStop ("start");
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
Symbol 199 MovieClip Frame 1
ice = true;
Symbol 202 Button
on (release) {
removeMovieClip(eval ("golf" + (Number(_currentframe) - frame)));
backSound.stop();
gotoAndStop ("start");
}
Symbol 212 MovieClip Frame 1
ice = true;
Symbol 213 MovieClip Frame 1
ice = true;
Symbol 218 MovieClip Frame 1
ice = true;
Symbol 224 MovieClip Frame 1
ice = true;
Symbol 228 MovieClip Frame 1
ice = true;
Symbol 232 MovieClip Frame 1
ice = true;
Symbol 235 MovieClip Frame 1
ice = true;
Symbol 241 MovieClip Frame 1
ice = true;
Symbol 243 MovieClip Frame 1
ice = true;
Symbol 247 MovieClip Frame 1
ice = true;
Symbol 256 Button
on (release) {
removeMovieClip(eval ("golf" + (Number(_currentframe) - frame)));
backSound.stop();
gotoAndStop ("start");
}
Symbol 320 Button
on (release) {
submitScore();
}
Symbol 323 Button
on (release) {
gotoAndStop ("start");
}