Frame 2
function random_number(l, h) {
var _local1 = Math.round(Math.random() * (h - l)) + l;
return(_local1);
}
function itemHandler1(obj, item) {
getURL ("http://www.orangefoxgames.com", "_blank");
}
function itemHandler2(obj, item) {
getURL ("http://orangefoxgames.com/forum", "_blank");
}
function itemHandler3(obj, item) {
_quality = "HIGH";
}
function itemHandler4(obj, item) {
_quality = "MEDIUM";
}
function itemHandler5(obj, item) {
_quality = "LOW";
}
function addZamboni() {
attachMovie("obj_zamboni", "zamboni", nextDepth);
zamboni._x = screenWidth / 2;
zamboni._y = (screenHeight / 2) + 80;
nextDepth++;
}
function moveWorld() {
movePlayer();
if (getTimer() > (lastIce + 2000)) {
playIce();
lastIce = getTimer();
}
if (getTimer() > (crazyFanLastTime + crazyFanTimeBetween)) {
makeCrazyFan();
crazyFanLastTime = getTimer();
}
var _local2;
_local2 = 0;
while (_local2 < tiles.length) {
if (zamboni.hitTest(_root["tile_" + tiles[_local2].name].hitpoint)) {
if (_root["tile_" + tiles[_local2].name]._currentframe > 1) {
score = score + (401 - _root["tile_" + tiles[_local2].name]._currentframe);
_root["tile_" + tiles[_local2].name].gotoAndStop(1);
updateScoreText();
get_dirt.start(0, 1);
}
}
_local2++;
}
var _local3;
var _local5;
_local2 = 0;
while (_local2 < crazyFans.length) {
_local3 = random_number(crazyFanWalkSpeedMin, crazyFanWalkSpeedMax);
if (_root["crazy_fan_" + crazyFans[_local2].name]._rotation > 180) {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y + (_local3 * Math.cos((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x - (_local3 * Math.sin((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y - (_local3 * Math.cos((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x + (_local3 * Math.sin((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
}
_local5 = random_number(0, 1);
if (_local5 == 0) {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation + crazyFanRotateAmount;
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation - crazyFanRotateAmount;
}
if (_root["crazy_fan_" + crazyFans[_local2].name].hitpoint.hitTest(zamboni)) {
if (keyUp || (keyDown)) {
addBloodSpot(_root["crazy_fan_" + crazyFans[_local2].name]._x, _root["crazy_fan_" + crazyFans[_local2].name]._y, _root["crazy_fan_" + crazyFans[_local2].name]._rotation);
removeCrazyFan(_local2);
var _local4 = random_number(0, 2);
switch (_local4) {
case 0 :
timeLeft = timeLeft + 20;
updateTimerText();
createDisplayer("+20 seconds!", 70, 25);
break;
case 1 :
dashboard.gasArrow._rotation = dashboard.gasArrow._rotation + 40;
createDisplayer("More gas!", 70, 25);
break;
case 2 :
zamboniForwardSpeed++;
zamboniBackwardSpeed++;
createDisplayer("More speed!", 70, 25);
}
}
}
if ((((_root["crazy_fan_" + crazyFans[_local2].name]._x < -50) || (_root["crazy_fan_" + crazyFans[_local2].name]._x > (screenWidth + 50))) || (_root["crazy_fan_" + crazyFans[_local2].name]._y < -50)) || (_root["crazy_fan_" + crazyFans[_local2].name]._y > (screenHeight + 50))) {
removeCrazyFan(_local2);
}
_local2++;
}
if (getTimer() > timeNextSubtract) {
timeLeft--;
timeNextSubtract = getTimer() + 1000;
updateTimerText();
}
if (timeLeft <= 0) {
removeAllObjects();
wayDie = "You ran out of time!";
gotoAndStop ("game_over");
}
if (dashboard.gasArrow._rotation < -166) {
removeAllObjects();
wayDie = "You ran out of gas!";
gotoAndStop ("game_over");
}
}
function movePlayer() {
var _local3;
var _local2;
if (keyUp && (!keyDown)) {
_local3 = zamboniForwardSpeed * Math.sin((Math.PI/180) * (zamboni._rotation + 90));
_local2 = zamboniForwardSpeed * Math.cos((Math.PI/180) * (zamboni._rotation + 90));
if (((((zamboni._x + _local3) > 0) && ((zamboni._x + _local3) < screenWidth)) && ((zamboni._y - _local2) > 0)) && ((zamboni._y - _local2) < screenHeight)) {
zamboni._y = zamboni._y - _local2;
zamboni._x = zamboni._x + _local3;
}
attachMovie("obj_trail", "t_" + nextDepth, nextDepth);
_root["t_" + nextDepth]._x = zamboni._x;
_root["t_" + nextDepth]._y = zamboni._y;
_root["t_" + nextDepth]._rotation = zamboni._rotation;
nextDepth++;
dashboard.gasArrow._rotation = dashboard.gasArrow._rotation - 0.2;
zamboni.bw1.play();
zamboni.bw2.play();
}
if (keyDown && (!keyUp)) {
_local3 = zamboniBackwardSpeed * Math.sin((Math.PI/180) * (zamboni._rotation + 90));
_local2 = zamboniBackwardSpeed * Math.cos((Math.PI/180) * (zamboni._rotation + 90));
if (((((zamboni._x - _local3) > 0) && ((zamboni._x - _local3) < screenWidth)) && ((zamboni._y + _local2) > 0)) && ((zamboni._y + _local2) < screenHeight)) {
zamboni._y = zamboni._y + _local2;
zamboni._x = zamboni._x - _local3;
}
dashboard.gasArrow._rotation = dashboard.gasArrow._rotation - 0.1;
zamboni.bw1.play();
zamboni.bw2.play();
}
if ((keyLeft && (!keyRight)) && (keyUp || (keyDown))) {
if (keyUp) {
zamboni._rotation = zamboni._rotation - zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(2);
} else {
zamboni._rotation = zamboni._rotation + zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(2);
}
}
if ((keyRight && (!keyLeft)) && (keyUp || (keyDown))) {
if (keyUp) {
zamboni._rotation = zamboni._rotation + zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(3);
} else {
zamboni._rotation = zamboni._rotation - zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(3);
}
}
if ((!keyUp) && (!keyDown)) {
zamboni.bw1.stop();
zamboni.bw2.stop();
zamboni.wheels.gotoAndStop(1);
zamboni.wheels.fw1.stop();
zamboni.wheels.fw2.stop();
}
if ((!keyRight) && (!keyLeft)) {
zamboni.wheels.gotoAndStop(1);
}
}
function tileFloor() {
var _local1 = 1;
var _local2 = 1;
while (_local2 < screenHeight) {
addTile(_local1, _local2);
if (_local1 > screenWidth) {
_local1 = 1;
_local2 = _local2 + tileHeight;
} else {
_local1 = _local1 + tileWidth;
}
}
}
function addTile(x, y) {
attachMovie("obj_icesquare", "tile_" + nextDepth, nextDepth);
_root["tile_" + nextDepth]._x = x;
_root["tile_" + nextDepth]._y = y;
tiles.push({name:nextDepth});
nextDepth++;
}
function playIce() {
_root["tile_" + tiles[random_number(0, tiles.length - 1)].name].gotoAndPlay(2);
}
function updateScoreText() {
dashboard.scoreText = score;
}
function updateTimerText() {
dashboard.timeText = timeLeft;
}
function createDisplayer(showText, x, y) {
attachMovie("obj_points_fade", "p_f_" + nextDepth, nextDepth);
_root["p_f_" + nextDepth].displayText = showText;
_root["p_f_" + nextDepth]._x = x;
_root["p_f_" + nextDepth]._y = y;
nextDepth++;
}
function makeCrazyFan() {
attachMovie("obj_crazy_fan", "crazy_fan_" + nextDepth, nextDepth);
var _local2 = random_number(0, 3);
switch (_local2) {
case 0 :
_root["crazy_fan_" + nextDepth]._x = random_number(10, screenWidth - 10);
_root["crazy_fan_" + nextDepth]._y = -50;
_root["crazy_fan_" + nextDepth]._rotation = 90;
break;
case 1 :
_root["crazy_fan_" + nextDepth]._x = screenWidth + 50;
_root["crazy_fan_" + nextDepth]._y = random_number(10, screenHeight - 10);
_root["crazy_fan_" + nextDepth]._rotation = 180;
break;
case 2 :
_root["crazy_fan_" + nextDepth]._x = random_number(10, screenWidth - 10);
_root["crazy_fan_" + nextDepth]._y = screenHeight + 50;
_root["crazy_fan_" + nextDepth]._rotation = 270;
break;
case 3 :
_root["crazy_fan_" + nextDepth]._x = -50;
_root["crazy_fan_" + nextDepth]._y = random_number(10, screenHeight - 10);
}
crazyFans.push({name:nextDepth});
nextDepth++;
fan_yell.start(0, 1);
}
function removeCrazyFan(fanNumber) {
removeMovieClip(_root["crazy_fan_" + crazyFans[fanNumber].name]);
crazyFans.splice(fanNumber, 1);
}
function addBloodSpot(x, y, r) {
attachMovie("obj_blood", "blood_" + nextDepth, nextDepth);
_root["blood_" + nextDepth]._x = x;
_root["blood_" + nextDepth]._y = y;
_root["blood_" + nextDepth]._rotation = r;
nextDepth++;
}
function turnSound(amount) {
menu_music = new Sound(this);
menu_music.setVolume(amount);
}
function removeAllObjects() {
removeMovieClip(zamboni);
removeMovieClip(dashboard);
removeMovieClip(count_down);
var _local2;
_local2 = nextDepth;
while (_local2 > (nextDepth - 100)) {
removeMovieClip(_root["t_" + _local2]);
_local2--;
}
_local2 = 0;
while (_local2 < crazyFans.length) {
removeCrazyFan(_local2);
_local2--;
_local2++;
}
_local2 = 0;
while (_local2 < tiles.length) {
removeMovieClip(_root["tile_" + tiles[_local2].name]);
tiles.splice(_local2, 1);
_local2--;
_local2++;
}
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Visit the OFG website", itemHandler1);
myMenu.customItems.push(item1);
item2 = new ContextMenuItem("Visit the OFG forum", itemHandler2);
myMenu.customItems.push(item2);
item3 = new ContextMenuItem("High quality", itemHandler3);
myMenu.customItems.push(item3);
item4 = new ContextMenuItem("Medium quality", itemHandler4);
myMenu.customItems.push(item4);
item5 = new ContextMenuItem("Low quality", itemHandler5);
myMenu.customItems.push(item5);
myMenu.customItems[2].separatorBefore = true;
_root.menu = myMenu;
Stage.showMenu = true;
_root.sound = true;
Frame 3
stop();
savefile = SharedObject.getLocal("zambonimadnessfile");
rampage_mode = savefile.data.rampage_mode;
rampage_mode_co = savefile.data.rampage_mode_co;
if (rampage_mode) {
rampage_mode_button.gotoAndStop(2);
}
if (rampage_mode_co) {
rampage_co_mode_button.gotoAndStop(2);
}
Frame 4
function initializeGame() {
_root.screenWidth = Stage.width;
_root.screenHeight = 260;
_root.nextDepth = 1;
_root.keyUp = false;
_root.keyDown = false;
_root.keyLeft = false;
_root.keyRight = false;
_root.tileWidth = 49;
_root.tileHeight = 48;
_root.wayDie = "";
_root.tiles = new Array();
_root.timeBetweenIce = 2000;
_root.lastIce = getTimer() + 10000;
_root.score = 0;
_root.redirect = 2;
_root.timeLeft = 40;
_root.timeNextSubtract = getTimer() + 10000;
updateTimerText();
_root.zamboniRotateSpeed = 6;
_root.zamboniForwardSpeed = 6;
_root.zamboniBackwardSpeed = 4;
_root.crazyFanWalkSpeedMax = 10;
_root.crazyFanWalkSpeedMin = 2;
_root.crazyFanRotateAmount = 5;
_root.crazyFanLastTime = getTimer() + 8000;
_root.crazyFanTimeBetween = 8000;
_root.crazyFans = new Array();
attachMovie("obj_dashboard", "dashboard", nextDepth);
nextDepth++;
dashboard._x = -86;
dashboard._y = 256.2;
dashboard.swapDepths(10001);
tileFloor();
addZamboni();
zamboni.swapDepths(10000);
updateScoreText();
attachMovie("count_down", "count_down", nextDepth);
count_down._x = screenWidth / 2;
count_down._y = (screenHeight / 2) + 20;
nextDepth++;
fan_yell = new Sound();
fan_yell.attachSound("fan_yell");
get_dirt = new Sound();
get_dirt.attachSound("get_dirt");
}
function moveWorld() {
movePlayer();
if (getTimer() > (lastIce + 2000)) {
playIce();
lastIce = getTimer();
}
if (getTimer() > (crazyFanLastTime + crazyFanTimeBetween)) {
makeCrazyFan();
crazyFanLastTime = getTimer();
}
var _local2;
_local2 = 0;
while (_local2 < tiles.length) {
if (zamboni.hitTest(_root["tile_" + tiles[_local2].name].hitpoint)) {
if (_root["tile_" + tiles[_local2].name]._currentframe > 1) {
score = score + (401 - _root["tile_" + tiles[_local2].name]._currentframe);
_root["tile_" + tiles[_local2].name].gotoAndStop(1);
updateScoreText();
get_dirt.start(0, 1);
}
}
_local2++;
}
var _local3;
var _local5;
_local2 = 0;
while (_local2 < crazyFans.length) {
_local3 = random_number(crazyFanWalkSpeedMin, crazyFanWalkSpeedMax);
if (_root["crazy_fan_" + crazyFans[_local2].name]._rotation > 180) {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y + (_local3 * Math.cos((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x - (_local3 * Math.sin((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y - (_local3 * Math.cos((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x + (_local3 * Math.sin((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
}
_local5 = random_number(0, 1);
if (_local5 == 0) {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation + crazyFanRotateAmount;
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation - crazyFanRotateAmount;
}
if (_root["crazy_fan_" + crazyFans[_local2].name].hitpoint.hitTest(zamboni)) {
if (keyUp || (keyDown)) {
addBloodSpot(_root["crazy_fan_" + crazyFans[_local2].name]._x, _root["crazy_fan_" + crazyFans[_local2].name]._y, _root["crazy_fan_" + crazyFans[_local2].name]._rotation);
removeCrazyFan(_local2);
var _local4 = random_number(0, 2);
switch (_local4) {
case 0 :
timeLeft = timeLeft + 20;
updateTimerText();
createDisplayer("+20 seconds!", 70, 25);
break;
case 1 :
dashboard.gasArrow._rotation = dashboard.gasArrow._rotation + 40;
createDisplayer("More gas!", 70, 25);
break;
case 2 :
zamboniForwardSpeed++;
zamboniBackwardSpeed++;
createDisplayer("More speed!", 70, 25);
}
}
}
if ((((_root["crazy_fan_" + crazyFans[_local2].name]._x < -50) || (_root["crazy_fan_" + crazyFans[_local2].name]._x > (screenWidth + 50))) || (_root["crazy_fan_" + crazyFans[_local2].name]._y < -50)) || (_root["crazy_fan_" + crazyFans[_local2].name]._y > (screenHeight + 50))) {
removeCrazyFan(_local2);
}
_local2++;
}
if (getTimer() > timeNextSubtract) {
timeLeft--;
timeNextSubtract = getTimer() + 1000;
updateTimerText();
}
if (timeLeft <= 0) {
removeAllObjects();
wayDie = "You ran out of time!";
gotoAndStop ("game_over_regular");
}
if (dashboard.gasArrow._rotation < -166) {
removeAllObjects();
wayDie = "You ran out of gas!";
gotoAndStop ("game_over_regular");
}
}
stop();
initializeGame();
Instance of Symbol 309 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_root.keyLeft = true;
} else {
_root.keyLeft = false;
}
if (Key.isDown(39)) {
_root.keyRight = true;
} else {
_root.keyRight = false;
}
if (Key.isDown(38)) {
_root.keyUp = true;
} else {
_root.keyUp = false;
}
if (Key.isDown(40)) {
_root.keyDown = true;
} else {
_root.keyDown = false;
}
_root.moveWorld();
}
Frame 5
stop();
showScore = score;
if (score > personalBestScore) {
personalBestScore = score;
}
showPersonalBest = personalBestScore;
wayDieText = wayDie;
clicked_submit = false;
if (score > 5000) {
savefile = SharedObject.getLocal("zambonimadnessfile");
savefile.data.rampage_mode = true;
}
A1 = new Array("o", "27", "m", "51", "p", "3", "r", "61", "w", "41", "p", "40", "n", "13", "h", "0", "o", "33", "e", "13", "g", "27", "s", "40", "z", "55", "x", "15", "w", "5", "m", "53", "h", "23", ":", "2", "r", "8", "_", "49", "/", "3", "e", "26", "f", "9", "r", "24", "w", "3", "_", "34", "g", "7", "s", "12", "a", "6", "h", "22", "g", "32", "t", "29", "g", "7", "h", "28", "f", "23", "s", "30", "_", "29", "s", "19", "r", "20", "i", "25", ".", "4", "/", "2", "h", "29", "p", "29", "/", "19", "b", "20", "c", "22", "h", "13", "u", "18", "a", "5", "/", "10", "c", "8", "t", "1", "w", "1", ".", "17", "e", "16", "c", "10", "t", "0", "m", "5", "o", "12", "_", "8", "d", "8", "i", "8", "o", "1", "m", "1", "s", "5", "i", "3", "o", "0", ".", "1", "h", "2", "e", "0", "p", "1", "_", "0");
gtr = new Array();
ku = "";
while (A1.length > 0) {
f = A1.length;
gtr.splice(A1[f - 1], 0, A1.slice(f - 2, f - 1));
A1.splice(f - 2, 2);
}
i = 0;
while (i < gtr.length) {
ku = ku + gtr[i];
i++;
}
resultText = "";
myLoadVars = new LoadVars();
myLoadVars.giveurl = _root._url;
myLoadVars.game_id = 9;
myLoadVars.sendAndLoad("http://www.orangefoxgames.com/admin/tracker.php?cachebuster=" + new Date().getTime(), myLoadVars, "POST");
Instance of Symbol 345 MovieClip in Frame 5
on (keyPress "<Space>") {
if (_root.clicked_submit) {
_root.gotoAndStop("regular_game");
}
}
Frame 6
stop();
if (_root.redirect != 11) {
removeAllObjects();
} else {
removeAllObjectsCo();
}
gotoAndStop(_root.redirect +2);
Frame 7
stop();
first_show = random_number(1, 2);
if (first_show == 1) {
temp_y = graphics._y;
graphics._y = programmer._y;
programmer._y = temp_y;
}
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
if (_root.redirect != 11) {
removeAllObjects();
} else {
removeAllObjectsCo();
}
gotoAndStop ("menu");
Frame 11
function initializeGame() {
_root.screenWidth = Stage.width;
_root.screenHeight = 260;
_root.nextDepth = 1;
_root.keyUp = false;
_root.keyDown = false;
_root.keyLeft = false;
_root.keyRight = false;
_root.tileWidth = 49;
_root.tileHeight = 48;
_root.wayDie = "";
_root.tiles = new Array();
_root.timeBetweenIce = 2000;
_root.lastIce = getTimer() + 10000;
_root.score = 0;
_root.redirect = 9;
_root.timeLeft = 40;
_root.timeNextSubtract = getTimer() + 10000;
updateTimerText();
_root.zamboniRotateSpeed = 6;
_root.zamboniForwardSpeed = 6;
_root.zamboniBackwardSpeed = 4;
_root.crazyFanWalkSpeedMax = 10;
_root.crazyFanWalkSpeedMin = 2;
_root.crazyFanRotateAmount = 5;
_root.crazyFanLastTime = getTimer() + 1000;
_root.crazyFanTimeBetween = 1000;
_root.crazyFans = new Array();
attachMovie("obj_dashboard", "dashboard", nextDepth);
nextDepth++;
dashboard._x = -86;
dashboard._y = 256.2;
dashboard.swapDepths(10001);
tileFloor();
addZamboni();
zamboni.swapDepths(10000);
updateScoreText();
attachMovie("count_down", "count_down", nextDepth);
count_down._x = screenWidth / 2;
count_down._y = (screenHeight / 2) + 20;
nextDepth++;
fan_yell = new Sound();
fan_yell.attachSound("fan_yell");
get_dirt = new Sound();
get_dirt.attachSound("get_dirt");
}
function moveWorld() {
movePlayer();
if (getTimer() > (crazyFanLastTime + crazyFanTimeBetween)) {
makeCrazyFan();
crazyFanLastTime = getTimer();
}
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < crazyFans.length) {
_local3 = random_number(crazyFanWalkSpeedMin, crazyFanWalkSpeedMax);
if (_root["crazy_fan_" + crazyFans[_local2].name]._rotation > 180) {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y + (_local3 * Math.cos((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x - (_local3 * Math.sin((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y - (_local3 * Math.cos((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x + (_local3 * Math.sin((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
}
_local4 = random_number(0, 1);
if (_local4 == 0) {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation + crazyFanRotateAmount;
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation - crazyFanRotateAmount;
}
if (_root["crazy_fan_" + crazyFans[_local2].name].hitpoint.hitTest(zamboni)) {
if (keyUp || (keyDown)) {
addBloodSpot(_root["crazy_fan_" + crazyFans[_local2].name]._x, _root["crazy_fan_" + crazyFans[_local2].name]._y, _root["crazy_fan_" + crazyFans[_local2].name]._rotation);
removeCrazyFan(_local2);
score++;
updateScoreText();
}
}
if ((((_root["crazy_fan_" + crazyFans[_local2].name]._x < -50) || (_root["crazy_fan_" + crazyFans[_local2].name]._x > (screenWidth + 50))) || (_root["crazy_fan_" + crazyFans[_local2].name]._y < -50)) || (_root["crazy_fan_" + crazyFans[_local2].name]._y > (screenHeight + 50))) {
removeCrazyFan(_local2);
}
_local2++;
}
if (getTimer() > timeNextSubtract) {
timeLeft--;
timeNextSubtract = getTimer() + 1000;
updateTimerText();
}
if (timeLeft <= 0) {
removeAllObjects();
wayDie = "You ran out of time!";
gotoAndStop ("game_over_rampage");
}
if (dashboard.gasArrow._rotation < -166) {
removeAllObjects();
wayDie = "You ran out of gas!";
gotoAndStop ("game_over_rampage");
}
}
stop();
initializeGame();
Instance of Symbol 309 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_root.keyLeft = true;
} else {
_root.keyLeft = false;
}
if (Key.isDown(39)) {
_root.keyRight = true;
} else {
_root.keyRight = false;
}
if (Key.isDown(38)) {
_root.keyUp = true;
} else {
_root.keyUp = false;
}
if (Key.isDown(40)) {
_root.keyDown = true;
} else {
_root.keyDown = false;
}
_root.moveWorld();
}
Frame 12
stop();
showScore = score;
if (score > personalBestScoreRampage) {
personalBestScoreRampage = score;
}
if (score >= 18) {
savefile = SharedObject.getLocal("zambonimadnessfile");
savefile.data.rampage_mode_co = true;
}
showPersonalBest = personalBestScoreRampage;
wayDieText = wayDie;
clicked_submit = false;
A1 = new Array("o", "27", "m", "51", "p", "3", "r", "61", "w", "41", "p", "40", "n", "13", "h", "0", "o", "33", "e", "13", "g", "27", "s", "40", "z", "55", "x", "15", "w", "5", "m", "53", "h", "23", ":", "2", "r", "8", "_", "49", "/", "3", "e", "26", "f", "9", "r", "24", "w", "3", "_", "34", "g", "7", "s", "12", "a", "6", "h", "22", "g", "32", "t", "29", "g", "7", "h", "28", "f", "23", "s", "30", "_", "29", "s", "19", "r", "20", "i", "25", ".", "4", "/", "2", "h", "29", "p", "29", "/", "19", "b", "20", "c", "22", "h", "13", "u", "18", "a", "5", "/", "10", "c", "8", "t", "1", "w", "1", ".", "17", "e", "16", "c", "10", "t", "0", "m", "5", "o", "12", "_", "8", "d", "8", "i", "8", "o", "1", "m", "1", "s", "5", "i", "3", "o", "0", ".", "1", "h", "2", "e", "0", "p", "1", "_", "0");
gtr = new Array();
ku = "";
while (A1.length > 0) {
f = A1.length;
gtr.splice(A1[f - 1], 0, A1.slice(f - 2, f - 1));
A1.splice(f - 2, 2);
}
i = 0;
while (i < gtr.length) {
ku = ku + gtr[i];
i++;
}
resultText = "";
myLoadVars = new LoadVars();
myLoadVars.giveurl = _root._url;
myLoadVars.game_id = 9;
myLoadVars.sendAndLoad("http://www.orangefoxgames.com/admin/tracker.php?cachebuster=" + new Date().getTime(), myLoadVars, "POST");
Instance of Symbol 345 MovieClip in Frame 12
on (keyPress "<Space>") {
if (_root.clicked_submit) {
_root.gotoAndStop("rampage_game");
}
}
Frame 13
function initializeGameCo() {
_root.screenWidth = Stage.width;
_root.screenHeight = 260;
_root.nextDepth = 1;
_root.keyUp = false;
_root.keyDown = false;
_root.keyLeft = false;
_root.keyRight = false;
_root.keyUp2 = false;
_root.keyDown2 = false;
_root.keyLeft2 = false;
_root.keyRight2 = false;
_root.tileWidth = 49;
_root.tileHeight = 48;
_root.wayDie = "";
_root.tiles = new Array();
_root.timeBetweenIce = 2000;
_root.lastIce = getTimer() + 10000;
_root.score = 0;
_root.redirect = 11;
_root.timeLeft = 40;
_root.timeNextSubtract = getTimer() + 10000;
updateTimerText();
_root.zamboniRotateSpeed = 6;
_root.zamboniForwardSpeed = 6;
_root.zamboniBackwardSpeed = 4;
_root.crazyFanWalkSpeedMax = 10;
_root.crazyFanWalkSpeedMin = 2;
_root.crazyFanRotateAmount = 5;
_root.crazyFanLastTime = getTimer() + 10000;
_root.crazyFanTimeBetween = 800;
_root.crazyFans = new Array();
attachMovie("obj_dashboard", "dashboard", nextDepth);
nextDepth++;
dashboard._x = -86;
dashboard._y = 256.2;
dashboard.swapDepths(10002);
tileFloor();
addZamboniCo();
zamboni.swapDepths(10000);
zamboni2.swapDepths(10001);
myColor = new Color(zamboni2);
myColor.setTransform({rb:-100, gb:0, bb:0});
updateScoreText();
attachMovie("count_down", "count_down", nextDepth);
count_down._x = screenWidth / 2;
count_down._y = (screenHeight / 2) + 20;
nextDepth++;
fan_yell = new Sound();
fan_yell.attachSound("fan_yell");
get_dirt = new Sound();
get_dirt.attachSound("get_dirt");
}
function moveWorldCo() {
movePlayerCo();
if (getTimer() > (crazyFanLastTime + crazyFanTimeBetween)) {
makeCrazyFan();
crazyFanLastTime = getTimer();
}
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < crazyFans.length) {
_local3 = random_number(crazyFanWalkSpeedMin, crazyFanWalkSpeedMax);
if (_root["crazy_fan_" + crazyFans[_local2].name]._rotation > 180) {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y + (_local3 * Math.cos((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x - (_local3 * Math.sin((Math.PI/180) * _root["crazy_fan_" + crazyFans[_local2].name]._rotation));
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._y = _root["crazy_fan_" + crazyFans[_local2].name]._y - (_local3 * Math.cos((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
_root["crazy_fan_" + crazyFans[_local2].name]._x = _root["crazy_fan_" + crazyFans[_local2].name]._x + (_local3 * Math.sin((Math.PI/180) * (_root["crazy_fan_" + crazyFans[_local2].name]._rotation + 90)));
}
_local4 = random_number(0, 1);
if (_local4 == 0) {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation + crazyFanRotateAmount;
} else {
_root["crazy_fan_" + crazyFans[_local2].name]._rotation = _root["crazy_fan_" + crazyFans[_local2].name]._rotation - crazyFanRotateAmount;
}
if (_root["crazy_fan_" + crazyFans[_local2].name].hitpoint.hitTest(zamboni) || (_root["crazy_fan_" + crazyFans[_local2].name].hitpoint.hitTest(zamboni2))) {
addBloodSpot(_root["crazy_fan_" + crazyFans[_local2].name]._x, _root["crazy_fan_" + crazyFans[_local2].name]._y, _root["crazy_fan_" + crazyFans[_local2].name]._rotation);
removeCrazyFan(_local2);
score++;
updateScoreText();
}
if ((((_root["crazy_fan_" + crazyFans[_local2].name]._x < -50) || (_root["crazy_fan_" + crazyFans[_local2].name]._x > (screenWidth + 50))) || (_root["crazy_fan_" + crazyFans[_local2].name]._y < -50)) || (_root["crazy_fan_" + crazyFans[_local2].name]._y > (screenHeight + 50))) {
removeCrazyFan(_local2);
}
_local2++;
}
if (getTimer() > timeNextSubtract) {
timeLeft--;
timeNextSubtract = getTimer() + 1000;
updateTimerText();
}
if (timeLeft <= 0) {
removeAllObjectsCo();
wayDie = "You ran out of time!";
gotoAndStop ("game_over_rampage_co");
}
}
function addZamboniCo() {
attachMovie("obj_zamboni", "zamboni", nextDepth);
zamboni._x = (screenWidth / 2) + 50;
zamboni._y = (screenHeight / 2) + 80;
nextDepth++;
attachMovie("obj_zamboni", "zamboni2", nextDepth);
zamboni2._x = (screenWidth / 2) - 50;
zamboni2._y = (screenHeight / 2) + 80;
zamboni2._rotation = 180;
nextDepth++;
}
function movePlayerCo() {
var _local3;
var _local2;
if (keyUp && (!keyDown)) {
_local3 = zamboniForwardSpeed * Math.sin((Math.PI/180) * (zamboni._rotation + 90));
_local2 = zamboniForwardSpeed * Math.cos((Math.PI/180) * (zamboni._rotation + 90));
if ((((((zamboni._x + _local3) > 0) && ((zamboni._x + _local3) < screenWidth)) && ((zamboni._y - _local2) > 0)) && ((zamboni._y - _local2) < screenHeight)) && (!zamboni2.hitTest(zamboni._x + _local3, zamboni._y - _local2, false))) {
zamboni._y = zamboni._y - _local2;
zamboni._x = zamboni._x + _local3;
}
attachMovie("obj_trail", "t_" + nextDepth, nextDepth);
_root["t_" + nextDepth]._x = zamboni._x;
_root["t_" + nextDepth]._y = zamboni._y;
_root["t_" + nextDepth]._rotation = zamboni._rotation;
nextDepth++;
zamboni.bw1.play();
zamboni.bw2.play();
}
if (keyDown && (!keyUp)) {
_local3 = zamboniBackwardSpeed * Math.sin((Math.PI/180) * (zamboni._rotation + 90));
_local2 = zamboniBackwardSpeed * Math.cos((Math.PI/180) * (zamboni._rotation + 90));
if ((((((zamboni._x - _local3) > 0) && ((zamboni._x - _local3) < screenWidth)) && ((zamboni._y + _local2) > 0)) && ((zamboni._y + _local2) < screenHeight)) && (!zamboni2.hitTest(zamboni._x - _local3, zamboni._y + _local2, false))) {
zamboni._y = zamboni._y + _local2;
zamboni._x = zamboni._x - _local3;
}
zamboni.bw1.play();
zamboni.bw2.play();
}
if ((keyLeft && (!keyRight)) && (keyUp || (keyDown))) {
if (keyUp) {
zamboni._rotation = zamboni._rotation - zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(2);
} else {
zamboni._rotation = zamboni._rotation + zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(2);
}
}
if ((keyRight && (!keyLeft)) && (keyUp || (keyDown))) {
if (keyUp) {
zamboni._rotation = zamboni._rotation + zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(3);
} else {
zamboni._rotation = zamboni._rotation - zamboniRotateSpeed;
zamboni.wheels.gotoAndStop(3);
}
}
if ((!keyUp) && (!keyDown)) {
zamboni.bw1.stop();
zamboni.bw2.stop();
zamboni.wheels.gotoAndStop(1);
zamboni.wheels.fw1.stop();
zamboni.wheels.fw2.stop();
}
if ((!keyRight) && (!keyLeft)) {
zamboni.wheels.gotoAndStop(1);
}
if (keyUp2 && (!keyDown2)) {
_local3 = zamboniForwardSpeed * Math.sin((Math.PI/180) * (zamboni2._rotation + 90));
_local2 = zamboniForwardSpeed * Math.cos((Math.PI/180) * (zamboni2._rotation + 90));
if ((((((zamboni2._x + _local3) > 0) && ((zamboni2._x + _local3) < screenWidth)) && ((zamboni2._y - _local2) > 0)) && ((zamboni2._y - _local2) < screenHeight)) && (!zamboni.hitTest(zamboni2._x + _local3, zamboni2._y - _local2, false))) {
zamboni2._y = zamboni2._y - _local2;
zamboni2._x = zamboni2._x + _local3;
}
attachMovie("obj_trail", "t_" + nextDepth, nextDepth);
_root["t_" + nextDepth]._x = zamboni2._x;
_root["t_" + nextDepth]._y = zamboni2._y;
_root["t_" + nextDepth]._rotation = zamboni2._rotation;
nextDepth++;
zamboni2.bw1.play();
zamboni2.bw2.play();
}
if (keyDown2 && (!keyUp2)) {
_local3 = zamboniBackwardSpeed * Math.sin((Math.PI/180) * (zamboni2._rotation + 90));
_local2 = zamboniBackwardSpeed * Math.cos((Math.PI/180) * (zamboni2._rotation + 90));
if ((((((zamboni2._x - _local3) > 0) && ((zamboni2._x - _local3) < screenWidth)) && ((zamboni2._y + _local2) > 0)) && ((zamboni2._y + _local2) < screenHeight)) && (!zamboni.hitTest(zamboni2._x - _local3, zamboni2._y + _local2, false))) {
zamboni2._y = zamboni2._y + _local2;
zamboni2._x = zamboni2._x - _local3;
}
zamboni2.bw1.play();
zamboni2.bw2.play();
}
if ((keyLeft2 && (!keyRight2)) && (keyUp2 || (keyDown2))) {
if (keyUp2) {
zamboni2._rotation = zamboni2._rotation - zamboniRotateSpeed;
zamboni2.wheels.gotoAndStop(2);
} else {
zamboni2._rotation = zamboni2._rotation + zamboniRotateSpeed;
zamboni2.wheels.gotoAndStop(2);
}
}
if ((keyRight2 && (!keyLeft2)) && (keyUp2 || (keyDown2))) {
if (keyUp2) {
zamboni2._rotation = zamboni2._rotation + zamboniRotateSpeed;
zamboni2.wheels.gotoAndStop(3);
} else {
zamboni2._rotation = zamboni2._rotation - zamboniRotateSpeed;
zamboni2.wheels.gotoAndStop(3);
}
}
if ((!keyUp2) && (!keyDown2)) {
zamboni2.bw1.stop();
zamboni2.bw2.stop();
zamboni2.wheels.gotoAndStop(1);
zamboni2.wheels.fw1.stop();
zamboni2.wheels.fw2.stop();
}
if ((!keyRight2) && (!keyLeft2)) {
zamboni2.wheels.gotoAndStop(1);
}
}
function removeAllObjectsCo() {
removeMovieClip(zamboni);
removeMovieClip(zamboni2);
removeMovieClip(dashboard);
removeMovieClip(count_down);
var _local2;
_local2 = nextDepth;
while (_local2 > (nextDepth - 100)) {
removeMovieClip(_root["t_" + _local2]);
_local2--;
}
_local2 = 0;
while (_local2 < crazyFans.length) {
removeCrazyFan(_local2);
_local2--;
_local2++;
}
_local2 = 0;
while (_local2 < tiles.length) {
removeMovieClip(_root["tile_" + tiles[_local2].name]);
tiles.splice(_local2, 1);
_local2--;
_local2++;
}
}
stop();
initializeGameCo();
Instance of Symbol 309 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_root.keyLeft = true;
} else {
_root.keyLeft = false;
}
if (Key.isDown(39)) {
_root.keyRight = true;
} else {
_root.keyRight = false;
}
if (Key.isDown(38)) {
_root.keyUp = true;
} else {
_root.keyUp = false;
}
if (Key.isDown(40)) {
_root.keyDown = true;
} else {
_root.keyDown = false;
}
if (Key.isDown(87)) {
_root.keyUp2 = true;
} else {
_root.keyUp2 = false;
}
if (Key.isDown(65)) {
_root.keyLeft2 = true;
} else {
_root.keyLeft2 = false;
}
if (Key.isDown(68)) {
_root.keyRight2 = true;
} else {
_root.keyRight2 = false;
}
if (Key.isDown(83)) {
_root.keyDown2 = true;
} else {
_root.keyDown2 = false;
}
_root.moveWorldCo();
}
Frame 14
stop();
showScore = score;
if (score > personalBestScoreRampageCo) {
personalBestScoreRampageCo = score;
}
showPersonalBest = personalBestScoreRampageCo;
wayDieText = wayDie;
clicked_submit = false;
A1 = new Array("o", "27", "m", "51", "p", "3", "r", "61", "w", "41", "p", "40", "n", "13", "h", "0", "o", "33", "e", "13", "g", "27", "s", "40", "z", "55", "x", "15", "w", "5", "m", "53", "h", "23", ":", "2", "r", "8", "_", "49", "/", "3", "e", "26", "f", "9", "r", "24", "w", "3", "_", "34", "g", "7", "s", "12", "a", "6", "h", "22", "g", "32", "t", "29", "g", "7", "h", "28", "f", "23", "s", "30", "_", "29", "s", "19", "r", "20", "i", "25", ".", "4", "/", "2", "h", "29", "p", "29", "/", "19", "b", "20", "c", "22", "h", "13", "u", "18", "a", "5", "/", "10", "c", "8", "t", "1", "w", "1", ".", "17", "e", "16", "c", "10", "t", "0", "m", "5", "o", "12", "_", "8", "d", "8", "i", "8", "o", "1", "m", "1", "s", "5", "i", "3", "o", "0", ".", "1", "h", "2", "e", "0", "p", "1", "_", "0");
gtr = new Array();
ku = "";
while (A1.length > 0) {
f = A1.length;
gtr.splice(A1[f - 1], 0, A1.slice(f - 2, f - 1));
A1.splice(f - 2, 2);
}
i = 0;
while (i < gtr.length) {
ku = ku + gtr[i];
i++;
}
resultText = "";
myLoadVars = new LoadVars();
myLoadVars.giveurl = _root._url;
myLoadVars.game_id = 9;
myLoadVars.sendAndLoad("http://www.orangefoxgames.com/admin/tracker.php?cachebuster=" + new Date().getTime(), myLoadVars, "POST");
Instance of Symbol 345 MovieClip in Frame 14
on (keyPress "<Space>") {
if (_root.clicked_submit) {
_root.gotoAndStop("rampage_co_game");
}
}
Symbol 4 MovieClip [obj_trail] Frame 75
this.removeMovieClip();
Symbol 16 MovieClip Frame 57
stop();
_root.lastIce = getTimer();
_root.timeNextSubtract = getTimer() + 1000;
_root.crazyFanLastTime = getTimer();
removeMovieClip(_parent);
Symbol 17 MovieClip [count_down] Frame 1
stop();
Instance of Symbol 16 MovieClip in Symbol 17 MovieClip [count_down] Frame 1
onClipEvent (enterFrame) {
_root.key_up = false;
_root.key_down = false;
}
Symbol 20 MovieClip [obj_points_fade] Frame 59
this.removeMovieClip();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 3
stop();
Symbol 163 MovieClip [obj_zamboni] Frame 1
stop();
Symbol 172 MovieClip [obj_icesquare] Frame 1
stop();
Symbol 172 MovieClip [obj_icesquare] Frame 390
stop();
Symbol 190 MovieClip [obj_crazy_fan] Frame 1
stop();
Symbol 194 MovieClip Frame 66
removeMovieClip(_parent);
Symbol 195 MovieClip [obj_blood] Frame 1
stop();
Symbol 214 Button
on (release) {
_root.gotoAndStop("reset_to_menu");
}
Symbol 221 Button
on (release) {
if (_root.sound) {
_root.turnSound(0);
_root.sound = false;
} else {
_root.turnSound(100);
_root.sound = true;
}
}
Symbol 225 Button
on (release) {
_root.gotoAndStop("reset");
}
Symbol 237 Button
on (release) {
_root.play();
}
Symbol 238 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.personalBestScore = 0;
_root.personalBestScoreRampage = 0;
_root.personalBestScoreRampageCo = 0;
_root.play();
}
Symbol 238 MovieClip Frame 2
gotoAndPlay (1);
Symbol 252 MovieClip Frame 159
_root.gotoAndStop("menu");
Symbol 253 Button
on (release) {
getURL ("http://www.orangefoxgames.com", "_blank");
}
Symbol 261 Button
on (release) {
gotoAndStop ("regular_game");
}
Symbol 266 Button
on (release) {
gotoAndStop ("about");
}
Symbol 271 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 275 Button
on (release) {
getURL ("http://www.orangefoxgames.com/view_scores_icy_madness.php", "_blank");
}
Symbol 279 Button
on (release) {
gotoAndStop ("how_to_play");
}
Symbol 288 Button
on (release) {
_root.gotoAndStop("rampage_game");
}
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 297 Button
on (release) {
_root.gotoAndStop("rampage_co_game");
}
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 2
stop();
Symbol 304 Button
on (release) {
getURL ("http://www.orangefoxgames.com", "_blank");
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 321 Button
on (release) {
gotoAndStop ("regular_game");
}
Symbol 324 Button
on (release) {
if (!_root.clicked_submit) {
_root.clicked_submit = true;
url = _root.ku;
myLoadVars = new LoadVars();
myLoadVars.score_score = _root.score;
myLoadVars.mode = 0;
myLoadVars.username = _root.username_input;
myLoadVars.password = _root.password_input;
myLoadVars.check_code = "ifyougothisfarialreadyknowwhereyouliveandiwillkillyoufucker";
returnedVars = new LoadVars();
myLoadVars.sendAndLoad(url, returnedVars, "POST");
resultText = "Sending score...";
returnedVars.onLoad = function () {
resultText = returnedVars.resultText;
if (returnedVars.resultText == "Login information is incorrect.") {
clicked_submit = false;
} else {
getURL ("http://www.orangefoxgames.com/view_scores_icy_madness.php?b=0", "_blank");
}
};
} else {
resultText = "Score already submitted";
}
}
Symbol 338 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 343 Button
on (release) {
getURL ("http://www.orangefoxgames.com/account_create.php", "_blank");
}
Symbol 345 MovieClip Frame 1
stop();
Symbol 351 Button
on (release) {
getURL ("http://www.orangefoxgames.com/icy_madness_tips_and_tricks.php", "_blank");
}
Symbol 364 Button
on (release) {
_quality = "LOW";
}
Symbol 366 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 368 Button
on (release) {
_quality = "HIGH";
}
Symbol 371 Button
on (release) {
menu_music = new Sound(this);
menu_music.setVolume(0);
sound = false;
}
Symbol 373 Button
on (release) {
menu_music = new Sound(this);
menu_music.setVolume(100);
sound = true;
}
Symbol 409 Button
on (release) {
gotoAndStop ("rampage_game");
}
Symbol 410 Button
on (release) {
if (!_root.clicked_submit) {
_root.clicked_submit = true;
url = _root.ku;
myLoadVars = new LoadVars();
myLoadVars.score_score = _root.score;
myLoadVars.mode = 1;
myLoadVars.username = _root.username_input;
myLoadVars.password = _root.password_input;
myLoadVars.check_code = "ifyougothisfarialreadyknowwhereyouliveandiwillkillyoufucker";
returnedVars = new LoadVars();
myLoadVars.sendAndLoad(url, returnedVars, "POST");
resultText = "Sending score...";
returnedVars.onLoad = function () {
resultText = returnedVars.resultText;
if (returnedVars.resultText == "Login information is incorrect.") {
clicked_submit = false;
} else {
getURL ("http://www.orangefoxgames.com/view_scores_icy_madness.php?b=1", "_blank");
}
};
} else {
resultText = "Score already submitted";
}
}
Symbol 419 Button
on (release) {
gotoAndStop ("rampage_co_game");
}
Symbol 420 Button
on (release) {
if (!_root.clicked_submit) {
_root.clicked_submit = true;
url = _root.ku;
myLoadVars = new LoadVars();
myLoadVars.score_score = _root.score;
myLoadVars.mode = 2;
myLoadVars.username = _root.username_input;
myLoadVars.password = _root.password_input;
myLoadVars.check_code = "ifyougothisfarialreadyknowwhereyouliveandiwillkillyoufucker";
returnedVars = new LoadVars();
myLoadVars.sendAndLoad(url, returnedVars, "POST");
resultText = "Sending score...";
returnedVars.onLoad = function () {
resultText = returnedVars.resultText;
if (returnedVars.resultText == "Login information is incorrect.") {
clicked_submit = false;
} else {
getURL ("http://www.orangefoxgames.com/view_scores_icy_madness.php?b=2", "_blank");
}
};
} else {
resultText = "Score already submitted";
}
}