Frame 1
function getSourceURL() {
var _local2 = _root._url;
return(_local2.substring(0, _local2.lastIndexOf("/") + 1));
}
function loadBgFiles() {
var _local2 = _root.createEmptyMovieClip(fileArray[f], 1 + f);
mcLoader.loadClip(((loadPath + webLink) + fileArray[f]) + ".swf", _local2);
}
function isFileLoaded(fileName) {
checkedFile = "";
fn = 0;
while (fn < loadedFiles.length) {
checkedFile = loadedFiles[fn];
if (checkedFile == fileName) {
userTrace("file is preloaded: " + fileName);
return(true);
}
fn++;
}
if ((fn == loadedFiles.length) and (checkedFile != fileName)) {
}
}
function hasFileFailed(fileName) {
checkedFile = "";
fn = 0;
while (fn < failedFiles.length) {
checkedFile = failedFiles[fn];
if (checkedFile == fileName) {
userTrace("file has failed: " + fileName);
return(true);
}
fn++;
}
if ((fn == failedFiles.length) and (checkedFile != fileName)) {
}
}
function finishedTheGame() {
didIWin = true;
girlGone = true;
_root.kongregateStats.submit("GameComplete", 1);
}
function enableMenu() {
menuDisabled = false;
gamemenu.saveBN.useHandCursor = true;
gamemenu.saveMC._alpha = 100;
gamemenu.saveBN.enabled = true;
if (gamemenu._currentframe == 4) {
gamemenu.gotoAndStop(1);
}
}
function disableMenu() {
menuDisabled = true;
gamemenu.gotoAndStop(4);
gamemenu.saveBN.useHandCursor = false;
gamemenu.saveBN.enabled = false;
gamemenu.saveMC._alpha = 0;
}
function gameInit(movieToLoad) {
if (popup._currentframe != 1) {
popup.play();
}
pause = false;
transportCheck = true;
inventoryNum = 1;
gotoAndStop ("game");
inventoryDescription = new Array();
mcLoader.loadClip(((loadPath + webLink) + defaultCurrentLocation) + ".swf", targetMC);
targetMC.tabEnabled = false;
targetMC.tabChildren = false;
_quality = userQuality;
currentLocation = defaultCurrentLocation;
userTrace(("gameInit: " + webLink) + currentLocation);
didIWin = false;
arrowColorVar = "";
}
function gameExit() {
userTrace("gameExit");
if (popup._currentframe != 1) {
popup.play();
}
if (gx_endgame._currentframe != 1) {
gx_endgame.play();
}
if (cutscene._currentframe != 1) {
exitCutscene();
}
currentTape = "";
saveData.removeMovieClip("");
popup.gotoAndStop(1);
inventoryNum = 1;
inventory = new Array();
inventoryTranslation = new Array();
states = new Array();
inventoryDescription = new Array();
roomObject = new Array();
navpointArray = new Array();
depthList = new Array();
destinationNeighbours = new Array();
unobstructedNodes = new Array();
oldNodes = new Array();
eventInteraction = "Done";
sound_fadeDown(currentSound, 0, 25);
deleteInventory();
gamemenu.removeMovieClip("");
unloadMovie ("targetMC");
_quality = "HIGH";
targetObject = "";
targetObjectTranslation = "";
actionTxt = "";
hideAction();
currentMouseOverObject = "";
_root.eventInteraction = "Done";
cutscene.gotoAndStop(1);
cutscene.removeMovieClip("");
popup.removeMovieClip("");
gx_endgame.gotoAndStop(1);
gamemenu.gotoAndStop(1);
gamemenu.removeMovieClip("");
options.gotoAndStop(1);
options.removeMovieClip("");
loadData.gotoAndStop(1);
loadData.removeMovieClip("");
saveData.gotoAndStop(1);
speech.gotoAndStop(1);
speech.removeMovieClip("");
saveData.removeMovieClip("");
wipe.removeMovieClip("");
bgBlur.removeMovieClip("");
gx_endgame.removeMovieClip("");
debugBar.removeMovieClip("");
gx_firstgame.removeMovieClip("");
debugInfo.removeMovieClip("");
logo.removeMovieClip("");
roach.removeMovieClip("");
loadError.removeMovieClip("");
cleaner.removeMovieClip("");
}
function gamePause() {
if (pause == false) {
pause = true;
} else if (gx_endgame._currentframe != 1) {
gx_endgame.play();
pause = true;
} 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 launchMenu(item) {
currentMenuItem = item;
bgBlur.gotoAndPlay("in");
}
function removeMenu() {
bgBlur.gotoAndPlay("out");
}
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 applyOutlineFilter(target) {
var _local2 = new flash.filters.GlowFilter(0, 100, 3, 3, 1000, 2, false, false);
var _local1 = new Array();
_local1.push(_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;
ySpacing = 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 + ySpacing;
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 = _root.captions[6];
}
saveData["gameDataBox" + s].userNum = s;
saveData["gameDataBox" + s]._visible = false;
s++;
ySpacing = ySpacing + 57;
}
saveData.gameDataBox9.userName = _root.captions[7];
saveData.gameDataBox9._alpha = 60;
saveData.gameDataBox9.bn.useHandCursor = false;
saveData.gameDataBox9.bn.enabled = false;
}
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;
ySpacing = 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 + ySpacing;
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 = _root.captions[6];
loadData["gameDataBox" + s]._alpha = 60;
loadData["gameDataBox" + s].bn.enabled = false;
}
loadData["gameDataBox" + s].userNum = s;
loadData["gameDataBox" + s]._visible = false;
s++;
ySpacing = ySpacing + 57;
}
loadData.gameDataBox9.userName = _root.captions[7];
}
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 autoSave() {
currentSaveBoxNum = 9;
saveBar.play();
saveGame("Autosave");
}
function tempSave() {
currentSaveBoxNum = 10;
saveGame("Tempsave");
}
function removeTempSave() {
saveGameInfo10.data.gameSaved = false;
userTrace("tempSave removed");
}
function saveGame(saveState) {
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.userWaterEffects = userWaterEffects;
_root["saveGameInfo" + currentSaveBoxNum].data.userColorAid = userColorAid;
_root["saveGameInfo" + currentSaveBoxNum].data.userHearingAid = userHearingAid;
_root["saveGameInfo" + currentSaveBoxNum].data.languageVar = language;
if (saveState != "Autosave") {
_root["saveGameInfo" + currentSaveBoxNum].data.userName = saveData["gameDataBox" + currentSaveBoxNum].userName;
userTrace(saveData["gameDataBox" + currentSaveBoxNum].userName);
} else if (saveState == "Tempsave") {
saveGameInfo10.data.userName = "Tempsave";
saveGameInfo10.data.gameSaved = true;
userTrace((("Tempsaved: " + currentSaveBoxNum) + " - ") + saveGameInfo10.data.userName);
} else {
saveGameInfo9.data.userName = _root.captions[7];
userTrace(saveGameInfo9.data.userName);
userTrace("Autosave - test");
}
_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) {
currentSaveBoxNum = "";
}
}
}
function loadGame() {
hideLoadData();
if (_root["saveGameInfo" + currentSaveBoxNum].data.gameSaved == true) {
gotoAndStop ("game");
mcLoader.loadClip(((loadPath + webLink) + _root["saveGameInfo" + currentSaveBoxNum].data.currentLocation) + ".swf", targetMC);
targetMC.tabEnabled = false;
targetMC.tabChildren = false;
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;
userWaterEffects = _root["saveGameInfo" + currentSaveBoxNum].data.userWaterEffects;
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++;
}
inventoryTranslation = new Array();
inventoryTranslationNum = 1;
while (inventoryTranslationNum < (inventory.length + 1)) {
inventoryTranslation.push(translateName("", inventory[inventoryTranslationNum - 1]));
inventoryTranslationNum++;
}
if (language != _root["saveGameInfo" + currentSaveBoxNum].data.languageVar) {
language = _root["saveGameInfo" + currentSaveBoxNum].data.languageVar;
}
inventoryDescription = new Array();
inventoryDescriptionNum = 1;
while (inventoryDescriptionNum < (_root["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription.length + 1)) {
inventoryDescription.push(_root["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription[inventoryDescriptionNum - 1]);
inventoryDescriptionNum++;
}
updateInventory();
objects = 1;
navItemNum = 1;
roomObject = new Array();
navpointArray = new Array();
depthList = new Array();
destinationNeighbours = new Array();
unobstructedNodes = new Array();
oldNodes = new Array();
}
}
function loadRoom() {
debugBar.play();
gotoAndStop ("game");
mcLoader.loadClip(((loadPath + webLink) + roomToLoad) + ".swf", targetMC);
targetMC.tabEnabled = false;
targetMC.tabChildren = false;
currentLocation = roomToLoad;
transportCheck = true;
states = new Array();
statesNum = 1;
inventory = new Array();
inventoryTranslation = new Array();
inventoryNum = 1;
_quality = userQuality;
updateInventory();
inventoryDescription = new Array();
inventoryDescriptionNum = 1;
objects = 1;
navItemNum = 1;
roomObject = new Array();
navpointArray = new Array();
depthList = new Array();
destinationNeighbours = new Array();
unobstructedNodes = new Array();
oldNodes = new Array();
}
function getDistance(fromObject, toObject) {
distance = Math.round(Math.sqrt(((fromObject._x - toObject._x) * (fromObject._x - toObject._x)) + ((fromObject._y - toObject._y) * (fromObject._y - toObject._y))));
return(distance);
}
function initiateNavpoint(navItem, navState) {
navItem._name = "navpoint" + navItemNum;
navItem.navState = navState;
navpointArray.push("navpoint" + navItemNum);
navItem.txt = "navPoint " + navItemNum;
navItemNum++;
}
function showNavPoints() {
if (navPoints != "shown") {
navPoints = "shown";
i = 1;
while (i <= navpointArray.length) {
targetMC["navpoint" + i]._visible = true;
i++;
}
} else {
navPoints = "";
i = 1;
while (i <= navpointArray.length) {
targetMC["navpoint" + i]._visible = false;
i++;
}
}
}
function findDestinationNeighbours() {
i = 1;
destinationNeighbours = new Array();
while (i <= navpointArray.length) {
if (drawPathLine(destination, targetMC["navpoint" + i])) {
destinationNeighbours.push(targetMC["navpoint" + i]);
}
i++;
}
}
function checkDestinationNeighbour(node) {
checkedNode = "";
o = 0;
while (o < destinationNeighbours.length) {
checkedNode = destinationNeighbours[o];
if (checkedNode == node) {
return(true);
}
o++;
}
if ((o == destinationNeighbours.length) and (checkedNode != node)) {
return(false);
}
}
function drawNodeGraph() {
if (nodeGraph != "drawn") {
nodeGraph = "drawn";
this.createEmptyMovieClip("pathLine", 250);
pathLine.lineStyle(0, 16711935, 100, true, "none", "round", "miter", 1);
i = 1;
while (i <= navpointArray.length) {
targetMC["navpoint" + i].navpointNeighbours = new Array();
ii = 1;
while (ii <= navpointArray.length) {
if (drawPathLine(targetMC["navpoint" + i], targetMC["navpoint" + ii]) and (i != ii)) {
targetMC["navpoint" + i].navpointNeighbours.push(targetMC["navpoint" + ii]);
if (_root.debugMode == true) {
pathLine.moveTo(targetMC["navpoint" + i]._x, targetMC["navpoint" + i]._y);
pathLine.lineTo(targetMC["navpoint" + ii]._x, targetMC["navpoint" + ii]._y);
}
}
ii++;
}
i++;
}
i = 1;
while (i <= navpointArray.length) {
userTrace((("Node " + i) + ":") + targetMC["navpoint" + i].navpointNeighbours);
i++;
}
} else {
pathLine.clear();
nodeGraph = "";
}
}
function removeNodeGraph() {
pathLine.clear();
nodeGraph = "";
}
function checkNode(node) {
checkedNode = "";
o = 0;
while (o < oldNodes.length) {
checkedNode = oldNodes[o];
if (checkedNode == targetMC["navpoint" + i]) {
return(false);
}
o++;
}
if ((o == oldNodes.length) and (checkedNode != targetMC["navpoint" + i])) {
return(true);
}
}
function checkPath(entity, targetX, targetY) {
userTrace("checkPath");
if ((targetX == "") or (targetX == undefined)) {
targetX = _root._xmouse;
targetY = _root._ymouse;
}
destination._x = targetX;
destination._y = targetY;
i = 0;
while (i <= navpointArray.length) {
navColor = new Color(targetMC["navpoint" + i]);
navColor.setRGB(16711680);
i++;
}
if (((((destination._x > -200) and (destination._x < (_root.stage_X + 200))) and (destination._y > -200)) and (destination._y < (_root.stage_Y + 200))) and (!_parent.hinder.hitTest(destination._x, destination._y, true))) {
bestNode = "";
destination._visible = false;
if (!drawPathLine(entity, destination)) {
unobstructedNodes = new Array();
i = 0;
while (i <= navpointArray.length) {
if (drawPathLine(entity, targetMC["navpoint" + i])) {
if (checkNode(targetMC["navpoint" + i])) {
unobstructedNodes.push(targetMC["navpoint" + i]);
navColor = new Color(targetMC["navpoint" + i]);
navColor.setRGB(65280);
userTrace(("Added navpoint" + i) + " to unobstructedNodes array.");
}
}
i++;
}
if (bestNode == "") {
userTrace("Choosing the node closest to the destination.");
i = 0;
shortestDistance = 640;
while (i <= (unobstructedNodes.length - 1)) {
if (getDistance(destination, unobstructedNodes[i]) < shortestDistance) {
shortestDistance = getDistance(destination, unobstructedNodes[i]);
userTrace((("Node " + unobstructedNodes[i]) + " distance: ") + getDistance(destination, unobstructedNodes[i]));
bestNode = i;
} else {
userTrace(((("Node " + unobstructedNodes[i]) + " is further away (") + getDistance(destination, unobstructedNodes[i])) + "). Discarded.");
}
i++;
}
}
if ((unobstructedNodes.length == 0) and (destinationNeighbours.length == 0)) {
showSpeech("I can't seem to go there.", targetMC.gubbe, gubbeColor);
entity.walkState = "stopped";
entity.clickSpot_x = entity._x;
entity.clickSpot_y = entity._y;
} else {
entity.clickSpot_x = unobstructedNodes[bestNode]._x;
entity.clickSpot_y = unobstructedNodes[bestNode]._y;
entity.walkState = "walking";
_root.facingDirectionVar = "";
}
oldNodes.push(unobstructedNodes[bestNode]);
if (checkDestinationNeighbour(unobstructedNodes[bestNode])) {
}
} else {
entity.clickSpot_x = targetX;
entity.clickSpot_y = targetY;
entity.walkState = "walking";
_root.facingDirectionVar = "";
}
} else {
userTrace("the destination is not reachable");
showSpeech("I can't seem to go there.", targetMC.gubbe, gubbeColor);
}
}
function drawLine(fromObject, toObject, color) {
if (_root.debugMode == true) {
this.createEmptyMovieClip("pathLine", p);
pathLine.lineStyle(0, color, 100, true, "none", "round", "miter", 1);
pathLine.moveTo(fromObject._x, fromObject._y);
pathLine.lineTo(toObject._x, toObject._y);
p++;
}
}
function drawPathLine(fromObject, toObject) {
Xdistance = fromObject._x - toObject._x;
Ydistance = fromObject._y - toObject._y;
pointNum = 50;
pl = 20;
pi = 1;
while (pi < pointNum) {
hittestpoint.duplicateMovieClip("pl_hittestpoint" + pl, pl);
_root["pl_hittestpoint" + pl]._x = fromObject._x - ((Xdistance / pointNum) * pi);
_root["pl_hittestpoint" + pl]._y = fromObject._y - ((Ydistance / pointNum) * pi);
_root["pl_hittestpoint" + pl]._visible = false;
if (!targetMC.hinder.hitTest(_root["pl_hittestpoint" + pl]._x + offsetx, _root["pl_hittestpoint" + pl]._y + offsety, true)) {
_root["pl_hittestpoint" + pl].gotoAndStop(2);
} else {
return(false);
}
pi++;
}
return(true);
}
function streamingEvent(item, frameNum) {
userTrace((("streamingEvent: " + item) + " ") + frameNum);
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 endEvent() {
eventInteraction = "Done";
pause = false;
updateInventory();
}
function launchCutscene(movie) {
playState = "cutscene";
cutscene.gotoAndPlay("in");
movieToPlay = movie;
}
function exitCutscene() {
targetMC.gubbe.walkState = "stopped";
targetMC.gubbe.clickSpot_x = targetMC.gubbe._x;
targetMC.gubbe.clickSpot_y = targetMC.gubbe._y;
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) {
return(true);
}
s++;
}
if ((s == states.length) and (checkedState != 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 hitCheck(item) {
if (item.hitTest(targetMC.gubbe._x + offsetx, targetMC.gubbe._y + offsety, true)) {
return(true);
}
}
function disableSelfTargeting() {
addState("selfTargeting_disabled");
}
function enableSelfTargeting() {
userTrace("selfTargeting enabled");
removeState("selfTargeting_disabled");
}
function walkTo(walkTarget) {
if (pause == false) {
targetMC.gubbe.activation = false;
targetMC.gubbe.walkState = "walking";
checkPath(targetMC.gubbe, walkTarget._x, walkTarget._y);
oldNodes = new Array();
}
}
function forcedWalkTo(walkTarget) {
targetMC.gubbe.walkState = "walking";
forcedWalk = true;
targetMC.gubbe.activation = false;
targetMC.gubbe._x = orgSpotX;
targetMC.gubbe._y = orgSpotY;
targetMC.gubbe.clickSpot_x = walkTarget._x;
targetMC.gubbe.clickSpot_y = walkTarget._y;
facingDirectionVar = "";
}
function exitRoom(arrowTarget) {
tempSave();
walkTo(arrowTarget);
hiddenActionTxt = "";
}
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 saveTempLocation() {
_root.saveGameInfo1.data.tempPlayerXpos = targetMC.gubbe._x;
_root.saveGameInfo1.data.tempPlayerYpos = targetMC.gubbe._y;
_root.saveGameInfo1.data.tempPlayerDirection = targetMC.gubbe._currentframe;
}
function loadTempLocation() {
targetMC.gubbe._x = _root.saveGameInfo1.data.tempPlayerXpos;
targetMC.gubbe._y = _root.saveGameInfo1.data.tempPlayerYpos;
_root.facingDirectionVar = _root.saveGameInfo1.data.tempPlayerDirection;
}
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;
englishActionTxt = (item.hiddenObjectVerb + " ") + item.hiddenName;
actionBar.gotoAndStop(2);
actionBar.resizeActionBar();
}
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, inventoryObject) {
if (pause == false) {
if (item.hitTest(_root._xmouse + offsetx, _root._ymouse + offsety, true)) {
if (inventoryObject == true) {
if (currentObject.name != item.name) {
userTrace("inventory object");
targetObject = item.name;
targetObjectTranslation = translateName(item, item.name);
targetItem = item;
item.backplate._alpha = 100;
}
} else if (currentObject.name != item.name) {
userTrace("room object");
targetObject = item.hiddenName;
targetObjectTranslation = item.name;
targetItem = item;
item.backplate._alpha = 100;
}
} else {
if (targetObject == item.name) {
targetObject = "";
targetItem = "";
targetObjectTranslation = "";
} else if (targetObject == item.hiddenName) {
targetObject = "";
targetItem = "";
targetObjectTranslation = "";
}
item.backplate._alpha = 70;
}
}
}
function hideAction() {
actionBar.gotoAndStop(1);
targetObject = "";
targetObjectTranslation = "";
objectName = "";
currentMouseOverObject = "";
updateAfterEvent();
}
function initiateObject(item, itemName) {
item.tabEnabled = false;
item.tabChildren = false;
item._name = itemName;
roomObject.push(itemName);
}
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 {
userTrace((("No animation requested, launching action " + o) + " on ") + hiddenTargetItem);
hiddenTargetItem["launchAction_" + o]();
targetObject = "";
targetObjectTranslation = "";
hiddenTargetItem = "";
item = "";
actionTxt = "";
}
} else {
o = 0;
while (o <= roomObject.length) {
tempObject = roomObject[o];
if (targetMC[tempObject].actionArea.hitTest(targetMC.gubbe._x + offsetx, targetMC.gubbe._y + offsety, true)) {
if ((targetMC[tempObject].standingDirection != "") and (targetMC[tempObject].standingDirection != undefined)) {
facingDirectionVar = targetMC[tempObject].standingDirection;
targetMC.gubbe.gotoAndStop(targetMC[tempObject].standingDirection);
}
if ((targetMC[tempObject].operate_animation != "") and (targetMC[tempObject].operate_animation != undefined)) {
currentObject = targetMC[tempObject];
userTrace("displayAnimation: " + targetMC[tempObject].operate_animation);
targetMC.gubbe.bot.gotoAndStop(targetMC[tempObject].operate_animation);
return;
}
targetMC[tempObject].operate();
userTrace("interact with " + targetMC[tempObject]._name);
return;
}
o++;
}
}
}
}
}
function launchOperation() {
if ((hiddenTargetItem != "") and (hiddenTargetItem != undefined)) {
userTrace((("launchOperation: launchAction " + o) + " on ") + hiddenTargetItem);
hiddenTargetItem["launchAction_" + o]();
targetObject = "";
hiddenTargetItem = "";
targetObjectTranslation = "";
item = "";
actionTxt = "";
targetMC.gubbe.bot.gotoAndStop(1);
o = 0;
} else {
currentObject.operate();
userTrace("interact with " + currentObject._name);
targetMC.gubbe.bot.gotoAndStop(1);
}
}
function worldItemComboCheck() {
o = 1;
userTrace("worldItemComboCheck - targetItem: " + targetItem);
if ((targetItem.goalLength == "") or (targetItem.goalLength == undefined)) {
targetItem.goalLength = 1;
}
while (o <= targetItem.goalLength) {
if (englishActionTxt == targetItem["goal_" + o]) {
hiddenActionTxt = targetItem["goal_" + o];
userTrace("targetCombination detected o=" + o);
return(true);
}
o++;
}
return(false);
}
function checkVisible(item) {
if (checkState(item.hiddenName + "PickedUp")) {
item._x = -500;
item._y = -500;
}
}
function inventoryAction_examine(item) {
if (pause == false) {
currentObject = item;
targetMC.footCursor._visible = false;
actionTxt = (examineTranslation + " ") + item.nameTranslation;
englishActionTxt = "Examine " + item.name;
actionBar.gotoAndStop(2);
actionBar.resizeActionBar();
}
}
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 = (examineTranslation + " ") + item.nameTranslation;
englishActionTxt = "Examine " + item.name;
reverseActionTxt = "";
actionBar.resizeActionBar();
} else if ((targetObject != "") and (item.hiddenName != targetObject)) {
actionTxt = (((((useTranslation + " ") + item.nameTranslation) + " ") + withTranslation) + " ") + targetObjectTranslation;
englishActionTxt = (("Use " + item.name) + " with ") + targetObject;
reverseActionTxt = (("Use " + targetObject) + " with ") + item.name;
actionBar.resizeActionBar();
} else {
actionTxt = ((((useTranslation + " ") + item.nameTranslation) + " ") + withTranslation) + "...";
englishActionTxt = ("Use " + item.name) + " with...";
reverseActionTxt = "";
actionBar.resizeActionBar();
}
updateAfterEvent();
}
};
onMouseUp = function () {
item = "";
functionBreaker = true;
};
actionBar.gotoAndStop(2);
}
}
function inventoryItemActivationCheck(item) {
userTrace("inventoryItemActivationCheck: " + actionTxt);
if (actionTxt == ((examineTranslation + " ") + item.nameTranslation)) {
userTrace("Trying to examine: " + item.hiddenName);
examinedObject = "";
o = 0;
while (o < inventory.length) {
examinedObject = inventory[o];
if (examinedObject == item.name) {
if (inventoryItemExamineCheck()) {
examineHolder["launchAction_" + p]();
break;
}
if (userLanguage != "eng") {
description = translateDescription(inventoryDescription[o]);
showSpeech(description, targetMC.gubbe, gubbeColor);
} else {
showSpeech(inventoryDescription[o], targetMC.gubbe, gubbeColor);
}
break;
}
o++;
}
} else if (actionTxt == (((((useTranslation + " ") + item.nameTranslation) + " ") + withTranslation) + "...")) {
} 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.launchByProxy == true) {
hiddenTargetItem = targetItem;
userTrace("frase match - launchByProxy 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 != (((((useTranslation + " ") + item.nameTranslation) + " ") + withTranslation) + "...")) {
showSpeech(gameCopy[18], targetMC.gubbe, gubbeColor);
targetObject = "";
targetItem = "";
targetObjectTranslation = "";
item = "";
}
actionTxt = "";
}
function inventoryItemComboCheck() {
o = 1;
userTrace("inventoryItemComboCheck o=" + o);
while (o <= combinationHolder.goalLength) {
if ((englishActionTxt == combinationHolder["goal_" + o]) or (reverseActionTxt == combinationHolder["goal_" + o])) {
englishActionTxt = "";
reverseActionTxt = "";
userTrace("combination detected o=" + o);
return(true);
}
o++;
}
}
function inventoryItemExamineCheck() {
p = 1;
userTrace("inventoryItemExamineCheck p=" + p);
while (p <= examineHolder.goalLength) {
if (actionTxt == examineHolder["goal_" + p]) {
actionTxt = "";
reverseActionTxt = "";
userTrace("examine action detected p=" + p);
return(true);
}
p++;
}
}
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);
inventoryObject = translateName("", name);
inventoryTranslation.push(inventoryObject);
inventoryDescription.push(description);
addState(item.hiddenName + "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);
_root["inventoryClip" + inventoryNum]._visible = true;
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(gameCopy[19], "");
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);
inventoryTranslation.splice(s, 1);
inventoryDescription.splice(s, 1);
} else {
inventory.splice(s, 1);
inventoryTranslation.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;
currentObjectName = "";
targetObject = "";
targetItem = "";
targetObjectTranslation = "";
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].nameTranslation = inventoryTranslation[inventoryNum - 1];
_root["inventoryClip" + inventoryNum].text = inventoryNum;
_root["inventoryClip" + inventoryNum]._x = 6 + spacing;
_root["inventoryClip" + inventoryNum]._y = 6;
inventoryNum++;
spacing = spacing + 47;
}
displayFootCursor();
traceInventory();
}
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 dimInventory() {
dimNum = 0;
while (dimNum <= inventoryNum) {
_root["inventoryClip" + dimNum]._alpha = 15;
dimNum++;
}
}
function traceInventory() {
traceInventory_var = inventory;
traceInventoryTranslation_var = inventoryTranslation;
userTrace(inventory);
userTrace(inventoryTranslation);
}
function initiateTransport(facingDirection, arrowColor, newLocation) {
if ((pause == false) and (wipe._currentframe == 1)) {
hideAction();
hideForInteraction();
wipeAction = "transport";
facingDirectionVar = facingDirection;
arrowColorVar = arrowColor;
userTrace(((("Transport initiated: [arrowColor: " + arrowColor) + "] - [arrowColorVar: ") + arrowColorVar) + "]");
newLocationVar = newLocation;
wipe.gotoAndPlay("in");
}
}
function transport(newLocation) {
targetMC.gubbe._y = -200;
targetMC.gubbe._x = -200;
currentLocation = newLocation;
objects = 1;
navItemNum = 1;
roomObject = new Array();
navpointArray = new Array();
depthList = new Array();
destinationNeighbours = new Array();
unobstructedNodes = new Array();
oldNodes = new Array();
mcLoader.loadClip(((loadPath + webLink) + newLocation) + ".swf", targetMC);
targetMC.tabEnabled = false;
targetMC.tabChildren = false;
}
function initializeNewLocation() {
actionBar.gotoAndStop(1);
userTrace("initializeNewLocation");
eventInteraction = "Done";
if (wipeAction == "transport") {
targetMC.gubbe.gotoAndStop(facingDirectionVar);
targetMC.gubbe._y = arrowColorVar._y;
targetMC.gubbe._x = arrowColorVar._x;
} else if (wipeAction == "load") {
targetMC.gubbe._x = _root["saveGameInfo" + currentSaveBoxNum].data.playerXpos;
targetMC.gubbe._y = _root["saveGameInfo" + currentSaveBoxNum].data.playerYpos;
targetMC.gubbe.gotoAndStop(facingDirectionVar);
}
if (dream == "on") {
dream_frame.gotoAndStop(2);
} else {
dream_frame.gotoAndStop(1);
}
displayFootCursor();
initiateLevelSound();
updateInventory();
userTrace("New location initialized: " + currentLocation);
userTrace("WipeAction: " + wipeActionr);
userTrace("arrowColorVar: " + arrowColorVar);
}
function initiateDepthPointObject(item) {
item.swapDepths(Math.floor(item._y));
depthList.push(Math.floor(item._y));
}
function initiateDepthLineObject(item, point) {
item.swapDepths(Math.floor(item._y));
redMiddleX = ((item._x + point._x) + point._x) / 3;
redMiddleY = ((item._y + point._y) + item._y) / 3;
hittestpoint.duplicateMovieClip("redTriangleMiddle" + r, r);
_root["redTriangleMiddle" + r]._x = redMiddleX;
_root["redTriangleMiddle" + r]._y = redMiddleY;
_root["redTriangleMiddle" + r]._visible = false;
depthList.push(_root["redTriangleMiddle" + r]);
greenMiddleX = ((item._x + point._x) + item._x) / 3;
greenMiddleY = ((item._y + point._y) + point._y) / 3;
hittestpoint.duplicateMovieClip("greenTriangleMiddle" + g, g);
_root["greenTriangleMiddle" + g]._x = greenMiddleX;
_root["greenTriangleMiddle" + g]._y = greenMiddleY;
_root["greenTriangleMiddle" + g]._visible = false;
depthList.push(_root["greenTriangleMiddle" + g]);
item.redPoint = _root["redTriangleMiddle" + r];
item.greenPoint = _root["greenTriangleMiddle" + g];
r++;
g++;
}
function depthSwap(item, point) {
if (getDistance(targetMC.gubbe, item.redPoint) < getDistance(targetMC.gubbe, item.greenPoint)) {
item.swapDepths(point._y);
} else {
item.swapDepths(item._y);
}
}
function drawStatements(item) {
userTrace("drawStatements: " + item);
backPlate.gotoAndStop(2);
statementSender = item;
c = item.statements.length;
spacing = 0;
while (c > 0) {
duplicateMovieClip (conversationStatment, "conversationStatment_" + c, c + 4000);
_root["conversationStatment_" + c]._x = 20;
_root["conversationStatment_" + c]._y = 440 - spacing;
_root["conversationStatment_" + c].txt.text = item.statements[c - 1];
_root["conversationStatment_" + c].txt._alpha = 80;
_root["conversationStatment_" + c].resultNum = c;
_root["conversationStatment_" + c].gotoAndPlay(1);
applyOutlineFilter(_root["conversationStatment_" + c].txt);
spacing = spacing + 25;
c--;
}
}
function executeReply(item) {
c = 1;
statementSender["result_" + item.resultNum]();
while (c < 10) {
removeMovieClip(_root["conversationStatment_" + c]);
c++;
}
backPlate.gotoAndStop(1);
}
function showMessage(descriptionText) {
userTrace("Message: " + descriptionText);
if (popup._currentframe == 1) {
if ((speaker == "") or (speaker == undefined)) {
header = "";
} else {
header = speaker;
}
dimInventory();
popup.gotoAndPlay("in");
txt = descriptionText;
}
}
function showSpeech(speechText, speaker, color) {
userTrace((speaker + ": ") + speechText);
if (speech._currentframe == 1) {
speechTxt = speechText;
speechCalibrator.gotoAndStop(2);
if ((color != "") or (color != undefined)) {
colorVar = color;
} else {
color = gubbeColor;
colorVar = color;
}
if (speaker == targetMC.gubbe) {
speech._x = targetMC.gubbe._x;
speech._y = (targetMC.gubbe._y - targetMC.gubbe._height) + 10;
} else if ((speaker != "") or (speaker != undefined)) {
speech._x = speaker._x;
speech._y = speaker._y - 50;
} else {
speech._x = targetMC.gubbe._x;
speech._y = (targetMC.gubbe._y - targetMC.gubbe._height) + 10;
}
dimInventory();
speech.gotoAndPlay("in");
}
}
function userTrace(traceMessage) {
if (previousTraceMessage != traceMessage) {
trace(traceMessage);
previousTraceMessage = traceMessage;
}
}
function translate() {
useTranslation = translateVerb(this, "Use");
withTranslation = translateVerb(this, "with");
examineTranslation = translateVerb(this, "Examine");
}
function translateVerb(item, obj_verb) {
if (userLanguage != "eng") {
checkedVerb = "";
v = 0;
while (v < verbs_eng.length) {
checkedVerb = verbs_eng[v];
if (checkedVerb == obj_verb) {
userTrace(((("This verb [" + obj_verb) + "] checked against this [") + verbs_eng[v]) + "] - MATCH!");
userTrace("Translates to: " + verbs_translated[v]);
userTrace("Hidden verb: " + obj_verb);
if ((verbs_translated[v] != "") or (verbs_translated[v] != undefined)) {
item.hiddenObjectVerb = obj_verb;
return(verbs_translated[v]);
}
item.hiddenObjectVerb = obj_verb;
return(verbs_eng[v]);
}
userTrace(((("This verb [" + obj_verb) + "] checked against this [") + verbs_eng[v]) + "] - does NOT match!");
v++;
}
if ((v == verbs_eng.length) and (checkedVerb != obj_verb)) {
userTrace("verb NOT found: " + obj_verb);
item.hiddenObjectVerb = obj_verb;
return(obj_verb);
}
} else {
item.hiddenObjectVerb = obj_verb;
return(obj_verb);
}
}
function translateName(item, obj_name) {
if (userLanguage != "eng") {
checkedName = "";
n = 0;
while (n < names_eng.length) {
checkedName = names_eng[n];
if (checkedName == obj_name) {
userTrace(((("This name [" + obj_name) + "] checked against this [") + names_eng[n]) + "] - MATCH!");
userTrace("Translates to: " + names_translated[n]);
userTrace("Hidden name: " + obj_name);
if ((names_translated[n] != "") or (names_translated[n] != undefined)) {
item.hiddenName = obj_name;
return(names_translated[n]);
}
item.hiddenName = obj_name;
return(names_eng[n]);
}
userTrace(((("This name [" + obj_name) + "] checked against this [") + names_eng[n]) + "] - does NOT match!");
n++;
}
if ((n == names_eng.length) and (checkedName != obj_name)) {
userTrace("name NOT found: " + obj_name);
item.hiddenName = obj_name;
return(obj_name);
}
} else {
item.hiddenName = obj_name;
return(obj_name);
}
}
function translateDescription(obj_description) {
if (userLanguage != "eng") {
checkedDescription = "";
d = 0;
while (d < descriptions_eng.length) {
checkedDescription = descriptions_eng[d];
if (checkedDescription == obj_description) {
userTrace(((("This description [" + obj_description) + "] checked against this [") + descriptions_eng[d]) + "] - MATCH!");
userTrace("Translates to: " + descriptions_translated[d]);
userTrace("Hidden description: " + obj_description);
if ((descriptions_translated[d] != "") or (descriptions_translated[d] != undefined)) {
return(descriptions_translated[d]);
}
return(descriptions_eng[d]);
}
userTrace(((("This description [" + obj_description) + "] checked against this [") + descriptions_eng[d]) + "] - does NOT match!");
d++;
}
if ((d == descriptions_eng.length) and (checkedDescription != obj_description)) {
userTrace("description NOT found: " + obj_description);
return(obj_description);
}
} else {
return(obj_description);
}
}
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);
}
}
fscommand ("allowscale", false);
fscommand ("showmenu", false);
debugMode = true;
userQuality = "HIGH";
userSound = "on";
userWaterEffects = "off";
userTutorial = "on";
userHearingAid = "off";
userColorAid = "off";
userLanguage = "";
translations = "on";
language = "";
XMLSource = "same folder";
xmlSourceArray = new Array("subfolder", "same folder", "cockroach");
n = 1;
i = 0;
t = 0;
s = 0;
o = 0;
forcedWalk = false;
header = "";
playState = "";
inventoryNum = 1;
spacing = 0;
pause = false;
eventInteraction = "Done";
hiddenTargetItem = "";
targetObject = "";
currentObjectName = "";
targetObjectTranslation = "";
actionTxt = "";
backgroundLoading = "";
scaleFactor = 0;
inventory = new Array();
inventoryTranslation = new Array();
states = new Array();
roomObject = new Array();
navpointArray = new Array();
depthList = new Array();
destinationNeighbours = new Array();
unobstructedNodes = new Array();
oldNodes = new Array();
failedFiles = new Array();
webLink = getSourceURL();
gameLoadPath = "./gateway_2/";
if (_level0.viewingThrough == "cockroach") {
loadPath = gameLoadPath;
offsetx = _level0.offsetx;
offsety = _level0.offsety;
} else {
loadPath = "";
offsetx = 0;
offsety = 0;
}
loadedFiles = new Array();
lTxt = ((((("[webLink: " + webLink) + "], ") + "[loadPath: ") + loadPath) + "], ") + "PRELOADING: ";
preloading = "";
f = 0;
var loadListener = new Object();
loadListener.onLoadComplete = function (target_mc) {
if (!isFileLoaded(fileArray[f])) {
lTxt = (lTxt + fileArray[f]) + ".swf";
loadedFiles.push(fileArray[f]);
userTrace(("LoadComplete: " + fileArray[f]) + ".swf");
debugBar["roomDataBox" + f].state = "- Done";
debugBar["roomDataBox" + f]._alpha = 100;
}
if (f < (fileArray.length - 1)) {
lTxt = lTxt + ", ";
f++;
loadBgFiles();
} else if (preloading != "done") {
lTxt = lTxt + " - preloading COMPLETE!";
preloading = "done";
}
};
loadListener.onLoadProgress = function (target_mc, bytesLoaded, bytesTotal) {
pTxt = Math.floor((bytesLoaded / bytesTotal) * 100) + "%";
};
loadListener.onLoadStart = function (target_mc) {
debugBar["roomDataBox" + f].state = "- Loading...";
debugBar["roomDataBox" + f]._alpha = 80;
debugBar["roomDataBox" + f].bn.enabled = true;
};
loadListener.onLoadError = function (target_mc, errorCode, httpStatus) {
userTrace(("LoadError: " + fileArray[f]) + ".swf");
userTrace("ErrorCode: " + errorCode);
lTxt = ((((((lTxt + "[ERROR: ") + fileArray[f]) + ".swf - did NOT load - ERRORCODE: ") + errorCode) + " - HTTPSTATUS: ") + httpStatus) + "], ";
if (f < (fileArray.length - 1)) {
failedFiles.push(fileArray[f]);
userTrace(("Moving on to: " + fileArray[f + 1]) + ".swf");
debugBar["roomDataBox" + f].state = "- Failed";
debugBar["roomDataBox" + f]._alpha = 50;
debugBar["roomDataBox" + f].bn.enabled = false;
f++;
loadBgFiles();
} else if (f < fileArray.length) {
failedFiles.push(fileArray[f]);
debugBar["roomDataBox" + f].state = "- Failed";
debugBar["roomDataBox" + f]._alpha = 50;
debugBar["roomDataBox" + f].bn.enabled = false;
}
};
var mcLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
_root.kongregateServices.connect();
didIWin = false;
testMode = true;
currUrl = _url.toLowerCase();
if (currUrl.indexOf("cockroach.se") <= 0) {
if (testMode == false) {
getURL ("http://cockroach.se", "_self");
}
}
navItemNum = 1;
navPoints = "";
nodeGraph = "";
p = 350;
objects = 1;
stage_X = 640;
stage_Y = 480;
askAboutTutorial = true;
newGame_withTutorial = "r1";
newGame_withoutTutorial = "hub";
mainMenu = "on";
mouseOverColor = 16777215 /* 0xFFFFFF */;
mouseOutColor = 0;
mainMenuFrame = 4;
cookieName = "gateway_2Cookie";
gubbeColor = 12040119 /* 0xB7B7B7 */;
motherColor = 15467010 /* 0xEC0202 */;
daugtherColor = 16625922 /* 0xFDB102 */;
mikeColor = 8421819 /* 0x8081BB */;
hearingAidColor = 16777215 /* 0xFFFFFF */;
firstWord = translateName(this, "first video tape");
secondWord = translateName(this, "second video tape");
thirdWord = translateName(this, "third video tape");
fourthWord = translateName(this, "fourth video tape");
fileArray = new Array("r1", "r2", "r3", "hub", "video", "eye", "toilet", "mirror", "red_bridge", "hall", "painting", "black_bridge", "phone_a", "table_a", "fire", "kitchen", "shock", "window", "phone_b", "telescope", "table_b", "living_room", "livingRoomTV", "girl");
MochiAd.showPreGameAd({id:"ab666589ee6ab24b", res:"640x480"});
Instance of Symbol 32 MovieClip "wipe" in Frame 1
onClipEvent (load) {
this.swapDepths(3000);
}
Instance of Symbol 37 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(100000000);
}
Frame 2
function initiateLevelSound() {
if (_currentframe == mainMenuFrame) {
currentSound = "";
sound_fadeUp(currentSound, 100, 100);
currentSound.setVolume(100);
stopAllSounds();
} else if (currentLocation == "r1") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "r2") {
currentSound = sound1;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "r3") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "hub") {
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") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if ((currentLocation == "toilet") or (currentLocation == "mirror")) {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(currentSound, 15, 15);
}
} else if (currentLocation == "fire") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "phone_a") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 35, 35);
}
} else if (currentLocation == "red_bridge") {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "table_a") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "shock") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 50, 50);
}
} else if (currentLocation == "window") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(currentSound, 15, 15);
}
} else if (currentLocation == "kitchen") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else if (currentLocation == "telescope") {
currentSound = sound5;
if (soundState != "playing") {
sound_fadeUp(currentSound, 50, 50);
}
} else if ((currentLocation == "phone_b") or (currentLocation == "table_b")) {
currentSound = sound5;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
} else {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(currentSound, 25, 25);
}
}
}
function loadLanguage(langVar) {
language = langVar;
userLanguage = langVar;
gameLanguage.gotoAndStop(1);
play();
}
currentSound = sound2;
sound0 = new Sound(this);
sound0.attachSound("silence");
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();
xmlError = false;
if (wipeAction == "choose_language") {
wipe.gotoAndPlay(24);
gameLanguage.gotoAndStop(2);
stop();
} else if (translations == "on") {
gameLanguage.gotoAndStop(2);
} else {
fakeGameLangue.gotoAndStop(2);
}
addState("firstTimeOnMenu");
Instance of Symbol 102 MovieClip "gameLanguage" in Frame 2
onClipEvent (load) {
this.tabEnabled = false;
this.tabChildren = false;
}
Instance of Symbol 104 MovieClip "fakeGameLangue" in Frame 2
onClipEvent (load) {
this.tabEnabled = false;
this.tabChildren = false;
}
Frame 3
stop();
xmlError = false;
if (language == "") {
language = "eng";
}
if (wipeAction == "XML") {
wipe.gotoAndPlay(24);
wipeAction = "";
stop();
}
XMLTxt = ("[LANGUAGE: " + language) + "], ";
var x = new XML();
x.ignoreWhite = true;
var captions = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
captions.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path1) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path1) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((((loadPath + webLink) + "gameCopy_") + language) + "/UICopy.xml");
path1 = (((loadPath + webLink) + "gameCopy_") + language) + "/UICopy.xml";
} else if (XMLSource == "same folder") {
x.load((((loadPath + webLink) + "UICopy_") + language) + ".xml");
path1 = (((loadPath + webLink) + "UICopy_") + language) + ".xml";
} else {
x.load(("http://cockroach.se/gateway_2/gameCopy_" + language) + "/UICopy.xml");
path1 = ("http://cockroach.se/gateway_2/gameCopy_" + language) + "/UICopy.xml";
}
var x = new XML();
x.ignoreWhite = true;
var gameCopy = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
gameCopy.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path2) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path2) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((((loadPath + webLink) + "gameCopy_") + language) + "/gameCopy.xml");
path2 = (((loadPath + webLink) + "gameCopy_") + language) + "/gameCopy.xml";
} else if (XMLSource == "same folder") {
x.load((((loadPath + webLink) + "gameCopy_") + language) + ".xml");
path2 = (((loadPath + webLink) + "gameCopy_") + language) + ".xml";
} else {
x.load(("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameCopy.xml");
path2 = ("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameCopy.xml";
}
var x = new XML();
x.ignoreWhite = true;
var verbs_eng = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
verbs_eng.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path3) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path3) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((loadPath + webLink) + "gameCopy_eng/gameVerbs.xml");
path3 = (loadPath + webLink) + "gameCopy_eng/gameVerbs.xml";
} else if (XMLSource == "same folder") {
x.load((loadPath + webLink) + "gameVerbs_eng.xml");
path3 = (loadPath + webLink) + "gameVerbs_eng.xml";
} else {
x.load("http://cockroach.se/gateway_2/gameCopy_eng/gameVerbs.xml");
path3 = "http://cockroach.se/gateway_2/gameCopy_eng/gameVerbs.xml";
}
var x = new XML();
x.ignoreWhite = true;
var verbs_translated = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
verbs_translated.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path4) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path4) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((((loadPath + webLink) + "gameCopy_") + language) + "/gameVerbs.xml");
path4 = (((loadPath + webLink) + "gameCopy_") + language) + "/gameVerbs.xml";
} else if (XMLSource == "same folder") {
x.load((((loadPath + webLink) + "gameVerbs_") + language) + ".xml");
path4 = (((loadPath + webLink) + "gameVerbs_") + language) + ".xml";
} else {
x.load(("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameVerbs.xml");
path4 = ("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameVerbs.xml";
}
var x = new XML();
x.ignoreWhite = true;
var names_eng = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
names_eng.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path5) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path5) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((loadPath + webLink) + "gameCopy_eng/gameObjects.xml");
path5 = (loadPath + webLink) + "gameCopy_eng/gameObjects.xml";
} else if (XMLSource == "same folder") {
x.load((loadPath + webLink) + "gameObjects_eng.xml");
path5 = (loadPath + webLink) + "gameObjects_eng.xml";
} else {
x.load("http://cockroach.se/gateway_2/gameCopy_eng/gameObjects.xml");
path5 = "http://cockroach.se/gateway_2/gameCopy_eng/gameObjects.xml";
}
var x = new XML();
x.ignoreWhite = true;
var names_translated = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
names_translated.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path6) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path6) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((((loadPath + webLink) + "gameCopy_") + language) + "/gameObjects.xml");
path6 = (((loadPath + webLink) + "gameCopy_") + language) + "/gameObjects.xml";
} else if (XMLSource == "same folder") {
x.load((((loadPath + webLink) + "gameObjects_") + language) + ".xml");
path6 = (((loadPath + webLink) + "gameObjects_") + language) + ".xml";
} else {
x.load(("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameObjects.xml");
path6 = ("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameObjects.xml";
}
var x = new XML();
x.ignoreWhite = true;
var descriptions_eng = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
descriptions_eng.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path7) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path7) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((loadPath + webLink) + "gameCopy_eng/gameDescriptions.xml");
path7 = (loadPath + webLink) + "gameCopy_eng/gameDescriptions.xml";
} else if (XMLSource == "same folder") {
x.load((loadPath + webLink) + "gameDescriptions_eng.xml");
path7 = (loadPath + webLink) + "gameDescriptions_eng.xml";
} else {
x.load("http://cockroach.se/gateway_2/gameCopy_eng/gameDescriptions.xml");
path7 = "http://cockroach.se/gateway_2/gameCopy_eng/gameDescriptions.xml";
}
var x = new XML();
x.ignoreWhite = true;
var descriptions_translated = new Array();
x.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
descriptions_translated.push(_local2[i].attributes.caption);
i++;
}
XMLTxt = ((XMLTxt + "[") + path8) + " - loaded!], ";
} else {
XMLTxt = ((XMLTxt + "[ERROR: ") + path8) + "- NOT loaded!], ";
}
};
if (XMLSource == "subfolder") {
x.load((((loadPath + webLink) + "gameCopy_") + language) + "/gameDescriptions.xml");
path8 = (((loadPath + webLink) + "gameCopy_") + language) + "/gameDescriptions.xml";
} else if (XMLSource == "same folder") {
x.load((((loadPath + webLink) + "gameDescriptions_") + language) + ".xml");
path8 = (((loadPath + webLink) + "gameDescriptions_") + language) + ".xml";
} else {
x.load(("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameDescriptions.xml");
path8 = ("http://cockroach.se/gateway_2/gameCopy_" + language) + "/gameDescriptions.xml";
}
Frame 4
function recolorWipe() {
myColor = new Color(wipe);
myColor.setRGB(0);
}
stop();
menuFrameDistance = 15;
removeNodeGraph();
if (backgroundLoading != "begun") {
loadBgFiles();
backgroundLoading = "begun";
}
if (popup._currentframe != 1) {
popup.play();
}
userTrace(("Back to menu: set " + sound0) + " volume to 100");
currentSound = sound0;
currentSound.setVolume(0);
sound_fadeUp(currentSound, 50, 50);
if (mainMenu == "off") {
if (wipeAction == "load") {
} else {
wipeAction = "start";
}
} else {
if (wipeAction == "load") {
wipe.gotoAndPlay("out");
} else if (wipeAction == "end") {
wipe.gotoAndPlay("out");
}
stop();
}
if (wipeAction == "inGameLoad") {
wipe.gotoAndPlay(20);
}
Instance of Symbol 184 MovieClip "loadError" in Frame 4
onClipEvent (load) {
this.swapDepths(2053);
}
Instance of Symbol 194 MovieClip "gx_firstgame" in Frame 4
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 215 MovieClip "loadData" in Frame 4
onClipEvent (load) {
this.swapDepths(2510);
}
Instance of Symbol 279 MovieClip "options" in Frame 4
onClipEvent (load) {
this.swapDepths(555);
}
Instance of Symbol 281 MovieClip "bgBlur" in Frame 4
onClipEvent (load) {
this.swapDepths(195);
}
Instance of Symbol 304 MovieClip "popup" in Frame 4
onClipEvent (load) {
this.swapDepths(3005);
}
Instance of Symbol 306 MovieClip "tempSaveDetector" in Frame 4
onClipEvent (load) {
if (_root.checkState("firstTimeOnMenu")) {
_root.userTrace("trying to detect a tempSave");
this.gotoAndPlay(2);
_root.removeState("firstTimeOnMenu");
}
}
Instance of Symbol 373 MovieClip "debugBar" in Frame 4
onClipEvent (load) {
this.swapDepths(99999999);
}
onClipEvent (keyDown) {
if (((Key.isDown(68) and (_root.debugMode == true)) and (_root.loadData._currentframe == 1)) and (_root.saveData._currentframe != 2)) {
play();
}
}
Frame 5
targetMC._visible = true;
cutscene.swapDepths(2000);
popup.swapDepths(2005);
blackFrame.useHandCursor = false;
translate();
blackFrame.tabEnabled = false;
inventoryClip.bn.tabEnabled = false;
gamemenu.saveBN.tabIndex = 1;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(27) or (Key.isDown(9) and (cutscene._currentframe == 1))) {
if ((((gamemenu._currentframe == 1) and (loadData._currentframe == 1)) and (saveData._currentframe == 1)) and (options._currentframe == 1)) {
_root.launchMenu("gamemenu");
} else if (((loadData._currentframe == 2) or (saveData._currentframe == 2)) or (options._currentframe == 2)) {
} else {
gamemenu.gotoAndStop(1);
_root.removeMenu();
}
}
};
Key.addListener(keyListener);
stop();
Instance of Symbol 516 MovieClip "inventoryClip" in Frame 5
onClipEvent (mouseMove) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
_root.targetCheck(this, true);
}
}
Instance of Symbol 204 MovieClip "middlePoint" in Frame 5
onClipEvent (mouseDown) {
_root.checkedItem = "";
_root.removedItem = "";
_root.addedItem = "";
}
Instance of Symbol 532 MovieClip "y1" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 532 MovieClip "y2" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 532 MovieClip "x1" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 532 MovieClip "x2" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 564 MovieClip "gamemenu" in Frame 5
onClipEvent (load) {
this.swapDepths(500);
this.tabEnabled = false;
this.tabChildren = false;
}
Instance of Symbol 566 MovieClip "combinationHolder" in Frame 5
onClipEvent (load) {
function launchAction_1() {
_root.pickUp(_parent.giver, "working remote", "", _root.descriptions_eng[0], false);
_root.removeFromInventory("remote");
_root.removeFromInventory("batteries");
_root.showMessage(_root.gameCopy[14], "");
_root.hideForInteraction();
}
function launchAction_2() {
_root.pickUp(this, "extended power cord", _root.gameCopy[32], _root.descriptions_eng[14], true);
_root.removeFromInventory("extension cord");
_root.removeFromInventory("power cord");
_root.addState("cord_extended");
_root.removeState("power cordPickedUp");
_root.hideForInteraction();
}
goalLength = 2;
goal_1 = "Use batteries with remote";
goal_2 = "Use extension cord with power cord";
}
Instance of Symbol 570 MovieClip "cutscene" in Frame 5
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 585 MovieClip "saveData" in Frame 5
onClipEvent (load) {
this.swapDepths(2199);
}
Instance of Symbol 597 MovieClip "gx_endgame" in Frame 5
onClipEvent (load) {
this.swapDepths(2022);
}
Instance of Symbol 599 MovieClip "backPlate" in Frame 5
onClipEvent (load) {
this.swapDepths(3999);
}
Instance of Symbol 281 MovieClip "bgBlur" in Frame 5
onClipEvent (load) {
this.swapDepths(195);
this.tabEnabled = false;
this.tabChildren = false;
}
Instance of Symbol 601 MovieClip "dream_frame" in Frame 5
onClipEvent (load) {
this.swapDepths(561);
}
Instance of Symbol 603 MovieClip "examineHolder" in Frame 5
onClipEvent (load) {
function launchAction_1() {
_root.saveTempLocation();
_root.initiateTransport(6, this, "note");
_root.hideAction();
_root.hideForInteraction();
}
goalLength = 1;
goal_1 = "Examine note";
}
Instance of Symbol 606 MovieClip "actionBar" in Frame 5
/* no clip actions */
Instance of Symbol 304 MovieClip "popup" in Frame 5
onClipEvent (load) {
this.swapDepths(3055);
}
Instance of Symbol 613 MovieClip "saveBar" in Frame 5
/* no clip actions */
Instance of Symbol 619 MovieClip "speech" in Frame 5
onClipEvent (load) {
orgX = _x;
orgY = _y;
this.swapDepths(30100);
}
Instance of Symbol 624 MovieClip "speechCalibrator" in Frame 5
onClipEvent (load) {
_visible = false;
}
Frame 6
removeNodeGraph();
gameExit();
dream_frame.gotoAndStop(1);
gamemenu.swapDepths(1);
cutscene.swapDepths(1);
popup.swapDepths(1);
gamemenu.swapDepths(1);
options.swapDepths(1);
loadData.swapDepths(1);
saveData.swapDepths(1);
wipe.swapDepths(1);
speech.swapDepths(1);
topFrame.swapDepths(1);
bgBlur.swapDepths(1);
gx_endgame.swapDepths(1);
debugBar.swapDepths(1);
gx_firstgame.swapDepths(1);
debugInfo.swapDepths(1);
logo.swapDepths(1);
roach.swapDepths(1);
loadError.swapDepths(1);
this.createEmptyMovieClip("cleaner", 1);
stopAllSounds();
Key.removeListener(keyListener);
inventory = new Array();
inventoryTranslation = new Array();
states = new Array();
inventoryDescription = new Array();
roomObject = new Array();
navpointArray = new Array();
depthList = new Array();
destinationNeighbours = new Array();
unobstructedNodes = new Array();
oldNodes = new Array();
objects = 1;
navItemNum = 1;
inventoryNum = 1;
spacing = 0;
if (wipeAction == "end") {
removeTempSave();
gotoAndStop ("menu");
} else if (wipeAction == "XML") {
gotoAndStop ("XML_load");
} else if (wipeAction == "choose_language") {
gotoAndStop ("languageTunnel");
}
Symbol 32 MovieClip Frame 1
if (_parent.popup._currentframe == 1) {
_root.pause = false;
}
stop();
Symbol 32 MovieClip Frame 2
_root.pause = true;
blackFrame.useHandCursor = false;
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();
Instance of Symbol 14 MovieClip in Symbol 32 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 32 MovieClip Frame 20
_root.pause = true;
if (_parent.gamemenu._currentframe != 1) {
_parent.gamemenu.gotoAndStop(1);
}
play();
Symbol 32 MovieClip Frame 21
stop();
if (_root.bgBlur._currentframe != 1) {
_root.bgBlur.gotoAndStop(1);
}
if (_parent.speech._currentframe != 1) {
_parent.speech.gotoAndPlay("out");
}
if (_parent.wipeAction == "transport") {
_parent.transport(_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("eraser");
gotoAndPlay ("out");
}
if (_parent.wipeAction == "load") {
_root.deleteInventory();
_parent.hideLoadData();
_parent.loadGame();
nextFrame();
}
if (_parent.wipeAction == "roomLoad") {
_root.deleteInventory();
_parent.hideLoadData();
_root.loadRoom();
nextFrame();
}
if (_parent.wipeAction == "XML") {
_root.deleteInventory();
_parent.gotoAndStop("eraser");
gotoAndPlay ("out");
}
if (_parent.wipeAction == "choose_language") {
_root.deleteInventory();
_parent.gotoAndStop("eraser");
gotoAndPlay ("out");
}
Symbol 32 MovieClip Frame 22
percent_txt = "0 %";
loader.bar._xscale = 0;
stopAllSounds();
_root.bgBlur.gotoAndStop(1);
this.onEnterFrame = function () {
if (_root.isFileLoaded(_root.currentLocation)) {
_root.userTrace(("the file " + _root.currentLocation) + " has been loaded");
loader._visible = false;
} else {
loader._visible = true;
}
percent = Math.floor((_root.targetMC.getBytesLoaded() / _root.targetMC.getBytesTotal()) * 100);
percent_txt = percent + " %";
loader.bar._xscale = percent;
if (percent >= 100) {
_root.targetMC.gotoAndStop(2);
_root.wipe.gotoAndPlay("out");
userTrace("file loaded");
this.onEnterFrame = undefined;
} else {
stop();
}
};
Instance of Symbol 26 MovieClip "loader" in Symbol 32 MovieClip Frame 22
onClipEvent (load) {
_visible = false;
}
Symbol 32 MovieClip Frame 23
_parent.hideLoadData();
_parent.hideSaveData();
if (_root.targetMC._currentframe == 2) {
play();
} else if (_parent._currentframe != _root.mainMenuFrame) {
gotoAndStop (22);
}
Symbol 32 MovieClip Frame 24
if (userSound != "on") {
_root.currentSound.setVolume(0);
}
Symbol 32 MovieClip Frame 38
if (_parent.wipeAction == "load") {
_parent.wipeAction == "";
if (_root.currentSaveBoxNum != 0) {
} else {
_root.currentSaveBoxNum = "";
}
}
if (_root._currentframe == _root.mainMenuFrame) {
s = 10;
_root["saveGameInfo" + s] = SharedObject.getLocal(_root.cookieName + s);
if (_root["saveGameInfo" + s].data.gameSaved == true) {
_root.launchMenu("error");
_root.userTrace("Tempsave detected");
} else {
_root.userTrace("No tempsave detected");
}
}
Symbol 32 MovieClip Frame 41
if (_parent.wipeAction == "end") {
initiateLevelSound();
_parent.wipeAction == "";
} else if (_parent.wipeAction == "XML") {
} else if (_parent.wipeAction == "choose_language") {
} else {
_root.removeTempSave();
_parent.recolorWipe();
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 3
gotoAndStop (1);
Symbol 35 MovieClip Frame 5
gotoAndStop (1);
Symbol 35 MovieClip Frame 7
gotoAndStop (1);
Symbol 629 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 64 MovieClip Frame 1
stop();
Instance of Symbol 61 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
if (_root.girlGone == true) {
_visible = false;
}
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 8
stop();
Symbol 79 MovieClip Frame 15
_parent._visible = false;
Symbol 81 MovieClip Frame 1
txt.text = "English";
txt.autoSize = "middle";
Symbol 83 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
_root.loadLanguage("eng");
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
txt.text = "Italiano";
txt.autoSize = "middle";
Symbol 87 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
_root.loadLanguage("itl");
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
txt.text = "Svenska";
txt.autoSize = "middle";
Symbol 91 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
_root.loadLanguage("swe");
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
txt.text = "CHOOSE LANGUAGE";
txt.autoSize = "middle";
Symbol 97 MovieClip Frame 1
txt.text = "Deutsch";
txt.autoSize = "middle";
Symbol 98 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
_root.loadLanguage("ger");
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
function bars_in() {
_parent["bn" + ii]._visible = true;
_parent["bn" + i].backplate.gotoAndPlay("in");
i++;
ii++;
}
function bars_out() {
_parent["bn" + i].backplate.gotoAndPlay("out");
i++;
}
i = 1;
ii = 0;
Symbol 101 MovieClip Frame 6
bars_in();
Symbol 101 MovieClip Frame 7
bars_in();
Symbol 101 MovieClip Frame 8
bars_in();
Symbol 101 MovieClip Frame 9
bars_in();
Symbol 101 MovieClip Frame 10
bars_in();
Symbol 101 MovieClip Frame 11
bars_in();
Symbol 101 MovieClip Frame 12
gotoAndStop (1);
Symbol 101 MovieClip Frame 13
_parent.header._visible = false;
bars_out();
Symbol 101 MovieClip Frame 14
bars_out();
Symbol 101 MovieClip Frame 15
bars_out();
Symbol 101 MovieClip Frame 16
bars_out();
Symbol 101 MovieClip Frame 17
bars_out();
Symbol 101 MovieClip Frame 18
bars_out();
Symbol 101 MovieClip Frame 26
_root.removeMenu();
_parent.gotoAndStop(1);
gotoAndStop (1);
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
blackFrame.useHandCursor = false;
_root.menuDisabled = false;
_root.hideAction();
_root.pause = true;
_root.targetMC.mouseCircle._visible = false;
blackFrame.tabEnabled = false;
tabChildren = false;
bn1._visible = false;
bn2._visible = false;
bn3._visible = false;
bn4._visible = false;
bn5._visible = false;
Symbol 102 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
_root.loadLanguage("eng");
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 12.5);
}
Symbol 109 MovieClip Frame 25
_parent.nextFrame();
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
_parent._parent.MCsound.play();
Symbol 132 MovieClip Frame 12
gotoAndPlay ("channelSwap");
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.girlGone != true) {
if (_root.bgBlur._currentframe == 1) {
play();
} else {
stop();
}
}
}
Symbol 132 MovieClip Frame 17
gotoAndPlay ("loop");
Symbol 132 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 132 MovieClip Frame 35
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 132 MovieClip Frame 36
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 132 MovieClip Frame 37
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 132 MovieClip Frame 38
if (_root.speech._currentframe != 1) {
_root.speech.gotoAndStop(1);
}
Symbol 132 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 132 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
if (_root.girlGone != true) {
gotoAndPlay ("loop");
}
}
Symbol 153 Button
on (release) {
if (_root.popup._currentframe != 1) {
_root.popup.play();
}
if (_root.askAboutTutorial == true) {
_root.launchMenu("new");
} else {
_root.addState("commingFromMainMenu");
_root.wipeAction = "start";
_root.wipe.play();
_root.defaultCurrentLocation = _root.newGame_withoutTutorial;
}
}
on (rollOver) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOverColor);
}
Symbol 154 MovieClip Frame 6
errorQuota = 50;
if ((_root.captions[0] != undefined) and (error <= errorQuota)) {
_root.xmlError = false;
nextFrame();
} else if ((_root.captions[0] == undefined) and (error < errorQuota)) {
gotoAndPlay (2);
error++;
} else if ((_root.captions[0] == undefined) and (error >= errorQuota)) {
_root.xmlError = true;
nextFrame();
}
Symbol 154 MovieClip Frame 7
if (_root.xmlError) {
txt.text = "_NEW GAME";
} else {
txt.text = _root.captions[0];
}
txt.autoSize = "left";
bnParts.gx_left._x = 0;
txt._x = 0 + bnParts.gx_left._width;
txt._y = 3.5;
bnParts.gx_right._x = (txt._x + txt._width) + 1.5;
bnParts.gx_middle._x = 0 + bnParts.gx_left._width;
middleSize = bnParts.gx_right._x - bnParts.gx_middle._x;
bnParts.gx_middle._width = middleSize + 0.5;
bn._y = 0;
bn._x = 0;
bn._width = this._width;
bn._height = this._height;
bn._alpha = 0;
_x = ((_root.stage_X - _width) - _root.menuFrameDistance);
stop();
Symbol 156 Button
on (release) {
_root.launchMenu("load");
}
on (rollOver) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOverColor);
}
Symbol 157 MovieClip Frame 4
if ((_root.captions[1] == undefined) and (_root.xmlError != true)) {
gotoAndPlay (2);
} else {
nextFrame();
}
Symbol 157 MovieClip Frame 5
if (_root.xmlError) {
txt.text = "_LOAD GAME";
} else {
txt.text = _root.captions[1];
}
txt.autoSize = "left";
bnParts.gx_left._x = 0;
txt._x = 0 + bnParts.gx_left._width;
txt._y = 3.5;
bnParts.gx_right._x = (txt._x + txt._width) + 1.5;
bnParts.gx_middle._x = 0 + bnParts.gx_left._width;
middleSize = bnParts.gx_right._x - bnParts.gx_middle._x;
bnParts.gx_middle._width = middleSize + 0.5;
bn._y = 0;
bn._x = 0;
bn._width = this._width;
bn._height = this._height;
bn._alpha = 0;
_x = ((_root.stage_X - _width) - _root.menuFrameDistance);
stop();
Symbol 159 Button
on (release) {
_root.launchMenu("options");
}
on (rollOver) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOverColor);
}
Symbol 160 MovieClip Frame 4
if ((_root.captions[2] == undefined) and (_root.xmlError != true)) {
gotoAndPlay (2);
} else {
nextFrame();
}
Symbol 160 MovieClip Frame 5
if (_root.xmlError) {
txt.text = "_OPTIONS";
} else {
txt.text = _root.captions[2];
}
txt.autoSize = "left";
bnParts.gx_left._x = 0;
txt._x = 0 + bnParts.gx_left._width;
txt._y = 3.5;
bnParts.gx_right._x = (txt._x + txt._width) + 1.5;
bnParts.gx_middle._x = 0 + bnParts.gx_left._width;
middleSize = bnParts.gx_right._x - bnParts.gx_middle._x;
bnParts.gx_middle._width = middleSize + 0.5;
bn._y = 0;
bn._x = 0;
bn._width = this._width;
bn._height = this._height;
bn._alpha = 0;
_x = ((_root.stage_X - _width) - _root.menuFrameDistance);
stop();
Symbol 163 Button
on (release) {
gotoAndPlay ("out");
_root.removeMenu();
}
Symbol 169 MovieClip Frame 1
txt.text = _root.captions[44];
txt.autoSize = "middle";
txt3.text = _root.captions[44];
txt3.autoSize = "middle";
txt2.text = _root.captions[45];
txt2.autoSize = "middle";
stop();
Symbol 175 MovieClip Frame 1
txt.text = _root.captions[4];
txt.autoSize = "middle";
stop();
Symbol 176 Button
on (release) {
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = _root.newGame_withTutorial;
play();
}
Symbol 180 MovieClip Frame 1
txt.text = _root.captions[5];
txt.autoSize = "middle";
stop();
Symbol 181 Button
on (release) {
_root.addState("commingFromMainMenu");
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = _root.newGame_withoutTutorial;
play();
}
Symbol 182 Button
on (release) {
_root.currentSaveBoxNum = 10;
_parent.wipeAction = "load";
_parent.wipe.play();
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 183 Button
on (release) {
_root.saveGameInfo10.data.gameSaved = false;
_root.removeMenu();
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
blackFrame.useHandCursor = false;
Symbol 184 MovieClip Frame 9
stop();
Symbol 184 MovieClip Frame 10
Symbol 186 Button
on (release) {
gotoAndPlay ("out");
_root.removeMenu();
}
Symbol 191 MovieClip Frame 1
txt.text = _root.captions[3];
txt.autoSize = "middle";
stop();
Symbol 192 Button
on (release) {
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = _root.newGame_withTutorial;
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 193 Button
on (release) {
_root.addState("commingFromMainMenu");
_parent.wipeAction = "start";
_parent.wipe.play();
_root.defaultCurrentLocation = _root.newGame_withoutTutorial;
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
blackFrame.useHandCursor = false;
Symbol 194 MovieClip Frame 9
stop();
Symbol 194 MovieClip Frame 10
Symbol 196 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 196 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 196 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 196 MovieClip Frame 4
SlideNext();
Symbol 196 MovieClip Frame 5
SlideNext();
Symbol 196 MovieClip Frame 6
SlideNext();
Symbol 196 MovieClip Frame 7
SlideNext();
Symbol 196 MovieClip Frame 8
SlideNext();
Symbol 196 MovieClip Frame 9
SlideNext();
Symbol 196 MovieClip Frame 10
SlideNext();
Symbol 196 MovieClip Frame 11
SlideNext();
Symbol 196 MovieClip Frame 12
SlideNext();
Symbol 196 MovieClip Frame 13
SlideNext();
Symbol 196 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 = "";
}
if ((_root.popup._currentframe == 1) and (_root.speech._currentframe == 1)) {
_root.updateInventory();
}
Symbol 198 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 198 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);
play();
soundFade();
Symbol 198 MovieClip Frame 3
soundFade();
Symbol 198 MovieClip Frame 4
soundFade();
gotoAndPlay (3);
Symbol 203 MovieClip Frame 1
txt.text = _root.captions[1];
txt.autoSize = "middle";
stop();
Symbol 206 Button
on (release) {
if (_root._currentframe != _root.mainMenuFrame) {
if (_root.mainMenu == "on") {
_root.gamemenu.gotoAndStop(3);
} else {
_root.gamemenu.gotoAndStop(2);
}
}
if (_root._currentframe == _root.mainMenuFrame) {
_root.removeMenu();
}
_root.hideLoadData();
}
on (rollOver) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOverColor);
}
Symbol 207 MovieClip Frame 1
txt.text = txtVar;
txt.autoSize = "left";
bnParts.gx_left._x = 0;
txt._x = 0 + bnParts.gx_left._width;
txt._y = 3;
bnParts.gx_right._x = (txt._x + txt._width) + 1.5;
bnParts.gx_middle._x = 0 + bnParts.gx_left._width;
middleSize = bnParts.gx_right._x - bnParts.gx_middle._x;
bnParts.gx_middle._width = middleSize;
bn._y = 0;
bn._x = 0;
bn._width = bnParts._width;
bn._height = bnParts._height;
bn._alpha = 0;
_parent.closeBN._x = (855 - _parent.closeBN._width) - 20;
stop();
Symbol 212 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOutColor);
txtColor = new Color(nameTXT);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
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 213 MovieClip Frame 1
userNumTxt = userNum + ".";
stop();
Symbol 214 MovieClip Frame 1
function bars_in() {
_parent["gameDataBox" + ii]._visible = true;
_parent["gameDataBox" + i].backplate.gotoAndPlay("in");
i++;
ii++;
}
i = 1;
ii = 0;
Symbol 214 MovieClip Frame 2
bars_in();
Symbol 214 MovieClip Frame 3
bars_in();
Symbol 214 MovieClip Frame 4
bars_in();
Symbol 214 MovieClip Frame 5
bars_in();
Symbol 214 MovieClip Frame 6
bars_in();
Symbol 214 MovieClip Frame 7
bars_in();
Symbol 214 MovieClip Frame 8
bars_in();
Symbol 214 MovieClip Frame 9
bars_in();
Symbol 214 MovieClip Frame 10
bars_in();
Symbol 214 MovieClip Frame 11
bars_in();
Symbol 214 MovieClip Frame 12
gotoAndStop (1);
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
stop();
Instance of Symbol 204 MovieClip in Symbol 215 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.pause = true;
}
Instance of Symbol 207 MovieClip "closeBN" in Symbol 215 MovieClip Frame 2
onClipEvent (load) {
txtVar = _root.captions[8];
}
Instance of Symbol 213 MovieClip "gameDataBox" in Symbol 215 MovieClip Frame 2
onClipEvent (load) {
_parent.gameDataBox._visible = false;
}
Symbol 222 Button
on (release) {
if (_root._currentframe == _root.mainMenuFrame) {
_root.removeMenu();
_parent.gotoAndStop(1);
} else {
if (_root._currentframe != _root.mainMenuFrame) {
if (_root.mainMenu == "on") {
_root.gamemenu.gotoAndStop(3);
} else {
_root.gamemenu.gotoAndStop(2);
}
}
_parent.gotoAndStop(1);
}
}
on (rollOver) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOverColor);
}
Symbol 223 MovieClip Frame 1
txt.text = txtVar;
txt.autoSize = "left";
bnParts.gx_left._x = 0;
txt._x = 0 + bnParts.gx_left._width;
txt._y = 3;
bnParts.gx_right._x = (txt._x + txt._width) + 1.5;
bnParts.gx_middle._x = 0 + bnParts.gx_left._width;
middleSize = bnParts.gx_right._x - bnParts.gx_middle._x;
bnParts.gx_middle._width = middleSize + 0.5;
bn._y = 0;
bn._x = 0;
bn._width = bnParts._width;
bn._height = bnParts._height;
bn._alpha = 0;
_parent.closeBN._x = (855 - _parent.closeBN._width) - 20;
stop();
Symbol 225 MovieClip Frame 1
txt.text = _root.captions[2];
txt.autoSize = "middle";
stop();
Symbol 232 Button
on (release) {
_root.userSound = "off";
sound_bock.gotoAndStop(2);
_root.sound_fadeDown(_root.currentSound, 0, 25);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 233 Button
on (release) {
_root.userSound = "on";
sound_bock.gotoAndStop(3);
_root.sound_fadeUp(_root.currentSound, 25, 25);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 236 MovieClip Frame 1
if (soapbubble2MainTimeline.userSound == "off") {
gotoAndStop (2);
} else {
stop();
}
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 3
stop();
Symbol 241 MovieClip Frame 1
txt1.text = _root.captions[14];
txt1.autoSize = "left";
txt2.text = _root.captions[15];
txt2.autoSize = "left";
txt3.text = _root.captions[16];
txt3.autoSize = "middle";
txt4.text = _root.captions[17];
txt4.autoSize = "middle";
Symbol 242 Button
on (release) {
_root.gameChange = true;
_root.userColorAid = "off";
color_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 243 Button
on (release) {
_root.gameChange = true;
_root.userColorAid = "on";
color_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 248 MovieClip Frame 1
txt1.text = _root.captions[22];
txt1.autoSize = "left";
txt2.text = _root.captions[23];
txt2.autoSize = "left";
txt3.text = _root.captions[24];
txt3.autoSize = "middle";
txt4.text = _root.captions[25];
txt4.autoSize = "middle";
Symbol 253 MovieClip Frame 1
txt1.text = _root.captions[30];
txt1.autoSize = "left";
txt2.text = _root.captions[31];
txt2.autoSize = "left";
txt3.text = _root.captions[32];
txt3.autoSize = "middle";
txt4.text = _root.captions[33];
txt4.autoSize = "middle";
Symbol 254 Button
on (release) {
_root.gameChange = true;
_root.userTutorial = "off";
tutorial_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 255 Button
on (release) {
_root.gameChange = true;
_root.userTutorial = "on";
tutorial_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 260 MovieClip Frame 1
txt1.text = _root.captions[18];
txt1.autoSize = "left";
txt2.text = _root.captions[19];
txt2.autoSize = "left";
txt3.text = _root.captions[20];
txt3.autoSize = "middle";
txt4.text = _root.captions[21];
txt4.autoSize = "middle";
Symbol 261 Button
on (release) {
_root.gameChange = true;
_root.userHearingAid = "off";
hearing_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 262 Button
on (release) {
_root.gameChange = true;
_root.userHearingAid = "on";
hearing_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 267 MovieClip Frame 1
txt1.text = _root.captions[26];
txt1.autoSize = "left";
txt2.text = _root.captions[27];
txt2.autoSize = "left";
txt3.text = _root.captions[28];
txt3.autoSize = "middle";
txt4.text = _root.captions[29];
txt4.autoSize = "middle";
Symbol 268 Button
on (release) {
_root.gameChange = true;
_root.userQuality = "LOW";
quality_bock.gotoAndStop(3);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 269 Button
on (release) {
_root.gameChange = true;
_root.userQuality = "MEDIUM";
quality_bock.gotoAndStop(2);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 270 Button
on (release) {
_root.gameChange = true;
_root.userQuality = "HIGH";
quality_bock.gotoAndStop(4);
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 271 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 271 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 3
stop();
Symbol 271 MovieClip Frame 4
stop();
Symbol 277 MovieClip Frame 1
txt1.text = _root.captions[9];
txt1.autoSize = "left";
txt2.text = _root.captions[10];
txt2.autoSize = "left";
txt3.text = _root.captions[11];
txt3.autoSize = "middle";
txt4.text = _root.captions[12];
txt4.autoSize = "middle";
txt5.text = _root.captions[13];
txt5.autoSize = "middle";
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
stop();
Instance of Symbol 223 MovieClip "closeBN" in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
txtVar = _root.captions[8];
}
Instance of Symbol 14 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
if (_root.userSound == "off") {
_parent.sound_bock.gotoAndStop(2);
} else {
_parent.sound_bock.gotoAndStop(1);
}
}
Instance of Symbol 14 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
if (_root.userColorAid == "off") {
_parent.color_bock.gotoAndStop(2);
} else {
_parent.color_bock.gotoAndStop(1);
}
}
Instance of Symbol 14 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
if (_root.userWaterEffects == "off") {
_parent.water_bock.gotoAndStop(2);
} else {
_parent.water_bock.gotoAndStop(1);
}
}
Instance of Symbol 14 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
if (_root.userTutorial == "off") {
_parent.tutorial_bock.gotoAndStop(2);
} else {
_parent.tutorial_bock.gotoAndStop(1);
}
}
Instance of Symbol 14 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
if (_root.userHearingAid == "off") {
_parent.hearing_bock.gotoAndStop(2);
} else {
_parent.hearing_bock.gotoAndStop(1);
}
}
Instance of Symbol 14 MovieClip in Symbol 279 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;
}
Symbol 281 MovieClip Frame 1
_root.enableMenu();
_root.showInventory();
if (_root._currentframe == _root.mainMenuFrame) {
_root.disableBlur(_root.menuMC);
} else {
_root.disableBlur(_root.targetMC);
}
_root.pause = false;
if (_root._currentframe == _root.mainMenuFrame) {
_parent.bnNew._visible = true;
_parent.bnLoad._visible = true;
_parent.bnOptions._visible = true;
_parent.roach._visible = true;
_parent.logo._visible = true;
}
stop();
Symbol 281 MovieClip Frame 2
_root.pause = true;
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = false;
_root.disableMenu();
_root.hideInventory();
_parent.targetMC.gubbe.clickSpot_x = _parent.targetMC.gubbe._x;
_parent.targetMC.gubbe.clickSpot_y = _parent.targetMC.gubbe._y;
_parent.targetMC.gubbe.walkState = "stopped";
if (_root._currentframe == _root.mainMenuFrame) {
_root.enableBlur(_root.menuMC);
} else {
_root.enableBlur(_root.targetMC);
}
if (_root._currentframe == _root.mainMenuFrame) {
_parent.bnNew._visible = false;
_parent.bnLoad._visible = false;
_parent.bnOptions._visible = false;
_parent.roach._visible = false;
_parent.logo._visible = false;
}
Symbol 281 MovieClip Frame 3
blackFrame.useHandCursor = false;
Symbol 281 MovieClip Frame 6
blackFrame.useHandCursor = false;
Symbol 281 MovieClip Frame 7
stop();
_root.pause = true;
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.tabEnabled = false;
if (_root.currentMenuItem == "options") {
_root.options.play();
} else if (_root.currentMenuItem == "load") {
_root.displayLoadData();
} else if (_root.currentMenuItem == "new") {
_root.gx_firstgame.gotoAndPlay("in");
} else if (_root.currentMenuItem == "error") {
_root.loadError.gotoAndPlay("in");
} else if (_root.currentMenuItem == "gamemenu") {
if (_root.mainMenu == "on") {
_parent.gamemenu.gotoAndStop(3);
} else {
_parent.gamemenu.gotoAndStop(2);
}
}
Symbol 281 MovieClip Frame 8
_parent.targetMC.mouseCircle._visible = true;
play();
Symbol 283 Button
on (press) {
gotoAndPlay ("out");
}
Symbol 303 MovieClip Frame 2
txt.text = _parent._parent.txt;
if (txt.length > 35) {
txt.wordWrap = true;
txt.autoSize = "left";
bg_top._visible = true;
bg_middle._visible = true;
bg_bottom._visible = true;
bg_left._visible = false;
bg_middle2._visible = false;
bg_right._visible = false;
txt._x = -(txt._width / 2);
txt._y = -(txt._height / 2);
bg_top._y = txt._y - 2;
bg_middle._y = bg_top._y + bg_top._height;
bg_middle._height = txt._height - 8;
bg_bottom._y = bg_middle._y + bg_middle._height;
} else {
txt.wordWrap = false;
txt.autoSize = "center";
bg_top._visible = false;
bg_middle._visible = false;
bg_bottom._visible = false;
bg_left._visible = true;
bg_middle2._visible = true;
bg_right._visible = true;
txt._x = -(txt._width / 2);
txt._y = -(txt._height / 2);
bgHeight = (-(bg_left._height / 2)) + 0.3;
bg_left._x = txt._x - 6.5;
bg_left._y = bgHeight;
bg_middle2._x = bg_left._x + bg_left._width;
bg_middle2._y = bgHeight;
bg_middle2._width = txt._width + 4;
bg_right._x = bg_middle2._x + bg_middle2._width;
bg_right._y = bgHeight;
}
stop();
Symbol 304 MovieClip Frame 1
stop();
_root.pause = false;
if (_root.eventInteraction == "Begun") {
_root.initiateStreamingEvent();
}
_parent.targetMC.mouseCircle._visible = true;
Symbol 304 MovieClip Frame 2
_root.pause = true;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.useHandCursor = false;
_root.hiddenActionTxt = "";
play();
Instance of Symbol 14 MovieClip in Symbol 304 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 304 MovieClip Frame 3
_root.pause = true;
Symbol 304 MovieClip Frame 4
_root.pause = true;
Symbol 304 MovieClip Frame 5
_root.pause = true;
Symbol 304 MovieClip Frame 6
_root.pause = true;
Symbol 304 MovieClip Frame 7
_root.pause = true;
Symbol 304 MovieClip Frame 8
_root.pause = true;
Symbol 304 MovieClip Frame 9
_root.pause = true;
stop();
Symbol 304 MovieClip Frame 10
_root.updateInventory();
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = true;
Symbol 304 MovieClip Frame 11
_root.pause = true;
Symbol 304 MovieClip Frame 12
_root.pause = true;
Symbol 304 MovieClip Frame 13
_root.pause = true;
Symbol 304 MovieClip Frame 14
_root.pause = true;
Symbol 304 MovieClip Frame 15
_root.pause = true;
if (_root.blurState == "on") {
_root.disableBlur(_root.targetMC);
}
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 2
play();
Symbol 306 MovieClip Frame 10
_root.userTrace("1");
if (_root._currentframe == _root.mainMenuFrame) {
s = 10;
_root.userTrace("2");
_root["saveGameInfo" + s] = SharedObject.getLocal(_root.cookieName + s);
if (_root["saveGameInfo" + s].data.gameSaved == true) {
_root.launchMenu("error");
_root.userTrace("Tempsave detected");
} else {
_root.userTrace("No tempsave detected");
}
}
Symbol 312 Button
on (release) {
getURL ("http://cockroach.se", "_blank");
}
Symbol 335 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 339 Button
on (release) {
_root.wipeAction = "end";
if (_root.wipe._currentframe != 1) {
_root.wipe.gotoAndPlay("optionsDelta");
} else {
_root.wipe.play();
}
_parent.play();
}
Symbol 341 Button
on (release) {
_root.drawNodeGraph();
}
Symbol 343 Button
on (release) {
_root.showNavPoints();
}
Symbol 345 Button
on (release) {
_root.debugInfo.play();
if (_parent.xmlLoadInfo._currentframe == 2) {
_parent.xmlLoadInfo.gotoAndStop(1);
}
if (_parent.preloadInfo._currentframe == 2) {
_parent.preloadInfo.gotoAndStop(1);
}
if (roomBN == "drawn") {
deleteRoomBns();
}
if (xmlSourceBN == "drawn") {
deleteXmlSourceBNs();
}
}
Symbol 347 Button
on (release) {
_parent.preloadInfo.play();
if (_parent.xmlLoadInfo._currentframe == 2) {
_parent.xmlLoadInfo.gotoAndStop(1);
}
if (_root.debugInfo._currentframe == 2) {
_root.debugInfo.gotoAndStop(1);
}
if (roomBN == "drawn") {
deleteRoomBns();
}
if (xmlSourceBN == "drawn") {
deleteXmlSourceBNs();
}
}
Symbol 349 Button
on (release) {
if (roomBN != "drawn") {
roomBN = "drawn";
s = 0;
ySpacing = 0;
ySpacing2 = 0;
ySpacing3 = 0;
xCorrection = 135;
while (s < _root.fileArray.length) {
duplicateMovieClip (_root.debugBar.roomDataBox, "roomDataBox" + s, s);
if (s < 13) {
_root.debugBar["roomDataBox" + s]._x = -150 - xCorrection;
_root.debugBar["roomDataBox" + s]._y = -465 + ySpacing;
ySpacing = ySpacing + 25;
} else if (s < 26) {
_root.debugBar["roomDataBox" + s]._x = 55 - xCorrection;
_root.debugBar["roomDataBox" + s]._y = -465 + ySpacing2;
ySpacing2 = ySpacing2 + 25;
} else {
_root.debugBar["roomDataBox" + s]._x = 190 - xCorrection;
_root.debugBar["roomDataBox" + s]._y = -465 + ySpacing3;
ySpacing3 = ySpacing3 + 25;
}
_root.debugBar["roomDataBox" + s].gotoAndStop(2);
_root.debugBar["roomDataBox" + s].roomToLoad = _root.fileArray[s];
if (_root.isFileLoaded(_root.fileArray[s])) {
_root.debugBar["roomDataBox" + s]._alpha = 100;
_root.debugBar["roomDataBox" + s].bn.enabled = true;
_root.debugBar["roomDataBox" + s].state = "- Done";
} else if (_root.hasFileFailed(_root.fileArray[s])) {
_root.debugBar["roomDataBox" + s]._alpha = 50;
_root.debugBar["roomDataBox" + s].bn.enabled = false;
_root.debugBar["roomDataBox" + s].state = "- Failed";
} else {
_root.debugBar["roomDataBox" + s]._alpha = 80;
_root.debugBar["roomDataBox" + s].bn.enabled = true;
_root.debugBar["roomDataBox" + s].state = "";
}
s++;
}
if (_parent.xmlLoadInfo._currentframe == 2) {
_parent.xmlLoadInfo.gotoAndStop(1);
}
if (_parent.preloadInfo._currentframe == 2) {
_parent.preloadInfo.gotoAndStop(1);
}
if (_root.debugInfo._currentframe == 2) {
_root.debugInfo.gotoAndStop(1);
}
if (xmlSourceBN == "drawn") {
deleteXmlSourceBNs();
}
} else {
deleteRoomBns();
}
}
Symbol 351 Button
on (release) {
_root.drawDepthTriangles();
}
Symbol 353 Button
on (release) {
_root.wipeAction = "choose_language";
if (_root.wipe._currentframe != 1) {
_root.wipe.gotoAndPlay("optionsDelta");
} else {
_root.wipe.play();
}
if (_root._currentframe != _root.mainMenuFrame) {
_root.tempSave();
}
_parent.play();
}
Symbol 355 Button
on (release) {
_parent.xmlLoadInfo.play();
if (_parent.preloadInfo._currentframe == 2) {
_parent.preloadInfo.gotoAndStop(1);
}
if (_root.debugInfo._currentframe == 2) {
_root.debugInfo.gotoAndStop(1);
}
if (roomBN == "drawn") {
deleteRoomBns();
}
if (xmlSourceBN == "drawn") {
deleteXmlSourceBNs();
}
}
Symbol 358 Button
on (release) {
if (xmlSourceBN != "drawn") {
xmlSourceBN = "drawn";
s = 0;
ySpacing = 0;
ySpacing2 = 0;
ySpacing3 = 0;
xCorrection = 135;
while (s < _root.xmlSourceArray.length) {
duplicateMovieClip (_root.debugBar.xmlDataBox, "xmlDataBox" + s, s);
if (s < 17) {
_root.debugBar["xmlDataBox" + s]._x = -150 - xCorrection;
_root.debugBar["xmlDataBox" + s]._y = -465 + ySpacing;
ySpacing = ySpacing + 25;
} else if (s < 34) {
_root.debugBar["xmlDataBox" + s]._x = -15 - xCorrection;
_root.debugBar["xmlDataBox" + s]._y = -465 + ySpacing2;
ySpacing2 = ySpacing2 + 25;
} else {
_root.debugBar["xmlDataBox" + s]._x = 120 - xCorrection;
_root.debugBar["xmlDataBox" + s]._y = -465 + ySpacing3;
ySpacing3 = ySpacing3 + 25;
}
_root.debugBar["xmlDataBox" + s].gotoAndStop(2);
_root.debugBar["xmlDataBox" + s].xmlToLoad = _root.xmlSourceArray[s];
s++;
}
if (_parent.xmlLoadInfo._currentframe == 2) {
_parent.xmlLoadInfo.gotoAndStop(1);
}
if (_parent.preloadInfo._currentframe == 2) {
_parent.preloadInfo.gotoAndStop(1);
}
if (_root.debugInfo._currentframe == 2) {
_root.debugInfo.gotoAndStop(1);
}
if (roomBN == "drawn") {
deleteRoomBns();
}
} else {
deleteXmlSourceBNs();
}
}
Symbol 359 MovieClip Frame 1
function deleteRoomBns() {
roomBN = "";
s = 0;
while (s < _root.fileArray.length) {
_root.debugBar["roomDataBox" + s].removeMovieClip("");
s++;
}
}
function deleteXmlSourceBNs() {
xmlSourceBN = "";
s = 0;
while (s < _root.xmlSourceArray.length) {
_root.debugBar["xmlDataBox" + s].removeMovieClip("");
s++;
}
}
Symbol 361 Button
on (release) {
_parent.roomBN = "";
_root.roomToLoad = roomToLoad;
_root.wipeAction = "roomLoad";
_root.wipe.play();
_parent.removeRoomBns();
}
Symbol 365 MovieClip Frame 1
stop();
Symbol 366 Button
on (release) {
_root.XMLSource = xmlToLoad;
_root.wipeAction = "XML";
if (_root.wipe._currentframe != 1) {
_root.wipe.gotoAndPlay("optionsDelta");
} else {
_root.wipe.play();
}
_parent.play();
}
Symbol 368 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 1
stop();
function removeRoomBns() {
z = 0;
while (z < _root.fileArray.length) {
_root.debugBar["roomDataBox" + z].removeMovieClip("");
z++;
}
}
Symbol 373 MovieClip Frame 2
if (_root._currentframe == _root.mainMenuFrame) {
debugFlik.bn_drawNodeGraph._alpha = 50;
debugFlik.bn_showNavPoints._alpha = 50;
debugFlik.bn_showDebugInfo._alpha = 50;
debugFlik.bn_quit._alpha = 50;
debugFlik.bn_depthTriangles._alpha = 50;
debugFlik.bn_drawNodeGraph.enabled = false;
debugFlik.bn_showNavPoints.enabled = false;
debugFlik.bn_showDebugInfo.enabled = false;
debugFlik.bn_quit.enabled = false;
debugFlik.bn_depthTriangles.enabled = false;
}
blackFrame.useHandCursor = false;
Instance of Symbol 365 MovieClip "roomDataBox" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
}
Instance of Symbol 368 MovieClip "xmlDataBox" in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
}
Symbol 373 MovieClip Frame 8
stop();
Symbol 373 MovieClip Frame 9
if (debugFlik.roomBN == "drawn") {
debugFlik.deleteRoomBns();
}
if (xmlLoadInfo._currentframe == 2) {
xmlLoadInfo.gotoAndStop(1);
}
if (preloadInfo._currentframe == 2) {
preloadInfo.gotoAndStop(1);
}
if (debugFlik.xmlSourceBN == "drawn") {
debugFlik.deleteXmlSourceBNs();
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
stop();
Symbol 412 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 504 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 1
bn.tabEnabled = false;
stop();
Instance of Symbol 504 MovieClip "reflection" in Symbol 516 MovieClip Frame 59
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);
}
}
Symbol 517 MovieClip Frame 1
stop();
Instance of Symbol 525 MovieClip "actionArea" in Symbol 526 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 528 MovieClip Frame 1
stop();
Instance of Symbol 525 MovieClip "actionArea" in Symbol 530 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 536 MovieClip Frame 1
txt.text = _root.captions[34];
txt.autoSize = "middle";
Symbol 537 MovieClip Frame 1
stop();
Symbol 539 Button
on (release) {
_root.launchMenu("gamemenu");
}
on (rollOver) {
if (_root.menuDisabled == false) {
saveMC.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
saveMC.gotoAndStop(1);
}
Symbol 542 MovieClip Frame 1
txt.text = _root.captions[36];
txt.autoSize = "middle";
Symbol 543 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
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 {
_root.removeMenu();
_parent.gotoAndStop(1);
}
}
Symbol 544 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
txt.text = _root.captions[37];
txt.autoSize = "middle";
Symbol 547 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
if (_root.menuDisabled == false) {
_root.displaySaveData();
}
}
Symbol 548 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 1
txt.text = _root.captions[38];
txt.autoSize = "middle";
Symbol 551 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
if (_root.menuDisabled == false) {
_root.displayLoadData();
}
}
Symbol 552 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 1
txt.text = _root.captions[39];
txt.autoSize = "middle";
Symbol 555 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
_root.options.gotoAndStop(2);
_parent.gotoAndStop(4);
}
Symbol 556 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 1
txt.text = _root.captions[35];
txt.autoSize = "middle";
Symbol 561 MovieClip Frame 1
txt.text = _root.captions[40];
txt.autoSize = "middle";
Symbol 562 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
if (_root.menuDisabled == false) {
if (_root.popup._currentframe != 1) {
_root.popup.play();
}
_root.gx_endgame.play();
}
gotoAndStop (1);
}
Symbol 563 MovieClip Frame 1
stop();
Symbol 564 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();
}
}
Instance of Symbol 537 MovieClip "saveMC" in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 564 MovieClip Frame 2
blackFrame.useHandCursor = false;
_root.menuDisabled = false;
_root.hideAction();
_root.pause = true;
_root.targetMC.mouseCircle._visible = false;
blackFrame.tabEnabled = false;
tabChildren = false;
bn1._visible = false;
bn2._visible = false;
bn3._visible = false;
bn4._visible = false;
bn5._visible = false;
Symbol 564 MovieClip Frame 3
blackFrame.useHandCursor = false;
_root.menuDisabled = false;
_root.hideAction();
_root.pause = true;
_root.targetMC.mouseCircle._visible = false;
blackFrame.tabEnabled = false;
tabChildren = false;
bn1._visible = false;
bn2._visible = false;
bn3._visible = false;
bn4._visible = false;
bn5._visible = false;
Symbol 564 MovieClip Frame 4
stop();
Symbol 568 Button
on (release) {
if (_parent.popup._currentframe == 9) {
_parent.popup.gotoAndPlay("out");
}
}
Symbol 570 MovieClip Frame 1
_parent.cutscene.swapDepths(2000);
_root.enableMenu();
_root.hideForInteraction();
_parent.targetMC.mouseCircle._visible = true;
stop();
Symbol 570 MovieClip Frame 2
_parent.pause = true;
_parent.cutscene.swapDepths(2000);
_root.disableMenu();
blackFrame.useHandCursor = false;
_root.hideForInteraction();
Symbol 570 MovieClip Frame 3
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 4
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 5
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 6
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 7
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 8
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 9
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 10
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 11
_parent.pause = true;
_parent.cutscene.swapDepths(2000);
_root.hideInventory();
_root.hideActionBar();
stop();
Symbol 570 MovieClip Frame 12
_parent.cutscene.swapDepths(2000);
_root.showInventory();
_root.showActionBar();
_root.hideForInteraction();
Symbol 570 MovieClip Frame 13
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 14
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 15
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 16
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 17
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 18
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 19
_parent.cutscene.swapDepths(2000);
Symbol 570 MovieClip Frame 20
_parent.pause = false;
_parent.cutscene.swapDepths(2000);
Symbol 574 Button
on (rollOver) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOutColor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(backplate.gx_left.backPlate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backPlate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backPlate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
numColor = new Color(numTXT);
numColor.setRGB(_root.mouseOverColor);
txtColor = new Color(txtHolder);
txtColor.setRGB(_root.mouseOverColor);
}
on (release) {
Selection.setFocus("userName");
gotoAndStop (2);
}
Symbol 575 MovieClip Frame 1
userNumTxt = userNum + ".";
stop();
Instance of Symbol 79 MovieClip "backplate" in Symbol 575 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseUp) {
if (_parent._name != "gameDataBox9") {
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 575 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 1
txt.text = _root.captions[37].toUpperCase();
txt.autoSize = "middle";
Symbol 579 Button
on (release) {
if (_root._currentframe != _root.mainMenuFrame) {
if (_root.mainMenu == "on") {
_root.gamemenu.gotoAndStop(3);
} else {
_root.gamemenu.gotoAndStop(2);
}
}
_root.hideSaveData();
}
on (rollOver) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOutColor);
_root.playSound("menuRollOver");
}
on (rollOut, releaseOutside) {
plateColor1 = new Color(bnParts.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(bnParts.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(bnParts.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt);
txtColor.setRGB(_root.mouseOverColor);
}
Symbol 580 MovieClip Frame 1
txt.text = txtVar;
txt.autoSize = "left";
bnParts.gx_left._x = 0;
txt._x = 0 + bnParts.gx_left._width;
txt._y = 3;
bnParts.gx_right._x = (txt._x + txt._width) + 1.5;
bnParts.gx_middle._x = 0 + bnParts.gx_left._width;
middleSize = bnParts.gx_right._x - bnParts.gx_middle._x;
bnParts.gx_middle._width = middleSize;
bn._y = 0;
bn._x = 0;
bn._width = bnParts._width;
bn._height = bnParts._height;
bn._alpha = 0;
_parent.closeBN._x = (855 - _parent.closeBN._width) - 20;
stop();
Symbol 583 Button
on (press, keyPress "<Enter>") {
if (_root.currentSaveBoxNum != "") {
if (_parent._parent["gameDataBox" + _root.currentSaveBoxNum].userName != "") {
_root.userTrace(_parent._parent.userName);
_root.saveGame();
_root.gamemenu.gotoAndStop(1);
_root.removeMenu();
_root.showMessage(_root.captions[46], "");
if (_root.gameChange == true) {
if (_root.mainMenu == "on") {
_root.gamemenu.gotoAndStop(3);
} else {
_root.gamemenu.gotoAndStop(2);
}
_root.hideSaveData();
} else {
_root.hideSaveData();
}
}
}
}
on (rollOver) {
if ((_root.currentSaveBoxNum != "") and (_parent._parent["gameDataBox" + _root.currentSaveBoxNum].userName != "")) {
plateColor1 = new Color(backplate.gx_left.backplate);
plateColor1.setRGB(_root.mouseOverColor);
plateColor2 = new Color(backplate.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOverColor);
plateColor3 = new Color(backplate.gx_right.backplate);
plateColor3.setRGB(_root.mouseOverColor);
_xscale = (_xscale + _root.scaleFactor);
_yscale = (_yscale + _root.scaleFactor);
txtColor = new Color(txt_saveGame);
txtColor.setRGB(_root.mouseOutColor);
backplate._alpha = 100;
txt_saveGame._alpha = 100;
_root.playSound("menuRollOver");
}
}
on (rollOut, releaseOutside) {
if ((_root.currentSaveBoxNum != "") and (_parent._parent["gameDataBox" + _root.currentSaveBoxNum].userName != "")) {
plateColor1 = new Color(backplate.gx_left.backplate);
plateColor1.setRGB(_root.mouseOutColor);
plateColor2 = new Color(backplate.gx_middle.backplate);
plateColor2.setRGB(_root.mouseOutColor);
plateColor3 = new Color(backplate.gx_right.backplate);
plateColor3.setRGB(_root.mouseOutColor);
_xscale = (_xscale - _root.scaleFactor);
_yscale = (_yscale - _root.scaleFactor);
txtColor = new Color(txt_saveGame);
txtColor.setRGB(_root.mouseOverColor);
} else {
backplate._alpha = 50;
txt_saveGame._alpha = 50;
}
}
Symbol 584 MovieClip Frame 1
txt_saveGame.txt.text = txtVar;
txt_saveGame.txt.autoSize = "left";
backplate.gx_left._x = 0;
txt_saveGame.txt._x = 0 + backplate.gx_left._width;
txt_saveGame.txt._y = 3.5;
backplate.gx_right._x = (txt_saveGame.txt._x + txt_saveGame.txt._width) + 1.5;
backplate.gx_middle._x = 0 + backplate.gx_left._width;
middleSize = backplate.gx_right._x - backplate.gx_middle._x;
backplate.gx_middle._width = middleSize;
bn._y = 0;
bn._x = 0;
bn._width = backplate._width;
bn._height = backplate._height;
bn._alpha = 0;
_parent.saveBN._x = (855 - _parent.saveBN._width) - 20;
stop();
Instance of Symbol 150 MovieClip "backplate" in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 15;
}
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
saveBN.backplate._alpha = 50;
saveBN.bn.useHandCursor = false;
_root.disableMenu();
_root.currentSaveBoxNum = "";
Instance of Symbol 575 MovieClip "gameDataBox" in Symbol 585 MovieClip Frame 2
onClipEvent (load) {
_parent.gameDataBox._visible = false;
}
Instance of Symbol 204 MovieClip in Symbol 585 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 580 MovieClip "closeBN" in Symbol 585 MovieClip Frame 2
onClipEvent (load) {
txtVar = _root.captions[8];
}
Instance of Symbol 584 MovieClip "saveBN" in Symbol 585 MovieClip Frame 2
onClipEvent (load) {
txtVar = _root.captions[41];
}
Symbol 587 Button
on (release) {
gotoAndPlay ("out");
_root.removeMenu();
}
Symbol 590 MovieClip Frame 1
txt.text = _root.captions[42];
txt.autoSize = "middle";
stop();
Symbol 592 Button
on (release) {
_parent.wipeAction = "end";
_parent.wipe.play();
play();
}
Symbol 593 Button
on (release) {
play();
}
Symbol 594 Button
on (release) {
play();
_root.removeMenu();
}
Symbol 595 Button
on (release) {
_parent.wipeAction = "end";
_parent.wipe.play();
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 596 Button
on (release) {
play();
}
on (rollOver) {
_root.playSound("menuRollOver");
}
Symbol 597 MovieClip Frame 1
_root.enableMenu();
stop();
Symbol 597 MovieClip Frame 2
blackFrame.useHandCursor = false;
_root.disableMenu();
Symbol 597 MovieClip Frame 8
stop();
Symbol 597 MovieClip Frame 9
Symbol 597 MovieClip Frame 14
if (_root.wipeAction == "end") {
stop();
}
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
_root.pause = true;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.useHandCursor = false;
stop();
Instance of Symbol 14 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 601 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
_root.actionTxt = "";
txt._visible = false;
this.onEnterFrame = function () {
if (txt.text == "Examine undefined") {
txt._visible = false;
} else {
delete this.onEnterFrame;
}
};
stop();
Symbol 606 MovieClip Frame 2
function resizeActionBar() {
txt.text = _parent.actionTxt;
txt.autoSize = "center";
txt._visible = true;
bgHeight = 444;
txt._x = 320 - (txt._width / 2);
txt._y = 445;
bg_left._x = txt._x - 10;
bg_left._y = bgHeight;
bg_middle._x = (bg_left._x + bg_left._width) - 1;
bg_middle._y = bgHeight;
bg_middle._width = txt._width + 9.5;
bg_right._x = bg_middle._x + bg_middle._width;
bg_right._y = bgHeight;
}
this.onEnterFrame = function () {
if ((txt.text == "") or (txt.text == undefined)) {
_root.actionTxt = "Examine " + _root.currentRollOver.name;
resizeActionBar();
} else if (txt.text == "Examine undefined") {
gotoAndStop (1);
} else {
txt._visible = true;
delete this.onEnterFrame;
}
};
resizeActionBar();
stop();
Symbol 611 MovieClip Frame 1
txt.text = _root.captions[43];
txt.autoSize = "middle";
Symbol 613 MovieClip Frame 1
stop();
Symbol 616 Button
on (press) {
gotoAndPlay ("out");
}
Symbol 618 MovieClip Frame 2
speechColor = new Color(txt);
speechColor.setRGB(_root.colorVar);
txt.text = _root.speechTxt;
txt.autoSize = "center";
txt._x = -(txt._width / 2);
stop();
Symbol 619 MovieClip Frame 1
stop();
_root.pause = false;
if (_root.eventInteraction == "Begun") {
_root.initiateStreamingEvent();
}
_parent.targetMC.mouseCircle._visible = true;
Instance of Symbol 615 MovieClip in Symbol 619 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 619 MovieClip Frame 2
if (_root.speech._y < 40) {
_root.speech._y = 40;
}
if (_root.speech._x < _root.speechTxtWidth) {
_root.speech._x = _root.speechTxtWidth;
} else if (_root.speech._x > (640 - _root.speechTxtWidth)) {
_root.speech._x = 640 - _root.speechTxtWidth;
}
_root.pause = true;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.useHandCursor = false;
_root.hiddenActionTxt = "";
play();
Instance of Symbol 14 MovieClip in Symbol 619 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 619 MovieClip Frame 3
_root.pause = true;
Symbol 619 MovieClip Frame 4
_root.pause = true;
Symbol 619 MovieClip Frame 5
_root.pause = true;
Symbol 619 MovieClip Frame 6
_root.pause = true;
Symbol 619 MovieClip Frame 7
_root.pause = true;
Symbol 619 MovieClip Frame 8
_root.pause = true;
Symbol 619 MovieClip Frame 9
_root.pause = true;
stop();
Symbol 619 MovieClip Frame 10
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = true;
_parent.speechCalibrator.gotoAndStop(1);
Symbol 619 MovieClip Frame 11
_root.pause = true;
Symbol 619 MovieClip Frame 12
_root.pause = true;
Symbol 619 MovieClip Frame 13
_root.pause = true;
Symbol 619 MovieClip Frame 14
_root.pause = true;
Symbol 619 MovieClip Frame 15
if (_root.eventInteraction == "Done") {
_root.updateInventory();
}
_root.pause = true;
_x = orgX;
_y = (orgY - 500);
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 2
txt.text = _root.speechTxt;
if (txt.length >= 35) {
txt.wordWrap = true;
} else {
txt.wordWrap = false;
}
txt.autoSize = "center";
txt_x.text = txt._width / 2;
txt_l.text = txt.length;
_root.speechTxtWidth = (txt._width / 2) + 5;
stop();
Symbol 627 Button
on (release) {
_root.executeReply(this);
}
on (rollOver) {
txt._alpha = 100;
}
on (rollOut, releaseOutside) {
txt._alpha = 70;
}
Symbol 628 MovieClip Frame 2
txt.autoSize = "left";
bn.tabEnabled = false;
bn._y = txt._y - 1;
bn._x = txt._x;
bn._width = txt._width;
bn._height = txt._height;
stop();