Frame 1
stop();
Instance of Symbol 54 MovieClip in Frame 1
onClipEvent (load) {
var nSpeed = 1;
var nCurrLoad = 0;
var nRealLoad = 0;
this.btnContinue._visible = false;
this.btnContinue.gotoAndStop("Idle");
this.btnContinue.onRollOver = function () {
this.gotoAndStop("Over");
};
this.btnContinue.onRollOut = function () {
this.gotoAndStop("Idle");
};
this.btnContinue.onPress = function () {
this.gotoAndStop("Down");
};
this.btnContinue.onMouseUp = function () {
this.gotoAndStop("Idle");
};
this.btnContinue.onRelease = function () {
this._parent._parent.gotoAndStop("Loader");
};
this.mcRat1.gotoAndStop(1);
this.mcRat2.gotoAndStop(1);
this.mcRat3.gotoAndStop(1);
}
onClipEvent (enterFrame) {
nRealLoad = (this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100;
if (nRealLoad > (nCurrLoad + nSpeed)) {
nCurrLoad = nCurrLoad + nSpeed;
} else {
nCurrLoad = nRealLoad;
}
txtPourcentage.text = nCurrLoad + "%";
if ((nCurrLoad == 100) && (this._parent.getBytesTotal() > 100)) {
this.mcLoading._visible = false;
this.btnContinue._visible = true;
} else if ((nCurrLoad == 75) && (this._parent.getBytesTotal() > 75)) {
this.mcRat3.play();
} else if ((nCurrLoad == 50) && (this._parent.getBytesTotal() > 50)) {
this.mcRat2.play();
} else if ((nCurrLoad == 25) && (this._parent.getBytesTotal() > 25)) {
this.mcRat1.play();
}
}
Frame 10
new Main(this);
Frame 20
Main.__get__Instance().gotoGame();
Symbol 12 MovieClip Frame 4
stop();
Symbol 22 MovieClip Frame 4
stop();
Symbol 33 MovieClip Frame 4
stop();
Symbol 369 MovieClip [__Packages.Main] Frame 0
class Main
{
static var oCTRL;
var mcRef, sharedObject, oGallery, oScriptManager;
function Main (_mcRef) {
mcRef = _mcRef;
oCTRL = this;
sharedObject = SharedObject.getLocal("SamMaxWorld");
oGallery = new Gallery();
gotoTitle();
var _local2 = mcRef.createEmptyMovieClip("mcSound" + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
new Library.SoundManager(_local2);
playSong("Office");
setCursor(Script.sACT);
}
function setCursor(_sCursor) {
Mouse.hide();
mcRef.mcCursor.startDrag(true);
mcRef.mcCursor.gotoAndStop(_sCursor);
}
function playSong(_sCurrentSong) {
Library.SoundManager.__get__Instance().playSong(_sCurrentSong);
}
function gotoTitle() {
mcRef.gotoAndStop("Title");
mcRef.btnNewGame.onRelease = Library.Delegate.create(this, gotoGame);
mcRef.btnTutorial.onRelease = Library.Delegate.create(this, gotoTutorial);
mcRef.btnLoad.onRelease = Library.Delegate.create(this, gotoLoad);
mcRef.btnGallery.onRelease = Library.Delegate.create(this, gotoGallery);
}
function gotoGame() {
mcRef.gotoAndStop("Game");
oScriptManager = new ScriptManager(mcRef);
mcRef.onEnterFrame = Library.Delegate.create(oScriptManager, oScriptManager.doEnterFrame);
oScriptManager.loadScript(Script.aBEGINNING);
}
function gotoTutorial() {
mcRef.gotoAndStop("Game");
oScriptManager = new ScriptManager(mcRef);
mcRef.onEnterFrame = Library.Delegate.create(oScriptManager, oScriptManager.doEnterFrame);
oScriptManager.loadScript(Script.aTUTORIAL);
}
function gotoLoad() {
mcRef.gotoAndStop("Game");
oScriptManager = new ScriptManager(mcRef, false);
mcRef.onEnterFrame = Library.Delegate.create(oScriptManager, oScriptManager.doEnterFrame);
oScriptManager.oLocationManager.sLocation = sharedObject.data.sLocation;
oScriptManager.__set__Room(sharedObject.data.sCurrentRoom);
oScriptManager.aEventMemory = sharedObject.data.aEventMemory;
oScriptManager.loadGame(sharedObject.data.sLoadedEvent);
}
function gotoGallery() {
mcRef.gotoAndStop("Gallery");
oGallery.setMc(mcRef);
}
function gotoEnd(_sTarget) {
mcRef.gotoAndStop(_sTarget + "End");
mcRef.btnReturnTitle.onRelease = Library.Delegate.create(this, gotoTitle);
}
function save() {
sharedObject.clear();
sharedObject.data.sLocation = oScriptManager.oLocationManager.sLocation;
sharedObject.data.sCurrentSong = Library.SoundManager.__get__Instance().sCurrentSong;
sharedObject.data.sCurrentRoom = oScriptManager.Room;
sharedObject.data.sLoadedEvent = oScriptManager.sLoadedEvent;
sharedObject.data.aEventMemory = oScriptManager.aEventMemory;
sharedObject.data.aGallery = oGallery.aGallery;
sharedObject.flush();
}
function get scriptManager() {
return(oScriptManager);
}
static function get Instance() {
return(oCTRL);
}
}
Symbol 370 MovieClip [__Packages.ScriptManager] Frame 0
class ScriptManager
{
var mcRef, aEventMemory, oLocationManager, oDialogue, oBoxGame, oShowItem, oEffect, oSave, oHelp, oQuit, oMap, oHUD, oTelescope, mcPopupBlocker, bTimerActive, nTimer, sCallbackEvent, oEvent, nLastTimer, aScript;
function ScriptManager (_mcRef, _bNewGamePlus) {
mcRef = _mcRef;
aEventMemory = new Array();
oLocationManager = new LocationManager(_mcRef.mcLocation);
oDialogue = new Dialogue(_mcRef.mcDialogue);
oBoxGame = new PopupBoxGame(_mcRef.mcBoxGame);
oShowItem = new PopupShowItem(_mcRef.mcShowItem);
oEffect = new PopupEffect(_mcRef.mcPopupEffect);
oSave = new PopupSave(_mcRef.mcPopupSave);
oHelp = new PopupHelp(_mcRef.mcPopupHelp);
oQuit = new PopupQuit(_mcRef.mcPopupQuit);
oMap = new PopupMap(_mcRef.mcMap);
oHUD = new HUD(_mcRef.mcHud);
oTelescope = new PopupTelescope(_mcRef.mcPopupTelescope);
mcPopupBlocker = _mcRef.mcPopupBlocker;
mcPopupBlocker._visible = false;
_mcRef.mcImages._visible = false;
initData();
}
function initData() {
bTimerActive = false;
}
function doEnterFrame() {
oDialogue.update();
oHUD.update();
oLocationManager.update();
oMap.update();
oEffect.update();
oTelescope.update();
if (bTimerActive) {
if (getTimer() >= nTimer) {
bTimerActive = false;
loadScript(Script.getScript(oLocationManager.sLocation, Script.sTIMER, sCallbackEvent));
}
}
if (!(oEvent.sType === "Timer")) {
} else {
nTimer = nTimer - (getTimer() - nLastTimer);
nLastTimer = getTimer();
if (nTimer <= 0) {
nextEvent();
}
}
}
function loadGame(_sEvent) {
oLocationManager.loadGame();
loadScript(Script.getScript(_sEvent));
}
function loadScript(_aScript) {
aScript = _aScript;
var _local2;
_local2 = 0;
while (_local2 < _aScript.length) {
_local2++;
}
nextEvent();
}
function setAction(_sAction) {
oLocationManager.setAction(_sAction);
}
function nextEvent() {
oEvent = new Object();
var _local5 = aScript.shift();
var _local3;
for (_local3 in _local5) {
oEvent[_local3] = _local5[_local3];
}
switch (oEvent.sType) {
case "StartConversation" :
if (oEvent.bDark == undefined) {
oEvent.bDark = true;
}
oDialogue.setDialog(oEvent.sCategory, oEvent.aWaitEntrance.slice(), oEvent.bDark);
nextEvent();
break;
case "WaitConversation" :
oDialogue.__get__waitEntrance()(oEvent.aWaitEntrance.slice());
nextEvent();
break;
case "EndConversation" :
oDialogue.closeDialogue(oEvent.aWaitEntrance.slice());
nextEvent();
break;
case "UnlockLocation" :
oMap.unlockLocation(oEvent.sLocation);
nextEvent();
break;
case "CharacterState" :
oDialogue.setCharacter(oEvent.sChar, oEvent.sBase, oEvent.sIdle, oEvent.sTalking, oEvent.sBubbleType, oEvent.bForceWait);
nextEvent();
break;
case "ForceWait" :
break;
case "SetEffect" :
oEffect.setState(oEvent.sTarget);
break;
case "ShowImage" :
Main.__get__Instance().oGallery.addImage(oEvent.sTarget);
mcRef.mcImages._visible = true;
mcRef.mcImages.gotoAndStop(oEvent.sTarget);
nextEvent();
break;
case "HideImage" :
mcRef.mcImages._visible = false;
nextEvent();
break;
case "ShowItem" :
break;
case "HideItem" :
break;
case "Dialogue" :
oEvent.sText = oEvent.sText.split("(SCORE)").join(oHUD.nScore);
oDialogue.addDialogue(oEvent.sText, oEvent.sChar, oEvent.sBubble);
break;
case "Choice" :
break;
case "AddItem" :
oHUD.addItem(oEvent.sItem);
oLocationManager.addItem(oEvent.sTarget);
nextEvent();
break;
case "AddVisibleToHidden" :
oLocationManager.addVisibleToHidden(oEvent.sTarget);
nextEvent();
break;
case "AddHiddenToVisible" :
oLocationManager.addHiddenToVisible(oEvent.sTarget);
nextEvent();
break;
case "RemoveItem" :
oHUD.removeItem(oEvent.sItem);
nextEvent();
break;
case "AddExploreCondition" :
oLocationManager.addExploreCondition(oEvent.sTarget);
nextEvent();
break;
case "SetHud" :
oHUD.setState(Popup.sSTATE_IN);
oLocationManager.setExplore(true);
oDialogue.setDialog("None");
nextEvent();
break;
case "UnsetHud" :
oHUD.setState(Popup.sSTATE_OUT);
oLocationManager.setExplore(false);
nextEvent();
break;
case "SetExplore" :
break;
case "ShowMap" :
oMap.setState(Popup.sSTATE_IN);
break;
case "AddScore" :
oHUD.addScore(oEvent.nScore, oEvent.sCode);
nextEvent();
break;
case "StartTelescope" :
oTelescope.setState(Popup.sSTATE_IN);
break;
case "Character" :
break;
case "Location" :
oLocationManager.setLocation(oLocationManager.sLocation, "Out", Library.Delegate.create(this, loadScript, Script.getScript(oEvent.sTarget)));
oLocationManager.nextLocation(oEvent.sTarget);
nextEvent();
break;
case "MoveToTree" :
loadScript(Script.getScript(oEvent.sTarget));
nextEvent();
break;
case "Timer" :
nLastTimer = getTimer();
nTimer = oEvent.nTimer;
break;
case "TimedResponse" :
bTimerActive = true;
nLastTimer = getTimer();
nTimer = nLastTimer + oEvent.nTimer;
sCallbackEvent = oEvent.sTarget;
break;
case "FirstLocation" :
oLocationManager.setLocation(oEvent.sTarget, Popup.sSTATE_IN, Library.Delegate.create(this, nextEvent));
break;
case "SetLocation" :
oLocationManager.setLocation(oEvent.sTarget, Popup.sSTATE_IDLE);
nextEvent();
break;
case "ChangeMusic" :
Main.__get__Instance().playSong("loop1");
nextEvent();
break;
case "PlaySFX" :
Library.SoundManager.__get__Instance().playSFX(oEvent.sSFX, this);
break;
case "StopMusic" :
Library.SoundManager.__get__Instance().playSong("Naught");
nextEvent();
break;
case "PlayMusic" :
Library.SoundManager.__get__Instance().playSong(oEvent.sSong);
nextEvent();
break;
case "SetCondition" :
aEventMemory.push(oEvent.sEvent);
nextEvent();
break;
case "PopupBlocker" :
mcPopupBlocker._visible = oEvent.bVisible;
nextEvent();
break;
case "Condition" :
var _local2;
var _local4 = false;
if (oEvent.sEvent != "") {
_local2 = 0;
while (_local2 < aEventMemory.length) {
if (oEvent.sEvent == aEventMemory[_local2]) {
_local4 = true;
break;
}
_local2++;
}
} else {
_local4 = true;
}
if (oEvent.sEvent != undefined) {
_local4 = false;
_local2 = 0;
while (_local2 < aEventMemory.length) {
if (oEvent.sEvent == aEventMemory[_local2]) {
_local4 = true;
}
_local2++;
}
}
if (_local4) {
loadScript(Script.getScript(oLocationManager.sLocation, Script.sCONDITION, oEvent.sTarget));
} else {
nextEvent();
}
break;
case "EndTutorial" :
Main.__get__Instance().gotoTitle();
}
}
function soundEnd(_sSFX) {
nextEvent();
}
function get Room() {
return(oLocationManager.sLocation);
}
function set Room(_sRoom) {
oLocationManager.setLocation(_sRoom);
//return(Room);
}
static var nTOTAL_END_TAGS = 4;
}
Symbol 371 MovieClip [__Packages.State] Frame 0
class State
{
var mcRef, sState;
function State (_mcRef, _sState) {
mcRef = _mcRef;
setState(_sState);
}
function setState(_sState) {
if (sState != _sState) {
sState = _sState;
mcRef.gotoAndStop(_sState);
this["start" + _sState]();
}
}
function update() {
this["do" + sState]();
}
function get getState() {
return(sState);
}
}
Symbol 372 MovieClip [__Packages.Popup] Frame 0
class Popup extends State
{
var mcRef, sState;
function Popup (_mcRef) {
super(_mcRef, sSTATE_HIDDEN);
}
function doIn() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState(sSTATE_IDLE);
}
}
function doOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState(sSTATE_HIDDEN);
}
}
function setState(_sState) {
if (((sState == sSTATE_IDLE) && (_sState == sSTATE_IN)) || ((sState == sSTATE_HIDDEN) && (_sState == sSTATE_OUT))) {
return(undefined);
}
super.setState(_sState);
}
function btnPress(_mcRef) {
_mcRef.gotoAndStop("_down");
}
function btnRollOver(_mcRef) {
_mcRef.gotoAndStop("_over");
}
function btnRollOut(_mcRef) {
_mcRef.gotoAndStop("_up");
}
static var sSTATE_IN = "In";
static var sSTATE_IDLE = "Idle";
static var sSTATE_OUT = "Out";
static var sSTATE_HIDDEN = "Hidden";
}
Symbol 373 MovieClip [__Packages.LocationManager] Frame 0
class LocationManager extends Popup
{
var nXInit, nYInit, sAction, aItems, aConditions, aVisibleToHidden, aHiddenToVisible, mcRef, sLocation, bExplore, fCallback, sState, setState;
function LocationManager (_mcRef) {
super(_mcRef);
nXInit = _mcRef._x;
nYInit = _mcRef._y;
sAction = Script.sACT;
aItems = new Array();
aConditions = new Array();
aVisibleToHidden = new Array();
aHiddenToVisible = new Array();
}
function loadGame() {
mcRef.gotoAndStop(sLocation);
setLocation(sLocation, "In");
}
function setAction(_sAction) {
sAction = _sAction;
}
function setExplore(_bExplore) {
bExplore = _bExplore;
var _local3;
var _local4 = mcRef.mcBackground.mcExplore;
for (_local3 in _local4) {
if (bExplore) {
_local4[_local3].onRelease = Library.Delegate.create(this, explore, _local3);
} else {
_local4[_local3].onRelease = undefined;
delete _local4[_local3].onRelease;
}
}
_root.onRelease = Library.Delegate.create(this, explore, "test");
}
function explore(_sClip) {
Main.__get__Instance().__get__scriptManager().loadScript(Script.getScript(sLocation, Script.sENVIRONMENT, _sClip, sAction));
}
function setLocation(_sLocation, _sState, _fCallback) {
sLocation = _sLocation;
fCallback = _fCallback;
if ((_sState == Popup.sSTATE_IDLE) && (sState == Popup.sSTATE_IDLE)) {
startIdle();
} else {
setState(_sState);
}
}
function nextLocation(_sLocation) {
sLocation = _sLocation;
}
function addItem(_sItem) {
aItems.push(_sItem);
mcRef.mcBackground.mcExplore[_sItem]._visible = false;
}
function addExploreCondition(_sCondition) {
aConditions.push(_sCondition);
}
function addVisibleToHidden(_sElement) {
aVisibleToHidden.push(_sElement);
mcRef.mcBackground.mcExplore[_sElement]._visible = false;
}
function addHiddenToVisible(_sElement) {
aHiddenToVisible.push(_sElement);
mcRef.mcBackground.mcExplore[_sElement]._visible = true;
}
function startIn() {
mcRef._x = nXInit;
mcRef._y = nYInit;
mcRef.mcState.mcBackground.gotoAndStop(sLocation);
setItemVisibility(mcRef.mcState.mcBackground.mcExplore);
}
function startIdle() {
mcRef._x = nXInit;
mcRef._y = nYInit;
mcRef.mcBackground.gotoAndStop(sLocation);
setItemVisibility(mcRef.mcBackground.mcExplore);
if (fCallback != undefined) {
fCallback();
fCallback = undefined;
}
}
function doIdle() {
if (bExplore && (_root._ymouse <= 550)) {
var _local3 = _root._xmouse;
if (_local3 <= nOutEdge) {
if (_local3 <= nInEdge) {
mcRef._x = mcRef._x + nScroll;
} else {
mcRef._x = mcRef._x + (nScroll * ((nOutEdge - _local3) / (nOutEdge - nInEdge)));
}
mcRef._x = Math.min(0, mcRef._x);
} else if (_local3 >= (780 - nOutEdge)) {
if (_local3 >= (780 - nInEdge)) {
mcRef._x = mcRef._x - nScroll;
} else {
mcRef._x = mcRef._x - (nScroll * ((_local3 - (780 - nOutEdge)) / (nOutEdge - nInEdge)));
}
mcRef._x = Math.max(mcRef._x, 800 - mcRef._width);
}
}
}
function startOut() {
mcRef.mcState.mcBackground.gotoAndStop(sLocation);
setItemVisibility(mcRef.mcState.mcBackground.mcExplore);
}
function setItemVisibility(_mc) {
var _local2;
_mc = mcRef.mcBackground.mcExplore;
for (_local2 in _mc) {
if (_local2.substring(0, 4) == "item") {
_mc[_local2]._visible = Library.Tools.inArray(_local2, aItems) == -1;
} else if (_local2.substring(0, 9) == "condition") {
_mc[_local2]._visible = Library.Tools.inArray(_local2, aConditions) > -1;
} else if (_local2.substring(0, 7) == "visible") {
_mc[_local2]._visible = Library.Tools.inArray(_local2, aVisibleToHidden) <= -1;
} else if (_local2.substring(0, 6) == "hidden") {
_mc[_local2]._visible = Library.Tools.inArray(_local2, aHiddenToVisible) > -1;
}
}
}
static var nInEdge = 15;
static var nOutEdge = 50;
static var nScroll = 25;
}
Symbol 374 MovieClip [__Packages.Script] Frame 0
class Script
{
function Script () {
}
static function enterLocation() {
var _local1 = new Array();
return(_local1);
}
static function getScript(_sRoom, _sType, _sElement, _sAction, _sItem) {
var _local1;
var _local2;
switch (_sRoom) {
case script.Tutorial.sNAME :
_local1 = script.Tutorial;
break;
case script.Entrance.sNAME :
_local1 = script.Entrance;
break;
case script.Office.sNAME :
_local1 = script.Office;
}
switch (_sType) {
case sENVIRONMENT :
if (_sAction == sITEM) {
_local2 = _local1.oENVIRONMENT[_sElement][_sAction][_sItem].slice();
} else {
_local2 = _local1.oENVIRONMENT[_sElement][_sAction].slice();
}
break;
case sMAPDATA :
_local2 = _local1.aMAPDATA.slice();
break;
case sTIMER :
_local2 = _local1.oTIMER[_sElement].slice();
break;
case sCONDITION :
_local2 = _local1.oCONDITION[_sElement].slice();
break;
default :
_local2 = _local1.slice();
}
return(_local2);
}
static function getAllScript() {
var _local1 = new Array();
_local1 = _local1.concat(script.Entrance.getAllScript());
return(_local1);
}
static var sMAPDATA = "MapData";
static var sENVIRONMENT = "Environment";
static var sCONDITION = "Condition";
static var sTIMER = "Timer";
static var sDIALOG = "Dialog";
static var sACT = "Act";
static var sSEX = "Sex";
static var sITEM = "Item";
static var sMENU = "Menu";
static var aHINTS = new Array({sSubtle:"Red will bring you luck.", sDirect:"Get the rubies."});
static var aBEGINNING = new Array({sType:"UnlockLocation", sLocation:"Office"}, {sType:"UnlockLocation", sLocation:"Entrance"}, {sType:"FirstLocation", sTarget:"Black"}, {sType:"ShowImage", sTarget:"IntroTitle"}, {sType:"SetEffect", sTarget:"SlowBlackOut"}, {sType:"Timer", nTimer:2000}, {sType:"SetEffect", sTarget:"SlowBlackIn"}, {sType:"HideImage"}, {sType:"SetEffect", sTarget:"Hidden"}, {sType:"Timer", nTimer:750}, {sType:"StartConversation", sCategory:"Narration", bDark:false}, {sType:"Dialogue", sText:"Sam! Sam! Look at me!", sBubble:"NarrationMax"}, {sType:"EndConversation"}, {sType:"ForceWait"}, {sType:"Timer", nTimer:700}, {sType:"ShowImage", sTarget:"IntroDive"}, {sType:"SetEffect", sTarget:"SlowBlackOut"}, {sType:"Timer", nTimer:500}, {sType:"Dialogue", sText:"I\u2019ve managed to bend the laws of physics and remain suspended in mid-air!", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"You should know better than that Max. We\u2019re freelance police, it\u2019s our job to uphold the law.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Awww, you\u2019re no fun. At least watch me cannonball!", sBubble:"IntroMax"}, {sType:"EndConversation"}, {sType:"ForceWait"}, {sType:"SetEffect", sTarget:"BlackIn"}, {sType:"Timer", nTimer:300}, {sType:"SetEffect", sTarget:"Splash"}, {sType:"ShowImage", sTarget:"IntroFloat"}, {sType:"Timer", nTimer:200}, {sType:"SetEffect", sTarget:"BlackOut"}, {sType:"StartConversation", sCategory:"Narration", bDark:false}, {sType:"Dialogue", sText:"That was quite a cannonball, little buddy. I\u2019m pretty sure old Mrs. Rosepetal downstairs felt it herself.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Not to mention the water that must be dripping on her.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Well I think what she needs is a good thick cock.", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"Your continuous miscomprehension of euphemisms continue to amaze me Max.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Why thank you Sam, I work out a lot.", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"...", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"Is it me or have things become really sketchy around here...", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"Well Max, that's because things arn't finished yet.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Well I hope things get done soon. This pink color isn't doing my white complexion any justice.", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"I'm afraid it'll never be quite finished. What you're seeing is the beginning of the adventure that could have been.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"But for many reasons, this is all that is and ever will be.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"You're going to make me cry Sam!", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"Don't worry Max. Sometimes projects die. But we should still share what has been done.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"I think... I think the game would like that.", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"Just don't expect much. The HUD isn't complete, most of the art. Even the story was still being written.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"What remains is about ten pourcent of what would have been the final result, if even that.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Are we going to have sex?", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"I\u2019m afraid the loading screen is all we have. But they will see us naked all the way.", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Big deal, it\u2019s not like I wear any clothes to begin with!", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"But this time, they get to see your penis!", sBubble:"IntroSam"}, {sType:"Dialogue", sText:"Oh boy! Can we start now?", sBubble:"IntroMax"}, {sType:"Dialogue", sText:"I don\u2019t see why not.", sBubble:"IntroSam"}, {sType:"EndConversation"}, {sType:"ForceWait"}, {sType:"SetEffect", sTarget:"SlowBlackIn"}, {sType:"HideImage"}, {sType:"SetLocation", sTarget:"Office"}, {sType:"StartConversation", sCategory:"SamMax"}, {sType:"CharacterState", sChar:"Sam", sBase:"Idle", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"Idle", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"SetEffect", sTarget:"SlowBlackOut"}, {sType:"Dialogue", sChar:"Max", sText:"I'm so excited, I don't know what to do!"}, {sType:"Dialogue", sChar:"Sam", sText:"Just click on the various elements. Each time you find something interactive, you get a point."}, {sType:"Dialogue", sChar:"Sam", sText:"Try getting the most points you can."}, {sType:"Dialogue", sChar:"Max", sText:"What do I win if I get everything?", sBubble:"IntroMax"}, {sType:"Dialogue", sChar:"Sam", sText:"Fame and fortune, I hope. But as far as this game goes, nothing really. After all, it's far from complete.", sBubble:"IntroSam"}, {sType:"Dialogue", sChar:"Max", sText:"No prize? This game sucks!", sBubble:"IntroMax"}, {sType:"Dialogue", sChar:"Sam", sText:"Well maybe the player will find it in his heart to be more tolerent than you little buddy.", sBubble:"IntroSam"}, {sType:"Dialogue", sChar:"Max", sText:"Bastard. Always undermining my emotions.", sBubble:"IntroMax"}, {sType:"EndConversation"}, {sType:"ForceWait"}, {sType:"SetHud"});
static var aTUTORIAL = new Array({sType:"FirstLocation", sTarget:"Entrance"}, {sType:"SetHud"}, {sType:"Explore"});
}
Symbol 375 MovieClip [__Packages.script.Tutorial] Frame 0
class script.Tutorial
{
function Tutorial () {
}
static function getAllScript() {
return(new Array());
}
static var sNAME = "Tutorial";
static var oENVIRONMENT = new Object({entrancedoor:new Object({View:new Array({sType:"StartDialogue", sCategory:"Narration"}, {sType:"Dialogue", sText:"It's a door"}, {sType:"CloseDialogue"}), Act:new Array(""), Sex:new Array(""), Item:new Object({Hamster:new Array({sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"SetCharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"SetCharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"It's a door"}, {sType:"Dialogue", sChar:"Max", sText:"It really is a door!"}, {sType:"CloseDialogue", aWaitEntrance:new Array("Sam", "Max")}, {sType:"SetCharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking"}, {sType:"SetCharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking"}, {sType:"ForceWait"})})})});
static var oDIALOG = new Object({entrancedoor:new Array()});
}
Symbol 376 MovieClip [__Packages.script.Entrance] Frame 0
class script.Entrance
{
function Entrance () {
}
static function getAllScript() {
return(new Array());
}
static var sNAME = "Entrance";
static var sMUSIC = "Entrance";
static var aMAPDATA = new Array({sType:"SetLocation", sTarget:"Entrance"}, {sType:"UnsetHud"}, {sType:"Timer", nTimer:2000}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Charming audience. Who are these guys."}, {sType:"Dialogue", sChar:"Sam", sText:"They guard the entrance. In the full game, Daler Mehndi might have been used to scatter them."}, {sType:"Dialogue", sChar:"Max", sText:"And through this vast open space?"}, {sType:"Dialogue", sChar:"Sam", sText:"The final grand master of all evil, a man searching for his past glory and willing to do anything to get it."}, {sType:"Dialogue", sChar:"Max", sText:"Stop it Sam, you're scaring me!"}, {sType:"Dialogue", sChar:"Sam", sText:"I don't think Sonic the Hedgehog can actually scare anyone."}, {sType:"Dialogue", sChar:"Max", sText:"Oh! I thought you were talking about McCaulley Caulkin."}, {sType:"Dialogue", sChar:"Sam", sText:"But sadly, this is where our adventure ends. Hopefully the player got some entertainment in this."}, {sType:"Dialogue", sChar:"Sam", sText:"At least his score of (SCORE) is respectable, though maybe he could do better. Or maybe not, who knows."}, {sType:"Dialogue", sChar:"Max", sText:"Is there ever going to be another game Sam?"}, {sType:"Dialogue", sChar:"Sam", sText:"Perhaps, there's no saying."}, {sType:"Dialogue", sChar:"Sam", sText:"These things take time and few people are willing to commit the hours, days, weeks and months necessary you know."}, {sType:"Dialogue", sChar:"Max", sText:"Oh well, I suppose we can return to the pleasent darkness of our unexistance."}, {sType:"Dialogue", sChar:"Sam", sText:"I'm right behind you Max."}, {sType:"Dialogue", sChar:"Max", sText:"I know. I wouldn't be spreading my butt cheeks if you weren't."}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"Timer", nTimer:700}, {sType:"SetEffect", sTarget:"SlowBlackIn"}, {sType:"ShowImage", sTarget:"EndTitle"}, {sType:"SetEffect", sTarget:"SlowBlackOut"});
static var oENVIRONMENT = new Object({beginning:new Array(), entrancea:new Object({Act:new Array(), See:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"Narration"}, {sType:"Dialogue", sText:"This is Sam", sBubble:"NarrationSam"}, {sType:"Dialogue", sText:"This is Max", sBubble:"NarrationMax"}, {sType:"EndConversation"}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"Narration"}, {sType:"Dialogue", sText:"This is sex", sBubble:"NarrationMax"}, {sType:"EndConversation"}, {sType:"SetHud"}), Item:new Object()}), entranceb:new Object({Act:new Array(), See:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"Narration"}, {sType:"Dialogue", sText:"It's a door", sBubble:"NarrationSam"}, {sType:"EndConversation"}, {sType:"SetHud"}), Sex:new Array(), Item:new Object()})});
static var oDIALOG = new Object({entrancedoor:new Array()});
}
Symbol 377 MovieClip [__Packages.script.Office] Frame 0
class script.Office
{
function Office () {
}
static function getAllScript() {
return(new Array());
}
static var sNAME = "Office";
static var sMUSIC = "Office";
static var aMAPDATA = new Array({sType:"SetLocation", sTarget:"Office"}, {sType:"SetHud"});
static var oTIMER = new Object({intromaxanswer:new Array({sType:"UnsetHud"}, {sType:"SetCondition", sEvent:"IntroPhoneAnswered"}, {sType:"StartConversation", sCategory:"Phone", aWaitEntrance:new Array("Max", "Phone")}, {sType:"CharacterState", sChar:"Sam", sBase:"Hidden", sIdle:"Hidden", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxLeft"}, {sType:"CharacterState", sChar:"Phone", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Sudden text"}, {sType:"CharacterState", sChar:"Max", sBase:"Out", sIdle:"Hidden", sTalking:"Talking", sBubbleType:"MaxLeft"}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"WaitConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Hello?"})});
static var oCONDITION = new Object({intromaxanswer:new Array({sType:"UnsetHud"}), phoneact:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamNarrationRight", aWaitEntrance:new Array("Sam")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"GenericText"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"No time for phoning anyone now, there\u2019s a world in need to be saved!"}, {sType:"AddScore", nScore:1, sCode:"phoneact"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"}), phonesex:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Can I have phone sex Sam? Can I?"}, {sType:"Dialogue", sChar:"Sam", sText:"We don\u2019t have time for that little buddy. Last time you had phone sex, I had to plunge deep into your rectum to get it back."}, {sType:"Dialogue", sChar:"Max", sText:"Happy memories. We still need to develop the pictures you took while you were down there. "}, {sType:"Dialogue", sChar:"Sam", sText:"As soon as the photo technician comes back from his sudden vacation."}, {sType:"Dialogue", sChar:"Max", sText:"I heard he got interned at the psychiatric ward."}, {sType:"Dialogue", sChar:"Sam", sText:"Yeah, you tend to do that to people Max."}, {sType:"Dialogue", sChar:"Max", sText:"Tee hee."}, {sType:"AddScore", nScore:1, sCode:"phonesex"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"}), leaveroom:new Array({sType:"AddScore", nScore:1}, {sType:"ShowMap"}), leaveroomfirst:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Well Max, off we go to the final location of the game."}, {sType:"Dialogue", sChar:"Max", sText:"You know, I\u2019m thinking maybe this game isn\u2019t complete."}, {sType:"Dialogue", sChar:"Sam", sText:"Had it followed the original vision, there would have been 7 locations to visit, "}, {sType:"Dialogue", sChar:"Sam", sText:"As it is however, it goes no further than the temple entrance."}, {sType:"Dialogue", sChar:"Max", sText:"Well let\u2019s get going! I\u2019m not getting any younger you know."}, {sType:"Dialogue", sChar:"Sam", sText:"You\u2019re not aging at all actually."}, {sType:"Dialogue", sChar:"Max", sText:"Don\u2019t push me! I\u2019ll age whenever I want."}, {sType:"AddScore", nScore:1, sCode:"leaveroomfirst"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetCondition", sEvent:"MapTakenSecond"}, {sType:"ShowMap"})});
static var oENVIRONMENT = new Object({phone:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"Condition", sEvent:"IntroPhoneAnswered", sTarget:"phoneact"}, {sType:"SetCondition", sEvent:"IntroPhoneAnswered"}, {sType:"StartConversation", sCategory:"Phone", aWaitEntrance:new Array("Max", "Phone")}, {sType:"CharacterState", sChar:"Sam", sBase:"Hidden", sIdle:"Hidden", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxLeft"}, {sType:"CharacterState", sChar:"Phone", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Uh'lo gov'na! Welcome to our insanitarium. We produce the highest quality insanity in the city!"}, {sType:"Dialogue", sChar:"Phone", sText:"..."}, {sType:"Dialogue", sChar:"Max", sText:"Sam! It's for you! It's the commissioner!"}, {sType:"CharacterState", sChar:"Max", sBase:"Out", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft", bForceWait:true}, {sType:"ForceWait"}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft", bForceWait:true}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Hello?"}, {sType:"Dialogue", sChar:"Phone", sText:"..."}, {sType:"Dialogue", sChar:"Sam", sText:"You don't say!"}, {sType:"Dialogue", sChar:"Phone", sText:"..."}, {sType:"Dialogue", sChar:"Sam", sText:"That\u2019s crazy!"}, {sType:"Dialogue", sChar:"Phone", sText:"..."}, {sType:"Dialogue", sChar:"Sam", sText:"Jumping lumberjacks in a bowl of molasses! We\u2019re on our way!"}, {sType:"AddScore", nScore:1, sCode:"phoneActAct"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Phone")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array({sType:"UnsetHud"}, {sType:"Condition", sEvent:"IntroPhoneAnswered", sTarget:"phonesex"}, {sType:"SetCondition", sEvent:"IntroPhoneAnswered"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Oh! Do we get to have tons of dirty nasty sex while prank calling little old grand-mothers now?"}, {sType:"Dialogue", sChar:"Sam", sText:"I wish it were that simple Max but like I said, we don\u2019t have that image done."}, {sType:"Dialogue", sChar:"Max", sText:"Awww. Well can we talk about it?"}, {sType:"Dialogue", sChar:"Sam", sText:"You couldn\u2019t stop yourself even if the forces of the universe were against you."}, {sType:"Dialogue", sChar:"Max", sText:"You would have mounted me savagely and pounded my ass right here, while I dialled number after number."}, {sType:"Dialogue", sChar:"Max", sText:"I would have screamed hot, dirty stuff and you would have howled in the background."}, {sType:"Dialogue", sChar:"Max", sText:"It would have been Christmas \u201907 all over again."}, {sType:"Dialogue", sChar:"Sam", sText:"Yeah, things would have been quite different."}, {sType:"Dialogue", sChar:"Max", sText:"When we\u2019re done here, remind me to call them anyways."}, {sType:"Dialogue", sChar:"Max", sText:"I feel like I should apologise for not having the opportunity to scare them out of their wits."}, {sType:"Dialogue", sChar:"Sam", sText:"Your heart of turbulent flames really does hide a silver lining little buddy."}, {sType:"AddScore", nScore:2, sCode:"phoneSexSex"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"})}), hand:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Remember the living dead trials Max? "}, {sType:"Dialogue", sChar:"Max", sText:"Wasn\u2019t Michael Jackson guilty of raising the dead all along?"}, {sType:"Dialogue", sChar:"Sam", sText:"Allegedly. We never did go to court. We still have all the necessary paperwork filed in here though."}, {sType:"Dialogue", sChar:"Max", sText:"And our key witness, always ready if ever we should need him."}, {sType:"Dialogue", sChar:"Sam", sText:"Remind me to get him some brains next time we go do the groceries."}, {sType:"Dialogue", sChar:"Max", sText:"Sure. Don\u2019t expect to find anything fresh on the shelves though."}, {sType:"Dialogue", sChar:"Max", sText:"You know, I miss the good old days where we would go brain hunting together."}, {sType:"Dialogue", sChar:"Sam", sText:"Remember that we were hunting for your brain little buddy. We never did find it actually."}, {sType:"Dialogue", sChar:"Max", sText:"Oh well, it\u2019ll turn up. Like a rat impaled on a boomerang, it always returns to its master."}, {sType:"Dialogue", sChar:"Sam", sText:"You crack me up, little buddy."}, {sType:"AddScore", nScore:1, sCode:"hand"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"})}), ceilingfan:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamNarrationRight", aWaitEntrance:new Array("Sam")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"GenericText"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Before jumping into the spa, Max loves to just hang around and spin over and over."}, {sType:"Dialogue", sChar:"Sam", sText:"The ceiling fan stopped working a few days ago though and we\u2019ll have to convince our landlord to replace it for a third time."}, {sType:"AddScore", nScore:1, sCode:"ceilingfan"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"})}), calendar:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamNarrationRight", aWaitEntrance:new Array("Sam")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"GenericText"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"One of those novelty calendars to brighten up the place."}, {sType:"Dialogue", sChar:"Sam", sText:"I was disappointed to see that the only novelty was putting the days and months in a random order."}, {sType:"Dialogue", sChar:"Sam", sText:"I personally don\u2019t see what\u2019s so funny to put months in random order."}, {sType:"Dialogue", sChar:"Sam", sText:"\"Dickcember\" before \"Fucktober\"? Big deal!"}, {sType:"AddScore", nScore:1, sCode:"calendar"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), telescope:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"Look through the telescope Sam! Let's see if you can find my anus!"}, {sType:"Dialogue", sChar:"Sam", sText:"I don't think that gag works unless I'm talking about Uranus little buddy!"}, {sType:"Dialogue", sChar:"Max", sText:"As long as you watch it, I don't care how you say it."}, {sType:"Dialogue", sChar:"Sam", sText:"Actually, this would have been used to find constellations to resolve one of the final puzzles."}, {sType:"Dialogue", sChar:"Max", sText:"People don't care about \"what ifs\" Sam! They want something raunchy! Like my anus!"}, {sType:"Dialogue", sChar:"Sam", sText:"Maybe you could stretch it out and try to fit the telescope in it."}, {sType:"Dialogue", sChar:"Max", sText:"That's how we lost the previous one, remember?"}, {sType:"Dialogue", sChar:"Sam", sText:"Remind me to keep you as a shield if ever aliens come to probe us Max."}, {sType:"AddScore", nScore:1, sCode:"telescope"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array(), Item:new Object()}), computer:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamNarrationRight", aWaitEntrance:new Array("Sam")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"GenericText"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"The commissioner told us we could find a lot of use in having a computer. And he was right."}, {sType:"Dialogue", sChar:"Sam", sText:"You\u2019d think that browsing so much pornography would get tiring after a while..."}, {sType:"Dialogue", sChar:"Sam", sText:"All I have to say is having Max kneeling under the desk while I surf the Internets..."}, {sType:"Dialogue", sChar:"Sam", sText:"taking \"care\" of me..."}, {sType:"Dialogue", sChar:"Sam", sText:"It really takes the edge off."}, {sType:"AddScore", nScore:1, sCode:"computer"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), spa:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamNarrationRight", aWaitEntrance:new Array("Sam")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"GenericText"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"The spa gives Max and I a perfect way to try watersports together."}, {sType:"Dialogue", sChar:"Sam", sText:"Next we\u2019re thinking of having a pool of mud installed to watch midgets wrestle in."}, {sType:"AddScore", nScore:1, sCode:"spa"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), plant:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamNarrationRight", aWaitEntrance:new Array("Sam")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"GenericText"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Max brought this back from our trip to South America when it was just a small thing."}, {sType:"Dialogue", sChar:"Sam", sText:"He thought it was a carnivorous plant and had high hopes to send it rampaging through the streets of the city."}, {sType:"Dialogue", sChar:"Sam", sText:"He was very disappointed to see all his diet of sex, booze and rock and roll nurturing go to waste."}, {sType:"AddScore", nScore:1, sCode:"plant"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), trashcan:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"What are you looking for Max?"}, {sType:"Dialogue", sChar:"Max", sText:"I figured that since the game was trashed, maybe I could find pieces of it in here?"}, {sType:"Dialogue", sChar:"Sam", sText:"Any luck?"}, {sType:"Dialogue", sChar:"Max", sText:"I did come up with a copy of Duke Nukem Forever, which I\u2019m afraid to touch. It looks so... scary."}, {sType:"Dialogue", sChar:"Sam", sText:"Well this is trash you\u2019re looking into."}, {sType:"Dialogue", sChar:"Max", sText:"I guess that\u2019s why we\u2019re not in there."}, {sType:"Dialogue", sChar:"Max", sText:"The game must be on a golden pedestal somewhere in the Himalayas, guarded by man eating vultures."}, {sType:"Dialogue", sChar:"Sam", sText:"You continue dreaming, little buddy."}, {sType:"AddScore", nScore:1, sCode:"trashcan"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"})}), mail:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Bills, bills, bills. It\u2019s a good thing the bailiff decided that he would rather not bother us anymore."}, {sType:"Dialogue", sChar:"Max", sText:"I never understood what the problem was. It was just a tiny bit of acid."}, {sType:"Dialogue", sChar:"Sam", sText:"For some people, there\u2019s no such thing as too little acid."}, {sType:"Dialogue", sChar:"Max", sText:"There\u2019s no such thing as too much acid if you ask me!"}, {sType:"AddScore", nScore:1, sCode:"mail"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), door:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"Condition", sEvent:"MapTakenSecond", sTarget:"leaveroom"}, {sType:"Condition", sEvent:"MapTaken", sTarget:"leaveroomfirst"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Max", sText:"What are you waiting for Sam? Let\u2019s go!"}, {sType:"Dialogue", sChar:"Sam", sText:"We can\u2019t just leave like this Max, we don\u2019t know where we\u2019re going."}, {sType:"Dialogue", sChar:"Max", sText:"Sure we do. We\u2019re off to the great bare back!"}, {sType:"Dialogue", sChar:"Sam", sText:"I think you mean \"Outback\" Max."}, {sType:"Dialogue", sChar:"Max", sText:"As long as I get to ride farm animals and farm owners to my heart content, I don\u2019t care what it\u2019s called!"}, {sType:"Dialogue", sChar:"Sam", sText:"We still need to find the directions to get to Australia though."}, {sType:"Dialogue", sChar:"Sam", sText:"One wrong turn and we might end up in Rome. They say all roads lead there after all."}, {sType:"Dialogue", sChar:"Max", sText:"Well let\u2019s hurry up! I\u2019ve got an itching for some thick juicy kangaroo meat!"}, {sType:"Dialogue", sChar:"Sam", sText:"You mean in a restaurant?"}, {sType:"Dialogue", sChar:"Max", sText:"Sure Sam, whatever helps you sleep at night."}, {sType:"AddScore", nScore:1, sCode:"door"}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), visiblemap:new Object({Act:new Array({sType:"UnsetHud"}, {sType:"StartConversation", sCategory:"SamMax", aWaitEntrance:new Array("Sam", "Max")}, {sType:"CharacterState", sChar:"Sam", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"SamLeft"}, {sType:"CharacterState", sChar:"Max", sBase:"In", sIdle:"Idle", sTalking:"Talking", sBubbleType:"MaxRight"}, {sType:"ForceWait"}, {sType:"Dialogue", sChar:"Sam", sText:"Hey, I didn\u2019t know we still had this old thing."}, {sType:"Dialogue", sChar:"Max", sText:"The map? Yeah, I\u2019ve been using it as a tablecloth ever since Illinois James gave it to us."}, {sType:"Dialogue", sChar:"Sam", sText:"Way to avoid any copyright issues with other archaeologists there little buddy."}, {sType:"Dialogue", sChar:"Max", sText:"Let\u2019s just hope Steve Purcell doesn\u2019t stumble upon this. "}, {sType:"Dialogue", sChar:"Sam", sText:"Well as much as I\u2019m glad to see the Ikea furniture well protected, I think we could use this in our travel."}, {sType:"SetCondition", sEvent:"MapTaken"}, {sType:"AddVisibleToHidden", sTarget:"visiblemap"}, {sType:"AddScore", nScore:2, sCode:"visiblemap"}, {sType:"Dialogue", sChar:"Max", sText:"But what if there\u2019s a flock of seagulls just waiting to make a mess of the office? Your table would be ruined! RUINED!"}, {sType:"Dialogue", sChar:"Sam", sText:"We\u2019ll just have to make sure to expedite this case and bring back the map before something malicious happens."}, {sType:"Dialogue", sChar:"Max", sText:"Sometimes you scare me Sam with your big words."}, {sType:"Dialogue", sChar:"Sam", sText:"Don\u2019t worry little buddy, I know the only part of the dictionary you enjoy is the \"dic\"."}, {sType:"Dialogue", sChar:"Max", sText:"Oh Sam. You know me so well."}, {sType:"EndConversation", aWaitEntrance:new Array("Sam", "Max")}, {sType:"ForceWait"}, {sType:"SetHud"}), Sex:new Array()}), hiddenplant:new Object({Act:new Array(), Sex:new Array()})});
static var oDIALOG = new Object({entrancedoor:new Array()});
}
Symbol 378 MovieClip [__Packages.Library.Delegate] Frame 0
class Library.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
var _local2 = arguments.callee.arg;
_local2 = _local2.concat(arguments);
return(_local4.apply(_local3, _local2));
};
_local2.target = obj;
_local2.func = func;
_local2.arg = arguments.slice(2);
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 379 MovieClip [__Packages.Library.Tools] Frame 0
class Library.Tools
{
function Tools () {
}
static function inArray(_oItem, _aItem) {
var _local2 = -1;
var _local1;
var _local3 = _aItem.length;
_local1 = 0;
while (_local1 < _local3) {
if (_aItem[_local1] == _oItem) {
_local2 = _local1;
break;
}
_local1++;
}
return(_local2);
}
}
Symbol 380 MovieClip [__Packages.Dialogue] Frame 0
class Dialogue extends State
{
var nWaiting, oCharacters, oTextBubble, oDarkBackground, setState, aWaitEntrance, mcRef, sCurrentChar, __get__waitEntrance;
function Dialogue (_mcRef) {
super(_mcRef, "None");
nWaiting = 0;
oCharacters = new Object();
}
function update() {
oTextBubble.update();
oDarkBackground.update();
var _local3;
var _local2;
for (_local2 in oCharacters) {
oCharacters[_local2].update();
}
}
function setDialog(_sState, _aWaitEntrance, _bDark) {
setState(_sState);
aWaitEntrance = _aWaitEntrance;
nWaiting = 0;
oTextBubble = new TextBubble(mcRef.mcState.mcDialog, Library.Delegate.create(this, startDialog), Library.Delegate.create(this, endDialog));
mcRef.mcDarkBackground._visible = _bDark;
oDarkBackground = new Popup(mcRef.mcDarkBackground);
oDarkBackground.setState(Popup.sSTATE_IN);
}
function startDialog() {
oCharacters[sCurrentChar].setTalking();
}
function endDialog() {
oCharacters[sCurrentChar].setIdle();
}
function setCharacter(_sChar, _sBase, _sIdle, _sTalking, _sBubbleType, _bForceWait) {
var _local5;
var _local4 = Library.Tools.inArray(_sChar, aWaitEntrance);
if ((_local4 != -1) || (_bForceWait)) {
if (_local4 != -1) {
aWaitEntrance.splice(_local4, 1);
}
nWaiting++;
_local5 = Library.Delegate.create(this, charStateChange, _sChar);
}
if (oCharacters[_sChar] == undefined) {
var _local3 = new Character(mcRef.mcState[_sChar], _sChar, _sIdle, _sTalking, _sBubbleType, _local5);
_local3.setState(_sBase);
_local3.nextState(_sIdle);
oCharacters[_sChar] = _local3;
} else {
if (_sIdle != undefined) {
oCharacters[_sChar].Idle = _sIdle;
}
if (_sTalking != undefined) {
oCharacters[_sChar].Talking = _sTalking;
}
oCharacters[_sChar].setState(_sBase);
oCharacters[_sChar].nextState(_sIdle);
oCharacters[_sChar].Bubble = _sBubbleType;
oCharacters[_sChar].WaitComplete = _local5;
}
}
function setCharacterState(_sChar, _sState) {
oCharacters[_sChar].setState(_sState);
nWaiting++;
}
function charStateChange(_sChar) {
switch (oCharacters[_sChar].getState) {
case Popup.sSTATE_IDLE :
break;
case Popup.sSTATE_HIDDEN :
oCharacters[_sChar] = undefined;
delete oCharacters[_sChar];
}
nWaiting--;
if (nWaiting == 0) {
Main.__get__Instance().__get__scriptManager().nextEvent();
}
}
function addDialogue(_sText, _sChar, _sBubble) {
sCurrentChar = _sChar;
if (_sBubble == undefined) {
oTextBubble.setDialog(_sText, oCharacters[_sChar].Bubble);
} else {
oTextBubble.setDialog(_sText, _sBubble);
}
}
function closeDialogue(_aWaitEntrance) {
var _local2;
for (_local2 in oCharacters) {
oCharacters[_local2].closeDialogue(Library.Delegate.create(this, charStateChange, _local2));
}
oTextBubble.closeDialogue(_aWaitEntrance == undefined);
aWaitEntrance = _aWaitEntrance;
nWaiting = aWaitEntrance.length;
oDarkBackground.setState(Popup.sSTATE_OUT);
}
function set waitEntrance(_aWaitEntrance) {
aWaitEntrance = _aWaitEntrance;
//return(__get__waitEntrance());
}
}
Symbol 381 MovieClip [__Packages.Character] Frame 0
class Character extends Popup
{
var sChar, sTextBubble, sIdleState, sTalkingState, fWaitComplete, sNextState, mcRef, setState, __get__Idle, __get__Talking, __get__WaitComplete;
function Character (_mcRef, _sChar, _sIdleState, _sTalkingState, _sTextBubble, _fWaitComplete) {
super(_mcRef);
sChar = _sChar;
sTextBubble = _sTextBubble;
sIdleState = _sIdleState;
sTalkingState = _sTalkingState;
fWaitComplete = _fWaitComplete;
sNextState = undefined;
}
function startIn() {
mcRef.mcState.mcState.gotoAndStop(sIdleState);
}
function startIdle() {
mcRef.mcState.gotoAndStop(sIdleState);
fWaitComplete();
sNextState = undefined;
}
function startOut() {
mcRef.mcState.mcState.gotoAndStop(sIdleState);
}
function startHidden() {
fWaitComplete();
sNextState = undefined;
}
function nextState(_sNextState) {
sNextState = _sNextState;
}
function setTalking() {
mcRef.mcState.gotoAndStop(sTalkingState);
}
function setIdle() {
mcRef.mcState.gotoAndStop(sIdleState);
}
function closeDialogue(_fWaitComplete) {
fWaitComplete = _fWaitComplete;
setState("Out");
}
function update() {
super.update();
if (sNextState != undefined) {
if (mcRef.mcState._currentframe == mcRef.mcState.totalframes) {
setState(sNextState);
sNextState = undefined;
}
}
}
function set Idle(_sIdleState) {
sIdleState = _sIdleState;
//return(__get__Idle());
}
function set Talking(_sTalkingState) {
sTalkingState = _sTalkingState;
//return(__get__Talking());
}
function set WaitComplete(_fWaitComplete) {
fWaitComplete = _fWaitComplete;
//return(__get__WaitComplete());
}
function get Bubble() {
return(sTextBubble);
}
function set Bubble(_sTextBubble) {
sTextBubble = _sTextBubble;
//return(Bubble);
}
}
Symbol 382 MovieClip [__Packages.TextBubble] Frame 0
class TextBubble extends Popup
{
var startDialog, endDialog, oKeyListener, oMouseListener, bActive, bWaitBubble, sTextToDisplay, mcRef, nSpeed, nCurrentTotalLineCharCount, nCurrentLineCharCount, sCurrentText, sBubbleType, sState, setState;
function TextBubble (_mcRef, _startDialog, _endDialog) {
super(_mcRef);
startDialog = _startDialog;
endDialog = _endDialog;
oKeyListener = new Object();
oKeyListener.onKeyDown = Library.Delegate.create(this, doKeyDown);
Key.addListener(oKeyListener);
oMouseListener = new Object();
oMouseListener.onMouseDown = Library.Delegate.create(this, doMouseDown);
Mouse.addListener(oMouseListener);
bActive = false;
bWaitBubble = false;
}
function doKeyDown() {
if (bActive) {
if (Key.isDown(32)) {
if (sTextToDisplay.length > 0) {
addText(true);
endDialog();
mcRef.mcState.mcTriangle._visible = true;
} else {
Main.__get__Instance().oScriptManager.nextEvent();
bActive = false;
mcRef.mcState.mcTriangle._visible = false;
}
}
}
}
function doMouseDown() {
if (bActive) {
if (sTextToDisplay.length > 0) {
addText(true);
endDialog();
mcRef.mcState.mcTriangle._visible = true;
} else {
bActive = false;
Main.__get__Instance().oScriptManager.nextEvent();
mcRef.mcState.mcTriangle._visible = false;
}
}
}
function addText(_bAll) {
var _local4 = Math.max(1, nSpeed);
if (_bAll) {
_local4 = sTextToDisplay.length;
}
var _local3;
var _local2;
_local2 = 0;
while (_local2 < _local4) {
if (sTextToDisplay.slice(_local2, _local2 + 1) == " ") {
_local3 = sTextToDisplay.indexOf(" ", _local2 + 1) - _local2;
if (_local3 < 0) {
_local3 = sTextToDisplay.length - _local2;
}
if ((nCurrentLineCharCount + _local3) >= nCurrentTotalLineCharCount) {
nCurrentLineCharCount = 0;
mcRef.mcState.txtText.text = mcRef.mcState.txtText.text + newline;
_local2++;
}
}
mcRef.mcState.txtText.text = mcRef.mcState.txtText.text + sTextToDisplay.slice(_local2, _local2 + 1);
nCurrentLineCharCount++;
_local2++;
}
sTextToDisplay = sTextToDisplay.slice(_local2);
}
function setDialog(_sTextToDisplay, _sBubbleType, _nSpeed) {
if (_nSpeed != undefined) {
nSpeed = _nSpeed;
} else {
nSpeed = 1;
}
nCurrentLineCharCount = 0;
sTextToDisplay = _sTextToDisplay;
sCurrentText = _sTextToDisplay;
sBubbleType = _sBubbleType;
setBubble(_sBubbleType);
if (sState == Popup.sSTATE_HIDDEN) {
setState(Popup.sSTATE_IN);
} else {
startDialog();
bActive = true;
}
}
function closeDialogue(_bWaitBubble) {
bWaitBubble = _bWaitBubble;
setState(Popup.sSTATE_OUT);
}
function setBubble(_sBubbleType) {
sBubbleType = _sBubbleType;
switch (sState) {
case Popup.sSTATE_IN :
mcRef.mcState.mcState.gotoAndStop(sBubbleType);
mcRef.mcState.mcState.txtText.text = "";
break;
case Popup.sSTATE_IDLE :
mcRef.mcState.gotoAndStop(sBubbleType);
mcRef.mcState.txtText.text = "";
switch (sBubbleType) {
case "NarrationSam" :
case "NarrationMax" :
nCurrentTotalLineCharCount = nTOTAL_LINE_COUNT_LONG;
break;
default :
nCurrentTotalLineCharCount = nTOTAL_LINE_COUNT;
}
break;
case Popup.sSTATE_OUT :
mcRef.mcState.mcState.gotoAndStop(sBubbleType);
mcRef.mcState.mcState.txtText.text = sCurrentText;
break;
case Popup.sSTATE_HIDDEN :
}
}
function startIn() {
setBubble(sBubbleType);
mcRef.mcState.mcState.mcTriangle._visible = false;
}
function startIdle() {
setBubble(sBubbleType);
startDialog();
bActive = true;
mcRef.mcState.mcTriangle._visible = false;
}
function startOut() {
setBubble(sBubbleType);
mcRef.mcState.mcState.mcTriangle._visible = false;
}
function startHidden() {
if (bWaitBubble) {
bWaitBubble = false;
Main.__get__Instance().__get__scriptManager().nextEvent();
}
}
function doIdle() {
if (sTextToDisplay.length > 0) {
addText(false);
if (sTextToDisplay.length == 0) {
endDialog();
mcRef.mcState.mcTriangle._visible = true;
}
}
}
static var nTOTAL_LINE_COUNT = 24;
static var nTOTAL_LINE_COUNT_LONG = 60;
}
Symbol 383 MovieClip [__Packages.ItemManager] Frame 0
class ItemManager
{
var mcRef, aItem;
function ItemManager (_mcRef) {
mcRef = _mcRef;
aItem = new Array();
}
function setExplore(_bExplore) {
if (_bExplore) {
var _local2;
for (_local2 in mcRef.mcBackground.mcExplore) {
if ((mcRef.mcBackground.mcExplore[_local2] != undefined) && (_local2 != undefined)) {
mcRef.mcBackground.mcExplore[_local2].onRelease = Library.Delegate.create(this, explore, _local2);
}
}
}
}
function explore(_sLocation, _sAction) {
Main.__get__Instance().__get__scriptManager().loadScript(Script.getScript(_sLocation, Script.sENVIRONMENT, _sAction));
}
function addItem(_sItem) {
aItem.push(_sItem);
}
function removeItem(_sItem) {
aItem.splice(Library.Tools.inArray(_sItem));
}
function selectItem(_sItem) {
}
}
Symbol 384 MovieClip [__Packages.PopupEffect] Frame 0
class PopupEffect extends Popup
{
var mcRef, setState;
function PopupEffect (_mcRef) {
super(_mcRef, Popup.sSTATE_HIDDEN);
}
function startBlack() {
Main.__get__Instance().__get__scriptManager().nextEvent();
}
function startHidden() {
Main.__get__Instance().__get__scriptManager().nextEvent();
}
function doBlackIn() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Black");
}
}
function doBlackOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Hidden");
}
}
function doSlowBlackIn() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Black");
}
}
function doSlowBlackOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Hidden");
}
}
function doSplash() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Black");
}
}
function doDring() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Hidden");
}
}
}
Symbol 385 MovieClip [__Packages.PopupSave] Frame 0
class PopupSave extends Popup
{
function PopupSave (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function doIdle() {
setState("Hidden");
}
}
Symbol 386 MovieClip [__Packages.PopupHelp] Frame 0
class PopupHelp extends Popup
{
var mcRef;
function PopupHelp (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function doIdle() {
mcRef.mcChoice.btnYes.onRelease = mx.utils.Delegate.create(this, doQuit);
mcRef.mcChoice.btnNo.onRelease = mx.utils.Delegate.create(this, doClose);
}
function doQuit() {
setState("Out");
Main.__get__Instance().gotoTitle();
}
function doClose() {
setState("Out");
}
}
Symbol 387 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 388 MovieClip [__Packages.PopupQuit] Frame 0
class PopupQuit extends Popup
{
var mcRef;
function PopupQuit (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function doIdle() {
mcRef.mcChoice.btnYes.onRelease = mx.utils.Delegate.create(this, doQuit);
mcRef.mcChoice.btnNo.onRelease = mx.utils.Delegate.create(this, doClose);
}
function doQuit() {
setState("Out");
Main.__get__Instance().gotoTitle();
}
function doClose() {
setState("Out");
}
}
Symbol 389 MovieClip [__Packages.PopupShowItem] Frame 0
class PopupShowItem extends Popup
{
var aChoices, mcRef, btnRollOut, btnPress, btnRollOver;
function PopupShowItem (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addChoice(_sText, _fCallback) {
aChoices.push({sText:_sText, fCallback:_fCallback});
}
function clearChoices() {
aChoices = new Array();
}
function doIn() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doOut() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doIdle() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onPress = mx.utils.Delegate.create(this, btnPress, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRelease = aChoices[_local2].fCallback;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onReleaseOutside = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRollOver = mx.utils.Delegate.create(this, btnRollOver, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRollOut = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
}
Symbol 390 MovieClip [__Packages.PopupBoxGame] Frame 0
class PopupBoxGame extends Popup
{
function PopupBoxGame (_mcRef) {
super(_mcRef);
}
static var sTD = "TDLine";
static var sLR = "LRLine";
static var sTR = "TRLine";
static var sRD = "RDLine";
static var sDL = "DLLine";
static var sLT = "LTLine";
static var sT = "TSplit";
static var sPlus = "Plus";
static var sANY = "";
static var aSTART_PATTERN = new Array(new Array(), new Array(), new Array());
static var aEND_PATTERN = new Array(new Array(sANY, sRD, sLR, sLR, sDL), new Array(sDL, sTR, sT, sDL, sTR), new Array(sTR, sLR, sPlus, sLT, sANY));
}
Symbol 391 MovieClip [__Packages.PopupTelescope] Frame 0
class PopupTelescope extends Popup
{
var mcRef, nX, nY;
function PopupTelescope (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
}
function startIn() {
mcRef.mcState.mcChar.btnReturn.gotoAndStop("Idle");
nX = Math.floor(Math.random() * (800 - mcRef.mcState.mcChar.mcSky._width));
nY = Math.floor(Math.random() * (600 - mcRef.mcState.mcChar.mcSky._height));
mcRef.mcState.mcChar.mcSky._x = nX;
mcRef.mcState.mcChar.mcSky._y = nY;
}
function startOut() {
mcRef.mcState.mcChar.btnReturn.gotoAndStop("Idle");
mcRef.mcState.mcChar.mcSky._x = nX;
mcRef.mcState.mcChar.mcSky._y = nY;
}
function startIdle() {
mcRef.mcState.mcSky._x = nX;
mcRef.mcState.mcSky._y = nY;
var _local2;
for (_local2 in mcRef.mcState.mcSky) {
mcRef.mcState.mcSky[_local2].onRelease = Library.Delegate.create(this, clickConstellation, _local2);
}
mcRef.mcState.btnReturn.onRelease = Library.Delegate.create(this, quitTelescope);
mcRef.mcState.btnReturn.gotoAndStop("Idle");
mcRef.mcState.btnReturn.onRollOver = function () {
this.gotoAndStop("Over");
};
mcRef.mcState.btnReturn.onRollOut = function () {
this.gotoAndStop("Idle");
};
mcRef.mcState.btnReturn.onPress = function () {
this.gotoAndStop("Down");
};
mcRef.mcState.btnReturn.onMouseUp = function () {
this.gotoAndStop("Idle");
};
}
function doIdle() {
var _local3 = _root._xmouse;
if (_local3 <= nOutEdge) {
if (_local3 <= nInEdge) {
mcRef.mcState.mcSky._x = mcRef.mcState.mcSky._x + nScroll;
} else {
mcRef.mcState.mcSky._x = mcRef.mcState.mcSky._x + (nScroll * ((nOutEdge - _local3) / (nOutEdge - nInEdge)));
}
mcRef.mcState.mcSky._x = Math.min(0, mcRef.mcState.mcSky._x);
} else if (_local3 >= (780 - nOutEdge)) {
if (_local3 >= (780 - nInEdge)) {
mcRef.mcState.mcSky._x = mcRef.mcState.mcSky._x - nScroll;
} else {
mcRef.mcState.mcSky._x = mcRef.mcState.mcSky._x - (nScroll * ((_local3 - (780 - nOutEdge)) / (nOutEdge - nInEdge)));
}
mcRef.mcState.mcSky._x = Math.max(mcRef.mcState.mcSky._x, 800 - mcRef.mcState.mcSky._width);
}
var _local4 = _root._ymouse;
if (_local4 <= nOutEdge) {
if (_local3 <= nInEdge) {
mcRef.mcState.mcSky._y = mcRef.mcState.mcSky._y + nScroll;
} else {
mcRef.mcState.mcSky._y = mcRef.mcState.mcSky._y + (nScroll * ((nOutEdge - _local4) / (nOutEdge - nInEdge)));
}
mcRef.mcState.mcSky._y = Math.min(0, mcRef.mcState.mcSky._y);
} else if (_local4 >= (580 - nOutEdge)) {
if (_local4 >= (580 - nInEdge)) {
mcRef.mcState.mcSky._y = mcRef.mcState.mcSky._y - nScroll;
} else {
mcRef.mcState.mcSky._y = mcRef.mcState.mcSky._y - (nScroll * ((_local4 - (580 - nOutEdge)) / (nOutEdge - nInEdge)));
}
mcRef.mcState.mcSky._y = Math.max(mcRef.mcState.mcSky._y, 600 - mcRef.mcState.mcSky._height);
}
}
function doOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
var _local3 = new Array();
_local3.push({sType:"SetHud"});
Main.__get__Instance().__get__scriptManager().loadScript(_local3);
}
super.doOut();
}
function clickConstellation(_sConstellation) {
}
function quitTelescope() {
nX = mcRef.mcState.mcSky._x;
nY = mcRef.mcState.mcSky._y;
setState(Popup.sSTATE_OUT);
}
static var nInEdge = 15;
static var nOutEdge = 50;
static var nScroll = 15;
}
Symbol 392 MovieClip [__Packages.PopupMap] Frame 0
class PopupMap extends Popup
{
var aUnlockedLocations, mcRef, aPopupButtons, setState;
function PopupMap (_mcRef) {
super(_mcRef);
aUnlockedLocations = new Array();
}
function startIn() {
showMap(mcRef.mcState.mcState, false);
}
function startIdle() {
showMap(mcRef.mcState, true);
}
function startOut() {
showMap(mcRef.mcState.mcState, false);
}
function doOut() {
super.doOut();
if (mcRef.mcState._currentFrame == mcRef.mcState._totalFrames) {
Main.__get__Instance().__get__scriptManager().nextEvent();
}
}
function unlockLocation(_sLocation) {
aUnlockedLocations.push(_sLocation);
}
function showMap(_mcMap, _bActive) {
aPopupButtons = new Array();
var _local2;
for (_local2 in _mcMap) {
if (_local2.substring(0, 2) == "mc") {
if (Library.Tools.inArray(_local2.substring(2), aUnlockedLocations) != -1) {
var _local4 = Library.Delegate.create(this, locationClick, _local2.substring(2));
_mcMap[_local2]._visible = true;
aPopupButtons.push(new MapButton(_mcMap[_local2], _bActive, _local4));
} else {
_mcMap[_local2]._visible = false;
}
}
}
_mcMap.btnAnnuler.onRelease = Library.Delegate.create(this, cancel);
}
function cancel() {
setState(Popup.sSTATE_OUT);
Main.__get__Instance().__get__scriptManager().loadScript(new Array({sType:"SetHud"}));
}
function locationClick(_sLocation) {
setState(Popup.sSTATE_OUT);
Main.__get__Instance().__get__scriptManager().loadScript(Script.getScript(_sLocation, Script.sMAPDATA));
}
}
Symbol 393 MovieClip [__Packages.MapButton] Frame 0
class MapButton extends State
{
var fRelease, setState, mcRef;
function MapButton (_mcRef, _bActive, _fRelease) {
super(_mcRef);
fRelease = _fRelease;
setState(sSTATE_IDLE);
if (_bActive) {
mcRef.onMouseOver = Library.Delegate.create(this, setState, sSTATE_OVER);
mcRef.onMouseOut = Library.Delegate.create(this, setState, sSTATE_IDLE);
mcRef.onPress = Library.Delegate.create(this, setState, sSTATE_DOWN);
mcRef.onRelease = fRelease;
}
}
static var sSTATE_IDLE = "Idle";
static var sSTATE_OVER = "Over";
static var sSTATE_DOWN = "Down";
}
Symbol 394 MovieClip [__Packages.HUD] Frame 0
class HUD extends Popup
{
var aItem, aScoreCodes, sAction, nScore, aButtons, aButtonsRight, oButtonMenu, mcRef;
function HUD (_mcRef) {
super(_mcRef);
aItem = new Array(Script.sACT, Script.sSEX);
aScoreCodes = new Array();
sAction = Script.sACT;
nScore = 0;
}
function update() {
super.update();
var _local3;
var _local4;
_local3 = 0;
while (_local3 < aButtons.length) {
aButtons[_local3].update();
_local4 = _local3 + 1;
while (_local4 < aButtons.length) {
aButtons[_local4].move(aButtons[_local3].widthDiff, aButtons[_local3].heightDiff);
_local4++;
}
_local3++;
}
_local3 = 0;
while (_local3 < aButtonsRight.length) {
aButtonsRight[_local3].update();
_local4 = _local3 + 1;
while (_local4 < aButtonsRight.length) {
aButtonsRight[_local4].move(-aButtonsRight[_local3].widthDiff, aButtonsRight[_local3].heightDiff);
_local4++;
}
_local3++;
}
}
function setButtons(_mcRef, _bActive) {
var _local7;
var _local6;
var _local5;
var _local2;
var _local4 = new Array();
aButtons = new Array();
aButtonsRight = new Array();
if (_bActive) {
_local2 = 0;
while (_local2 < aItem.length) {
_local4.push(Library.Delegate.create(this, buttonClick, aItem[_local2]));
_local2++;
}
_local5 = Library.Delegate.create(this, buttonClick, Script.sMENU);
}
aButtons = new Array();
_local2 = 0;
while (_local2 < aItem.length) {
aButtons.push(new HudButton(_mcRef["mcButton" + (_local2 + 1)], aItem[_local2], _local4[_local2]));
_mcRef["mcButton" + (_local2 + 1)]._visible = true;
_local2++;
}
_local2 = aItem.length;
while (_local2 < nBUTTONS) {
_mcRef["mcButton" + (_local2 + 1)]._visible = false;
_local2++;
}
oButtonMenu = new HudButton(_mcRef.mcMenu, sMENU, _local5);
aButtonsRight = new Array(oButtonMenu);
buttonClick(sAction);
}
function buttonClick(_sAction) {
if (_sAction != sMENU) {
sAction = _sAction;
Main.__get__Instance().setCursor(_sAction);
Main.__get__Instance().__get__scriptManager().setAction(_sAction);
var _local2;
_local2 = 0;
while (_local2 < aButtons.length) {
aButtons[_local2].trySetButton(_sAction);
_local2++;
}
}
}
function addScore(_nScore, _sCode) {
if (Library.Tools.inArray(_sCode, aScoreCodes) == -1) {
nScore = nScore + _nScore;
aScoreCodes.push(_sCode);
}
}
function addItem(_sItem) {
aItem.push(_sItem);
}
function removeItem(_sItem) {
aItem.splice(Library.Tools.inArray(_sItem, aItem), 1);
}
function startIn() {
setButtons(mcRef.mcState.mcState, false);
if (nScore < 10) {
mcRef.mcState.mcState2.txtScore.text = "SCORE: 0" + nScore;
} else {
mcRef.mcState.mcState2.txtScore.text = "SCORE: " + nScore;
}
}
function startIdle() {
setButtons(mcRef.mcState, true);
if (nScore < 10) {
mcRef.mcState2.txtScore.text = "SCORE: 0" + nScore;
} else {
mcRef.mcState2.txtScore.text = "SCORE: " + nScore;
}
}
function startOut() {
setButtons(mcRef.mcState.mcState, false);
if (nScore < 10) {
mcRef.mcState.mcState2.txtScore.text = "SCORE: 0" + nScore;
} else {
mcRef.mcState.mcState2.txtScore.text = "SCORE: " + nScore;
}
}
function startHidden() {
aButtons = new Array();
aButtonsRight = new Array();
}
static var nBUTTONS = 8;
static var sMENU = "Menu";
}
Symbol 395 MovieClip [__Packages.HudButton] Frame 0
class HudButton
{
var mcRef, sButtonType, fRelease, nLastWidth, nLastHeight;
function HudButton (_mcRef, _sButtonType, _fRelease) {
mcRef = _mcRef;
sButtonType = _sButtonType;
fRelease = _fRelease;
setState(sSTATE_IDLE);
mcRef.onRelease = fRelease;
var _local2 = Math.sqrt(Math.pow(mcRef._xmouse, 2) + Math.pow(mcRef._ymouse, 2));
mcRef.gotoAndStop(Math.ceil((1 - Math.min(Math.max(_local2 - nMIN_RADIUS, 0.01) / nMAX_RADIUS, 0.99)) * mcRef._totalFrames));
nLastWidth = mcRef._width;
nLastHeight = mcRef._height;
}
function update() {
nLastWidth = mcRef._width;
nLastHeight = mcRef._height;
var _local2 = Math.sqrt(Math.pow(mcRef._xmouse, 2) + Math.pow(mcRef._ymouse, 2));
mcRef.gotoAndStop(Math.ceil((1 - Math.min(Math.max(_local2 - nMIN_RADIUS, 0.01) / nMAX_RADIUS, 0.99)) * mcRef._totalFrames));
}
function trySetButton(_sButtonType) {
var _local2 = false;
if (sButtonType == _sButtonType) {
setState(sSTATE_SET);
_local2 = true;
} else {
setState(sSTATE_IDLE);
}
return(_local2);
}
function setState(_sState) {
mcRef.mcState.gotoAndStop(_sState);
}
function move(_xMove, _yMove) {
mcRef._x = mcRef._x + _xMove;
mcRef._y = mcRef._y + _yMove;
}
function get widthDiff() {
return(mcRef._width - nLastWidth);
}
function get heightDiff() {
return(0);
}
static var nMIN_RADIUS = 15;
static var nMAX_RADIUS = 90;
static var nMAX_SIZE = 85;
static var sSTATE_IDLE = "Idle";
static var sSTATE_DOWN = "Down";
static var sSTATE_SET = "Set";
}
Symbol 396 MovieClip [__Packages.Library.SoundManager] Frame 0
class Library.SoundManager
{
static var oCTRL;
var mcRef, aSFX, oSound, nFade, nVolume, sCurrentSong, oSFX;
function SoundManager (_mcRef) {
mcRef = _mcRef;
aSFX = new Array();
oSound = new Sound();
oCTRL = this;
nFade = 0;
nVolume = 100;
mcRef.onEnterFrame = Library.Delegate.create(this, enterFrame);
}
function enterFrame() {
if (nFade != 0) {
nVolume = nVolume + nFade;
nVolume = Math.min(nVolume, 100);
nVolume = Math.max(nVolume, 0);
oSound.setVolume(nVolume);
if (nVolume == 0) {
nFade = 6;
oSound.stop();
delete oSound;
oSound = new Sound();
oSound.attachSound(sCurrentSong);
oSound.start(0, 9999);
} else if (nVolume == 100) {
nFade = 0;
}
}
}
function playSong(_sCurrentSong) {
if (sCurrentSong != undefined) {
nFade = -6;
} else {
oSound.attachSound(_sCurrentSong);
oSound.start(0, 9999);
}
sCurrentSong = _sCurrentSong;
}
function playSFX(_sSFX, _oScriptManager) {
oSFX = new Sound();
oSFX.attachSound(_sSFX);
oSFX.start(0, 1);
if (_oScriptManager != null) {
oSFX.onSoundComplete = Library.Delegate.create(_oScriptManager, _oScriptManager.soundEnd, _sSFX);
}
}
static function get Instance() {
return(oCTRL);
}
}
Symbol 397 MovieClip [__Packages.Gallery] Frame 0
class Gallery
{
var mcRef, nPages, aGallery;
function Gallery (_mcRef) {
mcRef = _mcRef;
nPages = 1;
aGallery = new Array("IntroShadow");
Main.__get__Instance().save();
if (Main.__get__Instance().sharedObject.data.aGallery != undefined) {
aGallery = Main.__get__Instance().sharedObject.data.aGallery;
}
updatePage();
mcRef.btnLeave.onRelease = Library.Delegate.create(Main.__get__Instance(), Main.__get__Instance().gotoTitle);
}
function setMc(_mcRef) {
mcRef = _mcRef;
mcRef.mcImages.onRelease = Library.Delegate.create(this, closeImage);
mcRef.mcImages._visible = false;
if (Main.__get__Instance().sharedObject.data.aGallery != undefined) {
aGallery = Main.__get__Instance().sharedObject.data.aGallery;
}
updatePage();
mcRef.btnLeave.onRelease = Library.Delegate.create(Main.__get__Instance(), Main.__get__Instance().gotoTitle);
}
function updatePage() {
if (nPages == 1) {
mcRef.btnBack._visible = false;
mcRef.btnNext._visible = true;
mcRef.btnNext.btnNext.onRelease = Library.Delegate.create(this, changePage, 2);
} else {
mcRef.btnBack._visible = true;
mcRef.btnNext._visible = false;
mcRef.btnBack.btnBack.onRelease = Library.Delegate.create(this, changePage, 1);
}
var _local2;
_local2 = 0;
while (_local2 < nPER_PAGE) {
if (inArray(aGALLERY_COMPLETE[_local2 + ((nPages - 1) * nPER_PAGE)], aGallery)) {
mcRef["mcGallery" + (_local2 + 1)].gotoAndStop(aGALLERY_COMPLETE[_local2 + ((nPages - 1) * nPER_PAGE)]);
mcRef["mcGallery" + (_local2 + 1)].onRelease = Library.Delegate.create(this, clickImage, _local2 + ((nPages - 1) * nPER_PAGE));
} else {
mcRef["mcGallery" + (_local2 + 1)].gotoAndStop("Hidden");
}
_local2++;
}
}
function addImage(_sImage) {
if (!inArray(_sImage, aGallery)) {
aGallery.push(_sImage);
}
}
function changePage(_nPage) {
nPages = _nPage;
updatePage();
}
function clickImage(_nImgPos) {
mcRef.mcImages._visible = true;
mcRef.mcImages.gotoAndStop(aGALLERY_COMPLETE[_nImgPos]);
}
function closeImage() {
mcRef.mcImages._visible = false;
}
function inArray(_oTarget, _aArray) {
var _local3 = false;
var _local1;
_local1 = 0;
while (_local1 < _aArray.length) {
if (_aArray[_local1] == _oTarget) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
var aGALLERY_COMPLETE = new Array("IntroShadow", "IntroFoxStomach", "BTShower");
var nPER_PAGE = 8;
}
Symbol 94 MovieClip Frame 1
this._alpha = 0;
Symbol 96 MovieClip Frame 1
this._alpha = 0;
Symbol 98 MovieClip Frame 1
this._alpha = 0;
Symbol 101 MovieClip Frame 1
this._alpha = 0;
Symbol 103 MovieClip Frame 1
this._alpha = 0;
Symbol 106 MovieClip Frame 1
this._alpha = 0;
Symbol 108 MovieClip Frame 1
this._alpha = 0;
Symbol 110 MovieClip Frame 1
this._alpha = 0;
Symbol 362 Button
on (release) {
Main.__get__Instance().gotoGallery();
}