Frame 1
stop();
Stage.showMenu = false;
Stage.scaleMode = "noscale";
MochiAd.showPreGameAd({id:"230783c0e0b73516", res:"640x500", background:0, color:10837514, outline:16762764, no_bg:true});
_root.tabChildren = false;
Frame 2
if (false) {
}
Frame 11
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function enableCorners() {
var _local1 = 1;
while (_local1 <= 4) {
scene2["corner" + _local1].hotSpot.enabled = true;
_local1++;
}
}
__com_mochibot__("0323c20a", this, 10301, true);
var i = 1;
while (i <= 3) {
this.createEmptyMovieClip("freezeloopholder" + i, this.getNextHighestDepth());
this["freezeloop" + i] = new Sound("freezeloopholder" + i);
this["freezeloop" + i].attachSound("freezeloop" + i);
this["freezeloop" + i].setVolume(30);
i++;
}
freezeloop1.setVolume(0);
freezeloop1.start(0, 1);
gs.TweenFilterLite.to(freezeloopholder1, 8, {volume:30});
freezeloop1.onSoundComplete = function () {
freezeloop2.start(0, 1);
};
freezeloop2.onSoundComplete = function () {
freezeloop3.start(0, 1);
};
freezeloop3.onSoundComplete = function () {
freezeloop1.start(0, 1);
};
this.createEmptyMovieClip("phonebeepholder", this.getNextHighestDepth());
phonebeepsound = new Sound(phonebeepholder);
phonebeepsound.attachSound("phonebeep");
phonebeepsound.setVolume(100);
this.createEmptyMovieClip("doorlocked", this.getNextHighestDepth());
doorlock = new Sound(doorlocked);
doorlock.attachSound("doorlock_sound");
doorlock.setVolume(10);
this.createEmptyMovieClip("generatorholder", this.getNextHighestDepth());
generator = new Sound(generatorholder);
generator.attachSound("generator");
generator.setVolume(0);
generator.start(0, 999);
this.createEmptyMovieClip("stationholder", this.getNextHighestDepth());
stationsound = new Sound(stationholder);
stationsound.attachSound("stationsound");
stationsound.setVolume(0);
this.createEmptyMovieClip("clockholder", this.getNextHighestDepth());
clocksound = new Sound(clockholder);
clocksound.attachSound("clocksound");
clocksound.setVolume(10);
this.createEmptyMovieClip("clockchimeholder", this.getNextHighestDepth());
clockchime = new Sound(clockchimeholder);
clockchime.attachSound("clockchime");
clockchime.setVolume(20);
this.createEmptyMovieClip("radiotuneholder", this.getNextHighestDepth());
radiotune = new Sound(radiotuneholder);
radiotune.attachSound("radiotune");
radiotune.setVolume(0);
this.createEmptyMovieClip("befriendholder", this.getNextHighestDepth());
befriend = new Sound(befriendholder);
befriend.attachSound("befriend");
befriend.setVolume(50);
this.createEmptyMovieClip("churchBellhlder", this.getNextHighestDepth());
churchBell = new Sound(churchBellholder);
churchBell.attachSound("churchBell");
churchBell.setVolume(50);
this.createEmptyMovieClip("waterFontholder", this.getNextHighestDepth());
waterFont = new Sound(waterFontholder);
waterFont.attachSound("waterFont");
waterFont.setVolume(50);
this.createEmptyMovieClip("flamesholder", this.getNextHighestDepth());
flames = new Sound(flamesholder);
flames.attachSound("flames");
flames.setVolume(50);
this.createEmptyMovieClip("heartbeatholder", this.getNextHighestDepth());
heartbeat = new Sound(heartbeatholder);
heartbeat.attachSound("heartbeat");
heartbeat.setVolume(50);
heartbeat.start(0, 999);
this.createEmptyMovieClip("heartbeat2holder", this.getNextHighestDepth());
heartbeat2 = new Sound(heartbeat2holder);
heartbeat2.attachSound("heartbeat2");
heartbeat2.setVolume(0);
heartbeat2.start(0, 999);
this.createEmptyMovieClip("chantingholder", this.getNextHighestDepth());
chanting = new Sound(chantingholder);
chanting.attachSound("chanting");
chanting.setVolume(0);
chanting.start(0, 999);
this.createEmptyMovieClip("crowsholder", this.getNextHighestDepth());
crows = new Sound(crowsholder);
crows.attachSound("crows");
crows.setVolume(0);
crows.start(0, 999);
this.createEmptyMovieClip("brainholder", this.getNextHighestDepth());
brainroom = new Sound(brainholder);
brainroom.attachSound("brainroom");
brainroom.setVolume(0);
brainroom.start(0, 999);
this.createEmptyMovieClip("brainwooshholder", this.getNextHighestDepth());
brainwoosh = new Sound(brainwooshholder);
brainwoosh.attachSound("brainwoosh");
brainwoosh.setVolume(0);
brainwoosh.start(0, 999);
this.createEmptyMovieClip("clownholder", this.getNextHighestDepth());
clown = new Sound(clownholder);
clown.attachSound("clown");
clown.setVolume(0);
var cogFitted = false;
var sparkFitted = false;
var petrolFitted = false;
var generatorRunning = false;
genFadeIn = function () {
gs.TweenFilterLite.to(generatorholder, 4, {volume:30});
};
var i = 1;
while (i <= 8) {
scene1["item" + i].hotSpot.i = i;
scene1["item" + i].hotSpot.onRelease = function () {
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
trace(_root["itemSlot" + _local3].item);
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
i++;
}
initAct1 = function () {
scene1.actAnim.play();
if (generatorRunning && (cogFitted)) {
scene1.lightbeam.gotoAndPlay("flicker");
scene1.robot.play();
scene1.robot.hotSpot.play();
scene1.treadmill.play();
scene1.mastercog.play();
gs.TweenFilterLite.to(generatorholder, 4, {volume:30});
}
};
pauseAct1 = function () {
scene1.lightbeam.stop();
scene1.robot.stop();
scene1.robot.hotSpot.stop();
scene1.treadmill.stop();
scene1.mastercog.stop();
gs.TweenFilterLite.to(generatorholder, 4, {volume:0});
};
var i = 1;
while (i <= 4) {
scene2["corner" + i].hotSpot.enabled = false;
i++;
}
var doorCorners = 0;
doorChecker = function () {
if (doorCorners == 4) {
scene2.cellDoor.play();
scene2.corner1.play();
scene2.corner2.play();
scene2.corner3.play();
scene2.corner4.play();
nextButton2.enabled = true;
}
};
var i = 11;
while (i <= 16) {
scene2["item" + i].hotSpot.i = i;
scene2["item" + i].hotSpot.onRelease = function () {
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
trace(_root["itemSlot" + _local3].item);
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
i++;
}
clocksound.start(0, 999);
radiotune.start(0, 999);
clocksound.setVolume(0);
radiotune.setVolume(0);
initAct2 = function () {
scene2.actAnim.play();
scene2.camera.play();
gs.TweenFilterLite.to(clocksound, 4, {volume:50});
gs.TweenFilterLite.to(radiotuneholder, 4, {volume:50});
};
pauseAct2 = function () {
scene2.camera.stop();
gs.TweenFilterLite.to(clocksound, 4, {volume:0});
gs.TweenFilterLite.to(radiotuneholder, 4, {volume:0});
};
_root.scene3.trainActive = false;
telephoneboxsound.onSoundComplete = function () {
scene3.lightingFader.play();
scene3.hatch.play();
};
scene3.phoneGot = false;
scene3.train.item21.hotSpot.i = 21;
scene3.train.item21.hotSpot.onRelease = function () {
_root.filled = false;
_root.phoneGot = true;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
scene3.trainActive = false;
initAct3 = function () {
_root.scene3.trainActive = true;
scene3.actAnim.play();
stationsound.start(0, 999);
gs.TweenFilterLite.to(stationholder, 8, {volume:30});
};
pauseAct3 = function () {
_root.scene3.trainActive = false;
gs.TweenFilterLite.to(stationholder, 8, {volume:0});
};
scene4.item31._visible = false;
scene4.item31.hotSpot.i = 31;
scene4.item31.hotSpot.onRelease = function () {
_root.filled = false;
_root.heartPlaying = false;
_root.heartStop();
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
var heartPlaying = false;
heartPlay = function () {
trace("heartbeatPlaying=" + heartPlaying);
heartPlaying = true;
gs.TweenFilterLite.to(heartbeatholder, 4, {volume:50});
};
heartStop = function () {
trace("heartbeatStoping=" + heartPlaying);
gs.TweenFilterLite.to(heartbeatholder, 4, {volume:0});
};
var flaming = false;
initAct4 = function () {
gs.TweenFilterLite.to(chantingholder, 3, {volume:60});
if (flaming) {
gs.TweenFilterLite.to(flamesholder, 3, {volume:50});
}
if (heartPlaying) {
gs.TweenFilterLite.to(heartbeatholder, 4, {volume:50});
}
scene4.actAnim.play();
};
pauseAct4 = function () {
gs.TweenFilterLite.to(chantingholder, 3, {volume:0});
trace("flaming=" + flaming);
if (flaming) {
gs.TweenFilterLite.to(flamesholder, 3, {volume:0});
}
if (heartPlaying) {
gs.TweenFilterLite.to(heartbeatholder, 4, {volume:0});
}
};
var startFlame = 1;
nextFlameLight = function () {
startFlame++;
scene4["candle" + startFlame].play();
if (startFlame == 12) {
_root.scene4.fontCross.play();
churchBell.start();
}
};
var heartTransplant = false;
var brainTransplant = false;
scene5.heart.stop();
scene5.heart.red._visible = false;
scene5.artery._alpha = 0;
hotSpot1._alpha = 0;
hotSpot1.onRelease = function () {
_root.doorlock.start(0, 1);
};
hotSpot2._alpha = 0;
hotSpot2.onRelease = function () {
_root.doorlock.start(0, 1);
};
var i = 1;
while (i <= 8) {
scene5["item" + i].hotSpot.i = i;
scene5["item" + i].hotSpot.onRelease = function () {
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
trace(_root["itemSlot" + _local3].item);
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
i++;
}
heartbeatPlay = function () {
heartTransplant = true;
gs.TweenFilterLite.to(heartbeat2holder, 4, {volume:100});
};
initAct5 = function () {
scene5.actAnim.play();
if (heartTransplant) {
gs.TweenFilterLite.to(heartbeat2holder, 4, {volume:100});
}
scene5.actAnim.play();
};
pauseAct5 = function () {
if (heartTransplant) {
gs.TweenFilterLite.to(heartbeat2holder, 4, {volume:0});
}
};
var crowsClicked = 0;
var i = 1;
while (i <= 7) {
scene6["crow" + i].onRollOver = function () {
this.useHandCursor = false;
crowsClicked++;
this.enabled = false;
trace("crows=" + crowsClicked);
gs.TweenFilterLite.to(this, 2, {_alpha:0});
if (crowsClicked == 7) {
_root.scene6.item41.play();
}
};
i++;
}
scene6.item41.hotSpot.i = 41;
scene6.item41.hotSpot.onRelease = function () {
scene6.item41.gotoAndStop("blank");
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent.gotoAndStop("empty");
this.enabled = false;
_local3++;
}
};
scene6.item22.hotSpot.i = 22;
scene6.item22.hotSpot.onRelease = function () {
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
initAct6 = function () {
scene6.actAnim.play();
gs.TweenFilterLite.to(crowsholder, 4, {volume:60});
};
pauseAct6 = function () {
gs.TweenFilterLite.to(crowsholder, 4, {volume:0});
};
scene7.artery1._alpha = 0;
scene7.artery2._alpha = 0;
var i = 1;
while (i <= 8) {
scene7["item" + i].hotSpot.i = i;
scene7["item" + i].hotSpot.onRelease = function () {
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
trace(_root["itemSlot" + _local3].item);
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
i++;
}
initAct7 = function () {
scene7.actAnim.play();
};
pauseAct7 = function () {
};
scene8.artery1._alpha = 0;
scene8.artery2._alpha = 0;
var link1 = false;
var link2 = false;
var link3 = false;
var link4 = false;
scene8.brain.hotSpot.enabled = true;
linkTest = function () {
trace("linkTest");
if (((link1 && (link2)) && (link3)) && (link4)) {
scene8.brain.hotSpot.enabled = true;
scene8.brain.play();
gs.TweenFilterLite.to(connector, 2, {_alpha:100});
scene8.brainGlow.play();
var _local2 = 1;
while (_local2 <= 4) {
this["beam" + _local2].hotSpot._eanbled = falase;
_local2++;
}
}
};
scene8.brain.hotSpot.i = 51;
scene8.brain.hotSpot.onRelease = function () {
_root.filled = false;
var _local3 = 1;
while (_local3 <= 8) {
if (_root["itemSlot" + _local3].empty && (!_root.filled)) {
_root["itemSlot" + _local3].item = this.i;
trace(_root["itemSlot" + _local3].item);
_root["itemSlot" + _local3].empty = false;
_root["itemSlot" + _local3].holder.gotoAndStop(this.i);
_root["itemSlot" + _local3].holder._visible = true;
_root.filled = true;
}
this._parent._visible = false;
this._parent.removeMovieClip();
_local3++;
}
};
initAct8 = function () {
scene8.actAnim.play();
gs.TweenFilterLite.to(brainholder, 4, {volume:60});
gs.TweenFilterLite.to(brainwooshholder, 8, {volume:60});
};
pauseAct8 = function () {
gs.TweenFilterLite.to(brainholder, 4, {volume:0});
gs.TweenFilterLite.to(brainwooshholder, 8, {volume:0});
};
initAct9 = function () {
scene9.play();
};
pauseAct9 = function () {
};
stop();
infoButton.onRelease = function () {
infoClip._visible = true;
};
var i = 1;
while (i <= 6) {
this["phone" + i] = "" + Math.round(Math.random() * 9);
i++;
}
var phoneGot = false;
var phoneCalled = false;
phoneNumber = ((((phone1 + phone2) + phone3) + phone4) + phone5) + phone6;
oldBook.phoneNumber.text = phoneNumber;
clearScenes = function () {
hub._visible = false;
scene1._visible = false;
scene2._visible = false;
scene3._visible = false;
scene4._visible = false;
scene5._visible = false;
scene6._visible = false;
scene7._visible = false;
scene8._visible = false;
scene9._visible = false;
pauseAct1();
pauseAct2();
pauseAct3();
pauseAct4();
pauseAct5();
pauseAct6();
pauseAct7();
pauseAct8();
pauseAct9();
};
clearScenes();
var scene = "intro";
newSceneVisible = function (scene) {
clearScenes();
gs.TweenFilterLite.to(backButton, 1, {_alpha:100});
backButton.enabled = true;
switch (scene) {
case "scene1" :
initAct1();
break;
case "scene2" :
initAct2();
break;
case "scene3" :
initAct3();
break;
case "scene4" :
initAct4();
break;
case "scene5" :
initAct5();
break;
case "scene6" :
initAct6();
break;
case "scene7" :
initAct7();
break;
case "scene8" :
initAct8();
break;
case "scene9" :
initAct9();
}
this[scene]._visible = true;
if (scene == "hub") {
hub.actAnim.play();
gs.TweenFilterLite.to(backButton, 1, {_alpha:0});
backButton.enabled = false;
pauseAct1();
pauseAct2();
pauseAct3();
pauseAct4();
pauseAct5();
pauseAct6();
pauseAct7();
pauseAct8();
pauseAct9();
}
hub.tvMan._visible = false;
var _local3 = Math.round(Math.random() * 20);
if (_local3 == 1) {
hub.tvMan._visible = true;
}
if (scene == "scene9") {
gs.TweenFilterLite.to(backButton, 0.5, {_alpha:0});
backButton.enabled = false;
}
};
scene1.robot.stop();
scene1.treadmill.stop();
scene1.cogs.stop();
scene2.lightcrack.stop();
scene2.camera.stop();
scene3.train.stop();
scene1.actAnim.actClip.actName.text = "Motion";
scene2.actAnim.actClip.actName.text = "Contained";
scene3.actAnim.actClip.actName.text = "Transport";
scene4.actAnim.actClip.actName.text = "Spirit";
scene5.actAnim.actClip.actName.text = "Engine";
scene6.actAnim.actClip.actName.text = "Knowledge";
scene7.actAnim.actClip.actName.text = "Portal";
scene8.actAnim.actClip.actName.text = "Connection";
hub.actAnim.actClip.actName.text = "Subconscious";
var itemHeld = 0;
inventoryClips._visible = false;
var itemSelected = "none";
var nextFreeSlot = 1;
var filled = false;
var inventoryItems = Array(0, "jerryCan", "cog", "sparkplug", "spanner", "roboteye", "roboteyelive", 0, 0, 0, 0, "razor", "screwdriver", "biblepage", "crucifix", 0, 0, 0, 0, 0, 0, "mobile", "candle", 0, 0, 0, 0, 0, 0, 0, 0, "heart", 0, 0, 0, 0, 0, 0, 0, 0, 0, "oldbook", 0, 0, 0, 0, 0, 0, 0, 0, 0, "brain");
var i = 1;
while (i <= 8) {
this["itemSlot" + i].empty = true;
this["itemSlot" + i].item = 0;
this["itemSlot" + i].i = this.i;
this["itemSlot" + i].holder._visible = false;
this["itemSlot" + i].onRelease = function () {
if ((this.empty == false) && (_root.itemHeld == 0)) {
this.empty = true;
_root.itemHeld = this.item;
this.holder._visible = false;
_root.inventoryClips.gotoAndStop(this.item);
_root.inventoryClips._visible = true;
_root.itemSelected = inventoryItems[this.item];
trace(inventoryItems[this.item]);
trace("itemHeld=" + _root.itemHeld);
Mouse.hide();
this.item = 0;
switch (_root.itemSelected) {
case "biblepage" :
_root.inventoryClips._visible = false;
biblepage._visible = true;
Mouse.show();
break;
case "mobile" :
_root.inventoryClips._visible = false;
mobilePhone._visible = true;
Mouse.show();
break;
case "oldbook" :
_root.inventoryClips._visible = false;
oldBook._visible = true;
Mouse.show();
}
} else if ((this.empty == true) && (_root.itemHeld != 0)) {
trace("putting item");
this.empty = false;
Mouse.show();
this.holder._visible = true;
this.holder.gotoAndStop(_root.itemHeld);
this.item = _root.itemHeld;
_root.holding = false;
_root.itemSelected = "none";
_root.inventoryClips._visible = false;
_root.itemHeld = 0;
}
};
this["itemSlot" + i].onRollOver = function () {
this.over.gotoAndPlay("over");
};
this["itemSlot" + i].onRollOut = function () {
this.over.gotoAndPlay("out");
};
this["itemSlot" + i].onDragOut = function () {
this.over.gotoAndPlay("out");
};
i++;
}
overlayDroper = function () {
_root.inventoryClips._visible = true;
Mouse.hide();
};
fadeUpInventory = function () {
gs.TweenFilterLite.to(infoButton, 2, {_alpha:100});
gs.TweenFilterLite.to(backButton, 2, {_alpha:100});
var _local2 = 1;
while (_local2 <= 8) {
gs.TweenFilterLite.to(this["itemSlot" + _local2], 2, {_alpha:100});
_local2++;
}
};
fadeDownInventory = function () {
var _local2 = 1;
while (_local2 <= 8) {
gs.TweenFilterLite.to(this["itemSlot" + _local2], 2, {_alpha:0});
this["itemSlot" + _local2].enabled = false;
_local2++;
}
gs.TweenFilterLite.to(infoButton, 2, {_alpha:0});
gs.TweenFilterLite.to(backButton, 2, {_alpha:0});
backButton.enabled = false;
infoButton.enabled = false;
};
backButton.onRelease = function () {
_root.scene = "hub";
_root.cover.play();
};
arteryFadeIn = function () {
if (heartTransplant) {
gs.TweenFilterLite.to(_root.scene5.artery, 3, {_alpha:100});
gs.TweenFilterLite.to(_root.scene7.artery1, 3, {_alpha:100});
}
if (brainTransplant && (heartTransplant)) {
gs.TweenFilterLite.to(_root.scene7.artery2, 3, {_alpha:100});
gs.TweenFilterLite.to(_root.scene7.vien2, 3, {_alpha:100});
if (scene == "scene7") {
gameOverStart();
} else {
_root.scene = "scene7";
_root.cover.play();
var counter = 0;
this.createEmptyMovieClip("pauser", this.getNextHighestDepth());
pauser.onEnterFrame = function () {
counter++;
if (counter == 100) {
gameOverStart();
delete this.onEnterFrame;
}
};
}
}
};
gameOverStart = function () {
clown.start(0, 999);
gs.TweenFilterLite.to(clownholder, 8, {volume:70});
_root.scene7.reflection.play();
fadeDownInventory();
};
onEnterFrame = function () {
inventoryClips._x = _xmouse;
inventoryClips._y = _ymouse;
};
Symbol 1164 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 40;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 1165 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e;
var _twa, _d, _colorParts, _ts, _dead, _oc, _oca, _act, _dl, _ti, _os, _osa, _snd, _color, __get__colorProxy;
function TweenLite (t, d, v, dl, oc, oca, ao) {
var _local2 = this;
var _local13 = false;
if (((v.overwrite != false) && (ao != false)) && (t != undefined)) {
var _local4 = _all.slice();
var _local3 = _local4.length - 1;
while (_local3 >= 0) {
if ((_local4[_local3]._etg == t) && (!_local4[_local3]._dead)) {
if (!_local13) {
this=_local4[_local3];//parameter overwritten
_local2 = _local4[_local3];
_local13 = true;
} else {
removeTween(_local4[_local3]);
}
}
_local3--;
}
}
_local2._dead = false;
_local2._tg = (_local2._etg = t);
_local2._d = d;
_local2._v = v;
_local2._oc = v.onComplete || (oc);
_local2._oca = v.onCompleteParams || (oca);
_local2._os = v.onStart;
_local2._osa = v.onStartParams;
_local2._dl = (v.delay || (dl)) || 0;
if (_local2._dl == 0) {
_local2._ts = getTimer();
if (_local2._os != undefined) {
_local2._os.apply(null, _local2._osa);
}
}
if (_local2._v.ease == undefined) {
_local2._v.ease = easeOut;
} else if (typeof(_local2._v.ease) != "function") {
trace(("ERROR: You cannot use '" + _local2._v.ease) + "' for the TweenLite ease property. Only functions are accepted.");
}
_local2._twa = [];
if (_local2._tg instanceof Array) {
var _local5 = [];
for (var _local29 in _local2._v) {
if (_local2._v[_local29] instanceof Array) {
_local5 = _local2._v[_local29];
break;
}
}
var _local27 = _local5.length;
var _local3 = 0;
while (_local3 < _local27) {
if ((_local2._tg[_local3] != _local5[_local3]) && (_local2._tg[_local3] != undefined)) {
_local2._twa.push({o:_local2._tg, p:_local3.toString(), s:_local2._tg[_local3], c:_local5[_local3] - _local2._tg[_local3], e:_local2._v.ease});
}
_local3++;
}
} else {
for (var _local29 in _local2._v) {
if ((_local29 == "volume") && (typeof(_local2._tg) == "movieclip")) {
_local2._snd = new Sound(_local2._tg);
var _local9 = new gs.TweenLite(_local2, d, {volumeProxy:_local2._v[_local29], ease:easeNone}, dl, null, null, false);
_local9._etg = _local2._tg;
} else if ((_local29.toLowerCase() == "mccolor") && (typeof(_local2._tg) == "movieclip")) {
_local2._color = new Color(_local2._tg);
_local2._colorParts = _local2._color.getTransform();
var _local15 = _local2._colorParts;
if ((_local2._v[_local29] == null) || (_local2._v[_local29] == "")) {
var _local10 = {rb:0, gb:0, bb:0, ra:100, ga:100, ba:100, ease:_local2._v.ease};
} else {
var _local10 = {rb:_local2._v[_local29] >> 16, gb:(_local2._v[_local29] >> 8) & 255, bb:_local2._v[_local29] & 255, ra:0, ga:0, ba:0, ease:_local2._v.ease};
}
var _local11 = new gs.TweenLite(_local15, d, _local10, dl, null, null, false);
var _local12 = new gs.TweenLite(_local2, d, {colorProxy:1}, dl, null, null, false);
_local11._etg = (_local12._etg = _local2._tg);
} else if ((!isNaN(_local2._v[_local29])) && (_local29 != "delay")) {
_local2._twa.push({o:_local2._tg, p:_local29, s:t[_local29], c:_local2._v[_local29] - t[_local29], e:_local2._v.ease});
}
}
}
_local2._ti = getTimer();
if (!_local13) {
_all.push(_local2);
if (_e._visible != false) {
initEmptyMC();
}
_e.onEnterFrame = executeAll;
}
}
static function to(t, d, v, dl, oc, oca, ao) {
return(new gs.TweenLite(t, d, v, dl, oc, oca, ao));
}
static function from(t, d, v, dl, oc, oca, ao) {
var _local1 = new gs.TweenLite(t, d, v, dl, oc, oca, ao);
_local1.flipStartAndEnd();
return(_local1);
}
function flipStartAndEnd(b) {
var _local4 = act;
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
if (!_local4) {
_local2.o[_local2.p] = _local2.e(0, _local2.s, _local2.c, _d);
}
_local3++;
}
if (b != true) {
_local3 = _all.length - 1;
while (_local3 >= 0) {
if ((_all[_local3]._tg == this) || ((_colorParts != undefined) && (_all[_local3]._tg == _colorParts))) {
_all[_local3].flipStartAndEnd(true);
if (_all[_local3]._tg == _colorParts) {
colorProxy = (1);
}
}
_local3--;
}
}
if (_local4) {
render();
}
}
static function delayedCall(dl, oc, oca) {
return(new gs.TweenLite(null, null, null, dl, oc, oca));
}
function render() {
var _local4 = (getTimer() - _ts) / 1000;
if (_local4 > _d) {
_local4 = _d;
}
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.o[_local2.p] = _local2.e(_local4, _local2.s, _local2.c, _d);
_local3++;
}
if (_local4 >= _d) {
_dead = true;
if (_oc) {
_oc.apply(null, _oca);
}
removeTween(this);
}
}
static function removeTween(t) {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (_all[_local1] == t) {
killTweenAt(_local1);
break;
}
_local1--;
}
}
static function killDelayedCallsTo(f) {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (((_all[_local1]._oc == f) && (_all[_local1]._tg == null)) || (_all[_local1]._tg == f)) {
killTweenAt(_local1);
}
_local1--;
}
}
static function killTweensOf(tg) {
if (typeof(tg) == "function") {
killDelayedCallsTo(tg);
} else {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (_all[_local1]._etg == tg) {
killTweenAt(_local1);
}
_local1--;
}
}
}
static function killTweenAt(i) {
delete _all[i];
_all.splice(i, 1);
if (_all.length == 0) {
_e.onEnterFrame = null;
}
}
static function executeAll() {
var _local2 = _all.slice();
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2[_local1].act) {
_local2[_local1].render();
}
_local1++;
}
}
static function initEmptyMC() {
if (!_root.tweenLite_mc) {
var _local2 = _root.getNextHighestDepth();
if (!_local2) {
_local2 = 9999;
}
_e = _root.createEmptyMovieClip("tweenLite_mc", _local2);
_e.swapDepths(-1);
} else {
_e = _root.tweenLite_mc;
}
_e._visible = false;
return(_e);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
function get act() {
if (_act) {
return(true);
}
if (((getTimer() - _ti) / 1000) > _dl) {
_act = true;
_ts = getTimer();
if (_os != undefined) {
_os.apply(null, _osa);
}
return(true);
}
return(false);
}
function set volumeProxy(n) {
_snd.setVolume(n);
//return(volumeProxy);
}
function get volumeProxy() {
return(_snd.getVolume());
}
function set colorProxy(n) {
_color.setTransform(_colorParts);
//return(__get__colorProxy());
}
static var _all = new Array();
static var deleteFor = killTweensOf;
}
Symbol 1166 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var _colorParts, _etg, _mc, _clrsa, _matrix, _filters, _f, _endMatrix, _v, _clrMtxTw, _d, _dl, _oc, _oca, _twa, __get__act, _ts, _dead;
function TweenFilterLite (mc, d, v, dl, oc, oca, ao) {
super(mc, d, v, dl, oc, oca, false);
if (((ao != false) && (v.overwrite != false)) && (mc != undefined)) {
var _local4 = gs.TweenLite._all.slice();
var _local3 = _local4.length - 1;
while (_local3 >= 0) {
if (((((_local4[_local3]._etg == mc) && (_local4[_local3] != this)) && (_local4[_local3]._tg != this)) && (_local4[_local3]._tg != _colorParts)) && (!_local4[_local3]._dead)) {
gs.TweenLite.removeTween(_local4[_local3]);
}
_local3--;
}
}
_etg = mc;
_mc = mc;
_clrsa = [];
_matrix = _idMatrix.slice();
_filters = mc.filters;
if ((v.quality == undefined) || (isNaN(v.quality))) {
v.quality = 2;
}
switch (v.type.toLowerCase()) {
case "blur" :
setFilter(flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, v.quality));
break;
case "glow" :
setFilter(flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength"], new flash.filters.GlowFilter(16777215, 0, 0, 0, 1, v.quality));
break;
case "colormatrix" :
case "color" :
case "colormatrixfilter" :
case "colorize" :
setFilter(flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_matrix = _f.matrix;
if (v.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _v.brightness);
_endMatrix = setContrast(_endMatrix, _v.contrast);
_endMatrix = setHue(_endMatrix, _v.hue);
_endMatrix = setSaturation(_endMatrix, _v.saturation);
_endMatrix = setThreshold(_endMatrix, _v.threshold);
if (!isNaN(_v.colorize)) {
_endMatrix = colorize(_endMatrix, _v.colorize, _v.amount);
} else if (!isNaN(_v.color)) {
_endMatrix = colorize(_endMatrix, _v.color, _v.amount);
}
_clrMtxTw = new gs.TweenLite(_matrix, _d, {endMatrix:_endMatrix, ease:v.ease}, _dl, _oc, _oca, false);
_clrMtxTw._etg = _mc;
break;
case "shadow" :
case "dropshadow" :
setFilter(flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, v.quality));
break;
case "bevel" :
setFilter(flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, v.quality));
}
}
function setFilter(filterType_obj, properties_array, default_obj) {
var _local19 = false;
var _local4 = 0;
while (_local4 < _filters.length) {
if (_filters[_local4] instanceof filterType_obj) {
_f = _filters[_local4];
_local19 = true;
break;
}
_local4++;
}
if (!_local19) {
_filters.push(default_obj);
_f = _filters[_filters.length - 1];
}
var _local21 = _twa.length;
_local4 = _twa.length - 1;
while (_local4 >= 0) {
var _local9 = _twa[_local4].p.toLowerCase();
var _local11 = 0;
while (_local11 < properties_array.length) {
if (_local9 == properties_array[_local11].toLowerCase()) {
var _local2 = properties_array[_local11];
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
var _local3 = HEXtoRGB(_f[_local2]);
var _local5 = HEXtoRGB(_v[_twa[_local4].p]);
_clrsa.push({p:_local2, e:_v.ease, sr:_local3.rb, cr:_local5.rb - _local3.rb, sg:_local3.gb, cg:_local5.gb - _local3.gb, sb:_local3.bb, cb:_local5.bb - _local3.bb});
_twa.splice(_local4, 1);
} else if (_local2 == "quality") {
_f.quality = _v[_twa[_local4].p];
} else {
_twa[_local4] = {o:_f, p:_local2, s:_f[_local2], c:_v[_twa[_local4].p] - _f[_local2], e:_v.ease};
}
break;
}
_local11++;
}
_local4--;
}
}
static function to(mc, d, v, dl, oc, oca, ao) {
return(new gs.TweenFilterLite(mc, d, v, dl, oc, oca, ao));
}
static function from(mc, d, v, dl, oc, oca, ao) {
var _local1 = new gs.TweenFilterLite(mc, d, v, dl, oc, oca, ao);
_local1.flipStartAndEnd();
return(_local1);
}
function flipStartAndEnd() {
var _local7 = __get__act();
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
if (!_local7) {
_local2.o[_local2.p] = _local2.e(0, _local2.s, _local2.c, _d);
}
_local3++;
}
_local3 = 0;
while (_local3 < _clrsa.length) {
var _local2 = _clrsa[_local3];
_local2.sr = _local2.sr + _local2.cr;
_local2.cr = _local2.cr * -1;
_local2.sg = _local2.sg + _local2.cg;
_local2.cg = _local2.cg * -1;
_local2.sb = _local2.sb + _local2.cb;
_local2.cb = _local2.cb * -1;
if (!_local7) {
var _local5 = _local2.e(0, _local2.sr, _local2.cr, _d);
var _local6 = _local2.e(0, _local2.sg, _local2.cg, _d);
var _local4 = _local2.e(0, _local2.sb, _local2.cb, _d);
_f[_local2.p] = ((_local5 << 16) | (_local6 << 8)) | _local4;
}
_local3++;
}
_clrMtxTw.flipStartAndEnd();
if (_local7) {
render();
} else {
if (_endMatrix) {
_f.matrix = _matrix;
}
_mc.filters = _filters;
}
}
function render() {
var _local4 = (getTimer() - _ts) / 1000;
if (_local4 > _d) {
_local4 = _d;
}
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.o[_local2.p] = _local2.e(_local4, _local2.s, _local2.c, _d);
_local3++;
}
_local3 = 0;
while (_local3 < _clrsa.length) {
var _local2 = _clrsa[_local3];
var _local6 = _local2.e(_local4, _local2.sr, _local2.cr, _d);
var _local7 = _local2.e(_local4, _local2.sg, _local2.cg, _d);
var _local5 = _local2.e(_local4, _local2.sb, _local2.cb, _d);
_f[_local2.p] = ((_local6 << 16) | (_local7 << 8)) | _local5;
_local3++;
}
if (_endMatrix) {
_f.matrix = _matrix;
}
_mc.filters = _filters;
if (_local4 >= _d) {
_dead = true;
if (_oc != undefined) {
_oc.apply(null, _oca);
}
if (_clrMtxTw) {
gs.TweenLite.removeTween(_clrMtxTw);
}
gs.TweenLite.removeTween(this);
}
}
function HEXtoRGB(n) {
return({rb:n >> 16, gb:(n >> 8) & 255, bb:n & 255});
}
static function colorize(m, color, amount) {
if ((color == undefined) || (isNaN(color))) {
return(m);
}
if (amount == undefined) {
amount = 1;
}
var _local3 = ((color >> 16) & 255) / 255;
var _local6 = ((color >> 8) & 255) / 255;
var _local2 = (color & 255) / 255;
var _local5 = 1 - amount;
var _local7 = [_local5 + ((amount * _local3) * _lumR), (amount * _local3) * _lumG, (amount * _local3) * _lumB, 0, 0, (amount * _local6) * _lumR, _local5 + ((amount * _local6) * _lumG), (amount * _local6) * _lumB, 0, 0, (amount * _local2) * _lumR, (amount * _local2) * _lumG, _local5 + ((amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, m));
}
static function setThreshold(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function setHue(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = n * (Math.PI/180);
var _local1 = Math.cos(n);
var _local2 = Math.sin(n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, m));
}
static function setBrightness(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = (n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m));
}
static function setSaturation(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
var _local4 = 1 - n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + n, _local5, _local2, 0, 0, _local3, _local5 + n, _local2, 0, 0, _local3, _local5, _local2 + n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, m));
}
static function setContrast(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = n + 0.01;
var _local2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function applyMatrix(m, m2) {
if ((((m == undefined) || (!(m instanceof Array))) || (m2 == undefined)) || (!(m2 instanceof Array))) {
return(m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6 = 0;
while (_local6 < 4) {
var _local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = ((((m[_local2] * m2[_local1]) + (m[_local2 + 1] * m2[_local1 + 5])) + (m[_local2 + 2] * m2[_local1 + 10])) + (m[_local2 + 3] * m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 10
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 25
stop();
_parent.nextFrame();
Symbol 51 MovieClip Frame 1
hotSpot._alpha = 0;
hotSpot._visible = false;
stop();
Symbol 51 MovieClip Frame 25
hotSpot._alpha = 5;
hotSpot._visible = true;
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 87 Button
on (release) {
getURL ("http://www.robotjamgames.com", "_blank");
}
Symbol 90 Button
on (release) {
getURL ("http://www.mousebreaker.com/games/synapsiswalkthrough/play.php", "_blank");
}
Symbol 100 MovieClip Frame 1
this._visible = false;
robotjam.onPress = function () {
getURL ("http://www.robotjam.com", "_blank");
};
closeBut.onPress = function () {
this._parent._visible = false;
};
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 10
hotSpot._alpha = 1;
hotSpot.onRollOver = function () {
if (_root.itemSelected == "roboteye") {
this.enabled = false;
_root.inventoryClips.eye.play();
_root.itemHeld = 6;
_root.itemSelected = "roboteyelive";
}
};
hotSpot.useHandCursor = false;
Symbol 131 MovieClip Frame 34
gotoAndPlay ("flicker");
Symbol 135 MovieClip Frame 1
stop();
hotSpot._visible = false;
Symbol 135 MovieClip Frame 17
hotSpot._alpha = 0;
hotSpot._visible = true;
stop();
Symbol 162 MovieClip Frame 1
stop();
hotSpot._alpha = 1;
hotSpot.onRelease = function () {
if (_root.itemSelected == "cog") {
Mouse.show();
_root.cogFitted = true;
if (_root.generatorRunning) {
this._parent._parent.lightbeam1.gotoAndPlay("flicker");
this._parent._parent.lightbeam2.gotoAndPlay("flicker");
this._parent._parent.robot.play();
this._parent._parent.treadmill.play();
gotoAndPlay (2);
} else {
gotoAndStop (2);
}
this.enabled = false;
_root.holding = false;
_root.inventoryClips._visible = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 162 MovieClip Frame 5
gotoAndPlay (2);
Symbol 239 MovieClip Frame 1
var robotCount = 0;
robotEye.stop();
Symbol 239 MovieClip Frame 2
robotEye.play();
Symbol 239 MovieClip Frame 17
hotSpot.onRelease = function () {
trace(_root.itemSelected);
if (_root.itemSelected == "roboteyelive") {
Mouse.show();
this._parent._parent.eyebeam.play();
this._visible = false;
this.enabled = false;
_root.holding = false;
_root.inventoryClips._visible = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 239 MovieClip Frame 53
gotoAndPlay ("loop");
robotCount++;
if (robotCount == 5) {
_root.befriend.start(0, 1);
_parent.item5.play();
}
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 10
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 27
stop();
libDoor.onRelease = function () {
_root.scene = "scene6";
_root.cover.play();
_root.pauseAct1();
_root.initAct6();
};
libDoor.onRollOver = function () {
this.gotoAndPlay("in");
};
libDoor.onRollOut = function () {
this.gotoAndPlay("out");
};
Symbol 269 MovieClip Frame 1
hotSpot._alpha = 0;
hotSpot.onRelease = function () {
if (_root.itemSelected == "doorkey") {
door.play();
} else {
_root.doorlock.start(0, 1);
}
};
Symbol 270 MovieClip Frame 1
hotSpot._alpha = 0;
hotSpot.onRelease = function () {
if (_root.petrolFitted && (_root.sparkFitted)) {
_root.generatorRunning = true;
this._parent._parent.cogs.play();
_root.genFadeIn();
if (_root.cogFitted) {
this._parent._parent.lightbeam1.gotoAndPlay("flicker");
this._parent._parent.lightbeam2.gotoAndPlay("flicker");
this._parent._parent.robot.play();
this._parent._parent.treadmill.play();
this._parent._parent.mastercog.play();
}
} else {
_root.doorlock.start(0, 1);
}
};
Symbol 288 MovieClip Frame 1
stop();
hotSpot._alpha = 1;
hotSpot.onRelease = function () {
if (_root.itemSelected == "jerryCan") {
Mouse.show();
_root.petrolFitted = true;
play();
this.enabled = false;
_root.holding = false;
_root.inventoryClips._visible = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 288 MovieClip Frame 92
stop();
Symbol 306 MovieClip Frame 1
stop();
hotSpot._alpha = 1;
hotSpot.onRelease = function () {
if (_root.itemSelected == "spanner") {
Mouse.show();
play();
this.enabled = false;
_root.holding = false;
_root.inventoryClips._visible = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 306 MovieClip Frame 41
stop();
hotSpot._alpha = 1;
hotSpot.onRelease = function () {
if (_root.itemSelected == "sparkplug") {
Mouse.show();
_root.sparkFitted = true;
gotoAndStop ("end");
this.enabled = false;
_root.holding = false;
_root.inventoryClips._visible = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 50
stop();
_parent.door.door.play();
Symbol 309 MovieClip Frame 82
stop();
Symbol 312 MovieClip Frame 1
stop();
this._visible = false;
Symbol 312 MovieClip Frame 2
play();
this._visible = true;
Symbol 312 MovieClip Frame 123
_parent.doorlight.gotoAndPlay(2);
trace(_parent.doorlight);
Symbol 312 MovieClip Frame 184
stop();
Symbol 315 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 318 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 321 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 324 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 327 MovieClip Frame 39
stop();
Symbol 439 MovieClip Frame 1
stop();
var smalldrag = false;
var bigdrag = false;
smallhand._rotation = 230;
bighand._rotation = 320;
smallhand.onPress = function () {
smalldrag = true;
};
smallhand.onRelease = function () {
smalldrag = false;
};
smallhand.onReleaseOutside = function () {
smalldrag = false;
};
bighand.onPress = function () {
bigdrag = true;
};
bighand.onRelease = function () {
bigdrag = false;
};
bighand.onReleaseOutside = function () {
bigdrag = false;
};
var smallDone = false;
var bigDone = false;
var clockStop = false;
var hours = 0;
var minutes = 0;
var secondCounter = 0;
onEnterFrame = function () {
secondCounter++;
if ((secondCounter % 25) == 0) {
secondhand._rotation = secondhand._rotation + 6;
}
if ((smallhand._rotation >= -20) && (smallhand._rotation <= 20)) {
smallDone = true;
} else {
smallDone = false;
}
if (Math.abs(bighand._rotation) >= 165) {
bigDone = true;
} else {
bigDone = false;
}
var _local3 = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
if (bigdrag) {
bighand._rotation = _local3 * 57.2957795130823;
}
if (smalldrag) {
smallhand._rotation = _local3 * 57.2957795130823;
}
if ((smallDone && (bigDone)) && (!clockStop)) {
clockStop = true;
_root.clockchime.start(0, 1);
_root.clocksound.stop();
_root.scene2.item11.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
Symbol 442 MovieClip Frame 1
hotSpot._alpha = 1;
hotSpot._visible = true;
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 10
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 29
stop();
brainDoor.onRelease = function () {
_root.scene = "scene8";
_root.cover.play();
_root.pauseAct2();
_root.initAct8();
};
brainDoor.onRollOver = function () {
this.gotoAndPlay("in");
};
brainDoor.onRollOut = function () {
this.gotoAndPlay("out");
};
Symbol 483 MovieClip Frame 1
hotSpot._alpha = 0;
stop();
hotSpot.onRollOver = function () {
play();
this.enabled = false;
};
hotSpot.useHandCursor = false;
Symbol 483 MovieClip Frame 37
stop();
_root.doorCorners++;
_root.doorChecker();
Symbol 483 MovieClip Frame 50
stop();
Symbol 486 MovieClip Frame 1
stop();
hotSpot._alpha = 1;
this._visible = false;
Symbol 486 MovieClip Frame 11
hotSpot._alpha = 1;
this._visible = true;
stop();
Symbol 488 MovieClip Frame 1
hotSpot._alpha = 1;
hotSpot._visible = false;
stop();
Symbol 488 MovieClip Frame 11
hotSpot._alpha = 1;
hotSpot._visible = true;
stop();
Symbol 494 MovieClip Frame 1
hotSpot._alpha = 1;
stop();
hotSpot.onRelease = function () {
if (_root.itemSelected == "razor") {
Mouse.show();
play();
this.enabled = false;
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 494 MovieClip Frame 27
_root.scene2.item12.play();
Symbol 494 MovieClip Frame 45
stop();
Symbol 497 MovieClip Frame 1
this._visible = false;
Symbol 497 MovieClip Frame 2
this._visible = true;
Symbol 497 MovieClip Frame 107
stop();
_root.enableCorners();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 80
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 80
stop();
Symbol 540 MovieClip Frame 1
hotSpot._alpha = 0;
stop();
hotSpot.onRelease = function () {
if (_root.itemSelected == "screwdriver") {
play();
this.enabled = false;
Mouse.show();
_root.scene2.item14.play();
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
Symbol 540 MovieClip Frame 2
_root.radiotune.stop();
radio.tuner.play();
radio.tunerarm.play();
Symbol 540 MovieClip Frame 177
stop();
_root.scene2.lightcrack.play();
Symbol 552 MovieClip Frame 1
hotSpot._alpha = 1;
hotSpot._visible = true;
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 59
stop();
Symbol 583 MovieClip Frame 106
_parent.play();
_parent.trainOpen = false;
Symbol 588 MovieClip Frame 1
this._visible = false;
item21._visible = false;
var counter = 1;
var seconds = 50;
this._parent.trainWords1.timeToNext.text = "NEXT TRAIN IN: " + seconds;
this._parent.trainWords2.timeToNext.text = "NEXT TRAIN IN: " + seconds;
this._parent.trainWords3.timeToNext.text = "NEXT TRAIN IN: " + seconds;
stop();
onEnterFrame = function () {
if (_root.scene3.trainActive) {
counter++;
}
if ((counter % 100) == 0) {
trace(seconds);
seconds = seconds - 10;
this._parent.trainWords1.timeToNext.text = "NEXT TRAIN IN: " + seconds;
this._parent.trainWords2.timeToNext.text = "NEXT TRAIN IN: " + seconds;
this._parent.trainWords3.timeToNext.text = "NEXT TRAIN IN: " + seconds;
}
if (counter == 500) {
this._parent.trainWords1.timeToNext.text = "TRAIN ARRIVING NOW";
this._parent.trainWords2.timeToNext.text = "TRAIN ARRIVING NOW";
this._parent.trainWords3.timeToNext.text = "TRAIN ARRIVING NOW";
play();
delete onEnterFrame;
}
};
Symbol 588 MovieClip Frame 3
this._visible = true;
Symbol 588 MovieClip Frame 50
var trainOpen = false;
if (!_root.phoneGot) {
item21._visible = true;
}
doorButton.onRelease = function () {
door.play();
trainOpen = true;
};
doorButton._alpha = 1;
stop();
var doorCounter = 0;
var doorTriggered = false;
onEnterFrame = function () {
if (_root.scene3.trainActive) {
doorCounter++;
}
if ((doorCounter >= 300) && (!trainOpen)) {
play();
delete onEnterFrame;
} else if (((doorCounter >= 300) && (trainOpen)) && (!doorTriggered)) {
doorTriggered = true;
door.play();
}
};
Symbol 588 MovieClip Frame 75
item21._visible = false;
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 48
stop();
trapDoor.onRelease = function () {
_root.scene = "scene5";
_root.cover.play();
_root.pauseAct3();
_root.initAct5();
};
Symbol 716 MovieClip Frame 1
this._visible = false;
stop();
Symbol 716 MovieClip Frame 131
this._visible = true;
Symbol 716 MovieClip Frame 163
_root.mobilePhone.manPhone.play();
Symbol 716 MovieClip Frame 527
_root.scene3.hatch.play();
Symbol 725 MovieClip Frame 1
stop();
this._visible = false;
Symbol 725 MovieClip Frame 2
this._visible = true;
Symbol 725 MovieClip Frame 54
hotSpot._alpha = 1;
stop();
hotSpot.onRelease = function () {
if (_root.itemSelected == "crucifix") {
Mouse.show();
_root.waterFont.start();
play();
this.enabled = false;
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 725 MovieClip Frame 75
stop();
_root.scene4.fire.play();
Symbol 728 MovieClip Frame 1
stop();
flame.gotoAndStop(Math.round(Math.random() * 20));
glow.gotoAndStop(Math.round(Math.random() * 20));
flame._visible = false;
glow.visible = false;
Symbol 728 MovieClip Frame 2
flame.play();
glow.play();
flame._visible = true;
glow.visible = true;
Symbol 728 MovieClip Frame 28
stop();
_root.nextFlameLight();
Symbol 729 MovieClip Frame 1
hotSpot._alpha = 0;
stop();
hotSpot.onRelease = function () {
if (_root.itemSelected == "candle") {
Mouse.show();
play();
this.enabled = false;
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 729 MovieClip Frame 13
stop();
_root.nextFlameLight();
Symbol 812 MovieClip Frame 1
stop();
Symbol 812 MovieClip Frame 23
stop();
hotSpot._alpha = 1;
hotSpot.onRelease = function () {
if (_root.itemSelected == "biblepage") {
Mouse.show();
play();
_root.heartPlay();
_root.flaming = true;
_root.flames.start(0, 999);
gs.TweenFilterLite.to(flames, 2, {volume:100});
_root.scene4.item31.gotoAndPlay(2);
this.enabled = false;
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
Symbol 812 MovieClip Frame 102
gotoAndPlay (86);
Symbol 813 MovieClip Frame 1
red._alpha = 100;
stop();
Symbol 813 MovieClip Frame 30
gotoAndPlay ("beat");
Symbol 814 MovieClip Frame 1
stop();
this._visible = false;
Symbol 814 MovieClip Frame 2
heart.play();
this._visible = true;
hotSpot._alpha = 0;
Symbol 814 MovieClip Frame 95
gotoAndPlay ("loop");
Symbol 816 MovieClip Frame 1
hotSpot._alpha = 0;
stop();
hotSpot.onRelease = function () {
if (_root.itemSelected == "heart") {
Mouse.show();
play();
_root.heartbeatPlay();
_root.arteryFadeIn();
this.enabled = false;
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
hotSpot.onRollOver = function () {
Mouse.show();
};
hotSpot.onRollOut = function () {
if (_root.holding == true) {
Mouse.hide();
}
};
hotSpot.onDragOut = function () {
if (_root.holding == true) {
Mouse.hide();
}
};
Symbol 816 MovieClip Frame 30
gotoAndPlay ("beat");
Symbol 886 MovieClip Frame 1
stop();
hotSpot._alpha = 1;
hotSpot.onRelease = function () {
play();
};
hotSpot.useHandCursor = false;
Symbol 886 MovieClip Frame 15
stop();
hotSpot._alpha = 1;
Symbol 887 MovieClip Frame 1
hotSpot1._alpha = 0;
hotSpot1.onRelease = function () {
_root.doorlock.start(0, 1);
};
hotSpot2._alpha = 0;
hotSpot2.onRelease = function () {
_root.doorlock.start(0, 1);
};
hotSpot1.useHandCursor = false;
hotSpot2.useHandCursor = false;
Symbol 903 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 50));
Symbol 903 MovieClip Frame 96
gotoAndPlay (2);
Symbol 914 MovieClip Frame 14
gotoAndPlay ("loop");
Symbol 941 MovieClip Frame 1
stop();
hotSpot.enabled = false;
hotSpot._alpha = 0;
Symbol 941 MovieClip Frame 10
hotSpot.enabled = true;
stop();
Symbol 941 MovieClip Frame 11
hotSpot.enabled = false;
stop();
Symbol 942 MovieClip Frame 1
stop();
hotSpot._alpha = 1;
flame.gotoAndStop(Math.round(Math.random() * 20));
glow.gotoAndStop(Math.round(Math.random() * 20));
Symbol 953 MovieClip Frame 1
stop();
Symbol 953 MovieClip Frame 184
stop();
_root.scene = "scene9";
_root.cover.play();
Symbol 958 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 50));
Symbol 958 MovieClip Frame 90
gotoAndPlay (2);
Symbol 961 MovieClip Frame 1
hotSpot._alpha = 0;
stop();
hotSpot.onRelease = function () {
if (_root.itemSelected == "brain") {
Mouse.show();
play();
_root.brainTransplant = true;
_root.arteryFadeIn();
this.enabled = false;
_root.inventoryClips._visible = false;
_root.holding = false;
_root.itemHeld = 0;
}
};
hotSpot.useHandCursor = false;
Symbol 961 MovieClip Frame 10
stop();
Symbol 982 MovieClip Frame 1
stop();
hotSpot._alpha = 0;
hotSpot.onRelease = function () {
play();
};
hotSpot.useHandCursor = false;
Symbol 982 MovieClip Frame 10
stop();
Symbol 1012 MovieClip Frame 1
stop();
hotSpot._alpha = 0;
hotSpot.enabled = false;
Symbol 1012 MovieClip Frame 28
hotSpot.enabled = true;
Symbol 1012 MovieClip Frame 71
gotoAndPlay ("loop");
Symbol 1015 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 47
gotoAndPlay ("loop");
Symbol 1018 MovieClip Frame 1
stop();
hotSpot._alpha = 0;
hotSpot.enabled = true;
hotSpot.onRelease = function () {
play();
this.enabled = false;
};
_root.link1 = false;
Symbol 1018 MovieClip Frame 58
stop();
hotSpot.enabled = true;
_root.link1 = true;
_root.linkTest();
Symbol 1018 MovieClip Frame 123
stop();
hotSpot.enabled = true;
_root.link1 = false;
Symbol 1019 MovieClip Frame 1
stop();
hotSpot._alpha = 0;
hotSpot.enabled = true;
hotSpot.onRelease = function () {
play();
this.enabled = false;
};
_root.link2 = false;
Symbol 1019 MovieClip Frame 62
stop();
hotSpot.enabled = true;
_root.link2 = false;
Symbol 1019 MovieClip Frame 117
stop();
hotSpot.enabled = true;
_root.link2 = true;
_root.linkTest();
Symbol 1020 MovieClip Frame 1
stop();
hotSpot._alpha = 0;
hotSpot.enabled = true;
hotSpot.onRelease = function () {
play();
this.enabled = false;
};
_root.link3 = false;
Symbol 1020 MovieClip Frame 58
stop();
hotSpot.enabled = true;
_root.link3 = false;
Symbol 1020 MovieClip Frame 121
stop();
hotSpot.enabled = true;
_root.link3 = false;
Symbol 1020 MovieClip Frame 179
stop();
hotSpot.enabled = true;
_root.link3 = true;
_root.linkTest();
Symbol 1021 MovieClip Frame 1
stop();
hotSpot._alpha = 0;
hotSpot.enabled = true;
hotSpot.onRelease = function () {
play();
this.enabled = false;
};
_root.link4 = false;
Symbol 1021 MovieClip Frame 80
stop();
hotSpot.enabled = true;
_root.link4 = false;
_root.linkTest();
Symbol 1021 MovieClip Frame 140
stop();
hotSpot.enabled = true;
_root.link4 = false;
Symbol 1021 MovieClip Frame 194
stop();
hotSpot.enabled = true;
_root.link4 = true;
_root.linkTest();
Symbol 1021 MovieClip Frame 254
stop();
hotSpot.enabled = true;
_root.link4 = false;
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1027 MovieClip Frame 10
stop();
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 10
stop();
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 10
stop();
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1036 MovieClip Frame 10
stop();
Symbol 1093 MovieClip Frame 1
var i = 1;
while (i <= 7) {
this["act" + i].i = i;
this["act" + i].onRelease = function () {
_root.scene = "scene" + this.i;
_root.cover.play();
};
this["act" + i].onRollOver = function () {
this.gotoAndPlay("in");
};
this["act" + i].onRollOut = function () {
this.gotoAndPlay("out");
};
this["act" + i].onReleaseOutside = function () {
this.gotoAndPlay("out");
};
i++;
}
Symbol 1122 MovieClip Frame 1
stop();
Symbol 1122 MovieClip Frame 2
actAnim.play();
actAnim.actClip.actName.text = "the event";
Symbol 1122 MovieClip Frame 50
actAnim.play();
actAnim.actClip.actName.text = "the occasion";
Symbol 1122 MovieClip Frame 99
actAnim.play();
actAnim.actClip.actName.text = "the consequence";
Symbol 1122 MovieClip Frame 148
actAnim.play();
actAnim.actClip.actName.text = "the outcome";
Symbol 1122 MovieClip Frame 293
actAnim.actClip.actName.text = "Hospital";
actAnim.gotoAndPlay(2);
Symbol 1122 MovieClip Frame 521
stop();
Symbol 1134 MovieClip Frame 86
plunger.stop();
Symbol 1134 MovieClip Frame 257
stop();
hitbox.onPress = function () {
play();
};
Symbol 1134 MovieClip Frame 316
stop();
hitbox.onPress = function () {
play();
_root.heartStop();
};
Symbol 1134 MovieClip Frame 350
stop();
this._visible = false;
_root.scene = "hub";
_root.cover.play();
_root.fadeUpInventory();
Symbol 1135 MovieClip Frame 19
stop();
Symbol 1135 MovieClip Frame 41
_root.clearScenes;
_root.newSceneVisible(_root.scene);
Symbol 1139 MovieClip Frame 1
this._visible = false;
closeBut.onRelease = function () {
this._parent._visible = false;
_root.overlayDroper();
};
cover.useHandCursor = false;
Symbol 1145 MovieClip Frame 1
stop();
Symbol 1149 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1149 MovieClip Frame 2
this._visible = true;
Symbol 1149 MovieClip Frame 85
stop();
Symbol 1150 MovieClip Frame 1
phoneScreen.text = "";
i = 0;
while (i <= 10) {
this["key" + i]._alpha = 1;
this["key" + i].i = i;
this["key" + i].onPress = function () {
_root.phonebeepsound.start(0, 1);
phoneScreen.text = phoneScreen.text + this.i;
};
i++;
}
phoneSend._alpha = 1;
key0.onPress = function () {
_root.phonebeepsound.start(0, 1);
phoneScreen.text = phoneScreen.text + 0;
};
cancel.onPress = function () {
_root.phonebeepsound.start(0, 1);
phoneScreen.text = "";
};
phoneSend.onRelease = function () {
if ((phoneScreen.text == _root.phoneNumber) && (!_root.phoneCalled)) {
_root.phoneCalled = true;
_root.scene = "scene3";
_root.cover.play();
dialText.play();
_root.scene3.phonebooth.man.play();
} else {
failed.play();
phoneScreen.text = "";
}
};
Symbol 1154 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1154 MovieClip Frame 2
this._visible = true;
this._parent.mobileClip.dialText._visible = false;
Symbol 1155 MovieClip Frame 1
this._visible = false;
closeBut.onRelease = function () {
this._parent._visible = false;
_root.overlayDroper();
};
cover.useHandCursor = false;
Symbol 1162 MovieClip Frame 1
this._visible = false;
closeBut.onRelease = function () {
this._parent._visible = false;
_root.overlayDroper();
};
cover.useHandCursor = false;