Frame 1
monkeyType1 = "0";
monkeyType2 = "0";
monkeyType3 = "0";
score = "0";
cash = "500";
round = "1";
level = "1";
levelMulti = "1";
hq = "1";
play();
Frame 4
ifFrameLoaded (284) {
gotoAndPlay (10);
}
Frame 9
gotoAndPlay (2);
Frame 10
play();
Frame 165
stop();
Frame 166
play();
Frame 185
stop();
Frame 201
if (hq == "0") {
hq = "1";
toggleHighQuality();
}
if ((round == "6") and (level < "5")) {
level = level + "1";
if ("3" < level) {
levelMulti = levelMulti * "3";
} else {
levelMulti = levelMulti * "2";
}
round = "1";
}
tellTarget ("/level") {
gotoAndStop(../:level);
};
goNumber = "1";
num = "1";
while ("3" >= num) {
tellTarget ("/selected" add num) {
gotoAndStop (1);
};
num = num + "1";
}
tellTarget ("/selBG") {
gotoAndStop (1);
};
nextFrame();
Frame 202
stop();
Frame 203
tellTarget ("/selector") {
if (endPoint < _currentframe) {
gotoAndStop(_currentframe - "1");
}
};
if (/selector:move == "1") {
play();
} else {
prevFrame();
}
Frame 204
prevFrame();
Frame 206
goNumber = "1";
roundScore = "0";
Frame 236
if (hq == "1") {
toggleHighQuality();
hq = "0";
}
suckCount = "0";
blowCount = "0";
suckActive = "0";
blowActive = "0";
ring = "0";
scoring = "0";
shotScore = "";
startScore = score;
pushed = "0";
pushOK = "0";
monkeyActive = goNumber;
drag = eval ("drag" add goNumber);
infMax = eval ("infMax" add goNumber);
infPower = eval ("infPower" add goNumber);
rebound = eval ("rebound" add goNumber);
scoreMulti = eval ("scoreMulti" add goNumber);
tellTarget ("/trail1") {
gotoAndStop (1);
};
setProperty("/trail1", _x , "222.1");
setProperty("/trail1", _y , "132.4");
setProperty("/line1", _x , "577.5");
setProperty("/line1", _y , "374.8");
setProperty("/line2", _x , "577.5");
setProperty("/line2", _y , "374.8");
setProperty("/startBG", _x , "130.8");
setProperty("/startBG", _y , "111.3");
setProperty("/scoreRing", _x , "762");
setProperty("/scoreRing", _y , "460.2");
num = "1";
while ("3" >= num) {
tellTarget ("/selected" add num) {
gotoAndStop(eval ("../:monkeyType" add ../:num) + "1");
};
num = num + "1";
}
tellTarget ("/selBG") {
gotoAndStop(../:goNumber);
};
tellTarget ("/scoreRing") {
gotoAndStop(../:level);
};
tellTarget ("/blower") {
gotoAndStop (1);
};
tellTarget ("/blower/fan") {
gotoAndStop (1);
};
tellTarget ("/blower/magnet") {
gotoAndStop (1);
};
setProperty("/powerbar", _yscale , "1");
stop();
Frame 237
play();
Frame 238
dragX = getProperty("/trail0", _x);
if (dragX < "145") {
dragX = "145";
} else if ("297" < dragX) {
dragX = "297";
}
dragY = ((dragX - "145") / (-"2")) + "170";
setProperty("/trail1", _x , dragX);
setProperty("/trail1", _y , dragY);
prevFrame();
Frame 240
tellTarget ("/trail0") {
gotoAndPlay ("2");
};
count = "0";
Frame 241
play();
Frame 242
if (count < "14") {
count = count + "1";
prevFrame();
} else if (count == "14") {
startX = getProperty("/trail1", _x);
startY = getProperty("/trail1", _y);
count = count + "1";
prevFrame();
} else if (count == "23") {
dX = getProperty("/trail1", _x) - startX;
dY = getProperty("/trail1", _y) - startY;
if (dX < "0") {
dX = "0";
}
if (dY < "0") {
dY = "0";
}
direction = ((dY * "1.95") - dX) / "30";
speed = (dX + (direction * "10")) / "5";
speed = int(speed * "10") / "10";
if ("20" < speed) {
speed = "20";
}
nextFrame();
} else {
count = count + "1";
prevFrame();
}
Frame 243
tellTarget ("/monkey") {
gotoAndStop(eval ("../:monkeyType" add ../:goNumber));
};
setProperty("/monkey", _x , (getProperty("/trail1", _x) + "89") + speed);
setProperty("/monkey", _y , ((getProperty("/trail1", _y) + "118") + (speed / "2")) + direction);
tellTarget ("/trail0") {
gotoAndStop (1);
};
pushOK = "1";
count = "0";
backup = "0";
countG = "0";
distance = "0";
bounce = "1";
play();
Frame 244
if ((-"200") < getProperty("/startBG", _x)) {
setProperty("/startBG", _x , getProperty("/startBG", _x) - (speed * count));
setProperty("/startBG", _y , getProperty("/startBG", _y) - ((speed / "2") * count));
} else if ((-"200") < getProperty("/line1", _x)) {
setProperty("/line1", _x , getProperty("/line1", _x) - speed);
setProperty("/line1", _y , getProperty("/line1", _y) - (speed / "2"));
} else if ((-"200") < getProperty("/line2", _x)) {
setProperty("/line2", _x , getProperty("/line2", _x) - speed);
setProperty("/line2", _y , getProperty("/line2", _y) - (speed / "2"));
} else if ("240" < getProperty("/scoreRing", _x)) {
scoring = "1";
setProperty("/scoreRing", _x , getProperty("/scoreRing", _x) - speed);
setProperty("/scoreRing", _y , getProperty("/scoreRing", _y) - (speed / "2"));
} else {
ring = "1";
backup = "0";
count = "0";
}
if ((-"150") < getProperty("/trail1", _x)) {
gorillaSpeed = speed - (speed * countG);
gorillaLag = speed * count;
setProperty("/trail1", _x , (getProperty("/trail1", _x) + gorillaSpeed) - gorillaLag);
setProperty("/trail1", _y , ((getProperty("/trail1", _y) + (gorillaSpeed / "2")) - (gorillaLag / "2")) + direction);
}
if ((suckActive == "1") and (suckCount < infMax)) {
suckCount = suckCount + infPower;
}
if ((blowActive == "1") and ((infMax * (-"1")) < blowCount)) {
blowCount = blowCount - infPower;
}
direction = (direction + blowCount) + suckCount;
if ("1" >= count) {
monkeySpeed = speed - (speed * count);
} else {
lagFactor = (monkeyLag - xTest) / monkeyLag;
monkeySpeed = (speed - (speed * count)) + (((lagFactor * speed) * count) * "0.9");
}
monkeySpeed = monkeySpeed * bounce;
setProperty("/monkey", _x , (getProperty("/monkey", _x) + monkeySpeed) - (direction * "2"));
setProperty("/monkey", _y , (getProperty("/monkey", _y) + (monkeySpeed / "2")) + direction);
yOffset = "286" - getProperty("/monkey", _y);
xOffset = getProperty("/monkey", _x) - "220";
xTest = getProperty("/monkey", _x) - ("220" + (yOffset * "2"));
yTest = ("286" + (xOffset / "2")) - getProperty("/monkey", _y);
if ((yTest < "0") or ("180" < yTest)) {
speed = speed * rebound;
direction = direction * (-"1");
}
if ((ring == "1") and ("30" < xTest)) {
bounce = (-"0.7") * rebound;
drag = drag * "1.5";
}
if ((count == "1") and (backup == "0")) {
monkeyLag = xTest;
backup = "1";
}
if ((("0" < xTest) and (backup == "1")) and (ring == "0")) {
count = count + "0.05";
} else {
count = "1";
}
if (countG < "1") {
countG = countG + "0.001";
}
distance = distance + "0.01";
setProperty("/powerbar", _yscale , speed * "5");
if ("1" < distance) {
speed = speed - (distance * drag);
}
if (speed < "1") {
direction = speed * direction;
}
if ((speed < "0") or ((bounce < "0") and (getProperty("/monkey", _x) < (-"100")))) {
speed = "0";
direction = "0";
count = "0";
gotoAndPlay (247);
}
play();
Frame 245
if (scoring == "1") {
scoreX = getProperty("/scoreRing", _x) - getProperty("/monkey", _x);
scoreY = getProperty("/scoreRing", _y) - getProperty("/monkey", _y);
if (scoreX < "0") {
scoreX = scoreX * (-"1");
}
if (scoreY < "0") {
scoreY = scoreY * (-"1");
}
if (level < "5") {
shotScoreTemp = ("380" - ((level - "1") * "100")) - (scoreX + (scoreY * "2"));
} else {
shotScoreTemp = "50" - (scoreX + (scoreY * "2"));
}
if (shotScoreTemp < "0") {
shotScore = "0";
} else {
shotScore = int((shotScoreTemp * scoreMulti) * levelMulti);
}
}
prevFrame();
Frame 247
play();
Frame 248
if (count < "20") {
count = count + "1";
prevFrame();
} else {
roundScore = roundScore + shotScore;
score = startScore + shotScore;
if (goNumber < "3") {
goNumber = goNumber + "1";
gotoAndStop (236);
}
}
Frame 249
monkeyType1 = "0";
monkeyType2 = "0";
monkeyType3 = "0";
round = round + "1";
cashInc = int(roundScore / "20");
count = "0";
Frame 250
play();
Frame 251
if (count < "10") {
cash = cash + cashInc;
count = count + "1";
prevFrame();
} else if (cash < "300") {
gotoAndPlay (255);
} else {
count = "0";
nextFrame();
}
Frame 252
play();
Frame 253
if (count < "50") {
count = count + "1";
prevFrame();
} else {
gotoAndPlay (201);
}
Frame 255
gametable = "Curling";
scorecheck = score;
scoregood = "0";
loadVariables ("highscores.asp?action=check", "", "POST");
Frame 261
play();
Frame 262
if (scoregood == "0") {
prevFrame();
} else if (scoregood == "1") {
gotoAndStop (265);
} else if (scoregood == "2") {
gotoAndStop (270);
}
Frame 266
play();
Frame 267
if (update == "0") {
prevFrame();
} else {
gotoAndStop (275);
}
Frame 275
loadVariables ("highscores.asp?action=view", "", "POST");
stop();
Symbol 10 Button
on (release) {
nextFrame();
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
play();
Symbol 19 MovieClip Frame 5
gotoAndStop (1);
Symbol 22 Button
on (rollOver) {
startDrag ("board", true, "-51", "24", "52", "24");
}
on (rollOut) {
stopDrag();
}
Symbol 23 MovieClip Frame 1
pongScore = "0";
gotoAndPlay (5);
Symbol 23 MovieClip Frame 5
ballY = -"23";
ballX = random("100") - "50";
setProperty("ball", _y , ballY);
setProperty("ball", _x , ballX);
ballAngle = "0";
ballDirection = "3";
pongScore = "0";
gotoAndPlay (10);
Symbol 23 MovieClip Frame 9
play();
Symbol 23 MovieClip Frame 10
boardX = getProperty("board", _x);
ballX = ballX + ballAngle;
ballY = ballY + ballDirection;
if ((("57" < ballX) and (ballAngle >= "0")) or ((ballX < (-"57")) and (ballAngle < "0"))) {
ballX = ballX - (ballAngle * "2");
ballAngle = ballAngle * (-"1");
}
if ((ballDirection < "0") and (ballY == (-"23"))) {
ballY = ballY - ballDirection;
ballDirection = "3";
}
setProperty("ball", _x , ballX);
setProperty("ball", _y , ballY);
if (("0" < ballDirection) and (ballY == "19")) {
boardTest = ballX - boardX;
if (((-"8") < boardTest) and (boardTest < "8")) {
pongScore = pongScore + "1";
ballDirection = -"3";
ballAngle = (ballAngle + ((boardTest / "8") * "10")) / "2";
tellTarget ("sfx") {
gotoAndPlay (2);
};
if (pongScore == "1") {
tellTarget ("pongtext") {
gotoAndStop (2);
};
}
}
}
if (("0" < ballDirection) and (ballY == "31")) {
gotoAndPlay (5);
} else {
prevFrame();
}
Symbol 25 Button
on (release) {
nextFrame();
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
play();
Symbol 26 MovieClip Frame 10
stop();
Symbol 26 MovieClip Frame 11
play();
Symbol 26 MovieClip Frame 20
gotoAndStop (1);
Symbol 41 MovieClip Frame 1
play();
Symbol 41 MovieClip Frame 25
gotoAndPlay (1);
Symbol 41 MovieClip Frame 30
play();
Symbol 41 MovieClip Frame 45
Set("../../:speed", ../../:speed + "2");
Symbol 41 MovieClip Frame 50
gotoAndPlay (1);
Symbol 57 Button
on (release) {
gotoAndPlay (166);
}
Symbol 58 Button
on (release) {
gotoAndPlay (201);
}
Symbol 76 Button
on (release) {
nextFrame();
}
Symbol 98 Button
on (release) {
if (/selector:move == "0") {
tellTarget ("/selector") {
move = "1";
if (_currentframe == "1") {
gotoAndStop (51);
}
advance = "0";
endPoint = _currentframe - "10";
};
gotoAndPlay (203);
}
}
Symbol 101 Button
on (release) {
tellTarget ("/selector") {
if (move == "0") {
move = "1";
advance = "1";
gotoAndPlay(_currentframe + "1");
}
}
}
Symbol 104 Button
on (release) {
if (((cash - monkeyPriceTemp) >= ("300" - (goNumber * "100"))) and ((((monkeyTypeTemp <> monkeyType1) and (monkeyTypeTemp <> monkeyType2)) and (monkeyTypeTemp <> monkeyType3)) or (monkeyTypeTemp == "1"))) {
cash = cash - monkeyPriceTemp;
Set("monkeyType" add goNumber, monkeyTypeTemp);
monkeyPrice = monkeyPriceTemp;
tellTarget ("/selected" add goNumber) {
gotoAndStop(eval ("../:monkeyType" add ../:goNumber) + "1");
};
if (eval ("monkeyType" add goNumber) == "1") {
Set("drag" add goNumber, "0.02");
Set("infMax" add goNumber, "0.01");
Set("infPower" add goNumber, "0.0002");
Set("rebound" add goNumber, "0.8");
Set("scoreMulti" add goNumber, "1");
} else if (eval ("monkeyType" add goNumber) == "2") {
Set("drag" add goNumber, "0.03");
Set("infMax" add goNumber, "0.04");
Set("infPower" add goNumber, "0.002");
Set("rebound" add goNumber, "0.7");
Set("scoreMulti" add goNumber, "2");
} else if (eval ("monkeyType" add goNumber) == "3") {
Set("drag" add goNumber, "0.006");
Set("infMax" add goNumber, "0.02");
Set("infPower" add goNumber, "0.001");
Set("rebound" add goNumber, "0.9");
Set("scoreMulti" add goNumber, "3");
} else if (eval ("monkeyType" add goNumber) == "4") {
Set("drag" add goNumber, "0.15");
Set("infMax" add goNumber, "0.01");
Set("infPower" add goNumber, "5e-005");
Set("rebound" add goNumber, "0.4");
Set("scoreMulti" add goNumber, "5");
} else {
Set("drag" add goNumber, "0.01");
Set("infMax" add goNumber, "0");
Set("infPower" add goNumber, "0");
Set("rebound" add goNumber, "1");
Set("scoreMulti" add goNumber, "8");
}
tellTarget ("/sfx") {
gotoAndPlay ("cash");
};
if (goNumber < "3") {
goNumber = goNumber + "1";
tellTarget ("/selBG") {
gotoAndStop(../:goNumber);
};
} else {
gotoAndPlay (206);
}
} else {
tellTarget ("/sfx") {
gotoAndPlay ("buzz");
};
}
}
Symbol 105 Button
on (release) {
if (eval ("monkeyType" add goNumber) <> "0") {
gotoAndPlay (236);
}
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
move = "0";
Set("../:monkeyTypeTemp", "1");
Set("../:monkeyPriceTemp", "100");
stop();
Symbol 130 MovieClip Frame 11
move = "0";
Set("../:monkeyTypeTemp", "2");
Set("../:monkeyPriceTemp", "200");
stop();
Symbol 130 MovieClip Frame 21
move = "0";
Set("../:monkeyTypeTemp", "3");
Set("../:monkeyPriceTemp", "300");
stop();
Symbol 130 MovieClip Frame 31
move = "0";
Set("../:monkeyTypeTemp", "4");
Set("../:monkeyPriceTemp", "500");
stop();
Symbol 130 MovieClip Frame 41
move = "0";
Set("../:monkeyTypeTemp", "5");
Set("../:monkeyPriceTemp", "1000");
stop();
Symbol 130 MovieClip Frame 51
if (advance == "1") {
gotoAndStop (1);
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
Set("../:music", "0");
stop();
Symbol 145 MovieClip Frame 50
gotoAndStop (1);
Symbol 145 MovieClip Frame 80
gotoAndStop (1);
Symbol 145 MovieClip Frame 151
gotoAndStop (1);
Symbol 145 MovieClip Frame 239
gotoAndStop (1);
Symbol 145 MovieClip Frame 356
gotoAndStop (1);
Symbol 165 MovieClip Frame 1
stop();
Symbol 167 Button
on (rollOver) {
tellTarget ("../") {
startDrag ("/trail0", true);
nextFrame();
};
nextFrame();
}
Symbol 169 Button
on (release) {
if (((../:pushed == "0") and (../:pushOK == "1")) and ("0" < ../:bounce)) {
Set("../:pushed", "1");
tellTarget ("anim") {
gotoAndPlay ("push");
};
}
}
Symbol 175 MovieClip Frame 1
play();
Symbol 175 MovieClip Frame 25
gotoAndPlay (1);
Symbol 175 MovieClip Frame 30
play();
Symbol 175 MovieClip Frame 45
Set("../../:speed", ../../:speed + "2");
Symbol 175 MovieClip Frame 50
gotoAndPlay (1);
Symbol 181 MovieClip Frame 1
play();
Symbol 181 MovieClip Frame 25
gotoAndPlay (1);
Symbol 181 MovieClip Frame 30
play();
Symbol 181 MovieClip Frame 45
Set("../../:speed", ../../:speed + "2");
Symbol 181 MovieClip Frame 50
gotoAndPlay (1);
Symbol 188 MovieClip Frame 1
play();
Symbol 188 MovieClip Frame 25
gotoAndPlay (1);
Symbol 188 MovieClip Frame 30
play();
Symbol 188 MovieClip Frame 45
Set("../../:speed", ../../:speed + "2");
Symbol 188 MovieClip Frame 50
gotoAndPlay (1);
Symbol 194 MovieClip Frame 1
play();
Symbol 194 MovieClip Frame 25
gotoAndPlay (1);
Symbol 194 MovieClip Frame 30
play();
Symbol 194 MovieClip Frame 45
Set("../../:speed", ../../:speed + "2");
Symbol 194 MovieClip Frame 50
gotoAndPlay (1);
Symbol 195 MovieClip Frame 1
stop();
Symbol 196 Button
on (release) {
tellTarget ("../") {
gotoAndPlay ("curl");
};
gotoAndPlay (5);
}
Symbol 201 MovieClip Frame 1
tellTarget ("monkey") {
gotoAndStop(eval ("../../:monkeyType" add ../../:goNumber));
};
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 44
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
i = "1";
a = "20";
b = "1.8";
k = "0";
while (i >= "0") {
Set(("/trail" add i) add ":x_value", getProperty("/trail" add i, _x));
Set(("/trail" add i) add ":y_value", getProperty("/trail" add i, _y));
Set(("/trail" add i) add ":vx", "0");
Set(("/trail" add i) add ":vy", "0");
i = i - "1";
}
Symbol 202 MovieClip Frame 3
Set("/trail1:vx", (/trail1:vx + ((((/trail0:x_value + k) - /trail1:x_value) * "1") / a)) / b);
Set("/trail1:vy", (/trail1:vy + ((((/trail0:y_value + k) - /trail1:y_value) * "1") / a)) / b);
Set("/trail1:x_value", /trail1:x_value + /trail1:vx);
Set("/trail1:y_value", /trail1:y_value + /trail1:vy);
Set("/trail0:x_value", getProperty("/trail0", _x));
Set("/trail0:y_value", getProperty("/trail0", _y));
setProperty("/trail1", _x , /trail1:x_value);
setProperty("/trail1", _y , /trail1:y_value);
play();
Symbol 202 MovieClip Frame 4
prevFrame();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 15
gotoAndPlay (3);
Symbol 214 MovieClip Frame 20
gotoAndStop (1);
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 14
gotoAndPlay (5);
Symbol 229 MovieClip Frame 20
gotoAndStop (1);
Symbol 230 Button
on (release) {
if (../:suckActive == "0") {
Set("../:suckActive", "1");
tellTarget ("magnet") {
gotoAndPlay (2);
};
} else {
Set("../:suckCount", "0");
Set("../:suckActive", "0");
tellTarget ("magnet") {
gotoAndPlay (20);
};
}
gotoAndPlay(_currentframe + "1");
}
Symbol 231 Button
on (release) {
if (../:blowActive == "0") {
Set("../:blowActive", "1");
tellTarget ("fan") {
gotoAndPlay (2);
};
} else {
Set("../:blowCount", "0");
Set("../:blowActive", "0");
tellTarget ("fan") {
gotoAndPlay ("stop");
};
}
gotoAndPlay(_currentframe + "1");
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 18
stop();
Symbol 233 MovieClip Frame 35
gotoAndStop (1);
Symbol 233 MovieClip Frame 36
gotoAndStop (1);
Symbol 251 Button
on (release) {
update = "0";
loadVariables ("highscores.asp?action=insert", "", "POST");
nextFrame();
}
Symbol 259 Button
on (release) {
score = "0";
cash = "500";
round = "1";
level = "1";
levelMulti = "1";
gotoAndPlay (201);
}