Combined Code
frame 1 {
mute = false;
mute2 = false;
stop();
var maskMC = _root.createEmptyMovieClip('mask', _root.getNextHighestDepth());
maskMC.beginFill(0, 100);
maskMC.moveTo(0, 0);
maskMC.lineTo(0, 600);
maskMC.lineTo(800, 600);
maskMC.lineTo(800, 0);
maskMC.lineTo(0, 0);
_root.setMask(maskMC);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
var urlString = _root._url;
var total;
var loaded;
var kongregate = _global.kongregate;
'connect';
kongregate.services;
0;
undefined;
this.onEnterFrame = function () {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = Math.round((loaded / total) * 100) + '%';
percentbis = (loaded / total) * 100;
rocketintro._y = 300 - 2.5 * percentbis;
gotoAndPlay(2);
};
}
movieClip 28 {
}
button 30 {
on (release) {
getURL('http://kongregate.com/', '_blank');
}
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 37 {
}
movieClip 39 {
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 44 {
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 50 {
}
movieClip 52 {
}
// unknown tag 88 length 63
movieClip 55 {
}
movieClip 56 {
frame 89 {
stop();
}
}
frame 2 {
stop();
this.onEnterFrame = function () {};
}
movieClip 61 {
}
movieClip 63 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 74 {
}
// unknown tag 88 length 146
movieClip 78 {
frame 140 {
_root.gotoAndStop(3);
}
}
movieClip 80 {
}
instance bc of movieClip 80 {
onClipEvent (load) {
music = new Sound(this);
music.attachSound('bck');
music.setVolume(65);
}
}
instance bs of movieClip 80 {
onClipEvent (load) {
bustd = new Sound(this);
bustd.attachSound('busted');
bustd.setVolume(70);
}
}
instance mn of movieClip 80 {
onClipEvent (load) {
menu = new Sound(this);
menu.attachSound('menu');
menu.setVolume(45);
}
}
instance o of movieClip 80 {
onClipEvent (load) {
ok = new Sound(this);
ok.attachSound('ok');
ok.setVolume(70);
}
}
instance wr of movieClip 80 {
onClipEvent (load) {
wrong = new Sound(this);
wrong.attachSound('wrong');
wrong.setVolume(300);
}
}
instance pp of movieClip 80 {
onClipEvent (load) {
pop = new Sound(this);
pop.attachSound('pop');
pop.setVolume(400);
}
}
instance al of movieClip 80 {
onClipEvent (load) {
alarm = new Sound(this);
alarm.attachSound('alarm');
alarm.setVolume(80);
}
}
instance ds of movieClip 80 {
onClipEvent (load) {
dash = new Sound(this);
dash.attachSound('dash');
dash.setVolume(300);
}
}
instance dg of movieClip 80 {
onClipEvent (load) {
ding = new Sound(this);
ding.attachSound('ding');
ding.setVolume(40);
}
}
instance sw of movieClip 80 {
onClipEvent (load) {
switche = new Sound(this);
switche.attachSound('switch');
switche.setVolume(120);
}
}
instance ph of movieClip 80 {
onClipEvent (load) {
phone = new Sound(this);
phone.attachSound('phone');
phone.setVolume(80);
}
}
instance dr of movieClip 80 {
onClipEvent (load) {
door = new Sound(this);
door.attachSound('door');
door.setVolume(100);
}
}
instance tr of movieClip 80 {
onClipEvent (load) {
train = new Sound(this);
train.attachSound('train');
train.setVolume(100);
}
}
instance rr of movieClip 80 {
onClipEvent (load) {
railroad = new Sound(this);
railroad.attachSound('railroad');
railroad.setVolume(100);
}
}
instance sm of movieClip 80 {
onClipEvent (load) {
steam = new Sound(this);
steam.attachSound('steam');
steam.setVolume(80);
}
}
instance sq of movieClip 80 {
onClipEvent (load) {
squeakyvalve = new Sound(this);
squeakyvalve.attachSound('squeakyvalve');
squeakyvalve.setVolume(80);
}
}
instance bd of movieClip 80 {
onClipEvent (load) {
bigdoor = new Sound(this);
bigdoor.attachSound('bigdor');
bigdoor.setVolume(80);
}
}
instance cs of movieClip 80 {
onClipEvent (load) {
carstop = new Sound(this);
carstop.attachSound('carstop');
carstop.setVolume(100);
}
}
instance wt of movieClip 80 {
onClipEvent (load) {
watering = new Sound(this);
watering.attachSound('watering');
watering.setVolume(250);
}
}
instance bk of movieClip 80 {
onClipEvent (load) {
bark = new Sound(this);
bark.attachSound('bark');
bark.setVolume(100);
}
}
instance ld of movieClip 80 {
onClipEvent (load) {
land = new Sound(this);
land.attachSound('landing');
land.setVolume(100);
}
}
instance di of movieClip 80 {
onClipEvent (load) {
drive = new Sound(this);
drive.attachSound('drive');
drive.setVolume(150);
}
}
instance jp of movieClip 80 {
onClipEvent (load) {
jump = new Sound(this);
jump.attachSound('jump');
jump.setVolume(150);
}
}
instance hy of movieClip 80 {
onClipEvent (load) {
hydraulics = new Sound(this);
hydraulics.attachSound('hydraulics');
hydraulics.setVolume(150);
}
}
instance rv of movieClip 80 {
onClipEvent (load) {
reverse = new Sound(this);
reverse.attachSound('reverse');
reverse.setVolume(30);
}
}
instance gl of movieClip 80 {
onClipEvent (load) {
squeakvent = new Sound(this);
squeakvent.attachSound('squeakvent');
squeakvent.setVolume(300);
}
}
instance bg of movieClip 80 {
onClipEvent (load) {
bang = new Sound(this);
bang.attachSound('bang');
bang.setVolume(80);
}
}
frame 3 {
stop();
var clock = 0;
pause = false;
plant = true;
_root.mn.menu.stop();
_root.mn.menu.start(0, 9999);
timergame = 0;
bustedcount = 0;
this.onEnterFrame = function () {};
}
movieClip 86 {
}
movieClip 88 {
}
movieClip 89 {
}
button 92 {
on (release) {
getURL('https://www.facebook.com/wildcatgames', '_blank');
}
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 99 {
}
button 102 {
on (release) {
getURL('http://brianallenholmes.bandcamp.com/', '_blank');
}
}
button 105 {
on (release) {
_root.gotoAndPlay(3);
_root.bc.music.start(0, 9999);
_root.mn.menu.stop();
}
}
movieClip 106 {
frame 15 {
stop();
}
}
movieClip 108 {
}
button 111 {
on (release) {
if (mute2 == false) {
_root.muting2._alpha = 50;
_root.bs.bustd.setVolume(0);
_root.o.ok.setVolume(0);
_root.wr.wrong.setVolume(0);
_root.pp.pop.setVolume(0);
_root.al.alarm.setVolume(0);
_root.ds.dash.setVolume(0);
_root.dg.ding.setVolume(0);
_root.sw.switche.setVolume(0);
_root.ph.phone.setVolume(0);
_root.dr.door.setVolume(0);
_root.rr.railroad.setVolume(0);
_root.tr.train.setVolume(0);
_root.sm.steam.setVolume(0);
_root.sq.squeakyvalve.setVolume(0);
_root.bd.bigdoor.setVolume(0);
_root.cs.carstop.setVolume(0);
_root.wt.watering.setVolume(0);
_root.bk.bark.setVolume(0);
_root.ld.land.setVolume(0);
_root.di.drive.setVolume(0);
_root.jp.jump.setVolume(0);
_root.hy.hydraulics.setVolume(0);
_root.rv.reverse.setVolume(0);
_root.gl.squeakvent.setVolume(0);
_root.bg.bang.setVolume(0);
mute2 = true;
} else {
_root.muting2._alpha = 100;
mute2 = false;
this;
_root.bs.bustd.setVolume(70);
_root.o.ok.setVolume(70);
_root.wr.wrong.setVolume(300);
_root.pp.pop.setVolume(400);
_root.al.alarm.setVolume(80);
_root.ds.dash.setVolume(300);
_root.dg.ding.setVolume(40);
_root.sw.switche.setVolume(120);
_root.ph.phone.setVolume(80);
_root.dr.door.setVolume(100);
_root.rr.railroad.setVolume(100);
_root.tr.train.setVolume(100);
_root.sm.steam.setVolume(70);
_root.sq.squeakyvalve.setVolume(80);
_root.bd.bigdoor.setVolume(80);
_root.cs.carstop.setVolume(100);
_root.wt.watering.setVolume(250);
_root.bk.bark.setVolume(100);
_root.ld.land.setVolume(100);
_root.di.drive.setVolume(150);
_root.jp.jump.setVolume(150);
_root.hy.hydraulics.setVolume(150);
_root.rv.reverse.setVolume(30);
_root.gl.squeakvent.setVolume(300);
_root.bg.bang.setVolume(80);
}
}
}
movieClip 113 {
}
instance muting1 of movieClip 113 {
onClipEvent (release) {
if (mute == false) {
_root.muting1._alpha = 50;
_root.bc.music.setVolume(0);
_root.mn.menu.setVolume(0);
mute = true;
} else {
_root.muting1._alpha = 100;
mute = false;
_root.bc.music.setVolume(65);
_root.mn.menu.setVolume(45);
}
}
}
frame 4 {
this.onEnterFrame = function () {};
}
frame 4 {
stop();
spy._x = 5;
timer = 0;
timer2 = 0;
hidden = true;
secret = false;
busted = false;
busted2 = false;
bustedtimer = 0;
bustext._y = -200;
clocksett._y = 498;
cooldown = 10;
cooled = true;
this.createEmptyMovieClip('line_mc', 10);
this.onEnterFrame = function () {
++timergame;
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer2;
if (timer2 == 65) {
spy._x = 280;
spy._y = 457;
}
if (timer2 == 1) {
_root.cs.carstop.start(0.5, 1);
}
++timer;
spyzone._x = spy._x + 15;
if (Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) {
if (busted == false && busted2 == false && pause == false) {
if (spy._x > 575 && spy._x < 671) {
spy._y -= 2.5;
}
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
hidden = false;
Rdir = true;
}
} else {
Rdir = false;
}
if (Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) {
if (busted == false && busted2 == false && spy._x > -2 && pause == false) {
if (spy._x > 575 && spy._x < 671) {
spy._y += 2.5;
}
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
hidden = false;
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
}
hidden = true;
}
if (spyzone.hitTest(zone)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zone2)) {
if (hidden == false) {
busted2 = true;
}
}
if (busted == true) {
enemy.gotoAndStop(2);
++bustedtimer;
}
if (busted2 == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer > 30) {
bustext._y = 100;
}
if (bustedtimer > 100) {
gotoAndPlay(1);
}
if (timer > 800) {
timer = 1;
}
if (timer < 400) {
if (busted == false) {
enemy._x -= 1;
}
if (busted2 == false) {
enemy2._x += 1;
}
enemy._xscale = 100;
enemy2._xscale = 100;
zone._x = enemy._x - 118;
zone2._x = enemy2._x;
} else {
if (busted == false) {
enemy._x += 1;
}
if (busted2 == false) {
enemy2._x -= 1;
}
enemy._xscale = -100;
enemy2._xscale = -100;
zone._x = enemy._x;
zone2._x = enemy2._x - 118;
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 117 {
}
movieClip 118 {
}
movieClip 120 {
}
movieClip 122 {
}
movieClip 124 {
}
movieClip 132 {
}
movieClip 143 {
}
movieClip 148 {
}
movieClip 158 {
}
movieClip 161 {
}
movieClip 162 {
}
movieClip 166 {
}
movieClip 169 {
}
movieClip 171 {
}
movieClip 181 {
frame 14 {
stop();
}
}
movieClip 183 {
}
movieClip 185 {
}
movieClip 187 {
}
movieClip 189 {
}
movieClip 191 {
}
movieClip 193 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
}
movieClip 195 {
frame 1 {
stop();
}
}
movieClip 197 {
}
movieClip 199 {
}
movieClip 200 {
frame 65 {
stop();
}
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 295 {
frame 126 {
stop();
}
}
button 298 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(this._currentframe - 1);
}
}
}
button 303 {
on (release) {
_root.mn.music.stop();
_root.pause = false;
_root.gotoAndPlay(2);
}
}
button 306 {
on (release) {
_root.pause = false;
this._x = -400;
}
}
movieClip 307 {
}
movieClip 309 {
}
frame 5 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 310 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(5);
}
}
}
frame 6 {
stop();
spy._x = 5;
timer = 0;
timer2 = 0;
hidden = true;
secret = false;
busted = false;
busted2 = false;
bustedtimer = 0;
bustext._y = -200;
clocksett._y = 498;
cooldown = 10;
cooled = true;
warned = false;
this.onEnterFrame = function () {
++timergame;
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer2;
if (timer2 < 100) {
zone2._x -= 3.5;
} else {
if (timer2 < 200) {
zone2._x += 3.5;
}
}
if (timer2 > 199) {
timer2 = 0;
}
++timer;
spyzone._x = spy._x + 15;
if (plant == false && spy._x > 345 && spy._x < 540) {
spy._y = 450;
spy._x += 0.6;
}
if (spy._x >= 539) {
spy._y = 457;
}
if (spyzone.hitTest(plantsuit) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
plant = false;
plantsuit._y = -1000;
_root.pp.pop.start();
}
if (spyzone.hitTest(plantsuit) && warned == true) {
text1._alpha = 100;
} else {
text1._alpha = 0;
}
if (spy._x > 345 && plant == true) {
text2._alpha = 100;
warned = true;
} else {
text2._alpha = 0;
}
if (Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) {
if (busted == false && busted2 == false && pause == false) {
if (spy._x < 350 or spy._x > 539) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
hidden = false;
Rdir = true;
}
}
} else {
Rdir = false;
}
if (Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) {
if (busted == false && busted2 == false && spy._x > -2 && pause == false) {
if (spy._x < 352 or spy._x > 539) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
hidden = false;
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
}
hidden = true;
}
if (spyzone.hitTest(zone)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zone2)) {
if (hidden == false) {
busted2 = true;
}
}
if (busted == true) {
enemy.gotoAndStop(4);
++bustedtimer;
}
if (busted2 == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer > 30) {
bustext._y = 100;
}
if (bustedtimer > 100) {
gotoAndPlay(1);
}
if (timer > 100) {
enemy.gotoAndStop(5);
suitcase._alpha = 0;
}
enemy._x += 1;
suitcase._x += 0.7;
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 313 {
}
movieClip 315 {
}
movieClip 317 {
}
movieClip 319 {
}
movieClip 329 {
frame 10 {
stop();
}
}
movieClip 331 {
frame 10 {
stop();
}
}
movieClip 332 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 334 {
}
movieClip 336 {
}
movieClip 339 {
}
movieClip 341 {
}
movieClip 343 {
}
movieClip 347 {
}
movieClip 348 {
frame 19 {
stop();
}
}
movieClip 351 {
}
movieClip 352 {
}
movieClip 353 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 359 {
}
movieClip 361 {
}
movieClip 363 {
}
movieClip 365 {
}
movieClip 367 {
}
movieClip 369 {
}
movieClip 372 {
}
movieClip 373 {
}
movieClip 375 {
}
frame 7 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 8 {
stop();
spy._x = 5;
timer = 0;
hidden = true;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
this.onEnterFrame = function () {
++timergame;
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (timer < 101) {
zone._x -= 3.6;
zoneb._x -= 3.1;
zonec._x -= 2.6;
} else {
if (timer < 201) {
zone._x += 3.6;
zoneb._x += 3.1;
zonec._x += 2.6;
}
}
if (timer > 200) {
timer = 0;
}
if (spyzone.hitTest(elev)) {
elev.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spyzone.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spyzone.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spyzone.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spyzone.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spyzone.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
hidden = false;
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (spy._x > 176 or spy._y > 200) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
hidden = false;
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (spyzone.hitTest(zone)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zoneb)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zonec)) {
if (hidden == false) {
busted = true;
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(5);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 378 {
}
movieClip 380 {
}
movieClip 382 {
}
movieClip 384 {
}
movieClip 386 {
}
movieClip 388 {
}
frame 9 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 10 {
stop();
spy._x = 5;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
vitessang = 1.05;
this.onEnterFrame = function () {
++timergame;
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (timer < 101) {
zone._x -= 3.6;
zoneb._x -= 3.1;
zonec._x -= 2.6;
} else {
if (timer < 201) {
zone._x += 3.6;
zoneb._x += 3.1;
zonec._x += 2.6;
}
}
if (timer > 200) {
timer = 0;
}
if (spyzone.hitTest(elev)) {
elev.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spyzone.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spyzone.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
hidden = false;
Rdir = true;
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
hidden = false;
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zoneb)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zonec)) {
if (hidden == false) {
busted = true;
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(5);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 391 {
}
movieClip 394 {
}
movieClip 395 {
}
movieClip 397 {
}
movieClip 399 {
}
movieClip 401 {
frame 1 {
stop();
}
}
movieClip 402 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 404 {
}
movieClip 406 {
}
movieClip 408 {
}
movieClip 410 {
}
frame 11 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 12 {
stop();
spy._x = 5;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
vitessang = 1.05;
this.onEnterFrame = function () {
++timergame;
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
hidden = false;
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (spy._x > 298 or spy._y > 200) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
hidden = false;
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(5);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 413 {
}
movieClip 415 {
}
movieClip 417 {
frame 90 {
stop();
}
}
movieClip 420 {
}
movieClip 421 {
}
movieClip 424 {
}
movieClip 426 {
}
movieClip 428 {
}
movieClip 430 {
}
movieClip 432 {
}
movieClip 434 {
}
movieClip 436 {
}
movieClip 437 {
}
movieClip 439 {
}
movieClip 441 {
}
movieClip 443 {
}
movieClip 445 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 447 {
}
frame 13 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 14 {
stop();
spy._x = 5;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
vitessang = 1.05;
this.onEnterFrame = function () {
++timergame;
_root.camerac2.cameracc.gotoAndStop(20);
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y > 200) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
hidden = false;
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
hidden = false;
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndStop(13);
}
this._currentframe;
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 450 {
}
movieClip 451 {
frame 1 {
stop();
}
}
movieClip 452 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 454 {
}
movieClip 456 {
}
button 457 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(13);
}
}
}
frame 15 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 16 {
stop();
spy._x = 5;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
vitessang = 1.05;
light = true;
var dropShadow = new flash.filters.DropShadowFilter(0, 0, 0, 0, 0, 0, 0, 0);
var dropShadowon = new flash.filters.DropShadowFilter(17, 0, 0, 9, 9, 9, 0, 0);
this.onEnterFrame = function () {
++timergame;
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(switchh) && light) {
text2._alpha = 100;
} else {
text2._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
light = !light;
cooled = false;
_root.sw.switche.start(0, 1);
}
}
if (light == false) {
nuit._y = -58;
textn._alpha = 100;
spy.filters = undefined;
enemy3.filters = undefined;
enemy.filters = undefined;
camerac.filters = undefined;
}
if (light == true) {
nuit._y = -800;
textn._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y > 200) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(13);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 460 {
}
movieClip 462 {
}
movieClip 464 {
}
movieClip 468 {
frame 19 {
stop();
}
frame 42 {
stop();
}
}
movieClip 469 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 471 {
}
movieClip 473 {
}
movieClip 475 {
}
movieClip 477 {
}
frame 17 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 18 {
function code(key) {
if (key == 1) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 2) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 4) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 5) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 6) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 8) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 9) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 7 && step == 1) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 7 && step == 2) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 7 && step == 0) {
_root.o.ok.start();
step = 1;
key = 10;
}
if (key == 0 && step == 0) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 0 && step == 2) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 0 && step == 1) {
_root.o.ok.start();
step = 2;
key = 10;
}
if (key == 3 && step == 0) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 3 && step == 1) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == 3 && step == 2) {
_root.o.ok.start();
step = 3;
pass = true;
key = 10;
}
}
stop();
cooldown2 = 8;
cooled2 = true;
spy._x = 5;
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
vitessang = 1.05;
light = true;
pass = false;
step = 0;
ring = false;
timerpass = 0;
pass2 = false;
this.onEnterFrame = function () {
++timergame;
if (cooled2 == false && cooldown2 >= 1) {
--cooldown2;
}
if (cooldown2 == 0) {
cooled2 = true;
cooldown2 = 8;
}
if ((Key.isDown(48) or Key.isDown(96)) && cooled2) {
code(0);
cooled2 = false;
}
if ((Key.isDown(49) or Key.isDown(97)) && cooled2) {
code(1);
cooled2 = false;
}
if ((Key.isDown(50) or Key.isDown(98)) && cooled2) {
code(2);
cooled2 = false;
}
if ((Key.isDown(51) or Key.isDown(99)) && cooled2) {
code(3);
cooled2 = false;
}
if ((Key.isDown(52) or Key.isDown(100)) && cooled2) {
code(4);
cooled2 = false;
}
if ((Key.isDown(53) or Key.isDown(101)) && cooled2) {
code(5);
cooled2 = false;
}
if ((Key.isDown(54) or Key.isDown(102)) && cooled2) {
code(6);
cooled2 = false;
}
if ((Key.isDown(55) or Key.isDown(103)) && cooled2) {
code(7);
cooled2 = false;
}
if ((Key.isDown(56) or Key.isDown(104)) && cooled2) {
code(8);
cooled2 = false;
}
if ((Key.isDown(57) or Key.isDown(105)) && cooled2) {
code(9);
cooled2 = false;
}
_root.stars.gotoAndStop(step + 1);
stars._y = pinpad._y - 40;
if (pass == true) {
if (timerpass <= 20) {
++timerpass;
} else {
doorf._alpha = 100;
dorrs._alpha = 0;
pass2 = true;
_root.dr.door.start(0, 1);
timerpass = null;
}
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
_root.ph.phone.start(0, 3);
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 390 && spy._y < 200 && pass2 == false) {
pinpad._y = 300;
} else {
pinpad._y = -500;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 417 or spy._y > 200 or pass == true && spy._x < 750) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(13);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 480 {
}
movieClip 483 {
}
movieClip 485 {
}
movieClip 486 {
}
movieClip 487 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 489 {
}
movieClip 491 {
}
movieClip 493 {
}
movieClip 495 {
}
movieClip 499 {
}
movieClip 501 {
}
movieClip 503 {
}
movieClip 505 {
}
movieClip 508 {
frame 19 {
stop();
}
}
movieClip 509 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
button 514 {
on (release) {
_root.code(0);
}
}
button 517 {
on (release) {
_root.code(1);
}
}
button 520 {
on (release) {
_root.code(2);
}
}
button 523 {
on (release) {
_root.code(3);
}
}
button 526 {
on (release) {
_root.code(4);
}
}
button 528 {
on (release) {
_root.code(5);
}
}
button 531 {
on (release) {
_root.code(6);
}
}
button 534 {
on (release) {
_root.code(7);
}
}
button 536 {
on (release) {
_root.code(8);
}
}
button 539 {
on (release) {
_root.code(9);
}
}
movieClip 540 {
}
movieClip 544 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
frame 19 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 20 {
stop();
spy._x = 5;
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
timera = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = true;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
arrose = false;
this.onEnterFrame = function () {
++timergame;
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
if (!arrose2) {
++timer;
if (busted == false) {
if (timer < 105) {
enemy1._x -= 1;
enemy1.gotoAndStop(7);
}
if (timer > 105 && timer < 200) {
enemy1.gotoAndStop(8);
}
if (timer > 200 && timer < 250) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer > 250 && timer < 300) {
enemy1.gotoAndStop(8);
}
if (timer > 300 && timer < 550) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer > 550 && timer < 600) {
enemy1.gotoAndStop(8);
}
if (timer > 600 && timer < 650) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer > 650 && timer < 700) {
enemy1.gotoAndStop(8);
}
if (timer > 700) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer == 105) {
_root.wt.watering.start(0, 1);
}
if (timer == 250) {
_root.wt.watering.start(0, 1);
}
if (timer == 550) {
_root.wt.watering.start(0, 1);
}
if (timer == 650) {
_root.wt.watering.start(0, 1);
}
}
}
if (arrose2) {
++timera;
}
if (timera > 50) {
enemy1.gotoAndStop(7);
arrose2 = false;
timera = 0;
}
zoneenemy._x = enemy1._x - 25;
if (spy.hitTest(zoneenemy) && !arrose) {
_root.wt.watering.start(0, 1);
enemy1.gotoAndStop(8);
arrose = true;
arrose2 = true;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 417 or spy._y > 200 or pass == true && spy._x < 750) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(13);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 547 {
}
frame 21 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 548 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(21);
}
}
}
frame 22 {
stop();
if (initRight) {
spy._x = 548;
} else {
spy._x = 5;
}
if (initRight == false) {
spy._x = 125;
}
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
airduct = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
this.onEnterFrame = function () {
++timergame;
if ((Key.isDown(40) or Key.isDown(83)) && airduct && cooled2) {
_root.gl.squeakvent.start(0, 1);
cooled2 = false;
}
if (!(Key.isDown(40) or Key.isDown(83))) {
_root.gl.squeakvent.stop();
cooled2 = true;
}
if ((Key.isDown(38) or Key.isDown(87)) && airduct && cooled3) {
_root.bg.bang.start(0, 20);
cooled3 = false;
}
if (!(Key.isDown(38) or Key.isDown(87))) {
_root.bg.bang.stop();
cooled3 = true;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
_root.dr.door.start(0, 1);
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
_root.dr.door.start(0, 1);
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
spy.gotoAndStop(1);
hidden = true;
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
} else {
if (spy2._y > 100) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(21);
}
if (spy2._x > 755) {
gotoAndStop(this._currentframe + 3);
}
};
}
movieClip 551 {
}
movieClip 553 {
}
movieClip 555 {
}
movieClip 557 {
}
movieClip 559 {
}
movieClip 561 {
}
movieClip 565 {
}
movieClip 567 {
}
movieClip 569 {
}
movieClip 570 {
}
movieClip 573 {
}
movieClip 575 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
frame 23 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 24 {
stop();
if (initRight) {
spy._x = 664;
} else {
spy._x = 105;
}
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
this.onEnterFrame = function () {
++timergame;
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe - 3);
initRight = false;
cooled = false;
_root.dr.door.start(0, 1);
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe - 3);
initRight = true;
cooled = false;
_root.dr.door.start(0, 1);
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (spy._x < 750) {
if (busted == false) {
if (spy._x < 417 or spy._y > 200 or pass == true && spy._x < 750) {
_root.popp.pp.start(0, 1);
spy._x += 5;
spy.gotoAndStop(2);
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
spy.gotoAndStop(3);
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy.gotoAndStop(1);
hidden = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(21);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 578 {
}
movieClip 580 {
}
movieClip 583 {
}
movieClip 585 {
}
movieClip 586 {
frame 1 {
stop();
}
}
movieClip 588 {
}
movieClip 590 {
}
movieClip 592 {
}
frame 25 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 26 {
stop();
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = true;
plant = true;
tombe = false;
this.onEnterFrame = function () {
++timergame;
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 501) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
enemy2._x += 1;
enemy2.gotoAndStop(2);
}
if (timer > 501 && timer < 601) {
enemy1.gotoAndStop(4);
enemy2.gotoAndStop(6);
}
if (timer > 601 && timer < 1100) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
enemy2._x -= 1;
enemy2.gotoAndStop(1);
}
if (timer > 1101 && timer < 1200) {
enemy1.gotoAndStop(6);
enemy2.gotoAndStop(4);
}
if (timer > 1200) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
_root.dr.door.start(0, 1);
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
_root.dr.door.start(0, 1);
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
_root.sw.switche.start(0, 1);
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
spy.filters = undefined;
enemy3.filters = undefined;
enemy.filters = undefined;
camerac.filters = undefined;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._y > 200 or spy._x < 750) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (spy._y > 200 or spy._x > 140) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(21);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 594 {
}
movieClip 596 {
}
movieClip 597 {
}
movieClip 598 {
frame 9 {
stop();
}
}
movieClip 599 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 601 {
}
movieClip 603 {
}
frame 27 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 604 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(27);
}
}
}
frame 28 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
this.onEnterFrame = function () {
++timergame;
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
_root.ph.phone.start(0, 3);
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy2._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy2._y = 235;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(27);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 607 {
}
movieClip 608 {
frame 1 {
stop();
}
}
movieClip 609 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 29 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 30 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
firstt = true;
cooled2 = true;
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
this.onEnterFrame = function () {
++timergame;
if (spy._x > 350 && firstt) {
_root.dr.door.start(0, 1);
firstt = false;
}
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 100;
}
if (spy2._y < 200) {
if (Key.isDown(38) or Key.isDown(87)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 192;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (spy2._y > 449) {
if (Key.isDown(40) or Key.isDown(83)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 457;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if ((Key.isDown(40) or Key.isDown(83)) && airduct && cooled2) {
_root.gl.squeakvent.start(0, 1);
cooled2 = false;
}
if (!(Key.isDown(40) or Key.isDown(83))) {
_root.gl.squeakvent.stop();
cooled2 = true;
}
if ((Key.isDown(38) or Key.isDown(87)) && airduct && cooled3) {
_root.bg.bang.start(0, 20);
cooled3 = false;
}
if (!(Key.isDown(38) or Key.isDown(87))) {
_root.bg.bang.stop();
cooled3 = true;
}
if (pass == true) {
doorf._alpha = 100;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
_root.ph.phone.start(0, 3);
}
}
if (spy.hitTest(controlc)) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false && timer2 < 100) {
timer2 += 2;
}
}
if (spy.hitTest(controlc)) {
if ((Key.isDown(40) or Key.isDown(83)) && pause == false && timer2 > 0) {
timer2 -= 2;
}
}
if (spy.hitTest(controlc)) {
textcc._alpha = 100;
camerac.filters = [myGlowFilter];
} else {
textcc._alpha = 0;
camerac.filters = [myGlowFilter2];
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (spy._x < 750 or spy._y < 200) {
if (busted == false) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
}
if ((Key.isDown(40) or Key.isDown(83)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y += 5;
spy2.gotoAndStop(1);
} else {
if (spy2._y > 100) {
if (!Key.isDown(38) && !Key.isDown(87)) {
spy2.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(27);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 612 {
}
movieClip 614 {
}
movieClip 616 {
}
movieClip 617 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 619 {
}
movieClip 621 {
}
movieClip 623 {
}
frame 31 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 624 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(31);
}
}
}
frame 32 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
enemy1.gotoAndStop(9);
chien.gotoAndStop(10);
timerc = 1;
_root.bk.bark.start(0, 1);
this.onEnterFrame = function () {
++timergame;
++timerc;
if (timerc > 570) {
dorrs._alpha = 100;
doorf._alpha = 0;
_root.dr.door.start(0, 1);
timerc = null;
}
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
++enemy1._x;
++chien._x;
++laisse._x;
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 540 or timerc < 570 or spy._x > 560) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(31);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 626 {
}
movieClip 646 {
}
frame 33 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 34 {
stop();
choiceset = false;
opensecret = false;
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
enemy1.gotoAndStop(9);
chien.gotoAndStop(10);
timerc = 0;
this.onEnterFrame = function () {
++timergame;
if (opensecret) {
secretroom.gotoAndStop(2);
}
++timerc;
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timerc < 400) {
++chien._x;
}
if (timerc == 400) {
laisse.gotoAndStop(2);
chien.gotoAndStop(11);
}
if (timerc < 460) {
++enemy1._x;
++laisse._x;
}
if (timerc == 460) {
enemy1.gotoAndStop(12);
}
if (timerc == 470) {
secretroom.gotoAndStop(2);
}
if (timerc == 520) {
enemy1.gotoAndStop(9);
}
if (timerc >= 520 && timerc <= 590) {
++enemy1._x;
++laisse._x;
}
if (timerc == 590) {
enemy1.gotoAndStop(12);
}
if (timerc == 610) {
secretroom.gotoAndStop(3);
choiceset = true;
}
if (timerc == 615) {
enemy1._y = -100;
laisse._y = -100;
chien._y = -100;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(secretroom) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
if (opensecret) {
gotoAndStop(this._currentframe + 1);
cooled = false;
}
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(plantsuit) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
plant = false;
cooled = false;
plantsuit._alpha = 0;
}
}
if (spy.hitTest(coffeemachine) && plant == false && choiceset == true) {
choice._y = 270;
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
hidden = true;
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
++bustedcount;
bustext._y = 170;
}
if (bustedtimer > 100) {
gotoAndPlay(31);
}
if (spy._x >= 755) {
spy._x = 755;
}
};
}
movieClip 649 {
}
movieClip 653 {
}
movieClip 655 {
}
movieClip 657 {
frame 26 {
stop();
}
}
movieClip 658 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 659 {
}
movieClip 660 {
}
movieClip 662 {
}
movieClip 663 {
frame 22 {
stop();
}
}
movieClip 664 {
frame 22 {
stop();
}
}
movieClip 665 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 666 {
}
movieClip 667 {
frame 213 {
stop();
}
}
movieClip 668 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 670 {
}
button 674 {
on (release) {
_root.wr.wrong.start();
}
}
button 677 {
on (release) {
_root.opensecret = true;
_root.o.ok.start();
}
}
button 680 {
on (release) {
_root.wr.wrong.start();
}
}
button 683 {
on (release) {
_root.wr.wrong.start();
}
}
button 686 {
on (release) {
_root.wr.wrong.start();
}
}
button 689 {
on (release) {
_root.wr.wrong.start();
}
}
button 692 {
on (release) {
_root.wr.wrong.start();
}
}
button 695 {
on (release) {
_root.wr.wrong.start();
}
}
movieClip 696 {
}
frame 35 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 697 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(35);
_root.sm.steam.stop();
_root.sq.squeakyvalve.stop();
}
}
}
frame 36 {
stop();
choiceset = false;
opensecret = false;
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = false;
tombe = false;
enemy1.gotoAndStop(9);
chien.gotoAndStop(10);
timerc = 0;
this.onEnterFrame = function () {
++timergame;
if (opensecret) {
secretroom.gotoAndStop(2);
}
++timerc;
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timerc < 400) {
++chien._x;
}
if (timerc == 400) {
laisse.gotoAndStop(2);
chien.gotoAndStop(11);
}
if (timerc < 460) {
++enemy1._x;
++laisse._x;
}
if (timerc == 460) {
enemy1.gotoAndStop(12);
}
if (timerc == 470) {
secretroom.gotoAndStop(2);
}
if (timerc == 520) {
enemy1.gotoAndStop(9);
}
if (timerc >= 520 && timerc <= 590) {
++enemy1._x;
++laisse._x;
}
if (timerc == 590) {
enemy1.gotoAndStop(12);
}
if (timerc == 610) {
secretroom.gotoAndStop(3);
choiceset = true;
}
if (timerc == 615) {
enemy1._y = -100;
laisse._y = -100;
chien._y = -100;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(secretroom) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
if (opensecret) {
gotoAndStop(this._currentframe + 1);
cooled = false;
}
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(plantsuit) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
plant = false;
cooled = false;
plantsuit._alpha = 0;
}
}
if (spy.hitTest(coffeemachine) && plant == false && choiceset == true) {
choice._y = 270;
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
hidden = true;
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(35);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 700 {
}
movieClip 702 {
}
movieClip 707 {
}
movieClip 717 {
}
movieClip 722 {
}
movieClip 732 {
}
movieClip 734 {
}
movieClip 740 {
frame 14 {
stop();
}
}
movieClip 742 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
}
frame 37 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 38 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = false;
valverot = 1;
steam = true;
hot = false;
timerh = 0;
_root.sm.steam.start(0, 999);
_root.sq.squeakyvalve.start(0, 999);
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
this.onEnterFrame = function () {
++timergame;
if ((Key.isDown(40) or Key.isDown(83)) && airduct && cooled2) {
_root.gl.squeakvent.start(0, 1);
cooled2 = false;
}
if (!(Key.isDown(40) or Key.isDown(83))) {
_root.gl.squeakvent.stop();
cooled2 = true;
}
if ((Key.isDown(38) or Key.isDown(87)) && airduct && cooled3) {
_root.bg.bang.start(0, 20);
cooled3 = false;
}
if (!(Key.isDown(38) or Key.isDown(87))) {
_root.bg.bang.stop();
cooled3 = true;
}
if (spy._x > 465 && spy._y < 200 && steam) {
hot = true;
}
if (hot && timerh < 51) {
++timerh;
}
if (timerh >= 50) {
hot = false;
spy._x = 464;
timerh = 0;
}
if (hot) {
spy.gotoAndStop(8);
}
if (valverot >= 90) {
pipe.gotoAndStop(2);
steam = false;
_root.sm.steam.stop();
}
valve.gotoAndStop(valverot);
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 80;
}
if (spy2._y < 200) {
if (Key.isDown(38) or Key.isDown(87)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 192;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (spy2._y > 449) {
if (Key.isDown(40) or Key.isDown(83)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 457;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(valve) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
++valverot;
_root.sq.squeakyvalve.setVolume(100);
} else {
_root.sq.squeakyvalve.setVolume(0);
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
spy3._alpha = 100;
spy3.gotoAndStop(7);
plant = true;
conduite._alpha = 80;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false && !hot) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 470 && spy._y < 200 or steam == false or spy._y > 200) {
if (busted == false) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false && !hot) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
if (!hot) {
spy.gotoAndStop(1);
}
} else {
if (!hot) {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
}
if ((Key.isDown(40) or Key.isDown(83)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y += 5;
spy2.gotoAndStop(1);
} else {
if (spy2._y > 100) {
if (!Key.isDown(38) && !Key.isDown(87)) {
spy2.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
_root.sm.steam.stop();
_root.sq.squeakyvalve.stop();
++bustedcount;
gotoAndPlay(35);
}
if (spy._x > 755) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 746 {
}
movieClip 748 {
}
movieClip 749 {
}
movieClip 751 {
}
movieClip 755 {
frame 40 {
stop();
}
}
movieClip 756 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 757 {
}
movieClip 759 {
}
movieClip 760 {
frame 1 {
stop();
}
}
movieClip 762 {
}
frame 39 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 40 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled2 = true;
cooled3 = true;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
valverot = 1;
steam = true;
driving = false;
timerh = 0;
forklift._yscale = 48;
forklift._xscale = -48;
elev = 2;
blocked = false;
carry1 = false;
carry2 = false;
doublebox = false;
enemyway = 1;
treshold = boxx2._x + 30;
ecountdown = 50;
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
this.onEnterFrame = function () {
++timergame;
if ((Key.isDown(40) or Key.isDown(83)) && airduct && cooled2) {
_root.gl.squeakvent.start(0, 1);
cooled2 = false;
}
if (!(Key.isDown(40) or Key.isDown(83))) {
_root.gl.squeakvent.stop();
cooled2 = true;
}
if ((Key.isDown(38) or Key.isDown(87)) && airduct && cooled3) {
_root.bg.bang.start(0, 20);
cooled3 = false;
}
if (!(Key.isDown(38) or Key.isDown(87))) {
_root.bg.bang.stop();
cooled3 = true;
}
if (driving && cooled5 && (Key.isDown(38) or Key.isDown(87))) {
_root.hy.hydraulics.start(0, 1);
cooled5 = false;
}
if (driving && cooled5 && (Key.isDown(40) or Key.isDown(83))) {
_root.hy.hydraulics.start(0, 1);
cooled5 = false;
}
if (!(Key.isDown(38) or Key.isDown(87)) && !(Key.isDown(40) or Key.isDown(83))) {
_root.hy.hydraulics.stop();
cooled5 = true;
}
if (driving && cooled6 && (Key.isDown(37) or Key.isDown(65))) {
_root.rv.reverse.start(0, 99);
cooled6 = false;
}
if (!(Key.isDown(37) or Key.isDown(65))) {
_root.rv.reverse.stop();
cooled6 = true;
}
if (driving && cooled7 && (Key.isDown(39) or Key.isDown(68))) {
_root.di.drive.start(0, 99);
cooled7 = false;
}
if (!(Key.isDown(39) or Key.isDown(68))) {
_root.di.drive.stop();
cooled7 = true;
}
forkbody._x = forklift._x - 10;
forkbody._y = forklift._y + 20;
palette1._x = boxx1._x - 11;
palette1._y = boxx1._y + 34;
box1._x = boxx1._x - 45;
box1._y = boxx1._y - 15;
box1b._x = boxx1._x - 45;
box1b._y = boxx1._y + 9;
box1c._x = boxx1._x - 55;
box1c._y = boxx1._y - 13;
palette2._x = boxx2._x - 11;
palette2._y = boxx2._y + 34;
box2._x = boxx2._x - 45;
box2._y = boxx2._y - 15;
box2b._x = boxx2._x - 45;
box2b._y = boxx2._y + 9;
box2c._x = boxx2._x - 55;
box2c._y = boxx2._y - 13;
_root.sm.steam.stop();
_root.sq.squeakyvalve.stop();
forklift.forkl.gotoAndStop(elev);
if (elev == 1 && carry1) {
boxx1._y = fork._y - 42;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry1 = false;
}
if (elev == 1 && carry2) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry2 = false;
treshold = boxx2._x + 30;
drivedown._alpha = 80;
}
if (elev == 1 && carry3) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
boxx1._y = fork._y - 99;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry3 = false;
treshold = boxx2._x + 30;
drivedown._alpha = 80;
}
if (blocked2 == 1 && carry1) {
boxx1._y = fork._y - 35;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
doublebox = true;
fork.gotoAndStop(1);
carry1 = false;
}
if (valverot >= 90) {
pipe.gotoAndStop(2);
steam = false;
}
valve.gotoAndStop(valverot);
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 80;
}
if (spy2._y < 200) {
if (Key.isDown(38) or Key.isDown(87)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 192;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (enemyway == 1) {
if (enemy1._x > treshold) {
enemy1.gotoAndStop(1);
enemy1._x -= 1;
} else {
hold = true;
}
}
if (enemyway == -1) {
if (enemy1._x < 770) {
enemy1.gotoAndStop(2);
enemy1._x += 1;
} else {
hold2 = true;
}
}
}
if (hold == true) {
--ecountdown;
enemy1.gotoAndStop(4);
if (ecountdown <= 0) {
ecountdown = 50;
enemyway = -1;
hold = false;
}
}
if (hold2 == true) {
--ecountdown;
enemy1.gotoAndStop(6);
if (ecountdown <= 0) {
ecountdown = 50;
enemyway = 1;
hold2 = false;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(forklift) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
spy._alpha = 0;
forklift.gotoAndStop(2);
driving = true;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (forkbody.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (spy.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev1.gotoAndStop(3);
cooled = false;
_root.dg.ding.start(0, 1);
}
if (forkbody.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 151;
fork._y = 236 - elev;
wheel1._y = 225;
wheel2._y = 225;
elev1.gotoAndStop(3);
cooled = false;
_root.dg.ding.start(0, 1);
}
if (forkbody.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
_root.dg.ding.start(0, 1);
}
if (forkbody.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 417;
fork._y = 502 - elev;
wheel1._y = 491;
wheel2._y = 491;
elev2.gotoAndStop(3);
cooled = false;
_root.dg.ding.start(0, 1);
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if (Key.isDown(16)) {
spy._alpha = 100;
forklift.gotoAndStop(1);
driving = false;
spy._x = forklift._x;
spy._y = forklift._y + 40;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (spy._x < 750 or spy._y < 200) {
if (busted == false) {
if (driving && !blocked1c && !blocked2c && !blocked4c && !blocked5c && forklift._x < 740) {
fork._x += 3;
fork._xscale = -48;
forklift._x += 3;
forklift._xscale = -48;
wheel1._x += 3;
wheel2._x += 3;
wheel1._rotation += 5;
wheel2._rotation += 5;
}
if (!driving) {
if (!airduct) {
if (!_root.spy.hitTest(boxx1)) {
if (!_root.spy.hitTest(boxx2)) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false && forklift._x > 20) {
if (busted == false && spy._x > -2) {
if (driving) {
fork._x -= 3;
fork._xscale = -48;
forklift._x -= 3;
forklift._xscale = -48;
wheel1._x -= 3;
wheel2._x -= 3;
wheel1._rotation -= 5;
wheel2._rotation -= 5;
}
if (!driving) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && pause == false && !blocked1b && !blocked2b) {
if (elev <= 69) {
if (busted == false) {
++elev;
fork._y -= 1;
}
}
}
if ((Key.isDown(40) or Key.isDown(83)) && pause == false && !blocked1 && !blocked2) {
if (elev >= 2) {
if (busted == false) {
--elev;
fork._y += 1;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
}
if ((Key.isDown(40) or Key.isDown(83)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y += 5;
spy2.gotoAndStop(1);
} else {
if (spy2._y > 100) {
if (!Key.isDown(38) && !Key.isDown(87)) {
spy2.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.fork.hitTest(palette1) && (Key.isDown(38) or Key.isDown(87))) {
boxx1._y = -200;
forklift.gotoAndStop(3);
fork.gotoAndStop(2);
carry1 = true;
}
if (_root.fork.hitTest(palette2) && (Key.isDown(38) or Key.isDown(87))) {
if (doublebox) {
boxx2._y = -200;
boxx1._y = -200;
forklift.gotoAndStop(4);
carry3 = true;
fork.gotoAndStop(2);
treshold = 20;
} else {
boxx2._y = -200;
forklift.gotoAndStop(3);
carry2 = true;
fork.gotoAndStop(2);
treshold = 20;
}
}
if (_root.fork.hitTest(box1)) {
blocked1 = true;
} else {
blocked1 = false;
}
if (_root.fork.hitTest(box1b)) {
blocked1b = true;
} else {
blocked1b = false;
}
if (_root.fork.hitTest(box1c)) {
blocked1c = true;
} else {
blocked1c = false;
}
if (_root.forkbody.hitTest(box1c)) {
blocked4c = true;
} else {
blocked4c = false;
}
if (_root.forkbody.hitTest(box2c)) {
blocked5c = true;
} else {
blocked5c = false;
}
if (_root.fork.hitTest(box2)) {
blocked2 = true;
} else {
blocked2 = false;
}
if (_root.fork.hitTest(box2b)) {
blocked2b = true;
} else {
blocked2b = false;
}
if (_root.fork.hitTest(box2c)) {
blocked2c = true;
} else {
blocked2c = false;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(forklift)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(35);
}
if (spy._x >= 755) {
spy._x = 755;
}
if (spy2._y > 600) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 765 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 767 {
}
movieClip 770 {
}
movieClip 771 {
}
movieClip 773 {
frame 1 {
stop();
}
}
movieClip 776 {
}
movieClip 777 {
}
movieClip 778 {
frame 1 {
stop();
}
}
movieClip 779 {
}
movieClip 780 {
frame 1 {
stop();
}
}
movieClip 781 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 784 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 786 {
}
movieClip 788 {
}
movieClip 790 {
}
movieClip 792 {
}
movieClip 794 {
}
frame 41 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 795 {
on (release) {
if (bustedtimer == 0) {
gotoAndStop(41);
}
}
}
frame 42 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
valverot = 1;
steam = true;
driving = false;
timerh = 0;
forklift._yscale = 48;
forklift._xscale = -48;
elev = 2;
blocked = false;
carry1 = false;
carry2 = false;
doublebox = false;
Length = 170;
treshold = Math.round(2 * (800 - boxx2._x) - 40);
anglecorde = 0;
energie = 0;
ec = 0;
vang = 0;
et = 10;
et2 = 9.9;
amp = 7;
sens = 0;
ampmax = 90;
pivoty = -100;
pivotx = 400;
pivot = 0;
pivx = 540;
pivy = 140;
pivx2 = 370;
pivy2 = 302;
pivx3 = 230;
pivy3 = 455;
Reverse = false;
spy.gotoAndStop(5);
through = false;
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
this.onEnterFrame = function () {
++timergame;
beam._x = pivx;
beam._y = pivy;
cable._x = pivotx;
cable._y = pivoty;
if (busted == false) {
if (amp > 5) {
amp -= 0.1;
}
cable._xscale = 3.7 * Length;
et += 0.07000000000000001 + 5 / Length;
et2 += 0.07000000000000001 + 5 / Length;
}
anglecorde = amp * Math.sin(et);
anglecorde2 = amp * Math.sin(et2);
if (anglecorde2 > anglecorde) {
sens = 1;
}
if (anglecorde2 < anglecorde) {
sens = -1;
}
cable._rotation = -0.5 * anglecorde + 90;
if (spy.hitTest(wallR)) {
amp -= 10;
}
if (spy.hitTest(wallL)) {
amp -= 10;
}
spy._y = Length * Math.cos(Math.PI * anglecorde / 360) + pivoty;
spy._x = Length * Math.sin(Math.PI * anglecorde / 360) + pivotx;
forkbody._x = forklift._x - 10;
forkbody._y = forklift._y + 20;
palette1._x = boxx1._x - 11;
palette1._y = boxx1._y + 34;
box1._x = boxx1._x - 45;
box1._y = boxx1._y - 15;
box1b._x = boxx1._x - 45;
box1b._y = boxx1._y + 9;
box1c._x = boxx1._x - 55;
box1c._y = boxx1._y - 13;
palette2._x = boxx2._x - 11;
palette2._y = boxx2._y + 34;
box2._x = boxx2._x - 45;
box2._y = boxx2._y - 15;
box2b._x = boxx2._x - 45;
box2b._y = boxx2._y + 9;
box2c._x = boxx2._x - 55;
box2c._y = boxx2._y - 13;
forklift.forkl.gotoAndStop(elev);
if (elev == 1 && carry1) {
boxx1._y = fork._y - 42;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry1 = false;
}
if (elev == 1 && carry2) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry2 = false;
}
if (elev == 1 && carry3) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
boxx1._y = fork._y - 99;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry3 = false;
}
if (blocked2 == 1 && carry1) {
boxx1._y = fork._y - 35;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
doublebox = true;
fork.gotoAndStop(1);
carry1 = false;
}
if (valverot >= 90) {
pipe.gotoAndStop(2);
steam = false;
}
valve.gotoAndStop(valverot);
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 80;
}
if (spy2._y < 200) {
if (Key.isDown(38) or Key.isDown(87)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 192;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < treshold / 2 - 0.1 * treshold) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > treshold / 2 - 0.1 * treshold && timer < treshold / 2) {
enemy1.gotoAndStop(4);
treshold = Math.round(2 * (800 - boxx2._x) - 40);
}
if (timer > treshold / 2 && timer < treshold - 0.1 * treshold) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > treshold - 0.1 * treshold && timer < treshold) {
enemy1.gotoAndStop(6);
}
if (timer > treshold) {
treshold = Math.round(2 * (800 - boxx2._x) - 40);
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(forklift) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
spy._alpha = 0;
forklift.gotoAndStop(2);
driving = true;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (forkbody.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (spy.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev1.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 151;
fork._y = 236 - elev;
wheel1._y = 225;
wheel2._y = 225;
elev1.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 417;
fork._y = 502 - elev;
wheel1._y = 491;
wheel2._y = 491;
elev2.gotoAndStop(3);
cooled = false;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if (Key.isDown(16)) {
spy._alpha = 100;
forklift.gotoAndStop(1);
driving = false;
spy._x = forklift._x;
spy._y = forklift._y + 40;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (busted == false) {
Rdir = true;
spy.gotoAndStop(3);
if (sens >= 0 && amp > 5) {
--amp;
}
if (sens < 0 && amp < ampmax) {
++amp;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false) {
Ldir = true;
spy.gotoAndStop(4);
if (sens >= 0 && amp < ampmax) {
++amp;
}
if (sens < 0 && amp > 5) {
--amp;
}
}
} else {
Ldir = false;
}
if ((Key.isDown(40) or Key.isDown(83)) && pause == false) {
if (busted == false) {
Length += 8;
}
pushdown = true;
} else {
pushdown = false;
}
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
if (busted == false) {
if (Length > 10) {
Length -= 4;
}
}
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (sens >= 0) {
if (amp > 20) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
}
if (sens < 0) {
if (amp > 20) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(5);
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && pause == false && !blocked1b && !blocked2b) {
if (elev <= 69) {
if (busted == false) {
++elev;
fork._y -= 1;
}
}
}
if ((Key.isDown(40) or Key.isDown(83)) && pause == false && !blocked1 && !blocked2) {
if (elev >= 2) {
if (busted == false) {
--elev;
fork._y += 1;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
}
if ((Key.isDown(40) or Key.isDown(83)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y += 5;
spy2.gotoAndStop(1);
} else {
if (spy2._y > 100) {
if (!Key.isDown(38) && !Key.isDown(87)) {
spy2.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.fork.hitTest(palette1) && Key.isDown(38)) {
boxx1._y = -200;
forklift.gotoAndStop(3);
fork.gotoAndStop(2);
carry1 = true;
}
if (_root.fork.hitTest(palette2) && Key.isDown(38)) {
if (doublebox) {
boxx2._y = -200;
boxx1._y = -200;
forklift.gotoAndStop(4);
carry3 = true;
fork.gotoAndStop(2);
} else {
boxx2._y = -200;
forklift.gotoAndStop(3);
carry2 = true;
fork.gotoAndStop(2);
}
}
if (_root.fork.hitTest(box1)) {
blocked1 = true;
} else {
blocked1 = false;
}
if (_root.fork.hitTest(box1b)) {
blocked1b = true;
} else {
blocked1b = false;
}
if (_root.fork.hitTest(box1c)) {
blocked1c = true;
} else {
blocked1c = false;
}
if (_root.forkbody.hitTest(box1c)) {
blocked4c = true;
} else {
blocked4c = false;
}
if (_root.forkbody.hitTest(box2c)) {
blocked5c = true;
} else {
blocked5c = false;
}
if (_root.fork.hitTest(box2)) {
blocked2 = true;
} else {
blocked2 = false;
}
if (_root.fork.hitTest(box2b)) {
blocked2b = true;
} else {
blocked2b = false;
}
if (_root.fork.hitTest(box2c)) {
blocked2c = true;
} else {
blocked2c = false;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy)) {
busted = true;
enemy1.gotoAndStop(3);
}
if (_root.enemy2.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (anglecorde > 61 && Length > 230 && pivot == 0) {
label1._alpha = 0;
pivotx = pivx;
pivoty = pivy;
Length -= 230;
pivot = 1;
line1._alpha = 100;
}
if (anglecorde < -80 && Length > 230 && pivot == 1) {
line2._alpha = 100;
pivotx = pivx2;
pivoty = pivy2;
Length -= 230;
pivot = 2;
}
if (anglecorde < -65 && Length > 180 && pivot == 2) {
line3._alpha = 100;
pivotx = pivx3;
pivoty = pivy3;
Length -= 180;
pivot = 3;
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(41);
}
if (spy._y > 600) {
gotoAndStop(this._currentframe + 1);
}
};
if (spy._x >= 755) {
spy._x = 755;
}
}
movieClip 798 {
}
movieClip 799 {
frame 1 {
stop();
}
}
movieClip 800 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 801 {
}
movieClip 803 {
}
movieClip 804 {
}
movieClip 806 {
}
movieClip 807 {
}
movieClip 808 {
}
movieClip 809 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 811 {
}
movieClip 813 {
}
movieClip 815 {
}
movieClip 817 {
}
movieClip 820 {
}
movieClip 822 {
}
movieClip 824 {
}
movieClip 826 {
}
frame 43 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 44 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
valverot = 1;
steam = true;
driving = false;
timerh = 0;
forklift._yscale = 48;
forklift._xscale = -48;
elev = 2;
blocked = false;
carry1 = false;
carry2 = false;
doublebox = false;
Length = 170;
treshold = Math.round(2 * (800 - boxx2._x) - 40);
anglecorde = 0;
energie = 0;
ec = 0;
vang = 0;
landed = false;
snaped = false;
ampmax = 90;
pivoty = -100;
pivotx = 400;
pivot = 0;
pivx = 540;
pivy = 140;
pivx2 = 370;
pivy2 = 302;
pivx3 = 230;
pivy3 = 455;
Reverse = false;
spy.gotoAndStop(5);
through = false;
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
this.onEnterFrame = function () {
++timergame;
beam._x = pivx;
beam._y = pivy;
cable._x = pivotx;
cable._y = pivoty;
if (busted == false) {
if (amp > 5) {
amp -= 0.1;
}
cable._xscale = 3.7 * Length;
et += 0.07000000000000001 + 5 / Length;
et2 += 0.07000000000000001 + 5 / Length;
}
anglecorde = amp * Math.sin(et);
anglecorde2 = amp * Math.sin(et2);
if (anglecorde2 > anglecorde) {
sens = 1;
}
if (anglecorde2 < anglecorde) {
sens = -1;
}
cable._rotation = -0.5 * anglecorde + 90;
if (spy.hitTest(wallR)) {
amp -= 10;
}
if (spy.hitTest(wallL)) {
amp -= 10;
}
spy._y = Length * Math.cos(Math.PI * anglecorde / 360) + pivoty;
spy._x = Length * Math.sin(Math.PI * anglecorde / 360) + pivotx;
forkbody._x = forklift._x - 10;
forkbody._y = forklift._y + 20;
palette1._x = boxx1._x - 11;
palette1._y = boxx1._y + 34;
box1._x = boxx1._x - 45;
box1._y = boxx1._y - 15;
box1b._x = boxx1._x - 45;
box1b._y = boxx1._y + 9;
box1c._x = boxx1._x - 55;
box1c._y = boxx1._y - 13;
palette2._x = boxx2._x - 11;
palette2._y = boxx2._y + 34;
box2._x = boxx2._x - 45;
box2._y = boxx2._y - 15;
box2b._x = boxx2._x - 45;
box2b._y = boxx2._y + 9;
box2c._x = boxx2._x - 55;
box2c._y = boxx2._y - 13;
forklift.forkl.gotoAndStop(elev);
if (elev == 1 && carry1) {
boxx1._y = fork._y - 42;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry1 = false;
}
if (elev == 1 && carry2) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry2 = false;
}
if (elev == 1 && carry3) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
boxx1._y = fork._y - 99;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry3 = false;
}
if (blocked2 == 1 && carry1) {
boxx1._y = fork._y - 35;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
doublebox = true;
fork.gotoAndStop(1);
carry1 = false;
}
if (valverot >= 90) {
pipe.gotoAndStop(2);
steam = false;
}
valve.gotoAndStop(valverot);
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 80;
}
if (spy2._y < 200) {
if (Key.isDown(38) or Key.isDown(87)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 192;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < treshold / 2 - 0.1 * treshold) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > treshold / 2 - 0.1 * treshold && timer < treshold / 2) {
enemy1.gotoAndStop(4);
treshold = Math.round(2 * (800 - boxx2._x) - 40);
}
if (timer > treshold / 2 && timer < treshold - 0.1 * treshold) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > treshold - 0.1 * treshold && timer < treshold) {
enemy1.gotoAndStop(6);
}
if (timer > treshold) {
treshold = Math.round(2 * (800 - boxx2._x) - 40);
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(forklift) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
spy._alpha = 0;
forklift.gotoAndStop(2);
driving = true;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (forkbody.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (spy.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev1.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 151;
fork._y = 236 - elev;
wheel1._y = 225;
wheel2._y = 225;
elev1.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 417;
fork._y = 502 - elev;
wheel1._y = 491;
wheel2._y = 491;
elev2.gotoAndStop(3);
cooled = false;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if (Key.isDown(16)) {
spy._alpha = 100;
forklift.gotoAndStop(1);
driving = false;
spy._x = forklift._x;
spy._y = forklift._y + 40;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (busted == false) {
Rdir = true;
spy.gotoAndStop(3);
if (sens >= 0 && amp > 5) {
--amp;
}
if (sens < 0 && amp < ampmax) {
++amp;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false) {
Ldir = true;
spy.gotoAndStop(4);
if (sens >= 0 && amp < ampmax) {
++amp;
}
if (sens < 0 && amp > 5) {
--amp;
}
}
} else {
Ldir = false;
}
if ((Key.isDown(40) or Key.isDown(83)) && pause == false) {
if (busted == false) {
Length += 8;
}
pushdown = true;
} else {
pushdown = false;
}
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
if (busted == false) {
if (Length > 10) {
Length -= 4;
}
}
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (sens >= 0) {
if (amp > 20) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
}
if (sens < 0) {
if (amp > 20) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(5);
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && pause == false && !blocked1b && !blocked2b) {
if (elev <= 69) {
if (busted == false) {
++elev;
fork._y -= 1;
}
}
}
if ((Key.isDown(40) or Key.isDown(83)) && pause == false && !blocked1 && !blocked2) {
if (elev >= 2) {
if (busted == false) {
--elev;
fork._y += 1;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
}
if ((Key.isDown(40) or Key.isDown(83)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y += 5;
spy2.gotoAndStop(1);
} else {
if (spy2._y > 100) {
if (!Key.isDown(38) && !Key.isDown(87)) {
spy2.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.fork.hitTest(palette1) && Key.isDown(38)) {
boxx1._y = -200;
forklift.gotoAndStop(3);
fork.gotoAndStop(2);
carry1 = true;
}
if (_root.fork.hitTest(palette2) && Key.isDown(38)) {
if (doublebox) {
boxx2._y = -200;
boxx1._y = -200;
forklift.gotoAndStop(4);
carry3 = true;
fork.gotoAndStop(2);
} else {
boxx2._y = -200;
forklift.gotoAndStop(3);
carry2 = true;
fork.gotoAndStop(2);
}
}
if (_root.fork.hitTest(box1)) {
blocked1 = true;
} else {
blocked1 = false;
}
if (_root.fork.hitTest(box1b)) {
blocked1b = true;
} else {
blocked1b = false;
}
if (_root.fork.hitTest(box1c)) {
blocked1c = true;
} else {
blocked1c = false;
}
if (_root.forkbody.hitTest(box1c)) {
blocked4c = true;
} else {
blocked4c = false;
}
if (_root.forkbody.hitTest(box2c)) {
blocked5c = true;
} else {
blocked5c = false;
}
if (_root.fork.hitTest(box2)) {
blocked2 = true;
} else {
blocked2 = false;
}
if (_root.fork.hitTest(box2b)) {
blocked2b = true;
} else {
blocked2b = false;
}
if (_root.fork.hitTest(box2c)) {
blocked2c = true;
} else {
blocked2c = false;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy)) {
busted = true;
enemy1.gotoAndStop(3);
}
if (_root.enemy2.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(41);
}
if (spy._y > 600) {
timersafe = 1440;
pass = false;
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 830 {
}
movieClip 832 {
}
movieClip 834 {
}
movieClip 836 {
}
movieClip 837 {
}
movieClip 838 {
}
movieClip 840 {
}
movieClip 842 {
}
movieClip 845 {
}
movieClip 846 {
}
movieClip 848 {
}
frame 45 {
stop();
this.onEnterFrame = function () {
countdownsafe = '';
nextFrame();
};
}
button 849 {
on (release) {
if (bustedtimer == 0) {
landed = false;
snaped = false;
timersafe = 1440;
gotoAndPlay(45);
}
}
}
frame 46 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
vitessang = 1.05;
light = true;
ring = false;
plant = true;
valverot = 1;
steam = true;
driving = false;
timerh = 0;
forklift._yscale = 48;
forklift._xscale = -48;
elev = 2;
blocked = false;
carry1 = false;
carry2 = false;
doublebox = false;
Length = 170;
treshold = Math.round(2 * (800 - boxx2._x) - 40);
anglecorde = 0;
energie = 0;
ec = 0;
vang = 0;
ampmax = 90;
pivoty = -100;
pivotx = 400;
pivot = 0;
pivx = 540;
pivy = 140;
pivx2 = 370;
pivy2 = 302;
pivx3 = 230;
pivy3 = 455;
Reverse = false;
spy.gotoAndStop(5);
through = false;
millisec = 90;
horispeed = 0;
if (landed) {
spy2._y = 459;
spy2._x = 750;
spy._alpha = 0;
snaptxt._alpha = 0;
}
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
bigdoor1.gotoAndStop(2);
if (pass) {
textwarn._alpha = 0;
}
this.onEnterFrame = function () {
++timergame;
if (pass) {
hitb1._y = 1000;
hitb2._y = 1000;
hitb3._y = 1000;
hitb4._y = 1000;
hitb5._y = 1000;
hitb6._y = 1000;
hitb7._y = 1000;
hitb8._y = 1000;
hitb9._y = 1000;
hitb10._y = 1000;
las1.gotoAndStop(2);
las2.gotoAndStop(2);
bigdoor2.gotoAndStop(2);
glass._alpha = 0;
}
if (millisec >= 0) {
millisec -= 3;
} else {
millisec = 90;
}
sec = Math.round(timersafe / 36);
if (timersafe >= 0) {
if (pass == false) {
--timersafe;
if (timersafe <= 1200) {
textwarn._alpha = 0;
if (sec >= 10) {
if (millisec >= 10) {
countdownsafe = '00:' + sec + ':' + millisec;
} else {
countdownsafe = '00:' + sec + ':0' + millisec;
}
}
if (sec < 10 && sec >= 1) {
if (millisec >= 10) {
countdownsafe = '00:0' + sec + ':' + millisec;
} else {
countdownsafe = '00:0' + sec + ':0' + millisec;
}
}
if (sec < 1) {
countdownsafe = '00:00:00';
}
}
}
} else {
busted = true;
}
if (pass == true) {
countdownsafe = '';
}
if (Key.isDown(32) && snaped == false) {
snaptxt._alpha = 0;
horispeed = 0.08 * amp * Math.sin(et);
spy2._x = spy._x;
spy2._y = spy._y;
spy._alpha = 0;
snaped = true;
}
if (snaped == true && spy2._y < 458) {
spy2._x += horispeed;
spy2._y += 14;
spy2.gotoAndStop(9);
}
if (spy2._y >= 440) {
spy2._y = 459;
landed = true;
}
beam._x = pivx;
beam._y = pivy;
cable._x = pivotx;
cable._y = pivoty;
if (busted == false) {
if (amp > 5) {
amp -= 0.1;
}
cable._xscale = 3.7 * Length;
if (horispeed >= 0) {
horispeed -= 0.1;
}
if (horispeed <= 0) {
horispeed += 0.1;
}
et += 0.07000000000000001 + 5 / Length;
et2 += 0.07000000000000001 + 5 / Length;
}
anglecorde = amp * Math.sin(et);
anglecorde2 = amp * Math.sin(et2);
if (anglecorde2 > anglecorde) {
sens = 1;
}
if (anglecorde2 < anglecorde) {
sens = -1;
}
cable._rotation = -0.5 * anglecorde + 90;
if (spy.hitTest(wallR)) {
amp -= 10;
}
if (spy.hitTest(wallL)) {
amp -= 10;
}
spy._y = Length * Math.cos(Math.PI * anglecorde / 360) + pivoty;
spy._x = Length * Math.sin(Math.PI * anglecorde / 360) + pivotx;
forkbody._x = forklift._x - 10;
forkbody._y = forklift._y + 20;
palette1._x = boxx1._x - 11;
palette1._y = boxx1._y + 34;
box1._x = boxx1._x - 45;
box1._y = boxx1._y - 15;
box1b._x = boxx1._x - 45;
box1b._y = boxx1._y + 9;
box1c._x = boxx1._x - 55;
box1c._y = boxx1._y - 13;
palette2._x = boxx2._x - 11;
palette2._y = boxx2._y + 34;
box2._x = boxx2._x - 45;
box2._y = boxx2._y - 15;
box2b._x = boxx2._x - 45;
box2b._y = boxx2._y + 9;
box2c._x = boxx2._x - 55;
box2c._y = boxx2._y - 13;
forklift.forkl.gotoAndStop(elev);
if (elev == 1 && carry1) {
boxx1._y = fork._y - 42;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry1 = false;
}
if (elev == 1 && carry2) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry2 = false;
}
if (elev == 1 && carry3) {
boxx2._y = fork._y - 42;
boxx2._x = fork._x + 110;
boxx1._y = fork._y - 99;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
fork.gotoAndStop(1);
carry3 = false;
}
if (blocked2 == 1 && carry1) {
boxx1._y = fork._y - 35;
boxx1._x = fork._x + 110;
forklift.gotoAndStop(2);
doublebox = true;
fork.gotoAndStop(1);
carry1 = false;
}
if (valverot >= 90) {
pipe.gotoAndStop(2);
steam = false;
}
valve.gotoAndStop(valverot);
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 80;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < treshold / 2 - 0.1 * treshold) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > treshold / 2 - 0.1 * treshold && timer < treshold / 2) {
enemy1.gotoAndStop(4);
treshold = Math.round(2 * (800 - boxx2._x) - 40);
}
if (timer > treshold / 2 && timer < treshold - 0.1 * treshold) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > treshold - 0.1 * treshold && timer < treshold) {
enemy1.gotoAndStop(6);
}
if (timer > treshold) {
treshold = Math.round(2 * (800 - boxx2._x) - 40);
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(forklift) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
spy._alpha = 0;
forklift.gotoAndStop(2);
driving = true;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
conduite._alpha = 80;
maskk._alpha = 100;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (forkbody.hitTest(elev1)) {
elev1.gotoAndStop(2);
}
if (spy.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev1.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 151;
fork._y = 236 - elev;
wheel1._y = 225;
wheel2._y = 225;
elev1.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
}
if (forkbody.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
forklift._y = 417;
fork._y = 502 - elev;
wheel1._y = 491;
wheel2._y = 491;
elev2.gotoAndStop(3);
cooled = false;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if (Key.isDown(16)) {
spy._alpha = 100;
forklift.gotoAndStop(1);
driving = false;
spy._x = forklift._x;
spy._y = forklift._y + 40;
}
if (landed == false) {
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (busted == false) {
Rdir = true;
spy.gotoAndStop(3);
if (sens >= 0 && amp > 5) {
--amp;
}
if (sens < 0 && amp < ampmax) {
++amp;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false) {
Ldir = true;
spy.gotoAndStop(4);
if (sens >= 0 && amp < ampmax) {
++amp;
}
if (sens < 0 && amp > 5) {
--amp;
}
}
} else {
Ldir = false;
}
if ((Key.isDown(40) or Key.isDown(83)) && pause == false) {
if (busted == false) {
Length += 8;
}
pushdown = true;
} else {
pushdown = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (sens >= 0) {
if (amp > 20) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
}
if (sens < 0) {
if (amp > 20) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(5);
}
}
}
}
if (landed == true) {
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
_root.popp.pp.start(0, 1);
spy2._x += 5;
spy2.gotoAndStop(5);
hidden = false;
Rdir = true;
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy2._x > -2) {
if (spy2._x > 176 or spy2._y > 200) {
_root.popp.pp.start(0, 1);
spy2._x -= 5;
spy2.gotoAndStop(6);
hidden = false;
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
spy2.gotoAndStop(4);
}
}
if (_root.fork.hitTest(palette1) && Key.isDown(38)) {
boxx1._y = -200;
forklift.gotoAndStop(3);
fork.gotoAndStop(2);
carry1 = true;
}
if (_root.fork.hitTest(palette2) && Key.isDown(38)) {
if (doublebox) {
boxx2._y = -200;
boxx1._y = -200;
forklift.gotoAndStop(4);
carry3 = true;
fork.gotoAndStop(2);
} else {
boxx2._y = -200;
forklift.gotoAndStop(3);
carry2 = true;
fork.gotoAndStop(2);
}
}
if (_root.fork.hitTest(box1)) {
blocked1 = true;
} else {
blocked1 = false;
}
if (_root.fork.hitTest(box1b)) {
blocked1b = true;
} else {
blocked1b = false;
}
if (_root.fork.hitTest(box1c)) {
blocked1c = true;
} else {
blocked1c = false;
}
if (_root.forkbody.hitTest(box1c)) {
blocked4c = true;
} else {
blocked4c = false;
}
if (_root.forkbody.hitTest(box2c)) {
blocked5c = true;
} else {
blocked5c = false;
}
if (_root.fork.hitTest(box2)) {
blocked2 = true;
} else {
blocked2 = false;
}
if (_root.fork.hitTest(box2b)) {
blocked2b = true;
} else {
blocked2b = false;
}
if (_root.fork.hitTest(box2c)) {
blocked2c = true;
} else {
blocked2c = false;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.darmor.hitTest(spy2) && pass) {
darmor._alpha = 0;
textarmor._alpha = 100;
}
if (_root.hitb1.hitTest(spy)) {
busted = true;
enemy1.gotoAndStop(3);
}
if (_root.hitb2.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb3.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb4.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb5.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb6.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb7.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb8.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb9.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb10.hitTest(spy)) {
busted = true;
enemy2.gotoAndStop(3);
}
if (_root.hitb1.hitTest(spy2)) {
busted = true;
enemy2.gotoAndStop(3);
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
landed = false;
snaped = false;
timersafe = 1440;
++bustedcount;
gotoAndPlay(45);
}
if (spy2._x > 760) {
gotoAndStop(this._currentframe + 1);
}
if (spy2._x < 30) {
if (pass) {
gotoAndStop(this._currentframe + 3);
} else {
spy2._x = 30;
}
}
};
}
movieClip 852 {
}
movieClip 855 {
}
movieClip 857 {
}
movieClip 858 {
}
movieClip 859 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 861 {
}
movieClip 863 {
}
movieClip 864 {
}
movieClip 866 {
}
movieClip 868 {
}
movieClip 871 {
}
movieClip 873 {
}
movieClip 875 {
}
frame 47 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 48 {
function resetrandom() {
A = Math.round(Math.random() * 9);
B = Math.round(Math.random() * 9);
C = Math.round(Math.random() * 9);
}
function code(key) {
if (key != A && key != B && key != C) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == A && step == 1) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == A && step == 2) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == A && step == 0) {
_root.o.ok.start();
step = 1;
key = 10;
}
if (key == B && step == 0) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == B && step == 2) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == B && step == 1) {
_root.o.ok.start();
step = 2;
key = 10;
}
if (key == C && step == 0) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == C && step == 1) {
_root.wr.wrong.start();
step = 0;
key = 10;
}
if (key == C && step == 2) {
_root.o.ok.start();
pass = true;
step = 3;
key = 10;
}
}
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooled2 = true;
cooldown = 10;
cooldown2 = 8;
step = 0;
vitessang = 1.05;
light = true;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
enemy1.gotoAndStop(9);
chien.gotoAndStop(10);
timerc = 1;
resetrandom();
bigdoor2.gotoAndStop(2);
this.onEnterFrame = function () {
++timergame;
if (A == B or A == C or B == C) {
resetrandom();
}
if ((Key.isDown(48) or Key.isDown(96)) && cooled2) {
code(0);
cooled2 = false;
}
if ((Key.isDown(49) or Key.isDown(97)) && cooled2) {
code(1);
cooled2 = false;
}
if ((Key.isDown(50) or Key.isDown(98)) && cooled2) {
code(2);
cooled2 = false;
}
if ((Key.isDown(51) or Key.isDown(99)) && cooled2) {
code(3);
cooled2 = false;
}
if ((Key.isDown(52) or Key.isDown(100)) && cooled2) {
code(4);
cooled2 = false;
}
if ((Key.isDown(53) or Key.isDown(101)) && cooled2) {
code(5);
cooled2 = false;
}
if ((Key.isDown(54) or Key.isDown(102)) && cooled2) {
code(6);
cooled2 = false;
}
if ((Key.isDown(55) or Key.isDown(103)) && cooled2) {
code(7);
cooled2 = false;
}
if ((Key.isDown(56) or Key.isDown(104)) && cooled2) {
code(8);
cooled2 = false;
}
if ((Key.isDown(57) or Key.isDown(105)) && cooled2) {
code(9);
cooled2 = false;
}
_root.stars2.gotoAndStop(step + 1);
stars2._y = pinpad2._y - 40;
if (millisec >= 0) {
millisec -= 3;
} else {
millisec = 90;
}
sec = Math.round(timersafe / 36);
if (timersafe >= 0) {
if (pass == false) {
--timersafe;
if (sec >= 10) {
if (millisec >= 10) {
countdownsafe = '00:' + sec + ':' + millisec;
} else {
countdownsafe = '00:' + sec + ':0' + millisec;
}
}
if (sec < 10 && sec >= 1) {
if (millisec >= 10) {
countdownsafe = '00:0' + sec + ':' + millisec;
} else {
countdownsafe = '00:0' + sec + ':0' + millisec;
}
}
if (sec < 1) {
countdownsafe = '00:00:00';
}
}
} else {
busted = true;
}
if (pass == true) {
countdownsafe = '';
}
++timerc;
if (timerc > 570) {
dorrs._alpha = 100;
doorf._alpha = 0;
}
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
lastxt._alpha = 100;
doorf._alpha = 50;
dorrs._alpha = 0;
pinpad2._y = -1000;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled2 == false && cooldown2 >= 1) {
--cooldown2;
}
if (cooldown2 == 0) {
cooled2 = true;
cooldown2 = 8;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
++enemy1._x;
++chien._x;
++laisse._x;
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(controlc2) && pass == false) {
pinpad2._y = 300;
} else {
pinpad2._y = -1000;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 540 or timerc < 570 or spy._x > 560) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
landed = false;
snaped = false;
timersafe = 1440;
++bustedcount;
gotoAndPlay(45);
}
if (spy._x < 1) {
gotoAndStop(this._currentframe - 3);
}
if (spy._x > 760) {
spy._x = 760;
}
};
}
movieClip 883 {
}
movieClip 884 {
}
button 888 {
on (release) {
_root.code(0);
}
}
button 891 {
on (release) {
_root.code(3);
}
}
button 894 {
on (release) {
_root.code(7);
}
}
movieClip 895 {
}
movieClip 897 {
}
frame 49 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 899 {
on (release) {
if (bustedtimer == 0) {
gotoAndPlay(49);
}
}
}
frame 50 {
stop();
choiceset = false;
opensecret = false;
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
enemy1.gotoAndStop(9);
chien.gotoAndStop(10);
timerc = 0;
Dash = 0;
crossed = false;
_root.al.alarm.stop();
this.onEnterFrame = function () {
++timergame;
if (spy._x < 370) {
crossed = true;
}
if (crossed) {
drone._x -= 3;
}
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
textdash._alpha = 0;
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
textdash2._alpha = 100;
textdash._alpha = 0;
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 439) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
if (spy._x > 320) {
spy._x -= 200;
} else {
spy._x = 20;
}
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
_root.al.alarm.start(0, 999);
}
++timerc;
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timerc < 400) {
++chien._x;
}
if (timerc == 400) {
laisse.gotoAndStop(2);
chien.gotoAndStop(11);
}
if (timerc < 460) {
++enemy1._x;
++laisse._x;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(secretroom) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
if (opensecret) {
gotoAndStop(this._currentframe + 1);
cooled = false;
}
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(plantsuit) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
plant = false;
cooled = false;
plantsuit._alpha = 0;
}
}
if (spy.hitTest(coffeemachine) && plant == false && choiceset == true) {
choice._y = 270;
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
hidden = true;
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.drone.hitTest(spy)) {
busted = true;
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < 483 && spy._x > 430) {
spy._x = 483;
}
if (spy._x > 370 && spy._x <= 430) {
spy._x = 370;
}
if (spy._x < 10) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 901 {
}
movieClip 903 {
}
movieClip 914 {
frame 12 {
stop();
}
}
movieClip 919 {
}
frame 51 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 52 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
enemy1.gotoAndStop(9);
chien.gotoAndStop(10);
timerc = 1;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
if (spy._x > 220) {
spy._x -= 200;
} else {
spy._x = 20;
}
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
++timerc;
if (timerc > 570) {
dorrs._alpha = 100;
doorf._alpha = 0;
}
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
++enemy1._x;
++chien._x;
++laisse._x;
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 540 or timerc < 570 or spy._x > 560) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && (spy._x > 10 or spy._y > 200)) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.ele.hitTest(spy)) {
textelev._alpha = 80;
}
if (_root.camerac2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.chien.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -1) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 920 {
frame 1 {
stop();
}
}
movieClip 921 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 923 {
}
frame 53 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 54 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 80;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
Dash = 0;
timercam = 0;
var myGlowFilter = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 3, 2, false, false);
var myGlowFilter2 = new flash.filters.GlowFilter(6724095, 0.6, 4, 4, 0, 0, false, false);
camerac.filters = [myGlowFilter2];
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if (timercam < 10) {
++timercam;
if (timercam > 3) {
camerac._y = 63;
}
}
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (spy._x > 350 && spy._y < 200) {
dorrs._alpha = 0;
doorf._alpha = 100;
}
if (spy2._y < 200) {
if (Key.isDown(38) or Key.isDown(87)) {
spy2._alpha = 0;
airduct = false;
spy._alpha = 100;
spy._y = 192;
vent._alpha = 100;
vent2._alpha = 100;
conduite._alpha = 0;
}
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(vent2) && (Key.isDown(40) or Key.isDown(83)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
vent2._alpha = 20;
spy._alpha = 0;
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
_root.ph.phone.start(0, 3);
}
}
if (spy.hitTest(controlc)) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false && timer2 < 100) {
timer2 += 2;
}
}
if (spy.hitTest(controlc)) {
if ((Key.isDown(40) or Key.isDown(83)) && pause == false && timer2 > 0) {
timer2 -= 2;
}
}
if (spy.hitTest(controlc)) {
textcc._alpha = 100;
camerac.filters = [myGlowFilter];
} else {
textcc._alpha = 0;
camerac.filters = [myGlowFilter2];
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 300) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 300 && timer3 < 350) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 350 && timer3 < 600) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 600) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (spy._x < 750 or spy._y < 200) {
if (busted == false) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
}
if ((Key.isDown(40) or Key.isDown(83)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y += 5;
spy2.gotoAndStop(1);
} else {
if (spy2._y > 100) {
if (!Key.isDown(38) && !Key.isDown(87)) {
spy2.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -5) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
frame 55 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 56 {
stop();
spy.gotoAndStop(4);
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 650) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 194;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 650 && timer3 < 750) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 750 && timer3 < 1350) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 1350) {
enemycaché._y = 1000;
enemy._y = 235.5;
enemy3._y = 198.7;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -5) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
movieClip 924 {
frame 1 {
stop();
}
}
movieClip 925 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 57 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 58 {
stop();
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
airduct = false;
plant = true;
tombe = false;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (spy2._x > 80) {
vent2.gotoAndStop(2);
}
if (spy2._x > 120 && spy2._y < 200) {
tombe = true;
spy2._y += 5;
spy2.gotoAndStop(5);
}
if (spy2._y > 194) {
airduct = false;
spy2._alpha = 0;
spy._alpha = 100;
tombe = false;
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 501) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
enemy2._x += 1;
enemy2.gotoAndStop(2);
}
if (timer > 501 && timer < 601) {
enemy1.gotoAndStop(4);
enemy2.gotoAndStop(6);
}
if (timer > 601 && timer < 1100) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
enemy2._x -= 1;
enemy2.gotoAndStop(1);
}
if (timer > 1101 && timer < 1200) {
enemy1.gotoAndStop(6);
enemy2.gotoAndStop(4);
}
if (timer > 1200) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(vent) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
conduite._alpha = 80;
vent._alpha = 20;
spy.gotoAndStop(7);
spy2._alpha = 100;
airduct = true;
cooled = false;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
hidden = true;
light = !light;
cooled = false;
}
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché.gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._y > 200 && spy._x < 750 or spy._y < 200 && (spy._x < 80 or spy._x > 120)) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (spy._y > 200 or spy._x > 125 or spy._x < 85) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 1;
if (!tombe) {
spy2.gotoAndStop(2);
}
} else {
if (spy2._y > 100 && airduct && !tombe) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
if (!tombe) {
spy2.gotoAndStop(4);
}
} else {
if (spy2._y <= 101 && airduct && !tombe) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy2.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < 2) {
gotoAndStop(this._currentframe + 1);
}
};
}
movieClip 927 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
frame 59 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 60 {
stop();
if (initRight2) {
spy._x = 548;
spy._y = 457;
} else {
spy._x = 740;
}
if (initRight2 == false) {
spy._x = 125;
spy._y = 457;
}
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
if (_root.enemy.hitTest(spy)) {
busted = true;
}
enemy._x += 1;
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy._x < 350 && spy._y < 200 && !airduct) {
text5._alpha = 100;
} else {
text5._alpha = 0;
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight2 = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe + 1);
initRight2 = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
}
hidden = true;
}
if ((Key.isDown(38) or Key.isDown(87)) && (pause == false && airduct && spy2._y >= 100)) {
spy2._y -= 2;
spy2.gotoAndStop(2);
} else {
if (spy2._y > 100) {
spy2.gotoAndStop(1);
}
}
if ((Key.isDown(39) or Key.isDown(68)) && (pause == false && airduct && spy2._y <= 101)) {
spy2._x += 2;
spy2.gotoAndStop(4);
} else {
if (spy2._y <= 101) {
spy2.gotoAndStop(3);
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -5) {
gotoAndStop(this._currentframe + 3);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
movieClip 928 {
}
movieClip 930 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
frame 61 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 62 {
stop();
if (initRight2) {
spy._x = 664;
} else {
spy._x = 105;
}
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
plant = true;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 439) {
spy._x += 300;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
if (spy._x > 320) {
spy._x -= 300;
} else {
spy._x = 20;
}
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(wc1) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe - 3);
initRight2 = false;
cooled = false;
}
if (spy.hitTest(wc2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
gotoAndStop(this._currentframe - 3);
initRight2 = true;
cooled = false;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._y > 200 && spy._x < 750 or spy._y < 200 && (spy._x < 80 or spy._x > 120)) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (spy._y > 200 or spy._x > 125 or spy._x < 85) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(49);
}
if (spy._x >= 760) {
spy._x = 760;
}
};
}
frame 63 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 931 {
on (release) {
if (bustedtimer == 0) {
gotoAndPlay(63);
}
}
}
frame 64 {
stop();
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
timera = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
arrose = false;
plant = true;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
if (_root.enemy3.hitTest(spy)) {
busted = true;
}
if (_root.enemy2.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
if (!arrose2) {
++timer;
if (busted == false) {
if (timer < 105) {
enemy1._x -= 1;
enemy1.gotoAndStop(7);
}
if (timer > 105 && timer < 200) {
enemy1.gotoAndStop(8);
}
if (timer > 200 && timer < 250) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer > 250 && timer < 300) {
enemy1.gotoAndStop(8);
}
if (timer > 300 && timer < 550) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer > 550 && timer < 600) {
enemy1.gotoAndStop(8);
}
if (timer > 600 && timer < 650) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
if (timer > 650 && timer < 700) {
enemy1.gotoAndStop(8);
}
if (timer > 700) {
enemy1.gotoAndStop(7);
enemy1._x -= 1;
}
}
}
if (arrose2) {
++timera;
}
if (timera > 50) {
enemy1.gotoAndStop(7);
arrose2 = false;
timera = 0;
}
zoneenemy._x = enemy1._x - 25;
if (spy.hitTest(zoneenemy) && !arrose) {
enemy1.gotoAndStop(8);
arrose = true;
arrose2 = true;
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev)) {
elev.gotoAndStop(2);
}
if (spy.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 417 && spy._y < 200 && pass == false) {
pinpad._alpha = 100;
} else {
pinpad._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._y > 200 && spy._x < 750 or spy._y < 200 && (spy._x < 80 or spy._x > 120)) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(63);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -5) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
frame 65 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 66 {
stop();
timer = 0;
hidden = true;
timer2 = 1;
timer3 = 0;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
pass = false;
pass1 = false;
pass2 = false;
ring = false;
plant = true;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (pass == true) {
doorf._alpha = 50;
dorrs._alpha = 0;
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(phone)) {
text_phone._alpha = 100;
} else {
text_phone._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(phone) && cooled == true && ring == false) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
ring = !ring;
cooled = false;
_root.ph.phone.start(0, 3);
}
}
if (light == false) {
nuit._y = -58;
}
if (light == true) {
nuit._y = -800;
}
if (ring) {
++timer3;
}
if (timer3 > 20 && timer3 < 50) {
phone2.gotoAndStop(2);
}
if (busted == false) {
if (timer3 > 50 && timer3 < 385) {
enemycaché._x -= 1;
enemycaché._gotoAndStop(1);
enemycaché._y = 458.3;
enemy._y = 1000;
enemy3._y = 1000;
}
if (timer3 > 385 && timer3 < 490) {
phone2.gotoAndStop(1);
enemycaché.gotoAndStop(3);
}
if (timer3 > 490 && timer3 < 820) {
enemycaché.gotoAndStop(2);
enemycaché._x += 1;
}
if (timer3 > 820) {
enemycaché._y = 1000;
enemy._y = 499.3;
enemy3._y = 462.5;
ring = false;
timer3 = 0;
}
}
if (spy._x > 390 && spy._y < 200 && pass == false) {
pinpad._y = 25;
} else {
pinpad._y = -200;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 540 or timerc < 570 or spy._x > 560) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemycaché.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
if (_root.enemycaché.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemycaché.gotoAndStop(4);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(63);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -10) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
frame 67 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 68 {
stop();
plant = true;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
light = true;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(switchh) && light) {
text2._alpha = 100;
} else {
text2._alpha = 0;
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(switchh) && cooled == true) {
if ((Key.isDown(38) or Key.isDown(87)) && pause == false) {
light = !light;
cooled = false;
_root.sw.switche.start(0, 1);
}
}
if (light == false) {
nuit._y = -58;
textn._alpha = 100;
spy.filters = undefined;
enemy3.filters = undefined;
enemy.filters = undefined;
camerac.filters = undefined;
}
if (light == true) {
nuit._y = -800;
textn._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 540 or timerc < 570 or spy._x > 560) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy3.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy3.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(63);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -5) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
frame 69 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 70 {
stop();
plant = true;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
_root.camerac2.cameracc.gotoAndStop(20);
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev7)) {
elev7.gotoAndStop(2);
}
if (spy.hitTest(elev7) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev7.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev8)) {
elev8.gotoAndStop(2);
}
if (spy.hitTest(elev8) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev8.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._x < 750 or spy._y < 200) {
if (spy._x < 540 or timerc < 570 or spy._x > 560) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
if (!airduct) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndStop(63);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < -10) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
frame 71 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 72 {
stop();
plant = true;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
enemy._x += 1;
if (_root.enemy.hitTest(spy)) {
busted = true;
}
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
if (timer < 701) {
enemy1._x -= 1;
enemy1.gotoAndStop(1);
}
if (timer > 701 && timer < 801) {
enemy1.gotoAndStop(4);
}
if (timer > 801 && timer < 1500) {
enemy1._x += 1;
enemy1.gotoAndStop(2);
}
if (timer > 1501 && timer < 1600) {
enemy1.gotoAndStop(6);
}
if (timer > 1600) {
timer = 0;
}
}
if (spy.hitTest(elev5)) {
elev5.gotoAndStop(2);
}
if (spy.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spy.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spy.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spy.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spy.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.enemy1.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
if (_root.enemy1.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
enemy1.gotoAndStop(3);
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(63);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < 2) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x < 296 && spy._x > 250) {
spy._x = 296;
}
if (spy._x > 232 && spy._x <= 250) {
spy._x = 232;
}
};
}
frame 73 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
button 934 {
on (release) {
if (bustedtimer == 0) {
gotoAndPlay(73);
}
}
}
frame 74 {
stop();
plant = true;
timer = 0;
hidden = true;
timer2 = 1;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
vitessang = 1.05;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.enemy.hitTest(spy)) {
busted = true;
}
if (_root.enemy12.hitTest(spy)) {
busted = true;
}
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
enemy._x += 1;
enemy12._x -= 1;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (timer < 101) {
zone._x -= 3.6;
zoneb._x -= 3.1;
zonec._x -= 2.6;
} else {
if (timer < 201) {
zone._x += 3.6;
zoneb._x += 3.1;
zonec._x += 2.6;
}
}
if (timer > 200) {
timer = 0;
}
if (spyzone.hitTest(elev)) {
elev.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev2)) {
elev2.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev2) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev2.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev3)) {
elev3.gotoAndStop(2);
}
if (spyzone.hitTest(elev3) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev3.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev4)) {
elev4.gotoAndStop(2);
}
if (spyzone.hitTest(elev4) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev4.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zoneb)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zonec)) {
if (hidden == false) {
busted = true;
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(73);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < 2) {
gotoAndStop(this._currentframe + 1);
}
};
}
frame 75 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 76 {
stop();
plant = true;
timer = 0;
hidden = true;
busted = false;
bustedtimer = 0;
bustext._y = -200;
cooldown = 10;
cooled = false;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (timer < 101) {
zone._x -= 3.6;
zoneb._x -= 3.1;
zonec._x -= 2.6;
} else {
if (timer < 201) {
zone._x += 3.6;
zoneb._x += 3.1;
zonec._x += 2.6;
}
}
if (timer > 200) {
timer = 0;
}
if (spyzone.hitTest(elev5)) {
elev5.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev5) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev5.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev6)) {
elev6.gotoAndStop(2);
text1._alpha = 100;
}
if (spyzone.hitTest(elev6) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev6.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev7)) {
elev7.gotoAndStop(2);
}
if (spyzone.hitTest(elev7) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 193;
elev7.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if (spyzone.hitTest(elev8)) {
ele8.gotoAndStop(2);
}
if (spyzone.hitTest(elev8) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87)) && cooled == true) {
spy._y = 457;
elev8.gotoAndStop(3);
cooled = false;
text1._alpha = 0;
}
if ((Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) && pause == false) {
if (busted == false) {
if (spy._y > 200 && spy._x < 750 or spy._y < 200 && (spy._x < 80 or spy._x > 120)) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
if (light == true) {
hidden = false;
}
Rdir = true;
}
}
} else {
Rdir = false;
}
if ((Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) && pause == false) {
if (busted == false && spy._x > -2) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
if (light == true) {
hidden = false;
}
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && (Rdir == false && !airduct)) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
if (light == true) {
hidden = false;
}
}
}
if (spyzone.hitTest(zone)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zoneb)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zonec)) {
if (hidden == false) {
busted = true;
}
}
spyzone._x = spy._x + 15;
spyzone._y = spy._y;
if (busted == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer == 1) {
_root.bs.bustd.start(0, 1);
}
if (bustedtimer > 30) {
bustext._y = 170;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(73);
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < 2) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x < 180 && spy._x > 140) {
spy._x = 180;
}
if (spy._x > 100 && spy._x <= 140) {
spy._x = 100;
}
};
}
frame 77 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 78 {
stop();
plant = true;
timer = 0;
timer2 = 1;
hidden = true;
secret = false;
busted = false;
busted2 = false;
bustedtimer = 0;
bustext._y = -200;
clocksett._y = 498;
cooldown = 10;
cooled = false;
warned = false;
Dash = 0;
this.onEnterFrame = function () {
++timergame;
if (_root.drone.hitTest(spy)) {
busted = true;
}
drone._x -= 2;
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer;
if (busted == false) {
_root.camerac.cameracc.gotoAndStop(timer2);
_root.camerac2.cameracc.gotoAndStop(timer2);
}
if (timer2 <= 200) {
++timer2;
} else {
timer2 = 1;
}
if (timer2 <= 100) {
hb._rotation += vitessang;
hb2._rotation += vitessang;
} else {
hb._rotation -= vitessang;
hb2._rotation -= vitessang;
}
if (timer2 == 100) {
hb._rotation = 65;
}
if (timer2 == 1) {
hb._rotation = -39;
}
spyzone._x = spy._x + 15;
if (spyzone.hitTest(plantsuit) && (Key.isDown(38) or Key.isDown(87) or Key.isDown(87))) {
plant = false;
plantsuit._y = -1000;
}
if (spyzone.hitTest(plantsuit) && warned == true) {
text1._alpha = 100;
} else {
text1._alpha = 0;
}
if (spy._x > 345 && plant == true) {
text2._alpha = 100;
warned = true;
} else {
text2._alpha = 0;
}
if (Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) {
_root.popp.pp.start(0, 1);
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
hidden = false;
Rdir = true;
} else {
Rdir = false;
}
if (Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) {
if (busted == false && busted2 == false && spy._x > -2 && pause == false) {
_root.popp.pp.start(0, 1);
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
hidden = false;
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
}
hidden = true;
}
if (spyzone.hitTest(zone)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zone2)) {
if (hidden == false) {
busted2 = true;
}
}
if (busted == true) {
enemy.gotoAndStop(4);
++bustedtimer;
}
if (busted2 == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer > 30) {
bustext._y = 100;
}
if (bustedtimer > 100) {
++bustedcount;
gotoAndPlay(73);
}
if (timer > 100) {
enemy.gotoAndStop(5);
suitcase._alpha = 0;
}
enemy._x += 1;
suitcase._x += 0.7;
if (_root.camerac.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 4, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 30, spy._y - 2, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 12, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (_root.camerac2.hitTest(spy._x + 22, spy._y + 40, true)) {
if (hidden == false) {
busted = true;
}
}
if (spy._x >= 760) {
spy._x = 760;
}
if (spy._x < 2) {
gotoAndStop(this._currentframe + 1);
}
if (spy._x <= 1 && (spy._x > -30)(spy._y < 200)) {
spy._x = 1;
}
};
}
frame 79 {
stop();
this.onEnterFrame = function () {
nextFrame();
};
}
frame 80 {
stop();
timer = 0;
timer2 = 0;
hidden = true;
secret = false;
busted = false;
busted2 = false;
bustedtimer = 0;
bustext._y = -200;
clocksett._y = 498;
cooldown = 10;
cooled = false;
Dash = 0;
end = false;
endtimer = 0;
van.gotoAndStop(64);
_root.al.alarm.stop();
_root.jp.jump.start(0, 1);
this.createEmptyMovieClip('line_mc', 10);
this.onEnterFrame = function () {
if ((Key.isDown(39) or Key.isDown(68)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = 1;
cooled = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && pause == false && Key.isDown(32) && cooled == true) {
Dash = -1;
cooled = false;
}
if (Dash == 1) {
if (spy._x < 539) {
spy._x += 200;
} else {
spy._x = 739;
}
Dash = 0;
dashing2._x = spy._x - 100;
dashing2._y = spy._y;
dashing2.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (Dash == -1) {
spy._x -= 200;
Dash = 0;
dashing._x = spy._x + 100;
dashing._y = spy._y;
dashing.gotoAndPlay(1);
_root.ds.dash.start(0, 1);
}
if (cooled == false && cooldown >= 1) {
--cooldown;
}
if (cooldown == 0) {
cooled = true;
cooldown = 10;
}
++clock;
clockset = Math.round(clock / 24);
++timer2;
if (timer2 == 56) {
spy._alpha = 100;
spy._x = 390;
}
if (timer2 == 40) {
ld.land.start();
}
if (spy._x < 230) {
spy._alpha = 0;
van._alpha = 0;
Lamp1._alpha = 0;
Lamp2._alpha = 0;
build._alpha = 0;
sign1._alpha = 0;
wheel3._alpha = 100;
wheel4._alpha = 100;
van2._alpha = 100;
spy._x = 1000;
passing._alpha = 15;
end = true;
}
if (end) {
if (passing._x < 825) {
passing._x += 100;
} else {
passing._x = -430;
}
++endtimer;
if (endtimer == 1) {
di.drive.start(0, 999);
_root.mn.menu.start(0, 9999);
_root.bc.music.stop();
}
if (endtimer == 50) {
chat._alpha = 100;
}
if (endtimer == 150) {
chat.gotoAndStop(2);
}
if (endtimer == 250) {
chat.gotoAndStop(3);
}
if (endtimer == 350) {
chat.gotoAndStop(4);
}
if (endtimer == 450) {
chat.gotoAndStop(5);
}
if (endtimer == 490) {
passing._alpha = 0;
chat._alpha = 0;
van2._alpha = 0;
van6._alpha = 80;
van5._alpha = 40;
van4._alpha = 40;
van3._alpha = 40;
wheel3._alpha = 0;
wheel4._alpha = 0;
_root.ds.dash.start(0, 1);
}
if (endtimer == 505) {
di.drive.stop();
rails._alpha = 100;
van6._alpha = 0;
van5._alpha = 0;
van4._alpha = 0;
van3._alpha = 0;
train._alpha = 90;
_root.tr.train.start(1, 1);
_root.rr.railroad.start(0, 15);
}
if (endtimer >= 500 && endtimer <= 670) {
train._xscale += 0.3;
train._yscale += 0.3;
train._alpha += 0.1;
}
if (endtimer == 600) {
van7._alpha = 100;
}
if (endtimer == 620) {
chat._alpha = 100;
chat.gotoAndStop(6);
}
if (endtimer == 670) {
gotoAndStop(81);
}
}
++timer;
spyzone._x = spy._x + 15;
if (Key.isDown(39) or Key.isDown(68) or Key.isDown(68)) {
if (busted == false && busted2 == false && pause == false) {
if (spy._x > 575 && spy._x < 671) {
spy._y -= 2.5;
}
spy._x += 5;
if (plant == false) {
spy.gotoAndStop(2);
} else {
spy.gotoAndStop(5);
}
hidden = false;
Rdir = true;
}
} else {
Rdir = false;
}
if (Key.isDown(37) or Key.isDown(65) or Key.isDown(65)) {
if (busted == false && busted2 == false && spy._x > -2 && pause == false && timer2 > 56) {
if (spy._x > 575 && spy._x < 671) {
spy._y += 2.5;
}
spy._x -= 5;
if (plant == false) {
spy.gotoAndStop(3);
} else {
spy.gotoAndStop(6);
}
hidden = false;
Ldir = true;
}
} else {
Ldir = false;
}
if (Ldir == false && Rdir == false) {
if (plant == false) {
spy.gotoAndStop(1);
} else {
spy.gotoAndStop(4);
}
hidden = true;
}
if (spyzone.hitTest(zone)) {
if (hidden == false) {
busted = true;
}
}
if (spyzone.hitTest(zone2)) {
if (hidden == false) {
busted2 = true;
}
}
if (busted == true) {
enemy.gotoAndStop(2);
++bustedtimer;
}
if (busted2 == true) {
camera.gotoAndStop(2);
++bustedtimer;
}
if (bustedtimer > 30) {
bustext._y = 100;
}
if (bustedtimer > 100) {
gotoAndPlay(1);
}
if (timer > 800) {
timer = 1;
}
if (timer < 400) {
if (busted == false) {
enemy._x -= 1;
}
if (busted2 == false) {
enemy2._x += 1;
}
enemy._xscale = 100;
enemy2._xscale = 100;
zone._x = enemy._x - 118;
zone2._x = enemy2._x;
} else {
if (busted == false) {
enemy._x += 1;
}
if (busted2 == false) {
enemy2._x -= 1;
}
enemy._xscale = -100;
enemy2._xscale = -100;
zone._x = enemy._x;
zone2._x = enemy2._x - 118;
}
if (spy._x >= 760) {
spy._x = 760;
}
};
}
movieClip 938 {
}
movieClip 940 {
}
movieClip 942 {
}
movieClip 944 {
}
movieClip 945 {
frame 65 {
stop();
}
}
movieClip 947 {
}
movieClip 949 {
}
movieClip 951 {
}
movieClip 953 {
}
movieClip 954 {
frame 56 {
stop();
}
}
movieClip 956 {
}
movieClip 957 {
}
movieClip 960 {
}
movieClip 967 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
frame 81 {
stop();
timer2 = 0;
var kongregate = _global.kongregate;
'connect';
kongregate.services;
0;
undefined;
this.onEnterFrame = function () {
++timer2;
if (timer2 == 40) {
fin.gotoAndStop(2);
}
if (timer2 == 100) {
playbt._y = 498;
}
timeend = Math.round(timergame / 36);
time = Math.round(timergame / 36) + ' Seconds';
scorrend = Math.round(timeend * (bustedcount + 1));
kongregate.stats.submit('Time', timeend);
kongregate.stats.submit('Score', scorrend);
};
}
movieClip 974 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 975 {
on (release) {
_root.gotoAndPlay(3);
}
}