Frame 1
function finishedTheGame() {
didIWin = true;
girlGone = true;
}
function start(gameID) {
this.myGameID = gameID;
gotoAndStop ("menu");
}
function reset() {
wipeAction = "end";
wipe.play();
}
function quit() {
GameManager.getInstance().gameDone();
}
function loadCheck() {
if (_root.percent_txt == "100 %") {
return(true);
}
}
function enableMenu() {
menuDisabled = false;
gameoptions.saveBN.useHandCursor = true;
gameoptions.saveMC._alpha = 100;
gameoptions.saveBN.enabled = true;
if (gameoptions._currentframe == 4) {
gameoptions.gotoAndStop(1);
}
}
function disableMenu() {
menuDisabled = true;
gameoptions.gotoAndStop(4);
gameoptions.saveBN.useHandCursor = false;
gameoptions.saveBN.enabled = false;
gameoptions.saveMC._alpha = 0;
}
function gameInit(movieToLoad) {
if (popup._currentframe != 1) {
popup.play();
}
pause = false;
updateInventory();
transportCheck = true;
inventoryNum = 1;
gotoAndStop ("game");
inventoryDescription = new Array();
targetMC.loadMovie((loadPath + webLink) + defaultCurrentLocation);
targetMC.gubbe._x = 334.5;
targetMC.gubbe._y = 425.4;
targetMC.gubbe.gotoAndStop(1);
_quality = userQuality;
currentLocation = defaultCurrentLocation;
userTrace(("gameInit: " + webLink) + currentLocation);
didIWin = false;
}
function gameExit() {
userTrace("gameExit");
if (popup._currentframe != 1) {
popup.play();
}
if (gx_endgame._currentframe != 1) {
gx_endgame.play();
}
if (cutscene._currentframe != 1) {
exitCutscene();
}
saveData.removeMovieClip("");
popup.gotoAndStop(1);
inventoryNum = 1;
inventory = new Array();
states = new Array();
inventoryDescription = new Array();
eventInteraction = "Done";
sound_fadeDown(currentSound, 0, 25);
deleteInventory();
gameoptions.removeMovieClip("");
unloadMovie ("targetMC");
_quality = "HIGH";
targetObject = "";
actionTxt = "";
hideAction();
currentMouseOverObject = "";
_root.eventInteraction = "Done";
cutscene.gotoAndStop(1);
cutscene.removeMovieClip("");
popup.removeMovieClip("");
gx_endgame.gotoAndStop(1);
gameoptions.gotoAndStop(1);
gameoptions.removeMovieClip("");
options.gotoAndStop(1);
options.removeMovieClip("");
loadData.gotoAndStop(1);
loadData.removeMovieClip("");
saveData.gotoAndStop(1);
speech.gotoAndStop(1);
speech.removeMovieClip("");
saveData.removeMovieClip("");
wipe.removeMovieClip("");
}
function gamePause() {
if (pause == false) {
pause = true;
showMessage("The game is paused. Click mouse to continue.", "");
} else if (gx_endgame._currentframe != 1) {
gx_endgame.play();
pause = true;
showMessage("The game is paused. Click mouse to continue.", "");
} else {
pause = false;
popup.gotoAndPlay("out");
}
}
function displayFootCursor() {
if ((currentMouseOverObject == "") and (!targetMC.hinder.hitTest(_root._xmouse, _root._ymouse, true))) {
targetMC.footCursor._visible = true;
}
}
function hideFootCursor() {
targetMC.footCursor._x = -200;
targetMC.footCursor._y = -200;
targetMC.footCursor._visible = false;
}
function enableBlur(target) {
var _local1 = new flash.filters.BlurFilter(6, 6, 3);
target.filters = [_local1];
blurState = "on";
}
function disableBlur(target) {
var _local1 = new flash.filters.BlurFilter(0, 0, 1);
target.filters = [_local1];
blurState = "off";
}
function modifyBrightness(target, amount) {
var _local2 = [1, 0, 0, 0, amount, 0, 1, 0, 0, amount, 0, 0, 1, 0, amount, 0, 0, 0, 1, 0];
var _local1 = new flash.filters.ColorMatrixFilter(_local2);
target.filters = [_local1];
}
function resetBrightness(target) {
var _local2 = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
var _local1 = new flash.filters.ColorMatrixFilter(_local2);
target.filters = [_local1];
}
function displaySaveData() {
disableMenu();
if (popup._currentframe != 1) {
popup.play();
}
hideAction();
pause = true;
saveData.gotoAndStop(2);
targetMC.footCursor._visible = false;
s = 1;
loadSpacing = 57;
while (s <= 9) {
_root["saveGameInfo" + s] = SharedObject.getLocal(cookieName + s);
duplicateMovieClip (_root.saveData.gameDataBox, "gameDataBox" + s, s);
saveData["gameDataBox" + s]._x = 18;
saveData["gameDataBox" + s]._y = 18 + loadSpacing;
if (_root["saveGameInfo" + s].data.gameSaved == true) {
saveData["gameDataBox" + s].userName = _root["saveGameInfo" + s].data.userName;
userTrace("game is saved");
} else {
userTrace("game is NOT saved");
saveData["gameDataBox" + s].userName = "Empty";
}
saveData["gameDataBox" + s].userNum = s;
s++;
loadSpacing = loadSpacing + 57;
}
}
function hideSaveData() {
enableMenu();
s = 0;
while (s <= 9) {
saveData["gameDataBox" + s].removeMovieClip("");
s++;
}
pause = false;
saveData.gotoAndStop(1);
displayFootCursor();
}
function displayLoadData() {
disableMenu();
if (popup._currentframe != 1) {
popup.play();
}
hideAction();
pause = true;
targetMC.footCursor._visible = false;
bnNew._visible = false;
bnLoad._visible = false;
bnOptions._visible = false;
loadData.gotoAndStop(2);
s = 1;
loadSpacing = 57;
while (s <= 9) {
_root["saveGameInfo" + s] = SharedObject.getLocal(cookieName + s);
duplicateMovieClip (_root.loadData.gameDataBox, "gameDataBox" + s, s);
loadData["gameDataBox" + s]._x = 18;
loadData["gameDataBox" + s]._y = 18 + loadSpacing;
loadData["gameDataBox" + s].backplate._alpha = 100;
if (_root["saveGameInfo" + s].data.gameSaved == true) {
loadData["gameDataBox" + s].userName = _root["saveGameInfo" + s].data.userName;
userTrace(("game " + s) + " is saved");
} else {
userTrace(("game " + s) + " is NOT saved");
loadData["gameDataBox" + s].userName = "Empty";
loadData["gameDataBox" + s]._alpha = 60;
loadData["gameDataBox" + s].bn.enabled = false;
}
loadData["gameDataBox" + s].userNum = s;
s++;
loadSpacing = loadSpacing + 57;
}
}
function hideLoadData() {
enableMenu();
s = 0;
while (s <= 9) {
loadData["gameDataBox" + s].removeMovieClip("");
s++;
}
loadData.gotoAndStop(1);
bnNew._visible = true;
bnLoad._visible = true;
bnOptions._visible = true;
pause = false;
displayFootCursor();
}
function saveGame() {
if (popup._currentframe == 1) {
_root["saveGameInfo" + currentSaveBoxNum] = SharedObject.getLocal(cookieName + currentSaveBoxNum);
_root["saveGameInfo" + currentSaveBoxNum].data.gameSaved = true;
_root["saveGameInfo" + currentSaveBoxNum].data.userQuality = userQuality;
_root["saveGameInfo" + currentSaveBoxNum].data.userSound = userSound;
_root["saveGameInfo" + currentSaveBoxNum].data.userTutorial = userTutorial;
_root["saveGameInfo" + currentSaveBoxNum].data.userColorAid = userColorAid;
_root["saveGameInfo" + currentSaveBoxNum].data.userHearingAid = userHearingAid;
_root["saveGameInfo" + currentSaveBoxNum].data.userName = saveData["gameDataBox" + currentSaveBoxNum].userName;
userTrace(saveData["gameDataBox" + currentSaveBoxNum].userName);
_root["saveGameInfo" + currentSaveBoxNum].data.currentTape = currentTape;
_root["saveGameInfo" + currentSaveBoxNum].data.currentLocation = currentLocation;
_root["saveGameInfo" + currentSaveBoxNum].data.playerXpos = targetMC.gubbe._x;
_root["saveGameInfo" + currentSaveBoxNum].data.playerYpos = targetMC.gubbe._y;
_root["saveGameInfo" + currentSaveBoxNum].data.playerDirection = targetMC.gubbe._currentframe;
_root["saveGameInfo" + currentSaveBoxNum].data.savedInventory = new Array();
_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum = 1;
while (_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum < (inventory.length + 1)) {
_root["saveGameInfo" + currentSaveBoxNum].data.savedInventory.push(inventory[_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum - 1]);
_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum++;
}
_root["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription = new Array();
_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum = 1;
while (_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum < (inventoryDescription.length + 1)) {
_root["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription.push(inventoryDescription[_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum - 1]);
_root["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum++;
}
_root["saveGameInfo" + currentSaveBoxNum].data.savedStates = new Array();
_root["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum = 1;
while (_root["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum < (states.length + 1)) {
_root["saveGameInfo" + currentSaveBoxNum].data.savedStates.push(states[_root["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum - 1]);
_root["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum++;
}
_root["saveGameInfo" + currentSaveBoxNum].flush();
if (currentSaveBoxNum != 0) {
showMessage("The game was saved. Click the left mouse button to continue.", "");
currentSaveBoxNum = "";
}
}
}
function loadGame() {
hideLoadData();
if (_root["saveGameInfo" + currentSaveBoxNum].data.gameSaved == true) {
gotoAndStop ("game");
targetMC.loadMovie((loadPath + webLink) + _root["saveGameInfo" + currentSaveBoxNum].data.currentLocation);
currentLocation = _root["saveGameInfo" + currentSaveBoxNum].data.currentLocation;
transportCheck = true;
userQuality = _root["saveGameInfo" + currentSaveBoxNum].data.userQuality;
userSound = _root["saveGameInfo" + currentSaveBoxNum].data.userSound;
userTutorial = _root["saveGameInfo" + currentSaveBoxNum].data.userTutorial;
userColorAid = _root["saveGameInfo" + currentSaveBoxNum].data.userColorAid;
userHearingAid = _root["saveGameInfo" + currentSaveBoxNum].data.userHearingAid;
targetMC.gubbe._x = _root["saveGameInfo" + currentSaveBoxNum].data.playerXpos;
targetMC.gubbe._y = _root["saveGameInfo" + currentSaveBoxNum].data.playerYpos;
facingDirectionVar = _root["saveGameInfo" + currentSaveBoxNum].data.playerDirection;
currentTape = _root["saveGameInfo" + currentSaveBoxNum].data.currentTape;
states = new Array();
statesNum = 1;
while (statesNum < (_root["saveGameInfo" + currentSaveBoxNum].data.savedStates.length + 1)) {
states.push(_root["saveGameInfo" + currentSaveBoxNum].data.savedStates[statesNum - 1]);
statesNum++;
}
inventory = new Array();
inventoryNum = 1;
_quality = userQuality;
while (inventoryNum < (_root["saveGameInfo" + currentSaveBoxNum].data.savedInventory.length + 1)) {
inventory.push(_root["saveGameInfo" + currentSaveBoxNum].data.savedInventory[inventoryNum - 1]);
inventoryNum++;
}
updateInventory();
inventoryDescription = new Array();
inventoryDescriptionNum = 1;
while (inventoryDescriptionNum < (_root["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription.length + 1)) {
inventoryDescription.push(_root["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription[inventoryDescriptionNum - 1]);
inventoryDescriptionNum++;
}
} else {
showMessage("No game has been saved. Press S in-game to save your progress.", "");
}
}
function streamingEvent(item, frameNum) {
userTrace((("streamingEvent: " + item) + " ") + frameNum);
userTrace(eventInteraction);
if ((popup._currentframe == 1) and (eventInteraction != "Begun")) {
currentEventItem = item;
item.gotoAndStop(frameNum);
eventInteraction = "Begun";
initiateStreamingEvent();
}
}
function initiateStreamingEvent() {
if (popup._currentframe == 1) {
if (checkState(currentEventItem + "InteractionComplete")) {
eventInteraction = "Done";
} else {
currentEventItem.nextFrame();
}
}
}
function launchCutscene(movie) {
playState = "cutscene";
cutscene.gotoAndPlay("in");
movieToPlay = movie;
}
function exitCutscene() {
if (cutscene._currentframe != 1) {
cutscene.gotoAndPlay("out");
}
playState = "";
}
function addState(item) {
if (addedItem != item) {
addedItem = item;
checkedState = "";
s = 0;
while (s < states.length) {
checkedState = states[s];
if (checkedState == item) {
userTrace("state already exists: " + item);
break;
}
s++;
}
if ((s == states.length) and (checkedState != item)) {
states.push(item);
userTrace("state added: " + item);
}
}
}
function checkState(item) {
checkedState = "";
s = 0;
while (s < states.length) {
checkedState = states[s];
if (checkedState == item) {
userTrace("state found: " + item);
return(true);
}
s++;
}
if ((s == states.length) and (checkedState != item)) {
userTrace("state NOT found: " + item);
}
}
function removeState(item) {
if (removedItem != item) {
removedItem = item;
checkedState = "";
s = 0;
while (s < states.length) {
checkedState = states[s];
if (checkedState == item) {
states.splice(s, 1);
userTrace("state removed: " + item);
break;
}
s++;
}
if ((s == states.length) and (checkedState != item)) {
userTrace("state NOT removed: " + item);
}
}
}
function checkDoor(doorDirection) {
if (doorDirection == "previous") {
if (checkState(((("door_" + targetMC.rPrevious) + "_to_") + targetMC.rCurrent) + "_open")) {
return(true);
}
} else if (doorDirection == "next") {
if (checkState(((("door_" + targetMC.rCurrent) + "_to_") + targetMC.rNext) + "_closed")) {
return(true);
}
} else {
return(false);
}
}
function hitCheck(item) {
if (item.hitTest(targetMC.gubbe._x + offsetx, targetMC.gubbe._y + offsety, true)) {
return(true);
}
}
function walkTo(targetObject) {
if (pause == false) {
targetMC.gubbe.activation = false;
walkState = "walking";
targetMC.gubbe.clickSpot_x = targetObject._x;
targetMC.gubbe.clickSpot_y = targetObject._y;
facingDirectionVar = "";
}
}
function forcedWalkTo(targetObject) {
walkState = "walking";
forcedWalk = true;
targetMC.gubbe.activation = false;
targetMC.gubbe._x = orgSpotX;
targetMC.gubbe._y = orgSpotY;
targetMC.gubbe.clickSpot_x = targetObject._x;
targetMC.gubbe.clickSpot_y = targetObject._y;
facingDirectionVar = "";
}
function forceMove(target) {
forceMoveOrgPos = targetMC.gubbe._currentframe;
targetMC.gubbe.activation = false;
targetMC.gubbe.clickSpot_x = target._x;
targetMC.gubbe.clickSpot_y = target._y;
orgPosX = targetMC.gubbe._x;
orgPosX = targetMC.gubbe._x;
targetMC.gubbe._x = target._x;
targetMC.gubbe._y = target._y;
targetMC.gubbe.bot.gotoAndStop(1);
targetMC.gubbe.walkState = "stopped";
_root.xSpeed = 0;
_root.ySpeed = 0;
targetMC.gubbe._currentframe = forceMoveOrgPos;
}
function forceMoveBack(target) {
if ((target == "") or (target == undefined)) {
targetMC.gubbe.activation = false;
targetMC.gubbe._x = orgPosX;
targetMC.gubbe._y = orgPosY;
orgPosX = "";
orgPosY = "";
} else {
targetMC.gubbe._x = target._x;
targetMC.gubbe._y = target._y;
}
}
function hideForInteraction() {
hiddenActionTxt = "";
actionTxt = "";
hideAction();
displayFootCursor();
}
function currentMouseOver(targetObject) {
if (pause == false) {
currentMouseOverObject = targetObject;
}
}
function displayAction(item) {
objectName = item.name;
displayFootCursor();
actionTxt = (item.objectVerb + " ") + item.name;
actionBar.gotoAndStop(2);
}
function hideActionBar() {
actionBar._visible = false;
}
function showActionBar() {
actionBar._visible = true;
}
function getObjectBounds(item) {
item._xMin = item._x;
item._xMax = item._x + 38.5;
item._yMin = item._y;
item._yMax = item._y + 38.5;
x2._x = item._xMax;
x2._y = item._yMin;
y2._y = item._yMax;
y2._x = item._xMin;
}
function checkObjectBounds(item) {
x1._x = _root._xmouse;
x1._y = _root._ymouse;
y1._y = _root._ymouse;
y1._x = _root._xmouse;
if (x2.hitTest(y1) and y2.hitTest(x1)) {
return(true);
}
}
function targetCheck(item) {
if (pause == false) {
if (item.hitTest(_root._xmouse + offsetx, _root._ymouse + offsety, true)) {
if (currentObject.name != item.name) {
targetObject = item.name;
targetItem = item;
item.backplate._alpha = 100;
}
} else {
if (targetObject == item.name) {
targetObject = "";
targetItem = "";
}
item.backplate._alpha = 70;
}
}
}
function hideAction() {
actionBar.gotoAndStop(1);
targetObject = "";
objectName = "";
currentMouseOverObject = "";
updateAfterEvent();
}
function worldItemActivationCheck() {
if (targetMC.gubbe.bot._currentframe < 3) {
if ((hiddenActionTxt != "") and (hiddenActionTxt != undefined)) {
if ((hiddenTargetItem != "") and (hiddenTargetItem != undefined)) {
userTrace("worldItemActivationCheck: inventory object used - o=" + o);
if ((hiddenTargetItem.standingDirection != "") and (hiddenTargetItem.standingDirection != undefined)) {
facingDirectionVar = hiddenTargetItem.standingDirection;
targetMC.gubbe.gotoAndStop(hiddenTargetItem.standingDirection);
}
if ((hiddenTargetItem[("launchAction_" + o) + "_animation"] != "") and (hiddenTargetItem[("launchAction_" + o) + "_animation"] != undefined)) {
userTrace(("displayAnimation: launchAction_" + o) + "_animation");
targetMC.gubbe.bot.gotoAndStop(hiddenTargetItem[("launchAction_" + o) + "_animation"]);
} else {
hiddenTargetItem["launchAction_" + o]();
targetObject = "";
hiddenTargetItem = "";
item = "";
actionTxt = "";
}
} else {
userTrace((("worldItemActivationCheck: world object used - o=" + o) + " objects=") + objects);
o = 0;
while (o <= objects) {
if (targetMC["a" + o].actionArea.hitTest(targetMC.gubbe._x + offsetx, targetMC.gubbe._y + offsety, true)) {
if ((targetMC["a" + o].standingDirection != "") and (targetMC["a" + o].standingDirection != undefined)) {
facingDirectionVar = targetMC["a" + o].standingDirection;
targetMC.gubbe.gotoAndStop(targetMC["a" + o].standingDirection);
}
if ((targetMC["a" + o].operate_animation != "") and (targetMC["a" + o].operate_animation != undefined)) {
currentObject = targetMC["a" + o];
userTrace("displayAnimation: " + targetMC["a" + o].operate_animation);
targetMC.gubbe.bot.gotoAndStop(targetMC["a" + o].operate_animation);
return;
}
targetMC["a" + o].operate();
return;
}
o++;
}
}
}
}
}
function launchOperation() {
if ((hiddenTargetItem != "") and (hiddenTargetItem != undefined)) {
userTrace((("launchOperation: launchAction " + o) + " on ") + hiddenTargetItem);
hiddenTargetItem["launchAction_" + o]();
targetObject = "";
hiddenTargetItem = "";
item = "";
actionTxt = "";
targetMC.gubbe.bot.gotoAndStop(1);
o = 0;
} else {
currentObject.operate();
userTrace("launchOperation: operate" + hiddenTargetItem);
targetMC.gubbe.bot.gotoAndStop(1);
}
}
function worldItemComboCheck() {
o = 1;
userTrace("worldItemComboCheck o=" + o);
if ((targetItem.goalLength == "") or (targetItem.goalLength == undefined)) {
targetItem.goalLength = 1;
}
while (o <= targetItem.goalLength) {
if (actionTxt == targetItem["goal_" + o]) {
hiddenActionTxt = targetItem["goal_" + o];
userTrace("targetCombination detected o=" + o);
return(true);
}
o++;
}
return(false);
}
function checkVisible(item) {
if (checkState(item.name + "PickedUp")) {
item._x = -100;
item._y = -100;
}
}
function inventoryAction_examine(item) {
if (pause == false) {
targetMC.footCursor._visible = false;
actionTxt = "Examine " + item.name;
actionBar.gotoAndStop(2);
}
}
function inventoryAction_move(item) {
if (pause == false) {
backplate._x = item._x;
backplate._y = item._y;
item.swapDepths(100);
currentObject = item;
targetMC.footCursor._visible = false;
onMouseMove = function () {
if (functionBreaker == false) {
if (checkObjectBounds(item)) {
actionTxt = "Examine " + item.name;
reverseActionTxt = "";
} else if ((targetObject != "") and (item.name != targetObject)) {
actionTxt = (("Use " + item.name) + " with ") + targetObject;
reverseActionTxt = (("Use " + targetObject) + " with ") + item.name;
} else {
actionTxt = ("Use " + item.name) + " with...";
reverseActionTxt = "";
}
updateAfterEvent();
}
};
onMouseUp = function () {
item = "";
functionBreaker = true;
};
actionBar.gotoAndStop(2);
}
}
function inventoryItemActivationCheck(item) {
userTrace("inventoryItemActivationCheck: " + actionTxt);
if (actionTxt == ("Examine " + item.name)) {
userTrace("Trying to examine " + item.name);
examinedObject = "";
o = 0;
while (o < inventory.length) {
examinedObject = inventory[o];
if (examinedObject == item.name) {
showMessage(inventoryDescription[o], "");
break;
}
o++;
}
} else if (actionTxt == (("Use " + item.name) + " with...")) {
} else if (worldItemComboCheck()) {
if (targetItem.hitTest(targetMC.gubbe._x + offsetx, targetMC.gubbe._y + offsety, true)) {
hiddenTargetItem = targetItem;
userTrace("frase match - close enough o=" + o);
worldItemActivationCheck();
} else if (targetItem.stationary == true) {
hiddenTargetItem = targetItem;
userTrace("frase match - stationary o=" + o);
worldItemActivationCheck();
} else {
hiddenTargetItem = targetItem;
walkTo(targetItem);
userTrace("frase match - NOT close enough o=" + o);
return(false);
}
} else if (inventoryItemComboCheck()) {
combinationHolder["launchAction_" + o]();
} else if (actionTxt != (("Use " + item.name) + " with...")) {
showMessage("That doesn't seem to work.", "");
targetObject = "";
targetItem = "";
item = "";
}
actionTxt = "";
}
function inventoryItemComboCheck() {
o = 1;
userTrace("inventoryItemComboCheck o=" + o);
while (o <= combinationHolder.goalLength) {
if ((actionTxt == combinationHolder["goal_" + o]) or (reverseActionTxt == combinationHolder["goal_" + o])) {
actionTxt = "";
reverseActionTxt = "";
userTrace("combination detected o=" + o);
return(true);
}
o++;
}
}
function hideInventory() {
addState("inventoryIsHidden");
s = 0;
while (s < inventory.length) {
_root["inventoryClip" + s]._alpha = 0;
s++;
}
}
function showInventory() {
removeState("inventoryIsHidden");
s = 0;
while (s < inventory.length) {
_root["inventoryClip" + s]._alpha = 100;
s++;
}
}
function pickUp(item, name, prompt, description, slideEnabled) {
txt = prompt;
if (popup._currentframe == 1) {
userTrace("pickUp: " + name);
if (inventoryNum <= 19) {
inventory.push(name);
inventoryDescription.push(description);
addState(name + "PickedUp");
if (slideEnabled == true) {
beginSlideX = targetMC.gubbe._x;
beginSlideY = targetMC.gubbe._y - 30;
endSlideX = (_root["inventoryClip" + inventoryNum]._x = 6 + spacing);
endSlideY = 6;
inventoryClip.duplicateMovieClip("inventoryClip" + inventoryNum, inventoryNum + 500);
_root["inventoryClip" + inventoryNum].gotoAndStop(name);
_root["inventoryClip" + inventoryNum].text = inventoryNum;
_root["inventoryClip" + inventoryNum]._x = -150;
_root["inventoryClip" + inventoryNum]._y = -150;
_root["inventoryClip" + inventoryNum]._x = beginSlideX - (_root["inventoryClip" + inventoryNum]._width / 2);
_root["inventoryClip" + inventoryNum]._y = beginSlideY - (_root["inventoryClip" + inventoryNum]._height / 2);
item._x = -200;
item._y = -200;
beginSlide(_root["inventoryClip" + inventoryNum]);
item.objectState = "taken";
} else {
item._x = -200;
item._y = -200;
updateInventory();
}
if ((prompt == "") or (prompt == undefined)) {
userTrace("no promt issued");
} else {
userTrace(promt);
showMessage(txt, "");
}
hideForInteraction();
} else {
showMessage("Your inventory is full. Make more room by using one of your items.", "");
hiddenActionTxt = "";
}
}
}
function removeFromInventory(item, slideEnabled, taker, oldItem) {
userTrace("removeFromInventory: " + item);
s = 0;
z = 0;
while (s < inventory.length) {
checkedInventory = inventory[s];
if (checkedInventory == item) {
if (slideEnabled == true) {
oldMC = oldItem;
z = s + 1;
beginSlideX = _root["inventoryClip" + z]._x + (_root["inventoryClip" + z]._width / 2);
beginSlideY = _root["inventoryClip" + z]._y + (_root["inventoryClip" + z]._height / 2);
endSlideX = taker._x;
endSlideY = taker._y;
beginSlide(_root["inventoryClip" + z]);
inventory.splice(s, 1);
inventoryDescription.splice(s, 1);
} else {
inventory.splice(s, 1);
inventoryDescription.splice(s, 1);
updateInventory();
}
} else {
userTrace("s checkpoint D: " + s);
s++;
}
}
}
function beginSlide(item) {
slider.MCobject = item;
slider.play();
}
function deleteInventory() {
while (inventoryNum > 0) {
_root["inventoryClip" + inventoryNum].removeMovieClip("");
inventoryNum--;
}
inventory = new Array();
}
function updateInventory() {
userTrace("updateInventory");
backplate._x = -100;
backplate._y = -100;
while (inventoryNum > 0) {
_root["inventoryClip" + inventoryNum].removeMovieClip("");
inventoryNum--;
}
inventoryNum = 1;
spacing = 0;
while (inventoryNum < (inventory.length + 1)) {
duplicateMovieClip (_root.inventoryClip, "inventoryClip" + inventoryNum, inventoryNum);
_root["inventoryClip" + inventoryNum].gotoAndStop(inventory[inventoryNum - 1]);
_root["inventoryClip" + inventoryNum].name = inventory[inventoryNum - 1];
_root["inventoryClip" + inventoryNum].text = inventoryNum;
_root["inventoryClip" + inventoryNum]._x = 6 + spacing;
_root["inventoryClip" + inventoryNum]._y = 6;
inventoryNum++;
spacing = spacing + 43;
}
displayFootCursor();
}
function hideInventory() {
while (inventoryNum > 0) {
_root["inventoryClip" + inventoryNum]._visible = false;
inventoryNum--;
}
}
function showInventory() {
while (inventoryNum < (inventory.length + 1)) {
_root["inventoryClip" + inventoryNum]._visible = true;
inventoryNum++;
}
}
function initiateTransport(facingDirection, arrowColor, newLocation) {
if ((pause == false) and (wipe._currentframe == 1)) {
userTrace("transport");
wipeAction = "transport";
facingDirectionVar = facingDirection;
arrowColorVar = arrowColor;
userTrace(arrowColorVar);
newLocationVar = newLocation;
wipe.gotoAndPlay("in");
}
}
function transport(facingDirection, arrowColor, newLocation) {
facingDirectionVar = facingDirection;
arrowColorVar = arrowColor;
targetMC.gubbe._y = -200;
targetMC.gubbe._x = -200;
currentLocation = newLocation;
objects = 1;
targetMC.loadMovie((loadPath + webLink) + newLocation);
}
function initializeNewLocation(movie) {
actionBar.gotoAndStop(1);
userTrace("initializeNewLocation");
eventInteraction = "Done";
if (wipeAction == "transport") {
if (facingDirectionVar == 2) {
targetMC.gubbe.gotoAndStop(4);
} else if (facingDirectionVar == 8) {
targetMC.gubbe.gotoAndStop(6);
} else {
targetMC.gubbe.gotoAndStop(facingDirectionVar);
}
xSpeed = 0;
ySpeed = 0;
targetMC.gubbe._y = arrowColorVar._y;
targetMC.gubbe._x = arrowColorVar._x;
userTrace(arrowColorVar);
} else if (wipeAction == "load") {
targetMC.gubbe._x = _root["saveGameInfo" + currentSaveBoxNum].data.playerXpos;
targetMC.gubbe._y = _root["saveGameInfo" + currentSaveBoxNum].data.playerYpos;
targetMC.gubbe.gotoAndStop(facingDirectionVar);
} else if (movie != "") {
launchCutscene(movie);
}
displayFootCursor();
initiateLevelSound();
}
function depthSwap(item) {
if ((item._y > targetMC.gubbe._y) and (item.getDepth() < targetMC.gubbe.getDepth())) {
item.swapDepths(item.highDepth);
} else if ((item._y < targetMC.gubbe._y) and (item.getDepth() > targetMC.gubbe.getDepth())) {
item.swapDepths(item.lowDepth);
}
}
function depthOrder(item) {
if ((item._y > targetMC.gubbe._y) and (item.getDepth() < targetMC.gubbe.getDepth())) {
item.swapDepths(item.depth * -1);
userTrace("swapped: " + item);
} else if ((item._y < targetMC.gubbe._y) and (item.getDepth() > targetMC.gubbe.getDepth())) {
item.swapDepths(item.depth);
userTrace("swapped: " + item);
}
}
function depthMove(item) {
if ((item._y > targetMC.gubbe._y) and (item.getDepth() < targetMC.gubbe.getDepth())) {
item.swapDepths(item.depth * -1);
userTrace("swapped: " + item);
} else if ((item._y < targetMC.gubbe._y) and (item.getDepth() > targetMC.gubbe.getDepth())) {
item.swapDepths(item.depth);
userTrace("swapped: " + item);
}
}
function showMessage(descriptionText) {
userTrace("Message: " + descriptionText);
if (popup._currentframe == 1) {
if ((speaker == "") or (speaker == undefined)) {
header = "";
} else {
header = speaker;
}
popup.gotoAndPlay("in");
txt = descriptionText;
}
}
function showSpeech(speechText, speaker, color) {
userTrace("Speech: " + speechText);
if (speech._currentframe == 1) {
if ((color != "") or (color != undefined)) {
colorVar = color;
} else {
color = 16777215 /* 0xFFFFFF */;
colorVar = color;
}
if ((speaker != "") or (speaker != undefined)) {
speech._x = speaker._x;
speech._y = speaker._y;
} else {
speech._x = Stage.width / 2;
speech._y = Stage.height / 2;
}
speech.gotoAndPlay("in");
speechTxt = speechText;
}
}
function userTrace(traceMessage) {
if (previousTraceMessage != traceMessage) {
trace(traceMessage);
previousTraceMessage = traceMessage;
}
}
function sound_init(soundName) {
currentSound = soundName;
soundName.start(0, 999);
soundName.setVolume(0);
if (currentVolume != "") {
sound_fadeUp(soundName, currentVolume, 10);
} else {
sound_fadeUp(soundName, 25, 10);
}
soundState = "playing";
}
function sound_exit(soundName) {
soundState = "stopped";
currentSound = soundName;
sound_fadeDown(soundName, 0, 10);
}
function sound_fadeUp(soundName, targetVolume, steps) {
sound_exit(currentSound);
currentSound = soundName;
currentVolume = targetVolume;
if (userSound == "on") {
userTrace("sound_fadeUp: " + soundName);
targetVolumeNum = targetVolume;
stepNum = steps;
soundName.setVolume(0);
soundName.start(0, 999);
soundState = "playing";
soundFader.gotoAndPlay("fade");
}
}
function sound_fadeDown(soundName, targetVolume, steps) {
currentSound = soundName;
if (soundState == "playing") {
userTrace("sound_fadeDown: " + soundName);
targetVolumeNum = targetVolume;
stepNum = steps;
soundFader.gotoAndPlay("fade");
soundState = "stopped";
}
}
function toggleSound() {
if (soundState == "playing") {
sound_exit(currentSound);
gameoptions.bn_music.gotoAndStop(2);
soundState = "stopped";
userSound = "off";
} else {
userSound = "on";
sound_init(currentSound);
gameoptions.bn_music.gotoAndStop(1);
}
}
function playSound(sound) {
if (userSound == "on") {
snd_sounds.gotoAndPlay(sound);
}
}
function initiateLevelSound() {
if (currentLocation == "r1.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "r2.swf") {
currentSound = sound1;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "r3.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "hub.swf") {
if (_root.checkState("launchLastCutscene")) {
currentSound = sound6;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else {
currentSound = sound1;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
}
} else if (currentLocation == "eye.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if ((currentLocation == "toilet.swf") or (currentLocation == "mirror.swf")) {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(currentSound, 15, 15);
}
} else if (currentLocation == "fire.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "phone_a.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 35, 35);
}
} else if (currentLocation == "red_bridge.swf") {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "table_a.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "shock.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 50, 50);
}
} else if (currentLocation == "window.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 15, 15);
}
} else if (currentLocation == "fb_toilet.swf") {
currentSound = sound5;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "fb_hall.swf") {
currentSound = sound5;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "kitchen.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "telescope.swf") {
currentSound = sound5;
if (soundState != "playing") {
sound_fadeUp(currentSound, 50, 50);
}
} else if ((currentLocation == "phone_b.swf") or (currentLocation == "table_b.swf")) {
currentSound = sound5;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
}
}
fscommand ("allowscale", false);
fscommand ("showmenu", false);
userSound = "on";
userTutorial = "on";
userQuality = "HIGH";
userHearingAid = "off";
userColorAid = "off";
mainMenu = "on";
mouseOverColor = 16777215 /* 0xFFFFFF */;
mouseOutColor = 0;
mainMenuFrame = 3;
n = 1;
i = 0;
t = 0;
s = 0;
o = 0;
forcedWalk = false;
header = "";
playState = "";
currentSound = sound2;
inventoryNum = 1;
spacing = 0;
pause = false;
eventInteraction = "Done";
lowSwaped = true;
highSwaped = true;
hiddenTargetItem = "";
targetObject = "";
actionTxt = "";
cookieName = "gateway_2Cookie";
inventory = new Array();
states = new Array();
motherColor = 15467010 /* 0xEC0202 */;
daugtherColor = 16625922 /* 0xFDB102 */;
mikeColor = 8421819 /* 0x8081BB */;
hearingAidColor = 16777215 /* 0xFFFFFF */;
firstWord = "video tape 1";
secondWord = "video tape 2";
thirdWord = "video tape 3";
fourthWord = "video tape 4";
didIWin = false;
testMode = true;
currUrl = _url.toLowerCase();
if (currUrl.indexOf("cockroach.se") <= 0) {
if (testMode == false) {
getURL ("http://cockroach.se", "_self");
}
}
webLink = "";
if (_level0.viewingThrough == "cockroach") {
loadPath = "./gateway_2/";
offsetx = _level0.offsetx;
offsety = _level0.offsety;
} else {
loadPath = "";
offsetx = 0;
offsety = 0;
}
objects = 1;
sound1 = new Sound(this);
sound1.attachSound("s1");
sound2 = new Sound(this);
sound2.attachSound("s2");
sound3 = new Sound(this);
sound3.attachSound("bg_phone");
sound4 = new Sound(this);
sound4.attachSound("s4");
sound5 = new Sound(this);
sound5.attachSound("telephone2");
sound6 = new Sound(this);
sound6.attachSound("endSong");
ring_sound = new Sound(this);
ring_sound.attachSound("ring");
stop();
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(99999999);
}
Instance of Symbol 32 MovieClip "wipe" in Frame 1
onClipEvent (load) {
this.swapDepths(3000);
}
Instance of Symbol 34 MovieClip in Frame 1
onClipEvent (load) {
percent = 0;
_parent.bar._xscale = 0;
_parent.percent_txt = "0 %";
}
onClipEvent (enterFrame) {
percent = Math.floor((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100);
_parent.percent_txt = percent + " %";
_parent.bar._xscale = percent;
if (percent == 100) {
_parent.nextFrame();
} else {
_parent.stop();
}
}
Frame 2
stop();
Frame 3
stop();
if (popup._currentframe != 1) {
popup.play();
}
if (mainMenu == "off") {
if (wipeAction == "load") {
wipe.gotoAndPlay(20);
} else {
wipeAction = "start";
wipe.gotoAndPlay(20);
}
} else {
wipe.gotoAndPlay("out");
stop();
}
if (wipeAction == "inGameLoad") {
wipe.gotoAndPlay(20);
}
Instance of Symbol 108 MovieClip "options" in Frame 3
onClipEvent (load) {
this.swapDepths(555);
}
Instance of Symbol 123 MovieClip "loadData" in Frame 3
onClipEvent (load) {
this.swapDepths(2510);
}
Instance of Symbol 140 MovieClip "popup" in Frame 3
onClipEvent (load) {
this.swapDepths(3005);
}
Instance of Symbol 146 MovieClip "actionBar" in Frame 3
/* no clip actions */
Instance of Symbol 176 MovieClip "gx_firstgame" in Frame 3
onClipEvent (load) {
this.swapDepths(2000);
}
Frame 4
targetMC._visible = true;
cutscene.swapDepths(2000);
popup.swapDepths(2005);
userTrace("frame 3 reached");
stop();
Instance of Symbol 252 MovieClip "speech" in Frame 4
onClipEvent (load) {
orgX = _x;
orgY = _y;
this.swapDepths(3010);
}
Instance of Symbol 261 MovieClip "gx_endgame" in Frame 4
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 279 MovieClip "saveData" in Frame 4
onClipEvent (load) {
this.swapDepths(2199);
}
Instance of Symbol 283 MovieClip "cutscene" in Frame 4
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 285 MovieClip "combinationHolder" in Frame 4
onClipEvent (load) {
function launchAction_1() {
_root.pickUp(_parent.giver, "working remote", "", "The remote seems to be working now.", false);
_root.removeFromInventory("remote");
_root.removeFromInventory("batteries");
_root.showMessage("You put the batteries in the remote.", "");
_root.hideForInteraction();
}
goalLength = 1;
goal_1 = "Use batteries with remote";
}
Instance of Symbol 315 MovieClip "gameoptions" in Frame 4
onClipEvent (load) {
this.swapDepths(500);
}
Instance of Symbol 317 MovieClip "x2" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 317 MovieClip "x1" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 317 MovieClip "y2" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 317 MovieClip "y1" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 119 MovieClip in Frame 4
onClipEvent (mouseDown) {
_root.checkedItem = "";
_root.removedItem = "";
_root.addedItem = "";
}
Instance of Symbol 425 MovieClip "inventoryClip" in Frame 4
onClipEvent (load) {
if (_name == "inventoryClip") {
_x = -1000;
_y = -1000;
}
}
onClipEvent (mouseMove) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
_root.targetCheck(this);
}
}
onClipEvent (enterFrame) {
this.numTXT = this.name;
}
Frame 5
gameExit();
gameoptions.swapDepths(1);
cutscene.swapDepths(1);
popup.swapDepths(1);
gameoptions.swapDepths(1);
options.swapDepths(1);
loadData.swapDepths(1);
saveData.swapDepths(1);
wipe.swapDepths(1);
speech.swapDepths(1);
topFrame.swapDepths(1);
gotoAndStop ("menu");
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 3
gotoAndStop (1);
Symbol 32 MovieClip Frame 1
if (_parent.popup._currentframe == 1) {
_root.pause = false;
}
stop();
Symbol 32 MovieClip Frame 2
_root.pause = true;
if (_parent.speech._currentframe != 1) {
_parent.speech.gotoAndPlay("out");
}
if (_root.userSound == "on") {
if (_root.soundState == "playing") {
if (_root.didIWin == true) {
_root.sound_fadeDown(_root.currentSound, 0, 100);
} else {
_root.sound_fadeDown(_root.currentSound, 0, 25);
}
}
}
play();
Symbol 32 MovieClip Frame 20
_root.pause = true;
if (_parent.gameoptions._currentframe != 1) {
_parent.gameoptions.gotoAndStop(1);
}
play();
Symbol 32 MovieClip Frame 21
stop();
if (_parent.speech._currentframe != 1) {
_parent.speech.gotoAndPlay("out");
}
if (_parent.wipeAction == "transport") {
_parent.transport(_parent.facingDirectionVar, _parent.arrowColorVar, _parent.newLocationVar);
_parent.wipeAction == "";
nextFrame();
}
if (_parent.wipeAction == "start") {
_root.deleteInventory();
_parent.gameInit();
_parent.wipeAction == "";
nextFrame();
}
if (_parent.wipeAction == "inGameLoad") {
_root.deleteInventory();
_parent.hideLoadData();
_parent.gameExit();
_parent.wipeAction = "load";
gotoAndStop (1);
}
if (_parent.wipeAction == "end") {
_root.deleteInventory();
_parent.gotoAndStop("empty");
_parent.wipeAction == "";
gotoAndPlay ("out");
}
if (_parent.wipeAction == "load") {
_root.deleteInventory();
_parent.hideLoadData();
_parent.loadGame();
nextFrame();
}
Symbol 32 MovieClip Frame 22
_root.percent_txt = "0 %";
Symbol 32 MovieClip Frame 23
_parent.hideLoadData();
_parent.hideSaveData();
play();
Symbol 32 MovieClip Frame 38
if (_parent.wipeAction == "load") {
_parent.wipeAction == "";
if (_root.currentSaveBoxNum != 0) {
_parent.showMessage("The game was loaded. Click the left mouse button to continue.", "");
} else {
_root.currentSaveBoxNum = "";
}
}
Symbol 46 MovieClip Frame 95
_root.nextFrame();
Symbol 51 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 56 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 61 Button
on (release) {
getURL ("http://www.freeworldgroup.com", "_blank");
}
Symbol 63 Button
on (release) {
getURL ("http://www.freeworldgroup.com", "_blank");
}
Symbol 67 MovieClip Frame 1
if (soapbubble2MainTimeline.userQuality == "HIGH") {
gotoAndStop (4);
} else if (soapbubble2MainTimeline.userQuality == "MEDIUM") {
gotoAndStop (2);
} else if (soapbubble2MainTimeline.userQuality == "LOW") {
gotoAndStop (3);
}
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 3
stop();
Symbol 67 MovieClip Frame 4
stop();
Symbol 70 Button
on (release) {
_root.gameChange = true;
_root.userQuality = "HIGH";
quality_bock.gotoAndStop(4);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 72 Button
on (release) {
_root.gameChange = true;
_root.userQuality = "MEDIUM";
quality_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 74 Button
on (release) {
_root.gameChange = true;
_root.userQuality = "LOW";
quality_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 87 MovieClip Frame 1
if (soapbubble2MainTimeline.userSound == "off") {
gotoAndStop (2);
} else {
stop();
}
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 88 Button
on (release) {
_root.gameChange = true;
_root.userColorAid = "on";
color_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 90 Button
on (release) {
_root.gameChange = true;
_root.userColorAid = "off";
color_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 91 Button
on (release) {
_root.userSound = "on";
sound_bock.gotoAndStop(3);
_root.sound_fadeUp(_root.currentSound, 25, 25);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 92 Button
on (release) {
_root.userSound = "off";
sound_bock.gotoAndStop(2);
_root.sound_fadeDown(_root.currentSound, 0, 25);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 93 Button
on (release) {
_root.gameChange = true;
_root.userHearingAid = "on";
hearing_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 94 Button
on (release) {
_root.gameChange = true;
_root.userHearingAid = "off";
hearing_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 95 Button
on (release) {
_root.gameChange = true;
_root.userTutorial = "on";
tutorial_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 96 Button
on (release) {
_root.gameChange = true;
_root.userTutorial = "off";
tutorial_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 105 Button
on (release) {
if (_root._currentframe == _root.mainMenuFrame) {
_root.bnNew._visible = true;
_root.bnLoad._visible = true;
_root.bnOptions._visible = true;
gotoAndStop (1);
} else {
if (_root._currentframe != _root.mainMenuFrame) {
if (_root.mainMenu == "on") {
_parent.gameoptions.gotoAndStop(3);
} else {
_parent.gameoptions.gotoAndStop(2);
}
}
gotoAndStop (1);
}
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 108 MovieClip Frame 1
_parent.roach._visible = true;
_parent.logo._visible = true;
_parent.bnbrand_01._visible = true;
_parent.bnbrand_02._visible = true;
_parent.bnbrand_03._visible = true;
_parent.fwg._visible = true;
stop();
if (_root._currentframe == _root.mainMenuFrame) {
_root.disableBlur(_root.menuMC);
}
Symbol 108 MovieClip Frame 2
_parent.roach._visible = false;
_parent.logo._visible = false;
_parent.bnbrand_01._visible = false;
_parent.bnbrand_02._visible = false;
_parent.bnbrand_03._visible = false;
_parent.fwg._visible = false;
_root.disableMenu();
blackFrame.useHandCursor = false;
stop();
if (_root._currentframe == _root.mainMenuFrame) {
_root.enableBlur(_root.menuMC);
}
Instance of Symbol 85 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (load) {
if (_root.userQuality == "HIGH") {
_parent.quality_bock.gotoAndStop(4);
} else if (_root.userQuality == "MEDIUM") {
_parent.quality_bock.gotoAndStop(2);
} else {
_parent.quality_bock.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
_root.disableMenu();
_root.hideAction();
_root.pause = true;
_root.targetMC.mouseCircle._visible = false;
}
Instance of Symbol 85 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (load) {
if (_root.userColorAid == "off") {
_parent.color_bock.gotoAndStop(2);
} else {
_parent.color_bock.gotoAndStop(1);
}
}
Instance of Symbol 85 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (load) {
if (_root.userSound == "off") {
_parent.sound_bock.gotoAndStop(2);
} else {
_parent.sound_bock.gotoAndStop(1);
}
}
Instance of Symbol 85 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (load) {
if (_root.userHearingAid == "off") {
_parent.hearing_bock.gotoAndStop(2);
} else {
_parent.hearing_bock.gotoAndStop(1);
}
}
Instance of Symbol 85 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (load) {
if (_root.userTutorial == "off") {
_parent.tutorial_bock.gotoAndStop(2);
} else {
_parent.tutorial_bock.gotoAndStop(1);
}
}
Symbol 111 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(_root.mouseOverColor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOutColor);
txtColor = new Color(nameTXT);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(_root.mouseOutColor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOverColor);
txtColor = new Color(nameTXT);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
_root.currentSaveBoxNum = userNum;
if (_root.popup._currentframe != 1) {
_root.popup.play();
} else if (_root["saveGameInfo" + _root.currentSaveBoxNum].data.gameSaved == true) {
if (_root._currentframe == 2) {
_root.wipeAction = "load";
} else {
_root.wipeAction = "load";
}
_root.wipe.play();
} else {
_root.showMessage("This slot is empty.", "");
}
}
Symbol 118 MovieClip Frame 1
userNumTxt = userNum + ".";
stop();
Symbol 122 Button
on (release) {
if (_root._currentframe != _root.mainMenuFrame) {
if (_root.mainMenu == "on") {
_parent.gameoptions.gotoAndStop(3);
} else {
_parent.gameoptions.gotoAndStop(2);
}
}
_root.hideLoadData();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 123 MovieClip Frame 1
_parent.roach._visible = true;
_parent.logo._visible = true;
_parent.bnbrand_01._visible = true;
_parent.bnbrand_02._visible = true;
_parent.bnbrand_03._visible = true;
_parent.fwg._visible = true;
stop();
if (_root._currentframe == _root.mainMenuFrame) {
_root.disableBlur(_root.menuMC);
}
Symbol 123 MovieClip Frame 2
_parent.roach._visible = false;
_parent.logo._visible = false;
_parent.bnbrand_01._visible = false;
_parent.bnbrand_02._visible = false;
_parent.bnbrand_03._visible = false;
_parent.fwg._visible = false;
_root.disableMenu();
blackFrame.useHandCursor = false;
stop();
if (_root._currentframe == _root.mainMenuFrame) {
_root.enableBlur(_root.menuMC);
}
Instance of Symbol 118 MovieClip "gameDataBox" in Symbol 123 MovieClip Frame 2
onClipEvent (load) {
_parent.gameDataBox._visible = false;
}
Instance of Symbol 119 MovieClip in Symbol 123 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.pause = true;
}
Symbol 127 MovieClip Frame 1
function soundFade() {
if (i < _root.stepNum) {
currentVolume = _root.currentSound.getVolume();
_root.currentSound.setVolume(currentVolume + incrementSize);
_root.test = _root.currentSound.getVolume();
i++;
} else {
userTrace("fade complete");
_root.currentSound.setVolume(_root.targetVolumeNum);
if (_root.targetVolumeNum == 0) {
_root.currentSound.stop();
}
gotoAndStop (1);
}
}
incrementSize = (_root.targetVolumeNum - startVolume) / _root.stepNum;
stop();
Symbol 127 MovieClip Frame 2
i = 0;
startVolume = _root.currentSound.getVolume();
incrementSize = (_root.targetVolumeNum - startVolume) / _root.stepNum;
_root.userTrace("startVolume: " + startVolume);
_root.userTrace("targetVolume: " + _root.targetVolumeNum);
_root.userTrace("stepNum: " + _root.stepNum);
_root.userTrace("incrementSize: " + incrementSize);
soundFade();
Symbol 127 MovieClip Frame 3
soundFade();
Symbol 127 MovieClip Frame 4
soundFade();
gotoAndPlay (3);
Symbol 137 MovieClip Frame 1
stop();
if (_root.header == "") {
gotoAndStop (1);
} else {
trace("header: " + header);
gotoAndStop (2);
}
Symbol 138 Button
on (press) {
gotoAndPlay ("out");
}
Symbol 140 MovieClip Frame 1
stop();
_root.pause = false;
if (_root.eventInteraction == "Begun") {
_root.initiateStreamingEvent();
}
_parent.targetMC.mouseCircle._visible = true;
Symbol 140 MovieClip Frame 2
_root.pause = true;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.useHandCursor = false;
_root.hiddenActionTxt = "";
play();
Instance of Symbol 85 MovieClip in Symbol 140 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 140 MovieClip Frame 3
_root.pause = true;
Symbol 140 MovieClip Frame 4
_root.pause = true;
Symbol 140 MovieClip Frame 5
_root.pause = true;
Symbol 140 MovieClip Frame 6
_root.pause = true;
Symbol 140 MovieClip Frame 7
_root.pause = true;
Symbol 140 MovieClip Frame 8
_root.pause = true;
Symbol 140 MovieClip Frame 9
_root.pause = true;
stop();
Symbol 140 MovieClip Frame 10
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = true;
Symbol 140 MovieClip Frame 11
_root.pause = true;
Symbol 140 MovieClip Frame 12
_root.pause = true;
Symbol 140 MovieClip Frame 13
_root.pause = true;
Symbol 140 MovieClip Frame 14
_root.pause = true;
Symbol 140 MovieClip Frame 15
_root.pause = true;
if (_root.blurState == "on") {
_root.disableBlur(_root.targetMC);
}
Symbol 146 MovieClip Frame 1
_root.actionTxt = "";
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 1
i = 0;
positions = new Array(0.015625, 0.03125, 0.0625, 0.125, 0.25, 0.5, 0.75, 0.875, 0.9375, 0.96875, 0.984375, 0.99);
_root.sliding = false;
stop();
Symbol 148 MovieClip Frame 2
function SlideNext() {
xPos = Math.floor(distNumX * positions[i]);
yPos = Math.floor(distNumY * positions[i]);
MCobject._x = beginSlideX - xPos;
MCobject._y = beginSlideY - yPos;
i++;
}
Symbol 148 MovieClip Frame 3
beginSlideX = _parent.beginSlideX - (MCobject._width / 2);
beginSlideY = _parent.beginSlideY - (MCobject._height / 2);
endSlideX = _parent.endSlideX;
endSlideY = _parent.endSlideY;
distNumX = beginSlideX - endSlideX;
distNumY = beginSlideY - endSlideY;
_root.sliding = true;
SlideNext();
Symbol 148 MovieClip Frame 4
SlideNext();
Symbol 148 MovieClip Frame 5
SlideNext();
Symbol 148 MovieClip Frame 6
SlideNext();
Symbol 148 MovieClip Frame 7
SlideNext();
Symbol 148 MovieClip Frame 8
SlideNext();
Symbol 148 MovieClip Frame 9
SlideNext();
Symbol 148 MovieClip Frame 10
SlideNext();
Symbol 148 MovieClip Frame 11
SlideNext();
Symbol 148 MovieClip Frame 12
SlideNext();
Symbol 148 MovieClip Frame 13
SlideNext();
Symbol 148 MovieClip Frame 14
MCobject._x = _parent.endSlideX;
MCobject._y = _parent.endSlideY;
if (_root.oldMC != "") {
_root.oldMC._x = _root.oldMC.orgX;
_root.oldMC._y = _root.oldMC.orgY;
_root.oldMC._visible = true;
_root.oldMC = "";
}
_root.updateInventory();
Symbol 154 Button
on (release) {
getURL ("http://cockroach.se", "_blank");
}
Symbol 161 Button
on (release) {
_root.addState("commingFromMainMenu");
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = "hub.swf";
play();
}
Symbol 166 Button
on (release) {
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = "r1.swf";
play();
}
Symbol 173 Button
on (release) {
gotoAndPlay ("out");
}
Symbol 174 Button
on (release) {
_root.addState("commingFromMainMenu");
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = "hub.swf";
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 175 Button
on (release) {
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = "r1.swf";
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
_root.pause = true;
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = false;
Symbol 176 MovieClip Frame 9
stop();
_parent.targetMC.mouseCircle._visible = false;
Symbol 176 MovieClip Frame 10
_root.pause = false;
_parent.targetMC.mouseCircle._visible = true;
Symbol 187 Button
on (release) {
options.play();
bnNew._visible = false;
bnLoad._visible = false;
bnOptions._visible = false;
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 192 Button
on (release) {
if (options._currentframe != 1) {
options.play();
}
displayLoadData();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 197 Button
on (release) {
if (popup._currentframe != 1) {
popup.play();
}
gx_firstgame.gotoAndPlay("in");
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
_parent._parent.MCsound.play();
Symbol 231 MovieClip Frame 12
gotoAndPlay ("channelSwap");
Symbol 231 MovieClip Frame 17
gotoAndPlay ("loop");
Symbol 231 MovieClip Frame 34
if ((_parent._parent.MCsound._currentframe == 1) and (_parent._parent.clipFinished == false)) {
_parent._parent.MCsound.gotoAndPlay("short");
}
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 231 MovieClip Frame 35
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 231 MovieClip Frame 36
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 231 MovieClip Frame 37
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 231 MovieClip Frame 38
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 231 MovieClip Frame 39
if (_parent._parent.clipFinished == true) {
gotoAndPlay ("loop");
} else {
_parent.gotoAndStop(_parent._parent.channel + 1);
_root.streamingEvent(_parent.movie, 2);
}
stop();
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Instance of Symbol 231 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
if (_root.girlGone != true) {
gotoAndPlay ("loop");
}
}
Symbol 242 MovieClip Frame 1
stop();
Instance of Symbol 205 MovieClip in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
if (_root.girlGone == true) {
_visible = false;
}
}
Symbol 250 MovieClip Frame 1
speechColor = new Color(txt);
speechColor.setRGB(_root.colorVar);
Symbol 251 Button
on (press) {
gotoAndPlay ("out");
}
Symbol 252 MovieClip Frame 1
stop();
_root.pause = false;
if (_root.eventInteraction == "Begun") {
_root.initiateStreamingEvent();
}
_parent.targetMC.mouseCircle._visible = true;
Instance of Symbol 247 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 252 MovieClip Frame 2
_root.pause = true;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.useHandCursor = false;
_root.hiddenActionTxt = "";
play();
Instance of Symbol 85 MovieClip in Symbol 252 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 252 MovieClip Frame 3
_root.pause = true;
Symbol 252 MovieClip Frame 4
_root.pause = true;
Symbol 252 MovieClip Frame 5
_root.pause = true;
Symbol 252 MovieClip Frame 6
_root.pause = true;
Symbol 252 MovieClip Frame 7
_root.pause = true;
Symbol 252 MovieClip Frame 8
_root.pause = true;
Symbol 252 MovieClip Frame 9
_root.pause = true;
stop();
Symbol 252 MovieClip Frame 10
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = true;
Symbol 252 MovieClip Frame 11
_root.pause = true;
Symbol 252 MovieClip Frame 12
_root.pause = true;
Symbol 252 MovieClip Frame 13
_root.pause = true;
Symbol 252 MovieClip Frame 14
_root.pause = true;
Symbol 252 MovieClip Frame 15
_root.pause = true;
_x = orgX;
_y = orgY;
Symbol 254 Button
on (release) {
play();
}
Symbol 255 Button
on (release) {
_parent.wipeAction = "end";
_parent.wipe.play();
play();
}
Symbol 259 Button
on (release) {
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 260 Button
on (release) {
_parent.wipeAction = "end";
_parent.wipe.play();
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 261 MovieClip Frame 1
_root.enableMenu();
_root.pause = false;
stop();
Symbol 261 MovieClip Frame 2
_root.pause = true;
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = false;
_root.disableMenu();
Symbol 261 MovieClip Frame 8
stop();
_root.pause = true;
_parent.targetMC.mouseCircle._visible = false;
Symbol 261 MovieClip Frame 9
_parent.targetMC.mouseCircle._visible = true;
Symbol 261 MovieClip Frame 14
if (_root.wipeAction == "end") {
stop();
}
Symbol 265 Button
on (release) {
if (_root._currentframe != _root.mainMenuFrame) {
if (_root.mainMenu == "on") {
_parent.gameoptions.gotoAndStop(3);
} else {
_parent.gameoptions.gotoAndStop(2);
}
}
_root.hideSaveData();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 267 Button
on (rollOver) {
if ((_root.currentSaveBoxNum != "") and (_parent["gameDataBox" + _root.currentSaveBoxNum].userName != "")) {
plateColor = new Color(backplate);
plateColor.setRGB(16777215);
txtColor = new Color(txt_saveGame);
txtColor.setRGB(0);
backplate._alpha = 100;
txt_saveGame._alpha = 100;
_root.playSound("menuRollOver");
}
}
on (rollOut, releaseOutside) {
if ((_root.currentSaveBoxNum != "") and (_parent["gameDataBox" + _root.currentSaveBoxNum].userName != "")) {
plateColor = new Color(backplate);
plateColor.setRGB(0);
txtColor = new Color(txt_saveGame);
txtColor.setRGB(16777215);
} else {
backplate._alpha = 50;
txt_saveGame._alpha = 50;
}
}
on (press, keyPress "<Enter>") {
if (_root.currentSaveBoxNum != "") {
if (_parent["gameDataBox" + _root.currentSaveBoxNum].userName != "") {
_root.userTrace(_parent.userName);
_root.saveGame("saveGameInfo" + _root.currentSaveBoxNum);
_root.disableBlur(_root.targetMC);
_root.gameoptions.gotoAndStop(1);
if (_root.gameChange == true) {
if (_root.mainMenu == "on") {
_root.gameoptions.gotoAndStop(3);
} else {
_root.gameoptions.gotoAndStop(2);
}
_root.hideSaveData();
} else {
_root.hideSaveData();
}
} else {
_root.showMessage("Please name your saved game.", "");
}
} else {
_root.showMessage("Please select a save game slot.", "");
}
}
Instance of Symbol 269 MovieClip "txt_saveGame" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
_alpha = 50;
}
Instance of Symbol 272 MovieClip "backplate" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 15;
}
Symbol 274 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(16777215);
numColor = new Color(numTXT);
numColor.setRGB(0);
txtColor = new Color(txtHolder);
txtColor.setRGB(0);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(0);
numColor = new Color(numTXT);
numColor.setRGB(16777215);
txtColor = new Color(txtHolder);
txtColor.setRGB(16777215);
}
on (release) {
Selection.setFocus("userName");
gotoAndStop (2);
}
Symbol 278 MovieClip Frame 1
userNumTxt = userNum + ".";
stop();
Instance of Symbol 277 MovieClip "backplate" in Symbol 278 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
_root.userTrace("text removed");
}
_root.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
_root.currentSaveBoxNum = "";
_root.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 278 MovieClip Frame 2
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
stop();
saveBN.backplate._alpha = 50;
saveBN.bn.useHandCursor = false;
blackFrame.useHandCursor = false;
_root.disableMenu();
_root.currentSaveBoxNum = "";
Instance of Symbol 119 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.pause = true;
_parent.userName = _parent["gameDataBox" + _root.currentSaveBoxNum].userName;
if ((_root.currentSaveBoxNum != "") and (_parent["gameDataBox" + _root.currentSaveBoxNum].userName != "")) {
_parent.saveBN.bn.useHandCursor = true;
if (backplateLight != true) {
_parent.saveBN.backplate._alpha = 100;
_parent.saveBN.txt_saveGame._alpha = 100;
backplateLight = true;
}
} else {
backplateLight = false;
_parent.saveBN.bn.useHandCursor = false;
if (_parent.saveBN.backplate._alpha != 50) {
_parent.saveBN.backplate._alpha = 50;
_parent.saveBN.txt_saveGame._alpha = 50;
}
}
}
Instance of Symbol 278 MovieClip "gameDataBox" in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
_parent.gameDataBox._visible = false;
}
Symbol 282 Button
on (release) {
if (_parent.popup._currentframe == 9) {
_parent.popup.gotoAndPlay("out");
}
}
Symbol 283 MovieClip Frame 1
_parent.cutscene.swapDepths(2000);
_root.enableMenu();
_root.hideForInteraction();
_parent.targetMC.mouseCircle._visible = true;
stop();
Symbol 283 MovieClip Frame 2
_parent.pause = true;
_parent.cutscene.swapDepths(2000);
_root.disableMenu();
blackFrame.useHandCursor = false;
_root.hideForInteraction();
Symbol 283 MovieClip Frame 3
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 4
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 5
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 6
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 7
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 8
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 9
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 10
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 11
_parent.pause = true;
_parent.cutscene.swapDepths(2000);
_root.hideInventory();
_root.hideActionBar();
stop();
Symbol 283 MovieClip Frame 12
_parent.cutscene.swapDepths(2000);
_root.showInventory();
_root.showActionBar();
_root.hideForInteraction();
Symbol 283 MovieClip Frame 13
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 14
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 15
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 16
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 17
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 18
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 19
_parent.cutscene.swapDepths(2000);
Symbol 283 MovieClip Frame 20
_parent.pause = false;
_parent.cutscene.swapDepths(2000);
Symbol 288 Button
on (release) {
if (_root.mainMenu == "on") {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
on (rollOver) {
if (_root.menuDisabled == false) {
saveMC.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
saveMC.gotoAndStop(1);
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 295 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(16777215);
numColor = new Color(numTXT);
numColor.setRGB(0);
txtColor = new Color(txtHolder);
txtColor.setRGB(0);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(0);
numColor = new Color(numTXT);
numColor.setRGB(16777215);
txtColor = new Color(txtHolder);
txtColor.setRGB(16777215);
}
on (release) {
_root.options.gotoAndStop(2);
_parent.gotoAndStop(4);
}
Symbol 298 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip "backplate" in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
_root.userTrace("text removed");
}
_root.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
_root.currentSaveBoxNum = "";
_root.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 299 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(16777215);
numColor = new Color(numTXT);
numColor.setRGB(0);
txtColor = new Color(txtHolder);
txtColor.setRGB(0);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(0);
numColor = new Color(numTXT);
numColor.setRGB(16777215);
txtColor = new Color(txtHolder);
txtColor.setRGB(16777215);
}
on (release) {
if (_root.menuDisabled == false) {
_root.displayLoadData();
}
}
Symbol 302 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip "backplate" in Symbol 302 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
_root.userTrace("text removed");
}
_root.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
_root.currentSaveBoxNum = "";
_root.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 303 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(16777215);
numColor = new Color(numTXT);
numColor.setRGB(0);
txtColor = new Color(txtHolder);
txtColor.setRGB(0);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(0);
numColor = new Color(numTXT);
numColor.setRGB(16777215);
txtColor = new Color(txtHolder);
txtColor.setRGB(16777215);
}
on (release) {
if (_root.menuDisabled == false) {
_root.displaySaveData();
}
}
Symbol 306 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip "backplate" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
_root.userTrace("text removed");
}
_root.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
_root.currentSaveBoxNum = "";
_root.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 307 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(_root.mouseOverColor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOutColor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(_root.mouseOutColor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOverColor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
if (_root.gameChange == true) {
_root.currentSaveBoxNum = 0;
_root.saveGame("saveGameInfo" + _root.currentSaveBoxNum);
_root.wipeAction = "load";
_root.wipe.play();
_root.gameChange = false;
} else {
_parent.gotoAndStop(1);
}
}
Symbol 310 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip "backplate" in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
_root.userTrace("text removed");
}
_root.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
_root.currentSaveBoxNum = "";
_root.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 311 Button
on (rollOver) {
plateColor = new Color(backplate);
plateColor.setRGB(16777215);
numColor = new Color(numTXT);
numColor.setRGB(0);
txtColor = new Color(txtHolder);
txtColor.setRGB(0);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor = new Color(backplate);
plateColor.setRGB(0);
numColor = new Color(numTXT);
numColor.setRGB(16777215);
txtColor = new Color(txtHolder);
txtColor.setRGB(16777215);
}
on (release) {
if (_root.menuDisabled == false) {
if (_root.popup._currentframe != 1) {
_root.popup.play();
}
_root.gx_endgame.play();
}
gotoAndStop (1);
}
Symbol 314 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip "backplate" in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
_root.userTrace("text removed");
}
_root.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _root.offsetx, _root._ymouse + _root.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
_root.currentSaveBoxNum = "";
_root.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 315 MovieClip Frame 1
stop();
if (_parent.options._currentframe == 1) {
_root.pause = false;
_root.displayFootCursor();
if (((_parent.options._currentframe == 1) and (_parent.loadData._currentframe == 1)) and (_parent.saveData._currentframe == 1)) {
_root.enableMenu();
_root.showInventory();
}
}
_root.targetMC.tv.movie.play();
if (_root.wipeAction != "end") {
_root.disableBlur(_root.targetMC);
}
Symbol 315 MovieClip Frame 2
blackFrame.useHandCursor = false;
_root.menuDisabled = false;
_root.hideAction();
_root.pause = true;
_root.targetMC.mouseCircle._visible = false;
_root.hideInventory();
_root.targetMC.tv.movie.stop();
_root.enableBlur(_root.targetMC);
Symbol 315 MovieClip Frame 3
blackFrame.useHandCursor = false;
_root.menuDisabled = false;
_root.hideAction();
_root.pause = true;
_root.targetMC.mouseCircle._visible = false;
_root.hideInventory();
_root.targetMC.tv.movie.stop();
_root.enableBlur(_root.targetMC);
Symbol 315 MovieClip Frame 4
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
stop();
Symbol 328 Button
on (rollOver) {
if ((_root.pause == false) and (_root.sliding == false)) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
_root.inventoryAction_examine(this);
}
}
}
on (press) {
if ((_root.pause == false) and (_root.sliding == false)) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
_root.getObjectBounds(this);
_root.endSlideX = this._x;
_root.endSlideY = this._y;
_root.functionBreaker = false;
_root.inventoryAction_examine(this);
_root.inventoryAction_move(this);
_root.hideFootCursor();
this.startDrag();
}
}
}
on (release) {
if ((_root.pause == false) and (_root.sliding == false)) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
if (_root.currentObject == this) {
this.stopDrag();
_root.beginSlideX = this._x + (this._width / 2);
_root.beginSlideY = this._y + (this._height / 2);
_root.inventoryItemActivationCheck(this);
_root.beginSlide(this);
_root.hideAction();
_root.displayFootCursor();
}
}
}
}
on (releaseOutside) {
if ((_root.pause == false) and (_root.sliding == false)) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
if (_root.currentObject == this) {
_root.hideAction();
_root.beginSlideX = this._x + (this._width / 2);
_root.beginSlideY = this._y + (this._height / 2);
_root.beginSlide(this);
_root.displayFootCursor();
}
}
}
}
on (rollOut) {
_root.hideAction();
_root.displayFootCursor();
updateAfterEvent();
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
stop();
Instance of Symbol 413 MovieClip "reflection" in Symbol 425 MovieClip Frame 57
onClipEvent (enterFrame) {
if (_root.shineState == "high") {
this.gotoAndStop(4);
} else if (_root.shineState == "medium") {
this.gotoAndStop(3);
} else if (_root.shineState == "low") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}