Frame 1
stop();
this.onEnterFrame = function () {
dfghtgloaded = _root.getBytesLoaded();
dfgtotalloaded = _root.getBytesTotal();
dfgpersenloaded = Math.floor((dfghtgloaded / dfgtotalloaded) * 100);
txtpersenloaded = dfgpersenloaded + " % ...loading";
_root.dfgbar.barpersen._xscale = Math.floor(dfgpersenloaded);
grapersenloaded_mc.gotoAndStop(Math.floor(dfgpersenloaded / 10));
if (dfghtgloaded == dfgtotalloaded) {
gotoAndPlay ("intro");
delete this.onEnterFrame;
}
};
Instance of Symbol 43 MovieClip in Frame 1
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
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 43 MovieClip Frame 35
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 69 MovieClip [WalkLeft] Frame 28
gotoAndPlay (1);
Symbol 110 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(32)) {
_root.gotoAndStop("lvlmenu");
}
}
Symbol 110 MovieClip Frame 1079
if (Key.isDown(32)) {
trace("AAA");
_root.gotoAndStop("lvlmenu");
}
Symbol 110 MovieClip Frame 1080
_root.gotoAndStop("lvlmenu");
Symbol 121 Button
on (release) {
_root.gotoAndStop("instruct");
}
Symbol 126 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 132 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 135 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 141 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/action-games/escaping-paris.html", "_blank");
}
Symbol 142 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 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 3
stop();
Symbol 221 MovieClip Frame 4
stop();
Symbol 310 MovieClip Frame 28
gotoAndPlay (1);
Symbol 321 MovieClip Frame 28
gotoAndPlay (1);
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 4
stop();
Symbol 350 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 378 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 391 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 403 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 412 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 424 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 475 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 514 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 531 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 543 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 590 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 605 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 624 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 640 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 810 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();