Frame 1
stop();
Stage.scaleMode = "noScale";
System.useCodepage = true;
gamename = "bowlingmania";
url = "www.highscorespelen.nl";
loadingtext = "Loading...";
copyrighttext = "Copyright www.highscorespelen.nl";
starttext = "Start";
helptext = "Help";
moregamestext = "More Games";
highscoretext = "High Score";
instructiontext = "HELP";
helptext1 = "Use the mouse for positioning and direction of the ball.";
helptext2 = "Press the left mouse button to confirm the ball's position, and a new arrow that is moving around the ball appears (determining the effect of the ball). You can shoot the ball by releasing your left mouse button.";
backtext = "BACK";
roundtext = "ROUND";
nextroundtext = "New Round";
sparetext = "SPARE";
striketext = "STRIKE";
doubletext = "DOUBLE!";
turkeytext = "TURKEY!";
levelcompletedtext = "LEVEL COMPLETED";
continuetext = "Continue..";
nextleveltext = "NEXT LEVEL";
playtext = "PLAY";
scoretext = "Score";
timetext = "TIME";
livestext = "LIVES";
leveltext = "LEVEL";
exittext = "MENU";
pausetext = "PAUSE";
pausedtext = "PAUSED";
youwontext = "You Won!";
youlosttext = "You Lost";
totalscoretext = "Total Score";
submittext = "Submit score";
playagaintext = "Play Again";
yourscoretext = "Your score";
gameovertext = "Game Over";
submityourscoretext = "submit your score?";
dataupdatingtext = "data updating";
dataupdatedtext = "data updated";
congratulationtext = "Congratulations";
youwintext = "You Win";
loading_text.text = loadingtext;
copyright_text.text = copyrighttext;
loads = true;
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if ((((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) && (loads)) {
loads = false;
gotoAndStop (3);
delete onEnterFrame;
}
};
stop();
Frame 3
function checkDomain(keyStr) {
trace(keyStr);
var _local2 = _root._url;
if (_local2.split(keyStr).length < 2) {
trace("..");
getURL ("http://" + keyStr);
fscommand ("quit", true);
}
}
var soundflag = true;
var ballNum = 1;
_root.TotalRounds = 3;
_root.CurrentRound = 0;
var Score = new Array(3);
stop();
Frame 4
function playSound(name) {
if (soundflag) {
var _local2 = new Sound(this);
_local2.attachSound(name);
_local2.start();
}
}
function resetGame() {
initScore();
playerNum = 0;
frameNum = 0;
throwNum = 0;
}
function setVirtual() {
vpin = new Array();
vpin.push({x:TDball._x, y:TDball._y, dx:0, dy:0, width:TDball._width, still:0});
i = 1;
while (i <= 10) {
vpin.push({x:this["TDpin" + i]._x, y:this["TDpin" + i]._y, dx:0, dy:0, width:this["TDpin" + i]._width + 0.5, still:0});
i++;
}
resetBall();
}
function resetBall() {
vpin[0] = {x:TDball._x, y:TDball._y, dx:0, dy:0, width:TDball._width, still:false};
attachMovie("ball " + ballNum, "ball", 9999);
ball.swapDepths("ballx");
ball._y = 421;
ball._xscale = 125;
ball._yscale = 125;
}
function positionBall() {
m_x = _xmouse;
if (m_x < (ball._x - (ball._width / 2))) {
m_x = m_x + (ball._width / 2);
if (m_x < 40) {
m_x = 40;
}
ball._x = m_x;
vpin[0].x = 748 - ((2.4 * (240 - m_x)) / 6);
arrow._x = m_x;
bigbutton._x = m_x;
} else if ((ball._x + (ball._width / 2)) < m_x) {
m_x = m_x - (ball._width / 2);
if (m_x > 440) {
m_x = 440;
}
ball._x = m_x;
vpin[0].x = 748 + ((2.4 * (m_x - 240)) / 6);
arrow._x = m_x;
bigbutton._x = m_x;
}
a = 2 * (_xmouse - ball._x);
if (a < -75) {
a = -75;
}
if (a > 75) {
a = 75;
}
arrow._rotation = a;
}
function setTDball() {
TDball._x = vpin[0].x;
TDball._y = vpin[0].y;
i = 1;
while (i <= 10) {
this["TDpin" + i]._x = vpin[i].x;
this["TDpin" + i]._y = vpin[i].y;
i++;
}
}
function startLine() {
throwOver = 0;
line._x = ball._x;
if (arrow._rotation > 0) {
line._rotation = -120;
dline = 5;
} else {
line._rotation = 120;
dline = -5;
}
}
function swingLine() {
line._rotation = line._rotation + dline;
}
function stopLine() {
dline = 0;
desiredAngle = arrow._rotation;
swingAngle = line._rotation;
ballSpin = (swingAngle - desiredAngle) / 2000;
playSound("roll");
hitFirstPin = false;
gotoAndStop ("roll");
}
function initThrow() {
vpin[0].dx = desiredAngle / 10;
vpin[0].dy = m_v;
i = 1;
while (i <= 10) {
vpin[i].dx = 0;
vpin[i].dy = 0;
i++;
}
pinsDown = 0;
gutter = false;
ball.gotoAndPlay("roll");
}
function advanceTime() {
output = "";
collisionTimeArray = findTimes();
nextToCollide = findNext();
if (nextToCollide.time > 1) {
advanceAll(1);
} else if (nextToCollide.time > 0) {
advanceAll(nextToCollide.time);
collide(nextToCollide.mc1, nextToCollide.mc2);
if (throwOver == 0) {
throwOver = 1;
}
} else {
collide(nextToCollide.mc1, nextToCollide.mc2);
if (throwOver == 0) {
throwOver = 1;
}
}
if (throwOver > 0) {
throwOver++;
}
if (throwOver >= 60) {
endThrow();
}
}
function endThrow() {
i = 1;
while (i <= 10) {
if (vpin[i].still > 0) {
vpin[i].still = -1;
vpin[i].x = -1000;
this["pin" + i]._x = -1000;
this["pin" + i].gotoAndStop(6);
}
i++;
}
if (pinsDown < 1) {
playSound("miss");
}
ss = ss + pinsDown;
addScore(pinsDown);
if ((throwNum == 0) && (pinsDown == 10)) {
throwNum = 1;
}
if (throwNum > 0) {
gotoAndStop ("doneframe");
} else {
gotoAndStop ("donethrow");
}
}
function startNextThrow() {
throwNum++;
gotoAndPlay ("positionBall");
}
function startNextFrame() {
throwNum = 0;
frameNum++;
gotoAndPlay ("startFrame");
}
function findNext() {
smallestDist = 999;
smallestMC1 = 0;
smallestMC2 = 0;
i = 1;
while (i <= 10) {
if (!gutter) {
t = pathintercept(0, i, false);
if (t < smallestDist) {
smallestDist = t;
smallestMC1 = 0;
smallestMC2 = i;
}
}
if (vpin[i].still > 0) {
j = 1;
while (j <= 10) {
t = pathintercept(i, j, false);
if (t < smallestDist) {
smallestDist = t;
smallestMC1 = i;
smallestMC2 = j;
}
j++;
}
}
i++;
}
return({time:smallestDist, mc1:smallestMC1, mc2:smallestMC2});
}
function advanceAll(timeToAdvance) {
if ((vpin[0].y < -80) || ((vpin[0].y < -30) && (gutter))) {
if (throwOver < 50) {
throwOver = 50;
}
vpin[0].still = -1;
vpin[0].x = -1000;
ball._x = -1000;
} else if (((vpin[0].x > 640) && (vpin[0].x < 850)) && (vpin[0].y >= -80)) {
if (!gutter) {
vpin[0].dx = vpin[0].dx + ballSpin;
vpin[0].x = vpin[0].x + (vpin[0].dx * timeToAdvance);
if ((vpin[0].x > 840) || (vpin[0].x < 665)) {
gutter = true;
}
}
vpin[0].y = vpin[0].y + (vpin[0].dy * timeToAdvance);
percentDownLane = (vpin[0].y + 117) / 635;
percentHorizontal = (vpin[0].x - 748) / 85;
horizRatio = 27 + (205 * percentDownLane);
x = (horizRatio * percentHorizontal) + 240;
y = (percentDownLane * 330) + 90;
if (((vpin[0].x > 640) && (vpin[0].x < 850)) && (vpin[0].y >= -80)) {
ball._x = x;
ball._y = y;
ball._xscale = ((percentDownLane * 0.75) + 0.25) * 125;
ball._yscale = ball._xscale;
} else {
ball._x = -1000;
}
} else {
if (throwOver == 0) {
throwOver = 1;
}
vpin[0].still = -1;
ball._x = -1000;
}
i = 1;
while (i <= 10) {
if (vpin[i].still > 0) {
if ((((((vpin[i].still++) > 6) || (vpin[i].x < 660)) || (vpin[i].x > 830)) || (vpin[i].y < -110)) || (vpin[i].y > -20)) {
vpin[i].still = -1;
vpin[i].x = -1000;
this["pin" + i]._x = -1000;
this["pin" + i].gotoAndStop(6);
} else {
vpin[i].x = vpin[i].x + (vpin[i].dx * timeToAdvance);
vpin[i].y = vpin[i].y + (vpin[i].dy * timeToAdvance);
this["pin" + i].gotoAndStop(vpin[i].still);
this["pin" + i]._x = this["pin" + i]._x + (vpin[i].dx * timeToAdvance);
}
}
i++;
}
}
function pathintercept(n1, n2, allValues) {
mc1 = vpin[n1];
mc2 = vpin[n2];
d = (mc1.width / 2) + (mc2.width / 2);
ddx = mc1.dx - mc2.dx;
ddy = mc1.dy - mc2.dy;
dx = mc1.x - mc2.x;
dy = mc1.y - mc2.y;
a = (ddx * ddx) + (ddy * ddy);
if (a == 0) {
return(999999);
}
b = 2 * ((dx * ddx) + (dy * ddy));
c = ((dx * dx) + (dy * dy)) - (d * d);
d = b * b;
e = (4 * a) * c;
if (d < e) {
t = 999999 /* 0x0F423F */;
} else {
t = ((-b) - Math.sqrt(d - e)) / (2 * a);
}
if ((!allValues) && (t < 0)) {
t = 999999 /* 0x0F423F */;
}
return(t);
}
function collide(n1, n2) {
dx = vpin[n2].x - vpin[n1].x;
dy = vpin[n2].y - vpin[n1].y;
if (dx == 0) {
a1 = 1.570795;
} else {
a1 = Math.atan2(dy, dx);
}
dx1 = vpin[n1].dx;
dy1 = vpin[n1].dy;
dx2 = vpin[n2].dx;
dy2 = vpin[n2].dy;
dx = dx1 - dx2;
dy = dy1 - dy2;
if (dx == 0) {
a2 = 1.570795;
} else {
a2 = Math.atan2(dy, dx);
}
if (Math.sin(a2) == 0) {
f = (dx1 - dx2) / Math.cos(a2);
} else {
f = (dy1 - dy2) / Math.sin(a2);
}
f2 = f * Math.cos(a2 - a1);
f1 = f * Math.sin(a2 - a1);
ra1 = ((Math.random() * 17) - 8) / 10000;
ra2 = ((Math.random() * 17) - 8) / 10000;
vpin[n1].dx = f1 * Math.cos((a1 + ra1) + 1.570796);
vpin[n1].dy = f1 * Math.sin((a1 + ra1) + 1.570796);
if (n1 == 0) {
vpin[n1].dx = vpin[n1].dx + dx1;
vpin[n1].dy = vpin[n1].dy + dy1;
if (vpin[n1] > -5) {
vpin[n1] = -5;
}
}
vpin[n2].dx = f2 * Math.cos(a1 + ra2);
vpin[n2].dy = f2 * Math.sin(a1 + ra2);
if (vpin[n1].still == 0) {
vpin[n1].still = 1;
if (n1 != 0) {
pinsDown++;
}
}
if (vpin[n2].still == 0) {
vpin[n2].still = 1;
if (n2 != 0) {
pinsDown++;
}
}
if (!hitFirstPin) {
hitFirstPin = true;
playSound("hit");
}
}
function initScore() {
score = new Array();
}
function addScore(n) {
score.push(n);
}
function showScore() {
t = 0;
f = 0;
n = 0;
gameover = false;
reward = 0;
i = 0;
while (i < score.length) {
gotSpare = false;
thisThrow = score[i];
if (i < (score.length - 1)) {
nextThrow = score[i + 1];
} else {
nextThrow = -1;
}
if (i < score.length) {
secondThrow = score[i + 2];
} else {
secondThrow = -1;
}
if (((f > 9) && (n == 0)) && (thisThrow == 10)) {
fs09.third = "X";
n++;
reward++;
if (comingOffOf == "spare") {
gameover = true;
}
} else if ((f > 9) && (n == 0)) {
fs09.third = String(thisThrow);
n++;
reward = 0;
if (comingOffOf == "spare") {
gameover = true;
}
} else if (((f > 9) && (n == 1)) && (thisThrow == 10)) {
fs09.fourth = "X";
reward++;
gameover = true;
} else if ((f > 9) && (n == 1)) {
fs09.fourth = thisThrow;
reward = 0;
gameover = true;
} else if ((((n == 0) && (thisThrow == 10)) && (nextThrow != -1)) && (secondThrow != -1)) {
this["fs0" + f].first = " ";
this["fs0" + f].second = "X";
t = t + ((thisThrow + nextThrow) + secondThrow);
this["fs0" + f].total = String(t);
f++;
reward++;
comingOffOf = "strike";
} else if ((((n == 0) && (thisThrow == 10)) && (nextThrow != -1)) && (secondThrow == -1)) {
this["fs0" + f].first = " ";
this["fs0" + f].second = "X";
this["fs0" + f].total = " ";
f++;
reward++;
comingOffOf = "strike";
} else if (((n == 0) && (thisThrow == 10)) && (nextThrow == -1)) {
this["fs0" + f].first = " ";
this["fs0" + f].second = "X";
this["fs0" + f].total = " ";
f++;
reward++;
comingOffOf = "strike";
} else if (n == 0) {
this["fs0" + f].first = String(thisThrow);
this["fs0" + f].second = " ";
t = t + thisThrow;
sss = Number(t);
this["fs0" + f].total = " ";
reward = 0;
n++;
} else if (((n == 1) && ((score[i - 1] + thisThrow) == 10)) && (nextThrow != -1)) {
this["fs0" + f].second = "/";
t = t + (thisThrow + nextThrow);
sss = Number(t);
this["fs0" + f].total = String(t);
f++;
gotSpare = true;
n = 0;
comingOffOf = "spare";
} else if (((n == 1) && ((score[i - 1] + thisThrow) == 10)) && (nextThrow == -1)) {
this["fs0" + f].second = "/";
this["fs0" + f].total = " ";
f++;
gotSpare = true;
n = 0;
comingOffOf = "spare";
} else if ((n == 1) && ((score[i - 1] + thisThrow) < 10)) {
this["fs0" + f].second = String(thisThrow);
t = t + thisThrow;
sss = Number(t);
this["fs0" + f].total = String(t);
f++;
n = 0;
comingOffOf = "nothing";
reward = 0;
if (f > 9) {
gameover = true;
}
}
if (gameover) {
break;
}
i++;
}
ff = f;
if (gameover) {
gotoAndStop ("gameover");
score = t;
scorecheck = String(t);
} else if (reward == 3) {
rewardMC.gotoAndStop("turkey");
} else if (reward == 2) {
rewardMC.gotoAndStop("double");
} else if ((reward == 1) || (reward > 3)) {
rewardMC.gotoAndStop("strike");
} else if (gotSpare) {
rewardMC.gotoAndPlay("spare");
} else {
rewardMC.gotoAndStop(1);
}
}
ss = 0;
sss = 0;
var m_v = -10;
resetGame();
exit_text.text = exittext;
Frame 6
setVirtual();
Frame 7
stop();
Instance of Symbol 107 MovieClip in Frame 7
onClipEvent (load) {
this._parent.resetBall();
}
onClipEvent (enterFrame) {
this._parent.positionBall();
}
Instance of Symbol 109 MovieClip in Frame 8
onClipEvent (enterFrame) {
this._parent.swingLine();
}
Instance of Symbol 113 MovieClip in Frame 9
onClipEvent (load) {
this._parent.initThrow();
}
onClipEvent (enterFrame) {
this._parent.advanceTime();
}
Frame 10
showScore();
stop();
continue_text.text = continuetext;
Frame 11
showScore();
stop();
continue_text.text = continuetext;
Frame 12
showScore();
_root.Score[_root.CurrentRound] = scorecheck;
if (_root.CurrentRound == 4) {
this.btns.gotoAndStop(2);
}
stop();
Frame 13
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.highscorespelen.nl/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
var totalscore = new Number(0);
var i = 0;
while (i < 5) {
this["score" + i].text = _root.Score[i];
totalscore = totalscore + Number(_root.Score[i]);
i++;
}
round_text1.text = roundtext + "1";
round_text2.text = roundtext + "2";
round_text3.text = roundtext + "3";
round_text4.text = roundtext + "4";
round_text5.text = roundtext + "5";
this.total.text = totalscore;
yourscore_text.text = yourscoretext;
totalscore_text.text = totalscoretext;
playagain_text.text = playagaintext;
submit_text.text = submittext;
score = totalscore;
stop();
var hexcase = 0;
var strsize = 8;
Frame 14
stop();
actScore = (totalscore * 10000) + _root.totalsec;
totalscore = 0;
Instance of Symbol 188 MovieClip in Frame 14
on (release) {
getURL ("http://www.clixogames.com", _blank);
}
Frame 15
stop();
Symbol 12 MovieClip [ball 1] Frame 1
stop();
Symbol 12 MovieClip [ball 1] Frame 7
gotoAndPlay (3);
Symbol 14 MovieClip Frame 1
this._visible = false;
Symbol 28 Button
on (release) {
this._parent.gotoAndPlay("startgame");
}
Symbol 29 Button
on (release) {
this._parent.gotoAndPlay("help");
}
Symbol 30 Button
on (release) {
getURL ("http://" + _root.url, "_blank");
}
Symbol 31 Button
on (release) {
getURL (("http://" + _root.url) + "/highscore.php", "_blank");
}
Symbol 39 MovieClip Frame 43
function LogoMcPress() {
clearInterval(setUrl);
LogoMc.onPress = function () {
getURL ("http://" + _root.url, "_blank");
};
}
start_text.text = _root.starttext;
help_text.text = _root.helptext;
moregames_text.text = _root.moregamestext;
highscore_text.text = _root.highscoretext;
stop();
setUrl = setInterval(LogoMcPress, 200);
Symbol 76 Button
on (press) {
this._parent.soundflag = false;
gotoAndStop (2);
}
Symbol 80 Button
on (press) {
this._parent.soundflag = true;
gotoAndStop (1);
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 82 Button
on (release) {
removeMovieClip(ball);
gotoAndStop ("intro");
}
Symbol 90 MovieClip Frame 1
var lampname = ("lamp" + this._name.substring(3, 5));
this._parent.panel[lampname].gotoAndStop(1);
stop();
Symbol 90 MovieClip Frame 2
this._parent.panel[lampname].gotoAndStop(2);
Symbol 103 Button
on (press) {
this._parent.gotoAndStop("line");
this._parent.startLine();
}
on (release) {
this._parent.stopLine();
}
Symbol 114 Button
on (press) {
playsound("button");
}
on (release) {
startNextThrow();
}
Symbol 121 MovieClip Frame 1
onEnterFrame = function () {
this.round_txt.text = _root.roundtext + " ";
this.round_txt.text = this.round_txt.text + (_root.CurrentRound + 1);
this.round_txt.text = this.round_txt.text + "/5";
this.score_txt.text = _root.scoretext + " ";
cs = 0;
i = 0;
while (i < 5) {
if ((_root.Score[i] != undefined) && (_root.CurrentRound != i)) {
cs = cs + Number(_root.Score[i]);
}
i++;
}
if (isNaN(_root.sss)) {
if (_root.f > 1) {
cs = cs + Number(_root["fs0" + (_root.f - 2)].total);
}
this.score_txt.text = (this.score_txt.text + cs) + " S";
} else {
cs = cs + Number(_root.sss);
this.score_txt.text = this.score_txt.text + cs;
}
};
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 3
spare_text.text = _root.sparetext;
Symbol 150 MovieClip Frame 19
stop();
Symbol 150 MovieClip Frame 20
this._parent.playSound("strike");
strike_text.text = _root.striketext;
Symbol 150 MovieClip Frame 36
stop();
Symbol 150 MovieClip Frame 37
this._parent.playSound("strike");
double_text.text = _root.doubletext;
Symbol 150 MovieClip Frame 55
stop();
Symbol 150 MovieClip Frame 56
this._parent.playSound("strike");
turkey_text.text = _root.turkeytext;
Symbol 150 MovieClip Frame 74
stop();
Symbol 151 Button
on (press) {
playsound("button");
}
on (release) {
startNextFrame();
}
Symbol 155 Button
on (press) {
playsound("button");
}
on (release) {
_root.CurrentRound++;
_root.gotoAndPlay("startgame");
}
Symbol 157 Button
on (press) {
playsound("button");
}
on (release) {
_root.gotoAndPlay("seescore");
}
Symbol 159 MovieClip Frame 1
stop();
nextround_text.text = _root.nextroundtext;
Symbol 159 MovieClip Frame 2
gameover_text.text = _root.gameovertext;
Symbol 162 Button
on (release) {
gotoAndStop ("intro");
}
Symbol 163 Button
on (release) {
submitScore();
}
Symbol 191 MovieClip Frame 1
function nextSec() {
_root.totalsec--;
}
_root.tid = setInterval(this, "nextSec", 1000);
_root.totalsec = 9999;
stop();
Symbol 198 Button
on (release) {
this._parent.gotoAndPlay("startgame");
}
Symbol 201 MovieClip Frame 1
help_text.text = _root.helptext;
start_text.text = _root.starttext;
helptext1.text = _root.helptext1;
helptext2.text = _root.helptext2;