Frame 1
function init(sceneName) {
if (sceneName != undefined) {
Overlay._alpha = 100;
Overlay.roomname._alpha = 0;
Overlay.roomname.tween(["_alpha"], 100, 0.5, "easeIn", 0);
Overlay.tween(["_alpha"], 0, 0.5, "easeIn", 1);
}
_root.clickX = 0;
_root.clickY = 0;
_root.RouteReachedCallback = "";
_root.HidingSpots = new Array();
for (var i in _root.passPoints) {
removeMovieClip(eval ("_root.PP_" + i));
}
Mouse.hide();
_root.MouseOverType = "idle";
this.onEnterFrame = function () {
UpdateMouse();
MoveGirl();
BlurScene();
DrawInventory();
_root.State.SyncUp();
};
}
function GirlTakePosition(Params) {
_root.startPositionGirl = Params;
}
function GirlHoldItem(ObjReference) {
removeMovieClip(eval (ObjReference));
_root.Girl.standing.HoldingObject.attachMovie(ObjReference, "WhileStanding", null, {nm:ObjReference});
_root.Girl.walking.HoldingObject.attachMovie(ObjReference, "WhileWalking", null, {nm:ObjReference});
_root.Girl.running.HoldingObject.attachMovie(ObjReference, "WhileRunning", null, {nm:ObjReference});
_root.Girl.onRelease = function () {
GirlReleaseItem();
};
}
function GirlReleaseItem() {
removeMovieClip(_root.Girl.standing.HoldingObject.WhileStanding);
removeMovieClip(_root.Girl.walking.HoldingObject.WhileWalking);
removeMovieClip(_root.Girl.running.HoldingObject.WhileRunning);
}
function RemoveFromInventory(ObjReference) {
GirlReleaseItem();
removeMovieClip(ObjReference);
tempStr = new String();
i = 0;
while (i < _root.InventoryItems.length) {
if (_root.InventoryItems[i] != ObjReference) {
tempStr = tempStr + (_root.InventoryItems[i] + ",");
}
i++;
}
tempStr = tempStr.substring(0, tempStr.length - 1);
_root.InventoryItems = ((tempStr.length == 0) ? (new Array()) : (tempStr.split(",")));
}
function AddToInventory(Params) {
ObjReference = Params[0];
IconReference = Params[1];
_root.attachMovie(ObjReference, ObjReference, _root.getNextHighestDepth());
_root.InventoryItems.push(ObjReference);
_root.MouseShape.swapDepths(_root.getNextHighestDepth());
_root.Overlay.swapDepths(_root.getNextHighestDepth());
eval (ObjReference).nm = IconReference;
eval (ObjReference).onRelease = function () {
GirlReleaseItem();
GirlHoldItem(this.nm);
};
}
function DrawInventory() {
i = 0;
while (i < _root.InventoryItems.length) {
eval ("_root." + _root.InventoryItems[i])._x = Message._x + (54 * i);
eval ("_root." + _root.InventoryItems[i])._y = Message._y + 20;
i++;
}
}
function BlurScene() {
if (_root.TriggerBlur.toString() == "true") {
Blur.blurX = Blur.blurX + ((Blur.blurX < 5) ? 1 : 0);
Blur.blurY = Blur.blurY + ((Blur.blurY < 5) ? 1 : 0);
Blur.quality = 3;
for (var _local2 in _root.BlurObjects) {
_root.BlurObjects[_local2].filters = new Array(Blur);
}
} else {
Blur.blurX = Blur.blurX - ((Blur.blurX > 0) ? 1 : 0);
Blur.blurY = Blur.blurY - ((Blur.blurY > 0) ? 1 : 0);
Blur.quality = 3;
for (var _local2 in _root.BlurObjects) {
_root.BlurObjects[_local2].filters = new Array(Blur);
}
}
}
function SetBlurTrigger(val) {
_root.TriggerBlur = val;
}
function CheckForGameOver() {
if (_root.Girl._visible == true) {
LoadScene(Array("GameOver", null));
}
}
function ResetAnimation(Params) {
eval (Params[0]).gotoAndPlay(1);
}
function StartAnimation(Params) {
_root.AnimationRunning = true;
Params[2] = ((Params[2] == undefined) ? 0 : (Params[2]));
if (Params[2] > 0) {
ClearAnimationDelay();
_root.animationTimer = setInterval(StartAnimation, Params[2], Array(Params[0], Params[1], -1, Params[3]));
} else {
if (Params[3] != undefined) {
j = 0;
while (j < Params[3].length) {
debug("Pre animation call : " + Params[3][j]);
_root[Params[3][j]]();
j++;
}
}
eval (Params[0]).gotoAndPlay(Params[1]);
}
}
function ClearAnimationDelay() {
clearInterval(_root.animationTimer);
}
function CheckWalkOrRun() {
_root.isWalking = ((((_root.clickTimer - ((_root.clickTimer = getTimer()))) + 500) > 0) ? false : true);
_root.clickTimer = getTimer();
}
function SetupDoorSystem(DoorObject, Locked, LockedMessage, LinkToScene, FinalPassPoint, StartPassPointNewScene, LookAt) {
DoorObject.locked = Locked;
DoorObject.LockedMessage = LockedMessage;
DoorObject.onRollOver = (DoorObject.onDragOver = function () {
_root.MouseOverType = "hand";
});
DoorObject.onRollOut = (DoorObject.onDragOut = function () {
_root.MouseOverType = "idle";
});
DoorObject.onRelease = function () {
if (_root.Girl.Lock == false) {
ClearCallbacks(198);
ResetHidingSpotsAnimations(this);
_root.startPositionGirl = Array(StartPassPointNewScene, LookAt);
ShowGirl();
_root.Girl._xscale = ((_root._xmouse < _root.Girl._x) ? -100 : (((_root._xmouse > _root.Girl._x) ? 100 : (_root.Girl._xscale))));
_root.CheckWalkOrRun();
endPos = _root.GetClosestPassPoint(FinalPassPoint.x, FinalPassPoint.y);
clickX = endPos.x;
clickY = endPos.y;
_root.Route = FindBestRoute(GetClosestPassPoint(_root.Girl._x, _root.Girl._y), endPos);
_root.RouteReachedCallbackFunction.push(Array("LoadScene"));
_root.RouteReachedCallbackArgument.push(Array(LinkToScene, this));
}
};
}
function ResetHidingSpotsAnimations(obj) {
while ((obj._parent._name != undefined) && (obj._parent._name.toString().length > 0)) {
obj = obj._parent;
}
for (i in _root.HidingSpots) {
if (obj._name != _root.HidingSpots[i]._name) {
_root.HidingSpots[i].gotoAndStop(1);
} else {
debug("Hiding animation trying to reset itself : Not allowed");
}
}
}
function RegisterHidingSpot(Obj) {
_root.HidingSpots.push(Obj);
}
function UpdateProgressLevel(Params) {
debug((("Progress level updated to: " + Params[1]) + " on ") + Params[0].tracker);
_root[Params[0].tracker] = Params[1];
}
function GirlLookAt(lookTo) {
_root.Girl._xscale = ((lookTo == "left") ? -100 : (((lookTo == "right") ? 100 : (_root.Girl._xscale))));
}
function SetupInteractiveObject(Obj, Frame, Tracker) {
Obj.tracker = Tracker;
if (Frame != undefined) {
if ((Obj._parent == undefined) || (Obj._parent == _level0)) {
Obj.gotoAndStop(Frame);
} else {
Obj._parent.gotoAndStop(Frame);
}
}
Obj.onPress = (Obj.onRollOver = function () {
ObjParams = ((eval ("Obj.ProgressLvl" + eval (this.tracker)) != undefined) ? (eval ("Obj.ProgressLvl" + eval (this.tracker))) : (Obj.ProgressLvlX));
_root.MouseOverType = ObjParams.mouseIcon;
});
Obj.onRollOut = function () {
_root.MouseOverType = "idle";
};
Obj.onRelease = function () {
if (_root.AnimationRunning == false) {
ResetHidingSpotsAnimations(this);
CheckWalkOrRun();
ShowGirl();
ClearCallbacks(203);
ObjParams = ((eval ("Obj.ProgressLvl" + eval (this.tracker)) != undefined) ? (eval ("Obj.ProgressLvl" + eval (this.tracker))) : (Obj.ProgressLvlX));
if (ObjParams.finalPassPoint != null) {
endPos = _root.GetClosestPassPoint(ObjParams.finalPassPoint.x, ObjParams.finalPassPoint.y);
_root.clickX = endPos.x;
_root.clickY = endPos.y;
_root.Girl._xscale = ((_root.clickX < _root.Girl._x) ? -100 : (((_root.clickX > _root.Girl._x) ? 100 : (_root.Girl._xscale))));
_root.Route = FindBestRoute(GetClosestPassPoint(_root.Girl._x, _root.Girl._y), endPos);
if (Girl.Lock == false) {
if (ObjParams.requiredItem.length > 0) {
i = 0;
while (i < ObjParams.requiredItem.length) {
debug((_root.Girl.standing.HoldingObject.WhileStanding.nm + " / ") + ObjParams.requiredItem[i]);
if (_root.Girl.standing.HoldingObject.WhileStanding.nm == ObjParams.requiredItem[i]) {
debug((("Girl is holding right object: " + _root.Girl.standing.HoldingObject.WhileStanding.nm) + " / ") + ObjParams.requiredItem[i]);
j = 0;
while (j < ObjParams.requiredItemAction[i].length) {
_root.RouteReachedCallbackFunction.push(Array(ObjParams.requiredItemAction[i][j][0].toString()));
_root.RouteReachedCallbackArgument.push(ObjParams.requiredItemAction[i][j][1]);
j++;
}
_root.HandleCallBacks();
} else if (ObjParams.requiredItemMessage != undefined) {
_root.RouteReachedCallbackFunction.push(Array("SendMessage"));
_root.RouteReachedCallbackArgument.push(Array(ObjParams.requiredItemMessage));
}
i++;
}
}
if (ObjParams.onClickMessage != undefined) {
_root.RouteReachedCallbackFunction.push(Array("SendMessage"));
_root.RouteReachedCallbackArgument.push(Array(ObjParams.onClickMessage));
}
if (ObjParams.newProgressLevel != undefined) {
_root.RouteReachedCallbackFunction.push(Array("UpdateProgressLevel"));
_root.RouteReachedCallbackArgument.push(Array(this, ObjParams.newProgressLevel.toString()));
}
if (ObjParams.customCall != undefined) {
i = 0;
while (i < ObjParams.customCall.length) {
_root.RouteReachedCallbackFunction.push(Array(ObjParams.customCall[i][0].toString()));
_root.RouteReachedCallbackArgument.push(ObjParams.customCall[i][1]);
i++;
}
}
} else {
debug("No callbacks set : Animation in progress");
}
} else {
_root.Girl._xscale = ((_xmouse < _root.Girl._x) ? -100 : (((_xmouse > _root.Girl._x) ? 100 : (_root.Girl._xscale))));
if (ObjParams.requiredItem.length > 0) {
i = 0;
while (i < ObjParams.requiredItem.length) {
if (_root.Girl.standing.HoldingObject.WhileStanding.nm == ObjParams.requiredItem[i]) {
debug((("Girl is holding right object: " + _root.Girl.standing.HoldingObject.WhileStanding.nm) + " / ") + ObjParams.requiredItem[i]);
j = 0;
while (j < ObjParams.requiredItemAction[i].length) {
_root.RouteReachedCallbackFunction.push(Array(ObjParams.requiredItemAction[i][j][0].toString()));
_root.RouteReachedCallbackArgument.push(ObjParams.requiredItemAction[i][j][1]);
j++;
}
_root.HandleCallBacks();
}
i++;
}
}
if (ObjParams.onClickMessage != undefined) {
SendMessage(ObjParams.onClickMessage);
}
if (ObjParams.customCall != undefined) {
i = 0;
while (i < ObjParams.customCall.length) {
_root.RouteReachedCallbackFunction.push(Array(ObjParams.customCall[i][0].toString()));
_root.RouteReachedCallbackArgument.push(ObjParams.customCall[i][1]);
i++;
}
_root.HandleCallBacks();
}
if (ObjParams.newProgressLevel != undefined) {
UpdateProgressLevel(Array(this, ObjParams.newProgressLevel));
}
}
} else {
debug("Object disabled : Animation in progress");
}
};
}
function HideGirl(Lock) {
_root.Girl.Lock = ((Lock.toString().length == 0) ? false : (Lock));
_root.Girl._visible = false;
}
function ShowGirl() {
if (_root.Girl.Lock == false) {
_root.Girl._visible = true;
}
}
function LockGirl() {
_root.Girl.Lock = true;
}
function UnlockGirl() {
_root.Girl.Lock = false;
}
function ToggleDoorLock(Params) {
eval ("_root." + Params[0]).locked = ((Params[1] != undefined) ? (Params[1]) : (!eval ("_root." + Params[0]).locked));
}
function LoadScene(Params) {
if (Params[1].locked == true) {
_root.SendMessage(Params[1].LockedMessage);
} else if (Overlay._alpha != 100) {
Overlay.roomname.text = "";
Overlay.tween(["_alpha"], 100, 0.5, "easeIn", 0, {scope:_root, func:_root.LoadScene, args:Array(Params)});
} else {
debug("Calling destructor");
Destroy();
switch (Params[0]) {
case "Home" :
gotoAndPlay (2);
break;
case "Cellar" :
gotoAndPlay (3);
break;
case "Hall1F" :
gotoAndPlay (4);
break;
case "Livingroom" :
gotoAndPlay (5);
break;
case "Kitchen" :
gotoAndPlay (6);
break;
case "Freezer" :
gotoAndPlay (7);
break;
case "2ndFloor" :
gotoAndPlay (8);
break;
case "GameOver" :
gotoAndPlay (9);
break;
case "Finish" :
gotoAndPlay (55);
break;
case "Credits" :
gotoAndPlay (101);
break;
default :
debug("Room does not exist");
}
}
}
function SetupWalkSystem(WalkZone) {
SetupPassPoints();
WalkZone.onRelease = function () {
ClearCallbacks(342);
if (Girl.Lock == false) {
ResetHidingSpotsAnimations(this);
ShowGirl();
_root.clickX = _xmouse;
_root.clickY = _ymouse;
_root.CheckWalkOrRun();
_root.Route = FindBestRoute(GetClosestPassPoint(_root.Girl._x, _root.Girl._y), GetClosestPassPoint(_root.clickX, _root.clickY));
} else {
debug("Walking disabled : Animation in progress");
}
};
}
function CalculatePathLine(X, Y) {
Xdiff = _root.Girl._x - X;
Ydiff = _root.Girl._y - Y;
Xdiff = Xdiff * ((Xdiff < 0) ? -1 : 1);
Ydiff = Ydiff * ((Ydiff < 0) ? -1 : 1);
ratio = ((Xdiff < Ydiff) ? (Xdiff / Ydiff) : (Ydiff / Xdiff));
ratio = ratio * speed;
ratio = Math.round(ratio * 100) / 100;
xspeed = ((Xdiff < Ydiff) ? (ratio) : (speed));
yspeed = ((Xdiff < Ydiff) ? (speed) : (ratio));
}
function SetupPassPoints() {
for (var i in _root.passPoints) {
_root.attachMovie("RouteMarker", "PP_" + i, _root.getNextHighestDepth(), {_x:_root.passPoints[i].x, _y:_root.passPoints[i].y, _visible:_root.debugOn});
eval ("_root.PP_" + i).nm.text = i;
}
}
function GetClosestPassPoint(X, Y) {
XYsum = new Number(9999);
nearestPassPoint = new Object();
for (var _local4 in _root.passPoints) {
Xdiff = ((X > _root.passPoints[_local4].x) ? (X - _root.passPoints[_local4].x) : (_root.passPoints[_local4].x - X));
Ydiff = ((Y > _root.passPoints[_local4].y) ? (Y - _root.passPoints[_local4].y) : (_root.passPoints[_local4].y - Y));
if (XYsum > (Xdiff + Ydiff)) {
XYsum = Xdiff + Ydiff;
nearestPassPoint = _root.passPoints[_local4];
nearestPassPoint.id = _local4;
}
}
return(nearestPassPoint);
}
function FindBestRoute(from, to) {
i = 0;
while (i < _root.passRoutes.length) {
if ((_root.passRoutes[i][0] == from.id) && (_root.passRoutes[i][_root.passRoutes[i].length - 1] == to.id)) {
(finalRoute = Array());
(j = 1);
while (j < (_root.passRoutes[i].length - 1)) {
finalRoute.push(_root.passRoutes[i][j]);
j++;
}
debug((((("Best route from " + from.id) + " to ") + to.id) + " is through ") + finalRoute);
return(finalRoute);
}
if ((_root.passRoutes[i][0] == to.id) && (_root.passRoutes[i][_root.passRoutes[i].length - 1] == from.id)) {
tempRoute = _root.passRoutes[i].reverse();
(finalRoute = Array());
(j = 1);
while (j < (_root.passRoutes[i].length - 1)) {
finalRoute.push(tempRoute[j]);
j++;
}
debug((((("Best route from " + from.id) + " to ") + to.id) + " is through ") + finalRoute);
return(finalRoute);
}
i++;
}
}
function MoveGirl() {
speed = ((isWalking == true) ? (_root.walkSpeed) : (_root.runSpeed));
if (((_root.clickX != _root.Girl._x) || (_root.clickY != _root.Girl._y)) && (Girl.Lock == false)) {
_root.Girl.walking._visible = ((isWalking == true) ? true : false);
_root.Girl.running._visible = ((isWalking == true) ? false : true);
_root.Girl.standing._visible = false;
} else {
_root.Girl.walking._visible = false;
_root.Girl.running._visible = false;
_root.Girl.standing._visible = true;
}
if (Girl.Lock == false) {
if ((_root.Route.length == 0) || (_root.Route.length == undefined)) {
if ((_root.clickX != 0) && (_root.clickY != 0)) {
CalculatePathLine(_root.clickX, _root.clickY);
_root.Girl._xscale = ((_root.clickX < _root.Girl._x) ? -100 : (((_root.clickX > _root.Girl._x) ? 100 : (_root.Girl._xscale))));
_root.Girl._x = (((_root.clickX > _root.Girl._x) && ((_root.Girl._x + xspeed) < _root.clickX)) ? (_root.Girl._x + xspeed) : ((((_root.clickX < _root.Girl._x) && ((_root.Girl._x - xspeed) > _root.clickX)) ? (_root.Girl._x - xspeed) : (_root.clickX))));
_root.Girl._y = (((_root.clickY > _root.Girl._y) && ((_root.Girl._y + yspeed) < _root.clickY)) ? (_root.Girl._y + yspeed) : ((((_root.clickY < _root.Girl._y) && ((_root.Girl._y - yspeed) > _root.clickY)) ? (_root.Girl._y - yspeed) : (_root.clickY))));
}
} else if (_root.Route.length > 0) {
CalculatePathLine(_root.passPoints[_root.Route[0]].x, _root.passPoints[_root.Route[0]].y);
_root.Girl._xscale = ((_root.passPoints[_root.Route[0]].x < _root.Girl._x) ? -100 : (((_root.passPoints[_root.Route[0]].x > _root.Girl._x) ? 100 : (_root.Girl._xscale))));
_root.Girl._x = (((_root.passPoints[_root.Route[0]].x > _root.Girl._x) && ((_root.Girl._x + xspeed) < _root.passPoints[_root.Route[0]].x)) ? (_root.Girl._x + xspeed) : ((((_root.passPoints[_root.Route[0]].x < _root.Girl._x) && ((_root.Girl._x - xspeed) > _root.passPoints[_root.Route[0]].x)) ? (_root.Girl._x - xspeed) : (_root.passPoints[_root.Route[0]].x))));
_root.Girl._y = (((_root.passPoints[_root.Route[0]].y > _root.Girl._y) && ((_root.Girl._y + yspeed) < _root.passPoints[_root.Route[0]].y)) ? (_root.Girl._y + yspeed) : ((((_root.passPoints[_root.Route[0]].y < _root.Girl._y) && ((_root.Girl._y - yspeed) > _root.passPoints[_root.Route[0]].y)) ? (_root.Girl._y - yspeed) : (_root.passPoints[_root.Route[0]].y))));
CheckPassPointReached();
}
}
if ((_root.clickX == _root.Girl._x) && (_root.clickY == _root.Girl._y)) {
_root.HandleCallBacks();
}
}
function HandleCallBacks() {
if ((_root.RouteReachedCallbackFunction.length != 0) && (((_root.clickX == _root.Girl._x) && (_root.clickY == _root.Girl._y)) || (Girl.Lock == true))) {
for (var _local2 in _root.RouteReachedCallbackFunction) {
debug(((("Callback Function : " + _root.RouteReachedCallbackFunction[_local2]) + "(") + _root.RouteReachedCallbackArgument[_local2].toString()) + ")");
_root[_root.RouteReachedCallbackFunction[_local2]](_root.RouteReachedCallbackArgument[_local2]);
}
ClearCallbacks(496);
}
}
function ClearCallbacks(line) {
debug("Clearing callbacks and routes " + line);
_root.RouteReachedCallbackFunction = new Array();
_root.RouteReachedCallbackArgument = new Array();
_root.clickX = _root.Girl._x;
_root.clickY = _root.Girl._y;
_root.Route = null;
}
function SwitchDepths(Params) {
Params[0].swapDepths(Params[1]);
}
function HandleAnimationCallBacks(Obj) {
ObjParams = ((eval ("Obj.ProgressLvl" + eval (Obj.tracker)) != undefined) ? (eval ("Obj.ProgressLvl" + eval (Obj.tracker))) : (Obj.ProgressLvlX));
trace((((Obj._name + " / ") + ObjParams) + " / ") + _root.progressLevel);
if (ObjParams.AnimationcallBack.length > 0) {
for (var i in ObjParams.AnimationcallBack) {
debug(((("Animation Callback Function : " + ObjParams.AnimationcallBack[i][0]) + "(") + ObjParams.AnimationcallBack[i][1].toString()) + ")");
_root[ObjParams.AnimationcallBack[i][0]](ObjParams.AnimationcallBack[i][1]);
}
}
_root.AnimationRunning = false;
}
function CheckPassPointReached() {
if ((_root.Girl._x == _root.passPoints[_root.Route[0]].x) && (_root.Girl._y == _root.passPoints[_root.Route[0]].y)) {
debug("Passed through : " + _root.Route[0]);
_root.Route.shift();
}
}
function UpdateMouse() {
MouseShape._x = _xmouse;
MouseShape._y = _ymouse;
MouseShape.Set(_root.MouseOverType);
}
function SetGirlPosition(Obj) {
_root.Girl._x = ((Obj == undefined) ? (eval (_root.startPositionGirl[0]).x) : (Obj.x));
_root.Girl._y = ((Obj == undefined) ? (eval (_root.startPositionGirl[0]).y) : (Obj.y));
GirlLookAt(_root.startPositionGirl[1]);
_root.clickX = _root.Girl._x;
_root.clickY = _root.Girl._y;
}
function SetCustomClick(Obj) {
_root.clickX = Obj.x;
_root.clickY = Obj.y;
}
function SendMessage(Message) {
clearInterval(_root.messageTimer);
_root.Message.text = Message;
_root.messageTimer = setInterval(SendMessage, 5500, Array(""));
}
function debug(Message) {
if (debugOn == true) {
trace(Message);
}
}
function SetupGame() {
_root.Girl.swapDepths(_root.getNextHighestDepth());
_root.Girl._x = -100;
_root.Girl._y = -100;
_root.HideGirl(true);
_root.Overlay.swapDepths(_root.getNextHighestDepth());
_root.Overlay._x = 0;
_root.Overlay._y = 0;
_root.MouseShape.swapDepths(_root.getNextHighestDepth());
init();
}
var debugOn = new Boolean(false);
var State = new Object();
var progressLevel = new Number(0);
var clickTimer = new Number(0);
var animationTimer = new Number(0);
var messageTimer = new Number(0);
var clickX = new Number(0);
var clickY = new Number(0);
var xspeed = new Number(0);
var yspeed = new Number(0);
var startPositionGirl = new Array("_root.passPoints.A", "right");
var walkSpeed = new Number(3);
var runSpeed = new Number(7);
var passPoints = new Object();
var passRoutes = new Array();
var Route = new Array();
var RouteReachedCallbackFunction = new Array();
var RouteReachedCallbackArgument = new Array();
var isWalking = new Boolean(false);
var MouseOverType = new String("idle");
var HidingSpots = new Array();
var Blur = (new flash.filters.BlurFilter());
var TriggerBlur = new Boolean(false);
var AnimationRunning = new Boolean(false);
var AmbSound = new Sound();
var CiSound = new Sound();
var InventoryItems = new Array();
var Puzzle1Tracker = new Number(0);
var Puzzle2Tracker = new Number(0);
var Puzzle3Tracker = new Number(0);
var Puzzle4Tracker = new Number(0);
var Puzzle5Tracker = new Number(0);
var Puzzle6Tracker = new Number(0);
var Puzzle7Tracker = new Number(0);
var Puzzle8Tracker = new Number(0);
var Puzzle9Tracker = new Number(0);
var Puzzle10Tracker = new Number(0);
var Puzzle11Tracker = new Number(0);
var Fuse1Tracker = new Object();
var Fuse2Tracker = new Object();
var FuseInUse = new Number(1);
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new zigo.tweenManager();
} else {
_global.$tweenManager.cleanUp();
_global.$tweenManager.init();
}
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("tween not added, this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("tween not added, props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
if (!(pEnd instanceof Array)) {
pEnd = [pEnd];
while (pEnd.length < props.length) {
pEnd.push(pEnd[0]);
}
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.robertpenner.easing.Linear.easeNone;
} else if (animType.indexOf("easeoutin") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOutIn;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
default :
var eqf = com.robertpenner.easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
Mp.stopTween = function (props) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_global.$tweenManager.removeTween(this, props);
};
Mp.isTweening = function (prop) {
return(_global.$tweenManager.isTweening(this, prop));
};
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
Mp.isTweenPaused = function (prop) {
return(_global.$tweenManager.isTweenPaused(this, prop));
};
Mp.pauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.pauseTween(this, _local4);
};
Mp.unpauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.unpauseTween(this, _local4);
};
Mp.pauseAllTweens = function () {
_global.$tweenManager.pauseTween();
};
Mp.unpauseAllTweens = function () {
_global.$tweenManager.unpauseTween();
};
Mp.stopAllTweens = function () {
_global.$tweenManager.stopAll();
};
Mp.ffTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.ffTween(this, _local4);
};
Mp.rewTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.rewTween(this, _local4);
};
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
Mp.sizeTo = function (destSize, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_width", "_height"], [destSize, destSize], seconds, animType, delay, callback, extra1, extra2);
};
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
_global.getColorTransObj = function (type, amt, rgb) {
switch (type) {
case "brightness" :
var _local4 = 100 - Math.abs(amt);
var _local6 = 0;
if (amt > 0) {
_local6 = 256 * (amt / 100);
}
return({ra:_local4, rb:_local6, ga:_local4, gb:_local6, ba:_local4, bb:_local6});
case "brightOffset" :
_local6 = 256 * (amt / 100);
return({ra:100, rb:_local6, ga:100, gb:_local6, ba:100, bb:_local6});
case "contrast" :
var _local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = amt));
_local2.rb = (_local2.gb = (_local2.bb = 128 - (1.28 * amt)));
return(_local2);
case "invertColor" :
_local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = 100 - (2 * amt)));
_local2.rb = (_local2.gb = (_local2.bb = amt * 2.55));
return(_local2);
case "tint" :
if ((rgb == undefined) || (rgb == null)) {
} else {
var _local8 = rgb >> 16;
var _local9 = (rgb >> 8) & 255;
var _local7 = rgb & 255;
var _local5 = amt / 100;
_local2 = {rb:_local8 * _local5, gb:_local9 * _local5, bb:_local7 * _local5};
_local2.ra = (_local2.ga = (_local2.ba = 100 - amt));
return(_local2);
}
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
};
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("brightness", bright)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("brightOffset", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("contrast", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTo = function (rgb, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("tint", 100, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
Mp.invertColorTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("invertColor", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.tintTo = function (rgb, percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("tint", percent, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.getFrame = function () {
return(this._currentframe);
};
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
if (endframe == undefined) {
endframe = this._totalframes;
}
this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
var TFP = TextField.prototype;
if (!TFP.origAddListener) {
TFP.origAddListener = TFP.addListener;
ASSetPropFlags(TFP, "origAddListener", 1, 0);
TFP.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.origAddListener.apply(this, arguments);
};
}
var $_$methods = ["tween", "stopTween", "isTweening", "getTweens", "lockTween", "isTweenLocked", "unlockTween", "isTweenPaused", "pauseTween", "unpauseTween", "pauseAllTweens", "unpauseAllTweens", "stopAllTweens", "ffTween", "rewTween", "getFrame", "setFrame", "_frame", "frameTo", "alphaTo", "brightnessTo", "colorTo", "colorTransformTo", "invertColorTo", "tintTo", "scaleTo", "sizeTo", "slideTo", "rotateTo", "brightOffsetTo", "contrastTo"];
for (var $_$i in $_$methods) {
ASSetPropFlags(Mp, $_$methods[$_$i], 1, 0);
if ($_$methods[$_$i].toLowerCase().indexOf("frame") == -1) {
TFP[$_$methods[$_$i]] = Mp[$_$methods[$_$i]];
ASSetPropFlags(TFP, $_$methods[$_$i], 1, 0);
}
}
delete Mp;
delete TFP;
delete $_$methods;
delete $_$i;
preloader.loader._xscale = 0;
this.onEnterFrame = function () {
if (Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100) > 99) {
delete onEnterFrame;
CiSound.attachSound("CrappyIceCreamTruck");
CiSound.start(0, 9999);
SetupGame();
LoadScene(Array("Home", null));
} else {
preloader.loader._xscale = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
}
};
stop();
Frame 2
init("Home");
_root.MessagingSystem._visible = false;
_root.playbtn.onRelease = function () {
CiSound.stop();
AmbSound.attachSound("Ambient");
AmbSound.start(0, 9999);
LoadScene(Array("Cellar", null));
};
_root.creditsbtn.onRelease = function () {
LoadScene(Array("Credits", null));
};
stop();
Frame 3
function Destroy() {
removeMovieClip(Ropes);
delete _root.State.SyncUp;
}
init("Cellar");
_root.Ropes.swapDepths(_root.getNextHighestDepth());
if (_root.State.Cellar == undefined) {
debug("Creating state object for Cellar");
_root.State.Cellar = new Object();
_root.State.Cellar.DoorALocked = true;
_root.State.Cellar.CupboardActiveFrame = 1;
_root.State.Cellar.RoosterGeluidActiveFrame = 1;
}
_root.passPoints = Object({A:Object({x:250, y:470}), B:Object({x:430, y:470}), C:Object({x:508, y:470}), D:Object({x:630, y:470}), E:Object({x:500, y:404}), F:Object({x:650, y:270})});
_root.passRoutes = Array(Array("A", "B", "F"), Array("C", "B", "F"), Array("C", "B", "E"), Array("B", "B", "E"), Array("A", "B", "E"), Array("D", "B", "E"), Array("B", "B", "E", "F"), Array("D", "C", "B", "E", "F"));
Crap.ProgressLvlX = new Object();
Crap.ProgressLvlX.mouseIcon = "look";
Crap.ProgressLvlX.onClickMessage = "It's a pile of rubble, there's nothing I can use from it";
CupboardAndAirduct.Bottle.ProgressLvlX = new Object();
CupboardAndAirduct.Bottle.ProgressLvlX.mouseIcon = "look";
CupboardAndAirduct.Bottle.ProgressLvlX.onClickMessage = "It's a bottle of dom perignon. Now isn't the time to celebrate unfortunately";
CupboardAndAirduct.Glass.ProgressLvl2 = new Object();
CupboardAndAirduct.Glass.ProgressLvl2.mouseIcon = "hand";
CupboardAndAirduct.Glass.ProgressLvl2.onClickMessage = "Maybe I can cut myself loose with that glass";
CupboardAndAirduct.Glass.ProgressLvl2.newProgressLevel = 3;
CupboardAndAirduct.Glass.ProgressLvl2.customCall = Array(Array("StartAnimation", Array("CupboardAndAirduct", 72)));
CellarBlood.ProgressLvlX = new Object();
CellarBlood.ProgressLvlX.mouseIcon = "look";
CellarBlood.ProgressLvlX.onClickMessage = "There is blood all over the wall";
CellarVent.ProgressLvlX = new Object();
CellarVent.ProgressLvlX.mouseIcon = "look";
CellarVent.ProgressLvlX.onClickMessage = "There is a small airduct above the ground";
HidingSpot.Spot.ProgressLvl0 = new Object();
HidingSpot.Spot.ProgressLvl0.onClickMessage = "I can't see it from here";
HidingSpot.Spot.ProgressLvl0.mouseIcon = "look";
HidingSpot.Spot.ProgressLvl1 = new Object();
HidingSpot.Spot.ProgressLvl1.onClickMessage = "I can't see it from here";
HidingSpot.Spot.ProgressLvl1.mouseIcon = "look";
HidingSpot.Spot.ProgressLvl2 = new Object();
HidingSpot.Spot.ProgressLvl2.onClickMessage = "I can't see it from here";
HidingSpot.Spot.ProgressLvl2.mouseIcon = "look";
HidingSpot.Spot.ProgressLvlX = new Object();
HidingSpot.Spot.ProgressLvlX.finalPassPoint = _root.passPoints.C;
HidingSpot.Spot.ProgressLvlX.onClickMessage = "Maybe there is an secret passage under the stairs, I better check it out";
HidingSpot.Spot.ProgressLvlX.customCall = Array(Array("HideGirl", Array(true)), Array("LockGirl", Array(true)), Array("StartAnimation", Array("HidingSpot", 2)));
HidingSpot.Spot.ProgressLvlX.AnimationcallBack = Array(Array("UnlockGirl", true), Array("SendMessage", "No secret passage here. This place does make a good hiding place though"));
HidingSpot.Spot.ProgressLvlX.mouseIcon = "hand";
HidingSpot.Spot.ProgressLvl9 = new Object();
HidingSpot.Spot.ProgressLvl9.finalPassPoint = _root.passPoints.C;
HidingSpot.Spot.ProgressLvl9.customCall = Array(Array("HideGirl", Array(true)), Array("LockGirl", Array(true)), Array("StartAnimation", Array("HidingSpot", 2)));
HidingSpot.Spot.ProgressLvl9.mouseIcon = "hand";
HidingSpot.Spot.ProgressLvl9.AnimationcallBack = Array(Array("UnlockGirl", true));
CupboardAndAirduct.Airduct.ProgressLvlX = new Object();
CupboardAndAirduct.Airduct.ProgressLvlX.onClickMessage = "I can't use the airduct";
CupboardAndAirduct.Airduct.ProgressLvlX.mouseIcon = "hand";
CupboardAndAirduct.Airduct.ProgressLvl0 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl0.onClickMessage = "I can't move with these tight ropes";
CupboardAndAirduct.Airduct.ProgressLvl0.mouseIcon = "look";
CupboardAndAirduct.Airduct.ProgressLvl1 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl1.onClickMessage = "I can't move with these tight ropes";
CupboardAndAirduct.Airduct.ProgressLvl1.mouseIcon = "look";
CupboardAndAirduct.Airduct.ProgressLvl2 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl2.onClickMessage = "I can't move with these tight ropes";
CupboardAndAirduct.Airduct.ProgressLvl2.mouseIcon = "look";
CupboardAndAirduct.Airduct.ProgressLvl3 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl3.onClickMessage = "I can't reach the airduct from here";
CupboardAndAirduct.Airduct.ProgressLvl3.newProgressLevel = 4;
CupboardAndAirduct.Airduct.ProgressLvl3.finalPassPoint = _root.passPoints.A;
CupboardAndAirduct.Airduct.ProgressLvl3.mouseIcon = "look";
CupboardAndAirduct.Airduct.ProgressLvl4 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl4.onClickMessage = "I can't reach the airduct from here";
CupboardAndAirduct.Airduct.ProgressLvl4.finalPassPoint = _root.passPoints.A;
CupboardAndAirduct.Airduct.ProgressLvl4.mouseIcon = "look";
CupboardAndAirduct.Airduct.ProgressLvl5 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl5.onClickMessage = "It's the airduct";
CupboardAndAirduct.Airduct.ProgressLvl5.mouseIcon = "look";
CupboardAndAirduct.Airduct.ProgressLvl6 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl6.newProgressLevel = 7;
CupboardAndAirduct.Airduct.ProgressLvl6.mouseIcon = "hand";
CupboardAndAirduct.Airduct.ProgressLvl6.customCall = Array(Array("HideGirl", Array(true)), Array("StartAnimation", Array("CupboardAndAirduct", 452)));
CupboardAndAirduct.Airduct.ProgressLvl7 = new Object();
CupboardAndAirduct.Airduct.ProgressLvl7.newProgressLevel = 8;
CupboardAndAirduct.Airduct.ProgressLvl7.mouseIcon = "hand";
CupboardAndAirduct.Airduct.ProgressLvl7.customCall = Array(Array("HideGirl", Array(true)), Array("StartAnimation", Array("CupboardAndAirduct", 478)));
CupboardAndAirduct.Cupboard.ProgressLvlX = new Object();
CupboardAndAirduct.Cupboard.ProgressLvlX.onClickMessage = "I can't use the cupboard anymore";
CupboardAndAirduct.Cupboard.ProgressLvlX.mouseIcon = "hand";
CupboardAndAirduct.Cupboard.ProgressLvl0 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl0.mouseIcon = "hand";
CupboardAndAirduct.Cupboard.ProgressLvl0.customCall = Array(Array("StartAnimation", Array("CupboardAndAirduct", 2)));
CupboardAndAirduct.Cupboard.ProgressLvl0.newProgressLevel = 1;
CupboardAndAirduct.Cupboard.ProgressLvl1 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl1.mouseIcon = "hand";
CupboardAndAirduct.Cupboard.ProgressLvl1.onClickMessage = "That is the cupboard";
CupboardAndAirduct.Cupboard.ProgressLvl1.AnimationcallBack = Array(Array("StartAnimation", Array("Cook", 2, 3500)));
CupboardAndAirduct.Cupboard.ProgressLvl2 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl2.mouseIcon = "look";
CupboardAndAirduct.Cupboard.ProgressLvl2.onClickMessage = "It's an old cupboard";
CupboardAndAirduct.Cupboard.ProgressLvl3 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl3.mouseIcon = "look";
CupboardAndAirduct.Cupboard.ProgressLvl3.AnimationcallBack = Array(Array("ShowGirl", null), Array("GirlLookAt", "left"), Array("UnlockGirl", true), Array("SetGirlPosition", Object({x:399, y:459})), Array("SetCustomClick", Object({x:399, y:459})));
CupboardAndAirduct.Cupboard.ProgressLvl3.onClickMessage = "The cupboard seems rather easy to move";
CupboardAndAirduct.Cupboard.ProgressLvl4 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl4.mouseIcon = "hand";
CupboardAndAirduct.Cupboard.ProgressLvl4.newProgressLevel = 5;
CupboardAndAirduct.Cupboard.ProgressLvl4.finalPassPoint = _root.passPoints.B;
CupboardAndAirduct.Cupboard.ProgressLvl4.customCall = Array(Array("HideGirl", Array(true)), Array("LockGirl", Array(true)), Array("StartAnimation", Array("CupboardAndAirduct", 274)));
CupboardAndAirduct.Cupboard.ProgressLvl5 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl5.mouseIcon = "hand";
CupboardAndAirduct.Cupboard.ProgressLvl5.AnimationcallBack = Array(Array("ShowGirl", null), Array("GirlLookAt", "left"), Array("UnlockGirl", true), Array("SetGirlPosition", Object({x:319, y:455})), Array("SetCustomClick", Object({x:319, y:455})));
CupboardAndAirduct.Cupboard.ProgressLvl5.newProgressLevel = 6;
CupboardAndAirduct.Cupboard.ProgressLvl5.finalPassPoint = _root.passPoints.A;
CupboardAndAirduct.Cupboard.ProgressLvl5.customCall = Array(Array("HideGirl", Array(true)), Array("LockGirl", Array(true)), Array("StartAnimation", Array("CupboardAndAirduct", 321)));
CupboardAndAirduct.Cupboard.ProgressLvl6 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl6.mouseIcon = "look";
CupboardAndAirduct.Cupboard.ProgressLvl6.onClickMessage = "The cupboard doesn't seem to hold much longer...";
CupboardAndAirduct.Cupboard.ProgressLvl7 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl7.mouseIcon = "look";
CupboardAndAirduct.Cupboard.ProgressLvl7.onClickMessage = "Oh no, I think it's about to collapse...";
CupboardAndAirduct.Cupboard.ProgressLvl7.AnimationcallBack = Array(Array("SendMessage", "Almost..."));
CupboardAndAirduct.Cupboard.ProgressLvl8 = new Object();
CupboardAndAirduct.Cupboard.ProgressLvl8.onClickMessage = "I can't use the cupboard anymore";
CupboardAndAirduct.Cupboard.ProgressLvl8.AnimationcallBack = Array(Array("StartAnimation", Array("Cook", 77, 10000, Array("LockGirl"))), Array("StartAnimation", Array("KokVoetstappen", 2)), Array("SendMessage", "Someone is coming, better hide"), Array("ShowGirl", null), Array("UnlockGirl", true), Array("SetGirlPosition", Object({x:265, y:456})), Array("SetCustomClick", Object({x:265, y:456})), Array("UpdateProgressLevel", Array(Cook, 9)));
RoosterGeluid.ProgressLvlX = new Object();
RoosterGeluid.ProgressLvlX.AnimationcallBack = Array(Array("StartAnimation", Array("RoosterGeluid", 250)));
KokVoetstappen.ProgressLvlX = new Object();
KokVoetstappen.ProgressLvlX.AnimationcallBack = Array(Array("StartAnimation", Array("KokVoetstappen", 21)));
Cook.ProgressLvl9 = new Object();
Cook.ProgressLvl9.AnimationcallBack = Array(Array("CheckForGameOver", Array(null)), Array("ClearAnimationDelay", Array(null)), Array("ToggleDoorLock", Array("DoorA", false)), Array("UnlockGirl", true));
Cook.ProgressLvlX = new Object();
Cook.ProgressLvlX.AnimationcallBack = Array(Array("ClearAnimationDelay", Array(null)), Array("UpdateProgressLevel", Array(Cook, 2)), Array("SendMessage", "I better be quiet from now on or I\u2019m done for"));
_root.SetupWalkSystem(WalkingZone);
_root.SetupDoorSystem(DoorA, _root.State.Cellar.DoorALocked, "The door is locked, I have to find another way out", "Hall1F", _root.passPoints.F, "_root.passPoints.A", "right");
_root.RegisterHidingSpot(HidingSpot);
_root.SetupInteractiveObject(Cook, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(Crap, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(CupboardAndAirduct.Bottle, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(CupboardAndAirduct.Glass, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(CellarVent, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(CellarBlood, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(HidingSpot.Spot, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(RoosterGeluid, _root.State.Cellar.RoosterGeluidActiveFrame, "Puzzle1Tracker");
_root.SetupInteractiveObject(KokVoetstappen, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(CupboardAndAirduct.Airduct, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(CupboardAndAirduct.Cupboard, _root.State.Cellar.CupboardActiveFrame, "Puzzle1Tracker");
_root.SetGirlPosition();
_root.State.SyncUp = function () {
_root.State.Cellar.DoorALocked = ((DoorA.locked != undefined) ? (DoorA.locked) : (_root.State.Cellar.DoorALocked));
_root.State.Cellar.CupboardActiveFrame = ((CupboardAndAirduct._currentframe != undefined) ? (CupboardAndAirduct._currentframe) : (_root.State.Cellar.CupboardActiveFrame));
_root.State.Cellar.RoosterGeluidActiveFrame = ((RoosterGeluid._currentframe != undefined) ? (RoosterGeluid._currentframe) : (_root.State.Cellar.RoosterGeluidActiveFrame));
};
stop();
Frame 4
function Destroy() {
delete _root.State.SyncUp;
removeMovieClip(FuseboxBig);
}
function SetFuseUse(nr) {
_root.FuseInUse = nr;
}
function ByeCook() {
_root.State.Hall.HallCookActiveFrame = 252;
HallCook.gotoAndPlay(252);
}
function CheckElevator() {
if (HallLight._alpha == 100) {
UpdateProgressLevel(Array(AirChair, 2));
}
}
init("Hall 1F");
_root.FuseboxBig.swapDepths(_root.getNextHighestDepth());
_root.Overlay.swapDepths(_root.getNextHighestDepth());
_root.MouseShape.swapDepths(_root.getNextHighestDepth());
if (_root.Puzzle10Tracker == 1) {
_root.ShowGirl();
_root.UpdateProgressLevel(Array(new Object({tracker:"Puzzle8Tracker"}), 3));
_root.UpdateProgressLevel(Array(new Object({tracker:"Puzzle10Tracker"}), 2));
_root.State.Hall.AirChairActiveFrame = 218;
_root.State.Hall.HallCookActiveFrame = 2;
_root.HideGirl(true);
_root.StartAnimation(Array("HallCook", 2));
}
if (_root.Puzzle9Tracker > 5) {
_root.ShowGirl();
_root.UpdateProgressLevel(Array(new Object({tracker:"Puzzle9Tracker"}), 2));
_root.State.Hall.AirChairActiveFrame = 52;
}
if (_root.State.Hall == undefined) {
debug("Creating state object for Hall");
_root.State.Hall = new Object();
_root.State.Hall.SpiderwebsActiveFrame = 1;
_root.State.Hall.AirChairActiveFrame = 1;
_root.State.Hall.HallCookActiveFrame = 1;
_root.State.Hall.SecondFloorLightAlpha = 0;
}
_root.passPoints = Object({A:Object({x:140, y:380}), B:Object({x:420, y:380}), C:Object({x:570, y:340}), E:Object({x:540, y:340}), F:Object({x:197, y:366}), G:Object({x:480, y:350}), D:Object({x:660, y:380})});
_root.passRoutes = Array(Array("A", "B", "C"), Array("A", "B", "E"), Array("F", "B", "C"), Array("F", "B", "E"), Array("B", "B", "C"), Array("B", "B", "E"));
Spiderwebs.ProgressLvl0 = new Object();
Spiderwebs.ProgressLvl0.onClickMessage = "Eew! The doorway is covered with spiderwebs. I can see a fusebox behind the web";
Spiderwebs.ProgressLvl0.mouseIcon = "look";
Spiderwebs.ProgressLvl1 = new Object();
Spiderwebs.ProgressLvl1.onClickMessage = "Eew! The doorway is covered with spiderwebs. I can see a fusebox behind the web";
Spiderwebs.ProgressLvl1.mouseIcon = "look";
Spiderwebs.ProgressLvl2 = new Object();
Spiderwebs.ProgressLvl2.mouseIcon = "hand";
Spiderwebs.ProgressLvl3.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)));
Spiderwebs.ProgressLvl2.finalPassPoint = _root.passPoints.F;
Spiderwebs.ProgressLvl2.onClickMessage = "Good, now I can get to fusebox";
Spiderwebs.ProgressLvl2.customCall = Array(Array("GirlLookAt", "right"));
Spiderwebs.ProgressLvl2.requiredItem = Array("Plumeau");
Spiderwebs.ProgressLvl2.requiredItemAction = Array(Array(Array("RemoveFromInventory", "IIFeatherDuster"), Array("StartAnimation", Array("Spiderwebs", 2)), Array("HideGirl", Array(true)), Array("UpdateProgressLevel", Array(Spiderwebs, 3))));
Spiderwebs.ProgressLvl3 = new Object();
Spiderwebs.ProgressLvl3.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)));
AirChair.ProgressLvl0 = new Object();
AirChair.ProgressLvl0.onClickMessage = "The elevator is stuck halfway the stairs";
AirChair.ProgressLvl0.mouseIcon = "look";
AirChair.ProgressLvl1 = new Object();
AirChair.ProgressLvl1.onClickMessage = "The elevator is down, but I'm not going up until there's light upstairs";
AirChair.ProgressLvl1.mouseIcon = "hand";
AirChair.ProgressLvl1.AnimationcallBack = Array(Array("UnlockGirl", Array(null)));
AirChair.ProgressLvl2 = new Object();
AirChair.ProgressLvl2.onClickMessage = "I'm out of here";
AirChair.ProgressLvl2.mouseIcon = "hand";
AirChair.ProgressLvl2.customCall = Array(Array("StartAnimation", Array("AirChair", 53)), Array("UpdateProgressLevel", Array(AirChair, 3)), Array("HideGirl", Array(true)));
AirChair.ProgressLvl2.finalPassPoint = _root.passPoints.G;
AirChair.ProgressLvl3 = new Object();
AirChair.ProgressLvl3.AnimationcallBack = Array(Array("LoadScene", Array("2ndFloor", false)), Array("UnlockGirl", Array(null)));
AirChair.ProgressLvl4 = new Object();
AirChair.ProgressLvl4.onClickMessage = "Light is coming from upstairs. I can't use the elevator though, it has no power";
AirChair.ProgressLvl4.mouseIcon = "hand";
AirChair.ProgressLvl5 = new Object();
AirChair.ProgressLvl5.onClickMessage = "The stairway elevator has no power";
AirChair.ProgressLvl5.mouseIcon = "hand";
AirChair.ProgressLvl6 = new Object();
AirChair.ProgressLvl6.onClickMessage = "I'm out of here";
AirChair.ProgressLvl6.mouseIcon = "hand";
AirChair.ProgressLvl6.customCall = Array(Array("StartAnimation", Array("AirChair", 53)), Array("StartAnimation", Array("HallCook", 97)), Array("UpdateProgressLevel", Array(AirChair, 3)), Array("HideGirl", Array(true)));
AirChair.ProgressLvl6.finalPassPoint = _root.passPoints.G;
LightSwitch.ProgressLvl0 = new Object();
LightSwitch.ProgressLvl0.onClickMessage = "It doesn't have any effect";
LightSwitch.ProgressLvl0.finalPassPoint = _root.passPoints.E;
LightSwitch.ProgressLvl0.mouseIcon = "hand";
LightSwitch.ProgressLvl0.customCall = Array(Array("GirlLookAt", "left"));
LightSwitch.ProgressLvl1 = new Object();
LightSwitch.ProgressLvl1.onClickMessage = "The elevator is coming down";
LightSwitch.ProgressLvl1.finalPassPoint = _root.passPoints.E;
LightSwitch.ProgressLvl1.customCall = Array(Array("CheckElevator", Array(null)), Array("StartAnimation", Array("AirChair", 2)), Array("UpdateProgressLevel", Array(AirChair, 1)), Array("UpdateProgressLevel", Array(LightSwitch, 2)), Array("GirlLookAt", "left"));
LightSwitch.ProgressLvl1.mouseIcon = "hand";
LightSwitch.ProgressLvl3 = new Object();
LightSwitch.ProgressLvl3.onClickMessage = "The elevator is coming down";
LightSwitch.ProgressLvl3.finalPassPoint = _root.passPoints.E;
LightSwitch.ProgressLvl3.customCall = Array(Array("CheckElevator", Array(null)), Array("StartAnimation", Array("AirChair", 219)), Array("UpdateProgressLevel", Array(AirChair, 2)), Array("UpdateProgressLevel", Array(LightSwitch, 2)), Array("GirlLookAt", "left"));
LightSwitch.ProgressLvl3.mouseIcon = "hand";
LightSwitch.ProgressLvl4 = new Object();
LightSwitch.ProgressLvl4.onClickMessage = "The elevator is coming down";
LightSwitch.ProgressLvl4.finalPassPoint = _root.passPoints.E;
LightSwitch.ProgressLvl4.customCall = Array(Array("StartAnimation", Array("AirChair", 219)), Array("UpdateProgressLevel", Array(AirChair, 6)), Array("UpdateProgressLevel", Array(LightSwitch, 2)), Array("GirlLookAt", "left"));
LightSwitch.ProgressLvl4.mouseIcon = "hand";
HallCook.ProgressLvl9 = new Object();
HallCook.ProgressLvl9.AnimationcallBack = Array(Array("ShowGirl", Array(false)), Array("UnlockGirl", Array(null)), Array("UpdateProgressLevel", Array(HallCook, 10)), Array("UpdateProgressLevel", Array(AirChair, 6)), Array("UpdateProgressLevel", Array(LightSwitch, 4)));
HallCook.ProgressLvl10 = new Object();
HallCook.ProgressLvl10.AnimationcallBack = Array(Array("UnlockGirl", Array(null)), Array("ByeCook", Array(null)));
Fusebox.ProgressLvlX = new Object();
Fusebox.ProgressLvlX.mouseIcon = "hand";
Fusebox.ProgressLvlX.finalPassPoint = _root.passPoints.F;
Fusebox.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("FuseboxBig", 2)), Array("SetBlurTrigger", Array(true)), Array("LockGirl", Array(null)), Array("GirlLookAt", "right"));
Fusebox.ProgressLvlX.AnimationcallBack = Array(Array("SetBlurTrigger", Array(false)), Array("UnlockGirl", Array(null)));
Fusebox.ProgressLvlX.requiredItem = Array("FuseSmall");
Fusebox.ProgressLvlX.requiredItemAction = Array(Array(Array("RemoveFromInventory", "IIFuse"), Array("SetFuseUse", 2)));
HallLight._alpha = _root.State.Hall.SecondFloorLightAlpha;
_root.SetupWalkSystem(WalkingZone);
_root.SetupDoorSystem(DoorA, false, "The hall door is locked", "Livingroom", _root.passPoints.D, "_root.passPoints.A", "right");
_root.SetupDoorSystem(DoorB, false, "The cellar door is locked", "Cellar", _root.passPoints.A, "_root.passPoints.F", "left");
_root.SetupDoorSystem(DoorC, false, "The kitchen door is locked", "Kitchen", _root.passPoints.C, "_root.passPoints.C", "left");
_root.SetGirlPosition();
_root.SetupInteractiveObject(Spiderwebs, _root.State.Hall.SpiderwebsActiveFrame, "Puzzle4Tracker");
_root.SetupInteractiveObject(AirChair, _root.State.Hall.AirChairActiveFrame, "Puzzle9Tracker");
_root.SetupInteractiveObject(Fusebox, null, "Puzzle6Tracker");
_root.SetupInteractiveObject(LightSwitch, null, "Puzzle8Tracker");
_root.SetupInteractiveObject(HallCook, _root.State.Hall.HallCookActiveFrame, "Puzzle1Tracker");
_root.State.SyncUp = function () {
_root.State.Hall.SpiderwebsActiveFrame = ((Spiderwebs._currentframe != undefined) ? (Spiderwebs._currentframe) : (_root.State.Hall.SpiderwebsActiveFrame));
_root.State.Hall.AirChairActiveFrame = ((AirChair._currentframe != undefined) ? (AirChair._currentframe) : (_root.State.Hall.AirChairActiveFrame));
_root.State.Hall.HallCookActiveFrame = ((HallCook._currentframe != undefined) ? (HallCook._currentframe) : (_root.State.Hall.HallCookActiveFrame));
_root.State.Hall.SecondFloorLightAlpha = HallLight._alpha;
};
_root.BlurObjects = Array(MCHall, _root.Girl, AirChair);
stop();
Frame 5
function Destroy() {
removeMovieClip(Tv);
removeMovieClip(PantingBig);
delete _root.State.SyncUp;
}
init("Living Room");
_root.Tv.swapDepths(_root.getNextHighestDepth());
_root.PantingBig.swapDepths(_root.getNextHighestDepth());
_root.Overlay.swapDepths(_root.getNextHighestDepth());
_root.MouseShape.swapDepths(_root.getNextHighestDepth());
if (_root.State.Livingroom == undefined) {
debug("Creating state object for Livingroom");
_root.State.Livingroom = new Object();
_root.State.Livingroom.CatActiveFrame = ((_root.State.Kitchen == undefined) ? 0 : (_root.State.Kitchen.CatActiveFrame));
_root.State.Livingroom.FeatherdusterActiveFrame = 1;
}
_root.passPoints = Object({A:Object({x:200, y:380}), B:Object({x:315, y:364}), D:Object({x:414, y:374}), C:Object({x:600, y:380})});
_root.passRoutes = Array();
Cat.ProgressLvlX = new Object();
Cat.ProgressLvlX.mouseIcon = "look";
Cat.ProgressLvlX.onClickMessage = "The cat is lying on a duster";
Tv.Tv.ProgressLvlX = new Object();
Tv.Tv.ProgressLvlX.mouseIcon = "hand";
Tv.Tv.ProgressLvlX.onClickMessage = "The tv is switched on";
Tv.Tv.ProgressLvlX.customCall = Array(Array("LockGirl", Array(true)), Array("StartAnimation", Array("Tv", 2)), Array("ToggleDoorLock", Array("DoorA", true)), Array("ToggleDoorLock", Array("DoorB", true)));
Tv.Tv.ProgressLvlX.AnimationcallBack = Array(Array("StartAnimation", Array("Tv", 4, 7000, Array("LockGirl"))), Array("StartAnimation", Array("TvGeluid", 2)), Array("SendMessage", "Someone is coming, better hide"), Array("ShowGirl", null), Array("UnlockGirl", true), Array("UpdateProgressLevel", Array(Tv.Tv, 10)));
Tv.Tv.ProgressLvl10 = new Object();
Tv.Tv.ProgressLvl10.AnimationcallBack = Array(Array("CheckForGameOver", Array(null)), Array("ClearAnimationDelay", Array(null)), Array("UnlockGirl", true), Array("ToggleDoorLock", Array("DoorA", false)), Array("ToggleDoorLock", Array("DoorB", false)), Array("UpdateProgressLevel", Array(Tv.Tv, 11)));
Featherduster.Plumeau.ProgressLvl0 = new Object();
Featherduster.Plumeau.ProgressLvl0.mouseIcon = "hand";
Featherduster.Plumeau.ProgressLvl0.finalPassPoint = _root.passPoints.D;
Featherduster.Plumeau.ProgressLvl0.customCall = Array(Array("StartAnimation", Array("Cat", 2)), Array("HideGirl", Array(true)));
Featherduster.Plumeau.ProgressLvl0.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)), Array("SendMessage", "Fucking nasty animal"));
Featherduster.Plumeau.ProgressLvl1 = new Object();
Featherduster.Plumeau.ProgressLvl1.mouseIcon = "hand";
Featherduster.Plumeau.ProgressLvl1.finalPassPoint = _root.passPoints.D;
Featherduster.Plumeau.ProgressLvl1.customCall = Array(Array("StartAnimation", Array("Cat", 2)), Array("HideGirl", Array(true)));
Featherduster.Plumeau.ProgressLvl1.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)));
Featherduster.Plumeau.ProgressLvl2 = new Object();
Featherduster.Plumeau.ProgressLvl2.mouseIcon = "hand";
Featherduster.Plumeau.ProgressLvl2.finalPassPoint = _root.passPoints.D;
Featherduster.Plumeau.ProgressLvl2.customCall = Array(Array("StartAnimation", Array("Featherduster", 2)), Array("AddToInventory", Array("IIFeatherDuster", "Plumeau")));
Painting.ProgressLvlX = new Object();
Painting.ProgressLvlX.mouseIcon = "look";
Painting.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("PantingBig", 2)), Array("SetBlurTrigger", Array(true)), Array("LockGirl", Array(null)));
Painting.ProgressLvlX.AnimationcallBack = Array(Array("SetBlurTrigger", Array(false)), Array("UnlockGirl", Array(null)));
Painting.ProgressLvlX.onClickMessage = "What an odd painting";
Phone.ProgressLvlX = new Object();
Phone.ProgressLvlX.mouseIcon = "hand";
Phone.ProgressLvlX.finalPassPoint = _root.passPoints.B;
Phone.ProgressLvlX.onClickMessage = "I can't use the phone, the wire is cut";
LivingroomHidingSpot.Spot.ProgressLvlX = new Object();
LivingroomHidingSpot.Spot.ProgressLvlX.finalPassPoint = _root.passPoints.B;
LivingroomHidingSpot.Spot.ProgressLvlX.customCall = Array(Array("HideGirl", Array(true)), Array("LockGirl", Array(true)), Array("StartAnimation", Array("LivingroomHidingSpot", 2)));
LivingroomHidingSpot.Spot.ProgressLvlX.AnimationcallBack = Array(Array("UnlockGirl", true), Array("SendMessage", "No one can see me now"));
LivingroomHidingSpot.Spot.ProgressLvlX.mouseIcon = "hand";
LivingRoomWindow.ProgressLvlX = new Object();
LivingRoomWindow.ProgressLvlX.mouseIcon = "hand";
LivingRoomWindow.ProgressLvlX.onClickMessage = "The window is barricated with wooden boards, I have to find another way out";
TvGeluid.ProgressLvlX = new Object();
TvGeluid.ProgressLvlX.AnimationcallBack = Array(Array("StartAnimation", Array("TvGeluid", 248)));
_root.SetupWalkSystem(WalkingZone);
_root.SetupDoorSystem(DoorA, false, "I have to hide myself!", "Kitchen", _root.passPoints.C, "_root.passPoints.A", "right");
_root.SetupDoorSystem(DoorB, false, "I have to hide myself!", "Hall1F", _root.passPoints.A, "_root.passPoints.D", "left");
_root.SetGirlPosition();
_root.RegisterHidingSpot(LivingroomHidingSpot);
_root.SetupInteractiveObject(Cat, _root.State.Livingroom.CatActiveFrame, "Puzzle1Tracker");
_root.SetupInteractiveObject(Featherduster.Plumeau, _root.State.Livingroom.FeatherdusterActiveFrame, "Puzzle4Tracker");
_root.SetupInteractiveObject(Painting, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(Phone, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(TvGeluid, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(LivingRoomWindow, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(Tv.Tv, null, "Puzzle11Tracker");
_root.SetupInteractiveObject(LivingroomHidingSpot.Spot, null, "Puzzle1Tracker");
_root.State.SyncUp = function () {
_root.State.Livingroom.FeatherdusterActiveFrame = ((Featherduster._currentframe != undefined) ? (Featherduster._currentframe) : (_root.State.Livingroom.FeatherdusterActiveFrame));
};
_root.BlurObjects = Array(MCLivingroom, _root.Girl, Tv, Cat, Plumeau);
stop();
Frame 6
function Destroy() {
removeMovieClip(KeypadBig);
removeMovieClip(Chair);
removeMovieClip(Table);
delete _root.State.SyncUp;
}
function UpdateCatFrame() {
_root.State.Kitchen.CatActiveFrame = 52;
_root.State.Livingroom.CatActiveFrame = 52;
}
init("Kitchen");
if (Puzzle2Tracker == 0) {
_root.Chair.swapDepths(_root.getNextHighestDepth());
}
_root.Table.swapDepths(_root.getNextHighestDepth());
_root.KeypadBig.swapDepths(_root.getNextHighestDepth());
_root.Overlay.swapDepths(_root.getNextHighestDepth());
_root.MouseShape.swapDepths(_root.getNextHighestDepth());
if (_root.State.Kitchen == undefined) {
debug("Creating state object for Kitchen");
_root.State.Kitchen = new Object();
_root.State.Kitchen.DoorCLocked = true;
_root.State.Kitchen.ChairActiveFrame = 1;
_root.State.Kitchen.ClosetActiveFrame = 1;
_root.State.Kitchen.DrawerActiveFrame = 1;
_root.State.Kitchen.FoodbowlActiveFrame = 1;
_root.State.Kitchen.CatActiveFrame = 1;
_root.State.Kitchen.KeypadAlpha = 0;
}
_root.passPoints = Object({A:Object({x:140, y:380}), B:Object({x:200, y:370}), D:Object({x:440, y:406}), E:Object({x:280, y:375}), G:Object({x:320, y:375}), H:Object({x:360, y:375}), F:Object({x:252, y:407}), C:Object({x:650, y:380})});
_root.passRoutes = Array();
Table.ProgressLvlX = new Object();
Table.ProgressLvlX.mouseIcon = "look";
Table.ProgressLvlX.onClickMessage = "Eew, the table cloth has green stains on it";
Closet.Closet.ProgressLvl0 = new Object();
Closet.Closet.ProgressLvl0.mouseIcon = "hand";
Closet.Closet.ProgressLvl0.newProgressLevel = 1;
Closet.Closet.ProgressLvl0.finalPassPoint = _root.passPoints.G;
Closet.Closet.ProgressLvl0.customCall = Array(Array("StartAnimation", Array("Closet", 2)), Array("GirlLookAt", "right"));
Closet.RatPoison.ProgressLvl1 = new Object();
Closet.RatPoison.ProgressLvl1.mouseIcon = "hand";
Closet.RatPoison.ProgressLvl1.onClickMessage = "I got a bottle of rat poison";
Closet.RatPoison.ProgressLvl1.finalPassPoint = _root.passPoints.G;
Closet.RatPoison.ProgressLvl1.customCall = Array(Array("StartAnimation", Array("Closet", 4)), Array("AddToInventory", Array("IIRatPoison", "RatPoison")), Array("GirlLookAt", "right"));
Chair.CatFood.ProgressLvlX = new Object();
Chair.CatFood.ProgressLvlX.mouseIcon = "look";
Chair.CatFood.ProgressLvlX.onClickMessage = "It's a box of catfood, I can't get it when it is all the way up there";
Chair.CatFood.ProgressLvl0 = new Object();
Chair.CatFood.ProgressLvl0.mouseIcon = "look";
Chair.CatFood.ProgressLvl0.onClickMessage = "It's a box of catfood, I can't get it when it is all the way up there";
Chair.CatFood.ProgressLvl0.newProgressLevel = 1;
Chair.CatFood.ProgressLvl3 = new Object();
Chair.CatFood.ProgressLvl3.mouseIcon = "hand";
Chair.CatFood.ProgressLvl3.customCall = Array(Array("StartAnimation", Array("Chair", 153)), Array("HideGirl", Array(true)));
Chair.CatFood.ProgressLvl3.AnimationcallBack = Array(Array("UpdateProgressLevel", Array(Chair.CatFood, 4)), Array("AddToInventory", Array("IICatFood", "CatFood")));
Chair.ChairObj.ProgressLvlX = new Object();
Chair.ChairObj.ProgressLvlX.mouseIcon = "look";
Chair.ChairObj.ProgressLvlX.onClickMessage = "It's a wooden chair, maybe I can use it somehow...";
Chair.ChairObj.ProgressLvl1 = new Object();
Chair.ChairObj.ProgressLvl1.mouseIcon = "hand";
Chair.ChairObj.ProgressLvl1.finalPassPoint = _root.passPoints.D;
Chair.ChairObj.ProgressLvl1.newProgressLevel = 2;
Chair.ChairObj.ProgressLvl1.customCall = Array(Array("HideGirl", Array(true)), Array("StartAnimation", Array("Chair", 2)));
Chair.ChairObj.ProgressLvl2 = new Object();
Chair.ChairObj.ProgressLvl2.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)), Array("SwitchDepths", Array(_root.Girl, _root.Chair)), Array("GirlLookAt", "left"), Array("SetGirlPosition", Object({x:318, y:375})), Array("SetCustomClick", Object({x:318, y:375})));
Chair.ChairObj.ProgressLvl2.mouseIcon = "hand";
Chair.ChairObj.ProgressLvl2.newProgressLevel = 3;
Chair.ChairObj.ProgressLvl2.finalPassPoint = _root.passPoints.E;
Chair.ChairObj.ProgressLvl2.customCall = Array(Array("HideGirl", Array(true)), Array("LockGirl", Array(true)), Array("StartAnimation", Array("Chair", 116)));
Chair.ChairObj.ProgressLvl4 = new Object();
Chair.ChairObj.ProgressLvl4.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)), Array("GirlLookAt", "left"), Array("SetGirlPosition", Object({x:290, y:375})), Array("SetCustomClick", Object({x:290, y:375})), Array("UpdateProgressLevel", Array(Chair.ChairObj, 5)));
Chair.ChairObj.ProgressLvl4.mouseIcon = "hand";
Chair.ChairObj.ProgressLvl4.customCall = Array(Array("StartAnimation", Array("Chair", 208)));
Foodbowl.Foodbowl.ProgressLvlX = new Object();
Foodbowl.Foodbowl.ProgressLvlX.mouseIcon = "look";
Foodbowl.Foodbowl.ProgressLvlX.onClickMessage = "It's an empty food bowl";
Foodbowl.Foodbowl.ProgressLvl0 = new Object();
Foodbowl.Foodbowl.ProgressLvl0.mouseIcon = "hand";
Foodbowl.Foodbowl.ProgressLvl0.finalPassPoint = _root.passPoints.F;
Foodbowl.Foodbowl.ProgressLvl0.onClickMessage = "It's an empty food bowl";
Foodbowl.Foodbowl.ProgressLvl0.customCall = Array(Array("GirlLookAt", "left"));
Foodbowl.Foodbowl.ProgressLvl0.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)));
Foodbowl.Foodbowl.ProgressLvl0.requiredItem = Array("CatFood", "RatPoison");
Foodbowl.Foodbowl.ProgressLvl0.requiredItemAction = Array(Array(Array("StartAnimation", Array("Foodbowl", 2)), Array("HideGirl", Array(true))), Array(Array("RemoveFromInventory", "IIRatPoison"), Array("StartAnimation", Array("Foodbowl", 82)), Array("HideGirl", Array(true)), Array("UpdateProgressLevel", Array(Foodbowl.Foodbowl, 1))));
Foodbowl.Foodbowl.ProgressLvl1 = new Object();
Foodbowl.Foodbowl.ProgressLvl1.mouseIcon = "hand";
Foodbowl.Foodbowl.ProgressLvl1.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)));
Foodbowl.Foodbowl.ProgressLvl1.finalPassPoint = _root.passPoints.F;
Foodbowl.Foodbowl.ProgressLvl1.onClickMessage = "There is poison in the foodbowl now";
Foodbowl.Foodbowl.ProgressLvl1.customCall = Array(Array("GirlLookAt", "left"));
Foodbowl.Foodbowl.ProgressLvl1.requiredItem = Array("CatFood");
Foodbowl.Foodbowl.ProgressLvl1.requiredItemAction = Array(Array(Array("RemoveFromInventory", "IICatFood"), Array("StartAnimation", Array("Foodbowl", 116)), Array("HideGirl", Array(true)), Array("UpdateCatFrame", Array(null)), Array("UpdateProgressLevel", Array(Foodbowl.Foodbowl, 2))));
Foodbowl.Foodbowl.ProgressLvl2 = new Object();
Foodbowl.Foodbowl.ProgressLvl2.mouseIcon = "look";
Foodbowl.Foodbowl.ProgressLvl2.AnimationcallBack = Array(Array("ShowGirl", Array(null)), Array("UnlockGirl", Array(null)));
Foodbowl.Foodbowl.ProgressLvl2.finalPassPoint = _root.passPoints.F;
Foodbowl.Foodbowl.ProgressLvl2.onClickMessage = "Bon appetit you mean cat";
Drawer.ProgressLvl0 = new Object();
Drawer.ProgressLvl0.mouseIcon = "hand";
Drawer.ProgressLvl0.onClickMessage = "The kitchen drawer is locked. I wonder what he's keeping inside, must be important";
Drawer.ProgressLvl0.finalPassPoint = _root.passPoints.H;
Drawer.ProgressLvl1 = new Object();
Drawer.ProgressLvl1.mouseIcon = "hand";
Drawer.ProgressLvl1.finalPassPoint = _root.passPoints.H;
Drawer.ProgressLvl1.requiredItemMessage = "The kitchen drawer is locked. I wonder what he's keeping inside, must be important";
Drawer.ProgressLvl1.requiredItem = Array("Key");
Drawer.ProgressLvl1.requiredItemAction = Array(Array(Array("RemoveFromInventory", "IIKey"), Array("AddToInventory", Array("IIFuse", "FuseSmall")), Array("UpdateProgressLevel", Array(Drawer, 2)), Array("UpdateProgressLevel", Array(KeypadOn, 3)), Array("StartAnimation", Array("Drawer", 2)), Array("LockGirl", Array(null)), Array("SendMessage", "I found another fuse")));
Drawer.ProgressLvl2 = new Object();
Drawer.ProgressLvl2.mouseIcon = "hand";
Drawer.ProgressLvl2.finalPassPoint = _root.passPoints.H;
Drawer.ProgressLvl2.onClickMessage = "The drawer is empty";
Drawer.ProgressLvl2.AnimationcallBack = Array(Array("UnlockGirl", Array(null)));
KitchenWindow.ProgressLvlX = new Object();
KitchenWindow.ProgressLvlX.mouseIcon = "hand";
KitchenWindow.ProgressLvlX.onClickMessage = "The window is barricated with wooden boards, I have to find another way out";
KeypadOn.ProgressLvl0 = new Object();
KeypadOn.ProgressLvl0.mouseIcon = "hand";
KeypadOn.ProgressLvl0.onClickMessage = "The keypad doesn't work, it has no power";
KeypadOn.ProgressLvl1 = new Object();
KeypadOn.ProgressLvl1.mouseIcon = "hand";
KeypadOn.ProgressLvl1.finalPassPoint = _root.passPoints.B;
KeypadOn.ProgressLvl1.customCall = Array(Array("StartAnimation", Array("KeypadBig", 2)), Array("SetBlurTrigger", Array(true)), Array("LockGirl", Array(null)), Array("GirlLookAt", "right"));
KeypadOn.ProgressLvl1.AnimationcallBack = Array(Array("SetBlurTrigger", Array(false)), Array("UnlockGirl", Array(null)));
KeypadOn._alpha = _root.State.Kitchen.KeypadAlpha;
_root.SetupWalkSystem(WalkingZone);
_root.SetupDoorSystem(DoorA, false, "The hall door is locked", "Hall1F", _root.passPoints.C, "_root.passPoints.C", "left");
_root.SetupDoorSystem(DoorB, false, "The livingroom door is locked", "Livingroom", _root.passPoints.A, "_root.passPoints.C", "left");
_root.SetupDoorSystem(DoorC, _root.State.Kitchen.DoorCLocked, "The door of the freezer is locked. I probably have to use the keypad", "Freezer", _root.passPoints.B, "_root.passPoints.A", "right");
_root.SetupInteractiveObject(KeypadOn, null, "Puzzle6Tracker");
_root.SetupInteractiveObject(Closet.Closet, _root.State.Kitchen.ClosetActiveFrame, "Puzzle3Tracker");
_root.SetupInteractiveObject(Closet.RatPoison, null, "Puzzle3Tracker");
_root.SetupInteractiveObject(Table, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(Drawer, _root.State.Kitchen.DrawerActiveFrame, "Puzzle7Tracker");
_root.SetupInteractiveObject(KitchenWindow, null, "Puzzle1Tracker");
_root.SetupInteractiveObject(Foodbowl.Foodbowl, _root.State.Kitchen.FoodbowlActiveFrame, "Puzzle4Tracker");
_root.SetupInteractiveObject(Chair.CatFood, null, "Puzzle2Tracker");
_root.SetupInteractiveObject(Chair.ChairObj, _root.State.Kitchen.ChairActiveFrame, "Puzzle2Tracker");
_root.SetGirlPosition();
_root.State.SyncUp = function () {
_root.State.Kitchen.DoorCLocked = ((DoorC.locked != undefined) ? (DoorC.locked) : (_root.State.Kitchen.DoorCLocked));
_root.State.Kitchen.ChairActiveFrame = ((Chair._currentframe != undefined) ? (Chair._currentframe) : (_root.State.Kicthen.ChairActiveFrame));
_root.State.Kitchen.ClosetActiveFrame = ((Closet._currentframe != undefined) ? (Closet._currentframe) : (_root.State.Kicthen.ClosetActiveFrame));
_root.State.Kitchen.FoodbowlActiveFrame = ((Foodbowl._currentframe != undefined) ? (Foodbowl._currentframe) : (_root.State.Kicthen.FoodbowlActiveFrame));
_root.State.Kitchen.DrawerActiveFrame = ((Drawer._currentframe != undefined) ? (Drawer._currentframe) : (_root.State.Kicthen.DrawerActiveFrame));
_root.State.Kitchen.KeypadAlpha = KeypadOn._alpha;
};
_root.BlurObjects = Array(MCKitchen, _root.Girl, Foodbowl, Afwas, Table, Chair, KeypadOn);
stop();
Frame 7
function Destroy() {
removeMovieClip(Fog);
delete _root.State.SyncUp;
}
init("Freezer");
Fog.swapDepths(_root.getNextHighestDepth());
_root.Overlay.swapDepths(_root.getNextHighestDepth());
_root.MouseShape.swapDepths(_root.getNextHighestDepth());
if (_root.State.Freezer == undefined) {
debug("Creating state object for Freezer");
_root.State.Freezer = new Object();
_root.State.Freezer.BagActiveFrame = 1;
}
_root.passPoints = Object({A:Object({x:220, y:380}), B:Object({x:300, y:380}), D:Object({x:400, y:380}), E:Object({x:500, y:380}), C:Object({x:580, y:380})});
_root.passRoutes = Array();
MeatBag1.ProgressLvlX = new Object();
MeatBag1.ProgressLvlX.mouseIcon = "hand";
MeatBag1.ProgressLvlX.finalPassPoint = _root.passPoints.B;
MeatBag1.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("MeatBag1", 2)));
MeatBag2.ProgressLvlX = new Object();
MeatBag2.ProgressLvlX.mouseIcon = "hand";
MeatBag2.ProgressLvlX.finalPassPoint = _root.passPoints.D;
MeatBag2.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("MeatBag2", 2)));
MeatBag3.Bag.ProgressLvlX = new Object();
MeatBag3.Bag.ProgressLvlX.mouseIcon = "hand";
MeatBag3.Bag.ProgressLvlX.finalPassPoint = _root.passPoints.E;
MeatBag3.Bag.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("MeatBag3", 2)));
MeatBag3.DeadGirl.ProgressLvlX = new Object();
MeatBag3.DeadGirl.ProgressLvlX.mouseIcon = "hand";
MeatBag3.DeadGirl.ProgressLvlX.onClickMessage = "Oh no, poor Lilly...";
MeatBag3.Key.ProgressLvlX = new Object();
MeatBag3.Key.ProgressLvlX.mouseIcon = "hand";
MeatBag3.Key.ProgressLvlX.finalPassPoint = _root.passPoints.E;
MeatBag3.Key.ProgressLvlX.customCall = Array(Array("AddToInventory", Array("IIKey", "Key")), Array("StartAnimation", Array("MeatBag3", 96)), Array("UpdateProgressLevel", Array(new Object({tracker:"Puzzle7Tracker"}), 1)));
_root.SetupWalkSystem(WalkingZone);
_root.SetupDoorSystem(DoorA, false, "The kitchen door is locked", "Kitchen", _root.passPoints.A, "_root.passPoints.B", "right");
_root.SetGirlPosition();
_root.SetupInteractiveObject(MeatBag1);
_root.SetupInteractiveObject(MeatBag2);
_root.SetupInteractiveObject(MeatBag3.Bag, _root.State.Freezer.BagActiveFrame);
_root.SetupInteractiveObject(MeatBag3.DeadGirl);
_root.SetupInteractiveObject(MeatBag3.Key);
_root.State.SyncUp = function () {
_root.State.Freezer.BagActiveFrame = ((MeatBag3._currentframe != undefined) ? (MeatBag3._currentframe) : (_root.State.Freezer.BagActiveFrame));
};
stop();
Frame 8
function Destroy() {
delete _root.State.SyncUp;
}
init("Freezer");
_root.GirlTakePosition(Array("_root.passPoints.A", "right"));
_root.ShowGirl();
if (_root.State.sndFloor == undefined) {
debug("Creating state object for 2nd Floor");
_root.State.sndFloor = new Object();
_root.State.sndFloor.CarpetActiveFrame = 1;
}
_root.passPoints = Object({A:Object({x:220, y:380}), C:Object({x:440, y:380}), D:Object({x:440, y:360}), E:Object({x:280, y:360}), B:Object({x:580, y:380})});
_root.passRoutes = Array(Array("A", "D", "B"), Array("C", "D", "B"));
AirChair2.ProgressLvlX = new Object();
AirChair2.ProgressLvlX.finalPassPoint = _root.passPoints.E;
AirChair2.ProgressLvlX.mouseIcon = "hand";
AirChair2.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("AirChair2", 2)), Array("HideGirl", Array(true)));
AirChair2.ProgressLvlX.AnimationcallBack = Array(Array("LoadScene", Array("Hall1F", false)), Array("GirlTakePosition", Array("_root.passPoints.E", "right")), Array("UnlockGirl", Array(null)), Array("UpdateProgressLevel", Array(AirChair2, 6)));
DoorB.ProgressLvlX = new Object();
DoorB.ProgressLvlX.finalPassPoint = _root.passPoints.B;
DoorB.ProgressLvlX.mouseIcon = "hand";
DoorB.ProgressLvlX.customCall = Array(Array("StartAnimation", Array("DoorB", 2)));
DoorB.ProgressLvlX.AnimationcallBack = Array(Array("LoadScene", Array("Finish", false)));
Carpet.ProgressLvl0 = new Object();
Carpet.ProgressLvl0.finalPassPoint = _root.passPoints.C;
Carpet.ProgressLvl0.customCall = Array(Array("StartAnimation", Array("Carpet", 2)), Array("HideGirl", Array(true)));
Carpet.ProgressLvl0.newProgressLevel = 1;
Carpet.ProgressLvl1 = new Object();
Carpet.ProgressLvl1.AnimationcallBack = Array(Array("LoadScene", Array("Hall1F", false)), Array("GirlTakePosition", Array("_root.passPoints.B", "right")), Array("UnlockGirl", Array(null)));
_root.SetupWalkSystem(WalkingZone);
_root.SetupDoorSystem(DoorA, true, "The door is locked, i think this is the bathroom", "Bathroom", _root.passPoints.A, "_root.passPoints.B", "right");
_root.SetGirlPosition();
_root.SetupInteractiveObject(Carpet, _root.State.sndFloor.CarpetActiveFrame, "Puzzle10Tracker");
_root.SetupInteractiveObject(AirChair2, null, "Puzzle9Tracker");
_root.SetupInteractiveObject(DoorB, null, "Puzzle1Tracker");
_root.State.SyncUp = function () {
_root.State.sndFloor.CarpetActiveFrame = ((Carpet._currentframe != undefined) ? (Carpet._currentframe) : (_root.State.sndFloor.CarpetActiveFrame));
};
stop();
Frame 9
init("Game Over");
_root.HideGirl();
Frame 54
for (var i in _root) {
if ((delete eval ("_root." + i)) == false) {
removeMovieClip(eval ("_root." + i));
}
}
gotoAndPlay (1);
stop();
Frame 55
init("Game Over");
_root.HideGirl();
Frame 99
init("Game Over");
_root.HideGirl();
Frame 100
for (var i in _root) {
if ((delete eval ("_root." + i)) == false) {
removeMovieClip(eval ("_root." + i));
}
}
gotoAndPlay (1);
stop();
Frame 101
init("Credits");
_root.HideGirl();
Backbtn.onRelease = function () {
LoadScene(Array("Home", null));
};
stop();
Symbol 77 MovieClip Frame 1
function Set(mousetype) {
this.MouseIdle._visible = (this.MouseHand._visible = (this.MouseLook._visible = false));
switch (mousetype) {
case "idle" :
this.MouseIdle._visible = true;
break;
case "hand" :
this.MouseHand._visible = true;
break;
case "look" :
this.MouseLook._visible = true;
break;
default :
this.MouseIdle._visible = true;
}
}
Symbol 1966 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 1967 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 1968 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 1969 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 1970 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 1971 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 1972 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1973 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
}
Symbol 1974 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 1975 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 1976 MovieClip [__Packages.zigo.tweenManager] Frame 0
class zigo.tweenManager
{
var playing, autoStop, broadcastEvents, autoOverwrite, ints, lockedTweens, tweenList, updateTime, tweenHolder, updateIntId, now;
function tweenManager () {
playing = false;
autoStop = false;
broadcastEvents = false;
autoOverwrite = true;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
}
function cleanUp() {
if (!((tweenList instanceof Array) && (tweenList.length > 0))) {
return(undefined);
}
for (var _local2 in tweenList) {
if (tweenList[_local2].mc._x == undefined) {
tweenList.splice(Number(_local2), 1);
}
}
if (tweenList.length == 0) {
tweenList = [];
deinit();
}
for (var _local2 in ints) {
if ((ints[_local2] != undefined) && (ints[_local2].mc._x == undefined)) {
removeDelayedTween(Number(_local2));
}
}
}
function set updateInterval(time) {
if (playing) {
deinit();
updateTime = time;
init();
} else {
updateTime = time;
}
//return(updateInterval);
}
function get updateInterval() {
return(updateTime);
}
function set controllerDepth(v) {
if (_global.isNaN(v) == true) {
return;
}
if (tweenHolder._name != undefined) {
tweenHolder.swapDepths(v);
} else {
_th_depth = v;
}
//return(controllerDepth);
}
function get controllerDepth() {
return(_th_depth);
}
function init() {
if (updateTime > 0) {
clearInterval(updateIntId);
updateIntId = setInterval(this, "update", updateTime);
} else {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", _th_depth);
}
var tm = this;
tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
playing = true;
now = getTimer();
}
function deinit() {
playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
}
function update() {
var _local2;
var _local10;
var _local3;
var _local13 = false;
_local10 = tweenList.length;
if (broadcastEvents) {
var _local4;
var _local7;
var _local5;
var _local9;
_local4 = {};
_local7 = {};
_local5 = {};
_local9 = {};
}
while (_local10--) {
_local2 = tweenList[_local10];
if (_local2.mc._x == undefined) {
_local13 = true;
continue;
}
if (_local2.pt != -1) {
continue;
}
if ((_local2.ts + _local2.d) > now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
var _local8 = {};
for (_local3 in _local2.ctm) {
_local8[_local3] = _local2.ef(now - _local2.ts, _local2.stm[_local3], _local2.ctm[_local3], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local8);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = [];
}
_local5[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
}
if (_local2.cb.updfunc != undefined) {
var _local6 = _local2.cb.updfunc;
if ((typeof(_local6) == "string") && (_local2.cb.updscope != undefined)) {
_local6 = _local2.cb.updscope[_local6];
}
_local6.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
var _local8 = {};
for (_local3 in _local2.ctm) {
_local8[_local3] = _local2.stm[_local3] + _local2.ctm[_local3];
}
_local2.c.setTransform(_local8);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local7[targetPath(_local2.mc)] == undefined) {
_local7[targetPath(_local2.mc)] = _local2.mc;
}
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = [];
}
_local5[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
if (_local9[targetPath(_local2.mc)] == undefined) {
_local9[targetPath(_local2.mc)] = [];
}
_local9[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
}
if (_local2.cb.updfunc != undefined) {
var _local6 = _local2.cb.updfunc;
if ((typeof(_local6) == "string") && (_local2.cb.updscope != undefined)) {
_local6 = _local2.cb.updscope[_local6];
}
_local6.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local10);
}
}
if (_local13) {
cleanUp();
}
for (_local3 in _local4) {
_local4[_local3].broadcastMessage("onTweenUpdate", {target:_local4[_local3], props:_local5[_local3]});
}
if (endt != undefined) {
endTweens(endt);
}
for (_local3 in _local7) {
_local7[_local3].broadcastMessage("onTweenEnd", {target:_local7[_local3], props:_local9[_local3]});
}
now = getTimer();
if (updateTime > 0) {
updateAfterEvent();
}
}
function endTweens(tid_arr) {
var _local2;
var _local9;
var _local3;
var _local5;
var _local8;
_local2 = [];
_local9 = tid_arr.length;
_local3 = 0;
while (_local3 < _local9) {
_local5 = tweenList[tid_arr[_local3]].cb;
if (_local5 != undefined) {
var _local6 = true;
for (_local8 in _local2) {
if (_local2[_local8] == _local5) {
_local6 = false;
break;
}
}
if (_local6) {
_local2.push(_local5);
}
}
tweenList.splice(tid_arr[_local3], 1);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
var _local4 = _local2[_local3].func;
if ((typeof(_local4) == "string") && (_local2[_local3].scope != undefined)) {
_local4 = _local2[_local3].scope[_local4];
}
_local4.apply(_local2[_local3].scope, _local2[_local3].args);
_local3++;
}
if (tweenList.length == 0) {
deinit();
}
}
function removeDelayedTween(index) {
clearInterval(ints[index].intid);
ints[index] = undefined;
var _local2 = true;
for (var _local3 in ints) {
if (ints[_local3] != undefined) {
_local2 = false;
break;
}
}
if (_local2) {
ints = [];
}
}
function addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var _local4;
var _local13;
var _local6;
var _local3;
var _local2;
if (!playing) {
init();
}
var _local12 = [];
for (_local4 in props) {
_local13 = props[_local4];
_local6 = true;
if (_local13.substr(0, 4) != "_ct_") {
var _local17 = ((typeof(pEnd[_local4]) == "string") ? (Number(pEnd[_local4])) : (pEnd[_local4] - mc[_local13]));
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.pp == _local13)) {
_local2.ps = mc[_local13];
_local2.ch = _local17;
_local2.ts = now;
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local2.pt = -1;
_local6 = false;
_local12.push(_local2.pp);
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, pp:_local13, ps:mc[_local13], ch:_local17, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
} else {
var _local16 = new Color(mc);
var _local20 = _local16.getTransform();
var _local19 = {};
for (_local3 in pEnd[_local4]) {
if ((pEnd[_local4][_local3] != _local20[_local3]) && (pEnd[_local4][_local3] != undefined)) {
_local19[_local3] = ((typeof(pEnd[_local4][_local3]) == "string") ? (_local20[_local3] + Number(pEnd[_local4][_local3])) : (pEnd[_local4][_local3] - _local20[_local3]));
}
}
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.ctm != undefined)) {
_local2.c = _local16;
_local2.stm = _local20;
(_local2.ctm = _local19);
(_local2.ts = now);
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local2.pt = -1;
_local6 = false;
_local12.push("_ct_");
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, c:_local16, stm:_local20, ctm:_local19, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
}
}
if (broadcastEvents) {
if (_local12.length > 0) {
mc.broadcastMessage("onTweenInterrupt", {target:mc, props:_local12});
}
mc.broadcastMessage("onTweenStart", {target:mc, props:props});
}
if (callback.startfunc != undefined) {
var _local27 = callback.startfunc;
if ((typeof(_local27) == "string") && (callback.startscope != undefined)) {
_local27 = callback.startscope[_local27];
}
_local27.apply(callback.startscope, callback.startargs);
}
if (sec == 0) {
update();
}
}
function addTweenWithDelay(delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var il;
var _local3;
il = ints.length;
_local3 = setInterval(function (obj) {
obj.removeDelayedTween(il);
if (mc._x != undefined) {
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:_local3, st:getTimer(), delay:delay * 1000, args:arguments.slice(1), pt:-1};
if (!playing) {
init();
}
}
function removeTween(mc, props) {
var _local8;
var _local2;
var _local5;
_local8 = false;
if ((props == undefined) && (broadcastEvents != true)) {
_local8 = true;
}
_local2 = tweenList.length;
var _local4 = {};
while (_local2--) {
if (tweenList[_local2].mc == mc) {
if (_local8) {
tweenList.splice(_local2, 1);
} else {
for (_local5 in props) {
if (tweenList[_local2].pp == props[_local5]) {
tweenList.splice(_local2, 1);
if (_local4[targetPath(mc)] == undefined) {
_local4[targetPath(mc)] = {t:mc, p:[]};
}
_local4[targetPath(mc)].p.push(props[_local5]);
} else if (((props[_local5] == "_ct_") && (tweenList[_local2].ctm != undefined)) && (tweenList[_local2].mc == mc)) {
tweenList.splice(_local2, 1);
if (_local4[targetPath(mc)] == undefined) {
_local4[targetPath(mc)] = {t:mc, p:[]};
}
_local4[targetPath(mc)].p.push("_ct_");
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].mc == mc) {
if (_local8) {
removeDelayedTween(Number(_local2));
} else {
for (_local5 in props) {
for (var _local11 in ints[_local2].props) {
if (ints[_local2].props[_local11] == props[_local5]) {
ints[_local2].props.splice(_local11, 1);
ints[_local2].pend.splice(_local11, 1);
if (_local4[targetPath(mc)] == undefined) {
_local4[targetPath(mc)] = {t:mc, p:[]};
}
_local4[targetPath(mc)].p.push(props[_local5]);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (broadcastEvents) {
for (var _local11 in _local4) {
if (_local4[_local11].p.length > 0) {
_local4[_local11].t.broadcastMessage("onTweenInterrupt", {target:_local4[_local11].t, props:_local4[_local11].p});
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
function isTweening(mc, prop) {
var _local4 = prop == undefined;
for (var _local6 in tweenList) {
var _local2 = tweenList[_local6];
if (((tweenList[_local6].mc == mc) && (tweenList[_local6].pt == -1)) && ((_local4 || (prop == _local2.pp)) || ((prop == "_ct_") && (_local2.ctm != undefined)))) {
return(true);
}
}
return(false);
}
function getTweens(mc) {
var _local2 = 0;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2++;
}
}
return(_local2);
}
function lockTween(mc, bool) {
lockedTweens[targetPath(mc)] = bool;
}
function isTweenLocked(mc) {
if (lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(mc)]);
}
function ffTween(mc, propsObj) {
var _local4 = mc == undefined;
var _local6 = propsObj == undefined;
for (var _local8 in tweenList) {
var _local2 = tweenList[_local8];
if (((_local2.mc == mc) || (_local4)) && (_local6 || (propsObj[_local2.pp] == true))) {
if (_local2.pt != -1) {
_local2.pt = -1;
}
_local2.ts = now - _local2.d;
}
}
for (var _local8 in ints) {
if (ints[_local8] != undefined) {
if ((ints[_local8].mc == mc) || (_local4)) {
if (ints[_local8].mc._x != undefined) {
var _local3 = ints[_local8].args;
_local3[3] = 0;
addTween.apply(this, _local3);
}
removeDelayedTween(Number(_local8));
}
}
}
update();
}
function rewTween(mc, propsObj) {
var _local3 = mc == undefined;
var _local5 = propsObj == undefined;
for (var _local7 in tweenList) {
var _local2 = tweenList[_local7];
if (((_local2.mc == mc) || (_local3)) && (_local5 || (propsObj[_local2.pp] == true))) {
if (_local2.pt != -1) {
_local2.pt = -1;
}
_local2.ts = now;
}
}
for (var _local7 in ints) {
if (ints[_local7] != undefined) {
if ((ints[_local7].mc == mc) || (_local3)) {
if (ints[_local7].mc._x != undefined) {
addTween.apply(this, ints[_local7].args);
}
removeDelayedTween(Number(_local7));
}
}
}
update();
}
function isTweenPaused(mc, prop) {
if (mc == undefined) {
return(null);
}
var _local5 = prop == undefined;
for (var _local6 in tweenList) {
var _local2 = tweenList[_local6];
if ((tweenList[_local6].mc == mc) && ((_local5 || (prop == _local2.pp)) || ((prop == "_ct_") && (_local2.ctm != undefined)))) {
return(Boolean(tweenList[_local6].pt != -1));
}
}
for (var _local6 in ints) {
if ((ints[_local6] != undefined) && (ints[_local6].mc == mc)) {
return(Boolean(ints[_local6].pt != -1));
}
}
return(false);
}
function pauseTween(mc, propsObj) {
var _local3 = mc == undefined;
if ((_local3 == false) && (isTweenPaused(mc) == true)) {
return(undefined);
}
var _local6 = propsObj == undefined;
for (var _local7 in tweenList) {
var _local2 = tweenList[_local7];
if (((_local2.pt == -1) && ((_local2.mc == mc) || (_local3))) && ((_local6 || (propsObj[_local2.pp] == true)) || ((propsObj._ct_ != undefined) && (_local2.ctm != undefined)))) {
_local2.pt = now;
}
}
for (var _local7 in ints) {
if (ints[_local7] != undefined) {
if ((ints[_local7].pt == -1) && ((ints[_local7].mc == mc) || (_local3))) {
ints[_local7].pt = now;
}
}
}
}
function unpauseTween(mc, propsObj) {
var _local4 = mc == undefined;
if ((_local4 == false) && (isTweenPaused(mc) === false)) {
return(undefined);
}
var _local7 = propsObj == undefined;
if (!playing) {
init();
}
for (var _local2 in tweenList) {
var _local3 = tweenList[_local2];
if ((((_local3.pt != -1) && ((_local3.mc == mc) || (_local4))) && (_local7 || (propsObj[_local3.pp] == true))) || ((propsObj._ct_ != undefined) && (_local3.ctm != undefined))) {
_local3.ts = now - (_local3.pt - _local3.ts);
_local3.pt = -1;
}
}
for (var _local2 in ints) {
if (ints[_local2] != undefined) {
if ((ints[_local2].pt != -1) && ((ints[_local2].mc == mc) || (_local4))) {
ints[_local2].delay = ints[_local2].delay - (ints[_local2].pt - ints[_local2].st);
ints[_local2].st = now;
ints[_local2].intid = setInterval(function (obj, id) {
obj.addTween.apply(obj, obj.ints[id].args);
clearInterval(obj.ints[id].intid);
obj.ints[id] = undefined;
}, ints[_local2].delay, this, _local2);
}
}
}
}
function pauseAll() {
pauseTween();
}
function unpauseAll() {
unpauseTween();
}
function stopAll() {
for (var _local2 in ints) {
removeDelayedTween(Number(_local2));
}
tweenList = new Array();
deinit();
}
function toString() {
return("[AS2 tweenManager 1.2.0]");
}
var _th_depth = 6789;
}
Symbol 1977 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 55
_root.HandleAnimationCallBacks(this.Spot);
stop();
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 70
_root.HandleAnimationCallBacks(this.Cupboard);
Symbol 656 MovieClip Frame 71
stop();
Symbol 656 MovieClip Frame 272
_root.HandleAnimationCallBacks(this.Cupboard);
Symbol 656 MovieClip Frame 273
stop();
Symbol 656 MovieClip Frame 319
_root.HandleAnimationCallBacks(this.Cupboard);
Symbol 656 MovieClip Frame 320
stop();
Symbol 656 MovieClip Frame 450
_root.HandleAnimationCallBacks(this.Cupboard);
Symbol 656 MovieClip Frame 451
stop();
Symbol 656 MovieClip Frame 475
_root.HandleAnimationCallBacks(_root.RoosterGeluid);
Symbol 656 MovieClip Frame 476
_root.HandleAnimationCallBacks(this.Cupboard);
Symbol 656 MovieClip Frame 477
stop();
Symbol 656 MovieClip Frame 576
_root.HandleAnimationCallBacks(this.Cupboard);
Symbol 656 MovieClip Frame 577
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 2
_root.ClearAnimationDelay();
Symbol 855 MovieClip Frame 75
_root.HandleAnimationCallBacks(this);
Symbol 855 MovieClip Frame 76
stop();
Symbol 855 MovieClip Frame 79
_root.HandleAnimationCallBacks(_root.KokVoetstappen);
Symbol 855 MovieClip Frame 98
_root.ClearAnimationDelay();
_root.CheckForGameOver();
Symbol 855 MovieClip Frame 143
_root.ClearAnimationDelay();
Symbol 855 MovieClip Frame 331
_root.HandleAnimationCallBacks(this);
Symbol 855 MovieClip Frame 332
stop();
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 20
gotoAndPlay (2);
Symbol 857 MovieClip Frame 21
gotoAndStop (22);
Symbol 857 MovieClip Frame 22
stop();
Symbol 859 MovieClip Frame 1
gotoAndPlay (2);
Symbol 859 MovieClip Frame 249
gotoAndPlay (2);
Symbol 859 MovieClip Frame 250
stop();
Symbol 927 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 51
_root.HandleAnimationCallBacks(this);
Symbol 927 MovieClip Frame 52
stop();
Symbol 927 MovieClip Frame 217
_root.HandleAnimationCallBacks(this);
Symbol 927 MovieClip Frame 218
stop();
Symbol 927 MovieClip Frame 314
_root.HandleAnimationCallBacks(this);
Symbol 927 MovieClip Frame 315
stop();
Symbol 957 MovieClip Frame 1
this.Fusebox._visible = false;
stop();
Symbol 957 MovieClip Frame 40
_root.HandleAnimationCallBacks(this);
Symbol 957 MovieClip Frame 41
stop();
Symbol 963 MovieClip Frame 1
stop();
Symbol 963 MovieClip Frame 2
function StoreFuseLoc(nm, Obj) {
eval (("_root." + nm) + "Tracker").x = Obj._x;
eval (("_root." + nm) + "Tracker").y = Obj._y;
}
function SwitchLight(off) {
if (off == true) {
_root.HallLight.tween(["_alpha"], 0, 0.5, "easeOut", 0);
} else if (off == false) {
_root.HallLight.tween(["_alpha"], 100, 0.5, "easeOut", 0);
}
}
this.Fuse1._x = ((_root.Fuse1Tracker.x == undefined) ? (this.Fuse1._x) : (_root.Fuse1Tracker.x));
this.Fuse1._y = ((_root.Fuse1Tracker.y == undefined) ? (this.Fuse1._y) : (_root.Fuse1Tracker.y));
this.Fuse2._x = ((_root.Fuse2Tracker.x == undefined) ? (this.Fuse2._x) : (_root.Fuse2Tracker.x));
this.Fuse2._y = ((_root.Fuse2Tracker.y == undefined) ? (this.Fuse2._y) : (_root.Fuse2Tracker.y));
FuseHole1.Active = ((Fuse1.hitTest(FuseHole1) || (Fuse2.hitTest(FuseHole1))) ? true : false);
FuseHole2.Active = ((Fuse1.hitTest(FuseHole2) || (Fuse2.hitTest(FuseHole2))) ? true : false);
FuseHole3.Active = ((Fuse1.hitTest(FuseHole3) || (Fuse2.hitTest(FuseHole3))) ? true : false);
FuseHole4.Active = ((Fuse1.hitTest(FuseHole4) || (Fuse2.hitTest(FuseHole4))) ? true : false);
FuseHole5.Active = ((Fuse1.hitTest(FuseHole5) || (Fuse2.hitTest(FuseHole5))) ? true : false);
Fuse2._visible = ((_root.FuseInUse > 1) ? true : false);
this.Fuse1.onPress = (this.Fuse2.onPress = function () {
if (this.hitTest(FuseHole1)) {
FuseHole1.Active = false;
} else if (this.hitTest(FuseHole2)) {
FuseHole2.Active = false;
} else if (this.hitTest(FuseHole3)) {
FuseHole3.Active = false;
} else if (this.hitTest(FuseHole4)) {
FuseHole4.Active = false;
} else if (this.hitTest(FuseHole5)) {
FuseHole5.Active = false;
}
this.startDrag();
});
this.Fuse1.onRelease = (this.Fuse2.onRelease = function () {
this.stopDrag();
if (this.hitTest(FuseHole1)) {
this._x = FuseHole1._x;
this._y = FuseHole1._y;
StoreFuseLoc(this._name, this);
FuseHole1.Active = true;
} else if (this.hitTest(FuseHole2)) {
this._x = FuseHole2._x;
this._y = FuseHole2._y;
StoreFuseLoc(this._name, this);
FuseHole2.Active = true;
} else if (this.hitTest(FuseHole3)) {
this._x = FuseHole3._x;
this._y = FuseHole3._y;
StoreFuseLoc(this._name, this);
FuseHole3.Active = true;
} else if (this.hitTest(FuseHole4)) {
this._x = FuseHole4._x;
this._y = FuseHole4._y;
StoreFuseLoc(this._name, this);
FuseHole4.Active = true;
} else if (this.hitTest(FuseHole5)) {
this._x = FuseHole5._x;
this._y = FuseHole5._y;
StoreFuseLoc(this._name, this);
FuseHole5.Active = true;
}
if (FuseHole5.Active == true) {
SwitchLight(false);
} else {
SwitchLight(true);
}
});
this.onEnterFrame = function () {
_root.State.Kitchen.KeypadAlpha = ((FuseHole4.Active == true) ? 100 : 0);
_root.Puzzle8Tracker = ((_root.Puzzle8Tracker == 2) ? (_root.Puzzle8Tracker) : (((FuseHole2.Active == true) ? 1 : 0)));
_root.Puzzle6Tracker = ((FuseHole4.Active == true) ? 1 : 0);
_root.Puzzle9Tracker = ((((FuseHole5.Active == true) && (FuseHole2.Active == true)) && (_root.Puzzle8Tracker == 2)) ? 2 : (_root.Puzzle9Tracker));
_root.Puzzle9Tracker = ((((FuseHole5.Active == true) && (FuseHole2.Active == false)) && (_root.Puzzle8Tracker == 2)) ? 4 : (_root.Puzzle9Tracker));
_root.Puzzle9Tracker = ((((FuseHole5.Active == false) && (FuseHole2.Active == true)) && (_root.Puzzle8Tracker == 2)) ? 1 : (_root.Puzzle9Tracker));
_root.Puzzle9Tracker = ((((FuseHole5.Active == false) && (FuseHole2.Active == false)) && (_root.Puzzle8Tracker == 2)) ? 5 : (_root.Puzzle9Tracker));
};
this.FuseBoxBody.onRelease = function () {
delete this._parent.onEnterFrame;
gotoAndPlay (3);
};
stop();
Symbol 963 MovieClip Frame 3
_root.HandleAnimationCallBacks(_root.Fusebox);
gotoAndPlay (1);
stop();
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1037 MovieClip Frame 2
gotoAndPlay (3);
Symbol 1037 MovieClip Frame 95
_root.HandleAnimationCallBacks(_root.HallCook);
Symbol 1037 MovieClip Frame 96
stop();
Symbol 1037 MovieClip Frame 250
_root.HandleAnimationCallBacks(_root.HallCook);
Symbol 1037 MovieClip Frame 251
stop();
Symbol 1037 MovieClip Frame 252
stop();
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 35
_root.HandleAnimationCallBacks(this.Spot);
Symbol 1062 MovieClip Frame 36
stop();
Symbol 1063 MovieClip Frame 1
stop();
Symbol 1063 MovieClip Frame 2
_root.HandleAnimationCallBacks(this);
stop();
Symbol 1152 MovieClip Frame 1
stop();
Symbol 1152 MovieClip Frame 50
_root.HandleAnimationCallBacks(_root.Featherduster.Plumeau);
Symbol 1152 MovieClip Frame 51
gotoAndPlay (1);
Symbol 1152 MovieClip Frame 52
stop();
Symbol 1156 MovieClip Frame 1
stop();
Symbol 1156 MovieClip Frame 2
this.onRelease = function () {
gotoAndPlay (3);
};
stop();
Symbol 1156 MovieClip Frame 3
_root.HandleAnimationCallBacks(_root.Painting);
gotoAndPlay (1);
stop();
Symbol 1163 MovieClip Frame 1
stop();
Symbol 1163 MovieClip Frame 2
gotoAndPlay (3);
Symbol 1163 MovieClip Frame 21
_root.HandleAnimationCallBacks(this.Tv);
stop();
Symbol 1248 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 2
_root.HandleAnimationCallBacks(this.Tv);
Symbol 1248 MovieClip Frame 3
stop();
Symbol 1248 MovieClip Frame 4
_root.ClearAnimationDelay();
Symbol 1248 MovieClip Frame 54
_root.HandleAnimationCallBacks(_root.TvGeluid);
Symbol 1248 MovieClip Frame 121
trace("test");
_root.HandleAnimationCallBacks(this.Tv);
Symbol 1248 MovieClip Frame 122
stop();
Symbol 1249 MovieClip Frame 1
stop();
Symbol 1249 MovieClip Frame 248
stop();
Symbol 1260 MovieClip Frame 1
stop();
Symbol 1260 MovieClip Frame 2
_root.HandleAnimationCallBacks(this);
stop();
Symbol 1441 MovieClip Frame 1
stop();
Symbol 1441 MovieClip Frame 114
_root.HandleAnimationCallBacks(this.ChairObj);
Symbol 1441 MovieClip Frame 115
stop();
Symbol 1441 MovieClip Frame 151
_root.HandleAnimationCallBacks(this.ChairObj);
Symbol 1441 MovieClip Frame 152
stop();
Symbol 1441 MovieClip Frame 206
_root.HandleAnimationCallBacks(this.CatFood);
Symbol 1441 MovieClip Frame 207
stop();
Symbol 1441 MovieClip Frame 277
_root.HandleAnimationCallBacks(this.ChairObj);
Symbol 1441 MovieClip Frame 278
stop();
Symbol 1816 MovieClip Frame 1
stop();
Symbol 1816 MovieClip Frame 80
_root.HandleAnimationCallBacks(this.Foodbowl);
Symbol 1816 MovieClip Frame 81
stop();
Symbol 1816 MovieClip Frame 114
_root.HandleAnimationCallBacks(this.Foodbowl);
Symbol 1816 MovieClip Frame 115
stop();
Symbol 1816 MovieClip Frame 259
_root.HandleAnimationCallBacks(this.Foodbowl);
Symbol 1816 MovieClip Frame 438
stop();
Symbol 1837 MovieClip Frame 1
stop();
Symbol 1837 MovieClip Frame 2
function ClearKeypad() {
snd.start(0, 1);
if (this.DISPLAY.text == "WRONG") {
this.DISPLAY.text = "";
}
}
snd = new Sound();
snd.attachSound("klik");
snd2 = new Sound();
snd2.attachSound("FalsePassword");
snd3 = new Sound();
snd3.attachSound("CorrectPassword");
this.onEnterFrame = function () {
this.buttons.NR0.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "0";
};
this.buttons.NR1.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "1";
};
this.buttons.NR2.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "2";
};
this.buttons.NR3.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "3";
};
this.buttons.NR4.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "4";
};
this.buttons.NR5.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "5";
};
this.buttons.NR6.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "6";
};
this.buttons.NR7.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "7";
};
this.buttons.NR8.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "8";
};
this.buttons.NR9.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "9";
};
this.buttons.NUMBERSIGN.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "#";
};
this.buttons.STAR.onRelease = function () {
ClearKeypad();
this._parent._parent.DISPLAY.text = this._parent._parent.DISPLAY.text + "*";
};
this.buttons.CLEAR.onRelease = function () {
this._parent._parent.DISPLAY.text = "";
};
this.buttons.CANCEL.onRelease = function () {
gotoAndPlay (3);
};
this.buttons.OK.onRelease = function () {
if (this._parent._parent.DISPLAY.text == "1977") {
this._parent._parent.DISPLAY.text = "OK";
_root.ToggleDoorLock(Array("_root.DoorC", false));
snd3.start(0, 1);
gotoAndPlay (3);
} else {
snd2.start(0, 1);
this._parent._parent.DISPLAY.text = "WRONG";
}
};
};
stop();
Symbol 1837 MovieClip Frame 3
_root.HandleAnimationCallBacks(_root.KeypadOn);
gotoAndPlay (1);
stop();
Symbol 1846 MovieClip Frame 1
this.RatPoison._visible = false;
stop();
Symbol 1846 MovieClip Frame 2
this.RatPoison._visible = true;
_root.HandleAnimationCallBacks(this.Closet);
Symbol 1846 MovieClip Frame 3
stop();
Symbol 1846 MovieClip Frame 4
_root.HandleAnimationCallBacks(this.Closet);
Symbol 1846 MovieClip Frame 5
stop();
Symbol 1862 MovieClip Frame 1
stop();
Symbol 1862 MovieClip Frame 66
_root.HandleAnimationCallBacks(this);
stop();
Symbol 1865 MovieClip Frame 1
stop();
Symbol 1865 MovieClip Frame 66
_root.HandleAnimationCallBacks(this);
stop();
Symbol 1881 MovieClip Frame 1
this.Key._visible = false;
stop();
Symbol 1881 MovieClip Frame 94
_root.HandleAnimationCallBacks(this.Bag);
Symbol 1881 MovieClip Frame 95
this.Key._visible = true;
stop();
Symbol 1881 MovieClip Frame 96
_root.HandleAnimationCallBacks(this.Key);
Symbol 1881 MovieClip Frame 97
stop();
Symbol 1893 MovieClip Frame 1
stop();
Symbol 1893 MovieClip Frame 24
_root.HandleAnimationCallBacks(this);
Symbol 1893 MovieClip Frame 25
stop();
Symbol 1911 MovieClip Frame 1
stop();
Symbol 1911 MovieClip Frame 7
_root.HandleAnimationCallBacks(this);
Symbol 1911 MovieClip Frame 8
stop();
Symbol 1957 MovieClip Frame 1
stop();
Symbol 1957 MovieClip Frame 144
_root.HandleAnimationCallBacks(this);
Symbol 1957 MovieClip Frame 145
stop();