Frame 1
function enableMenu() {
oTimeline.menuDisabled = false;
oTimeline.gameoptions.saveBN.useHandCursor = true;
oTimeline.gameoptions.pauseBN.useHandCursor = true;
oTimeline.gameoptions.menuBN.useHandCursor = true;
oTimeline.gameoptions.loadBN.useHandCursor = true;
oTimeline.gameoptions.saveMC._alpha = 100;
oTimeline.gameoptions.pauseMC._alpha = 100;
oTimeline.gameoptions.loadMC._alpha = 100;
oTimeline.gameoptions.menuMC._alpha = 100;
}
function disableMenu() {
oTimeline.menuDisabled = true;
oTimeline.gameoptions.saveBN.useHandCursor = false;
oTimeline.gameoptions.pauseBN.useHandCursor = false;
oTimeline.gameoptions.menuBN.useHandCursor = false;
oTimeline.gameoptions.loadBN.useHandCursor = false;
oTimeline.gameoptions.saveMC._alpha = 30;
oTimeline.gameoptions.pauseMC._alpha = 30;
oTimeline.gameoptions.loadMC._alpha = 30;
oTimeline.gameoptions.menuMC._alpha = 30;
}
function gameInit(movieToLoad) {
if (popup._currentframe != 1) {
popup.play();
}
pause = false;
transportCheck = true;
inventoryNum = 1;
inventory = new Array();
states = new Array();
gotoAndStop (4);
inventoryDescription = new Array();
targetMC.loadMovie((loadPath + webLink) + "r1.swf");
targetMC.gubbe._x = 334.5;
targetMC.gubbe._y = 425.4;
targetMC.gubbe.gotoAndStop(1);
_quality = kvalitet;
currentLocation = "r1.swf";
userTrace(("gameInit: " + webLink) + currentLocation);
}
function gameExit() {
userTrace("gameExit");
if (popup._currentframe != 1) {
popup.play();
}
if (gx_endgame._currentframe != 1) {
gx_endgame.play();
}
if (cutscene._currentframe != 1) {
exitCutscene();
}
saveData.removeMovieClip("");
popup.gotoAndStop(1);
inventory = new Array();
states = new Array();
inventoryDescription = new Array();
eventInteraction = "Done";
sound_fadeDown(currentSound, 0, 25);
deleteInventory();
gameoptions.removeMovieClip("");
unloadMovie ("targetMC");
gotoAndStop ("menu");
_quality = "HIGH";
targetObject = "";
actionTxt = "";
hideAction();
currentMouseOverObject = "";
oTimeline.eventInteraction = "Done";
cutscene.gotoAndStop(1);
cutscene.removeMovieClip("");
popup.removeMovieClip("");
gx_endgame.gotoAndStop(1);
}
function gamePause() {
if (pause == false) {
pause = true;
showMessage("The game is paused. Click mouse to continue.", "");
} else if (gx_endgame._currentframe != 1) {
gx_endgame.play();
pause = true;
showMessage("The game is paused. Click mouse to continue.", "");
} else {
pause = false;
popup.gotoAndPlay("out");
}
}
function displaySaveData() {
disableMenu();
if (popup._currentframe != 1) {
popup.play();
}
hideAction();
pause = true;
saveData.gotoAndStop(2);
targetMC.mouseCircle._visible = false;
s = 1;
loadSpacing = 57;
while (s <= 9) {
oTimeline["saveGameInfo" + s] = SharedObject.getLocal("islandCookie" + s);
duplicateMovieClip (oTimeline.saveData.gameDataBox, "gameDataBox" + s, s);
saveData["gameDataBox" + s]._x = 18;
saveData["gameDataBox" + s]._y = 18 + loadSpacing;
if (oTimeline["saveGameInfo" + s].data.gameSaved == true) {
saveData["gameDataBox" + s].userName = oTimeline["saveGameInfo" + s].data.userName;
userTrace("game is saved");
} else {
userTrace("game is NOT saved");
saveData["gameDataBox" + s].userName = "Empty";
}
saveData["gameDataBox" + s].userNum = s;
s++;
loadSpacing = loadSpacing + 57;
}
}
function hideSaveData() {
enableMenu();
s = 0;
while (s <= 9) {
saveData["gameDataBox" + s].removeMovieClip("");
s++;
}
pause = false;
saveData.gotoAndStop(1);
targetMC.mouseCircle._visible = true;
}
function displayLoadData() {
disableMenu();
if (popup._currentframe != 1) {
popup.play();
}
hideAction();
pause = true;
targetMC.mouseCircle._visible = false;
bnNew._visible = false;
bnLoad._visible = false;
bnOptions._visible = false;
loadData.gotoAndStop(2);
s = 1;
loadSpacing = 57;
while (s <= 9) {
oTimeline["saveGameInfo" + s] = SharedObject.getLocal("islandCookie" + s);
duplicateMovieClip (oTimeline.loadData.gameDataBox, "gameDataBox" + s, s);
loadData["gameDataBox" + s]._x = 18;
loadData["gameDataBox" + s]._y = 18 + loadSpacing;
loadData["gameDataBox" + s].backplate._alpha = 30;
if (oTimeline["saveGameInfo" + s].data.gameSaved == true) {
loadData["gameDataBox" + s].userName = oTimeline["saveGameInfo" + s].data.userName;
userTrace(("game " + s) + " is saved");
} else {
userTrace(("game " + s) + " is NOT saved");
loadData["gameDataBox" + s].userName = "Empty";
}
loadData["gameDataBox" + s].userNum = s;
s++;
loadSpacing = loadSpacing + 57;
}
}
function hideLoadData() {
enableMenu();
s = 0;
while (s <= 9) {
loadData["gameDataBox" + s].removeMovieClip("");
s++;
}
loadData.gotoAndStop(1);
bnNew._visible = true;
bnLoad._visible = true;
bnOptions._visible = true;
pause = false;
targetMC.mouseCircle._visible = true;
}
function saveGame() {
if (popup._currentframe == 1) {
oTimeline["saveGameInfo" + currentSaveBoxNum] = SharedObject.getLocal("islandCookie" + currentSaveBoxNum);
oTimeline["saveGameInfo" + currentSaveBoxNum].data.gameSaved = true;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.kvalitet = kvalitet;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.userSound = userSound;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.userTutorial = userTutorial;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.userName = saveData["gameDataBox" + currentSaveBoxNum].userName;
userTrace(saveData["gameDataBox" + currentSaveBoxNum].userName);
oTimeline["saveGameInfo" + currentSaveBoxNum].data.currentLocation = currentLocation;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerXpos = targetMC.gubbe._x;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerYpos = targetMC.gubbe._y;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerDirection = targetMC.gubbe._currentframe;
oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventory = new Array();
oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum = 1;
while (oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum < (inventory.length + 1)) {
oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventory.push(inventory[oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum - 1]);
oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryNum++;
}
oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription = new Array();
oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum = 1;
while (oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum < (inventoryDescription.length + 1)) {
oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription.push(inventoryDescription[oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum - 1]);
oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveInventoryDescriptionNum++;
}
oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedStates = new Array();
oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum = 1;
while (oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum < (states.length + 1)) {
oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedStates.push(states[oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum - 1]);
oTimeline["saveGameInfo" + currentSaveBoxNum].data.SaveStatesNum++;
}
oTimeline["saveGameInfo" + currentSaveBoxNum].flush();
showMessage("The game was saved. Click mouse to continue.", "");
currentSaveBoxNum = "";
}
}
function loadGame() {
hideLoadData();
if (oTimeline["saveGameInfo" + currentSaveBoxNum].data.gameSaved == true) {
gotoAndStop (4);
targetMC.loadMovie((loadPath + webLink) + oTimeline["saveGameInfo" + currentSaveBoxNum].data.currentLocation);
currentLocation = oTimeline["saveGameInfo" + currentSaveBoxNum].data.currentLocation;
transportCheck = true;
kvalitet = oTimeline["saveGameInfo" + currentSaveBoxNum].data.kvalitet;
userSound = oTimeline["saveGameInfo" + currentSaveBoxNum].data.userSound;
userTutorial = oTimeline["saveGameInfo" + currentSaveBoxNum].data.userTutorial;
targetMC.gubbe._x = oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerXpos;
targetMC.gubbe._y = oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerYpos;
facingDirectionVar = oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerDirection;
states = new Array();
statesNum = 1;
while (statesNum < (oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedStates.length + 1)) {
states.push(oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedStates[statesNum - 1]);
statesNum++;
}
inventory = new Array();
inventoryNum = 1;
_quality = kvalitet;
while (inventoryNum < (oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventory.length + 1)) {
inventory.push(oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventory[inventoryNum - 1]);
inventoryNum++;
}
updateInventory();
inventoryDescription = new Array();
inventoryDescriptionNum = 1;
while (inventoryDescriptionNum < (oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription.length + 1)) {
inventoryDescription.push(oTimeline["saveGameInfo" + currentSaveBoxNum].data.savedInventoryDescription[inventoryDescriptionNum - 1]);
inventoryDescriptionNum++;
}
} else {
showMessage("No game has been saved. Press S in-game to save your progress.", "");
}
}
function streamingEvent(item, frameNum) {
var _local1 = item;
userTrace((("streamingEvent: " + _local1) + " ") + frameNum);
userTrace(eventInteraction);
if ((popup._currentframe == 1) and (eventInteraction != "Begun")) {
currentEventItem = _local1;
_local1.gotoAndStop(frameNum);
eventInteraction = "Begun";
initiateStreamingEvent();
}
}
function initiateStreamingEvent() {
if (popup._currentframe == 1) {
if (checkState(currentEventItem + "InteractionComplete")) {
eventInteraction = "Done";
} else {
currentEventItem.nextFrame();
}
}
}
function launchCutscene(movie) {
playState = "cutscene";
cutscene.gotoAndPlay("in");
movieToPlay = movie;
}
function exitCutscene() {
cutscene.gotoAndPlay("out");
playState = "";
}
function addState(item) {
var _local1 = item;
if (addedItem != _local1) {
addedItem = _local1;
checkedState = "";
s = 0;
while (s < states.length) {
checkedState = states[s];
if (checkedState == _local1) {
userTrace("state already exists: " + _local1);
break;
}
s++;
}
if ((s == states.length) and (checkedState != _local1)) {
states.push(_local1);
userTrace("state added: " + _local1);
}
}
}
function checkState(item) {
var _local1 = item;
checkedState = "";
s = 0;
while (s < states.length) {
checkedState = states[s];
if (checkedState == _local1) {
userTrace("state found: " + _local1);
return(true);
}
s++;
}
if ((s == states.length) and (checkedState != _local1)) {
userTrace("state NOT found: " + _local1);
}
return(undefined);
}
function removeState(item) {
var _local1 = item;
if (removedItem != _local1) {
removedItem = _local1;
checkedState = "";
s = 0;
while (s < states.length) {
checkedState = states[s];
if (checkedState == _local1) {
states.splice(s, 1);
userTrace("state removed: " + _local1);
break;
}
s++;
}
if ((s == states.length) and (checkedState != _local1)) {
userTrace("state NOT removed: " + _local1);
}
}
}
function checkVisible(item) {
var _local1 = item;
if (checkState(_local1.name + "PickedUp")) {
_local1._x = -100;
_local1._y = -100;
}
}
function hideForInteraction() {
hiddenActionTxt = "";
actionTxt = "";
hideAction();
targetMC.mouseCircle._visible = true;
}
function walkTo(targetObject) {
if (pause == false) {
targetMC.gubbe.activation = false;
walkState = "walking";
targetMC.gubbe.clickSpot_x = targetObject._x;
targetMC.gubbe.clickSpot_y = targetObject._y;
facingDirectionVar = "";
}
}
function forcedWalkTo(targetObject) {
walkState = "walking";
forcedWalk = true;
targetMC.gubbe.activation = false;
targetMC.gubbe._x = orgSpotX;
targetMC.gubbe._y = orgSpotY;
targetMC.gubbe.clickSpot_x = targetObject._x;
targetMC.gubbe.clickSpot_y = targetObject._y;
facingDirectionVar = "";
}
function forceMove(target) {
var _local1 = target;
forceMoveOrgPos = targetMC.gubbe._currentframe;
targetMC.gubbe.activation = false;
targetMC.gubbe.clickSpot_x = _local1._x;
targetMC.gubbe.clickSpot_y = _local1._y;
orgPosX = targetMC.gubbe._x;
orgPosX = targetMC.gubbe._x;
targetMC.gubbe._x = _local1._x;
targetMC.gubbe._y = _local1._y;
targetMC.gubbe.bot.gotoAndStop(1);
targetMC.gubbe.walkState = "stopped";
oTimeline.xSpeed = 0;
oTimeline.ySpeed = 0;
targetMC.gubbe._currentframe = forceMoveOrgPos;
}
function forceMoveBack(target) {
var _local1 = target;
if ((_local1 == "") or (_local1 == undefined)) {
targetMC.gubbe.activation = false;
targetMC.gubbe._x = orgPosX;
targetMC.gubbe._y = orgPosY;
orgPosX = "";
orgPosY = "";
} else {
targetMC.gubbe._x = _local1._x;
targetMC.gubbe._y = _local1._y;
}
}
function currentMouseOver(targetObject) {
if (pause == false) {
currentMouseOverObject = targetObject;
}
}
function displayAction(item) {
var _local1 = item;
objectName = _local1.name;
targetMC.mouseCircle._visible = false;
actionTxt = (_local1.objectVerb + " ") + _local1.name;
actionBar.gotoAndStop(2);
}
function hideActionBar() {
actionBar._visible = false;
}
function showActionBar() {
actionBar._visible = true;
}
function getObjectBounds(item) {
var _local1 = item;
_local1._xMin = _local1._x;
_local1._xMax = _local1._x + 38.5;
_local1._yMin = _local1._y;
_local1._yMax = _local1._y + 38.5;
x2._x = _local1._xMax;
x2._y = _local1._yMin;
y2._y = _local1._yMax;
y2._x = _local1._xMin;
}
function checkObjectBounds(item) {
var _local1 = _root;
x1._x = _local1._xmouse;
x1._y = _local1._ymouse;
y1._y = _local1._ymouse;
y1._x = _local1._xmouse;
if (x2.hitTest(y1) and y2.hitTest(x1)) {
return(true);
}
return(undefined);
}
function targetCheck(item) {
var _local1 = item;
if (pause == false) {
if (_local1.hitTest(_root._xmouse + _level0.offsetx, _root._ymouse + _level0.offsety, true)) {
if (currentObject.name != _local1.name) {
targetObject = _local1.name;
targetItem = _local1;
_local1.backplate._alpha = 100;
}
} else {
if (targetObject == _local1.name) {
targetObject = "";
targetItem = "";
}
_local1.backplate._alpha = 70;
}
}
}
function inventoryAction_examine(item) {
if (pause == false) {
targetMC.mouseCircle._visible = false;
actionTxt = "Examine " + item.name;
actionBar.gotoAndStop(2);
}
}
function inventoryAction_move(item) {
if (pause == false) {
backplate._x = item._x;
backplate._y = item._y;
item.swapDepths(100);
currentObject = item;
targetMC.mouseCircle._visible = false;
onMouseMove = function () {
if (functionBreaker == false) {
if (checkObjectBounds(item)) {
actionTxt = "Examine " + item.name;
reverseActionTxt = "";
} else if ((targetObject != "") and (item.name != targetObject)) {
actionTxt = (("Use " + item.name) + " with ") + targetObject;
reverseActionTxt = (("Use " + targetObject) + " with ") + item.name;
} else {
actionTxt = ("Use " + item.name) + " with...";
reverseActionTxt = "";
}
updateAfterEvent();
}
};
onMouseUp = function () {
item = "";
functionBreaker = true;
};
actionBar.gotoAndStop(2);
}
}
function combinationCheck() {
userTrace("combinationCheck");
s = 1;
while (s <= combinationHolder.goalLength) {
if ((actionTxt == combinationHolder["goal_" + s]) or (reverseActionTxt == combinationHolder["goal_" + s])) {
return(true);
}
s++;
}
}
function targetCombinationCheck() {
userTrace("targetCombinationCheck");
s = 1;
if ((targetItem.goalLength == "") or (targetItem.goalLength == undefined)) {
targetItem.goalLength = 1;
}
while (s <= targetItem.goalLength) {
if (actionTxt == targetItem["goal_" + s]) {
return(true);
}
s++;
}
return(false);
}
function checkAction(item) {
var _local1 = item;
userTrace("checkAction: " + actionTxt);
if (actionTxt == ("Examine " + _local1.name)) {
userTrace("Trying to examine " + _local1.name);
examinedObject = "";
s = 0;
while (s < inventory.length) {
examinedObject = inventory[s];
if (examinedObject == _local1.name) {
showMessage(inventoryDescription[s], "");
break;
}
s++;
}
} else if (targetCombinationCheck()) {
if (targetItem.hitTest(targetMC.gubbe)) {
userTrace("frase match - close enough");
targetItem["launchAction_" + s]();
} else {
userTrace("frase match - NOT close enough");
showMessage("You're not close enough to do that.", "");
return(false);
}
} else if (combinationCheck()) {
combinationHolder["launchAction_" + s]();
} else if (actionTxt != (("Use " + _local1.name) + " with...")) {
showMessage("That doesn't seem to work.", "");
targetObject = "";
targetItem = "";
_local1 = "";
}
actionTxt = "";
return(undefined);
}
function hideAction() {
actionBar.gotoAndStop(1);
targetObject = "";
objectName = "";
currentMouseOverObject = "";
}
function hideInventory() {
s = 0;
while (s < inventory.length) {
oTimeline["inventoryClip" + s]._alpha = 30;
s++;
}
}
function showInventory() {
s = 0;
while (s < inventory.length) {
oTimeline["inventoryClip" + s]._alpha = 100;
s++;
}
}
function pickUp(item, name, prompt, description, slideEnabled) {
var _local1 = item;
var _local2 = name;
var _local3 = prompt;
txt = _local3;
if (popup._currentframe == 1) {
userTrace("pickUp: " + _local2);
if (inventoryNum <= 19) {
inventory.push(_local2);
inventoryDescription.push(description);
addState(_local2 + "PickedUp");
if (slideEnabled == true) {
beginSlideX = _local1._x + (_local1._width / 2);
beginSlideY = _local1._y + (_local1._height / 2);
endSlideX = (oTimeline["inventoryClip" + inventoryNum]._x = 6 + spacing);
endSlideY = 6;
inventoryClip.duplicateMovieClip("inventoryClip" + inventoryNum, inventoryNum + 500);
oTimeline["inventoryClip" + inventoryNum].gotoAndStop(_local2);
oTimeline["inventoryClip" + inventoryNum].text = inventoryNum;
oTimeline["inventoryClip" + inventoryNum]._x = -150;
oTimeline["inventoryClip" + inventoryNum]._y = -150;
oTimeline["inventoryClip" + inventoryNum]._x = beginSlideX - (oTimeline["inventoryClip" + inventoryNum]._width / 2);
oTimeline["inventoryClip" + inventoryNum]._y = beginSlideY - (oTimeline["inventoryClip" + inventoryNum]._height / 2);
_local1._x = -200;
_local1._y = -200;
beginSlide(oTimeline["inventoryClip" + inventoryNum]);
_local1.objectState = "taken";
} else {
_local1._x = -200;
_local1._y = -200;
updateInventory();
}
if ((_local3 == "") or (_local3 == undefined)) {
userTrace("no promt issued");
} else {
userTrace(promt);
showMessage(txt, "");
}
hideForInteraction();
} else {
showMessage("Your inventory is full. Make more room by using one of your items.", "");
hiddenActionTxt = "";
}
}
}
function beginSlide(item) {
slider.MCobject = item;
slider.play();
}
function removeFromInventory(item, slideEnabled, taker, oldItem) {
var _local1 = taker;
var _local2 = item;
var _local3 = oldItem;
userTrace("removeFromInventory: " + _local2);
s = 0;
z = 0;
while (s < inventory.length) {
checkedInventory = inventory[s];
if (checkedInventory == _local2) {
if (slideEnabled == true) {
oldMC = _local3;
z = s + 1;
beginSlideX = oTimeline["inventoryClip" + z]._x + (oTimeline["inventoryClip" + z]._width / 2);
beginSlideY = oTimeline["inventoryClip" + z]._y + (oTimeline["inventoryClip" + z]._height / 2);
endSlideX = _local1._x;
endSlideY = _local1._y;
beginSlide(oTimeline["inventoryClip" + z]);
inventory.splice(s, 1);
inventoryDescription.splice(s, 1);
} else {
inventory.splice(s, 1);
inventoryDescription.splice(s, 1);
updateInventory();
}
} else {
s++;
}
}
}
function deleteInventory() {
while (inventoryNum > 0) {
oTimeline["inventoryClip" + inventoryNum].removeMovieClip("");
inventoryNum--;
}
inventory = new Array();
}
function updateInventory() {
userTrace("updateInventory");
backplate._x = -100;
backplate._y = -100;
while (inventoryNum > 0) {
oTimeline["inventoryClip" + inventoryNum].removeMovieClip("");
inventoryNum--;
}
inventoryNum = 1;
spacing = 0;
while (inventoryNum < (inventory.length + 1)) {
duplicateMovieClip (oTimeline.inventoryClip, "inventoryClip" + inventoryNum, inventoryNum);
oTimeline["inventoryClip" + inventoryNum].gotoAndStop(inventory[inventoryNum - 1]);
oTimeline["inventoryClip" + inventoryNum].name = inventory[inventoryNum - 1];
oTimeline["inventoryClip" + inventoryNum].text = inventoryNum;
oTimeline["inventoryClip" + inventoryNum]._x = 6 + spacing;
oTimeline["inventoryClip" + inventoryNum]._y = 6;
inventoryNum++;
spacing = spacing + 43;
}
targetMC.mouseCircle._visible = true;
}
function hideInventory() {
while (inventoryNum > 0) {
oTimeline["inventoryClip" + inventoryNum]._visible = false;
inventoryNum--;
}
}
function showInventory() {
while (inventoryNum < (inventory.length + 1)) {
oTimeline["inventoryClip" + inventoryNum]._visible = true;
inventoryNum++;
}
}
function initiateTransport(facingDirection, arrowColor, newLocation) {
if ((pause == false) and (wipe._currentframe == 1)) {
userTrace("transport");
wipeAction = "transport";
facingDirectionVar = facingDirection;
arrowColorVar = arrowColor;
userTrace(arrowColorVar);
newLocationVar = newLocation;
wipe.gotoAndPlay("in");
}
}
function transport(facingDirection, arrowColor, newLocation) {
facingDirectionVar = facingDirection;
arrowColorVar = arrowColor;
targetMC.gubbe._y = -200;
targetMC.gubbe._x = -200;
currentLocation = newLocation;
objects = 1;
targetMC.loadMovie((loadPath + webLink) + newLocation);
}
function initializeNewLocation(movie) {
var _local1 = movie;
userTrace("initializeNewLocation");
eventInteraction = "Done";
if (wipeAction == "transport") {
targetMC.gubbe.gotoAndStop(facingDirectionVar);
xSpeed = 0;
ySpeed = 0;
targetMC.gubbe._y = arrowColorVar._y;
targetMC.gubbe._x = arrowColorVar._x;
userTrace(arrowColorVar);
} else if (wipeAction == "load") {
targetMC.gubbe._x = oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerXpos;
targetMC.gubbe._y = oTimeline["saveGameInfo" + currentSaveBoxNum].data.playerYpos;
targetMC.gubbe.gotoAndStop(facingDirectionVar);
} else if ((_local1 != "") or (_local1 != undefined)) {
launchCutscene(_local1);
}
targetMC.mouseCircle._visible = true;
if (currentLocation == "r1.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(sound2, 25, 25);
}
} else if (currentLocation == "r2.swf") {
currentSound = sound1;
if (soundState != "playing") {
sound_fadeUp(sound1, 25, 25);
}
} else if (currentLocation == "r3.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(sound2, 25, 25);
}
} else if (currentLocation == "r4.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(sound3, 25, 25);
}
} else if (currentLocation == "r5.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(sound2, 25, 25);
}
} else if ((currentLocation == "r6.swf") or (currentLocation == "r7.swf")) {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(sound4, 25, 25);
}
} else if (currentLocation == "r8.swf") {
currentSound = sound3;
if (soundState != "playing") {
sound_fadeUp(sound3, 25, 25);
}
} else if (currentLocation == "r9.swf") {
currentSound = sound1;
if (soundState != "playing") {
sound_fadeUp(sound1, 25, 25);
}
} else if (currentLocation == "r10.swf") {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(sound4, 25, 25);
}
} else if (currentLocation == "r11.swf") {
currentSound = sound4;
if (soundState != "playing") {
sound_fadeUp(sound4, 25, 25);
}
} else if (currentLocation == "r12.swf") {
currentSound = sound2;
if (soundState != "playing") {
sound_fadeUp(sound2, 25, 25);
}
}
}
function depthSwap(item) {
var _local1 = item;
if ((_local1._y > targetMC.gubbe._y) and (_local1.getDepth() < targetMC.gubbe.getDepth())) {
_local1.swapDepths(_local1.highDepth);
} else if ((_local1._y < targetMC.gubbe._y) and (_local1.getDepth() > targetMC.gubbe.getDepth())) {
_local1.swapDepths(_local1.lowDepth);
}
}
function depthOrder(item) {
var _local1 = item;
if ((_local1._y > targetMC.gubbe._y) and (_local1.getDepth() < targetMC.gubbe.getDepth())) {
_local1.swapDepths(_local1.depth * -1);
userTrace("swapped: " + _local1);
} else if ((_local1._y < targetMC.gubbe._y) and (_local1.getDepth() > targetMC.gubbe.getDepth())) {
_local1.swapDepths(_local1.depth);
userTrace("swapped: " + _local1);
}
}
function activationCheck() {
userTrace("activationCheck");
s = 0;
while (s <= objects) {
if (targetMC["a" + s].actionArea.hitTest(targetMC.gubbe._x + _level0.offsetx, targetMC.gubbe._y + _level0.offsety, true)) {
targetMC["a" + s].operate();
userTrace("operate: a" + s);
return;
}
s++;
}
}
function showMessage(descriptionText, speaker) {
var _local1 = speaker;
userTrace("Message: " + descriptionText);
if (popup._currentframe == 1) {
if ((_local1 == "") or (_local1 == undefined)) {
header = "";
} else {
header = _local1;
}
popup.gotoAndPlay("in");
txt = descriptionText;
userTrace("showMessage was called");
}
}
function userTrace(traceMessage) {
var _local1 = traceMessage;
if (previousTraceMessage != _local1) {
trace(_local1);
previousTraceMessage = _local1;
}
}
function sound_init(soundName) {
var _local1 = soundName;
currentSound = _local1;
_local1.start(0, 999);
_local1.setVolume(0);
if ((currentVolume != "") or (currentVolume != undefined)) {
sound_fadeUp(_local1, currentVolume, 10);
} else {
sound_fadeUp(_local1, 25, 10);
}
soundState = "playing";
}
function sound_exit(soundName) {
soundState = "stopped";
currentSound = soundName;
sound_fadeDown(soundName, 0, 10);
}
function sound_fadeUp(soundName, targetVolume, steps) {
var _local1 = soundName;
sound_exit(currentSound);
currentSound = _local1;
currentVolume = targetVolume;
if (userSound == "on") {
userTrace("sound_fadeUp: " + _local1);
targetVolumeNum = targetVolume;
stepNum = steps;
_local1.setVolume(0);
_local1.start(0, 999);
soundState = "playing";
soundFader.gotoAndPlay("fade");
}
}
function sound_fadeDown(soundName, targetVolume, steps) {
currentSound = soundName;
if (userSound == "on") {
userTrace("sound_fadeDown: " + soundName);
targetVolumeNum = targetVolume;
stepNum = steps;
soundFader.gotoAndPlay("fade");
soundState = "stopped";
}
}
function sound_mix(soundName) {
oldSound = currentSound;
}
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);
}
}
_global.oTimeline = this;
deleteInventory();
sound_exit(sound1);
userSound = "on";
userTutorial = "on";
kvalitet = "HIGH";
forcedWalk = false;
percent_txt = "0 %";
header = "";
webLink = "";
if (_level0.viewingThrough == "cockroach") {
loadPath = "./gateway/";
} else {
loadPath = "";
}
fscommand ("allowscale", false);
fscommand ("showmenu", false);
n = 1;
i = 0;
t = 0;
s = 0;
currentSound = sound2;
inventoryNum = 1;
spacing = 0;
pause = false;
eventInteraction = "Done";
lowSwaped = true;
highSwaped = true;
targetObject = "";
actionTxt = "";
objects = 1;
sound1 = new Sound(this);
sound1.attachSound("s1");
sound2 = new Sound(this);
sound2.attachSound("s2");
sound3 = new Sound(this);
sound3.attachSound("s3");
sound4 = new Sound(this);
sound4.attachSound("s4");
mainMenu = "on";
stop();
Instance of Symbol 24 MovieClip "wipe" in Frame 1
onClipEvent (load) {
this.swapDepths(999);
}
Instance of Symbol 26 MovieClip in Frame 1
onClipEvent (load) {
percent = 0;
_parent.bar._xscale = 0;
}
onClipEvent (enterFrame) {
percent = Math.floor((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100);
_parent.percent_txt = percent + " %";
_parent.bar._xscale = percent;
if (percent == 100) {
_parent.gotoAndStop(2);
} else {
_parent.stop();
}
}
Frame 2
stop();
Frame 3
stop();
if (popup._currentframe != 1) {
popup.play();
}
if (mainMenu == "off") {
if (wipeAction == "load") {
wipe.gotoAndPlay(20);
} else {
wipeAction = "start";
wipe.gotoAndPlay(20);
}
} else {
stop();
}
if (wipeAction == "inGameLoad") {
wipe.gotoAndPlay(20);
}
Instance of Symbol 119 MovieClip "loadData" in Frame 3
onClipEvent (load) {
this.swapDepths(210);
}
Instance of Symbol 136 MovieClip "popup" in Frame 3
onClipEvent (load) {
this.swapDepths(2005);
}
Instance of Symbol 141 MovieClip "actionBar" in Frame 3
/* no clip actions */
Frame 4
targetMC._visible = true;
cutscene.swapDepths(2000);
popup.swapDepths(2005);
userTrace("frame 3 reached");
stop();
Instance of Symbol 225 MovieClip "gx_endgame" in Frame 4
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 243 MovieClip "saveData" in Frame 4
/* no clip actions */
Instance of Symbol 247 MovieClip "cutscene" in Frame 4
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 249 MovieClip "combinationHolder" in Frame 4
onClipEvent (load) {
function launchAction_1() {
oTimeline.pickUp(_parent.giver, "working remote", "", "The remote seems to be working now.", false);
oTimeline.removeFromInventory("remote");
oTimeline.removeFromInventory("batteries");
oTimeline.showMessage("You put the batteries in the remote.", "");
oTimeline.hideForInteraction();
}
function launchAction_2() {
oTimeline.pickUp(this, "extended power cord", "You extend the power cord with the extension cord.", "The power cord is now twice as long as before.", true);
oTimeline.removeFromInventory("extension cord");
oTimeline.removeFromInventory("power cord");
oTimeline.addState("cord_extended");
oTimeline.removeState("power cordPickedUp");
oTimeline.hideForInteraction();
}
goalLength = 2;
goal_1 = "Use batteries with remote";
goal_2 = "Use extension cord with power cord";
}
Instance of Symbol 273 MovieClip "gameoptions" in Frame 4
onClipEvent (load) {
this.swapDepths(2001);
}
Instance of Symbol 275 MovieClip "x2" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "x1" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "y2" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "y1" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 104 MovieClip in Frame 4
onClipEvent (mouseDown) {
oTimeline.checkedItem = "";
oTimeline.removedItem = "";
oTimeline.addedItem = "";
}
Instance of Symbol 363 MovieClip "inventoryClip" in Frame 4
onClipEvent (mouseMove) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
oTimeline.targetCheck(this);
}
}
Symbol 24 MovieClip Frame 1
if (_parent.popup._currentframe == 1) {
oTimeline.pause = false;
}
stop();
Symbol 24 MovieClip Frame 2
oTimeline.pause = true;
if (oTimeline.userSound == "on") {
if (oTimeline.soundState == "playing") {
oTimeline.sound_fadeDown(oTimeline.currentSound, 0, 25);
}
}
play();
Symbol 24 MovieClip Frame 20
oTimeline.pause = true;
play();
Symbol 24 MovieClip Frame 21
stop();
if (_parent.wipeAction == "transport") {
_parent.transport(_parent.facingDirectionVar, _parent.arrowColorVar, _parent.newLocationVar);
_parent.wipeAction == "";
nextFrame();
}
if (_parent.wipeAction == "start") {
_parent.gameInit();
_parent.wipeAction == "";
nextFrame();
}
if (_parent.wipeAction == "inGameLoad") {
_parent.hideLoadData();
_parent.gameExit();
_parent.wipeAction = "load";
gotoAndStop (1);
}
if (_parent.wipeAction == "end") {
_parent.gameExit();
_parent.wipeAction == "";
gotoAndPlay ("out");
}
if (_parent.wipeAction == "load") {
_parent.hideLoadData();
_parent.loadGame();
nextFrame();
}
Symbol 24 MovieClip Frame 23
_parent.hideLoadData();
play();
Symbol 24 MovieClip Frame 38
if (_parent.wipeAction == "load") {
_parent.showMessage("The game was loaded. Click mouse to continue.", "");
_parent.wipeAction == "";
}
Symbol 39 MovieClip Frame 95
_root.play();
Symbol 46 MovieClip Frame 1
if (soapbubble2MainTimeline.kvalitet == "HIGH") {
gotoAndStop (4);
} else if (soapbubble2MainTimeline.kvalitet == "MEDIUM") {
gotoAndStop (2);
} else if (soapbubble2MainTimeline.kvalitet == "LOW") {
gotoAndStop (3);
}
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 3
stop();
Symbol 46 MovieClip Frame 4
stop();
Symbol 49 Button
on (release) {
oTimeline.kvalitet = "LOW";
q_bock.gotoAndStop(3);
}
Symbol 51 Button
on (release) {
oTimeline.kvalitet = "MEDIUM";
q_bock.gotoAndStop(2);
}
Symbol 53 Button
on (release) {
oTimeline.kvalitet = "HIGH";
q_bock.gotoAndStop(4);
}
Symbol 61 Button
on (release) {
nextFrame();
}
Symbol 69 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 74 MovieClip Frame 1
if (soapbubble2MainTimeline.userSound == "off") {
gotoAndStop (2);
} else {
stop();
}
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 75 Button
on (release) {
oTimeline.userSound = "off";
s_bock.gotoAndStop(2);
}
Symbol 76 Button
on (release) {
oTimeline.userSound = "on";
s_bock.gotoAndStop(3);
}
Symbol 81 Button
on (release) {
prevFrame();
}
Symbol 82 Button
on (release) {
oTimeline.userTutorial = "off";
s_bock.gotoAndStop(2);
}
Symbol 83 Button
on (release) {
oTimeline.userTutorial = "on";
s_bock.gotoAndStop(3);
}
Symbol 101 MovieClip Frame 1
stop();
Instance of Symbol 54 MovieClip in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
if (oTimeline.kvalitet == "HIGH") {
_parent.q_bock.gotoAndStop(4);
} else if (oTimeline.kvalitet == "MEDIUM") {
_parent.q_bock.gotoAndStop(2);
} else {
_parent.q_bock.gotoAndStop(3);
}
}
Symbol 101 MovieClip Frame 2
stop();
Instance of Symbol 54 MovieClip in Symbol 101 MovieClip Frame 2
onClipEvent (load) {
if (oTimeline.userSound == "off") {
_parent.s_bock.gotoAndStop(2);
} else {
_parent.s_bock.gotoAndStop(1);
}
}
Symbol 101 MovieClip Frame 3
stop();
Instance of Symbol 54 MovieClip in Symbol 101 MovieClip Frame 3
onClipEvent (load) {
if (oTimeline.userTutorial == "off") {
_parent.s_bock.gotoAndStop(2);
} else {
_parent.s_bock.gotoAndStop(1);
}
}
Symbol 101 MovieClip Frame 4
stop();
Symbol 101 MovieClip Frame 5
stop();
Symbol 101 MovieClip Frame 6
stop();
Symbol 101 MovieClip Frame 7
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 7
stop();
Symbol 107 Button
on (release) {
oTimeline.hideLoadData();
}
Symbol 109 Button
on (rollOver) {
backplate._alpha = 50;
}
on (rollOut, releaseOutside) {
backplate._alpha = 30;
}
on (release) {
oTimeline.currentSaveBoxNum = userNum;
if (oTimeline.popup._currentframe != 1) {
oTimeline.popup.play();
} else if (oTimeline["saveGameInfo" + oTimeline.currentSaveBoxNum].data.gameSaved == true) {
if (oTimeline._currentframe == 2) {
oTimeline.wipeAction = "load";
} else {
oTimeline.wipeAction = "load";
}
oTimeline.wipe.play();
} else {
oTimeline.showMessage("This slot is empty.", "");
}
}
Symbol 116 MovieClip Frame 1
userNumTxt = userNum + ".";
stop();
Symbol 119 MovieClip Frame 1
_parent.roach._visible = true;
_parent.bnbrand_01._visible = true;
_parent.bnbrand_02._visible = true;
_parent.bnbrand_03._visible = true;
stop();
Symbol 119 MovieClip Frame 2
_parent.roach._visible = false;
_parent.bnbrand_01._visible = false;
_parent.bnbrand_02._visible = false;
_parent.bnbrand_03._visible = false;
blackFrame.useHandCursor = false;
stop();
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 2
onClipEvent (enterFrame) {
oTimeline.pause = true;
}
Instance of Symbol 116 MovieClip "gameDataBox" in Symbol 119 MovieClip Frame 2
onClipEvent (load) {
_parent.gameDataBox._visible = false;
}
Symbol 123 MovieClip Frame 1
function soundFade() {
if (i < oTimeline.stepNum) {
currentVolume = oTimeline.currentSound.getVolume();
oTimeline.currentSound.setVolume(currentVolume + incrementSize);
oTimeline.test = oTimeline.currentSound.getVolume();
i++;
} else {
userTrace("fade complete");
oTimeline.currentSound.setVolume(oTimeline.targetVolumeNum);
if (oTimeline.targetVolumeNum == 0) {
oTimeline.currentSound.stop();
}
gotoAndStop (1);
}
}
incrementSize = (oTimeline.targetVolumeNum - startVolume) / oTimeline.stepNum;
stop();
Symbol 123 MovieClip Frame 2
i = 0;
startVolume = oTimeline.currentSound.getVolume();
incrementSize = (oTimeline.targetVolumeNum - startVolume) / oTimeline.stepNum;
oTimeline.userTrace("startVolume: " + startVolume);
oTimeline.userTrace("targetVolume: " + oTimeline.targetVolumeNum);
oTimeline.userTrace("stepNum: " + oTimeline.stepNum);
oTimeline.userTrace("incrementSize: " + incrementSize);
soundFade();
Symbol 123 MovieClip Frame 3
soundFade();
Symbol 123 MovieClip Frame 4
soundFade();
gotoAndPlay (3);
Symbol 133 MovieClip Frame 1
stop();
if (oTimeline.header == "") {
gotoAndStop (1);
} else {
trace("header: " + header);
gotoAndStop (2);
}
Symbol 134 Button
on (release) {
gotoAndPlay ("out");
}
Symbol 136 MovieClip Frame 1
stop();
oTimeline.pause = false;
if (oTimeline.eventInteraction == "Begun") {
oTimeline.initiateStreamingEvent();
}
_parent.targetMC.mouseCircle._visible = true;
Symbol 136 MovieClip Frame 2
oTimeline.pause = true;
_parent.targetMC.mouseCircle._visible = false;
blackFrame.useHandCursor = false;
oTimeline.hiddenActionTxt = "";
play();
Instance of Symbol 54 MovieClip in Symbol 136 MovieClip Frame 2
onClipEvent (mouseUp) {
gotoAndPlay ("out");
}
Symbol 136 MovieClip Frame 3
oTimeline.pause = true;
Symbol 136 MovieClip Frame 4
oTimeline.pause = true;
Symbol 136 MovieClip Frame 5
oTimeline.pause = true;
Symbol 136 MovieClip Frame 6
oTimeline.pause = true;
Symbol 136 MovieClip Frame 7
oTimeline.pause = true;
Symbol 136 MovieClip Frame 8
oTimeline.pause = true;
Symbol 136 MovieClip Frame 9
oTimeline.pause = true;
stop();
Symbol 136 MovieClip Frame 10
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = true;
Symbol 136 MovieClip Frame 11
oTimeline.pause = true;
Symbol 136 MovieClip Frame 12
oTimeline.pause = true;
Symbol 136 MovieClip Frame 13
oTimeline.pause = true;
Symbol 136 MovieClip Frame 14
oTimeline.pause = true;
Symbol 136 MovieClip Frame 15
oTimeline.pause = true;
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 143 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);
stop();
Symbol 143 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 143 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;
SlideNext();
Symbol 143 MovieClip Frame 4
SlideNext();
Symbol 143 MovieClip Frame 5
SlideNext();
Symbol 143 MovieClip Frame 6
SlideNext();
Symbol 143 MovieClip Frame 7
SlideNext();
Symbol 143 MovieClip Frame 8
SlideNext();
Symbol 143 MovieClip Frame 9
SlideNext();
Symbol 143 MovieClip Frame 10
SlideNext();
Symbol 143 MovieClip Frame 11
SlideNext();
Symbol 143 MovieClip Frame 12
SlideNext();
Symbol 143 MovieClip Frame 13
SlideNext();
Symbol 143 MovieClip Frame 14
MCobject._x = _parent.endSlideX;
MCobject._y = _parent.endSlideY;
if (oTimeline.oldMC != "") {
oTimeline.oldMC._x = oTimeline.oldMC.orgX;
oTimeline.oldMC._y = oTimeline.oldMC.orgY;
oTimeline.oldMC._visible = true;
oTimeline.oldMC = "";
}
oTimeline.updateInventory();
Symbol 148 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 153 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 158 Button
on (release) {
getURL ("http://www.freeworldgroup.com", "_blank");
}
Symbol 160 Button
on (release) {
getURL ("http://www.freeworldgroup.com", "_blank");
}
Symbol 166 Button
on (release) {
getURL ("http://cockroach.se", "_blank");
}
Symbol 180 Button
on (release) {
options.play();
}
Symbol 185 Button
on (release) {
if (options._currentframe != 1) {
options.play();
}
displayLoadData();
}
Symbol 190 Button
on (release) {
if (popup._currentframe != 1) {
popup.play();
}
wipeAction = "start";
wipe.play();
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 219 Button
on (release) {
play();
}
Symbol 224 Button
on (release) {
_parent.wipeAction = "end";
_parent.wipe.play();
play();
}
Symbol 225 MovieClip Frame 1
oTimeline.enableMenu();
stop();
Symbol 225 MovieClip Frame 2
oTimeline.pause = true;
blackFrame.useHandCursor = false;
_parent.targetMC.mouseCircle._visible = false;
oTimeline.disableMenu();
Symbol 225 MovieClip Frame 9
stop();
_parent.targetMC.mouseCircle._visible = false;
Instance of Symbol 104 MovieClip in Symbol 225 MovieClip Frame 9
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_parent.gotoAndPlay("out");
}
}
Symbol 225 MovieClip Frame 10
oTimeline.pause = false;
_parent.targetMC.mouseCircle._visible = true;
Symbol 229 Button
on (release) {
oTimeline.hideSaveData();
}
Symbol 231 Button
on (rollOver) {
if ((oTimeline.currentSaveBoxNum != "") and (_parent["gameDataBox" + oTimeline.currentSaveBoxNum].userName != "")) {
backplate._alpha = 50;
txt_saveGame._alpha = 100;
}
}
on (rollOut, releaseOutside) {
if ((oTimeline.currentSaveBoxNum != "") and (_parent["gameDataBox" + oTimeline.currentSaveBoxNum].userName != "")) {
backplate._alpha = 30;
txt_saveGame._alpha = 100;
} else {
backplate._alpha = 15;
txt_saveGame._alpha = 50;
}
}
on (press, keyPress "<Enter>") {
if (oTimeline.currentSaveBoxNum != "") {
if (_parent["gameDataBox" + oTimeline.currentSaveBoxNum].userName != "") {
oTimeline.userTrace(_parent.userName);
oTimeline.saveGame("saveGameInfo" + oTimeline.currentSaveBoxNum);
oTimeline.hideSaveData();
} else {
oTimeline.showMessage("Please name your saved game.", "");
}
} else {
oTimeline.showMessage("Please select a save game slot.", "");
}
}
Instance of Symbol 234 MovieClip "txt_saveGame" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 50;
}
Instance of Symbol 236 MovieClip "backplate" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 15;
}
Symbol 238 Button
on (rollOver) {
backplate._alpha = 50;
}
on (rollOut, releaseOutside) {
backplate._alpha = 30;
}
on (release) {
Selection.setFocus("userName");
gotoAndStop (2);
}
Symbol 242 MovieClip Frame 1
userNumTxt = userNum + ".";
stop();
Instance of Symbol 241 MovieClip "backplate" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
_alpha = 30;
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse + _level0.offsetx, _root._ymouse + _level0.offsety, true)) {
if (_parent.userName == "Empty") {
_parent.tempUserName = _parent.userName;
_parent.userName = "";
oTimeline.userTrace("text removed");
}
oTimeline.currentSaveBoxNum = _parent.userNum;
} else if (!this.hitTest(_root._xmouse + _level0.offsetx, _root._ymouse + _level0.offsety, true)) {
if (_parent.userName == "") {
_parent.userName = _parent.tempUserName;
oTimeline.currentSaveBoxNum = "";
oTimeline.userTrace("text returned");
}
_parent.gotoAndStop(1);
}
}
Symbol 242 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
stop();
saveBN.backplate._alpha = 15;
saveBN.bn.useHandCursor = false;
blackFrame.useHandCursor = false;
oTimeline.currentSaveBoxNum = "";
Instance of Symbol 104 MovieClip in Symbol 243 MovieClip Frame 2
onClipEvent (enterFrame) {
oTimeline.pause = true;
_parent.userName = _parent["gameDataBox" + oTimeline.currentSaveBoxNum].userName;
if ((oTimeline.currentSaveBoxNum != "") and (_parent["gameDataBox" + oTimeline.currentSaveBoxNum].userName != "")) {
_parent.saveBN.bn.useHandCursor = true;
if (backplateLight != true) {
_parent.saveBN.backplate._alpha = 30;
_parent.saveBN.txt_saveGame._alpha = 100;
backplateLight = true;
}
} else {
backplateLight = false;
_parent.saveBN.bn.useHandCursor = false;
if (_parent.saveBN.backplate._alpha != 15) {
_parent.saveBN.backplate._alpha = 15;
_parent.saveBN.txt_saveGame._alpha = 50;
}
}
}
Instance of Symbol 242 MovieClip "gameDataBox" in Symbol 243 MovieClip Frame 2
onClipEvent (load) {
_parent.gameDataBox._visible = false;
}
Symbol 246 Button
on (release) {
if (_parent.popup._currentframe == 9) {
_parent.popup.gotoAndPlay("out");
}
}
Symbol 247 MovieClip Frame 1
_parent.cutscene.swapDepths(2000);
oTimeline.enableMenu();
oTimeline.hideForInteraction();
_parent.targetMC.mouseCircle._visible = true;
stop();
Symbol 247 MovieClip Frame 2
_parent.cutscene.swapDepths(2000);
oTimeline.disableMenu();
blackFrame.useHandCursor = false;
oTimeline.hideForInteraction();
Symbol 247 MovieClip Frame 3
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 4
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 5
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 6
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 7
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 8
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 9
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 10
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 11
_parent.cutscene.swapDepths(2000);
oTimeline.hideInventory();
oTimeline.hideActionBar();
stop();
Symbol 247 MovieClip Frame 12
_parent.cutscene.swapDepths(2000);
oTimeline.showInventory();
oTimeline.showActionBar();
oTimeline.hideForInteraction();
Symbol 247 MovieClip Frame 13
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 14
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 15
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 16
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 17
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 18
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 19
_parent.cutscene.swapDepths(2000);
Symbol 247 MovieClip Frame 20
_parent.cutscene.swapDepths(2000);
Symbol 251 Button
on (release) {
if (oTimeline.menuDisabled == false) {
oTimeline.displayLoadData();
}
}
on (rollOver) {
if (oTimeline.menuDisabled == false) {
loadMC.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
loadMC.gotoAndStop(1);
}
Symbol 252 Button
on (release) {
oTimeline.toggleSound();
}
on (rollOver) {
bn_music._alpha = 100;
bn_music.mc_sound.gotoAndstop(2);
}
on (rollOut, releaseOutside) {
bn_music._alpha = 30;
bn_music.mc_sound.gotoAndstop(1);
}
Symbol 253 Button
on (release) {
if (oTimeline.menuDisabled == false) {
oTimeline.displaySaveData();
}
}
on (rollOver) {
if (oTimeline.menuDisabled == false) {
saveMC.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
saveMC.gotoAndStop(1);
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 268 Button
on (release) {
if (oTimeline.menuDisabled == false) {
if (oTimeline.popup._currentframe != 1) {
oTimeline.popup.play();
}
oTimeline.gx_endgame.play();
}
}
on (rollOver) {
if (oTimeline.menuDisabled == false) {
menuMC.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
menuMC.gotoAndStop(1);
}
Symbol 272 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
if (oTimeline.mainMenu == "on") {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 258 MovieClip "bn_music" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
_alpha = 30;
if (oTimeline.userSound == "off") {
this.gotoAndStop(2);
oTimeline.soundState = "stopped";
}
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 285 Button
on (rollOver) {
if (oTimeline.pause == false) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
oTimeline.inventoryAction_examine(this);
}
}
}
on (press) {
if (oTimeline.pause == false) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
oTimeline.getObjectBounds(this);
oTimeline.endSlideX = this._x;
oTimeline.endSlideY = this._y;
oTimeline.functionBreaker = false;
oTimeline.inventoryAction_examine(this);
oTimeline.inventoryAction_move(this);
this.startDrag();
}
}
}
on (release) {
if (oTimeline.pause == false) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
if (oTimeline.currentObject == this) {
this.stopDrag();
oTimeline.beginSlideX = this._x + (this._width / 2);
oTimeline.beginSlideY = this._y + (this._height / 2);
oTimeline.checkAction(this);
oTimeline.beginSlide(this);
oTimeline.hideAction();
oTimeline.targetMC.mouseCircle._visible = true;
}
}
}
}
on (releaseOutside) {
if (oTimeline.pause == false) {
if ((_parent.popup._currentframe == 1) and (_parent.slider._currentframe == 1)) {
if (oTimeline.currentObject == this) {
oTimeline.hideAction();
oTimeline.beginSlideX = this._x + (this._width / 2);
oTimeline.beginSlideY = this._y + (this._height / 2);
oTimeline.beginSlide(this);
oTimeline.targetMC.mouseCircle._visible = true;
}
}
}
}
on (rollOut) {
oTimeline.hideAction();
oTimeline.targetMC.mouseCircle._visible = true;
}
Symbol 363 MovieClip Frame 1
stop();