Frame 1
function gomrSimon() {
getURL ("http://www.mrsimon.co.uk", "_blank");
if (_root.gameplay) {
_root.queueAdd(speak, "Hey, thanks. Hardly anyone clicks that button! I hope you enjoy.", 3);
}
}
function gong() {
getURL ("http://www.newgrounds.com", "_blank");
if (_root.gameplay) {
_root.queueAdd(speak, "I hope you enjoy my site.", 2);
_root.queueAdd(speak, "If you dont, I shall be forced to kill you.", 2);
}
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
BPFunc = new ContextMenuItem("mrSimon.co.uk", gomrSimon);
MENU.customItems.push(BPFunc);
BPFunc = new ContextMenuItem("Newgrounds.com", gong);
MENU.customItems.push(BPFunc);
_root.menu = MENU;
MovieClip.prototype.useHandCursor = (Button.prototype.useHandCursor = false);
MovieClip.prototype.tabEnabled = (Button.prototype.tabEnabled = false);
Instance of Symbol 39 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
this._visible = 0;
this.versionnum = substring(getVersion(), 5, 1);
if (this.versionnum >= 8) {
_root.play();
} else {
this._visible = 1;
}
}
Frame 2
stop();
Instance of Symbol 57 MovieClip in Frame 2
onClipEvent (load) {
_root.stop();
}
Frame 3
function invcheck(itemnum) {
var _local2 = 0;
while (_local2 < _root.inventory.length) {
if (_root.inventory[_local2] == itemnum) {
return(true);
}
_local2++;
}
return(false);
}
function usedinvcheck(useditemnum) {
var _local2 = 0;
while (_local2 < _root.inventoryused.length) {
if (_root.inventoryused[_local2] == useditemnum) {
return(true);
}
_local2++;
}
}
function cutscene(footage, playmode) {
if (playmode == 1) {
_root.HUD.cutscene.gotoAndStop(footage);
removeMovieClip(cutscenehandler);
var cutscenehandler = _root.createEmptyMovieClip("cutscenehandler", _root.getNextHighestDepth());
cutscenehandler.onEnterFrame = function () {
if (_root.cutscenefin == 1) {
_root.HUD.cutscene.gotoAndStop(1);
_root.cutscenefin = 0;
_root.queueRemove();
}
};
} else {
_root.HUD.cutscene.gotoAndStop(footage);
removeMovieClip(cutscenehandler);
var cutscenehandler = _root.createEmptyMovieClip("cutscenehandler", _root.getNextHighestDepth());
cutscenehandler.onEnterFrame = function () {
if (_root.cutscenefin == 1) {
_root.HUD.cutscene.gotoAndStop(1);
_root.cutscenefin = 0;
}
};
_root.queueInstantRemove = true;
}
}
function roomChange(room, player, playerx, playery, horizony, regulary, globalscale) {
_root.gotoAndStop(room);
_root.globalscale = globalscale;
_root.horizony = horizony;
_root.regulary = regulary;
player._x = playerx;
player._y = playery;
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
_root.queueInstantRemove = true;
}
function animChange(char, anim) {
char.gotoAndStop(anim);
_root.queueInstantRemove = true;
}
function valueChange(namek, valuek) {
_root[namek] = valuek;
_root.queueInstantRemove = true;
}
function speak(fulltext, char) {
var _local3 = _root.attachMovie("talk", _root.talkspeech, this.getNextHighestDepth());
_local3.char = char;
switch (char) {
case 0 :
_local3.talkperson = "Notice / Debug";
break;
case 1 :
_local3.talkperson = "Patrick Stewart";
break;
case 2 :
_local3.talkperson = "Morgan Freeman";
break;
default :
_local3.talkperson = "Some guy";
}
_local3.talkfull = fulltext;
if (char != 0) {
_local3.talkpic.gotoAndStop(char);
} else {
_local3.talkpic._visible = 0;
}
_local3._x = 280;
_local3._y = 340;
_local3.talkdisplay = "";
_local3.timer = 0;
_local3._xscale = 0;
_local3._yscale = 0;
_local3.talknotice._visible = 0;
createEmptyMovieClip("talksoundobj", _root.getNextHighestDepth());
talksound = new Sound(_root.talksoundobj);
talksound.attachSound("sound_text");
talksound.start();
_local3.onEnterFrame = function () {
i = 0;
while (i <= (_root.gamespeed * 0.05)) {
if (this.timer < this.talkfull.length) {
this.talkdisplay = this.talkdisplay + this.talkfull.charAt(this.timer);
if (random(6) == 1) {
talksound.start();
}
} else {
if (_root.HUD.click._visible == 0) {
talksound.attachSound("sound_textend");
talksound.start();
}
this.talkdisplay = this.talkfull;
_root.HUD.click._visible = 1;
}
this.timer++;
this._xscale = (this._xscale + 100) / 2;
this._yscale = this._xscale;
if (this._xscale >= 99) {
this._xscale = 100;
this._yscale = 100;
}
i++;
}
};
_local3.onMouseDown = function () {
if (this.timer < this.talkfull.length) {
this.timer = this.talkfull.length;
_root.HUD.click._visible = 1;
} else {
_root.queueRemove();
_root.HUD.click._visible = 0;
this.removeMovieClip();
}
};
}
function waitforclick() {
var _local3 = _root.createEmptyMovieClip("clickhandler", _root.getNextHighestDepth());
_root.HUD.click._visible = 1;
_local3.onMouseDown = function () {
_root.queueRemove();
_root.HUD.click._visible = 0;
this.removeMovieClip();
};
}
function fullImage(image) {
if (image == undefined) {
_root.HUD.image.gotoAndStop("none");
} else {
_root.HUD.image.gotoAndStop(image);
}
_root.queueInstantRemove = true;
}
function pickup(id, removemc) {
if (removemc) {
removemc.swapDepths(_root.getNextHighestDepth());
removeMovieClip(removemc);
}
_root.createEmptyMovieClip("sfxitem", _root.getNextHighestDepth());
_root.sfxitemhandler = new Sound(_root.sfxitem);
_root.sfxitemhandler.attachSound("sfx_item");
_root.sfxitemhandler.start(0, 1);
_root.inventory.push(id);
_root.inventory.sort();
var _local3 = _root.createEmptyMovieClip("invdelay", _root.getNextHighestDepth());
_local3.onEnterFrame = function () {
if (_root.sfxitemhandler.position >= 600) {
this.removeMovieClip();
}
};
_root.queueInstantRemove = true;
}
function pickupNQ(id, removemc) {
if (removemc) {
removemc.swapDepths(_root.getNextHighestDepth());
removeMovieClip(removemc);
}
_root.createEmptyMovieClip("sfxitem", _root.getNextHighestDepth());
_root.sfxitemhandler = new Sound(_root.sfxitem);
_root.sfxitemhandler.attachSound("sfx_item");
_root.sfxitemhandler.start(0, 1);
_root.inventory.push(id);
_root.inventory.sort();
var _local3 = _root.createEmptyMovieClip("invdelay", _root.getNextHighestDepth());
_local3.onEnterFrame = function () {
if (_root.sfxitemhandler.position >= 600) {
this.removeMovieClip();
}
};
}
function remove(item) {
okeyday = 0;
i = 0;
while ((i < _root.inventory.length) && (okeyday == 0)) {
if (_root.inventory[i] == item) {
_root.itemselected = 0;
_root.inventory.splice(i, 1);
_root.inventoryused.push(item);
okeyday = 1;
}
i++;
}
_root.queueInstantRemove = true;
}
function destroy(mc) {
mc.swapDepths(_root.getNextHighestDepth());
removeMovieClip(mc);
_root.queueInstantRemove = true;
}
function sfxplay(track, volumev, queue) {
_root.sfxhandler.stop();
_root.createEmptyMovieClip("sfxsfx", _root.getNextHighestDepth());
_root.sfxhandler = new Sound("sfxsfx");
_root.sfxhandler.attachSound("sfx_" + track);
_root.sfxhandler.setVolume(volumev);
_root.sfxhandler.onSoundComplete = function () {
this.removeMovieClip();
};
_root.sfxhandler.start(0, 1);
if (queue) {
_root.queueInstantRemove = true;
}
}
function musicstart(track, loop, volumev) {
_root.musichandler.stop();
_root.musichandler.removeMovieClip();
_root.createEmptyMovieClip("sfxmusic", _root.getNextHighestDepth());
_root.musichandler = new Sound(_root.sfxmusic);
_root.musichandler.attachSound("music_" + track);
_root.musichandler.setVolume(volumev);
if (loop == 1) {
_root.musichandler.start(0, 1000000);
} else {
_root.musichandler.start(0, 1);
}
_root.queueInstantRemove = true;
}
function musicstartNQ(track, loop, volumev) {
_root.musichandler.stop();
_root.musichandler.removeMovieClip();
_root.createEmptyMovieClip("sfxmusic", _root.getNextHighestDepth());
_root.musichandler = new Sound(_root.sfxmusic);
_root.musichandler.attachSound("music_" + track);
_root.musichandler.setVolume(volumev);
if (loop == 1) {
_root.musichandler.start(0, 1000000);
} else {
_root.musichandler.start(0, 1);
}
}
function musicstop() {
var _local3 = _root.createEmptyMovieClip("musicstoppage", _root.getNextHighestDepth());
_local3.onEnterFrame = function () {
if (_root.musichandler.getVolume() <= 5) {
_root.musichandler.stop();
_root.musichandler.removeMovieClip();
this.removeMovieClip();
}
_root.musichandler.setVolume(_root.musichandler.getVolume() - 5);
};
_root.queueInstantRemove = true;
}
function moveplayer(obj, xpos, ypos, dialog) {
var movehandler = _root.createEmptyMovieClip("movehandler", _root.getNextHighestDepth());
movehandler.obj = obj;
movehandler.xpos = xpos;
movehandler.ypos = ypos;
movehandler.timer = 1;
movehandler.dialog = dialog;
if (movehandler.xpos < obj._x) {
obj.point = 1;
} else {
obj.point = -1;
}
movehandler.onEnterFrame = function () {
oldx = obj._x;
oldy = obj._y;
obj.persp = (obj._y - _root.horizony) / (_root.regulary - _root.horizony);
obj._yscale = obj.persp * _root.globalscale;
obj._xscale = (obj.persp * _root.globalscale) * obj.point;
obj._x = obj._x + (((this.xpos - obj._x) * ((this.timer / 5) / ((120 - _root.gamespeed) / 5))) * obj.persp);
obj._y = obj._y + (((this.ypos - obj._y) * ((this.timer / 5) / ((120 - _root.gamespeed) / 5))) * obj.persp);
if (Math.abs(obj._x - this.xpos) < 1) {
if (Math.abs(obj._y - this.ypos) < 1) {
obj._x = this.xpos;
obj._y = this.ypos;
obj.gotoAndStop("static");
if (movehandler.dialog != 1) {
_root.queueRemove();
}
this.removeMovieClip();
}
} else if (((((oldx - obj._x) > 15) || ((oldx - obj._x) < -15)) || ((oldy - obj._y) > 15)) || ((oldy - obj._y) < -15)) {
obj.gotoAndStop("run");
} else {
obj.gotoAndStop("walk");
}
this.timer++;
};
if (movehandler.dialog == 1) {
_root.queueRemove();
}
}
function delay(frames) {
var _local3 = _root.createEmptyMovieClip("delayhandler", _root.getNextHighestDepth());
_local3.delaytimer = 0;
_local3.delaylimit = (frames * (110 / (_root.gamespeed + 10))) / 4;
_local3.onEnterFrame = function () {
if (this.delaytimer < this.delaylimit) {
this.delaytimer++;
} else {
_root.queueRemove();
this.removeMovieClip();
}
};
}
function queueplay() {
_root.play();
_root.queueInstantRemove = true;
}
function queueRemove() {
_root.queue.shift();
_root.queueWaiting = false;
if (!_root.queue.length) {
_root.queueFilled = false;
}
}
function queueAdd(inFunction, inValue1, inValue2, inValue3, inValue4, inValue5, inValue6) {
_root.queueFilled = true;
_root.queue.push([inFunction, inValue1, inValue2, inValue3, inValue4, inValue5, inValue6]);
}
function choiceAdd(choiceNo, inFunction, inValue1, inValue2, inValue3, inValue4, inValue5) {
if (!_root["choiceno" + choiceNo]) {
_root["choiceno" + choiceNo] = new Array();
}
_root["choiceno" + choiceNo].push([inFunction, inValue1, inValue2, inValue3, inValue4, inValue5]);
_root.queueInstantRemove = true;
}
function choiceClear() {
var _local2 = 0;
while (_local2 < 20) {
delete _root["choiceno" + _local2];
_local2++;
}
_root.queueInstantRemove = true;
}
function choiceQueue(choice) {
_root.queue.shift();
_root["choiceno" + choice].reverse();
_root["choiceno" + choice].push([_root.delay, 10]);
while (_root["choiceno" + choice].length) {
_root.queue.unshift([_root["choiceno" + choice][0][0], _root["choiceno" + choice][0][1], _root["choiceno" + choice][0][2], _root["choiceno" + choice][0][3], _root["choiceno" + choice][0][4], _root["choiceno" + choice][0][5], _root["choiceno" + choice][0][6]]);
_root["choiceno" + choice].shift();
}
_root.queueFilled = true;
_root.queueInstantRemove = true;
}
_root.inventory = new Array();
_root.inventoryused = new Array();
_root.itemselected = 0;
_root.gamespeed = 50;
_root.animbody = "regular";
_root.animhead = "regular";
_root.runFunction = undefined;
_root.queueFilled = false;
_root.queueWaiting = false;
_root.queueInstantRemove = false;
_root.queue = new Array();
_root.onEnterFrame = function () {
if (_root.queueInstantRemove == true) {
_root.queueRemove();
_root.queueInstantRemove = false;
}
if (_root.queueFilled) {
if (!_root.queueWaiting) {
queue[0][0](queue[0][1], queue[0][2], queue[0][3], queue[0][4], queue[0][5], queue[0][6]);
_root.queueWaiting = true;
}
} else if (!_root.queue.length) {
_root.runFunction();
_root.queueWaiting = false;
}
};
Frame 4
_root.runFunction = undefined;
_root.queueAdd(cutscene, "mrsimonlogo", 1);
_root.queueAdd(cutscene, "morgantitle", 1);
_root.queueAdd(speak, "Hi. I'm Patrick Stewart.", 1);
_root.queueAdd(speak, "You are accomplished african american actor, Morgan Freeman.", 1);
_root.queueAdd(speak, "It's a Sunday morning. You expect to wake up in your white suede four poster bed,", 1);
_root.queueAdd(speak, "but instead you find yourself waking bleary-eyed on the floor of a makeshift prison cell.", 1);
_root.queueAdd(roomChange, "start", _root.morgan, -105, 290, -1000000, 0, 100);
_root.queueAdd(cutscene, "fadeout", 1);
stop();
_root.musicroom = "sowhat";
but.useHandCursor = false;
but.tabEnabled = false;
Frame 5
_root.stop();
if (_root.gamestage == undefinded) {
_root.gamestage = 1;
_root.gameplay = 1;
_root.queueAdd(speak, "You feel you maybe ought to panic...", 1);
_root.queueAdd(speak, "...but you find that you're too awesome to do so....", 1);
_root.queueAdd(speak, "...and also you're used to this kind of thing as you usually get kidnapped three or four times a week...", 1);
_root.queueAdd(speak, "...because you're so cool.", 1);
_root.queueAdd(moveplayer, morgan, 110, 290);
_root.queueAdd(speak, "You decide that you ought to escape because children will miss you.", 1);
_root.queueAdd(musicstart, _root.musicroom, 1, 100);
}
_root.musicroom = "sowhat";
_root.horizony = -1000000;
_root.regulary = 0;
_root.globalscale = 100;
Frame 6
_root.musicroom = "sowhat";
_root.horizony = -1000000;
_root.regulary = 0;
_root.globalscale = 100;
Instance of Symbol 225 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.invcheck(1) || (_root.usedinvcheck(1))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 19 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.animhead);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.animhead);
}
Symbol 39 MovieClip Frame 16
stop();
Instance of Symbol 47 MovieClip "click" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 54 Button
on (release) {
_root.play();
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) >= 1) {
this.gotoAndStop(2);
}
}
Symbol 57 MovieClip Frame 26
stop();
Symbol 68 MovieClip Frame 1
stop();
Instance of Symbol 71 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.animbody);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.animbody);
}
Symbol 87 MovieClip Frame 1
stop();
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20));
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 118 Button
on (press) {
if (_root.options == 1) {
this.startDrag();
}
}
on (release, releaseOutside) {
this.stopDrag();
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
this._x = (_root.gamespeed * 2) - 55;
}
onClipEvent (enterFrame) {
this._y = -35;
if (this._x < -55) {
this._x = -55;
} else if (this._x > 145) {
this._x = 145;
}
_root.gamespeed = (this._x + 55) / 2;
}
Symbol 146 MovieClip Frame 22
stop();
Symbol 149 MovieClip Frame 266
stop();
_root.cutscenefin = 1;
Symbol 155 MovieClip Frame 105
stop();
_root.cutscenefin = 1;
Symbol 156 MovieClip Frame 16
stop();
_root.cutscenefin = 1;
Symbol 157 MovieClip Frame 16
stop();
_root.cutscenefin = 1;
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
stop();
Symbol 158 MovieClip Frame 3
stop();
Symbol 158 MovieClip Frame 4
stop();
Symbol 158 MovieClip Frame 5
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
Symbol 192 Button
on (press) {
if (((!_root.queueFilled) && (_root.options != 1)) && (_root.inventory[this.num] != undefined)) {
if (_root.itemselected == _root.inventory[this.num]) {
_root.itemselected = 0;
this.base.select.play();
this.icon.stopDrag();
this.icon._x = 0;
this.icon._y = 0;
_root.sfxplay("inv_drop", 100);
} else if (_root.itemselected != 0) {
_root.queueAdd(_root.speak, "Morgan cannot use these together.", 1);
_root.queueAdd(_root.delay, 10);
} else {
_root.itemselected = Number(_root.inventory[this.num]);
this.base.select.play();
this.icon._x = this._xmouse;
this.icon._y = this._ymouse;
this.icon.startDrag();
_root.sfxplay("inv_pickup", 100);
}
}
}
Instance of Symbol 185 MovieClip "base" in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.num + 1);
}
Instance of Symbol 186 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.num + 1);
}
Instance of Symbol 190 MovieClip "icon_reflect" in Symbol 193 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Number(_root.inventory[_parent.num]));
this._visible = _parent.icon._visible;
if (_root.itemselected == _root.inventory[_parent.num]) {
this._visible = 0;
}
}
Instance of Symbol 190 MovieClip "icon" in Symbol 193 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.itemselected == 0) {
this.stopDrag();
this._x = 0;
this._y = 0;
}
}
onClipEvent (enterFrame) {
_parent._alpha = _parent._alpha + ((_parent.alphatarget - _parent._alpha) * 0.3);
this.gotoAndStop(Number(_root.inventory[_parent.num]));
if (_root.inventory[_parent.num] != undefined) {
this._visible = 1;
_parent.alpham = 1;
} else {
this._visible = 0;
_parent.alpham = 0.2;
}
if (!_root.queueFilled) {
_parent.alphatarget = 100 * _parent.alpham;
} else {
_parent.alphatarget = 20 * _parent.alpham;
}
}
Symbol 195 Button
on (release) {
if ((!_root.queueFilled) && (_root.cellphone != 1)) {
switch (_root.options) {
case 0 :
_root.options = 1;
this.options.alphatarget = 100;
break;
case 1 :
_root.options = 0;
this.options.alphatarget = 0;
break;
default :
_root.options = 1;
this.options.alphatarget = 100;
}
}
}
Instance of Symbol 121 MovieClip "options" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
this.alphatarget = 0;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha + ((this.alphatarget - this._alpha) * 0.6);
if (this._alpha <= 1) {
this._visible = 0;
} else {
this._visible = 1;
}
}
Instance of Symbol 193 MovieClip "inv1" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 10;
}
Instance of Symbol 193 MovieClip "inv2" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 9;
}
Instance of Symbol 193 MovieClip "inv3" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 8;
}
Instance of Symbol 193 MovieClip "inv4" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 7;
}
Instance of Symbol 193 MovieClip "inv5" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 6;
}
Instance of Symbol 193 MovieClip "inv6" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 5;
}
Instance of Symbol 193 MovieClip "inv7" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 4;
}
Instance of Symbol 193 MovieClip "inv8" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 3;
}
Instance of Symbol 193 MovieClip "inv9" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 2;
}
Instance of Symbol 193 MovieClip "inv10" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 1;
}
Instance of Symbol 193 MovieClip "inv11" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this.num = 0;
}
Instance of Symbol 47 MovieClip "click" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 210 MovieClip "cursor" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
stop();
this._xscale = 200;
this._yscale = 200;
}
onClipEvent (enterFrame) {
if ((((this._currentframe != 1) && (!_root.queueFilled)) && (_root.cellphone != 1)) && (_root.options != 1)) {
this._visible = 1;
} else {
this._visible = 0;
}
this._x = (_root.morgan._x + (this._xscale * 0.2)) - 275;
this._y = (_root.morgan._y - (200 * (_root.globalscale / 100))) - 200;
if ((this._xscale == 200) && (_root.morgan._x > 400)) {
this._xscale = -200;
} else if ((this._xscale == -200) && (_root.morgan._x < 150)) {
this._xscale = 200;
}
}
Symbol 214 Button
on (release) {
if (!_root.queueFilled) {
switch (_root.pluglooked) {
case 1 :
_root.queueAdd(moveplayer, morgan, 175, 300);
_root.queueAdd(moveplayer, morgan, 131, 300);
_root.queueAdd(animChange, morgan, "socketshock");
_root.queueAdd(speak, "You stick your fingers in, in an attempt to kill yourself.", 1);
_root.queueAdd(delay, 20);
_root.queueAdd(speak, "But then you remember that you can't ever die.", 1);
_root.queueAdd(delay, 5);
_root.queueAdd(speak, "However it does make your hair more awesome than usual.", 1);
_root.queueAdd(delay, 40);
_root.pluglooked = 2;
break;
case 2 :
_root.queueAdd(speak, "The electricity has made your arm rigid. You cannot remove your finger.", 1);
_root.queueAdd(delay, 2);
break;
default :
_root.queueAdd(moveplayer, morgan, 131, 300);
_root.queueAdd(speak, "An electric outlet.", 1);
_root.queueAdd(delay, 2);
_root.pluglooked = 1;
}
}
}
on (rollOver) {
if (_root.pluglooked != 1) {
_root.HUD.cursor.gotoAndStop("examine");
} else {
_root.HUD.cursor.gotoAndStop("use");
}
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 216 Button
on (release) {
if (_root.pluglooked == 2) {
if (!_root.queueFilled) {
_root.queueAdd(animChange, morgan, "socketrelay");
_root.queueAdd(speak, "You run the electric current through your super-awesome body and into a nearby bar.", 1);
_root.queueAdd(cutscene, "fadein", 1);
_root.queueAdd(valueChange, "animhead", "hairfuzz");
_root.queueAdd(roomChange, "prison", _root.morgan, 260, 330, -1000000, 0, 100);
_root.queueAdd(cutscene, "fadeout", 0);
_root.queueAdd(moveplayer, morgan, 285, 350);
_root.queueAdd(animChange, morgan, "static");
_root.queueAdd(speak, "It melts into a nice little puddle.", 1);
}
} else if (!_root.queueFilled) {
_root.queueAdd(moveplayer, morgan, _root._xmouse, 300);
_root.queueAdd(delay, 2);
}
}
on (rollOver) {
if (_root.pluglooked == 2) {
_root.HUD.cursor.gotoAndStop("use");
} else {
_root.HUD.cursor.gotoAndStop("walk");
}
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 218 Button
on (release) {
if (!_root.queueFilled) {
_root.queueAdd(speak, "Your way is blocked by iron bars.", 1);
_root.queueAdd(delay, 10);
}
}
on (rollOver) {
_root.HUD.cursor.gotoAndStop("walk");
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 220 Button
on (release) {
if (!_root.queueFilled) {
_root.queueAdd(speak, "Peering through them you can see a small desk with nothing on it.", 1);
_root.queueAdd(delay, 10);
}
}
on (rollOver) {
_root.HUD.cursor.gotoAndStop("examine");
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 227 Button
on (release) {
if ((!_root.queueFilled) && (_root.cellphone != 1)) {
_root.queueAdd(moveplayer, morgan, 480, 295);
if (_root.usedinvcheck(2)) {
if (_root.itemselected != 0) {
trace("ITEM SELECTED");
_root.queueAdd(speak, "The doors already unlocked.", 1);
} else {
_root.queueAdd(sfxplay, "door_close", 100, 1);
_root.queueAdd(roomChange, "fulp_corridor", _root.morgan, 105, 290, 100, 350, 100);
_root.queueAdd(musicstart, "speedy", 1, 100);
}
} else if (_root.itemselected == 2) {
_root.queueAdd(musicstop);
_root.queueAdd(cutscene, "credits_mrsimon", 0);
_root.queueAdd(remove, 2);
_root.queueAdd(speak, "Aha, this key fits. Now to begin my quest of wonder.", 1);
_root.queueAdd(sfxplay, "door_close", 100, 1);
_root.queueAdd(roomChange, "fulp_corridor", _root.morgan, 105, 290, 100, 350, 100);
_root.queueAdd(musicstart, "speedy", 1, 100);
_root.queueAdd(speak, "Oh my gosh! mrSimon has'nt created this room yet!", 1);
_root.queueAdd(speak, "I'm trapped in a never ending void of endless space.", 1);
_root.queueAdd(speak, "I'll get right on it.", 3);
_root.queueAdd(fullImage, "wipend");
_root.queueAdd(waitforclick);
_root.queueAdd(fullImage);
_root.queueAdd(delay, 25);
} else if (_root.itemselected != 0) {
trace(_root.itemselected);
_root.queueAdd(speak, "I cant use that with this.", 1);
} else {
_root.stop();
_root.runFunction = undefined;
_root.queueAdd(sfxplay, "sfx_door_close", 100, 1);
_root.queueAdd(speak, "Damn, locked. I must have left it locked from last night.", 1);
_root.queueAdd(speak, "God damn, that pesky brother of mine would'nt give me any privacy.", 1);
_root.queueAdd(delay, 20);
if (_root.invcheck(2)) {
_root.queueAdd(speak, "Anyways.. moving on, I found some key under my pillow", 1);
_root.queueAdd(speak, "It'd make perfect sense to give that a try.", 1);
_root.queueAdd(speak, "Take the key from the inventory at the bottom of the screen.", 1);
_root.queueAdd(speak, "Then click the door to use it.", 1);
} else {
_root.queueAdd(speak, "Anyways.. moving on, I ought to find the key.", 1);
_root.queueAdd(speak, "It must be somewhere in this room.", 1);
}
}
_root.queueAdd(delay, 10);
}
}
on (rollOver) {
if (_root.itemselected == 2) {
_root.HUD.cursor.gotoAndStop("use");
} else if (_root.usedinvcheck(2)) {
_root.HUD.cursor.gotoAndStop("walk");
} else {
_root.HUD.cursor.gotoAndStop("examine");
}
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 229 Button
on (release) {
if (!_root.queueFilled) {
_root.queueAdd(moveplayer, morgan, _root._xmouse, _root._ymouse);
}
}
on (rollOver) {
_root.HUD.cursor.gotoAndStop("walk");
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 230 Button
on (release) {
if (!_root.queueFilled) {
if (_root.itemselected != 0) {
_root.queueAdd(speak, "The cell looks fine as it is.", 1);
} else {
_root.queueAdd(moveplayer, morgan, _root._xmouse, 350);
_root.queueAdd(speak, "A make-shift prison cell.", 1);
}
_root.queueAdd(delay, 10);
}
}
on (rollOver) {
_root.HUD.cursor.gotoAndStop("examine");
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 231 Button
on (release) {
if (!_root.queueFilled) {
_root.queueAdd(moveplayer, morgan, 385, 360);
if (_root.itemselected != 0) {
_root.queueAdd(speak, "You'd rather keep that. Besides, the shit would ruin it.", 1);
} else if (_root.invcheck(2) || (_root.usedinvcheck(2))) {
_root.queueAdd(speak, "There is nothing in the drawer, apart from your shit.", 1);
} else {
_root.queueAdd(speak, "You open the drawer and discover some face paint.", 1);
_root.queueAdd(valueChange, "animhead", "pikachu");
_root.queueAdd(speak, "You paint your face to look like Pikachu.", 1);
_root.queueAdd(speak, "However your electric powers have gone by now so you just look kind of silly.", 1);
_root.queueAdd(valueChange, "animbody", "dollstring");
_root.queueAdd(speak, "You also find a barbie doll and a pice of blue string.", 1);
_root.queueAdd(speak, "Then you do a shit in the drawer.", 1);
_root.queueAdd(pickup, 1);
_root.queueAdd(pickup, 2);
}
_root.queueAdd(delay, 10);
}
}
on (rollOver) {
_root.HUD.cursor.gotoAndStop("examine");
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}
Symbol 232 Button
on (release) {
if (!_root.queueFilled) {
if (_root.itemselected == 1) {
_root.queueAdd(remove, 1);
_root.queueAdd(pickup, 3);
_root.queueAdd(speak, "You rub the Barbie in the melted metal to fulfill your wacky black man fetishes.", 1);
_root.queueAdd(musicstop);
_root.queueAdd(speak, "And thus you have completed the Morgan Quest mockup.", 1);
_root.queueAdd(speak, "...", 2);
_root.queueAdd(speak, "Morgan will return early next year in a brand new quest.", 1);
_root.queueAdd(musicstart, "shawshank", 1, 100);
} else {
_root.queueAdd(moveplayer, morgan, _root._xmouse, _root._ymouse);
_root.queueAdd(speak, "A pool of melted metal.", 1);
}
}
_root.queueAdd(delay, 10);
}
on (rollOver) {
if (_root.itemselected == 1) {
_root.HUD.cursor.gotoAndStop("use");
} else {
_root.HUD.cursor.gotoAndStop("walk");
}
}
on (rollOut) {
_root.HUD.cursor.gotoAndStop(1);
_root.HUD.cursor._visible = 0;
}