Frame 1
stop();
MochiAd.showPreloaderAd({id:"2132abfa9934539b", res:"640x480"});
Frame 3
stop();
var my_darksound = new Sound();
my_darksound.attachSound("darksound.mp3");
var my_brightsound = new Sound();
my_brightsound.attachSound("brightsound.mp3");
var my_corridorsound = new Sound();
my_corridorsound.attachSound("corridor.mp3");
var my_menusound = new Sound();
my_menusound.attachSound("Fun_Jazz-Q-Music-6437_hifi.mp3");
var my_nemusound = new Sound();
my_nemusound.attachSound("nemu.mp3");
var my_endingsound = new Sound();
my_endingsound.attachSound("urbangrooves9.mp3");
var my_jotossound = new Sound();
my_jotossound.attachSound("jotos.wav");
stop();
Frame 4
stop();
Frame 5
function ngomong(zxc) {
var _local3 = _root.attachMovie("movieText", "movieText", _root.getNextHighestDepth());
_local3._x = 200;
_local3._y = 40;
_local3._delay = 30;
_local3.onEnterFrame = function () {
this._delay--;
if (this._delay <= 0) {
this.removeMovieClip();
}
};
_local3.myText.text = zxc;
}
stop();
var gotShovel = false;
var gotPoison = false;
var gotFood = false;
var gotDog = false;
var gotSyringe = false;
var gotDoll = false;
var gotPicklock = false;
var gotDrug = false;
var gotPrisonkey = false;
var gotStoragekey = false;
var gotCover = false;
var putdoll = false;
var posisi = 0;
var gotItem = false;
icongotShovel._visible = false;
icongotPoison._visible = false;
icongotFood._visible = false;
icongotDog._visible = false;
icongotSyringe._visible = false;
icongotDoll._visible = false;
icongotPicklock._visible = false;
icongotDrug._visible = false;
icongotPrisonkey._visible = false;
icongotStoragekey._visible = false;
icongotCover._visible = false;
gotoAndStop ("Room1");
Frame 24
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_endingsound.stop();
_root.my_endingsound.start(0, 99999999);
Frame 26
stop();
Frame 27
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_endingsound.stop();
_root.my_endingsound.start(0, 99999999);
Frame 28
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop ("init");
delete this.onEnterFrame;
}
};
Symbol 36 MovieClip Frame 35
stop();
Symbol 46 Button
on (release) {
getURL ("http://dailyfreegames.com", "_blank");
}
Symbol 47 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/action-games/escaping-paris.html", "_blank");
}
Symbol 48 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/puzzle-games/deal-or-no-deal-game.html", "_blank");
}
Symbol 49 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/arcade-games/superman-game.html", "_blank");
}
Symbol 50 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/action-games/kane-the-ninja.html", "_blank");
}
Symbol 51 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/sports-games/dx-hockey.html", "_blank");
}
Symbol 930 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 70 MovieClip [WalkLeft] Frame 28
gotoAndPlay (1);
Symbol 111 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(32)) {
_root.gotoAndStop("lvlmenu");
}
}
Symbol 111 MovieClip Frame 1079
if (Key.isDown(32)) {
trace("AAA");
_root.gotoAndStop("lvlmenu");
}
Symbol 111 MovieClip Frame 1080
_root.gotoAndStop("lvlmenu");
Symbol 122 Button
on (release) {
_root.gotoAndStop("instruct");
}
Symbol 127 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 133 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 136 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 142 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/action-games/escaping-paris.html", "_blank");
}
Symbol 143 MovieClip Frame 11
stop();
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_endingsound.stop();
_root.my_jotossound.stop();
_root.my_menusound.start(0, 99999999);
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 4
stop();
Symbol 311 MovieClip Frame 28
gotoAndPlay (1);
Symbol 322 MovieClip Frame 28
gotoAndPlay (1);
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
stop();
Symbol 323 MovieClip Frame 3
stop();
Symbol 323 MovieClip Frame 4
stop();
Symbol 351 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Room1_perimeter._visible = false;
Body_perimeter._visible = false;
areaOut1._visible = false;
areaOut11._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
areaTake._visible = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_endingsound.stop();
_root.my_jotossound.stop();
_root.my_darksound.start(0, 99999999);
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(1);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(1);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
myText.text = " ";
}
}
if (_root.putdoll) {
CoverBed._visible = true;
} else {
CoverBed._visible = false;
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOut11, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 5;
_parent.gotoAndStop("CorridorB");
}
}
if (Collide(areaOut1, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotPrisonkey) {
_root.ngomong("you used prison key");
_root.posisi = 1;
_parent.gotoAndStop("CorridorA");
} else {
_root.ngomong("its locked");
}
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.putdoll) {
_root.ngomong("you already put the doll");
} else if (_root.gotDoll) {
_root.putdoll = true;
_root.ngomong("you put the doll");
CoverBed._visible = true;
_root.icongotDoll._visible = false;
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Room1_perimeter, false)) {
_local1 = true;
}
return(_local1);
}
stop();
var lastK;
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
var mandek = false;
var mydelay = 0;
init();
Symbol 379 MovieClip Frame 1
function init() {
lastK = -1;
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Room2_perimeter._visible = false;
Body_perimeter._visible = false;
areaOut2._visible = false;
areaTake._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_darksound.start(0, 99999999);
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(7);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(7);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(7);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddx = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = -1;
}
ceklayar();
if (Collide(areaOut2, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 2;
_parent.gotoAndStop("CorridorA");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotPicklock) {
_root.ngomong("thanks for the drug");
} else if (_root.gotDrug) {
_root.gotPicklock = true;
_root.icongotPicklock._visible = true;
_root.my_nemusound.start(0, 1);
_root.icongotDrug._visible = false;
_root.ngomong("you gave the drug");
mydelay = 30;
mandek = true;
} else {
_root.ngomong("Junkie : I need to get high");
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Room2_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var lastK;
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 392 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
areaOut3.visible = false;
Room3_perimeter._visible = false;
Body_perimeter._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
areaTake._visible = false;
areaOut3._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_darksound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(8);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(8);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOut3, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 3;
_parent.gotoAndStop("CorridorA");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotDrug) {
_root.ngomong("Call me if you need me");
} else if (_root.gotSyringe) {
_root.gotDrug = true;
_root.ngomong("you gave the Syringe");
_root.icongotSyringe._visible = false;
_root.my_nemusound.start(0, 1);
_root.icongotDrug._visible = true;
mydelay = 30;
mandek = true;
} else {
_root.ngomong("Dealer : I need some syringe");
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Room3_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 404 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Room0_perimeter._visible = false;
Body_perimeter._visible = false;
areaOut0._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
areaTake._visible = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_darksound.start(0, 99999999);
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(2);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(2);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
myText.text = " ";
}
}
if (_root.putdoll) {
CoverBed._visible = true;
} else {
CoverBed._visible = false;
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOut0, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 4;
_parent.gotoAndStop("CorridorA");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotPoison) {
_root.ngomong("Thanks but I am still hungry ^^");
} else if (_root.gotFood) {
_root.icongotFood._visible = false;
_root.gotPoison = true;
_root.my_nemusound.start(0, 1);
_root.icongotPoison._visible = true;
mydelay = 30;
mandek = true;
} else {
_root.ngomong("I am so hungryyy~");
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Room0_perimeter, false)) {
_local1 = true;
}
return(_local1);
}
stop();
var lastK;
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
var mandek = false;
var mydelay = 0;
init();
Symbol 413 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Storage_perimeter._visible = false;
Body_perimeter._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
areaOutStorage._visible = false;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
areaTake._visible = false;
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(1);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(1);
kuncimerah._visible = false;
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutStorage, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 6;
_parent.gotoAndStop("CorridorB");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotShovel) {
_root.ngomong("Nothing left here");
} else {
_root.gotShovel = true;
_root.icongotShovel._visible = true;
_root.my_nemusound.start(0, 1);
mydelay = 30;
mandek = true;
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Storage_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 425 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Kitchen_perimeter._visible = false;
Body_perimeter._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
areaOutKitchen._visible = false;
areaTake._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(3);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(3);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutKitchen, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 7;
_parent.gotoAndStop("CorridorB");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotFood) {
_root.ngomong("you look pretty .. delicious");
} else if (_root.gotDog) {
_root.icongotDog._visible = false;
_root.gotFood = true;
_root.icongotFood._visible = true;
_root.my_nemusound.start(0, 1);
_root.ngomong("you gave the dog");
mydelay = 30;
mandek = true;
} else {
_root.ngomong("I need some meat");
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Kitchen_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 476 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
areaOutCafetaria._visible = false;
areaTake._visible = false;
Cafetaria_perimeter._visible = false;
Body_perimeter._visible = false;
areaTake._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(10);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(10);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutCafetaria, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 8;
_parent.gotoAndStop("CorridorB");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotStoragekey) {
_root.ngomong("He will sleep for 8 hour");
} else if (_root.gotPoison) {
_root.icongotStoragekey._visible = true;
_root.gotStoragekey = true;
_root.my_nemusound.start(0, 1);
_root.ngomong("you poison the guard");
_root.icongotPoison._visible = false;
mydelay = 30;
mandek = true;
} else {
_root.ngomong("I can put something in his food");
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Cafetaria_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 515 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Infirmary_perimeter._visible = false;
areaOutInfirmary._visible = false;
Body_perimeter._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
areaTakeDoll._visible = false;
areaTake._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
if (myflag == 2) {
DialogGot.gotoAndStop(6);
DialogGot._visible = true;
sexdoll._visible = false;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(6);
}
if (myflag == 1) {
DialogGot.gotoAndStop(5);
DialogGot._visible = true;
suntikan._visible = false;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(5);
}
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
if (_root.gotDoll) {
sexdoll._visible = false;
}
if (_root.gotSyringe) {
suntikan._visible = false;
}
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutInfirmary, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 9;
_parent.gotoAndStop("CorridorB");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotSyringe) {
_root.ngomong("Nothing interesting here");
} else {
_root.gotSyringe = true;
_root.icongotSyringe._visible = true;
_root.ngomong("I got a syringe....");
_root.my_nemusound.start(0, 1);
myflag = 1;
mydelay = 30;
mandek = true;
}
}
}
if (Collide(areaTakeDoll, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotDoll) {
_root.ngomong("Nothing interesting here");
} else {
_root.gotDoll = true;
_root.icongotDoll._visible = true;
_root.my_nemusound.start(0, 1);
_root.ngomong("A doll??? hmmm....");
myflag = 2;
mydelay = 30;
mandek = true;
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Infirmary_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
var mydelay = 0;
var myflag = ((Number = 0));
init();
Symbol 532 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Penitipan_perimeter._visible = false;
Body_perimeter._visible = false;
areaOutTitip._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
areaTake._visible = false;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(4);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(4);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutTitip, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 10;
_parent.gotoAndStop("CorridorC");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotDog) {
_root.ngomong("The smell is really awful");
} else {
_root.gotDog = true;
_root.icongotDog._visible = true;
_root.my_nemusound.start(0, 1);
_root.ngomong("my delicious Tinker Bell ~~");
mandek = true;
mydelay = 30;
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Penitipan_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 544 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Guardian_perimeter._visible = false;
Body_perimeter._visible = false;
areaOutGuardian._visible = false;
areaTake._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
DialogGot.gotoAndStop(9);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(9);
silverkey._visible = false;
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
if (_root.gotPrisonkey) {
silverkey._visible = false;
} else {
silverkey._visible = true;
}
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutGuardian, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 11;
_parent.gotoAndStop("CorridorC");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotPrisonkey) {
_root.ngomong("better not disturb him");
} else {
_root.gotPrisonkey = true;
_root.icongotPrisonkey._visible = true;
_root.ngomong("Now I can open my room");
_root.my_nemusound.start(0, 1);
mandek = true;
mydelay = 30;
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Guardian_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 591 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Laundry_perimeter._visible = false;
Body_perimeter._visible = false;
areaOutLaundry._visible = false;
areaTake._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
mandek = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_brightsound.start(0, 99999999);
var _local3 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local3._x = 20;
_local3._y = -200;
_local3._xscale = 40;
_local3._yscale = 40;
_local3.gotoAndStop(1);
_local3._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
mandek = 0;
if (mandek) {
DialogGot.gotoAndStop(11);
DialogGot._visible = true;
ParisBody.ParisHold._visible = false;
ParisBody.ParisRun._visible = false;
ParisBody.ParisGot._visible = true;
ParisBody.ParisGot.gotoAndStop(11);
mydelay--;
if (mydelay <= 0) {
mandek = false;
}
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutLaundry, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Lubang");
}
}
if (Collide(areaTake, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.gotCover = true;
_root.icongotCover._visible = true;
if (_root.putdoll) {
_root.ngomong("Now I can escape!!");
_parent.gotoAndStop("ParisChange");
} else {
_parent.gotoAndStop("GameOver");
}
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Laundry_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 606 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
areaOutCorridorA1._visible = false;
areaOutCorridorA2._visible = false;
areaOutCorridorA3._visible = false;
areaOutCorridorA4._visible = false;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
CorridorA_perimeter._visible = false;
Body_perimeter._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_corridorsound.start(0, 99999999);
if (_root.posisi == 1) {
ParisBody._x = 50;
ParisBody._y = 0;
}
if (_root.posisi == 2) {
ParisBody._x = -50;
ParisBody._y = 0;
}
if (_root.posisi == 3) {
ParisBody._x = -240;
ParisBody._y = 0;
}
if (_root.posisi == 4) {
ParisBody._x = 200;
ParisBody._y = 0;
}
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local5;
var _local7;
_local7 = false;
mandek = 0;
if (mandek) {
} else {
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local2;
_local2 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -0.5;
ddy = -0.5;
_local2 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 0.5;
ddy = 0.5;
_local2 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -0.5;
ddx = -0.5;
_local2 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 0.5;
ddy = 0.5;
_local2 = true;
lastK = 2;
}
if (_local2 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutCorridorA1, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Room3");
}
}
if (Collide(areaOutCorridorA2, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Room2");
}
}
if (Collide(areaOutCorridorA3, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Room1");
}
}
if (Collide(areaOutCorridorA4, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Room0");
}
}
if (Collide(areaOut11, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
gotoAndStop ("CorridorB");
}
}
_local5 = false;
var _local6 = 1;
while (((_local6 <= speed) && ((dx != 0) || (dy != 0))) && (_local5 == false)) {
_local5 = false;
_local5 = cekHitObstacle();
if (!_local5) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local4;
_local4 = 0;
var _local3;
_local3 = 0;
while ((cekHitObstacle() && (_local4 == 0)) && (_local3 < 10)) {
_local3++;
_local2 = stepX.pop();
if (_local2 != undefined) {
ParisBody._x = _local2;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local4 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local6++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(CorridorA_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 625 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
CorridorB_perimeter._visible = false;
areaOutCorridorB1._visible = false;
areaOutCorridorB2._visible = false;
areaOutCorridorB3._visible = false;
areaOutCorridorB4._visible = false;
areaOutCorridorB5._visible = false;
areaOutCorridorB6._visible = false;
areaOutCorridorB7._visible = false;
Body_perimeter._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_corridorsound.start(0, 99999999);
if (_root.posisi == 5) {
ParisBody._x = 0;
ParisBody._y = 20;
}
if (_root.posisi == 6) {
ParisBody._x = -150;
ParisBody._y = 20;
}
if (_root.posisi == 7) {
ParisBody._x = -150;
ParisBody._y = 20;
}
if (_root.posisi == 8) {
ParisBody._x = -10;
ParisBody._y = 20;
}
if (_root.posisi == 9) {
ParisBody._x = 170;
ParisBody._y = 20;
}
if (_root.posisi == 15) {
ParisBody._x = 200;
ParisBody._y = 20;
}
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
if (mandek) {
} else {
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -0.5;
ddy = -0.5;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 0.5;
ddy = 0.5;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -0.5;
ddx = -0.5;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 0.5;
ddy = 0.5;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutCorridorB1, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Kitchen");
}
}
if (Collide(areaOutCorridorB2, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Cafetaria");
}
}
if (Collide(areaOutCorridorB3, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Infirmary");
}
}
if (Collide(areaOutCorridorB4, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotCover) {
_parent.gotoAndStop("Taman");
}
}
}
if (Collide(areaOutCorridorB5, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotStoragekey) {
_root.ngomong("you unlock the door");
_parent.gotoAndStop("Storage");
} else {
_root.ngomong("[this door is locked]");
}
}
}
if (Collide(areaOutCorridorB6, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 13;
_parent.gotoAndStop("CorridorC");
}
}
if (Collide(areaOutCorridorB7, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Room1");
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(CorridorB_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 641 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
CorridorC_perimeter._visible = false;
Body_perimeter._visible = false;
areaOutCorridorC1._visible = false;
areaOutCorridorC2._visible = false;
areaOutCorridorC3._visible = false;
areaOutCorridorC4._visible = false;
areaOutCorridorC5._visible = false;
areaOutCorridorC6._visible = false;
_root.my_darksound.stop();
_root.my_brightsound.stop();
_root.my_corridorsound.stop();
_root.my_menusound.stop();
_root.my_nemusound.stop();
_root.my_corridorsound.start(0, 99999999);
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
if (_root.posisi == 10) {
ParisBody._x = -200;
ParisBody._y = 20;
}
if (_root.posisi == 11) {
ParisBody._x = 0;
ParisBody._y = 20;
}
if (_root.posisi == 12) {
ParisBody._x = 200;
ParisBody._y = 20;
}
if (_root.posisi == 13) {
ParisBody._x = -250;
ParisBody._y = 20;
}
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
mandek = 0;
if (mandek) {
} else {
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -0.5;
ddy = -0.5;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 0.5;
ddy = 0.5;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -0.5;
ddx = -0.5;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 0.5;
ddy = 0.5;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutCorridorC1, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotPicklock) {
_root.ngomong("you unlock the door");
_parent.gotoAndStop("Titip");
} else {
_root.ngomong("Its locked");
}
}
}
if (Collide(areaOutCorridorC2, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("RoomGuard");
}
}
if (Collide(areaOutCorridorC3, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 15;
_parent.gotoAndStop("CorridorB");
}
}
if (Collide(areaOutCorridorC4, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_parent.gotoAndStop("Lubang");
}
}
if (Collide(areaOutCorridorC5, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.ngomong("this door is jammed");
}
}
if (Collide(areaOutCorridorC6, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.ngomong("this door is jammed");
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(CorridorC_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 811 MovieClip Frame 1
function init() {
ctrText = 0;
ddx = 0;
ddy = 0;
dx = 0;
dy = 0;
gotKey = false;
ctr = 0;
speed = 8;
di = 2;
maxAngle = 180;
faseSatpam = 0;
fase2 = 0;
Hole_perimeter._visible = false;
Body_perimeter._visible = false;
areaOutHole._visible = false;
areaOutHole2._visible = false;
mandek = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
btnIya._visible = false;
btnNggak._visible = false;
arah = 0;
arahOld = 0;
puteran = 0;
var _local2 = this.attachMovie("DialogGot", "DialogGot", this.getNextHighestDepth());
_local2._x = 20;
_local2._y = -200;
_local2._xscale = 40;
_local2._yscale = 40;
_local2.gotoAndStop(1);
_local2._visible = false;
}
function ceklayar() {
if (Body_perimeter._x < -300) {
dx = 0;
ParisBody._x = -300;
}
if (Body_perimeter._x > 300) {
dx = 0;
ParisBody._x = 300;
}
if (Body_perimeter._y < -220) {
dy = 0;
ParisBody._y = -220;
}
if (Body_perimeter._y > 210) {
dy = 0;
ParisBody._y = 210;
}
}
function Collide(benda, simple) {
var _local2;
var _local4;
_local2 = Body_perimeter.hitTest(benda);
if ((_local2 == true) && (simple == false)) {
_local2 = false;
for (j in benda.perimeter) {
if (benda.perimeter[j].hitTest(Body_perimeter)) {
_local2 = true;
return(true);
}
}
if (_local2 == true) {
}
}
return(_local2);
}
function onEnterFrame() {
var _local6;
var _local8;
_local8 = false;
mandek = 0;
if (mandek) {
_parent.gotoAndStop("ParisChange");
} else {
DialogGot._visible = false;
if (ctrText > 0) {
ctrText--;
if (ctrText == 0) {
}
}
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
dx = 0;
dy = 0;
ParisBody.ParisRun._visible = true;
ParisBody.ParisGot._visible = false;
var _local3;
_local3 = false;
if (Key.isDown(38)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 3) {
ParisBody.ParisRun.gotoAndStop(3);
}
}
lastK = 3;
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = -1;
ddy = -1;
_local3 = true;
}
if (Key.isDown(40)) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (lastK != 4) {
ParisBody.ParisRun.gotoAndStop(4);
}
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dy = 1;
ddy = 1;
_local3 = true;
lastK = 4;
}
if (Key.isDown(37)) {
if (lastK != 1) {
ParisBody.ParisRun.gotoAndStop(1);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = -1;
ddx = -1;
_local3 = true;
lastK = 1;
}
if (Key.isDown(39)) {
if (lastK != 2) {
ParisBody.ParisRun.gotoAndStop(2);
}
ParisBody.ParisRun.Walk.nextFrame();
ParisBody.ParisRun._visible = true;
ParisBody.ParisHold._visible = false;
dx = 1;
ddy = 1;
_local3 = true;
lastK = 2;
}
if (_local3 == false) {
ParisBody.ParisRun.Walk.stop();
lastK = 0;
}
ceklayar();
if (Collide(areaOutHole, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
if (_root.gotShovel) {
_parent.gotoAndStop("Laundry");
} else {
_root.ngomong("This hole is half dug");
}
}
}
if (Collide(areaOutHole2, true)) {
if (Key.isDown(32) && (keyOld != 32)) {
keyOld = 32;
_root.posisi = 12;
_parent.gotoAndStop("CorridorC");
}
}
_local6 = false;
var _local7 = 1;
while (((_local7 <= speed) && ((dx != 0) || (dy != 0))) && (_local6 == false)) {
_local6 = false;
_local6 = cekHitObstacle();
if (!_local6) {
ParisBody._x = ParisBody._x + dx;
ParisBody._y = ParisBody._y + dy;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
xlama = ParisBody._x;
ylama = ParisBody._y;
l1 = stepX.pop();
l2 = stepY.pop();
if ((l1 != ParisBody._x) || (l2 != ParisBody._y)) {
stepX.push(l1);
stepY.push(l2);
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
} else {
var _local5;
_local5 = 0;
var _local4;
_local4 = 0;
while ((cekHitObstacle() && (_local5 == 0)) && (_local4 < 10)) {
_local4++;
_local3 = stepX.pop();
if (_local3 != undefined) {
ParisBody._x = _local3;
ParisBody._y = stepY.pop();
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
} else {
_local5 = 1;
}
}
dx = 0;
dy = 0;
ddx = 0;
ddy = 0;
}
_local7++;
}
stepX.push(ParisBody._x);
stepY.push(ParisBody._y);
if (!Key.isDown(keyOld)) {
keyOld = 0;
}
if (!Key.isDown(keyLama)) {
keyLama = 0;
}
}
}
function cekHitObstacle() {
var _local1;
_local1 = false;
xlama = ParisBody._x;
ylama = ParisBody._y;
Body_perimeter._x = ParisBody._x;
Body_perimeter._y = ParisBody._y;
if (Collide(Hole_perimeter, false)) {
ctrText = maxCtrText;
_local1 = true;
}
return(_local1);
}
stop();
var stepX = new Array();
var stepY = new Array();
var ddx;
var ddy;
var dx;
var dy;
var v = 0;
var xlama;
var ylama;
var speed;
var fase2;
var gotKey;
var ctr;
var ctrText;
var maxCtrText = 1;
init();
Symbol 909 Button
on (release) {
_root.gotoAndStop("lvlmenu");
}
Symbol 920 Button
on (release) {
_root.gotoAndStop("init");
}
Symbol 921 MovieClip Frame 426
_root.my_jotossound.start(0, 99999999);
Symbol 921 MovieClip Frame 572
stop();
Symbol 925 MovieClip Frame 455
stop();