Frame 1
NewgroundsAPI.connectMovie(2705);
function itemHandler1(obj, item) {
getURL ("http://kyjast.newgrounds.com", "_blank");
}
function itemHandler2(obj, item) {
getURL ("http://kyjast.deviantart.com", "_blank");
}
function itemHandler3(obj, item) {
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("My Newgrounds", itemHandler1));
myMenu.customItems.push(new ContextMenuItem("My deviantART", itemHandler2));
myMenu.customItems.push(new ContextMenuItem("Thought you could cheat here?", itemHandler3));
myMenu.customItems[2].separatorBefore = true;
_root.menu = myMenu;
Frame 2
stop();
Frame 473
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("d23c51e9", this, 10301, true);
_global.hookvar = 0;
_global.bookvar = 0;
_global.gcapsulevar = 0;
_global.screwdrivervar = 0;
_global.hairdryervar = 0;
_global.bluekeyvar = 0;
_global.pcapsulevar = 0;
_global.shelfpanelvar = 0;
_global.orbvar = 0;
_global.closetlevervar = 0;
_global.cdshelfvar = 0;
_global.greenkeyvar = 0;
_global.cdshelfdoorvar = 0;
_global.goldkeyvar = 0;
Instance of Symbol 213 MovieClip "noCheat" in Frame 473
on (keyPress "<Tab>") {
this.play();
}
Frame 474
stop();
Frame 475
stop();
onEnterFrame = function () {
if (hookvar > 0) {
_root.hookgrab_btn._visible = false;
}
};
Frame 476
onEnterFrame = function () {
if (bluekeyvar > 0) {
_root.bluekeygrab_btn._visible = false;
}
};
Instance of Symbol 311 MovieClip "calendarcorner_mc" in Frame 476
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("pagecurl");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (release) {
this.nextFrame();
_root.pageflip_sound.play();
}
Frame 477
onEnterFrame = function () {
if (screwdrivervar > 0) {
_root.screwdrivergrab_btn._visible = false;
}
};
Frame 478
onEnterFrame = function () {
if (cdshelfvar == 0) {
_root.cdshelf_mc._visible = true;
_root.cdshelfdoor_mc._visible = false;
_root.cdshelfdoor_mc._x = 628.6;
_root.cdshelfdoor_mc._9 = 124.6;
} else {
_root.cdshelf_mc._visible = false;
_root.cdshelfdoor_mc._visible = true;
}
if (cdshelfdoorvar > 0) {
_root.cdshelfdoor_mc.gotoAndStop("cdshelfdooropen");
}
};
Frame 479
onEnterFrame = function () {
if (orbvar == 2) {
_root.orbplace_mc._visible = true;
} else {
_root.orbplace_mc._visible = false;
}
if (goldkeyvar == 1) {
_root.goldkeygrab_btn._visible = true;
} else {
_root.goldkeygrab_btn._visible = false;
}
if (orbvar >= 2) {
_root.orbkeypad_btn._visible = true;
} else {
_root.orbkeypad_btn._visible = false;
}
};
Frame 484
onEnterFrame = function () {
if (bookvar > 0) {
_root.bookgrab_btn._visible = false;
}
};
Frame 485
onEnterFrame = function () {
if (pcapsulevar <= 1) {
pcapsuleplace_mc._visible = false;
} else {
_root.closetlight2_mc.gotoAndStop(2);
pcapsuleplace_mc._visible = true;
}
if (gcapsulevar <= 1) {
gcapsuleplace_mc._visible = false;
} else {
_root.closetlight1_mc.gotoAndStop(2);
gcapsuleplace_mc._visible = true;
}
if ((_root.gcapsuleplace_mc._visible == true) && (_root.pcapsuleplace_mc._visible == true)) {
if (closetlevervar == 0) {
_global.closetlevervar++;
gotoAndStop ("closetleverappear");
}
}
if (closetlevervar >= 1) {
_root.closetlever._visible = true;
_root.closetpanelopen_mc.gotoAndStop("closetpanelopen");
} else {
_root.closetlever._visible = false;
}
if (closetlevervar >= 2) {
_root.closetlever.gotoAndStop(2);
}
};
Instance of Symbol 397 MovieClip "closetlever" in Frame 485
on (release) {
if (closetlevervar == 1) {
_global.closetlevervar++;
_global.cdshelfvar++;
gotoAndStop (474);
}
_root.taps_sound.play();
}
Frame 487
onEnterFrame = function () {
if (bluekeyvar <= 1) {
_root.deskpanel_btn._visible = false;
}
if (bluekeyvar > 1) {
_root.deskknob1_mc._visible = false;
_root.deskknob2_mc._visible = false;
_root.deskknob3_mc._visible = false;
_root.deskpanel_btn._visible = true;
}
};
Instance of Symbol 419 MovieClip "deskknob1_mc" in Frame 487
on (release) {
this.nextFrame();
_root.beep_sound.play();
}
Instance of Symbol 420 MovieClip "deskknob2_mc" in Frame 487
on (release) {
this.nextFrame();
_root.beep_sound.play();
}
Instance of Symbol 421 MovieClip "deskknob3_mc" in Frame 487
on (release) {
this.nextFrame();
_root.beep_sound.play();
}
Instance of Symbol 423 MovieClip "drawerlock_mc" in Frame 487
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("drawerlock");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
Frame 489
onEnterFrame = function () {
if (pcapsulevar > 0) {
_root.pcapsuleholder_mc.pcapsulegrab_btn._visible = false;
}
};
Frame 490
onEnterFrame = function () {
if (hairdryervar > 0) {
_root.hairdryergrab_btn._visible = false;
}
};
Frame 491
onEnterFrame = function () {
if (bookvar <= 1) {
_root.bookshelf_mc._visible = false;
}
if (gcapsulevar > 0) {
_root.uppershelf_mc._visible = false;
_root.uppershelf_mc._x = 74;
_root.uppershelf_mc._y = -69.4;
}
if (bookvar > 1) {
_root.shelfspace_mc._visible = false;
_root.shelfspace_mc._x = -107;
_root.shelfspafe_mc._y = 233.3;
_root.bookshelf_mc._visible = true;
}
};
Instance of Symbol 463 MovieClip "uppershelf_mc" in Frame 491
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("uppershelf");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
Instance of Symbol 465 MovieClip "shelfspace_mc" in Frame 491
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("shelfspace");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
Frame 495
onEnterFrame = function () {
if (shelfpanelvar == 0) {
_root.orbgrab_btn._visible = false;
_root.orbholder_mc._visible = false;
} else {
_root.orbgrab_btn._visible = true;
_root.orbholder_mc._visible = true;
_root.shelfpanelclosed_mc.gotoAndPlay("hang");
}
if (orbvar > 0) {
_root.orbgrab_btn._visible = false;
}
};
Frame 497
onEnterFrame = function () {
if (outletpanel_mc._visible == true) {
_root.greenkeygrab_btn._visible = false;
}
if ((outletpanel_mc._visible == false) && (greenkeyvar == 0)) {
_root.greenkeygrab_btn._visible = true;
}
if (greenkeyvar > 0) {
_root.greenkeygrab_btn._visible = false;
}
};
Instance of Symbol 536 MovieClip "paperpatternhit_mc" in Frame 499
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("paper");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
Instance of Symbol 540 MovieClip "door_mc" in Frame 500
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("door");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
_root.doorlocked_sound.play();
}
Instance of Symbol 543 MovieClip "inventory_mc" in Frame 501
on (rollOver, dragOver) {
_root.invrollover_mc.gotoAndPlay(2);
_root.invrollover_mc.inventory_mc.itemname_mc.gotoAndStop("invopen");
}
on (rollOut, dragOut) {
_root.invrollover_mc.gotoAndPlay(19);
}
Frame 857
stop();
Symbol 3 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 7 Button
on (release) {
getURL ("http://www.deviantart.com", "_blank");
}
Symbol 9 Button
on (release) {
getURL ("http://kyjast.110mb.com", "_blank");
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 16 Button
on (release) {
getURL ("http://www.mochibot.com", "_blank");
}
Symbol 33 MovieClip Frame 40
stop();
Symbol 47 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 48 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 23 MovieClip in Symbol 49 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 49 MovieClip Frame 101
play();
Symbol 49 MovieClip Frame 165
stop();
Symbol 55 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 61 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 63 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 607 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";
}
Symbol 71 Button
on (release) {
_root.instructions_mc.play();
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 15
stop();
Symbol 77 MovieClip Frame 34
gotoAndPlay (1);
Symbol 113 MovieClip Frame 35
gotoAndPlay (17);
Symbol 116 Button
on (release) {
play();
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 35
gotoAndStop (1);
Symbol 242 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 20
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 20
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 20
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 20
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 20
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 20
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 20
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 30
gotoAndPlay (20);
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 20
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 20
stop();
Instance of Symbol 246 MovieClip "hookinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hookvar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("hook");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.hookinv_mc.hitTest(_root.uppershelf_mc)) {
_global.gcapsulevar = _global.gcapsulevar + 1;
_root.inventory_mc.gcapsuleinv_mc.play();
_root.uppshelf_mc._visible = false;
_root.clickdrag_sound.play();
this._x = -241.8;
this._y = -5;
} else if (_root.inventory_mc.hookinv_mc.hitTest(_root.outletkill_mc)) {
_root.gotoAndStop("death");
this._x = -241.8;
this._y = -5;
} else {
_root.clickdrag_sound.play();
this._x = -241.8;
this._y = -5;
}
}
Instance of Symbol 249 MovieClip "gcapsuleinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (gcapsulevar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("gcapsule");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.gcapsuleinv_mc.hitTest(_root.gcapsuleplace_mc)) {
_root.inventory_mc.gcapsuleinv_mc._visible = false;
_global.gcapsulevar++;
_root.clickdrag_sound.play();
this._x = -27.6;
this._y = -4.3;
}
_root.clickdrag_sound.play();
this._x = -27.6;
this._y = -4.3;
}
Instance of Symbol 252 MovieClip "bookinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (bookvar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("book");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.bookinv_mc.hitTest(_root.shelfspace_mc)) {
_global.bookvar = _global.bookvar + 1;
_root.inventory_mc.bookinv_mc._visible = false;
_root.shelfspace_mc._visible = false;
_root.bookshelf_mc._visible = true;
_root.clickdrag_sound.play();
this._x = -190.4;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = -190.4;
this._y = -4.5;
}
}
Instance of Symbol 255 MovieClip "screwdriverinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (screwdrivervar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("screwdriver");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.screwdriverinv_mc.hitTest(_root.shelfpanelclosed_mc)) {
_root.shelfpanelclosed_mc.play();
_root.clickdrag_sound.play();
this._x = -136.3;
this._y = -4.5;
} else if (_root.inventory_mc.screwdriverinv_mc.hitTest(_root.outletpanel_mc)) {
_root.outletpanel_mc._visible = false;
_root.clickdrag_sound.play();
this._x = -136.3;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = -136.3;
this._y = -4.5;
}
}
Instance of Symbol 258 MovieClip "hairdryerinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hairdryervar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("hairdryer");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.hairdryerinv_mc.hitTest(_root.paperpatternhit_mc)) {
_root.paperpatternhit_mc.play();
_root.hairdryer_sound.play();
this._x = -82.2;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = -82.2;
this._y = -4.5;
}
}
Instance of Symbol 261 MovieClip "bluekeyinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (bluekeyvar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("bluekey");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.bluekeyinv_mc.hitTest(_root.drawerlock_mc)) {
if (((knobvar1 == 1) && (knobvar2 == 0)) && (knobvar3 == 1)) {
_root.inventory_mc.bluekeyinv_mc._visible = false;
_global.bluekeyvar++;
_root.gotoAndStop("deskpanelopen");
}
_root.clickdrag_sound.play();
this._x = 134.5;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = 134.5;
this._y = -4.5;
}
}
Instance of Symbol 264 MovieClip "pcapsuleinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (pcapsulevar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("pcapsule");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.pcapsuleinv_mc.hitTest(_root.pcapsuleplace_mc)) {
_root.inventory_mc.pcapsuleinv_mc._visible = false;
_global.pcapsulevar++;
_root.clickdrag_sound.play();
this._x = 26.2;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = 26.2;
this._y = -4.5;
}
}
Instance of Symbol 269 MovieClip "orbinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (orbvar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("orb");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.orbinv_mc.hitTest(_root.orbfinalholder_mc)) {
_root.inventory_mc.orbinv_mc._visible = false;
_root.orbplace_mc._visible = true;
_global.orbvar++;
_root.gotoAndStop("orbkeypadappear");
_root.clickdrag_sound.play();
this._x = 188.8;
this._y = -4.4;
} else {
_root.clickdrag_sound.play();
this._x = 188.8;
this._y = -4.4;
}
}
Instance of Symbol 272 MovieClip "greenkeyinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (greenkeyvar == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("greenkey");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.greenkeyinv_mc.hitTest(_root.cdshelfdoor_mc)) {
_root.inventory_mc.greenkeyinv_mc._visible = false;
_root.cdshelfdoor_mc.gotoAndStop("cdshelfdooropen");
_global.cdshelfdoorvar++;
_global.greenkeyvar++;
_root.clickdrag_sound.play();
this._x = 80.4;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = 80.4;
this._y = -4.5;
}
}
Instance of Symbol 275 MovieClip "goldkeyinv_mc" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (goldkeyvar == 2) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("goldkey");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (press) {
startDrag (this);
_root.clickdrag_sound.play();
}
on (release) {
stopDrag();
if (_root.inventory_mc.goldkeyinv_mc.hitTest(_root.door_mc)) {
_root.gotoAndPlay("finished");
_root.clickdrag_sound.play();
this._x = 242.8;
this._y = -4.5;
} else {
_root.clickdrag_sound.play();
this._x = 242.8;
this._y = -4.5;
}
}
Symbol 278 MovieClip Frame 40
_root.gotoAndStop("office");
Symbol 279 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 292 Button
on (release) {
gotoAndStop ("computer");
}
Symbol 293 Button
on (release) {
gotoAndStop ("desk");
}
Symbol 294 Button
on (release) {
gotoAndStop ("closetside");
}
Symbol 296 Button
on (release) {
gotoAndStop ("calendar");
}
Symbol 298 Button
on (release) {
_global.hookvar = _global.hookvar + 1;
_root.inventory_mc.hookinv_mc.play();
_root.hookgrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 302 Button
on (release) {
gotoAndStop ("office");
}
Symbol 308 Button
on (release) {
_global.bluekeyvar = _global.bluekeyvar + 1;
_root.inventory_mc.bluekeyinv_mc.play();
_root.bluekeygrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
stop();
Symbol 311 MovieClip Frame 3
gotoAndStop (1);
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
Symbol 321 Button
on (release) {
_global.screwdrivervar = _global.screwdrivervar + 1;
_root.inventory_mc.screwdriverinv_mc.play();
_root.screwdrivergrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 324 Button
on (release) {
gotoAndStop ("closetclosed");
}
Symbol 327 Button
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("hiddendoor");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
Symbol 329 Button
on (release) {
_root.gotoAndStop("secretroom");
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 333 Button
on (release) {
gotoAndStop ("office");
}
Symbol 335 Button
on (release) {
gotoAndStop ("closetside");
}
Symbol 341 Button
on (release) {
gotoAndStop ("orbkeypad");
_root.click1_sound.play();
}
Symbol 343 Button
on (release) {
_global.goldkeyvar = _global.goldkeyvar + 1;
_root.inventory_mc.goldkeyinv_mc.play();
_root.goldkeygrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 348 MovieClip Frame 25
_root.gotoAndStop("secretroom");
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 32
gotoAndStop (1);
Symbol 361 Button
on (release) {
if ((orbcode == 16482) && (goldkeyvar == 0)) {
_global.orbvar++;
_global.goldkeyvar++;
gotoAndStop ("orbanimation");
} else {
orbincorrect_mc.play();
_root.incorrect_sound.play();
}
}
Symbol 363 Button
on (release) {
gotoAndStop ("secretroom");
}
Symbol 365 Button
on (release) {
gotoAndStop ("orbkeypad");
}
Symbol 370 MovieClip Frame 490
_root.gotoAndStop("secretroom");
Symbol 373 Button
on (release) {
gotoAndStop ("closetopen");
_root.closetopen_sound.play();
}
Symbol 374 Button
on (release) {
gotoAndStop ("door");
}
Symbol 377 Button
on (release) {
gotoAndStop ("closetclosed");
_root.closetclose_sound.play();
}
Symbol 379 Button
on (release) {
gotoAndStop ("closetclosed");
_root.closetclose_sound.play();
}
Symbol 381 Button
on (release) {
_root.gotoAndStop("closetbox");
}
Symbol 382 Button
on (release) {
gotoAndStop ("closetside");
}
Symbol 383 Button
on (release) {
gotoAndStop ("door");
}
Symbol 385 Button
on (release) {
_global.bookvar = _global.bookvar + 1;
_root.inventory_mc.bookinv_mc.play();
_root.bookgrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 20
stop();
Symbol 405 Button
on (release) {
gotoAndStop ("closetopen");
}
Symbol 413 MovieClip Frame 40
_root.gotoAndStop("closetbox");
Symbol 415 Button
on (release) {
gotoAndStop ("office");
}
Symbol 416 Button
on (release) {
gotoAndStop ("shelf");
}
Symbol 419 MovieClip Frame 1
stop();
_global.knobvar1 = 0;
Symbol 419 MovieClip Frame 2
stop();
_global.knobvar1 = 1;
Symbol 419 MovieClip Frame 3
gotoAndStop (1);
Symbol 420 MovieClip Frame 1
stop();
_global.knobvar2 = 0;
Symbol 420 MovieClip Frame 2
stop();
_global.knobvar2 = 1;
Symbol 420 MovieClip Frame 3
gotoAndStop (1);
Symbol 421 MovieClip Frame 1
stop();
_global.knobvar3 = 0;
Symbol 421 MovieClip Frame 2
stop();
_global.knobvar3 = 1;
Symbol 421 MovieClip Frame 3
gotoAndStop (1);
Symbol 425 Button
on (release) {
gotoAndStop ("deskpanel");
}
Symbol 435 MovieClip Frame 98
_root.gotoAndStop("desk");
Symbol 437 Button
on (release) {
gotoAndStop ("desk");
}
Symbol 438 Button
on (release) {
if (deskcode == 9625) {
pcapsuleholder_mc.play();
_root.correct_sound.play();
} else {
deskincorrect_mc.play();
_root.incorrect_sound.play();
}
}
Symbol 445 Button
on (release) {
_global.pcapsulevar = _global.pcapsulevar + 1;
_root.inventory_mc.pcapsuleinv_mc.play();
_root.pcapsulegrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 96
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 32
gotoAndStop (1);
Symbol 451 Button
on (release) {
gotoAndStop ("shelf");
}
Symbol 453 Button
on (release) {
_global.hairdryervar = _global.hairdryervar + 1;
_root.inventory_mc.hairdryerinv_mc.play();
_root.hairdryergrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 455 Button
on (release) {
gotoAndStop ("desk");
}
Symbol 457 Button
on (release) {
gotoAndStop ("wallsign");
}
Symbol 459 Button
on (release) {
gotoAndStop ("outlet");
}
Symbol 461 Button
on (rollOver) {
_root.inventory_mc.itemname_mc.gotoAndStop("hairdryerarea");
}
on (rollOut) {
_root.inventory_mc.itemname_mc.gotoAndStop("main");
}
on (release) {
gotoAndStop ("corner");
}
Symbol 469 Button
on (press) {
_root.gotoAndStop("shelfmoving");
_root.click1_sound.play();
}
Symbol 476 MovieClip Frame 70
_root.gotoAndStop("shelfmoved");
Symbol 477 Button
on (release) {
gotoAndStop ("shelfpanel");
}
Symbol 478 Button
on (release) {
gotoAndStop ("shelfmoveback");
}
Symbol 479 MovieClip Frame 70
_root.gotoAndStop("shelf");
Symbol 484 Button
on (release) {
_global.orbvar = _global.orbvar + 1;
_root.inventory_mc.orbinv_mc.play();
_root.orbgrab_btn._visible = false;
}
Symbol 488 Button
on (release) {
if (shelfpanelvar == 0) {
gotoAndStop ("shelfpanelbutton");
_global.shelfpanelvar++;
_root.clickdrag_sound.play();
}
}
Symbol 491 MovieClip Frame 1
if (shelfpanelvar == 0) {
_root.shelfpanelbutton_btn._visible = false;
}
stop();
Symbol 491 MovieClip Frame 2
_root.shelfpanelbutton_btn._visible = true;
Symbol 491 MovieClip Frame 194
gotoAndPlay (154);
Symbol 492 Button
on (release) {
gotoAndStop ("shelfmoved");
}
Symbol 512 MovieClip Frame 386
stop();
_root.shelfpanelanim_mc.play();
Symbol 517 MovieClip Frame 78
stop();
Symbol 517 MovieClip Frame 187
_root.gotoAndStop("shelfpanel");
Symbol 525 Button
on (release) {
_global.greenkeyvar = _global.greenkeyvar + 1;
_root.inventory_mc.greenkeyinv_mc.play();
_root.greenkeygrab_btn._visible = false;
_root.click1_sound.play();
}
Symbol 530 Button
on (release) {
_root.gotoAndStop("outlet");
}
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 75
gotoAndStop (1);
Symbol 538 Button
on (release) {
gotoAndStop ("closetclosed");
}
Symbol 597 MovieClip Frame 13
stop();
Symbol 599 Button
on (release) {
getURL ("http://kyjast.newgrounds.com/", "_blank");
}
Symbol 602 Button
on (release) {
getURL ("http://kyjast.deviantart.com/", "_blank");
}
Symbol 605 Button
on (release) {
_root.gotoAndStop("begin");
}
Symbol 606 MovieClip Frame 1469
stop();