Frame 1
function lowQuality() {
_quality = "LOW";
Mouse.hide();
}
function medQuality() {
_quality = "MEDIUM";
Mouse.hide();
}
function highQuality() {
_quality = "HIGH";
Mouse.hide();
}
function autoQuality() {
_quality = "autohigh";
Mouse.hide();
}
function mainMenu() {
_global.savepos();
gotoAndStop ("mainmenu");
}
function rusty() {
getURL ("www.rustygames.com", _blank);
}
NewgroundsAPI.connectMovie(2973);
_global.gamestarted = false;
_global.savepos = function () {
_global.posx = _root.player._x;
_global.posy = _root.player._y;
};
shortcutListener = new Object();
shortcutListener.onKeyDown = function () {
if (Key.getCode() == 32) {
if ((i++) >= 3) {
i = 0;
}
_global.mouse = ["Pick Up ", "Look at ", "Talk to ", "none"][i];
} else if (Key.isDown(90)) {
_global.mouse = "Pick Up ";
} else if (Key.isDown(88)) {
_global.mouse = "Look at ";
} else if (Key.isDown(67)) {
_global.mouse = "Talk to ";
} else if (Key.isDown(86)) {
_global.mouse = "none";
} else if (Key.getCode() == 81) {
if ((i++) >= 2) {
i = 0;
}
_quality = ["HIGH", "MEDIUM", "LOW"][i];
}
};
bgloop = new Sound(this);
Key.addListener(shortcutListener);
_global.celldoor = (_global.controldoor = (_global.sanedoor = (_global.insaneguy = (_global.talking = (_global.guytalking = false)))));
_global.exitsignabovedoor = (_global.saneatdoor = (_global.beastatdoor = (_global.saneguard = (_global.beastroom = false))));
_global.chatposition1 = (_global.chatposition2 = (_global.chatposition3 = 1));
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var lowQuality = new ContextMenuItem("Low Quality", lowQuality);
var medQuality = new ContextMenuItem("Medium Quality", medQuality);
var highQuality = new ContextMenuItem("High Quality", highQuality);
var autoQuality = new ContextMenuItem("Auto Quality", autoQuality);
var mainMenu = new ContextMenuItem("Main Menu", mainMenu);
var rusty = new ContextMenuItem("Visit RustyGames.com", rusty);
myMenu.customItems.push(lowQuality, medQuality, highQuality, autoQuality, mainMenu, rusty);
_root.menu = myMenu;
stop();
Frame 2
Mouse.show();
stop();
Frame 3
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 1;
bgloop.stop();
bgloop.attachSound("fear.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = (_root.player._visible = (_root.aliengoop._visible = (_root.guardsblood._visible = false)));
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor._visible = false;
_root.razor._x = -32;
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb._visible = false;
_root.comb._x = -32;
_root.comb_inv._y = 430;
}
if (_global.flesh) {
_root.flesh_inv._y = 430;
_global.fabric = false;
_root.fabric_inv._y = 512;
}
if (_global.fabric) {
_root.fabric_inv._y = 430;
}
if (_global.soap) {
_root.soap._visible = false;
_root.soap._x = -32;
_root.soap_inv._y = 430;
_root.aliengoop._visible = true;
_root.aliengoop._y = 362.95;
_root.guardsblood._visible = true;
}
if (_global.celldoor) {
_root.flesh_inv._y = 512;
_root.jailbars._x = 1024;
_root.lockingmechanism._x = 1024;
_root.exit1._x = 654;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver_inv._y = 430;
}
if (_global.dirtyhand) {
_root.dirtyhand_inv._y = 430;
}
if (_global.soapyhand) {
_root.soapyhand_inv._y = 430;
}
if (_global.cleanhand) {
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign_inv._y = 430;
}
if (_global.matches) {
_root.matches_inv._y = 430;
}
if (_global.flamethrower) {
_root.flamethrower_inv._y = 430;
}
Instance of Symbol 359 MovieClip in Frame 3
onClipEvent (load) {
if (_global.celldoor) {
gotoAndStop ("dooropen");
}
this.cacheAsBitmap = true;
}
Instance of Symbol 364 MovieClip "aliengoop" in Frame 3
onClipEvent (load) {
if (_global.flesh || (_global.celldoor)) {
gotoAndStop ("notthere");
}
this.cacheAsBitmap = true;
}
Instance of Symbol 370 MovieClip "sink" in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 372 MovieClip "toilet" in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 380 MovieClip "bed" in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 391 MovieClip "player" in Frame 3
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speakingscene1");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = -_global.charsize;
} else {
_root.char._xscale = _global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
if (((_global.mouse == "Lick ") || (_global.mouse == "Drink from ")) || (_global.mouse == "Drink ")) {
_global.mouse = "Talk to ";
}
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Razor Blade";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Comb";
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.fabric_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Orange Fabric";
} else if (_root.flesh_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Burning Flesh";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
} else if (_root.comb.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Comb";
} else if (_root.razor.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Razor Blade";
} else if (_root.bottle.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_global.mouse == "Talk to ") {
_global.mouse = "Drink ";
} else {
_global.mouseoveritem = "Bottle";
}
} else if (_root.exit1.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "Leave Cell";
} else if (_root.sink.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_global.mouse == "Talk to ") {
_global.mouse = "Drink from ";
}
_global.mouseoveritem = "Sink";
} else if (_root.toilet.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_global.mouse == "Talk to ") {
_global.mouse = "Lick ";
}
_global.mouseoveritem = "Toilet";
} else if (_root.jumpsuit.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Extra Orange Jumpsuit";
} else if (_root.soap.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.bed.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bed";
} else if (_root.jailbars.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Jail Bars";
} else if (_root.lockingmechanism.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Locking Mechanism";
} else if (_root.aliengoop.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_global.flesh) {
_global.mouseoveritem = "Hole where burning flesh was";
} else {
_global.mouseoveritem = "Burning Flesh";
}
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.aliengoop.hitTest(_root._xmouse, _root._ymouse, true) != true) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
}
if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Bottle") {
addSound("anemptybottle.wav", "An empty bottle");
} else if (_global.mouseoveritem == "Toilet") {
addSound("mygrottytoilet.wav", "My grotty piss stained toilet");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Sink") {
addSound("myshittybrokensink.wav", "My shitty broken sink");
} else if (_global.mouseoveritem == "Bed") {
addSound("nothinglikeyourownbed.wav", "There's nothing like your own bed");
} else if (_global.mouseoveritem == "Extra Orange Jumpsuit") {
addSound("justanextraorange.wav", "It's just an extra orange jumpsuit");
} else if (_global.mouseoveritem == "Burning Flesh") {
addSound("whatthehellburningflesh.wav", "What the hell? A heap of burning flesh. It's not human...");
} else if (_global.mouseoveritem == "Jail Bars") {
addSound("asstudyasabrickhouse.wav", "Sturdy as a brick house");
} else if (_global.mouseoveritem == "Locking Mechanism") {
addSound("iwasnevergoodat.wav", "I was never good at picking locks...");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem == "Comb") {
if (_global.comb) {
addSound("alreadyhavethat.wav", "I already have that");
} else {
_global.action = "moving";
_global.targetx = 160;
_global.targety = 378;
_global.itemtograb = "comb";
_global.combo = "active";
}
} else if (_global.mouseoveritem == "Razor Blade") {
if (_global.razor) {
addSound("alreadyhavethat.wav", "I already have that");
} else {
_global.action = "moving";
_global.targetx = 160;
_global.targety = 378;
_global.itemtograb = "razor";
_global.combo = "active";
}
} else if (_global.mouseoveritem == "Soap") {
if (_global.soap) {
addSound("alreadyhavethat.wav", "I already have that");
} else {
_global.action = "moving";
_global.targetx = 195;
_global.targety = 295;
_global.itemtograb = "soap";
_global.combo = "active";
}
} else if (_global.mouseoveritem == "Bottle") {
addSound("itsempty.wav", "It's empty");
} else if ((((((_global.mouseoveritem == "Bed") || (_global.mouseoveritem == "Sink")) || (_global.mouseoveritem == "Toilet")) || (_global.mouseoveritem == "Table")) || (_global.mouseoveritem == "Jail Bars")) || (_global.mouseoveritem == "Locking Mechanism")) {
addSound("icantliftthat.wav", "I can't lift that");
} else if (_global.mouseoveritem == "Extra Orange Jumpsuit") {
addSound("ialreadyhaveone.wav", "I already have one, why would I need another?");
} else if (_global.mouseoveritem == "Burning Flesh") {
addSound("iainttouchingthat.wav", "I ain't touching that. That'll melt my hand off");
}
} else if (_level0.textmessage == "Drink Bottle") {
addSound("ionlywishbottleisempty.wav", "I only wish. The bottle is empty");
} else if (_level0.textmessage == "Clean Bloody Hand") {
_global.dirtyhand = false;
_global.soapyhand = true;
_root.dirtyhand_inv._y = 512;
_root.soapyhand_inv._y = 430;
} else if (_level0.textmessage == "Use Soapy Hand with Toilet") {
_global.targetx = 195;
_global.targety = 295;
_global.action = "moving";
_global.itemtograb = "cleanhand";
_global.combo = "active";
} else if (_global.mouse == "Cut up ") {
if (_global.mouseoveritem == "Extra Orange Jumpsuit") {
if ((_global.fabric || _global.celldoor) || _global.flesh) {
addSound("idontneedanymoreofthat.wav", "I don't need that any more of that");
} else {
_global.targetx = 607;
_global.targety = 322;
_global.action = "moving";
_global.itemtograb = "Orange Fabric";
_global.combo = "active";
}
} else if (_global.mouseoveritem == "Bed") {
addSound("youwantmetohackup.wav", "You want me to hack up my sleeping quarters?");
} else if (_global.mouseoveritem == "Soap") {
addSound("whatwouldyoulikemetocarve.wav", "What would you like me to carve? Perhaps Sir would like a Goose?");
} else if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_global.mouseoveritem == "Leave Cell") {
_global.action = "moving";
_global.itemtograb = "Leave1";
_global.targetx = 633;
_global.targety = 351;
} else if (_level0.textmessage == "Use Fabric with Burning Flesh") {
_global.targetx = 551;
_global.targety = 357;
_global.action = "moving";
_global.combo = "active";
_global.itemtograb = "flesh";
} else if (_level0.textmessage == "Use Burning Flesh with Locking Mechanism") {
_global.targetx = 633;
_global.targety = 351;
_global.action = "moving";
_global.combo = "active";
_global.itemtograb = "Open Door";
} else if ((_level0.textmessage == "Use Matches with deodorant") || (_level0.textmessage == "Use deodorant with Matches")) {
_global.flamethrower = true;
_global.matches = false;
_global.deodorant = false;
_root.matches_inv._y = -32;
_root.deodorant_inv._y = -32;
_root.flamethrower_inv._y = 430;
_global.mouse = "none";
_global.mouseoveritem = "";
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Comb with ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.flesh_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Burning Flesh with ";
_global.mouseoveritem = "";
} else if (_root.fabric_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Fabric with ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
} else if ((_global.action == "getrazor") || (_global.action == "getcomb")) {
_root.char.gotoAndStop("pickupt");
}
_root.char._yscale = 100 + ((_y - 267.2) / 6);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 397 MovieClip in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 409 MovieClip in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 3
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if (_global.mouse == "Pick Up ") {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if ((((_global.mouse == "Talk to ") || (_global.mouse == "Drink ")) || (_global.mouse == "Drink from ")) || (_global.mouse == "Lick ")) {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if (_global.mouse == "Pick Up ") {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if ((((_global.mouse == "Talk to ") || (_global.mouse == "Drink ")) || (_global.mouse == "Drink from ")) || (_global.mouse == "Lick ")) {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 4
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "razor") {
_global.action = "getrazor";
} else if (_global.itemtograb == "comb") {
_global.action = "getcomb";
} else if (_global.itemtograb == "soap") {
_global.savepos();
gotoAndPlay ("grabsoap");
} else if (_global.itemtograb == "Orange Fabric") {
_global.savepos();
gotoAndPlay ("getfabric");
} else if (_global.itemtograb == "flesh") {
_global.savepos();
gotoAndPlay ("getflesh");
} else if (_global.itemtograb == "cleanhand") {
_global.savepos();
gotoAndPlay ("washhand");
} else if (_global.itemtograb == "Open Door") {
_global.savepos();
gotoAndPlay ("unlockcell");
} else if (_global.itemtograb == "Leave1") {
_global.posx = 82;
_global.posy = 331;
gotoAndPlay (9);
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 5
gotoAndPlay (4);
Frame 7
if (_global.speakingtime < 0) {
gotoAndPlay (4);
_global.talking = false;
}
Frame 8
_global.speakingtime--;
gotoAndPlay (7);
Frame 9
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 2;
bgloop.stop();
bgloop.attachSound("demonveins.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = false;
_root.player._visible = false;
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
if (_global.insaneguy) {
_root.insaneprisoner._y = 512;
_root.IPrisoner._visible = false;
}
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb_inv._y = 430;
}
if (_global.soap) {
_root.soap_inv._y = 430;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver._visible = false;
_root.revolver._x = -32;
_root.revolver_inv._y = 430;
}
if (_global.dirtyhand) {
_root.dirtyhand_inv._y = 430;
}
if (_global.soapyhand) {
_root.soapyhand_inv._y = 430;
}
if (_global.cleanhand) {
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign_inv._y = 430;
}
if (_global.matches) {
_root.matches_inv._y = 430;
}
if (_global.flamethrower) {
_root.flamethrower_inv._y = 430;
}
Instance of Symbol 449 MovieClip in Frame 9
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 391 MovieClip "player" in Frame 9
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speaking2");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = _global.charsize;
} else {
_root.char._xscale = -_global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
if (_global.mouse == "Slap ") {
_global.mouse = "Pick Up ";
}
} else if (_root.exit2.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "To Cell";
} else if (_root.exit3.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "Go To Corridoor";
} else if (_root.revolver.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.baton.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Baton";
} else if (_root.guardID.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "ID Badge";
} else if (_root.radio.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Guard's Radio";
} else if (_root.insaneprisoner.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_global.mouse == "Pick Up ") {
_global.mouse = "Slap ";
}
_global.mouseoveritem = "Insane Prisoner";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Razor Blade";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Comb";
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
if (((!_root.revolver.hitTest(_root._xmouse, _root._ymouse, true)) && (!_root.guardID.hitTest(_root._xmouse, _root._ymouse, true))) && (!_root.radio.hitTest(_root._xmouse, _root._ymouse, true))) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
}
if (_global.mouseoveritem == "To Cell") {
_global.action = "moving";
_global.itemtograb = "Leave2";
_global.targetx = 97.6;
_global.targety = 326.6;
} else if (_global.mouseoveritem == "Go To Corridoor") {
_global.action = "moving";
_global.itemtograb = "Leave3";
_global.targetx = 427;
_global.targety = 192;
} else if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Revolver") {
addSound("droppedgun.wav", "It looks like the guard dropped his gun");
} else if (_global.mouseoveritem == "Guard's Radio") {
addSound("guardsradio.wav", "The guards radio");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Baton") {
addSound("nightstick.wav", "The guards nightstick");
} else if (_global.mouseoveritem == "ID Badge") {
addSound("guardsid.wav", "The guards ID badge. It doesn't look like he'll have any use for it now.");
} else if (_global.mouseoveritem == "Insane Prisoner") {
addSound("helooksinsane.wav", "He looks... well... insane");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem == "Baton") {
addSound("batondontneed.wav", "I don't need that. I'd rather havep the gun.");
} else if (_global.mouseoveritem == "ID Badge") {
addSound("doesntlooklike.wav", "He doesn't look anything like me... not now at least");
} else if (_global.mouseoveritem == "Guard's Radio") {
addSound("ithinkitsbroken.wav", "I think it's broken");
} else if (_global.mouseoveritem == "Revolver") {
if (_global.revolver) {
addSound("alreadyhavethat.wav", "I already have that");
} else {
_global.targetx = 195;
_global.targety = 330;
_global.action = "moving";
_global.combo = "active";
_global.itemtograb = "revolver";
}
}
} else if (_level0.textmessage == "Talk to Insane Prisoner") {
_global.action = "moving";
_global.itemtograb = "prisoner";
_global.targetx = 544.2;
_global.targety = 314;
} else if (_level0.textmessage == "Clean Bloody Hand") {
_global.dirtyhand = false;
_global.soapyhand = true;
_root.dirtyhand_inv._y = 512;
_root.soapyhand_inv._y = 430;
} else if (_level0.textmessage == "Slap Insane Prisoner") {
addSound("appreciatethat.wav", "I don't think he'd appreciate that");
} else if ((_level0.textmessage == "Use Matches with deodorant") || (_level0.textmessage == "Use deodorant with Matches")) {
_global.flamethrower = true;
_global.matches = false;
_global.deodorant = false;
_root.matches_inv._y = -32;
_root.deodorant_inv._y = -32;
_root.flamethrower_inv._y = 430;
_global.mouse = "none";
_global.mouseoveritem = "";
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
} else if (_global.mouse == "Cut up ") {
if (_global.mouseoveritem == "Insane Prisioner") {
addSound("suchagoodidea.wav", "I don't think that's such a good idea");
} else if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Comb ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
} else if (_global.action == "getrevolver") {
_root.char.gotoAndStop("pickupf");
}
_root.char._yscale = 100 + ((_y - 267.2) / 4);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 409 MovieClip in Frame 9
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 9
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 9
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 9
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 9
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if ((_global.mouse == "Pick Up ") || (_global.mouse == "Slap ")) {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if ((((_global.mouse == "Talk to ") || (_global.mouse == "Drink ")) || (_global.mouse == "Drink from ")) || (_global.mouse == "Lick ")) {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if ((_global.mouse == "Pick Up ") || (_global.mouse == "Slap ")) {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 10
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "Leave2") {
_global.posx = 633;
_global.posy = 351;
gotoAndPlay (3);
} else if (_global.itemtograb == "Leave3") {
_global.posx = 535;
_global.posy = 332;
gotoAndPlay (20);
} else if (_global.itemtograb == "prisoner") {
_level0.textmessage = "";
gotoAndPlay (15);
} else if (_global.itemtograb == "revolver") {
_global.action = "getrevolver";
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 11
gotoAndPlay (10);
Frame 13
if (_global.speakingtime < 0) {
gotoAndPlay (10);
_global.talking = false;
}
Frame 14
_global.speakingtime--;
gotoAndPlay (13);
Frame 15
if (_global.chatposition1 == 1) {
chat11 = "Who are you?";
chat12 = "What is this place?";
chat13 = "What the bloody hell was that just then?";
} else if (_global.chatposition1 == 2) {
chat11 = "Your deodorant?";
chat12 = "Can I have it?";
chat13 = "Hey look over there!";
} else if (_global.chatposition1 == 3) {
chat11 = "Let me have it!";
chat12 = "Look out! A piece of succulent salmon!";
chat13 = "The beast will be attracted to the smell";
}
stop();
Instance of Symbol 395 MovieClip "char" in Frame 15
onClipEvent (load) {
gotoAndStop ("still");
}
Instance of Symbol 475 MovieClip "chat11b" in Frame 15
onClipEvent (load) {
function saySound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
}
speech = new Sound(this);
if (_global.said == 1) {
_global.guytalking = true;
saySound("chupa.wav", "I'm... chuppa... chuppa chuppa.... chuppa");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 2) {
_global.guytalking = true;
saySound("afactory.wav", "Is a factory... no no, is not a factory. Is a prison! You can not escape. No escape says I. No escape says everyone!");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 3) {
_global.guytalking = true;
saySound("themonster.wav", "The Monster. The monster was let out again. Let away. The beast. He won't touch my deodorant, my precious deodorant. No! He won't! I'll claw his face off!");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 4) {
_global.guytalking = true;
saySound("mine.wav", "It's mine! You can't have it!");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 5) {
_global.guytalking = true;
saySound("sweatyarms.wav", "And leave me with sweaty arm pits? No! I think not!");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 6) {
_global.guytalking = true;
saySound("trickyone.wav", "Ohh, you're a tricky one. Ahh yes you are. You can't trick me though. Ohh no way!");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 7) {
_global.guytalking = true;
_global.said = 8;
saySound("itsnottrue.wav", "No... is not true");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 8) {
_global.talking = true;
_global.said = 9;
saySound("shewantedyou.wav", "Oh yeah son. I saw her looking at you. She wanted you");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 9) {
_global.talking = false;
_global.guytalking = true;
_global.said = 10;
saySound("betrayme.wav", "No! It can't be! My deodorant wouldn't betray me... why would it? WHY WOULD IT?");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 10) {
_global.talking = true;
_global.guytalking = false;
_global.said = 11;
saySound("ithatesyou.wav", "Err.. face it. It hates you");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 11) {
_global.talking = false;
_global.guytalking = true;
_global.said = 12;
saySound("idontbelieveit.wav", "Nooo.. Noo... I don't believe it!");
_level0.gotoAndPlay("InsaneTalking");
} else if (_global.said == 12) {
_global.guytalking = false;
_global.insaneguy = true;
_global.deodorant = true;
saySound("ahhh.wav", "Ahh! Eeeyaaaiiia ahhhh");
_global.posx = 600;
_global.posy = 327;
_global.said = 999;
_level0.gotoAndPlay("insanefreak");
}
_level0.textmessage = "";
}
onClipEvent (mouseDown) {
function saySound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
}
if (_global.chatposition1 == 1) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 1;
saySound("whoareyou.wav", "Who are you?");
_level0.gotoAndPlay("CharTalkingInsane");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 2;
saySound("whatisthisplace.wav", "What is this place?");
_level0.gotoAndPlay("CharTalkingInsane");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 3;
_global.chatposition1 = 2;
saySound("whatthehellwasthat.wav", "What the bloody hell was that just then?");
_level0.gotoAndPlay("CharTalkingInsane");
}
} else if (_global.chatposition1 == 2) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 4;
saySound("yourdeoderant.wav", "Your deodorant?");
_level0.gotoAndPlay("CharTalkingInsane");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 5;
_global.chatposition1 = 3;
saySound("thatsafinedeoderant.wav", "That's a fine looking deodorant can. Can I have it?");
_level0.gotoAndPlay("CharTalkingInsane");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 6;
_global.chatposition1 = 3;
saySound("heylookoverthere.wav", "Hey look over there! A three headed beast!");
_level0.gotoAndPlay("CharTalkingInsane");
}
} else if (_global.chatposition1 == 3) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 5;
saySound("letmehaveit.wav", "Come on. Let me have it!");
_level0.gotoAndPlay("CharTalkingInsane");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 6;
saySound("heylookoverthere.wav", "Hey look over there! A three headed beast!");
_level0.gotoAndPlay("CharTalkingInsane");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 7;
_global.chatposition1 = 3;
saySound("youknowthebeast.wav", "You know, I think the beast is a lass. She may be attracted to the smell...");
_level0.gotoAndPlay("CharTalkingInsane");
}
}
}
Instance of Symbol 439 MovieClip "pointer" in Frame 15
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
gotoAndStop ("mouseup");
}
Frame 16
if (_global.speakingtime < 0) {
_global.talking = false;
gotoAndPlay ("TalkingInsane");
}
Frame 17
_global.speakingtime--;
gotoAndPlay (16);
Frame 18
if (_global.speakingtime < 0) {
_global.guytalking = false;
if (_global.said < 8) {
_global.said = 999;
}
gotoAndPlay ("TalkingInsane");
}
Frame 19
_global.speakingtime--;
gotoAndPlay (18);
Frame 20
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 3;
bgloop.stop();
bgloop.attachSound("fear.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = (_root.player._visible = false);
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb_inv._y = 430;
}
if (_global.soap) {
_root.soap_inv._y = 430;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver_inv._y = 430;
}
if (_global.dirtyhand) {
_root.guardshand._x = -32;
_root.dirtyhand_inv._y = 430;
}
if (_global.soapyhand) {
_root.guardshand._x = -32;
_root.soapyhand_inv._y = 430;
}
if (_global.cleanhand) {
_root.guardshand._x = -32;
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign_inv._y = 430;
}
if (_global.matches) {
_root.matches_inv._y = 430;
}
if (_global.flamethrower) {
_root.flamethrower_inv._y = 430;
}
Instance of Symbol 391 MovieClip "player" in Frame 20
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speaking3");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = -_global.charsize;
} else {
_root.char._xscale = _global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
} else if (_root.leave4.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "Go To Cells";
} else if (_root.leave5.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "To Hall Way";
} else if (_root.leave6.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "More Cells";
} else if (_root.guardshand.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Guard's Hand";
} else if (_root.deadguard.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Mutilated Guard";
} else if (_root.gascannister.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Gas Cannister";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Razor Blade";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Comb";
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
if (_global.mouseoveritem == "Go To Cells") {
_global.action = "moving";
_global.itemtograb = "Leave4";
_global.targetx = 588;
_global.targety = 348;
} else if (_global.mouseoveritem == "To Hall Way") {
_global.action = "moving";
_global.itemtograb = "Leave5";
_global.targetx = 77;
_global.targety = 272;
} else if (_global.mouseoveritem == "More Cells") {
_global.action = "moving";
_global.itemtograb = "Leave6";
_global.targetx = 633;
_global.targety = 234;
} else if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Revolver") {
addSound("droppedgun.wav", "It looks like the guard dropped his gun");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Mutilated Guard") {
addSound("headcleanoff.wav", "His head has been taken clean off, not to mention the rest of his body");
} else if (_global.mouseoveritem == "Guard's Hand") {
addSound("guardshand.wav", "It's the guards hand...");
} else if (_global.mouseoveritem == "Gas Cannister") {
addSound("flammablegas.wav", "It's apparently full of flammable gas");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem == "Gas Cannister") {
addSound("icantliftthat.wav", "I can't lift that");
} else if (_global.mouseoveritem == "Mutilated Guard") {
addSound("ughwhichpart.wav", "Ugh, Which part?");
} else if (_global.mouseoveritem == "Guard's Hand") {
addSound("itsattached.wav", "It's attatched to his body");
}
} else if (_global.mouse == "Cut up ") {
if (_global.mouseoveritem == "Guard's Hand") {
_global.action = "moving";
_global.itemtograb = "guardshand";
_global.targetx = 542;
_global.targety = 214;
} else if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_level0.textmessage == "Clean Bloody Hand") {
_global.dirtyhand = false;
_global.soapyhand = true;
_root.dirtyhand_inv._y = 512;
_root.soapyhand_inv._y = 430;
} else if ((_level0.textmessage == "Use Matches with deodorant") || (_level0.textmessage == "Use deodorant with Matches")) {
_global.flamethrower = true;
_global.matches = false;
_global.deodorant = false;
_root.matches_inv._y = -32;
_root.deodorant_inv._y = -32;
_root.flamethrower_inv._y = 430;
_global.mouse = "none";
_global.mouseoveritem = "";
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Comb ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
}
_root.char._yscale = 120 + ((_y - 267.2) / 3);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 395 MovieClip "char" in Frame 20
onClipEvent (enterFrame) {
if (_global.action == "still") {
gotoAndStop ("still");
} else if (_global.action == "moving") {
gotoAndStop ("moving");
}
}
Instance of Symbol 409 MovieClip in Frame 20
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 20
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 20
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 20
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 20
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if (_global.mouse == "Pick Up ") {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if (_global.mouse == "Pick Up ") {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 21
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "Leave4") {
_global.posx = 427;
_global.posy = 192;
gotoAndPlay (9);
} else if (_global.itemtograb == "Leave5") {
_global.posx = 610;
_global.posy = 305;
gotoAndPlay (26);
} else if (_global.itemtograb == "Leave6") {
_global.posx = 320;
_global.posy = 360;
gotoAndPlay (32);
} else if (_global.itemtograb == "guardshand") {
_global.savepos();
gotoAndPlay ("cutoffhand");
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 22
gotoAndPlay (21);
Frame 24
if (_global.speakingtime < 0) {
gotoAndPlay (21);
_global.talking = false;
}
Frame 25
_global.speakingtime--;
gotoAndPlay (24);
Frame 26
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 4;
bgloop.stop();
bgloop.attachSound("fear.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = (_root.player._visible = false);
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
if (_global.beastatdoor) {
_root.controldooropen._visible = false;
_root.controldoor._visible = false;
_root.handscan._visible = false;
_root.handscan._x = -256;
_root.gascannister._x = -256;
_root.saneguy._x = -256;
_root.saneguy._visible = false;
} else {
if (_global.controldoor == false) {
_root.exit8._y = -128;
_root.controldooropen._visible = (_root.controldoorsmashed._visible = false);
} else {
_root.controldoor._visible = (_root.controldoorsmashed._visible = false);
}
if (_global.saneatdoor == false) {
_root.saneguy._x = -256;
_root.saneguy._visible = false;
}
_root.beasteating._x = -1024;
_root.beasteating._visible = false;
}
if (_global.exitsignabovedoor) {
_root.exitsign._x = 57;
}
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb_inv._y = 430;
}
if (_global.soap) {
_root.soap_inv._y = 430;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver_inv._y = 430;
}
if (_global.dirtyhand) {
_root.dirtyhand_inv._y = 430;
}
if (_global.soapyhand) {
_root.soapyhand_inv._y = 430;
}
if (_global.cleanhand) {
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign_inv._y = 430;
}
if (_global.matches) {
_root.matches_inv._y = 430;
}
if (_global.flamethrower) {
_root.flamethrower_inv._y = 430;
}
Instance of Symbol 518 MovieClip "floorspace" in Frame 26
onClipEvent (load) {
if (_global.beastatdoor) {
gotoAndStop ("beast");
} else if (_global.sanedoor) {
gotoAndStop ("sane");
} else {
gotoAndStop ("normal");
}
}
Instance of Symbol 521 MovieClip "nonobject" in Frame 26
onClipEvent (load) {
if (_global.beastatdoor) {
gotoAndStop ("beastherefinal");
}
}
Instance of Symbol 536 MovieClip "exitdoor" in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 391 MovieClip "player" in Frame 26
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speaking4");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = -_global.charsize;
} else {
_root.char._xscale = _global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
if ((_global.mouse == "Use ") || (_global.mouse == "Open ")) {
_global.mouse = "Pick Up ";
}
} else if (_root.exit7.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "To Corridoor";
} else if (_root.exit8.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "Enter Control Room";
} else if (_root.controldoor.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Control Room Door";
if (_global.mouse == "Pick Up ") {
_global.mouse = "Open ";
}
} else if (_root.handscan.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Hand Scanner";
if (_global.mouse == "Pick Up ") {
_global.mouse = "Use ";
}
} else if (_root.gascannister.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Gas Cannister";
} else if (_root.hangingnail.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Hanging Nail";
} else if (_root.exitdoor.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Door";
} else if (_root.beasteating.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "The Beast";
} else if (_root.saneguy.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Sane Prisoner";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Razor Blade";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Comb";
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
} else if (_root.flamethrower_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Makeshift Flamethrower";
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
if (_level0.textmessage == "Clean Bloody Hand") {
_global.dirtyhand = false;
_global.soapyhand = true;
_root.dirtyhand_inv._y = 512;
_root.soapyhand_inv._y = 430;
} else if (_level0.textmessage == "Use Hand with Hand Scanner") {
if ((_global.beastroom == false) && (_global.controldoor == false)) {
_global.action = "moving";
_global.itemtograb = "opencpdoor";
_global.targetx = 336;
_global.targety = 273;
} else if (_global.saneatdoor) {
_global.action = "moving";
_global.itemtograb = "opencpdoorsecond";
_global.targetx = 336;
_global.targety = 273;
} else if (_global.beastroom) {
addSound("ifiopenthatdoor.wav", "If I open the door now the beast is gunna come flying out here and rip my limbs right from my body");
} else {
addSound("idontthinkthatwillwork", "What for?");
}
} else if (_level0.textmessage == "Use Bloody Hand with Hand Scanner") {
_global.action = "moving";
_global.itemtograb = "opencpdoorb";
_global.targetx = 336;
_global.targety = 273;
} else if (_level0.textmessage == "Use Soapy Hand with Hand Scanner") {
_global.action = "moving";
_global.itemtograb = "opencpdoors";
_global.targetx = 336;
_global.targety = 273;
} else if (_level0.textmessage == "Use Hand Scanner") {
_global.action = "moving";
_global.itemtograb = "opencpdoorh";
_global.targetx = 336;
_global.targety = 273;
} else if (_level0.textmessage == "Open Control Room Door") {
addSound("validhandprint.wav", "It's locked. I think I need a valid hand print");
} else if (_global.mouseoveritem == "To Corridoor") {
_global.action = "moving";
_global.itemtograb = "Leave7";
_global.targetx = 610;
_global.targety = 305;
} else if (_global.mouseoveritem == "Enter Control Room") {
_global.action = "moving";
if (_global.beastatdoor) {
_global.itemtograb = "Leave20";
} else {
_global.itemtograb = "Leave8";
}
_global.targetx = 392;
_global.targety = 269;
} else if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Revolver") {
addSound("droppedgun.wav", "It looks like the guard dropped his gun");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Hand Scanner") {
addSound("lookslikeineedavalid.wav", "It looks like I need a valid hand print to open the door");
} else if (_global.mouseoveritem == "Hanging Nail") {
addSound("littlehangingnail.wav", "A little hanging nail above the red door...");
} else if (_global.mouseoveritem == "Gas Cannister") {
addSound("flammablegas.wav", "It's apparently full of flammable gas");
} else if (_global.mouseoveritem == "Control Room Door") {
addSound("ithinkthisdoorcontrol.wav", "I think tchis door leads to the control room");
} else if (_global.mouseoveritem == "Door") {
addSound("reddoorlocked.wav", "It's a red door. I think it's locked");
} else if (_global.mouseoveritem == "The Beast") {
addSound("thatbigbeatpoorguyinside.wav", "That big fucking beast is eating that poor guy from the inside out.");
} else if (_global.mouseoveritem == "Sane Prisoner") {
addSound("onlysaneguyleft.wav", "The only sane guy left in this place trying to open a locked door...");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem != "") {
addSound("icantliftthat.wav", "I can't lift that");
}
} else if (_level0.textmessage == "Use Exit Sign with Hanging Nail") {
_global.action = "moving";
_global.itemtograb = "putexitsign";
_global.targetx = 132;
_global.targety = 310;
} else if (_level0.textmessage == "Talk to Sane Prisoner") {
addSound("helookskindabusy.wav", "He looks kinda busy. I don't think I'll interrupt him");
} else if ((_level0.textmessage == "Use Matches with deodorant") || (_level0.textmessage == "Use deodorant with Matches")) {
_global.flamethrower = true;
_global.matches = false;
_global.deodorant = false;
_root.matches_inv._y = -32;
_root.deodorant_inv._y = -32;
_root.flamethrower_inv._y = 430;
_global.mouse = "none";
_global.mouseoveritem = "";
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
} else if (_level0.textmessage == "Use Makeshift Flamethrower on The Beast") {
_level0.gotoAndPlay("endscene");
} else if (_global.mouse == "Cut up ") {
if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_level0.textmessage == "Comb The Beast") {
addSound("appreciateagrooming.wav", "He doesn't look like the kinda Dog who's appreciate a grooming");
} else if (_level0.textmessage == "Shoot The Beast") {
addSound("asmuchasidliketo.wav", "As much as I'd like to. I think that'll piss him off even more");
} else if (_level0.textmessage == "Clean The Beast") {
addSound("doyouwantmebath.wav", "Do you want me to give him a bath?");
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Comb ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
} else if (_root.flamethrower_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Makeshift Flamethrower on ";
_global.mouseoveritem = "";
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
}
_root.char._yscale = 100 + ((_y - 267.2) / 4);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 604 MovieClip in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 618 MovieClip in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 409 MovieClip in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 26
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 26
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if (((_global.mouse == "Pick Up ") || (_global.mouse == "Use ")) || (_global.mouse == "Open ")) {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if (((_global.mouse == "Pick Up ") || (_global.mouse == "Use ")) || (_global.mouse == "Open ")) {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 27
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "Leave7") {
_global.posx = 77;
_global.posy = 272;
gotoAndPlay (20);
} else if (_global.itemtograb == "Leave8") {
_global.posx = 220;
_global.posy = 280;
gotoAndPlay (43);
} else if (_global.itemtograb == "Leave20") {
_global.posx = 220;
_global.posy = 280;
gotoAndPlay (54);
} else if (_global.itemtograb == "opencpdoor") {
_global.savepos();
gotoAndPlay ("opencpdoor");
} else if (_global.itemtograb == "opencpdoorsecond") {
_global.posx = 604;
_global.posy = 312;
gotoAndPlay ("beasteatsane");
} else if (_global.itemtograb == "opencpdoorb") {
_global.savepos();
gotoAndPlay ("opencpdoorb");
} else if (_global.itemtograb == "opencpdoors") {
_global.savepos();
gotoAndPlay ("opencpdoors");
} else if (_global.itemtograb == "opencpdoorh") {
_global.savepos();
gotoAndPlay ("opencpdoorh");
} else if (_global.itemtograb == "putexitsign") {
_global.savepos();
gotoAndPlay ("exitsignup");
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 28
gotoAndPlay (27);
Frame 30
if (_global.speakingtime < 0) {
gotoAndPlay (27);
_global.talking = false;
}
Frame 31
_global.speakingtime--;
gotoAndPlay (30);
Frame 32
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 5;
bgloop.stop();
bgloop.attachSound("March.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = (_root.player._visible = false);
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
if (_global.saneatdoor) {
_root.saneprisoner._x = -512;
_root.sanechar._visible = false;
}
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb_inv._y = 430;
}
if (_global.soap) {
_root.soap_inv._y = 430;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver_inv._y = 430;
}
if (_global.dirtyhand) {
_root.dirtyhand_inv._y = 430;
}
if (_global.soapyhand) {
_root.soapyhand_inv._y = 430;
}
if (_global.cleanhand) {
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign_inv._y = 430;
}
if (_global.matches) {
_root.matches_inv._y = 430;
}
if (_global.flamethrower) {
_root.flamethrower_inv._y = 430;
}
Instance of Symbol 391 MovieClip "player" in Frame 32
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speaking5");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = _global.charsize;
} else {
_root.char._xscale = -_global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
if ((_global.mouse == "Use ") || (_global.mouse == "Open ")) {
_global.mouse = "Pick Up ";
}
} else if (_root.leave9.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "To Hallway";
} else if (_root.handscan.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Hand Scanner";
if (_global.mouse == "Pick Up ") {
_global.mouse = "Use ";
}
} else if (_root.bloodycell.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Cell";
} else if (_root.saneprisoner.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Sane Prisoner";
if (_global.mosue == "Pick Up ") {
_global.mouse = "Slap ";
}
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Comb";
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
if (_level0.textmessage == "Clean Bloody Hand") {
_global.dirtyhand = false;
_global.soapyhand = true;
_root.dirtyhand_inv._y = 512;
_root.soapyhand_inv._y = 430;
} else if ((_level0.textmessage == "Use Matches with deodorant") || (_level0.textmessage == "Use deodorant with Matches")) {
_global.flamethrower = true;
_global.matches = false;
_global.deodorant = false;
_root.matches_inv._y = -32;
_root.deodorant_inv._y = -32;
_root.flamethrower_inv._y = 430;
_global.mouse = "none";
_global.mouseoveritem = "";
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
} else if (_level0.textmessage == "Slap Sane Prisoner") {
addSound("appreciatethat.wav", "I don't think he'd appreciate that");
} else if (_level0.textmessage == "Talk to Sane Prisoner") {
_global.action = "moving";
_global.itemtograb = "SanePrisoner";
_global.targetx = 380;
_global.targety = 297;
} else if (_global.mouseoveritem == "To Hallway") {
_global.action = "moving";
_global.itemtograb = "Leave9";
_global.targetx = 320;
_global.targety = 360;
} else if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Revolver") {
addSound("droppedgun.wav", "It looks like the guard dropped his gun");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Sane Prisoner") {
addSound("seemsthereissomeone.wav", "It seems there is someone around here whom I can talk to after all");
} else if (_global.mouseoveritem == "Bloody Cell") {
addSound("iamnotgoinginthere.wav", "That is fucking sick. You have got another thing coming mate if you think I am going in there!");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem != "") {
addSound("icantliftthat.wav", "I can't lift that");
}
} else if (_global.mouse == "Cut up ") {
if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Comb ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
}
_root.char._yscale = 120 + ((_y - 267.2) / 3);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 409 MovieClip in Frame 32
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 32
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 32
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 32
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 32
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if ((_global.mouse == "Pick Up ") || (_global.mouse == "Slap ")) {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if ((_global.mouse == "Pick Up ") || (_global.mouse == "Slap ")) {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 33
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "Leave9") {
_global.posx = 633;
_global.posy = 234;
gotoAndPlay (20);
} else if (_global.itemtograb == "SanePrisoner") {
_global.savepos();
gotoAndPlay ("TalkingSane");
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 34
gotoAndPlay (33);
Frame 36
if (_global.speakingtime < 0) {
gotoAndPlay (33);
_global.talking = false;
}
Frame 37
_global.speakingtime--;
gotoAndPlay (36);
Frame 38
if (_global.sanedoor == false) {
if (_global.chatposition2 == 1) {
chat11 = "Well, you seem sane";
chat12 = "Hi, what's your name?";
chat13 = "Good evening";
} else if (_global.chatposition2 == 2) {
chat11 = "Someone is definatly a grumpy Gus";
chat12 = "I think I should be going";
chat13 = "";
}
} else if (_global.chatposition2 == 1) {
chat11 = "Come on! We have to get out of here!";
chat12 = "Your door is open! We have to escape!";
chat13 = "";
} else if (_global.chatposition2 == 2) {
chat11 = "Do you have any other options?";
chat12 = "I don't know? Maybe that big fucking beast?";
chat13 = "Never-fucking-mind";
} else if (_global.chatposition2 == 3) {
chat11 = "...Sure";
chat12 = "Yeah... I guess";
chat13 = "Of course...";
}
stop();
Instance of Symbol 395 MovieClip in Frame 38
onClipEvent (load) {
gotoAndStop ("still");
}
Instance of Symbol 475 MovieClip "chat11b" in Frame 38
onClipEvent (load) {
function saySound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
}
speech = new Sound(this);
if (_global.said == 1) {
_global.guytalking = true;
saySound("sanesane.wav", "Sane?! Sane?! Is that what you call it?!");
_level0.gotoAndPlay("SaneTalking");
} else if (_global.said == 2) {
_global.guytalking = true;
saySound("whyshoulditrustyou.wav", "Why should I trust you? You're one of them! I know it!");
_level0.gotoAndPlay("SaneTalking");
} else if (_global.said == 4) {
_global.guytalking = true;
saySound("doyouknowwhat.wav", "DO YOU KNOW WHAT I JUST SAW?!");
_level0.gotoAndPlay("SaneTalking");
} else if (_global.said == 5) {
_global.said = 999;
_global.chatposition2 = 1;
_level0.gotoAndPlay("Scene5Start");
} else if (_global.said == 6) {
_global.guytalking = true;
saySound("whywhatsthepoint.wav", "Why? What's the point?");
_level0.gotoAndPlay("SaneTalking");
} else if (_global.said == 8) {
_global.guytalking = true;
if (_global.exitsignabovedoor) {
_global.said = 20;
} else {
_global.chatposition2 = 3;
}
saySound("doyouknowawayout.wav", "Do you know a way out?");
_level0.gotoAndPlay("SaneTalking");
} else if (_global.said == 20) {
_global.guytalking = false;
_global.talking = true;
_global.said = 21;
saySound("theexit.wav", "The Exit is just around the corner!");
_level0.gotoAndPlay("CharTalking");
} else if (_global.said == 21) {
_global.talking = false;
_global.guytalking = true;
_global.said = 22;
saySound("okayletsgo.wav", "Okay, let's go!");
_level0.gotoAndPlay("CharTalking");
} else if (_global.said == 22) {
_global.talking = false;
_global.guytalking = false;
_level0.gotoAndPlay("sanerun");
} else if (_global.said == 9) {
_global.said = 999;
_global.chatposition2 = 1;
_level0.gotoAndPlay("Scene5Start");
} else if (_global.said == 10) {
_global.guytalking = true;
_global.said = 23;
saySound("yourelyingiknow.wav", "You're lying! I know it! I'm not moving from this cell!");
_level0.gotoAndPlay("SaneTalking");
} else if (_global.said == 23) {
_global.said = 999;
_global.chatposition2 = 1;
_level0.gotoAndPlay("Scene5Start");
}
_level0.textmessage = "";
}
onClipEvent (mouseDown) {
function saySound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
}
if (_global.sanedoor == false) {
if (_global.chatposition2 == 1) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 1;
saySound("wellyouseem.wav", "Well, You seem sane");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 2;
_global.chatposition2 = 2;
saySound("whatsyourname.wav", "Hi, what's your name?");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 2;
_global.chatposition2 = 2;
saySound("goodevening.wav", "Good evening, I'm selling these fine orange jumpsuits");
_level0.gotoAndPlay("CharTalking");
}
} else if (_global.chatposition2 == 2) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 4;
saySound("grumpygus.wav", "Someone is definatly a Grumpy Gus");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 5;
saySound("ithinkishould.wav", "Okay, Well I think I should be going");
_level0.gotoAndPlay("CharTalking");
}
}
} else if (_global.chatposition2 == 1) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 6;
_global.chatposition2 = 2;
saySound("comeongetout.wav", "Come on! We have to get out of here!");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 6;
_global.chatposition2 = 2;
saySound("cellunlocked.wav", "Your cell is unlocked! We have to get out of here now!");
_level0.gotoAndPlay("CharTalking");
}
} else if (_global.chatposition2 == 2) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 8;
saySound("doyouhaveoptions.wav", "Do you have any other options?");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 8;
saySound("idontknowbigbeast.wav", "Oh I don't know? Maybe that big fucking beast?");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 9;
saySound("neverfuckingmind.wav", "Never-fucking-mind");
_level0.gotoAndPlay("CharTalking");
}
} else if (_global.chatposition2 == 3) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 10;
saySound("sure.wav", "...Sure");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 10;
saySound("yeahiguess.wav", "Yeah... I guess");
_level0.gotoAndPlay("CharTalking");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 10;
saySound("ofcoursetake.wav", "Of course... What do you take me for?");
_level0.gotoAndPlay("CharTalking");
}
}
}
Instance of Symbol 439 MovieClip "pointer" in Frame 38
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
gotoAndStop ("mouseup");
}
Frame 39
if (_global.speakingtime < 0) {
_global.talking = false;
gotoAndPlay (38);
}
Frame 40
_global.speakingtime--;
gotoAndPlay (39);
Frame 41
if (_global.speakingtime < 0) {
_global.guytalking = false;
if (_global.said < 19) {
_global.said = 999;
}
gotoAndPlay (38);
}
Frame 42
_global.speakingtime--;
gotoAndPlay (41);
Frame 43
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 6;
bgloop.stop();
bgloop.attachSound("demonveins.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = (_root.player._visible = false);
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
if (_global.controldoor == false) {
_root.exit8._y = -128;
_root.controldooropen._visible = false;
} else {
_root.controldoor._visible = false;
}
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb_inv._y = 430;
}
if (_global.soap) {
_root.soap_inv._y = 430;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver_inv._y = 430;
}
if (_global.cleanhand) {
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign._x = -32;
_root.exitsign_inv._y = 430;
}
if (_global.exitsignabovedoor) {
_root.exitsign._x = -32;
}
Instance of Symbol 670 MovieClip "bin" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 712 MovieClip "a32server" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 718 MovieClip "watercooler" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 720 MovieClip "exit10" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 391 MovieClip "player" in Frame 43
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speaking6");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = _global.charsize;
} else {
_root.char._xscale = -_global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
if ((_global.mouse == "Use ") || (_global.mouse == "Slap ")) {
_global.mouse = "Pick Up ";
}
} else if (_root.exit10.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "Leave Control Room";
} else if (_root.watercooler.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Water Tank";
if (_global.mouse == "Pick Up ") {
_global.mouse = "Use ";
}
} else if (_root.matches.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
if (_global.mouse == "Slap ") {
_global.mouse = "Pick Up ";
}
} else if (_root.exitsign.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.bin.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bin";
} else if (_root.a32server.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "A-32 Server";
} else if (_root.controls.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Control Panel";
} else if (_root.guard.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Security Guard";
if (_global.mouse == "Pick Up ") {
_global.mouse = "Slap ";
}
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((!_root.guard.hitTest(_root._xmouse, _root._ymouse, true)) && (!_root.matches.hitTest(_root._xmouse, _root._ymouse, true))) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
}
if (_global.mouseoveritem == "Leave Control Room") {
_global.action = "moving";
_global.itemtograb = "Leave10";
_global.targetx = 220;
_global.targety = 280;
} else if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Revolver") {
addSound("droppedgun.wav", "It looks like the guard dropped his gun");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Water Tank") {
addSound("mmhawatercooler.wav", "Mmmh, a water cooler");
} else if (_global.mouseoveritem == "Matches") {
addSound("ithinktheybelongaskhim.wav", "I think they belong to the security guard. I better ask him");
} else if (_global.mouseoveritem == "Exit Sign") {
addSound("curiousexitsign.wav", "A curiously binned self-powered exit sign");
} else if (_global.mouseoveritem == "Bin") {
addSound("wastepaperbin.wav", "It's a waste paper bin");
} else if (_global.mouseoveritem == "A-32 Server") {
addSound("a32servercabinet.wav", "Ahh. A top of the range A-32 Server cabinet... I really don't know what I am talking about.");
} else if (_global.mouseoveritem == "Control Panel") {
addSound("brokenscreens.wav", "Lots of broken screens, it doesn't seems like they're much use any more");
} else if (_global.mouseoveritem == "Security Guard") {
addSound("onlyremainingguard.wav", "It looks like he's the only remaining security guard in this place");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem == "Exit Sign") {
if (_global.exitsign) {
addSound("alreadyhavethat.wav", "I already have that");
} else {
_global.action = "moving";
_global.itemtograb = "exitsign";
_global.targetx = 220;
_global.targety = 280;
}
} else if (_global.mouseoveritem == "Matches") {
addSound("ithinktheybelongaskhim.wav", "I think they belong to the security guards. I better ask him...");
} else if (_global.mouseoveritem != "") {
addSound("icantliftthat.wav", "I can't lift that");
}
} else if (_level0.textmessage == "Slap Security Guard") {
if (_global.saneguard) {
addSound("slappedhimonce.wav", "I've already slapped him once. I don't think doing it again will help");
} else {
_global.targetx = 310;
_global.targety = 376;
_global.itemtograb = "saneguard";
_global.action = "moving";
}
} else if (_level0.textmessage == "Talk to Security Guard") {
_global.targetx = 310;
_global.targety = 376;
_global.itemtograb = "talktosaneguard";
_global.action = "moving";
} else if (_global.mouse == "Cut up ") {
if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Comb ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
}
_root.char._yscale = 110 + ((_y - 267.2) / 3);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 738 MovieClip "guard" in Frame 43
onClipEvent (load) {
if (_global.saneguard) {
gotoAndStop ("guardsane");
} else {
gotoAndStop ("guardinsane");
}
}
Instance of Symbol 743 MovieClip in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 409 MovieClip in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 43
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 43
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if (((_global.mouse == "Pick Up ") || (_global.mouse == "Use ")) || (_global.mouse == "Slap ")) {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if (((_global.mouse == "Pick Up ") || (_global.mouse == "Use ")) || (_global.mouse == "Slap ")) {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 44
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "Leave10") {
_global.posx = 392;
_global.posy = 269;
gotoAndPlay (26);
} else if (_global.itemtograb == "saneguard") {
_global.savepos();
gotoAndPlay ("slapguard");
} else if (_global.itemtograb == "exitsign") {
_global.savepos();
gotoAndPlay ("grabexit");
} else if (_global.itemtograb == "talktosaneguard") {
_global.savepos();
gotoAndPlay ("TalkingG");
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 45
gotoAndPlay (44);
Frame 47
if (_global.speakingtime < 0) {
gotoAndPlay (44);
_global.talking = false;
}
Frame 48
_global.speakingtime--;
gotoAndPlay (47);
Frame 49
if (_global.saneguard == false) {
chat11 = "Who are you?";
chat12 = "What happened here?";
chat13 = "Nevermind";
} else if (_global.chatposition3 == 1) {
chat11 = "What is this place?";
chat12 = "You're a guard here?";
chat13 = "What is happening here?";
} else if (_global.chatposition3 == 2) {
chat11 = "What can we do?";
chat12 = "Where is the beast right now?";
if (_global.exitsign || (_global.exitsignabovedoor)) {
chat13 = "Exit sign?";
} else {
chat13 = "I'll get to it!";
}
}
stop();
Instance of Symbol 395 MovieClip "char" in Frame 49
onClipEvent (load) {
gotoAndStop ("still");
}
Instance of Symbol 749 MovieClip in Frame 49
onClipEvent (load) {
if (_global.saneguard) {
gotoAndStop ("saneguardtalk");
} else {
gotoAndStop ("insaneguardtalk");
}
}
Instance of Symbol 475 MovieClip "chat11b" in Frame 49
onClipEvent (load) {
function saySound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
}
speech = new Sound(this);
if (_global.said == 1) {
_global.guytalking = true;
saySound("rambling.wav", "*inane whimpering*");
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 2) {
_global.said = 999;
_level0.gotoAndPlay("Scene6Start");
} else if (_global.said == 3) {
_global.guytalking = true;
saySound("itsaprison.wav", "It's a prison... well, it was. Now it's a living fucking nightmare");
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 4) {
_global.guytalking = true;
saySound("dontmakenodifferent.wav", "Yeah I am, Although I don't make no fucking difference, we're all meat in the eyes of that.. that thing...");
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 5) {
_global.guytalking = true;
saySound("abeastthebeast.wav", "A beast... THE beast... it got free. It's on the loose. We won't make it out");
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 6) {
_global.guytalking = true;
saySound("nothingwecando.wav", "Nothing! There is nothing we can do. We're trapped here! They locked the entire place down, there is no way out!");
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 7) {
_global.guytalking = true;
saySound("everywherenowhere.wav", "It's everywhere. It's fucking nowhere, it sees us all!");
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 8) {
_global.guytalking = true;
saySound("foroneofthedoors.wav", "It was for the one of the doors. But there is no exit now, they're sealed entire place... so I took it down, it was taunting... driving me insane!");
_global.said = 10;
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 9) {
_global.said = 999;
_level0.gotoAndPlay("Scene6Start");
} else if (_global.said == 10) {
_global.guytalking = false;
_global.talking = true;
_global.said = 11;
saySound("canyouopencelldoors.wav", "Can you... open the cell doors for me?");
_level0.gotoAndPlay("MTalking");
} else if (_global.said == 11) {
_global.guytalking = true;
_global.talking = false;
saySound("whypointless.wav", "Why? It's fucking pointless!");
_global.said = 12;
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 12) {
_global.guytalking = false;
_global.talking = true;
_global.said = 13;
saySound("allthehelp.wav", "We're gunna need help we can get if we're gunna make it out of here alive.");
_level0.gotoAndPlay("MTalking");
} else if (_global.said == 13) {
_global.guytalking = true;
_global.talking = false;
saySound("iguessso.wav", "Okay I guess so. Now which one was it? Ah here...");
_global.said = 14;
_level0.gotoAndPlay("GTalking");
} else if (_global.said == 14) {
_global.beastroom = true;
_global.sanedoor = true;
_global.controldoor = false;
_level0.gotoAndPlay("controlbeast");
}
_level0.textmessage = "";
}
onClipEvent (mouseDown) {
function saySound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
}
if (_global.saneguard == false) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 1;
saySound("whoareyoucop.wav", "Who are you?");
_level0.gotoAndPlay("MTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 1;
saySound("whatthehellhappened.wav", "What the hell happened to you?");
_level0.gotoAndPlay("MTalking");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 2;
saySound("bethatway.wav", "Alright, be that way then Dickshit");
_level0.gotoAndPlay("MTalking");
}
} else if (_global.chatposition3 == 1) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 3;
_global.chatcopthing1 = true;
if ((_global.chatcopthing1 && (_global.chatcopthing2)) && (_global.chatcopthing3)) {
_global.chatposition3 = 2;
}
saySound("tellmewhatis.wav", "Tell me... what is this place?");
_level0.gotoAndPlay("MTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 4;
_global.chatcopthing2 = true;
if ((_global.chatcopthing1 && (_global.chatcopthing2)) && (_global.chatcopthing3)) {
_global.chatposition3 = 2;
}
saySound("youraguardhere.wav", "You! You're a guard here?");
_level0.gotoAndPlay("MTalking");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 5;
_global.chatcopthing3 = true;
if ((_global.chatcopthing1 && (_global.chatcopthing2)) && (_global.chatcopthing3)) {
_global.chatposition3 = 2;
}
saySound("whatthefuckisgoingon.wav", "What the fuck is going on here?");
_level0.gotoAndPlay("MTalking");
}
} else if (_global.chatposition3 == 2) {
if (_root.chat11b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 6;
saySound("whatcanwedo.wav", "What can we do?");
_level0.gotoAndPlay("MTalking");
} else if (_root.chat12b.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.talking = true;
_global.said = 7;
saySound("whereisthebeast.wav", "Where is the beast now?");
_level0.gotoAndPlay("MTalking");
} else if (_root.chat13b.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_global.exitsign || (_global.exitsignabovedoor)) {
_global.talking = true;
_global.said = 8;
saySound("exitsign.wav", "What the hell is this exit sign for?");
_level0.gotoAndPlay("MTalking");
} else {
_global.talking = true;
_global.said = 9;
saySound("rightillget.wav", "Right, I'll get to it!");
_level0.gotoAndPlay("MTalking");
}
}
}
}
Instance of Symbol 439 MovieClip "pointer" in Frame 49
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
gotoAndStop ("mouseup");
}
Frame 50
if (_global.speakingtime < 0) {
_global.talking = false;
gotoAndPlay (49);
}
Frame 51
_global.speakingtime--;
gotoAndPlay (50);
Frame 52
if (_global.speakingtime < 0) {
_global.guytalking = false;
if (_global.said < 9) {
_global.said = 999;
}
gotoAndPlay (49);
}
Frame 53
_global.speakingtime--;
gotoAndPlay (52);
Frame 54
_global.action = "still";
_global.mouse = "none";
_global.mouseoveritem = "";
_global.itemtograb = "none";
_global.combo = "inactive";
_level0.textmessage = "";
_global.scene = 7;
bgloop.stop();
bgloop.attachSound("March.mp3");
bgloop.start(0, 999);
_root.floorspace._visible = (_root.player._visible = false);
_root.player._x = _global.posx;
_root.player._y = _global.posy;
_root.char._x = _root.player._x;
_root.char._y = _root.player._y;
if (_global.controldoor == false) {
_root.exit8._y = -128;
_root.controldooropen._visible = false;
} else {
_root.controldoor._visible = false;
}
_global.charsize = _root.char._xscale;
if (_global.razor) {
_root.razor_inv._y = 430;
}
if (_global.comb) {
_root.comb_inv._y = 430;
}
if (_global.soap) {
_root.soap_inv._y = 430;
}
if (_global.deodorant) {
_root.deodorant_inv._y = 430;
}
if (_global.revolver) {
_root.revolver_inv._y = 430;
}
if (_global.cleanhand) {
_root.cleanhand_inv._y = 430;
}
if (_global.exitsign) {
_root.exitsign_inv._y = 430;
}
if (_global.matches) {
_root.matches._x = -32;
_root.matches_inv._y = 430;
}
if (_global.flamethrower) {
_root.matches._x = -32;
_root.flamethrower_inv._y = 430;
}
Instance of Symbol 710 MovieClip in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 774 MovieClip "guardsremains" in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 779 MovieClip "brokenstuff" in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 785 MovieClip "guardsskin" in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 391 MovieClip "player" in Frame 54
onClipEvent (load) {
function addSound(soundname, txtmessage) {
speech.attachSound(soundname);
speech.start(0, 1);
_level0.textmessage = txtmessage;
_global.speakingtime = (speech.duration / 1000) * 30;
_global.talking = true;
_global.mouse = "none";
_level0.gotoAndPlay("speaking7");
}
function movechar() {
var _local7 = _global.targetx - _x;
var _local8 = _global.targety - _y;
if (_local7 > 0) {
_root.char._xscale = _global.charsize;
} else {
_root.char._xscale = -_global.charsize;
}
var _local10 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
var _local9 = _local10 / speed;
_x = (_x + (_local7 / _local9));
_y = (_y + (_local8 / _local9));
var _local4 = _x + (_width / 2);
var _local3 = _y - (_height / 2);
var _local5 = _x - (_width / 2);
var _local6 = _y + (_height / 2);
while ((!_root.floorspace.hitTest(_local5, _local3, true)) && (!_root.floorspace.hitTest(_local4, _local3, true))) {
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
_local5 = _x - (_width / 2);
}
while (!_root.floorspace.hitTest(_local4, _local3, true)) {
_x = (_x-1);
_y = (_y+1);
_local4 = _x + (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local3, true)) {
_x = (_x+1);
_y = (_y+1);
_local5 = _x - (_width / 2);
_local3 = _y - (_height / 2);
}
while (!_root.floorspace.hitTest(_local5, _local6, true)) {
_x = (_x+1);
_y = (_y-1);
_local5 = _x - (_width / 2);
_local6 = _y + (_height / 2);
}
while (!_root.floorspace.hitTest(_local4, _local6, true)) {
_x = (_x-1);
_y = (_y-1);
_local4 = _x + (_width / 2);
_local6 = _y + (_height / 2);
}
if ((Math.abs(lastx - _x) < 2) && (Math.abs(lasty - _y) < 2)) {
_global.action = "still";
}
lastx = _x;
lasty = _y;
if (Math.round(_local10) <= speed) {
_global.action = "still";
}
}
speed = 8;
speech = new Sound(this);
}
onClipEvent (mouseMove) {
if (_root.nonobject.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "";
} else if (_root.exit10.hitTest(_root._xmouse, _root._ymouse, true) && (_global.mouse == "none")) {
_global.mouseoveritem = "Leave Control Room";
} else if (_root.brokenstuff.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Broken Stuff";
} else if (_root.matches.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
} else if (_root.brokentable.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Broken Table";
} else if (_root.guardsremains.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Guards Remains";
} else if (_root.guardsskin.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Guards Skin";
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soap";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Revolver";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "deodorant";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Clean Hand";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Bloody Hand";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Soapy Hand";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Exit Sign";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouseoveritem = "Matches";
}
}
onClipEvent (mouseDown) {
if (_root.floorspace.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((!_root.guard.hitTest(_root._xmouse, _root._ymouse, true)) && (!_root.matches.hitTest(_root._xmouse, _root._ymouse, true))) {
_global.targetx = _root._xmouse;
_global.targety = _root._ymouse;
_global.action = "moving";
_global.mouse = "none";
_global.itemtograb = "none";
}
}
if (_global.mouseoveritem == "Leave Control Room") {
_global.action = "moving";
_global.itemtograb = "Leave10";
_global.targetx = 220;
_global.targety = 280;
} else if (_root.grabicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Pick Up ";
} else if (_root.lookicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Look at ";
} else if (_root.talkicon.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Talk to ";
} else if (_global.mouse == "Look at ") {
if (_global.mouseoveritem == "Comb") {
addSound("justalowlycomb.wav", "Just a lowly comb. I use it for my beard");
} else if (_global.mouseoveritem == "Razor Blade") {
addSound("myshavingrazor.wav", "My shaving razor. Haven't used it in a while");
} else if (_global.mouseoveritem == "Revolver") {
addSound("droppedgun.wav", "It looks like the guard dropped his gun");
} else if (_global.mouseoveritem == "Soap") {
addSound("lookslikethesoap.wav", "Look like the soap fell on the floor");
} else if (_global.mouseoveritem == "Broken Stuff") {
addSound("ithinkitsapileofshit.wav", "I think it's a pile of broke shit");
} else if (_global.mouseoveritem == "Matches") {
addSound("packofmatchesuse.wav", "A pack of matches. I don't think the guard will have much use for them any more");
} else if (_global.mouseoveritem == "Exit Sign") {
addSound("flammablegas.wav", "A curiously binned self-powered exit sign");
} else if (_global.mouseoveritem == "Broken Table") {
addSound("itsabrokentable.wav", "It's a broken table");
} else if (_global.mouseoveritem == "Guards Remains") {
addSound("moredisgusting.wav", "I don't think I've seen anything more disgusting than that...");
} else if (_global.mouseoveritem == "Guards Skin") {
addSound("itsskin.wav", "It's... Erm... skin... Why wold you make me look at these things?");
}
} else if (_global.mouse == "Pick Up ") {
if (_global.mouseoveritem == "Matches") {
if (_global.matches) {
addSound("alreadyhavethat.wav", "I already have that");
} else {
_global.action = "moving";
_global.itemtograb = "matches";
_global.targetx = 405;
_global.targety = 333;
}
} else if (_global.mouseoveritem != "") {
addSound("icantliftthat.wav", "I can't lift that");
}
} else if ((_level0.textmessage == "Use Matches with deodorant") || (_level0.textmessage == "Use deodorant with Matches")) {
if (_global.matches) {
_global.flamethrower = true;
_global.matches = false;
_global.deodorant = false;
_root.matches_inv._y = -32;
_root.deodorant_inv._y = -32;
_root.flamethrower_inv._y = 430;
_global.mouse = "none";
_global.mouseoveritem = "";
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
} else {
_global.action = "moving";
_global.itemtograb = "flamethrower";
_global.targetx = 405;
_global.targety = 333;
addSound("makeshiftflamethrower.wav", "Ha ahh. That's what I'm talking about. A makeshift flamethrower");
}
} else if (_global.mouse == "Cut up ") {
if ((_global.mouseoveritem == "Razor Blade") || (_global.mouseoveritem == "")) {
} else {
addSound("justwhatdoyou.wav", "Just what do you take me for?");
}
} else if (_root.soap_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Clean ";
_global.mouseoveritem = "";
} else if (_root.comb_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Comb ";
_global.mouseoveritem = "";
} else if (_root.razor_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Cut up ";
_global.mouseoveritem = "";
} else if (_root.revolver_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Shoot ";
_global.mouseoveritem = "";
} else if (_root.deodorant_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use deodorant with ";
_global.mouseoveritem = "";
} else if (_root.cleanhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Hand with ";
_global.mouseoveritem = "";
} else if (_root.dirtyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Bloody Hand with ";
_global.mouseoveritem = "";
} else if (_root.soapyhand_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Soapy Hand with ";
_global.mouseoveritem = "";
} else if (_root.exitsign_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Exit Sign with ";
_global.mouseoveritem = "";
} else if (_root.matches_inv.hitTest(_root._xmouse, _root._ymouse, true)) {
_global.mouse = "Use Matches with ";
_global.mouseoveritem = "";
_global.apeshit = true;
} else if (((_global.mouse != "none") && (_global.mouseoveritem != "")) && (_global.combo == "inactive")) {
randommessage = Math.round(Math.random() * 5);
if (randommessage == 0) {
addSound("idontthinkthatwillwork", "I don't think that will work");
} else if (randommessage == 1) {
addSound("iamnotdoingthat", "I am not doing that");
} else if (randommessage == 2) {
addSound("idrathernot", "I'd really rather not");
} else if (randommessage == 3) {
addSound("gotobejoking", "You've got to be joking");
} else if (randommessage == 4) {
addSound("areyouinsane", "Are you insane?");
}
}
}
onClipEvent (enterFrame) {
currentscale = _root.char._xscale * (_global.charsizze / 100);
if ((_global.itemtograb != "none") && (_global.action != "moving")) {
_root.char._xscale = _global.charsize;
}
if (_global.action == "moving") {
movechar();
_root.char.gotoAndStop("moving");
} else if (_global.action == "still") {
_root.char.gotoAndStop("still");
} else if ((_global.action == "getmatches") || (_global.action == "getflame")) {
_root.char.gotoAndStop("pickupf");
}
_root.char._yscale = 110 + ((_y - 267.2) / 3);
if (_root.char._xscale < 0) {
_root.char._xscale = -_root.char._yscale;
} else {
_root.char._xscale = _root.char._yscale;
}
_root.char._x = _x;
_root.char._y = _y;
}
Instance of Symbol 409 MovieClip in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 339 MovieClip "grabicon" in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 341 MovieClip "lookicon" in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Frame 54
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 439 MovieClip "pointer" in Frame 54
onClipEvent (load) {
function buttonpressed() {
if (_global.mouseoveritem != "") {
if (_global.mouse == "Pick Up ") {
gotoAndStop ("handdown");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyedown");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthdown");
} else {
gotoAndStop ("mousedown");
}
} else if (_global.mouse == "Pick Up ") {
gotoAndStop ("handup");
} else if (_global.mouse == "Look at ") {
gotoAndStop ("eyeup");
} else if (_global.mouse == "Talk to ") {
gotoAndStop ("mouthup");
} else {
gotoAndStop ("mouseup");
}
}
Mouse.hide();
startDrag ("", true);
stop();
}
onClipEvent (mouseUp) {
buttonpressed();
}
onClipEvent (keyUp) {
buttonpressed();
}
onClipEvent (mouseMove) {
buttonpressed();
}
Frame 55
if (_global.action == "still") {
if (_global.itemtograb != "none") {
if (_global.itemtograb == "Leave10") {
_global.posx = 455;
_global.posy = 300;
gotoAndPlay (26);
} else if (_global.itemtograb == "matches") {
_global.action = "getmatches";
} else if (_global.itemtograb == "flamethrower") {
_global.action = "getflame";
}
}
}
if (_global.mouse == "none") {
textmessage = _global.mouseoveritem;
} else {
textmessage = _global.mouse + _global.mouseoveritem;
}
Frame 56
gotoAndPlay (55);
Frame 58
if (_global.speakingtime < 0) {
gotoAndPlay (55);
_global.talking = false;
}
Frame 59
_global.speakingtime--;
gotoAndPlay (58);
Frame 60
bgloop.stop();
stop();
Frame 69
bgloop.stop();
stop();
Frame 77
bgloop.stop();
stop();
Frame 85
bgloop.stop();
stop();
Frame 94
bgloop.stop();
stop();
Frame 103
bgloop.stop();
stop();
Frame 110
bgloop.stop();
stop();
Frame 118
bgloop.stop();
stop();
Frame 125
bgloop.stop();
stop();
Frame 132
bgloop.stop();
stop();
Frame 141
bgloop.stop();
stop();
Frame 151
bgloop.stop();
stop();
Frame 161
bgloop.stop();
stop();
Frame 171
bgloop.stop();
stop();
Frame 179
bgloop.stop();
stop();
Frame 189
bgloop.stop();
stop();
Frame 197
bgloop.stop();
stop();
Frame 205
bgloop.stop();
stop();
Frame 211
bgloop.stop();
stop();
Symbol 155 Button
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Symbol 172 MovieClip Frame 40
stop();
Symbol 186 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 187 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 162 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 188 MovieClip Frame 101
play();
Symbol 188 MovieClip Frame 165
stop();
Symbol 194 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 200 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 202 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 210 MovieClip Frame 55
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndPlay (57);
}
Symbol 210 MovieClip Frame 56
gotoAndPlay (55);
Symbol 210 MovieClip Frame 70
_root.play();
Symbol 2137 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
if (_global.talking) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 235 MovieClip Frame 10
gotoAndPlay (1);
Symbol 254 Button
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Symbol 268 Button
on (release) {
_global.celldoor = true;
_global.itemtograb = "none";
_global.action = "still";
_global.mouse = "none";
_global.flesh = false;
_global.cleanhand = true;
_global.controldoor = true;
_quality = "LOW";
gotoAndPlay (1);
}
Symbol 273 Button
on (release) {
Mouse.show();
_global.razor = (_global.comb = (_global.soap = (_global.fabric = (_global.flesh = (_global.revolver = (_global.deodorant = (_global.cleanhand = (_global.dirtyhand = (_global.soapyhand = (_global.matches = (_global.exitsign = (_global.flamethrower = (_global.beasteatsane = (_global.beastatdoor = (_global.controldoor = (_global.exitsignabovedoor = (_global.saneatdoor = (_global.celldoor = (_global.insaneguy = false)))))))))))))))))));
_global.posx = 344;
_global.posy = 355;
_global.gamestarted = true;
_root.gotoAndPlay("intro");
}
Symbol 274 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 293 Button
on (release) {
_global.celldoor = true;
_global.itemtograb = "none";
_global.action = "still";
_global.mouse = "none";
_global.flesh = false;
_global.cleanhand = true;
_global.controldoor = true;
_quality = "LOW";
_root.play();
}
Symbol 294 Button
on (release) {
_quality = "HIGH";
}
Symbol 295 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 296 Button
on (release) {
getURL ("http://www.rustygames.com/", "_blank");
}
Symbol 297 Button
on (release) {
getURL ("http://www.partytuesday.co.uk", "_blank");
}
Symbol 298 Button
on (release) {
gotoAndPlay (37);
}
Symbol 299 Button
on (release) {
_quality = "LOW";
}
Symbol 334 Button
on (release) {
switch (_global.scene) {
case 1 :
_root.gotoAndPlay("Scene1Start");
break;
case 2 :
_root.gotoAndPlay("Scene2Start");
break;
case 3 :
_root.gotoAndPlay("Scene3Start");
break;
case 4 :
_root.gotoAndPlay("Scene4Start");
break;
case 5 :
_root.gotoAndPlay("Scene5Start");
break;
case 6 :
_root.gotoAndPlay("Scene6Start");
break;
case 7 :
_root.gotoAndPlay("Scene7Start");
break;
default :
_root.play();
}
}
Symbol 336 Button
on (release) {
_global.celldoor = true;
_global.itemtograb = "none";
_global.action = "still";
_global.mouse = "none";
_global.cleanhand = true;
_global.beastatdoor = true;
_global.matches = true;
_global.deodorant = true;
_quality = "LOW";
_root.play();
}
Symbol 337 Button
on (release) {
Mouse.show();
_global.razor = (_global.comb = (_global.soap = (_global.fabric = (_global.flesh = (_global.revolver = (_global.deodorant = (_global.cleanhand = (_global.dirtyhand = (_global.soapyhand = (_global.matches = (_global.exitsign = (_global.flamethrower = false))))))))))));
_global.gamestarted = true;
_root.play();
}
Symbol 349 Button
on (release) {
play();
}
Instance of Symbol 248 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 277 MovieClip in Symbol 350 MovieClip Frame 27
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
mediumq._alpha = 50;
lowq._alpha = 50;
highq._alpha = 100;
} else if (_quality == "MEDIUM") {
mediumq._alpha = 100;
lowq._alpha = 50;
highq._alpha = 50;
} else if (_quality == "LOW") {
mediumq._alpha = 50;
lowq._alpha = 100;
highq._alpha = 50;
}
}
Symbol 350 MovieClip Frame 35
if (_quality == "HIGH") {
mediumq._alpha = 50;
lowq._alpha = 50;
highq._alpha = 100;
} else if (_quality == "MEDIUM") {
mediumq._alpha = 100;
lowq._alpha = 50;
highq._alpha = 50;
} else if (_quality == "LOW") {
mediumq._alpha = 50;
lowq._alpha = 100;
highq._alpha = 50;
}
Instance of Symbol 335 MovieClip in Symbol 350 MovieClip Frame 35
onClipEvent (load) {
if (!_global.gamestarted) {
this._visible = false;
}
}
Symbol 350 MovieClip Frame 36
gotoAndPlay (35);
Instance of Symbol 341 MovieClip "lookicon" in Symbol 350 MovieClip Frame 39
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 343 MovieClip "talkicon" in Symbol 350 MovieClip Frame 39
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Symbol 350 MovieClip Frame 50
stop();
Symbol 350 MovieClip Frame 62
gotoAndPlay (35);
Symbol 359 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 19
if (_global.itemtograb == "razor") {
_root.razor._visible = false;
_root.razor._x = -32;
_root.razor_inv._y = 430;
_global.razor = true;
} else if (_global.itemtograb == "comb") {
_root.comb._visible = false;
_root.comb._x = -32;
_root.comb_inv._y = 430;
_global.comb = true;
}
Symbol 393 MovieClip Frame 25
_global.itemtograb = "none";
_global.action = "still";
_global.combo = "inactive";
_global.mouse = "none";
Symbol 394 MovieClip Frame 21
if (_global.itemtograb == "revolver") {
_global.revolver = true;
_root.revolver._y = -32;
_root.revolver_inv._y = 430;
} else if (_global.itemtograb == "matches") {
_global.matches = true;
_root.matches._y = -32;
_root.matches_inv._y = 430;
} else if (_global.itemtograb == "flamethrower") {
_global.flamethrower = true;
_global.deodorant = false;
_root.deodorant_inv._y = 512;
_root.matches._x = -32;
_root.flamethrower_inv._y = 430;
}
Symbol 394 MovieClip Frame 28
_global.itemtograb = "none";
_global.action = "still";
_global.combo = "inactive";
_global.mouse = "none";
Instance of Symbol 401 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Cut up ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 378 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Clean ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 399 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Comb with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 411 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Fabric with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 413 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Burning Flesh with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 417 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Shoot ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 415 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use deodorant with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Bloody Hand with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 421 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Hand with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 423 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Soapy Hand with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 425 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Exit Sign with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 427 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_global.mouse == "Use Matches with ") {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 429 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.mouse == "Use Makeshift Flamethrower on ") {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "chupamouth" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 444 MovieClip "chupamouthstill" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.guytalking == false) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 445 MovieClip Frame 2
gotoAndPlay (1);
Symbol 491 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 2
stop();
Symbol 518 MovieClip Frame 3
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 1
stop();
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 636 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 641 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 1
stop();
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 31
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 60
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 90
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 91
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 120
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 121
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 150
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 151
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 180
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 181
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 210
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 211
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 240
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 241
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 270
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 271
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 300
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 301
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 330
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 331
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 360
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 361
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 390
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 737 MovieClip Frame 391
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 738 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 2
stop();
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 747 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 234 MovieClip "speakingmouth" in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.guytalking) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 749 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 2
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 341
_level0.gotoAndPlay("Scene4Start");
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1349 MovieClip Frame 2294
_global.gamestarted = false;
_level0.gotoAndPlay("mainmenu");
Symbol 1431 MovieClip Frame 196
_global.soapyhand = false;
_global.cleanhand = true;
_level0.gotoAndPlay("Scene1Start");
Symbol 1435 MovieClip Frame 1
stop();
Symbol 1455 MovieClip Frame 122
_level0.gotoAndPlay("Scene2Start");
Symbol 1496 MovieClip Frame 300
_global.dirtyhand = true;
_level0.gotoAndPlay("Scene3Start");
Symbol 1505 MovieClip Frame 40
_global.exitsign = true;
_level0.gotoAndPlay("Scene6Start");
Symbol 1517 MovieClip Frame 150
_global.saneguard = true;
_level0.gotoAndPlay("Scene6Start");
Instance of Symbol 1521 MovieClip in Symbol 1553 MovieClip Frame 1
onClipEvent (load) {
if (_global.celldoor) {
gotoAndStop ("dooropen");
}
}
Symbol 1553 MovieClip Frame 114
_global.fabric = true;
_level0.gotoAndPlay("Scene1Start");
Instance of Symbol 359 MovieClip in Symbol 1556 MovieClip Frame 1
onClipEvent (load) {
if (_global.celldoor == true) {
gotoAndStop ("dooropen");
}
}
Symbol 1570 MovieClip Frame 62
_global.flesh = true;
_global.fabric = false;
_level0.gotoAndPlay("Scene1Start");
Symbol 1591 MovieClip Frame 140
_global.controldoor = true;
_level0.gotoAndPlay("Scene4Start");
Symbol 1593 MovieClip Frame 140
_level0.gotoAndPlay("Scene4Start");
Symbol 1596 MovieClip Frame 140
_level0.gotoAndPlay("Scene4Start");
Symbol 1601 MovieClip Frame 140
_level0.gotoAndPlay("Scene4Start");
Symbol 1606 MovieClip Frame 42
_global.exitsignabovedoor = true;
_global.exitsign = false;
_level0.gotoAndPlay("Scene4Start");
Symbol 1742 MovieClip Frame 707
_global.beastatdoor = true;
_level0.gotoAndPlay("Scene4Start");
Symbol 1921 MovieClip Frame 1
sfx = new Sound(this);
Symbol 1921 MovieClip Frame 172
sfx.attachSound("handgun.wav");
sfx.start(0, 1);
Symbol 1921 MovieClip Frame 179
sfx.attachSound("handgun.wav");
sfx.start(0, 1);
Symbol 1921 MovieClip Frame 187
sfx.attachSound("handgun.wav");
sfx.start(0, 1);
Symbol 1921 MovieClip Frame 346
sfx.attachSound("SPLAT1.wav");
sfx.start(0, 1);
sfx.attachSound("SPLAT1.wav");
sfx.start(0, 1);
Symbol 1921 MovieClip Frame 375
_global.soap = true;
_global.itemtograb = "none";
_global.action = "still";
_global.combo = "inactive";
_global.mouse = "none";
_global.guystopmed = true;
_level0.gotoAndPlay("Scene1Start");
Symbol 1925 MovieClip Frame 93
_global.celldoor = true;
_global.itemtograb = "none";
_global.action = "still";
_global.mouse = "none";
_global.flesh = false;
_level0.gotoAndPlay("Scene1Start");
Symbol 1996 MovieClip Frame 340
_global.saneatdoor = true;
_global.sanedoor = true;
_global.targetx = 77;
_global.targety = 272;
_level0.gotoAndPlay("Scene4Start");
Instance of Symbol 2024 MovieClip in Symbol 2025 MovieClip Frame 1
on (press) {
getURL ("http://www.rustygames.com", "_blank");
}
Symbol 2028 Button
on (release) {
getURL ("http://www.partytuesday.co.uk", "_blank");
}
Symbol 2048 Button
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Symbol 2097 MovieClip Frame 1
stop();
Symbol 2113 MovieClip Frame 1
stop();
Symbol 2136 MovieClip Frame 966
_level0.gotoAndPlay("Scene1Start");