STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228066
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/85275316?noj=FRM85275316-28DC" width="1" height="1"></div>

Ultimate bank.swf

This is the info page for
Flash #29401

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 7 { } movieClip 11 { } movieClip 14 { } movieClip 16 { } movieClip 20 { } movieClip 21 gameloader_mc { frame 10 { stop(); } } frame 1 { _root.gameid = '1655'; _root.downloadurl = 'http://www.2dplay.com/downloadgame.php?gameid=' + _root.gameid; _root.weblink = 'http://www.2dplay.com/index.php?gameid=' + _root.gameid; _root.buylink = '?'; stop(); } movieClip 24 { } button 28 { on (press) { getURL('http://www.2DPlay.com/index.php?gameid=' + _parent.gameID, '_blank'); } } movieClip 30 { frame 1 { stop(); } } movieClip 98 { frame 1 { _parent.showLogo(); stop(); } instance of movieClip 30 { onClipEvent (load) { _parent.sfx.stop(); _parent.sfx = new Sound(_parent); _parent.sfx.attachSound('SCIFI.WAV'); _parent.sfx.start(0, 1); } } instance of movieClip 30 { onClipEvent (load) { _parent.sfx.stop(); _parent.sfx = new Sound(_parent); _parent.sfx.attachSound('BEEPDBL.WAV'); _parent.sfx.start(0, 1); } } instance of movieClip 30 { onClipEvent (load) { _parent.sfx.stop(); _parent.sfx = new Sound(_parent); _parent.sfx.attachSound('INSERT4.WAV'); _parent.sfx.start(0, 1); } } instance of movieClip 30 { onClipEvent (load) { _parent.sfx.stop(); _parent.sfx = new Sound(_parent); _parent.sfx.attachSound('MSOVR2.WAV'); _parent.sfx.start(0, 1); } } instance of movieClip 30 { onClipEvent (load) { _parent.sfx.stop(); _parent.sfx = new Sound(_parent); _parent.sfx.attachSound('BLOOB.WAV'); _parent.sfx.start(0, 1); } } } movieClip 101 { } movieClip 103 { } movieClip 104 TMPix0hemklz { frame 1 { function detectFlashVersion(detectVersion) { var v3 = System.capabilities.version; var v2; var v1 = 0; while (v1 < v3.length) { v2 = Number(v3.charAt(v1)); if (!isNaN(v2)) { v2 = !isNaN(Number(v3.charAt(v1 + 1))) ? Number(String(v2) + v3.charAt(v1 + 1)) : v2; break; } ++v1; } if (v2 < detectVersion) { gotoAndPlay(3); } else { gotoAndPlay(2); } } function startPreload() { this.onEnterFrame = function () { this.preload(); }; } function preload() { var v3 = _root.getBytesTotal(); var v4 = _root.getBytesLoaded(); var v5 = Math.floor((v4 / v3) * 100); loader_bar.mask._xscale = v5; loader_bar._alpha = loader_bar._alpha < 100 ? loader_bar._alpha + 10 : 100; if (v4 >= v3 && v3 > 0) { delete this.onEnterFrame; _root.gotoAndPlay(startFrameLabel); } } function showLogo() { this.playbackPercent = 0; this.onEnterFrame = function () { this.logoFrameStep(); }; } function logoFrameStep() { var v3 = 30; var v2 = 200; var v4 = Math.floor(playbackPercent * v2) + 1; playbackPercent += v3 / movieFramerate / v2; logo.gotoAndStop(v4); if (playbackPercent >= 1 || skipPreloader) { delete this.onEnterFrame; startPreload(); } } _visible = false; _rotation = 0; _y = 0; _x = 0; _yscale = 100; _xscale = 100; Stage.scaleMode = 'noScale'; detectFlashVersion(flashVersion); stop(); } frame 2 { loader_background._width = Stage.width; loader_background._height = Stage.height; logo._x = Stage.width / 2; logo._y = Stage.height / 2 + 20; loader_bar._x = logo._x - 100; loader_bar._y = logo._y + 30; loader_bar.mask._xscale = 0; loader_bar._alpha = 0; _visible = true; stop(); } frame 3 { loader_background._width = Stage.width; loader_background._height = Stage.height; createTextField('messageField', 1, (Stage.width - 520) / 2, (Stage.height - 120) / 2, 520, 120); messageField.html = true; messageField.multiline = true; messageField.htmlText = '<font face=\'_sans\' color=\'#FFFFFF\'><p align=\'center\'>You will need the <a href=\'http://www.adobe.com/go/getflashplayer\'><u>Flash Player version ' + flashVersion + '</u></a> to play this game\r\r\rAlternatively you can download the game from <a href=\'http://www.2dplay.com\'><u>2DPlay.com</u></a> by clicking <a href=\'http://www.2dplay.com/downloadgame.php?gameid=' + gameID + '\'><u>here</u></a></p></font>'; _visible = true; stop(); } } instance of movieClip 104 TMPix0hemklz { onClipEvent (construct) { flashVersion = 8; gameID = 1655; movieFramerate = 25; skipPreloader = false; startFrameLabel = 'start_game'; } } movieClip 6246 __Packages.utils.Delegate { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; utils.Delegate = v1; utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v2 = arguments.callee.target; var v3 = arguments.callee.func; arguments = arguments.callee.arguments; return v3.apply(v2, arguments); }; v2.target = obj; v2.func = func; arguments.splice(0, 2); v2.arguments = arguments; return v2; }; v2.createDelegate = function (obj) { return utils.Delegate.create(obj, this.func); }; v1.callDelayed = function (obj, func, ival) { arguments.splice(0, 3); var v3 = new Object(); v3.f = function () { clearInterval(this.i); var v3 = arguments.callee.target; var v4 = arguments.callee.func; arguments = arguments.callee.arguments; return this.func.apply(this.target, this.arguments); }; v3.target = obj; v3.func = func; v3.arguments = arguments; v3.i = setInterval(v3, 'f', ival); }; ASSetPropFlags(utils.Delegate.prototype, null, 1); } #endinitclip } movieClip 6247 __Packages.SaveLoad { #initclip if (!_global.SaveLoad) { var v1 = function (lev) { this.soGlobal = SharedObject.getLocal('SaveLoad', '/'); this.so = SharedObject.getLocal('SaveLoad' + lev, '/'); this.level = lev; }; _global.SaveLoad = v1; var v2 = v1.prototype; v2.saveGame = function (money) { this.soGlobal.data.level = this.level; this.so.data.level = this.level; this.so.data.money = money; this.so.flush(); this.soGlobal.flush(); }; v2.passedLevels = function () { return this.soGlobal.data.level; }; v2.savedGame = function () { return {'level': this.so.data.level, 'money': this.so.data.money}; }; ASSetPropFlags(_global.SaveLoad.prototype, null, 1); } #endinitclip } movieClip 6248 __Packages.MovieClipProps { #initclip if (!_global.MovieClipProps) { var v1 = function (l, x, y, rot, xs, ys) { this.linkID = l; this.x = x; this.y = y; this.rot = rot; this.xscale = xs; this.yscale = ys; }; _global.MovieClipProps = v1; var v2 = v1.prototype; ASSetPropFlags(_global.MovieClipProps.prototype, null, 1); } #endinitclip } movieClip 6249 __Packages.mcs.Bomb { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Bomb) { var v1 = function (rob) { super('', rob.x, rob.y, 0, 100, 100); this.Robber = rob; this.Item = rob.Item; trace('rob.Item ' + rob.Item); this.state = 'activated'; }; mcs.Bomb = v1; mcs.Bomb extends MovieClipProps; var v2 = v1.prototype; v2.buttonPress = function () { if (this.Item) { this.timer = getTimer(); this.depth = _global.path.depth.getDepth(this); if (this.Item.Type == 19) { this.linkID = 'mine'; this.clip = _global.stage.attachMovie(this.linkID, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.Robber.clip._x, '_y': this.Robber.clip._y}); } else { this.linkID = 'explosive'; this.clip = _global.stage.attachMovie('explosive', utils.StringUtils.getUniqueName(), this.depth, {'_x': this.Robber.clip._x, '_y': this.Robber.clip._y}); } this.explosionRoom = this.Robber.room; utils.Delegate.callDelayed(this, this.explode, 40); this.Robber.Item = undefined; } }; v2.explode = function () { if ((this.Item.Type == 4 || this.Item.Type == 5) && this.state != 'exploded') { if (getTimer() - this.timer > 5000) { this.clip.gotoAndPlay('explode'); this.state = 'exploded'; var v4 = 1; while (v4 <= _global.path.game.numOfguards) { var v3 = _global.path.guard[v4]; if (v3.room == this.explosionRoom) { v3.Health = 0; v3.Die(); } ++v4; } v4 = 1; while (v4 <= _global.path.game.numOfrobs) { var v5 = _global.path.rob[v4]; if (v5.room == this.explosionRoom) { v5.LosingAttributes(100); } ++v4; } _global.path.soundMeter.setSoundLevel(this.Item.Noise, this.Robber); this.timer = undefined; } else { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.explode, 40); } } } if (this.Item.Type == 19 && this.state != 'exploded') { var v6 = false; var v4 = 1; while (v4 <= _global.path.game.numOfguards) { var v3 = _global.path.guard[v4]; if (v3.clip.hitSpot.hitTest(this.clip)) { this.clip.gotoAndPlay('explode'); this.state = 'exploded'; v6 = true; v3.Health = 0; v3.Die(); _global.path.soundMeter.setSoundLevel(this.Item.Noise, this.Robber); this.timer = undefined; break; } ++v4; } if (!v6) { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.explode, 40); } } } }; ASSetPropFlags(mcs.Bomb.prototype, null, 1); } #endinitclip } movieClip 6250 __Packages.utils.StringUtils { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.StringUtils) { var v1 = function () {}; utils.StringUtils = v1; var v2 = v1.prototype; v1.getUniqueName = function () { var v3 = ''; var v2 = 1; while (v2 <= 4) { var v1 = 1; while (v1 <= 4) { v3 += utils.StringUtils.getRandomChar(); ++v1; } if (v2 < 4) { v3 += '-'; } ++v2; } return v3; }; v1.getRandomChar = function () { switch (Math.round(Math.random() + 1)) { case 1: return String.fromCharCode(Math.round(Math.random() * 25) + 65); break; case 2: return String.fromCharCode(Math.round(Math.random() * 25) + 97); } }; v1.scrambleArray = function (arr) { var v2 = []; while (arr.length > 0) { v2.push(arr.splice(Math.round(Math.random() * (arr.length - 1)), 1)); } return v2; }; v1.getTimeString = function (t) { var v1 = Math.round(t / 1000); var v2 = Math.floor(v1 / 60); var v3 = Math.floor(v2 / 60); v1 %= 60; v2 %= 60; var v4 = v1 < 10 ? '0' + v1 : v1; var v5 = v2 + ':'; if (v3 <= 0) { var v6 = ''; var v7 = v6 + v5 + v4; return v7; } var v6 = v3 + ':'; var v7 = v6 + v5 + v4; return v7; }; v1.getHighScoreTimeString = function (t) { var v2 = Math.round(t / 1000); var v1 = Math.floor(v2 / 60); var v3 = Math.floor(v1 / 60); v2 %= 60; v1 %= 60; var v6 = v2 < 10 ? '0' + v2 : v2.toString(); var v4 = '00'; if (v1 > 0) { v4 = v1 < 10 ? '0' + v1 : v1.toString(); } var v5 = ''; if (v3 > 0) { v5 = v3 < 10 ? '0' + v3 : v3.toString(); } var v7 = v5 + v4 + v6; return v7; }; ASSetPropFlags(utils.StringUtils.prototype, null, 1); } #endinitclip } movieClip 6251 __Packages.br.Stage { #initclip if (!_global.br) { _global.br = new Object(); } if (!_global.br.Stage) { var v1 = function () { super(); _global.stage = this; this.init(); }; br.Stage = v1; br.Stage extends MovieClip; var v2 = v1.prototype; v2.init = function () { this.cursor = new br.Cursor(); this.checkSafeItem(); this.level = new br.Level(_global.GAME.Level); _global.GAME.interFace.setGameInterface(); _global.GAME.blueprintOnScreen = false; this.keyboard = new br.Keyboard(); this.timer = new utils.Timer(); this.timer.addEventListener('onTimerTick', this); this.timer.start(); }; v2.onTimerTick = function () { this.cursor.update(); this.level.update(); updateAfterEvent(); }; v2.Pause = function () { this.timer.stop(); this.level.pause = true; this.level.update(); if (!_global.path.game.minigameStarted) { this.pauseMenu = this.attachMovie('pause_menu_mc', 'pause_menu_mc', 11500, {'_x': 400, '_y': 245}); } }; v2.Play = function () { this.pauseMenu.removeMovieClip(); this.pauseMenu = undefined; this.level.pause = false; this.timer.start(); }; v2.stopTimer = function () { this.timer.stop(); }; v2.checkSafeItem = function () { this.hasSafeItem = false; var v3 = 0; while (v3 < _global.GAME.invenrtory.length) { if (_global.GAME.invenrtory[v3].Type == 2 || _global.GAME.invenrtory[v3].Type == 3 || _global.GAME.invenrtory[v3].Type == 13) { this.hasSafeItem = true; return undefined; } ++v3; } }; ASSetPropFlags(br.Stage.prototype, null, 1); } #endinitclip } movieClip 6252 __Packages.br.BaseClass { #initclip if (!_global.br) { _global.br = new Object(); } if (!_global.br.BaseClass) { var v1 = function () {}; br.BaseClass = v1; var v2 = v1.prototype; v2.addEventListener = function (evt, listener) { if (this.events == undefined) { this.events = new mx.events.EventDispatcher(); } this.events.addEventListener(evt, listener); }; v2.removeEventListener = function (evt, listener) { this.events.removeEventListener(evt, listener); }; v2.destroy = function () { var v2 = false; trace('deleted: ' + v2); }; v2.pi = Math.PI; v2.cos = Math.cos; v2.acos = Math.acos; v2.sin = Math.sin; v2.asin = Math.asin; v2.atan2 = Math.atan2; v2.abs = Math.abs; v2.round = Math.round; ASSetPropFlags(br.BaseClass.prototype, null, 1); } #endinitclip } movieClip 6253 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 6254 __Packages.utils.Timer { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Timer) { var v1 = function () { super(); }; utils.Timer = v1; utils.Timer extends br.BaseClass; var v2 = v1.prototype; v2.start = function () { clearInterval(this._ival); this._ival = setInterval(this, 'doTick', 40); }; v2.stop = function () { clearInterval(this._ival); }; v2.doTick = function () { this.events.dispatchEvent({'type': 'onTimerTick', 'target': this}); }; ASSetPropFlags(utils.Timer.prototype, null, 1); } #endinitclip } movieClip 6255 __Packages.br.Cursor { #initclip if (!_global.br) { _global.br = new Object(); } if (!_global.br.Cursor) { var v1 = function () { this.init(); }; br.Cursor = v1; var v2 = v1.prototype; v2.init = function () { this.frame = 'in'; var v3 = new control.DepthController(); this.clip = _global.stage.attachMovie('Cursors', 'Cursor', v3.mouseDepth); this.clip.cacheAsBitmap = true; startDrag(this.clip, true); this.clip.gotoAndStop(this.frame); this.mouseListener = new Object(); this.mouseListener.onMouseDown = this.Click; this.mouseListener.onMouseUp = this.Release; Mouse.addListener(this.mouseListener); this.hide(); _global.mouse = this; this.isMouseBtnDown = false; }; v2.show = function () { this.frame = 'normal'; this.clip.gotoAndStop(this.frame); Mouse.show(); }; v2.hide = function () { Mouse.hide(); }; v2.Click = function () { if (!_global.mouse.isMouseBtnDown) { _global.mouse.isMouseBtnDown = true; if (!_global.mouse.outofBounds() && !_global.mouse.buttonHit()) { var v5 = new Object(); v5.x = _xmouse; v5.y = _ymouse; var v4 = _global.path.translateStageToCamera(_xmouse, _ymouse); var v2 = Math.ceil(v4.x / _global.path.game.spacing); var v3 = Math.ceil(v4.y / _global.path.game.spacing); trace('Camera Coords ' + v4.x + ' ' + v4.y); trace('node' + v2 + '_' + v3); trace('char ' + _global.path.game['node' + v2 + '_' + v3].char); trace('type ' + _global.path.game['node' + v2 + '_' + v3].type); if (!_global.path.pause) { _global.path.MovementPermision = true; if (_global.path.game['node' + v2 + '_' + v3].char == 2) { _global.path.shooting(_xmouse, _ymouse); } else { if (_global.path.MovementPermision) { _global.path.selectRobber(v5); } if (_global.path.game['node' + v2 + '_' + v3].isDoor || _global.path.game['node' + v2 + '_' + v3].type == 2) { trace('doAction'); _global.path.doAction(_xmouse, _ymouse); } } if (_global.path.LevelNum == 1 && _global.path.currentPopUp == 2 && _global.path.game['node' + v2 + '_' + v3].room == 9 && _global.path.game['node' + v2 + '_' + v3].type == 1) { _global.path.helpTips[2].dettachPopUp(); _global.path.helpTips[2].shown = 2; _global.path.currentPopUp = 3; _global.path.helpTips[3].showPopUp(); } if (_global.path.LevelNum == 1 && _global.path.currentPopUp == 6 && _global.path.game['node' + v2 + '_' + v3].room == 10 && _global.path.game['node' + v2 + '_' + v3].type == 1) { utils.Delegate.callDelayed(_global.path.helpTips[6], _global.path.helpTips[6].dettachPopUp, 5000); _global.path.helpTips[6].shown = 2; } if (_global.path.LevelNum == 1 && _global.path.currentPopUp == 7 && _global.path.game['node' + v2 + '_' + v3].room == 10 && _global.path.game['node' + v2 + '_' + v3].type == 1) { _global.path.helpTips[7].dettachPopUp(); } } if (_global.path.game.minigameStarted) { _global.stage.cursor.frame = 'minigame'; _global.stage.cursor.clip.gotoAndPlay(_global.stage.cursor.frame); _global.stage.cursor.clip.mgc.gotoAndPlay(2); } } if (_global.mouse.outofBounds()) { _global.mouse.selectRobber(); } } }; v2.Release = function () { _global.mouse.isMouseBtnDown = false; if (_global.path.game.minigameStarted) { _global.stage.cursor.frame = 'minigame'; _global.stage.cursor.clip.gotoAndPlay(_global.stage.cursor.frame); _global.stage.cursor.clip.mgc.gotoAndStop(1); } }; v2.update = function () { if (_global.path.game.minigameStarted) { this.frame = 'minigame'; this.clip.gotoAndStop(this.frame); this.hide(); } else { if (this.outofBounds()) { if (this.frame != 'out') { this.frame = 'out'; this.clip.gotoAndStop(this.frame); this.hide(); } } else { if (this.frame != 'aim') { if (this.frame != 'in') { this.frame = 'in'; this.clip.gotoAndStop(this.frame); this.hide(); } } } } }; v2.outofBounds = function () { if (_xmouse < 10 || _ymouse < 10 || _xmouse > _global.path.width || _ymouse > _global.path.height) { return true; } else { return false; } }; v2.buttonHit = function () { if (_global.stage.toolButton.hitTest(_xmouse, _ymouse, true) && _global.stage.toolButton.panelItem._visible || _global.stage.helpButton.hitTest(_xmouse, _ymouse, true)) { return true; } else { return false; } }; v2.selectRobber = function () { var v2 = 1; while (v2 <= _global.path.game.numOfrobs) { if (_global.stage.levelch_mc['rob' + v2].hitTest(_xmouse, _ymouse, true)) { var v3 = _global.path.rob[v2]; if (v3.Health > 0 && !v3.getout) { if (_global.path.selrobID != v2) { _global.path.rob[_global.path.selrobID].Selected = false; _global.path.rob[_global.path.selrobID].clip['player' + _global.path.selrobID].gotoAndStop('deselected'); _global.stage.levelch_mc['rob' + _global.path.selrobID].character_bck.gotoAndStop('deselected'); _global.path.selrobID = v2; v3.Selected = true; v3.clip['player' + _global.path.selrobID].gotoAndStop('selected'); _global.stage.levelch_mc['rob' + v2].character_bck.gotoAndStop('selected'); if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 12) { _global.path.helpTips[12].dettachPopUp(); _global.path.helpTips[12].shown = 2; } if (_global.path.currentPopUp == 1) { _global.path.helpTips[1].dettachPopUp(); _global.path.helpTips[1].shown = 2; _global.path.helpTips[2].showPopUp(); _global.path.currentPopUp = 2; } } } _global.path.camera.centerStage(v3); } break; } ++v2; } }; v2.RemoveListener = function () { trace('Listener REmoving... '); Mouse.removeListener(this.mouseListener); }; ASSetPropFlags(br.Cursor.prototype, null, 1); } #endinitclip } movieClip 6256 __Packages.control.DepthController { #initclip if (!_global.control) { _global.control = new Object(); } if (!_global.control.DepthController) { var v1 = function () { this.bgDepth = 0; this.floorDepth = 100; this.explosionDepth = 300; this.deadDepth = 500; this.gasDepth = 600; this.empDepth = 800; this.bombDepth = 1000; this.laserDepth = 2000; this.exitlightDepth = 3000; this.alarmButtonDepth = 4000; this.robberDepth = 5000; this.elevatorDepth = 5500; this.guardDepth = 6000; this.controlBoxDepth = 7000; this.doorDepth = 8000; this.popupDepth = 8350; this.doorBombDepth = 8500; this.camDepth = 9000; this.HelpHintsDepth = 9500; this.metersDepth = 10100; this.minigameDepth = 11000; this.interfaceDepth = 12000; this.mouseDepth = 16000; }; control.DepthController = v1; var v2 = v1.prototype; v2.getDepth = function (mc) { if (mc instanceof mcs.Robber) { return this.robberDepth++; } if (mc instanceof mcs.Guard) { return this.guardDepth++; } if (mc instanceof mcs.Door || mc instanceof mcs.SafeDoor) { return this.doorDepth++; } if (mc instanceof mcs.Laser) { return this.laserDepth++; } if (mc instanceof mcs.Floor || mc instanceof mcs.UnlockingFloor) { return this.floorDepth++; } if (mc instanceof mcs.ControlBox) { return this.controlBoxDepth++; } if (mc instanceof mcs.ControlBoxExtra) { return this.controlBoxDepth++; } if (mc instanceof mcs.AlarmButton) { return this.alarmButtonDepth++; } if (mc instanceof mcs.Cam) { return this.camDepth++; } if (mc instanceof mcs.Exitlight) { return this.exitlightDepth++; } if (mc instanceof mcs.Bomb) { return this.bombDepth++; } if (mc instanceof mcs.Gas) { return this.gasDepth++; } if (mc instanceof mcs.EMP) { return this.empDepth++; } if (mc instanceof mcs.DoorBomb) { return this.doorBombDepth++; } if (mc instanceof mcs.Storm) { return this.laserDepth++; } if (mc instanceof mcs.Elevator) { return this.elevatorDepth++; } if (mc instanceof mcs.PopUp) { return this.popupDepth++; } mcs.HelpHints; if (mc instanceof mcs.HelpHints) { return this.HelpHintsDepth++; } }; ASSetPropFlags(control.DepthController.prototype, null, 1); } #endinitclip } movieClip 6257 __Packages.mcs.Robber { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Robber) { var v1 = function (nickName, x, y, rot, sel, astar) { super('Robber', x, y, rot, 100, 100); this.rootPath = _global.path; this.selection = sel; this._health = 100; this._nickName = nickName; this.astar = astar; this.alarmMeter = this.rootPath.alarmMeter; this.soundMeter = this.rootPath.soundMeter; this.cellx = Math.ceil(this.x / this.rootPath.game.spacing); this.celly = Math.ceil(this.y / this.rootPath.game.spacing); this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; this.animation = ''; this._running = 100; this._speed = 13; this._Noise = 0; this._haveWeapon = false; this._haveItem = false; this.canMove = false; this.Selected = false; this.detected = false; this.spoted = false; this.destroyed = false; this.sawedDeadByGuard = false; this.ApplyItem = false; this.floorAlarmTiggered = false; this.tempx = x; this.tempy = y; this.startx = x; this.starty = y; this.endx = x; this.endy = y; this.xmov = 0; this.ymov = 0; this.angle = 0; this.changedRoom = 0; this.astarPath = new Array(); this.getout = false; this.inShootingDelay = false; this.markCell(this.cellx, this.celly, false); }; mcs.Robber = v1; mcs.Robber extends MovieClipProps; var v2 = v1.prototype; v2.setSkills = function (pic, shooting, unlocking, electronics, explosives, weapon) { this.image = pic; this._shooting = shooting; this._unlocking = unlocking; this._explosives = explosives; this._electronics = electronics; this.__set__Weapon(weapon); }; v2.__get__Health = function () { return this._health; }; v2.__get__Unlocking = function () { return this._unlocking; }; v2.__set__Unlocking = function (unlockable) { this._unlocking = unlockable; return this.__get__Unlocking(); }; v2.__get__Shooting = function () { return this._shooting; }; v2.__set__Shooting = function (shoot) { this._shooting = shoot; return this.__get__Shooting(); }; v2.__get__Noise = function () { return this._Noise; }; v2.__set__Noise = function (noise) { this._Noise = noise; return this.__get__Noise(); }; v2.__get__Explosives = function () { return this._explosives; }; v2.__set__Explosives = function (exp) { this._explosives = exp; return this.__get__Explosives(); }; v2.__get__Electronics = function () { return this._electronics; }; v2.__set__Electronics = function (el) { this._electronics = el; return this.__get__Electronics(); }; v2.__get__Running = function () { return this._running; }; v2.__get__Weapon = function () { return this._weapon; }; v2.__set__Weapon = function (weapon) { this._haveWeapon = true; this._weapon = weapon; return this.__get__Weapon(); }; v2.__get__Item = function () { return this._item; }; v2.__set__Item = function (item) { this._haveItem = true; this._item = item; return this.__get__Item(); }; v2.__get__Speed = function () { return this._speed; }; v2.__set__Speed = function (speed) { this._speed = speed; return this.__get__Speed(); }; v2.LosingAttributes = function (damage) { var v3 = damage / 100; trace('rob 1' + this._health); this._health -= damage; this._shooting -= v3; this._unlocking -= v3; this._explosives -= v3; this._electronics -= v3; if (this._health < 0) { _global.stage.levelch_mc[this._nickName].Health.h_bar.bar._xscale = 0; } else { _global.stage.levelch_mc[this._nickName].Health.h_bar.bar._xscale = this._health; } 0; if (this._unlocking < 0) { _global.stage.levelch_mc[this._nickName].Unlocking.skill_mc.bar_mc._xscale = 0; } else { _global.stage.levelch_mc[this._nickName].Unlocking.skill_mc.bar_mc._xscale = this._unlocking * 10; } 0; if (this._shooting < 0) { _global.stage.levelch_mc[this._nickName].Shooting.skill_mc.bar_mc._xscale = 0; } else { _global.stage.levelch_mc[this._nickName].Shooting.skill_mc.bar_mc._xscale = this._shooting * 10; } 0; if (this._electronics < 0) { _global.stage.levelch_mc[this._nickName].Electronics.skill_mc.bar_mc._xscale = 0; } else { _global.stage.levelch_mc[this._nickName].Electronics.skill_mc.bar_mc._xscale = this._electronics * 10; } 0; if (this._explosives < 0) { _global.stage.levelch_mc[this._nickName].Explosives.skill_mc.bar_mc._xscale = 0; } else { _global.stage.levelch_mc[this._nickName].Explosives.skill_mc.bar_mc._xscale = this._explosives * 10; } 0; if (this._health <= 0) { this.returnItem(); this.canMove = false; this.markCell(this.cellx, this.celly, true); --this.rootPath.game.numOfLiverobs; this.Selected = false; this.clip['player' + this.rootPath.selrobID].gotoAndStop('deselected'); this.clip.swapDepths(this.rootPath.game.deadDepth--); this.clip.body.gotoAndStop('die'); _global.stage.levelch_mc[this._nickName].nema_mc._visible = true; this.animation = 'die'; } trace('rob ' + this._health); }; v2.Walk = function (destpoint) { var v15 = this.rootPath.translateStageToCamera(destpoint.x, destpoint.y); this.refreshSolidObjects(); var v19 = Math.ceil(this.x / this.rootPath.game.spacing); var v18 = Math.ceil(this.y / this.rootPath.game.spacing); var v13 = Math.ceil(v15.x / this.rootPath.game.spacing); var v14 = Math.ceil(v15.y / this.rootPath.game.spacing); var v7 = this.rootPath.game['node' + v19 + '_' + v18].room; var v17 = false; var v20 = false; if (v19 == v13 && v18 == v14) { v17 = false; } else { v17 = true; } var v16 = true; if (this.rootPath.game['node' + v13 + '_' + v14].type > 1) { if (this.rootPath.game['node' + (v13 + 1) + '_' + v14].type == 1 && this.rootPath.game['node' + (v13 + 1) + '_' + v14].room == v7) { ++v13; v16 = false; } else { if (this.rootPath.game['node' + (v13 - 1) + '_' + v14].type == 1 && this.rootPath.game['node' + (v13 - 1) + '_' + v14].room == v7) { --v13; v16 = false; } else { if (this.rootPath.game['node' + v13 + '_' + (v14 + 1)].type == 1 && this.rootPath.game['node' + v13 + '_' + (v14 + 1)].room == v7) { ++v14; v16 = false; } else { if (this.rootPath.game['node' + v13 + '_' + (v14 - 1)].type == 1 && this.rootPath.game['node' + v13 + '_' + (v14 - 1)].room == v7) { --v14; v16 = false; } } } } } else { v16 = false; } var v10 = this.rootPath.game['node' + v13 + '_' + v14].room; var v12 = false; if (v7 != v10) { var v6 = 1; while (v6 <= this.rootPath.game.rows) { var v4 = 1; while (v4 <= this.rootPath.game.cols) { var v9 = 'node' + v4 + '_' + v6; var v2 = this.rootPath.game[v9]; if (v2.isDoor) { var v8 = this.rootPath['door' + v4 + '_' + v6]; if (v2.room == v7 && v2.room1 == v10 || v2.room == v10 && v2.room1 == v7) { if (v8.getState() > 0) { v12 = true; } } } ++v4; } ++v6; } } else { v12 = true; } trace('dc ' + v17 + ' o ' + v20 + ' wT ' + v12); if (this.__get__Health() > 0 && v12 && v17 && !v16 && v15.x > 0 && v15.x < this.rootPath.game.cols * this.rootPath.game.spacing && v15.y > 0 && v15.y < this.rootPath.game.rows * this.rootPath.game.spacing) { this.astar.s.x = v19; this.astar.s.y = v18; this.astar.g.x = v13; this.astar.g.y = v14; var v21 = this; this.astarPath = this.astar.search(); var v5 = this.astarPath; this.canMove = true; var v3 = 0; while (v3 < v5.length) { var v11 = this.rootPath.game['node' + v5[v3][0] + '_' + v5[v3][1]].room; if (!this.rootPath.game['node' + v5[v3][0] + '_' + v5[v3][1]].isDoor && v11 != v10 && v11 != v7) { this.canMove = false; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; break; } if (this.rootPath.game['node' + v5[v3][0] + '_' + v5[v3][1]].isDoor && this.rootPath['door' + v5[v3][0] + '_' + v5[v3][1]].getState() == 0) { this.canMove = false; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; break; } ++v3; } trace('walk()'); if (this.canMove) { this.findNextCell(); } } }; v2.markCell = function (cellx, celly, empty) { var v2 = 'node' + cellx + '_' + celly; if (!empty) { this.astar.nodes[v2] = this.astar.solidOb; this.rootPath.game[v2].type = 2; this.rootPath.game[v2].char = 1; } else { this.astar.nodes[v2] = {'solid': undefined, 'exists': undefined}; if (this.rootPath.game[v2].isDoor) { this.rootPath.game[v2].type = 3; } else { this.rootPath.game[v2].type = 1; } this.rootPath.game[v2].char = 0; } }; v2.findNextCell = function () { var v2 = this; var v7 = Math.ceil(v2.x / this.rootPath.game.spacing); var v6 = Math.ceil(v2.y / this.rootPath.game.spacing); var v3 = v2.astarPath.shift(); if (this.astar.nodes['node' + v3[0] + '_' + v3[1]].solid) { v2.canMove = false; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; } var v4 = this.rootPath.game['node' + v7 + '_' + v6]; var v5 = this.rootPath.game['node' + v3[0] + '_' + v3[1]]; v2.startx = v4.xmid; v2.starty = v4.ymid; v2.endx = v5.xmid; v2.endy = v5.ymid; v2.angle = Math.atan2(v2.endy - v2.starty, v2.endx - v2.startx); v2.rot = v2.angle * 180 / Math.PI; v2.xmov = this._speed * Math.cos(v2.angle); v2.ymov = this._speed * Math.sin(v2.angle); if (this.canMove) { if (this._speed == 5) { if (this.animation != 'walk') { trace('walking ....'); this.clip.body.gotoAndStop('walk'); this.animation = 'walk'; } } else { if (this.animation != 'run') { trace('running ....'); this.clip.body.gotoAndStop('run'); this.animation = 'run'; } } } }; v2.moveObject = function () { var v3 = this; if (v3.canMove) { v3.tempx = Math.round(v3.x + v3.xmov); v3.tempy = Math.round(v3.y + v3.ymov); var v9 = Math.ceil(v3.x / this.rootPath.game.spacing); var v8 = Math.ceil(v3.y / this.rootPath.game.spacing); var v18 = Math.ceil(v3.tempx / this.rootPath.game.spacing); var v17 = Math.ceil(v3.tempy / this.rootPath.game.spacing); var v21 = v3.startx; var v20 = v3.starty; var v16 = v3.endx; var v15 = v3.endy; var v19 = v3.tempx; var v22 = v3.tempy; if ((v16 - v21) / Math.abs(v16 - v21) != (v16 - v19) / Math.abs(v16 - v19) && v16 - v21 != 0 && v16 - v19 != 0 || (v15 - v20) / Math.abs(v15 - v20) != (v15 - v22) / Math.abs(v15 - v22) && v15 - v20 != 0 && v15 - v22 != 0) { if (v3.astarPath.length == 0) { v3.xmov = 0; v3.ymov = 0; v3.tempx = v16; v3.tempy = v15; v3.canMove = false; var v13 = Math.ceil(v3.endx / this.rootPath.game.spacing); var v12 = Math.ceil(v3.endy / this.rootPath.game.spacing); if (v13 == this.cellx && v12 == this.celly) { v3.x = v3.endx; v3.y = v3.endy; } v3.cellx = v9; v3.celly = v8; this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; if (this.ApplyItem) { if (this.rootPath.game['node' + (v13 + 1) + '_' + v12].type > 2) { this.useItem(v13 + 1, v12); } else { if (this.rootPath.game['node' + (v13 - 1) + '_' + v12].type > 2) { this.useItem(v13 - 1, v12); } else { if (this.rootPath.game['node' + v13 + '_' + (v12 + 1)].type > 2) { this.useItem(v13, v12 + 1); } else { if (this.rootPath.game['node' + this.cellx + '_' + (v12 - 1)].type > 2) { this.useItem(v13, v12 - 1); } } } } } if (this.spoted || this.detected) { if (this.room != this.changedRoom) { this.changedRoom = this.room; var v7 = this.alarmMeter.findNearestGuards(); var v4 = 0; while (v4 < v7.length) { if (v4 < 2) { var v6 = v7[v4].guard; if (v6.Alertness == 3 && v6.Health > 0) { v6.Walk({'x': v3.endx, 'y': v3.endy}); } } ++v4; } } } this.alignRobber(); var v23 = Math.sqrt((this.rootPath.game.exitDoor.x - this.x) * (this.rootPath.game.exitDoor.x - this.x) + (this.rootPath.game.exitDoor.y - this.y) * (this.rootPath.game.exitDoor.y - this.y)); if (v23 <= this.rootPath.game.spacing + 5 && this.rootPath.game.exitDoor.getState() > 0) { this.getout = true; ++this.rootPath.game.numOfExitedrobs; this.canMove = false; this.returnItem(); this.clip.removeMovieClip(); this.markCell(this.cellx, this.celly, true); this.destroyObject(); trace('this.rootPath.game.numOfExitedrobs ' + this.rootPath.game.numOfExitedrobs); } } else { this.findNextCell(); this.moveObject(); } } else { if (v9 != v18 || v8 != v17) { if (this.astar.nodes['node' + v18 + '_' + v17].solid) { v3.canMove = false; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; } else { this.markCell(v9, v8, true); this.markCell(v18, v17, false); if (this.rootPath.game['node' + v9 + '_' + v8].isDoor) { var v14 = true; var v5 = 1; while (v5 <= this.rootPath.game.numOfguards) { var v6 = this.rootPath.guard[v5]; if (v6.cellx == v9 && v6.celly == v8) { v14 = false; } ++v5; } if (this.rootPath['door' + this.cellx + '_' + this.celly].getState() > 1) { v14 = false; } if (v14) { this.rootPath['door' + v9 + '_' + v8].clip.gotoAndPlay('close'); this.rootPath['door' + v9 + '_' + v8].opened = false; } } this.cellx = v18; this.celly = v17; if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor) { this.alignRobber(); if (this.room == this.rootPath.game['node' + this.cellx + '_' + this.celly].room) { this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room1; } if (this.room == this.rootPath.game['node' + this.cellx + '_' + this.celly].room1) { this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; } } else { this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; } this.showPopUps(); } } if (v3.canMove) { if (v18 == this.cellx && v17 == this.celly) { if (!Key.isDown(17)) { if (this._running > 0) { --this._running; _global.stage.levelch_mc[this._nickName].Running.r_bar.bar._xscale = this._running; this._speed = 13; this._Noise = 50; } else { this._speed = 5; this._Noise = 5; } } v3.x = v3.tempx; v3.y = v3.tempy; if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor) { this.alignRobber(); } } } } this.setClip(); } }; v2.Shoot = function (guard, x, y) { var v4 = Math.atan2(guard.y - this.y, guard.x - this.x); this.rot = v4 * 180 / Math.PI; this.canMove = false; this.setClip(); trace('DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD'); if (this._haveWeapon) { var v7 = this; var v3 = 0; trace('weapon ' + this._weapon._Type); this.soundMeter.setSoundLevel(this._weapon._Noise, this); switch (this._weapon._Type) { case 1: this.clip.body.gotoAndPlay('gun'); this.animation = 'gun'; trace(' case 1'); break; case 2: this.clip.body.gotoAndPlay('gun'); this.animation = 'gun'; trace(' case 2'); break; case 3: this.clip.body.gotoAndPlay('gun'); this.animation = 'gun'; trace(' case 3'); break; case 4: this.clip.body.gotoAndPlay('ak47'); this.animation = 'ak47'; trace(' case 4'); break; case 5: this.clip.body.gotoAndPlay('shotgun'); this.animation = 'shotgun'; trace('pukam'); trace(' case 5'); } v3 = 3 * this._shooting + this._weapon._Damage; if (guard._haveArmor) { v3 /= 2; } if (guard.clip.hitSpot.hitTest(x, y, true)) { trace('hit'); if (x <= guard.clip._x + 1 && x >= guard.clip._x - 1 && y <= guard.clip._y + 1 && y >= guard.clip._y - 1) { guard.Health = 0; trace('Bull\'s eye'); } else { if (guard.Health > 0) { guard.Health -= v3; guard.Alertness = 3; if (!guard.inShooting) { guard.Shoot(this); } } } } trace('guard health ' + guard.Health); if (!this.inShootingDelay) { this.inShootingDelay = true; } if (guard.Health <= 0) { this._speed = 13; if (guard.state != 4) { guard.Die(); } utils.Delegate.callDelayed(this, this.changeShootDelay, 500); } } else { this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; } }; v2.useItem = function (cellx, celly) { trace('item ' + this._item.Type); var v11 = this.rootPath.game['node' + cellx + '_' + celly].xmid; var v12 = this.rootPath.game['node' + cellx + '_' + celly].ymid; var v13 = Math.atan2(v12 - this.y, v11 - this.x); this.rot = v13 * 180 / Math.PI; this.setClip(); var v14 = this; var v10 = true; if (this.rootPath.game['node' + cellx + '_' + celly].type == 3) { var v6 = this.rootPath['door' + cellx + '_' + celly]; } else { trace('before cB'); var v2 = 1; while (v2 <= this.rootPath.controlBox.length) { var v3 = this.rootPath.controlBox[v2]; var v5 = Math.ceil(v3.x / this.rootPath.game.spacing); var v4 = Math.ceil(v3.y / this.rootPath.game.spacing); if (v5 == cellx && v4 == celly) { trace('in cB'); var v6 = v3; break; } ++v2; } } var v9 = Math.sqrt((v6.x - this.x) * (v6.x - this.x) + (v6.y - this.y) * (v6.y - this.y)); trace('distance ' + v9); if (v10 && v9 <= this.rootPath.game.spacing + 10) { this.alignRobber(); trace('Applying ' + cellx + ' ' + celly); this.canMove = false; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; v6.applyItem(this._item, this); this.ApplyItem = false; } }; v2.isWall = function (guard) { var v2 = false; var v11 = Math.atan2(guard.y - this.y, guard.x - this.x); var v9 = this.rootPath.game.spacing * Math.cos(v11); var v8 = this.rootPath.game.spacing * Math.sin(v11); var v3 = this.x + v9; var v4 = this.y + v8; var v5 = Math.ceil(v3 / this.rootPath.game.spacing); var v6 = Math.ceil(v4 / this.rootPath.game.spacing); var v10 = getTimer(); for (;;) { if (!((v5 != guard.cellx || v6 != guard.celly) && getTimer() - v10 < 500)) break; if (this.rootPath.game['node' + v5 + '_' + v6].type == 2) { v2 = true; trace('ob.isWall(this) ' + v2); return v2; } else { v3 += v9; v4 += v8; v5 = Math.ceil(v3 / this.rootPath.game.spacing); v6 = Math.ceil(v4 / this.rootPath.game.spacing); } } return v2; }; v2.canShoot = function (guard) { var v2 = this; var v8 = false; var v7 = this.rootPath.game['node' + guard.cellx + '_' + guard.celly].room; var v4 = 0; var v9; if (this.rootPath.game['node' + guard.cellx + '_' + guard.celly].isDoor) { v4 = this.rootPath.game['node' + guard.cellx + '_' + guard.celly].room1; if (this.rootPath['door' + guard.cellx + '_' + guard.celly].getState() > 0 && this.rootPath['door' + guard.cellx + '_' + guard.celly].clip.opened) { v9 = true; } else { v9 = false; } } var v6 = this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room; var v5 = 0; var v10; if (this.rootPath.game['node' + v2.cellx + '_' + v2.celly].isDoor) { v5 = this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room1; if (this.rootPath['door' + v2.cellx + '_' + v2.celly].getState() > 0 && this.rootPath['door' + v2.cellx + '_' + v2.celly].clip.opened) { v10 = true; } else { v10 = false; } } if (v4 > 0 && v5 > 0) { if (v9 && v10 && (v7 == v6 || v7 == v5 || v4 == v6 || v4 == v5)) { v8 = true; } return v8; } if (v4 == 0 && v5 == 0 && v7 == v6) { v8 = true; return v8; } if (v4 > 0) { if (v9 && (v7 == v6 || v4 == v6)) { v8 = true; } return v8; } if (v10 && (v7 == v6 || v7 == v5)) { v8 = true; } return v8; }; v2.refreshSolidObjects = function () { this.astar.maxX = this.rootPath.game.cols; this.astar.maxY = this.rootPath.game.rows; var v4 = 1; while (v4 <= this.rootPath.game.rows) { var v3 = 1; while (v3 <= this.rootPath.game.cols) { var v2 = 'node' + v3 + '_' + v4; if (this.rootPath.game[v2].type == 2) { this.astar.nodes[v2] = this.astar.solidOb; } if (this.rootPath.game[v2].type == 3 && this.rootPath['door' + v3 + '_' + v4].Type == 7) { this.astar.nodes[v2] = this.astar.solidOb; } ++v3; } ++v4; } }; v2.checkTraps = function () { var v15 = this.rootPath.game.maxTrapsOfType; var v10 = 0; while (++v10 <= v15) { var v6 = this; var v3 = this.rootPath.cam[v10]; if (v3 instanceof mcs.Cam) { if (v3.clip && v3.Room == this.room) { if (!v3._Disabled && v3.observerExist() && this.alarmMeter.getAlarmLevel() <= v3._AlarmLevel) { var v8 = false; if (v3.clip.detectfield.hitTest(v6.clip.body_mc) && !this.detected) { trace('camRoom detection ' + v3._Room); var v12 = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; var v7 = 0; var v11; if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor) { v7 = this.rootPath.game['node' + this.cellx + '_' + this.celly].room1; if (this.rootPath['door' + this.cellx + '_' + this.celly].getState() > 0) { v11 = true; } else { v11 = false; } } if (v7 > 0) { if (v11 && (v3._Room == v12 || v3._Room == v7)) { v8 = true; } } else { if (v7 == 0 && v3._Room == v12) { v8 = true; } } if (v8) { this.detected = true; v3.triggerAlarm(this); trace('Cam - Robber detected !!!! ' + v3._Room); v3.clip.camera_mc.light_mc.gotoAndPlay('true'); } } } } } var v4 = this.rootPath.laser[v10]; if (v4 instanceof mcs.Laser) { if (v4.clip && v4.Room == this.room) { if (!v4._Disabled && v4.clip._visible) { if ((this.__get__Item()).Type == 22 && v4.clip.hitTest(v6.clip.body_mc)) { v6 = this; this.canMove = false; v6.clip.body.gotoAndStop('place'); this.animation = 'place'; v6.clip.body.place.gotoAndPlay(25); v4.Destroy(); this.__set__Item(undefined); var v9 = _global.stage.levelch_mc[this._nickName].item_mc.attachMovie((this.__get__Weapon()).Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); v9.stop(); v9._xscale = 60; v9._yscale = 60; if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 22) { _global.path.currentPopUp = 24; _global.path.helpTips[24].dettachPrevisious(); _global.path.helpTips[24].showPopUp(); } } } else { if (v4.Type == 2 && v4.clip.hitTest(v6.clip.body_mc)) { v4.killRobber(this); } if (v4.Type == 1 && v4.clip.hitTest(v6.clip.body_mc) && !this.detected && this.alarmMeter.getAlarmLevel() <= v4._AlarmLevel) { this.detected = true; trace('Laser - Robber detected !!!!'); v4.triggerAlarm(this); } } } } } var v5 = this.rootPath.floor[v10]; if (v5 instanceof mcs.Floor) { if (v5.clip && v5.Room == this.room) { if (!v5._Disabled && this.alarmMeter.getAlarmLevel() <= v5._AlarmLevel) { if (v5.clip.hitTest(v6.clip.body_mc) && this.__get__Health() > 0 && v5.clip._visible) { this.LosingAttributes(5); _global.GAME.sound.stopSound('AAA'); _global.GAME.sound.playSound('AAA'); v5.clip.gotoAndPlay('alarm'); trace('Floor - Robber detected !!!!'); } } } } } if (this.rootPath.storm) { this.rootPath.storm.killRobber(this); } }; v2.moveRobber = function () { if (this.__get__Health() > 0 && this.clip && !this.getout) { this.markCell(this.cellx, this.celly, false); } if (this.getout) { trace('name ' + this._nickName); this.destroyObject(); } if (this.__get__Health() <= 0) { this.clip.body.gotoAndStop('die'); delete this.moveRobber; } this.checkTraps(); if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor && this.rootPath['door' + this.cellx + '_' + this.celly].getState() == 1 && this.rootPath['door' + this.cellx + '_' + this.celly].clip && !this.rootPath['door' + this.cellx + '_' + this.celly].clip.opened) { this.alignRobber(); this.canMove = false; this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this._speed = 13; this.rootPath['door' + this.cellx + '_' + this.celly].clip.play('open'); this.rootPath['door' + this.cellx + '_' + this.celly].opened = true; } this.moveObject(); if (Key.isDown(17) || !this.canMove) { if (this._running < 100) { ++this._running; _global.stage.levelch_mc[this._nickName].Running.r_bar.bar._xscale = this._running; } } }; v2.setClip = function () { if (this.clip) { var v2 = this.rootPath.translateCameraToStage(this.x, this.y); this.clip._x = int(v2.x); this.clip._y = int(v2.y); this.clip._rotation = int(this.rot); } }; v2.destroyObject = function () { trace('destroying.. '); var v2 = 1; while (v2 <= this.rootPath.game.numOfrobs) { if (this == this.rootPath.rob[v2]) { if (this.clip) { this.clip.removeMovieClip(); } this.rootPath.rob.splice(v2, 1, undefined); break; } ++v2; } }; v2.returnItem = function () { if (this.__get__Item() != undefined) { this.ItemMovie.quantity_mc.itemNumber = Number(this.ItemMovie.quantity_mc.itemNumber) + 1; if (Number(this.ItemMovie.quantity_mc.itemNumber) < 1) { this.ItemMovie.quantity_mc.itemNumber = 0; } this.__set__Item(undefined); var v3 = _global.stage.levelch_mc[this._nickName].item_mc.attachMovie((this.__get__Weapon()).Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); this.ItemMovie = undefined; v3.stop(); v3._xscale = 60; v3._yscale = 60; } }; v2.alignRobber = function () { var v2 = this.rootPath.game['node' + this.cellx + '_' + this.celly]; this.angle = this.rot * Math.PI / 180; if (Math.abs(Math.sin(this.angle)) < 0.1) { this.y = v2.ymid; } if (Math.abs(Math.sin(this.angle)) > 0.9) { this.x = v2.xmid; } this.setClip(); }; v2.changeShootDelay = function () { this.clip.body.gotoAndStop('idle'); this.animation = 'idle'; this.inShootingDelay = false; }; v2.showPopUps = function () { if (_global.path.LevelNum == 1) { if (this.room == 10 && _global.path.currentPopUp <= 7) { _global.path.currentPopUp = 8; _global.path.helpTips[7].dettachPopUp(); _global.path.helpTips[8].showPopUp(); } if (this.room == 11 && _global.path.currentPopUp <= 8) { _global.path.currentPopUp = 9; _global.path.helpTips[9].dettachPrevisious(); _global.path.helpTips[9].showPopUp(); } if (this.room == 8 && _global.path.currentPopUp <= 10) { _global.path.currentPopUp = 11; _global.path.helpTips[11].dettachPrevisious(); _global.path.helpTips[11].showPopUp(); } if ((this.room == 4 || this.room == 7) && _global.path.currentPopUp <= 16) { _global.path.currentPopUp = 17; _global.path.helpTips[17].dettachPrevisious(); _global.path.helpTips[17].showPopUp(); _global.path.helpTips[18].showPopUp(); _global.path.helpTips[19].showPopUp(); } if (this.room == 2 && _global.path.currentPopUp <= 17) { _global.path.currentPopUp = 20; _global.path.helpTips[20].dettachPrevisious(); _global.path.helpTips[20].showPopUp(); } if (this.room == 2 && _global.path.currentPopUp == 20) { _global.path.helpTips[20].dettachPrevisious(); } if (this.room == 2 && _global.path.currentPopUp == 25) { _global.path.currentPopUp = 26; _global.path.helpTips[26].dettachPrevisious(); _global.path.helpTips[26].showPopUp(); } } }; v2.addProperty('Electronics', v2.__get__Electronics, v2.__set__Electronics); v2.addProperty('Explosives', v2.__get__Explosives, v2.__set__Explosives); v2.addProperty('Health', v2.__get__Health, function () {}); v2.addProperty('Item', v2.__get__Item, v2.__set__Item); v2.addProperty('Noise', v2.__get__Noise, v2.__set__Noise); v2.addProperty('Running', v2.__get__Running, function () {}); v2.addProperty('Shooting', v2.__get__Shooting, v2.__set__Shooting); v2.addProperty('Speed', v2.__get__Speed, v2.__set__Speed); v2.addProperty('Unlocking', v2.__get__Unlocking, v2.__set__Unlocking); v2.addProperty('Weapon', v2.__get__Weapon, v2.__set__Weapon); ASSetPropFlags(mcs.Robber.prototype, null, 1); } #endinitclip } movieClip 6258 __Packages.mcs.Cam { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Cam) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this._Disabled = false; this._AlarmLevel = 3; }; mcs.Cam = v1; mcs.Cam extends MovieClipProps; var v2 = v1.prototype; v2.__set__Room = function (room) { this._Room = room; return this.__get__Room(); }; v2.__get__Room = function () { return this._Room; }; v2.__get__Type = function () { return this._Type; }; v2.__get__AlarmLevel = function () { return this._AlarmLevel; }; v2.__get__Disable = function () { return this._Disabled; }; v2.__set__Disable = function (disable) { this._Disabled = disable; return this.__get__Disable(); }; v2.canDisable = function (Item) { var v2 = 0; while (v2 < this.DisablingItems.length) { if (this.DisablingItems[v2] == Item.Type) { return true; } ++v2; } return false; }; v2.triggerAlarm = function (producer) { if (!this._Disabled && _global.path.alarmMeter.getAlarmLevel() <= this._AlarmLevel) { _global.path.alarmMeter.setAlarmLevel(this._AlarmLevel, producer); } }; v2.observerExist = function () { var v4 = 1; while (v4 <= _global.path.game.numOfguards) { var v3 = _global.path.guard[v4]; var v5 = _global.path.game['node' + v3.cellx + '_' + v3.celly].room; var v2 = 0; while (v2 < _global.path.monitoringRooms.length) { if (v3.Health > 0 && v5 == _global.path.monitoringRooms[v2] && !v3._policeman) { return true; } ++v2; } ++v4; } return false; }; v2.addProperty('AlarmLevel', v2.__get__AlarmLevel, function () {}); v2.addProperty('Disable', v2.__get__Disable, v2.__set__Disable); v2.addProperty('Room', v2.__get__Room, v2.__set__Room); v2.addProperty('Type', v2.__get__Type, function () {}); ASSetPropFlags(mcs.Cam.prototype, null, 1); } #endinitclip } movieClip 6259 __Packages.mcs.Laser { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Laser) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this._Disabled = false; this._AlarmLevel = 3; this.destroyed = false; }; mcs.Laser = v1; mcs.Laser extends MovieClipProps; var v2 = v1.prototype; v2.setParams = function (type, room) { this._Type = type; this._Room = room; }; v2.__get__Type = function () { return this._Type; }; v2.__set__Type = function (type) { this._Type = type; return this.__get__Type(); }; v2.__set__Room = function (room) { this._Room = room; return this.__get__Room(); }; v2.__get__Room = function () { return this._Room; }; v2.__get__Delay = function () { return this._Delay; }; v2.__get__AlarmLevel = function () { return this._AlarmLevel; }; v2.__get__Disable = function () { return this._Disabled; }; v2.__set__Disable = function (disable) { if (!this.destroyed) { this._Disabled = disable; if (disable) { this.visible = false; } else { this.visible = true; } if (!this.visible) { this.clip._visible = false; } else { this.clip._visible = true; } } return this.__get__Disable(); }; v2.Destroy = function () { this.destroyed = true; this._Disabled = true; this.clip._visible = false; }; v2.canDisable = function (Item) { var v2 = 0; while (v2 < this.DisablingItems.length) { if (this.DisablingItems[v2] == Item.Type) { return true; } ++v2; } return false; }; v2.triggerAlarm = function (producer) { if (!this._Disabled && _global.path.alarmMeter.getAlarmLevel() <= this._AlarmLevel) { _global.path.alarmMeter.setAlarmLevel(this._AlarmLevel, producer); } }; v2.killRobber = function (rob) { var v5 = false; var v7 = _global.path.game['node' + rob.cellx + '_' + rob.celly].room; var v4 = 0; var v6; if (_global.path.game['node' + rob.cellx + '_' + rob.celly].isDoor) { v4 = _global.path.game['node' + rob.cellx + '_' + rob.celly].room1; if (_global.path['door' + rob.cellx + '_' + rob.celly].getState() > 0) { v6 = true; } else { v6 = false; } } if (v4 > 0) { if (v6 && (this._Room == v7 || this._Room == v4)) { v5 = true; } } else { if (v4 == 0 && this._Room == v7) { v5 = true; } } if (v5 && rob.Health > 0) { trace('killing '); rob.LosingAttributes(1); _global.GAME.sound.stopSound('AAA'); _global.GAME.sound.playSound('AAA'); } }; v2.addProperty('AlarmLevel', v2.__get__AlarmLevel, function () {}); v2.addProperty('Delay', v2.__get__Delay, function () {}); v2.addProperty('Disable', v2.__get__Disable, v2.__set__Disable); v2.addProperty('Room', v2.__get__Room, v2.__set__Room); v2.addProperty('Type', v2.__get__Type, v2.__set__Type); ASSetPropFlags(mcs.Laser.prototype, null, 1); } #endinitclip } movieClip 6260 __Packages.mcs.Floor { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Floor) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this.cellx = Math.ceil((this.x + 20) / _global.path.game.spacing); this.celly = Math.ceil((this.y + 20) / _global.path.game.spacing); this._Disabled = false; }; mcs.Floor = v1; mcs.Floor extends MovieClipProps; var v2 = v1.prototype; v2.setType = function (Type, Cellx, Celly) { this._Type = Type; this._AlarmLevel = 3; }; v2.__get__Type = function () { return this._Type; }; v2.calcRoom = function () { this._Room = _global.path.game['node' + this.cellx + '_' + this.celly].room; }; v2.__get__Room = function () { return this._Room; }; v2.__get__SoundLevel = function () { return this._SoundLevel; }; v2.__get__AlarmLevel = function () { return this._AlarmLevel; }; v2.__get__Disable = function () { return this._Disabled; }; v2.__set__Disable = function (disable) { this._Disabled = disable; if (disable) { this.visible = false; } else { this.visible = true; } if (!this.visible) { this.clip._visible = false; } else { this.clip._visible = true; } return this.__get__Disable(); }; v2.canDisable = function (Item) { var v2 = 0; while (v2 < this.DisablingItems.length) { if (this.DisablingItems[v2] == Item.Type) { return true; } ++v2; } return false; }; v2.triggerSoundAlarm = function (producer) { _global.path.soundMeter.setSoundLevel(this._SoundLevel + producer.Noise, producer); }; v2.triggerAlarm = function (producer) { trace('in triger'); if (_global.path.alarmMeter.getAlarmLevel() <= this._AlarmLevel) { _global.path.alarmMeter.setAlarmLevel(this._AlarmLevel, producer); this.clip.gotoAndPlay('alarm'); } }; v2._AlarmLevel = 3; v2.addProperty('AlarmLevel', v2.__get__AlarmLevel, function () {}); v2.addProperty('Disable', v2.__get__Disable, v2.__set__Disable); v2.addProperty('Room', v2.__get__Room, function () {}); v2.addProperty('SoundLevel', v2.__get__SoundLevel, function () {}); v2.addProperty('Type', v2.__get__Type, function () {}); ASSetPropFlags(mcs.Floor.prototype, null, 1); } #endinitclip } movieClip 6261 __Packages.mcs.Guard { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Guard) { var v1 = function (linkID, Name, Static, policeman, precision, startCell, defaultCell, lastCell, x, y, rot, astar) { super(linkID, x, y, rot, 100, 100); this.rootPath = _global.path; this._nickName = Name; this.astarDelay = Number(Name.substr(Name.length - 1, 1)) * 1000; this._static = Static; this._policeman = policeman; this._hearingRadius = 10; this._precision = precision; this._lastCell = lastCell; this._defaultCell = defaultCell; this._startCell = startCell; this._health = 100; this.astar = astar; this.alarmMeter = this.rootPath.alarmMeter; this.cellx = Math.ceil(this.x / this.rootPath.game.spacing); this.celly = Math.ceil(this.y / this.rootPath.game.spacing); this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; this.canMove = false; this.onDoor = false; this.spoted = false; this.respond = true; this.inShooting = false; this.state = 0; if (this._policeman) { this.isStatic = true; this._haveArmor = true; this._hearingRadius = 20; } else { this._haveArmor = false; this.isStatic = false; this._hearingRadius = 10; } this.killingTime = 10000 / this._precision; this.gotoDefaultRoute = false; this.doorState = 0; this._speed = 2; this._alertness = 0; this.astarPath = new Array(); this.astarPathBack = new Array(); this.animation = ''; this.markCell(this.cellx, this.celly, false); this.initialize(); utils.Delegate.callDelayed(this, this.radioComm, 10000); }; mcs.Guard = v1; mcs.Guard extends MovieClipProps; var v2 = v1.prototype; v2.initialize = function () { this.inShooting = false; if (this._static) { this.isStatic = true; this.state = 0; } else { this.isStatic = false; this.walkDefaultRoute(); } }; v2.__get__Health = function () { return this._health; }; v2.__set__Health = function (health) { this._health = health; if (this._health <= 0) { this.Die(); } return this.__get__Health(); }; v2.__get__Alertness = function () { return this._alertness; }; v2.__set__Alertness = function (alertness) { this._alertness = alertness; return this.__get__Alertness(); }; v2.__get__HearingRadius = function () { return this._hearingRadius; }; v2.__set__HearingRadius = function (hearingRadius) { this._hearingRadius = hearingRadius; return this.__get__HearingRadius(); }; v2.__get__Weapon = function () { return this._weapon; }; v2.__set__Weapon = function (weapon) { this._weapon = weapon; return this.__get__Weapon(); }; v2.__get__Tool = function () { return this._tool; }; v2.__set__Tool = function (tool) { this._tool = tool; return this.__get__Tool(); }; v2.__get__Speed = function () { return this._speed; }; v2.__set__Speed = function (speed) { this._speed = speed; return this.__get__Speed(); }; v2.Shoot = function (rob) { if (!this.isWall(rob)) { trace('killing ... '); this.inShooting = true; this.state = 3; this.canMove = false; rob.spoted = true; this._alertness = 3; var v4 = 10; if (this.__get__Health() > 0 && rob.Health > 0) { this.clip.body.gotoAndStop('fire'); this.animation = 'fire'; var v5 = Math.atan2(rob.y - this.y, rob.x - this.x); this.rot = v5 * 180 / Math.PI; this.clip._rotation = this.rot; this.soundMeter.setSoundLevel(100, this); rob.LosingAttributes(v4); } if (this.__get__Health() > 0 && rob.Health <= 0) { utils.Delegate.callDelayed(this, this.changeState, 1000, 0); } if (this.__get__Health() <= 0) { this.Die(); } if (this.__get__Health() > 0 && rob.Health > 0) { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.Shoot, this.killingTime, rob); } } trace('Pukam vo kradecot :DDDDDDDDDDDDDD'); } else { if (rob.Health > 0) { rob.inShootingDelay = false; } this.changeState(0); if (this.__get__Health() > 0 && !this._policeman && this.alarmMeter.getAlarmLevel() < 3) { rob.spoted = true; this.Walk(this.findNearestAlarmButton()); } } }; v2.Die = function () { if (this.animation != 'die') { this.clip.body.gotoAndStop('die'); this.animation = 'die'; this.markCell(this.cellx, this.celly, true); --this.rootPath.game.numOfLiveGuards; this.depth = this.rootPath.depth.deadDepth--; this.clip.swapDepths(this.depth); this.showPopUps(); } this.state = 4; }; v2.markCell = function (cellx, celly, empty) { var v2 = 'node' + cellx + '_' + celly; if (!empty) { this.astar.nodes[v2] = this.astar.solidOb; this.rootPath.game[v2].type = 2; this.rootPath.game[v2].char = 2; } else { this.astar.nodes[v2] = {'solid': undefined, 'exists': undefined}; if (this.rootPath.game[v2].isDoor) { this.rootPath.game[v2].type = 3; } else { this.rootPath.game[v2].type = 1; } this.rootPath.game[v2].char = 0; } }; v2.Walk = function (destPoint) { this.refreshSolidObjects(); var v6 = this; var v5 = Math.ceil(this.x / this.rootPath.game.spacing); var v4 = Math.ceil(this.y / this.rootPath.game.spacing); var v2 = Math.ceil(destPoint.x / this.rootPath.game.spacing); var v3 = Math.ceil(destPoint.y / this.rootPath.game.spacing); var v9 = false; var v7 = false; if (v5 == this.cellx && v4 == this.celly) { this.x = this.rootPath.game['node' + v5 + '_' + v4].xmid; this.y = this.rootPath.game['node' + v5 + '_' + v4].ymid; } if (this.astar.nodes['node' + v2 + '_' + v3].solid) { if (!this.astar.nodes['node' + (v2 + 1) + '_' + v3].solid) { ++v2; } else { if (!this.astar.nodes['node' + (v2 - 1) + '_' + v3].solid) { --v2; } else { if (!this.astar.nodes['node' + v2 + '_' + (v3 + 1)].solid) { ++v3; } else { if (!this.astar.nodes['node' + v2 + '_' + (v3 - 1)].solid) { --v3; } } } } } this.astar.s.x = v5; this.astar.s.y = v4; this.astar.g.x = v2; this.astar.g.y = v3; this.astarPath = this.astar.search(); this._speed = 4; this.findNextCell(); this.canMove = true; if (this.state != 4) { this.state = 2; } }; v2.walkDefaultRoute = function () { this.refreshSolidObjects(); this._speed = 2; var v15 = this; var v12 = false; var v6; var v5; var v4; var v16 = this._startCell; var v8 = Math.ceil(this.x / this.rootPath.game.spacing); var v7 = Math.ceil(this.y / this.rootPath.game.spacing); var v14 = this._defaultCell.x; var v13 = this._defaultCell.y; if (this._lastCell) { v12 = true; var v10 = this._lastCell.x; var v9 = this._lastCell.y; trace('this._nickName ' + this._nickName); } this.astar.s.x = v8; this.astar.s.y = v7; this.astar.g.x = v14; this.astar.g.y = v13; v6 = this.astar.search(); var v2 = 0; while (v2 < v6.length) { this.astarPath[v2] = v6[v2]; ++v2; } if (v12) { if (v8 == v10 && v7 == v9) { this.markCell(v10, v9, true); } this.refreshSolidObjects(); this.astar.s.x = v14; this.astar.s.y = v13; this.astar.g.x = v10; this.astar.g.y = v9; v5 = this.astar.search(); if (v8 == v10 && v7 == v9) { this.markCell(v10, v9, false); } var v11 = this.astarPath.length; v2 = 0; while (v2 < v5.length) { this.astarPath[v11 + v2] = v5[v2]; ++v2; } if (!(v8 == v10 && v7 == v9)) { this.markCell(v8, v7, true); this.refreshSolidObjects(); this.astar.s.x = v10; this.astar.s.y = v9; this.astar.g.x = v8; this.astar.g.y = v7; v4 = this.astar.search(); this.markCell(v8, v7, false); v11 = this.astarPath.length; v2 = 0; while (v2 < v4.length) { this.astarPath[v11 + v2] = v4[v2]; ++v2; } } this.refreshSolidObjects(); } var v3 = 0; while (v3 < this.astarPath.length) { this.astarPathBack[v3] = this.astarPath[v3]; ++v3; } this.findNextCell(); this.canMove = true; if (this.state != 4) { this.state = 1; } }; v2.findNextCell = function () { var v2 = this; var v8 = true; var v7 = Math.ceil(v2.x / this.rootPath.game.spacing); var v6 = Math.ceil(v2.y / this.rootPath.game.spacing); var v3 = v2.astarPath.shift(); var v4 = this.rootPath.game['node' + v7 + '_' + v6]; var v5 = this.rootPath.game['node' + v3[0] + '_' + v3[1]]; if (this.astar.nodes['node' + v3[0] + '_' + v3[1]].solid) { v2.canMove = false; v2._alertness = 3; this.state = 0; this.standingtime = getTimer(); if (this.animation != 'stand') { this.clip.body.gotoAndStop('stand'); this.animation = 'stand'; } } this.room = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; v2.startx = v4.xmid; v2.starty = v4.ymid; v2.endx = v5.xmid; v2.endy = v5.ymid; v2.angle = Math.atan2(v2.endy - v2.starty, v2.endx - v2.startx); this.rot = v2.angle * 180 / Math.PI; v2.xmov = this._speed * Math.cos(v2.angle); v2.ymov = this._speed * Math.sin(v2.angle); }; v2.moveObject = function () { var v2 = this; if (v2.canMove) { v2.tempx = Math.round(v2.x + v2.xmov); v2.tempy = Math.round(v2.y + v2.ymov); var v11 = Math.ceil(v2.x / this.rootPath.game.spacing); var v8 = Math.ceil(v2.y / this.rootPath.game.spacing); var v19 = Math.ceil(v2.tempx / this.rootPath.game.spacing); var v18 = Math.ceil(v2.tempy / this.rootPath.game.spacing); var v22 = v2.startx; var v21 = v2.starty; var v16 = v2.endx; var v15 = v2.endy; var v20 = v2.tempx; var v23 = v2.tempy; if ((v16 - v22) / Math.abs(v16 - v22) != (v16 - v20) / Math.abs(v16 - v20) && v16 - v22 != 0 && v16 - v20 != 0 || (v15 - v21) / Math.abs(v15 - v21) != (v15 - v23) / Math.abs(v15 - v23) && v15 - v21 != 0 && v15 - v23 != 0) { if (v2.astarPath.length == 0) { v2.xmov = 0; v2.ymov = 0; v2.tempx = v16; v2.tempy = v15; v2.canMove = false; if (this.state == 2) { this.state = 0; this.standingtime = getTimer(); } if (this.animation != 'stand') { v2.clip.body.gotoAndStop('stand'); this.animation = 'stand'; } var v14 = Math.ceil(v2.endx / this.rootPath.game.spacing); var v13 = Math.ceil(v2.endy / this.rootPath.game.spacing); if (v14 == v2.cellx && v13 == v2.celly) { v2.x = v2.endx; v2.y = v2.endy; } var v6 = 0; while (v6 < this.rootPath.alarmButton.length) { var v3 = this.rootPath.alarmButton[v6]; var v12 = Math.ceil(v3.destx / this.rootPath.game.spacing); var v9 = Math.ceil(v3.desty / this.rootPath.game.spacing); if (v14 == v12 && v13 == v9) { var v7 = Math.atan2(v2.y - v3.y, v2.x - v3.x); v2.rot = v7 * 180 / Math.PI; if (this.animation != 'press') { v2.clip.body.gotoAndStop('press'); this.animation = 'press'; } var v10 = this.rootPath.rob[this.rootPath.selrobID]; this.alarmMeter.setAlarmLevel(3, v10); } ++v6; } v2.cellx = v11; v2.celly = v8; v2.room = this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room; } else { this.findNextCell(); this.moveObject(); } } else { if (v11 != v19 || v8 != v18) { if (this.astar.nodes['node' + v19 + '_' + v18].solid) { v2.canMove = false; v2._alertness = 1; this.state = 0; this.standingtime = getTimer(); if (this.animation != 'stand') { v2.clip.body.gotoAndStop('stand'); this.animation = 'stand'; } } else { this.markCell(v11, v8, true); this.markCell(v19, v18, false); if (this.rootPath.game['node' + v11 + '_' + v8].isDoor) { this.onDoor = false; this.rootPath['door' + v11 + '_' + v8].opened = false; if (this.rootPath['door' + v11 + '_' + v8].getState() < 2 && this.rootPath['door' + v11 + '_' + v8].clip && this.rootPath['door' + v11 + '_' + v8].clip.opened) { var v17 = true; var v5 = 1; while (v5 <= this.rootPath.game.numOfguards) { var v4 = this.rootPath.guard[v5]; if (v4.cellx == v11 && v4.celly == v8 && v4 != this) { v17 = false; } ++v5; } if (v17) { trace('doorState ' + v2.doorState); this.rootPath['door' + v11 + '_' + v8].setState(v2.doorState); this.rootPath['door' + v11 + '_' + v8].clip.gotoAndPlay('close'); } } } v2.cellx = v19; v2.celly = v18; if (this.rootPath.game['node' + v2.cellx + '_' + v2.celly].isDoor) { if (v2.room == this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room) { v2.room = this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room1; } if (v2.room == this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room1) { v2.room = this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room; } } else { v2.room = this.rootPath.game['node' + v2.cellx + '_' + v2.celly].room; } } } if (v2.canMove) { if (v19 == v2.cellx && v18 == v2.celly) { v2.x = v2.tempx; v2.y = v2.tempy; v2.checkVisibility(); } } } this.setClip(); } }; v2.findNearestGuard = function () { var v6; var v5 = Number.MAX_VALUE; var v3 = 1; while (v3 <= this.rootPath.game.numOfguards) { var v2 = this.rootPath.guard[v3]; if (v2.Health > 0 && v2 != this && !v2._static) { var v4 = Math.sqrt((v2.x - this.x) * (v2.x - this.x) + (v2.y - this.y) * (v2.y - this.y)); if (v5 > v4) { v5 = v4; v6 = v2; } } ++v3; } return v6; }; v2.findNearestAlarmButton = function () { var v8; var v5 = Number.MAX_VALUE; var v3 = 0; while (v3 < this.rootPath.alarmButton.length) { var v2 = {'x': this.rootPath.alarmButton[v3].destx, 'y': this.rootPath.alarmButton[v3].desty}; var v4 = Math.sqrt((v2.x - this.x) * (v2.x - this.x) + (v2.y - this.y) * (v2.y - this.y)); if (v5 > v4) { v5 = v4; v8 = v2; } ++v3; } return v8; }; v2.refreshSolidObjects = function () { this.astar.maxX = this.rootPath.game.cols; this.astar.maxY = this.rootPath.game.rows; var v4 = 1; while (v4 <= this.rootPath.game.rows) { var v2 = 1; while (v2 <= this.rootPath.game.cols) { var v3 = 'node' + v2 + '_' + v4; if (this.rootPath.game[v3].type == 2) { this.astar.nodes[v3] = this.astar.solidOb; } ++v2; } ++v4; } }; v2.checkVisibility = function () { if (this.__get__Health() > 0) { var v6 = false; var v7 = 0; var v5 = 1; while (v5 <= this.rootPath.game.numOfrobs) { var v3 = this.rootPath.rob[v5]; if (v3.Health > 0) { v6 = this.checkCollision(v3); } if (v6) { if (this.rootPath._alarmMeter.getAlarmLevel() < 2) { this.rootPath._alarmMeter.setAlarmLevel(2, v3); } this.Shoot(v3); trace(this._nickName + ' I saw a robber rob ' + v5); trace(' I saw a robber rob ' + v3._nickName); v3.spoted = true; break; } else { if (v3.Health > 0 && !this.checkCollision(v3)) { ++v7; } var v4 = 1; while (v4 < this.rootPath.game.numOfguards) { var v2 = this.rootPath.guard[v4]; if (v2 != this && this.checkCollision(v2) && v2.Health <= 0 && !v2.spoted && !this._policeman && this.alarmMeter.getAlarmLevel() < 3) { trace(this._nickName + ' NJANJANJANAJNJA'); v2.spoted = true; this.Walk(this.findNearestAlarmButton()); break; } ++v4; } } ++v5; } if (v7 == this.rootPath.game.numOfLiverobs) { this.inShooting = false; } } }; v2.checkCollision = function (rob) { var v7 = false; var v10 = this; if (!rob.clip) { if (utils.MathUtils.getDistance(this.x, this.y, rob.x, rob.y) < 150) { if (!this.isWall(rob)) { return true; } } return v7; } if (this.clip && this.clip.view.hitTest(rob.clip)) { var v6 = this.rootPath.game['node' + this.cellx + '_' + this.celly].room; var v3 = 0; var v8; if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor) { v3 = this.rootPath.game['node' + this.cellx + '_' + this.celly].room1; if (this.rootPath['door' + this.cellx + '_' + this.celly].getState() > 0 && this.rootPath['door' + this.cellx + '_' + this.celly].clip.opened) { v8 = true; } else { v8 = false; } } var v5 = this.rootPath.game['node' + rob.cellx + '_' + rob.celly].room; var v4 = 0; var v9; if (this.rootPath.game['node' + rob.cellx + '_' + rob.celly].isDoor) { v4 = this.rootPath.game['node' + rob.cellx + '_' + rob.celly].room1; if (this.rootPath['door' + rob.cellx + '_' + rob.celly].getState() > 0 && this.rootPath['door' + rob.cellx + '_' + rob.celly].clip.opened) { v9 = true; } else { v9 = false; } } if (v3 > 0 && v4 > 0) { if (v8 && v9 && (v6 == v5 || v6 == v4 || v3 == v5 || v3 == v4)) { v7 = true; } return v7; } if (v3 == 0 && v4 == 0 && v6 == v5) { v7 = true; return v7; } if (v3 > 0) { if (v8 && (v6 == v5 || v3 == v5)) { v7 = true; } return v7; } if (v9 && (v6 == v5 || v6 == v4)) { v7 = true; } } return v7; }; v2.isWall = function (Rob) { var v4 = false; var v11 = Math.atan2(Rob.y - this.y, Rob.x - this.x); var v9 = this.rootPath.game.spacing * Math.cos(v11); var v8 = this.rootPath.game.spacing * Math.sin(v11); var v5 = this.x + v9; var v6 = this.y + v8; var v2 = Math.ceil(v5 / this.rootPath.game.spacing); var v3 = Math.ceil(v6 / this.rootPath.game.spacing); var v10 = getTimer(); for (;;) { if (!((v2 != Rob.cellx || v3 != Rob.celly) && getTimer() - v10 < 500)) break; if (this.rootPath.game['node' + v2 + '_' + v3].type == 2) { v4 = true; return v4; } else { if (this.rootPath.game['node' + v2 + '_' + v3].type == 3) { if (!this.rootPath['door' + v2 + '_' + v3].opened) { v4 = true; return v4; } } else { v5 += v9; v6 += v8; v2 = Math.ceil(v5 / this.rootPath.game.spacing); v3 = Math.ceil(v6 / this.rootPath.game.spacing); } } } return v4; }; v2.MoveThroughDefaultRoute = function () { if (this.__get__Health() <= 0) { if (this.state != 4) { this.Die(); delete this.MoveThroughDefaultRoute; } } else { if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor && this.rootPath['door' + this.cellx + '_' + this.celly].clip && this.rootPath['door' + this.cellx + '_' + this.celly].clip.opened == false && this.rootPath['door' + this.cellx + '_' + this.celly].getState() < 2 && !this.onDoor) { this.doorState = this.rootPath['door' + this.cellx + '_' + this.celly].getState(); this.rootPath['door' + this.cellx + '_' + this.celly].setState(1); this._alertness = 1; this.onDoor = true; this.rootPath['door' + this.cellx + '_' + this.celly].clip.gotoAndPlay('open'); this.rootPath['door' + this.cellx + '_' + this.celly].opened = true; if (this.animation != 'stand') { this.clip.body.gotoAndStop('stand'); this.animation = 'stand'; } utils.Delegate.callDelayed(this, this.wait, 1500); } if (this._alertness == 0) { this.standingtime = getTimer(); if (this.clip) { if (this.animation != 'walk') { this.clip.body.gotoAndStop('walk'); this.animation = 'walk'; } } else { if (this.animation != '') { this.animation = ''; } } if (this.canMove == false) { var v2 = 0; while (v2 < this.astarPathBack.length) { this.astarPath[v2] = this.astarPathBack[v2]; ++v2; } this.canMove = true; this.findNextCell(); if (this.animation != 'walk') { this.clip.body.gotoAndStop('walk'); this.animation = 'walk'; } } this.moveObject(); } } }; v2.chaseRobber = function () { if (this.__get__Health() <= 0) { if (this.state != 4) { this.Die(); delete this.chaseRobber; } } else { if (this.canMove) { this.standingtime = getTimer(); if (this.clip && this.animation != 'run') { this.clip.body.gotoAndStop('run'); this.animation = 'run'; } if (!this.clip && this.animation != '') { this.animation = ''; } } else { this.clip.body.gotoAndStop(this.animation); } var v2 = this.rootPath['door' + this.cellx + '_' + this.celly]; if (this.rootPath.game['node' + this.cellx + '_' + this.celly].isDoor && v2.clip && v2.clip.opened == false && v2.getState() < 2 && !this.onDoor) { this.doorState = this.rootPath['door' + this.cellx + '_' + this.celly].getState(); trace('doorState open ' + this.doorState); this.rootPath['door' + this.cellx + '_' + this.celly].setState(1); this.canMove = false; this.onDoor = true; this.rootPath['door' + this.cellx + '_' + this.celly].clip.gotoAndPlay('open'); this.rootPath['door' + this.cellx + '_' + this.celly].opened = true; if (this.animation != 'stand') { this.clip.body.gotoAndStop('stand'); this.animation = 'stand'; } utils.Delegate.callDelayed(this, this.wait, 1500); } this.moveObject(); if (!this.canMove && !this._policeman && this.gotoDefaultRoute && Math.ceil(this.x / this.rootPath.game.spacing) == this._startCell.x && Math.ceil(this.y / this.rootPath.game.spacing) == this._startCell.y) { trace('in walk ' + this._nickName); this.__set__Alertness(0); this.walkDefaultRoute(); this.gotoDefaultRoute = false; } } }; v2.standingGuard = function () { if (this.__get__Health() <= 0) { if (this.state != 4) { this.Die(); delete this.standingGuard; } } else { if (this.clip) { if (this.isStatic && this.cellx == this._startCell.x && this.celly == this._startCell.y) { if (this.animation != 'seat') { this.clip.body.gotoAndStop('seat'); this.animation = 'seat'; } } else { if (this.animation != 'stand') { this.clip.body.gotoAndStop('stand'); this.animation = 'stand'; } } this.checkVisibility(); this.markCell(this.cellx, this.celly, false); } else { this.animation = ''; } } }; v2.radioComm = function () { if (this.__get__Health() > 0) { var v4 = 1; while (v4 <= this.rootPath.game.numOfguards) { var v3 = this.rootPath.guard[v4]; if (v3 != this && v3.Health <= 0 && v3.respond) { trace('found dead'); v3.respond = false; var v5 = v3.findNearestGuard(); v5.Walk({'x': v3.x, 'y': v3.y}); } ++v4; } if (this.state == 0 && !this._policeman && !this.isStatic && getTimer() - this.standingtime > 10000) { var v6 = {'x': this.rootPath.game['node' + this._startCell.x + '_' + this._startCell.y].xmid, 'y': this.rootPath.game['node' + this._startCell.x + '_' + this._startCell.y].ymid}; if (this.isStatic) { this.gotoDefaultRoute = false; this._static = true; } else { this.gotoDefaultRoute = true; } this.__set__Alertness(0); utils.Delegate.callDelayed(this, this.Walk, this.astarDelay, v6); } if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.radioComm, 10000); } } }; v2.wait = function () { if (this.__get__Health() > 0 && !this.inShooting) { if (this._speed == 2) { if (this.animation != 'walk') { this.clip.body.gotoAndStop('walk'); this.animation = 'walk'; } this._alertness = 0; } else { if (this.animation != 'run') { this.clip.body.gotoAndStop('run'); this.animation = 'run'; } this.canMove = true; } } }; v2.setClip = function () { if (this.clip) { var v2 = this.rootPath.translateCameraToStage(this.x, this.y); this.clip._x = int(v2.x); this.clip._y = int(v2.y); this.clip._rotation = int(this.rot); } }; v2.changeState = function (s) { if (this.__get__Health() > 0) { this.state = s; } }; v2.showPopUps = function () { if (_global.path.LevelNum == 1) { if (this.__get__Health() <= 0 && _global.path.currentPopUp == 17) { _global.path.currentPopUp = 20; _global.path.helpTips[20].showPopUp(); } } }; v2.addProperty('Alertness', v2.__get__Alertness, v2.__set__Alertness); v2.addProperty('Health', v2.__get__Health, v2.__set__Health); v2.addProperty('HearingRadius', v2.__get__HearingRadius, v2.__set__HearingRadius); v2.addProperty('Speed', v2.__get__Speed, v2.__set__Speed); v2.addProperty('Tool', v2.__get__Tool, v2.__set__Tool); v2.addProperty('Weapon', v2.__get__Weapon, v2.__set__Weapon); ASSetPropFlags(mcs.Guard.prototype, null, 1); } #endinitclip } movieClip 6262 __Packages.utils.MathUtils { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.MathUtils) { var v1 = function () {}; utils.MathUtils = v1; var v2 = v1.prototype; v1.formatDecimals = function (num, digits) { if (digits <= 0) { return Math.round(num); } var v4 = Math.pow(10, digits); var v2 = String(Math.round(num * v4) / v4); if (v2.indexOf('.') == -1) { v2 += '.0'; } var v6 = v2.split('.'); var v3 = digits - v6[1].length; var v1 = 1; while (v1 <= v3) { v2 += '0'; ++v1; } return Number(v2); }; v1.toScientific = function (num, sigDigs) { num = Number(num); if (isNaN(num)) { return num; } var v2 = Math.floor(Math.log(Math.abs(num)) / Math.LN10); if (num == 0) { v2 = 0; } var v5 = Math.pow(10, v2); var v3 = num / v5; v3 = utils.MathUtils.formatDecimals(v3, sigDigs - 1); var v4 = v3; if (v2 != 0) { v4 += 'e' + v2; } return v4; }; v1.getDistance = function (x1, y1, x2, y2) { var v1 = Math.abs(x1 - x2); var v2 = Math.abs(y1 - y2); return Math.sqrt(Math.pow(v1, 2) + Math.pow(v2, 2)); }; v1.getAngle = function (x1, y1, x2, y2) { return utils.MathUtils.formatAngle2(Math.round(180 * Math.atan2(y2 - y1, x2 - x1) / Math.PI)); }; v1.formatAngle = function (ang) { if (ang > 0) { return ang - 360; } if (ang < -360) { return ang + 360; } return ang; }; v1.formatAngle2 = function (ang) { if (ang < 0) { return ang + 360; } if (ang > 360) { return ang - 360; } return ang; }; v1.formatAngle3 = function (ang) { if (ang < -180) { return ang + 360; } if (ang > 180) { return ang - 360; } return ang; }; v1.angDiff = function (ang1, ang2) { return Math.abs(utils.MathUtils.formatAngle3(ang1) - utils.MathUtils.formatAngle3(ang2)); }; v1.angDiff2 = function (ang1, ang2) { return utils.MathUtils.formatAngle3(ang1) - utils.MathUtils.formatAngle3(ang2); }; ASSetPropFlags(utils.MathUtils.prototype, null, 1); } #endinitclip } movieClip 6263 __Packages.mcs.Door { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Door) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this._State = 0; this.rootPath = _global.path; this.alarmMeter = this.rootPath.alarmMeter; this.soundMeter = this.rootPath.soundMeter; this.cellx = Math.ceil(this.x / this.rootPath.game.spacing); this.celly = Math.ceil(this.y / this.rootPath.game.spacing); this.isOpening = false; }; mcs.Door = v1; mcs.Door extends MovieClipProps; var v2 = v1.prototype; v2.setType = function (Type) { this._Type = Type; switch (Type) { case '1': this.Unlockigitems = []; this.time = 0; this._State = 1; break; case '2': this.Unlockigitems = [1, 3, 4, 5, 6, 7, 11, 12]; this.time = 1; break; case '3': this.Unlockigitems = [1, 3, 4, 5, 6, 7, 11, 12]; this.time = 1; break; case '4': this.Unlockigitems = []; this.time = 0; this._State = 1; break; case '5': this.Unlockigitems = [4, 5, 6, 7, 8, 10, 13, 12, 16]; this.time = 1; break; case '6': this.Unlockigitems = [4, 5, 6, 7, 8, 10, 13, 12, 16]; this.time = 1; break; case '7': this.Unlockigitems = [2, 3, 13]; this.time = 2; } }; v2.__get__Type = function () { return this._Type; }; v2.setState = function (State) { this._State = State; }; v2.getState = function () { return this._State; }; v2.applyItem = function (_item, _robber) { trace('in door class'); this.robber = _robber; this.item = _item; if (this.item.Type == 17) { this.robber.clip.body.gotoAndStop('place'); this.robber.animation = 'place'; var v7 = new mcs.Gas(this.robber, this); var v9 = v7.findSide(); v7.clip = _global.stage.attachMovie(v7.linkID, utils.StringUtils.getUniqueName(), this.rootPath.depth.getDepth(v7), {'_x': this.clip._x, '_y': this.clip._y}); v7.clip.cacheAsBitmap = true; v7.clip.gotoAndStop(v9.toString()); v7.explode(); this.rootPath.GasAr.push(v7); --this.item.Quantity; var v4 = _global.stage.levelch_mc[this.robber._nickName].item_mc.attachMovie(this.robber.Weapon.Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); this.robber.ItemMovie = undefined; v4.stop(); v4._xscale = 60; v4._yscale = 60; this.robber.Item = undefined; _global.GAME.sound.playSound('gas_sound'); } else { if (this.item.Type == 18) { this.robber.clip.body.gotoAndStop('place'); this.robber.animation = 'place'; var v8 = new mcs.EMP(this.robber, this); v8.clip = _global.stage.attachMovie(v8.linkID, utils.StringUtils.getUniqueName(), this.rootPath.depth.getDepth(v8), {'_x': this.clip._x, '_y': this.clip._y}); v8.explode(); this.rootPath.Emps.push(v8); --this.item.Quantity; var v4 = _global.stage.levelch_mc[this.robber._nickName].item_mc.attachMovie(this.robber.Weapon.Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); this.robber.ItemMovie = undefined; v4.stop(); v4._xscale = 60; v4._yscale = 60; this.robber.Item = undefined; _global.GAME.sound.playSound('EMP_sound'); } else { if (this._State == 0 && this.Unlockigitems.length > 0 && this.item.Quantity > 0) { this.foundRightItem = false; var v5 = 0; while (v5 < this.Unlockigitems.length) { if (this.Unlockigitems[v5] == this.item.Type) { this.foundRightItem = true; var v3 = this.time; if (this._Type == 2 || this._Type == 3 || this._Type == 7) { v3 = v3 + this.item.Usage + (10 - this.robber.Unlocking); this.robber.clip.body.gotoAndStop('unlock'); this.robber.animation = 'unlock'; if (this.item.Type == 12) { _global.GAME.sound.stopSound('drill'); _global.GAME.sound.playSound('drill'); this.currSound = 'drill'; } else { if (this.item.Type == 11) { _global.GAME.sound.stopSound('wDoorUnlocking'); _global.GAME.sound.playSound('wDoorUnlocking'); this.currSound = 'wDoorUnlocking'; } else { if (this.item.Type == 13) { _global.GAME.sound.stopSound('torch'); _global.GAME.sound.playSound('torch'); this.currSound = 'torch'; } else { if (this.item.Type <= 3) { _global.GAME.sound.stopSound('wDoorUnlocking'); _global.GAME.sound.playSound('wDoorUnlocking'); this.currSound = 'wDoorUnlocking'; } } } } } if (this._Type == 5 || this._Type == 6) { v3 = v3 + this.item.Usage + (10 - this.robber.Electronics); this.robber.clip.body.gotoAndStop('electronic'); this.robber.animation = 'electronic'; if (this.item.Type == 8 || this.item.Type == 10 || this.item.Type == 16) { _global.GAME.sound.stopSound('eDoorUnlocking'); _global.GAME.sound.playSound('eDoorUnlocking'); this.currSound = 'eDoorUnlocking'; } else { if (this.item.Type == 13) { _global.GAME.sound.stopSound('torch'); _global.GAME.sound.playSound('torch'); this.currSound = 'torch'; } else { if (this.item.Type == 12) { _global.GAME.sound.stopSound('drill'); _global.GAME.sound.playSound('drill'); this.currSound = 'drill'; } } } } trace('item.Type ' + this.item.Type); if (this.item.Type == 4 || this.item.Type == 5 || this.item.Type == 6 || this.item.Type == 7) { v3 = this.item.Usage + (10 - this.robber.Explosives); this.robber.clip.body.gotoAndStop('place'); this.robber.animation = 'place'; this.doorBomb = new mcs.DoorBomb(this); this.rootPath.doorBombs.push(this.doorBomb); --this.item.Quantity; var v4 = _global.stage.levelch_mc[this.robber._nickName].item_mc.attachMovie(this.robber.Weapon.Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); this.robber.ItemMovie = undefined; v4.stop(); v4._xscale = 60; v4._yscale = 60; this.robber.item = undefined; } else { this.soundMeter.setSoundLevel(this.item.Noise, this.robber); } this.onUnlockRightToolPopUp(); trace('OpeningTime ' + v3); this.remainingTime = Math.round(v3); var v6 = this; v6.clip.count.doorCount = v3; v6.clip.gotoAndStop('countdown'); if (!this.isOpening) { this.robber.doingAction = true; this.nextCall = true; utils.Delegate.callDelayed(this, this.timerClock, 1000); utils.Delegate.callDelayed(this, this.openDoor, 40); } break; } ++v5; } if (!this.foundRightItem) { if (this.clip) { if (this._Type == 7) { _global.stage.attachMovie('wrongtool_mc', 'wrongtool', 8300, {'_x': this.clip._x, '_y': this.clip._y}); utils.Delegate.callDelayed(_global.GAME, _global.GAME.removeMC, 500, _global.stage.wrongtool); } else { this.clip.attachMovie('wrongtool_mc', 'wrongtool', 8300); this.clip.wrongtool._rotation = -this.clip._rotation; utils.Delegate.callDelayed(_global.GAME, _global.GAME.removeMC, 500, this.clip.wrongtool); this.onUnlockWrongToolPopUp(); } } _global.GAME.sound.stopSound('wrongTool'); _global.GAME.sound.playSound('wrongTool'); } } else { trace('Openenig ' + this.clip.opened + ' ' + this._State); if (!this.clip.opened && this._State == 1) { trace('opened'); this.clip.opened = true; this.clip.gotoAndPlay('open'); this.opened = true; this.onOpenShowPopUp(); } } } } }; v2.openDoor = function () { var v9 = true; if (this.robber._health > 0) { this.isOpening = true; if (!this.robber.doingAction) { var v10 = this.rootPath.translateStageToCamera(_xmouse, _ymouse); var v11 = Math.ceil(v10.x / this.rootPath.game.spacing); var v13 = Math.ceil(v10.y / this.rootPath.game.spacing); if (this.rootPath.game['node' + v11 + '_' + v13].char != 1 && this.robber.Selected && v9 && (this.item.Type < 4 || this.item.Type > 7)) { trace('Ostavam ... '); if (this._State == 0) { this.clip.gotoAndStop(1); } this.robber.clip.body.gotoAndStop('idle'); this.robber.animation = 'idle'; v9 = false; this.nextCall = false; _global.GAME.sound.stopSound(this.currSound); this.isOpening = false; } } if (this.robber.Health <= 0 && this._State == 0 && v9) { this.clip.gotoAndStop(1); this.robber.clip.body.gotoAndStop('die'); this.robber.animation = 'die'; v9 = false; this.nextCall = false; _global.GAME.sound.stopSound(this.currSound); this.isOpening = false; } if (this.remainingTime <= 0) { this.isOpening = false; _global.GAME.sound.stopSound(this.currSound); this.setState(1); this.opened = true; this.clip.gotoAndPlay('open'); this.opened = true; this.robber.clip.body.gotoAndStop('idle'); this.robber.animation = 'idle'; this.onOpenShowPopUp(); if (this == this.rootPath.game.exitDoor && !(this.item.Type >= 4 && this.item.Type <= 7)) { trace('this.rootPath.game.exitDoor.y ' + this.rootPath.game.exitDoor.y); this.robber.getout = true; this.robber.returnItem(); this.robber.clip.removeMovieClip(); this.robber.markCell(this.robber.cellx, this.robber.celly, true); this.robber.destroyObject(); ++this.rootPath.game.numOfExitedrobs; this.nextCall = false; trace('this.rootPath.game.numOfExitedrobs ' + this.rootPath.game.numOfExitedrobs); } if (this.__get__Type() == 7) { if (_global.GAME.Level == 13) { delete utils.Delegate; var v12 = this.rootPath.hour * 3600 + this.rootPath.min * 60 + this.rootPath.sec; _global.GAME.timeBonus = Math.floor(2800000 * (v12 - 750) / -360); _global.GAME.mode = 'endgame'; _global.GAME.Play(); } else { if (this.rootPath.LevelNum == 12) { this.rootPath.game.SafeOpen = true; } else { this.attachMiniGame(); } } } trace('Explode item.Type ' + this.item.Type + ' ' + this.item.Noise); if (this.item.Type >= 4 && this.item.Type <= 7) { this.doorBomb.clip.gotoAndPlay('explode'); this.depth = this.rootPath.depth.explosionDepth++; this.clip.swapDepths(this.depth); this.doorBomb.depth = this.rootPath.depth.explosionDepth++; this.doorBomb.clip.swapDepths(this.doorBomb.depth); this.doorBomb.state = 'exploded'; this.setState(2); trace('this.depth ' + this.depth + ' this.doorBomb.depth ' + this.doorBomb.depth); this.soundMeter.setSoundLevel(this.item.Noise, this.robber); var v7 = 1; while (v7 <= this.rootPath.game.numOfrobs) { var v5 = this.rootPath.game.spacing + 5; var v4 = this.rootPath.rob[v7]; var v8 = Math.sqrt((v4.x - this.x) * (v4.x - this.x) + (v4.y - this.y) * (v4.y - this.y)); trace('distance ' + v8); if (v8 <= v5) { v4.LosingAttributes(100); } else { if (v8 <= 2 * v5) { v4.LosingAttributes(50); } } ++v7; } var v6 = 1; while (v6 <= this.rootPath.game.numOfguards) { var v3 = this.rootPath.guard[v6]; v8 = Math.sqrt((v3.x - this.x) * (v3.x - this.x) + (v3.y - this.y) * (v3.y - this.y)); if (v8 <= v5) { v3.Health -= 100; } else { if (v8 <= 2 * v5) { v3.Health -= 50; } } trace('guard.Health ' + v3.Health); if (v3.Health <= 0) { v3.markCell(v3.cellx, v3.celly, true); --this.rootPath.game.numOfLiveGuards; trace('umrev'); v3.clip.body.gotoAndStop('die'); v3.clip.swapDepths(this.rootPath.game.deadDepth--); } ++v6; } } else { this.soundMeter.setSoundLevel(0, this.robber); } trace('Otkluciv !!!!!'); this.nextCall = false; } } else { this.nextCall = false; if (!this.opened) { if (this._State == 0) { this.clip.gotoAndStop(1); } _global.GAME.sound.stopSound(this.currSound); this.isOpening = false; } } if (this.nextCall) { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.openDoor, 40); } } }; v2.timerClock = function () { --this.remainingTime; trace('remainingTime ' + this.remainingTime); this.clip.count.doorCount = this.remainingTime; if (this.remainingTime > 0 && this.nextCall) { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.timerClock, 1000); } } }; v2.setClip = function () { if (this.clip) { this.clip._x = int(this.x); this.clip._y = int(this.y); this.clip._rotation = int(this.rot); } }; v2.attachMiniGame = function () { this.rootPath.game.minigameStarted = true; _global.stage.Pause(); this.rootPath.game.SafeOpen = true; this.miniGame = _global.stage.attachMovie('minigame_mc', 'minigame', this.rootPath.depth.minigameDepth, {'_x': this.rootPath.camera.width / 2, '_y': this.rootPath.camera.height / 2}); _global.stage.cursor.update(); utils.Delegate.callDelayed(this, this.robTheSafe, 500); }; v2.robTheSafe = function () { if (!this.rootPath.game.minigameStarted) { this.miniGame.removeMovieClip(); _global.stage.Play(); if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 24) { _global.path.currentPopUp = 25; _global.path.helpTips[25].dettachPrevisious(); _global.path.helpTips[25].showPopUp(); } } } else { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.robTheSafe, 500); } } }; v2.onOpenShowPopUp = function () { if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 5 && this == _global.path.door7_14) { _global.path.helpTips[5].dettachPopUp(); _global.path.helpTips[5].shown = 2; _global.path.currentPopUp = 6; _global.path.helpTips[6].showPopUp(); } if (_global.path.currentPopUp == 9 && this == _global.path.door22_11) { _global.path.currentPopUp = 10; _global.path.helpTips[10].dettachPrevisious(); _global.path.helpTips[10].showPopUp(); } if (_global.path.currentPopUp == 11 && this == _global.path.door18_9) { _global.path.currentPopUp = 12; _global.path.helpTips[12].dettachPrevisious(); _global.path.helpTips[12].showPopUp(); _global.path.helpTips[14].showPopUp(); _global.path.helpTips[15].showPopUp(); _global.path.helpTips[16].showPopUp(); } if (_global.path.currentPopUp == 20 && this == _global.path.door7_5) { _global.path.currentPopUp = 21; _global.path.helpTips[21].dettachPrevisious(); _global.path.helpTips[21].showPopUp(); } } }; v2.onUnlockWrongToolPopUp = function () { if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 5 && this == _global.path.door7_14) { _global.path.helpTips[5].dettachPopUp(); _global.path.helpTips[5].shown = 2; _global.path.currentPopUp = 3; _global.path.helpTips[3].shown = 0; _global.path.helpTips[3].showPopUp(); } } }; v2.onUnlockRightToolPopUp = function () { if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 5 && this == _global.path.door7_14) { _global.path.helpTips[5].dettachPopUp(); _global.path.helpTips[5].shown = 2; } if (_global.path.currentPopUp == 26 && this == _global.path.door24_3) { _global.path.helpTips[26].dettachPopUp(); _global.path.helpTips[26].shown = 2; } if (_global.path.currentPopUp == 9 && this == _global.path.door22_11) { _global.path.helpTips[9].dettachPopUp(); _global.path.helpTips[9].shown = 2; } if (_global.path.currentPopUp == 11 && this == _global.path.door20_7) { _global.path.currentPopUp = 12; _global.path.helpTips[12].dettachPrevisious(); _global.path.helpTips[12].showPopUp(); _global.path.helpTips[14].showPopUp(); _global.path.helpTips[15].showPopUp(); _global.path.helpTips[16].showPopUp(); } trace(' _global.path.currentPopUp ' + _global.path.currentPopUp + ' this.Type ' + this.__get__Type()); if (_global.path.currentPopUp <= 24 && this.__get__Type() == 7) { _global.path.currentPopUp = 24; _global.path.helpTips[24].dettachPopUp(); _global.path.helpTips[24].shown = 2; _global.path.helpTips[24].dettachPrevisious(); } } }; v2.opened = false; v2.addProperty('Type', v2.__get__Type, function () {}); ASSetPropFlags(mcs.Door.prototype, null, 1); } #endinitclip } movieClip 6264 __Packages.mcs.Gas { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Gas) { var v1 = function (rob, door) { super('gas_mc', door.x, door.y, 0, 100, 100); this.Robber = rob; this._door = door; this.exploded = false; this.rootPath = _global.path; }; mcs.Gas = v1; mcs.Gas extends MovieClipProps; var v2 = v1.prototype; v2.findSide = function () { if (this._door.cellx > this.Robber.cellx) { this.side = 'right'; trace('STRANA ' + this.side); return this.side; } if (this._door.cellx < this.Robber.cellx) { this.side = 'left'; trace('STRANA ' + this.side); return this.side; } if (this._door.celly < this.Robber.celly) { this.side = 'up'; trace('STRANA ' + this.side); return this.side; } if (this._door.celly > this.Robber.celly) { this.side = 'down'; } trace('STRANA ' + this.side); return this.side; }; v2.explode = function () { if (this.Robber.room == this._door.room) { this.efRoom = this._door.room1; } else { this.efRoom = this._door.room; } trace('efRoom ' + this.efRoom); trace('Robber.room efRoom ' + this.Robber.room); utils.Delegate.callDelayed(this, this.kiilGuard, 2500); }; v2.kiilGuard = function () { var v3 = 1; while (v3 <= this.rootPath.game.numOfguards) { var v2 = this.rootPath.guard[v3]; if (v2.room == this.efRoom) { if (v2.Health > 0) { v2.Health = 0; v2.Die(); } } ++v3; } this.exploded = true; this.clip.removeMovieClip(); }; ASSetPropFlags(mcs.Gas.prototype, null, 1); } #endinitclip } movieClip 6265 __Packages.mcs.EMP { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.EMP) { var v1 = function (rob, door) { super('emp_mc', door.x, door.y, 0, 100, 100); this.Robber = rob; this._door = door; this.exploded = false; }; mcs.EMP = v1; mcs.EMP extends MovieClipProps; var v2 = v1.prototype; v2.findSide = function () { if (this._door.cellx > this.Robber.cellx) { this.side = 90; trace('STRANA ' + this.side); return this.side; } if (this._door.cellx < this.Robber.cellx) { this.side = -90; trace('STRANA ' + this.side); return this.side; } if (this._door.celly < this.Robber.celly) { this.side = 0; trace('STRANA ' + this.side); return this.side; } if (this._door.celly > this.Robber.celly) { this.side = 180; } trace('STRANA ' + this.side); return this.side; }; v2.explode = function () { if (this.Robber.room == this._door.room) { this.efRoom = this._door.room1; } else { this.efRoom = this._door.room; } trace('efRoom ' + this.efRoom); trace('Robber.room efRoom ' + this.Robber.room); utils.Delegate.callDelayed(this, this.removeEMPClip, 4000); }; v2.removeEMPClip = function () { var v3 = 1; while (v3 <= _global.path.cam.length) { this.cam = _global.path.cam[v3]; if (this.cam instanceof mcs.Cam && !this.cam._Disabled && this.cam._Room == this.efRoom) { this.cam._Disabled = true; this.cam.clip.camera_view_mc._visible = false; this.cam.clip.stop(); } ++v3; } this.exploded = true; this.clip.removeMovieClip(); }; v2.side = 1; ASSetPropFlags(mcs.EMP.prototype, null, 1); } #endinitclip } movieClip 6266 __Packages.mcs.DoorBomb { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.DoorBomb) { var v1 = function (_door) { super('explosive', _door.x, _door.y, 0, 100, 100); this.door = _door; this.state = 'activated'; this.attachBomb(); }; mcs.DoorBomb = v1; mcs.DoorBomb extends MovieClipProps; var v2 = v1.prototype; v2.attachBomb = function () { this.depth = _global.path.depth.getDepth(this); this.clip = _global.stage.attachMovie(this.linkID, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.door.clip._x, '_y': this.door.clip._y}); }; ASSetPropFlags(mcs.DoorBomb.prototype, null, 1); } #endinitclip } movieClip 6267 __Packages.mcs.SafeDoor { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.SafeDoor) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this.state = 'closed'; }; mcs.SafeDoor = v1; mcs.SafeDoor extends MovieClipProps; var v2 = v1.prototype; ASSetPropFlags(mcs.SafeDoor.prototype, null, 1); } #endinitclip } movieClip 6268 __Packages.mcs.UnlockingFloor { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.UnlockingFloor) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); }; mcs.UnlockingFloor = v1; mcs.UnlockingFloor extends MovieClipProps; var v2 = v1.prototype; ASSetPropFlags(mcs.UnlockingFloor.prototype, null, 1); } #endinitclip } movieClip 6269 __Packages.mcs.ControlBox { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.ControlBox) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this.rootPath = _global.path; this.Disabled = false; this.Time = 3000; this.state = 'enabled'; }; mcs.ControlBox = v1; mcs.ControlBox extends MovieClipProps; var v2 = v1.prototype; v2.getDisabled = function () { return this.Disabled; }; v2.applyItem = function (_item, _robber) { trace('In Control Box ....'); this.robber = _robber; this.item = _item; if (!this.Disabled) { this.foundRightItem = false; var v3 = 0; while (v3 < this.Disablingitems.length) { if (this.Disablingitems[v3] == this.item.Type) { this.foundRightItem = true; trace('Appying on Control Box ....'); this.robber.clip.body.gotoAndStop('electronic'); this.robber.animation = 'electronic'; this.rootPath.soundMeter.setSoundLevel(this.item.Noise, this.robber); this.disablingTime = this.Time; if (this.item.Type == 12) { _global.GAME.sound.stopSound('drill'); _global.GAME.sound.playSound('drill'); } this.robber.doingAction = true; utils.Delegate.callDelayed(this, this.disableCB, 40); if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 22) { _global.path.currentPopUp = 24; _global.path.helpTips[24].dettachPrevisious(); _global.path.helpTips[24].showPopUp(); } } break; } ++v3; } if (!this.foundRightItem && this.item) { if (this.clip) { this.clip.attachMovie('wrongtool_mc', 'wrongtool', 8300); this.clip.wrongtool._rotation = -this.clip._rotation; utils.Delegate.callDelayed(_global.GAME, _global.GAME.removeMC, 500, this.clip.wrongtool); } _global.GAME.sound.stopSound('wrongTool'); _global.GAME.sound.playSound('wrongTool'); } } }; v2.disableCB = function () { var v3 = true; var v5 = true; if (this.robber.Health > 0) { this.disablingTime -= 40; if (!this.robber.doingAction) { var v4 = this.rootPath.translateStageToCamera(_xmouse, _ymouse); var v6 = Math.ceil(v4.x / this.rootPath.game.spacing); var v7 = Math.ceil(v4.y / this.rootPath.game.spacing); if (this.rootPath.game['node' + v6 + '_' + v7].char == 0 && this.robber.Selected && v5 && !this.Disabled) { trace('Ostavam ... '); this.clip.gotoAndStop(1); this.robber.clip.body.gotoAndStop('idle'); this.robber.animation = 'idle'; v5 = false; v3 = false; } } if (this.disablingTime < 0) { this.Disabled = true; this.rootPath.traps.disableTraps(); this.clip.gotoAndStop('disabled'); this.robber.clip.body.gotoAndStop('idle'); this.robber.animation = 'idle'; this.state = 'disabled'; _global.GAME.sound.playSound('controlBoxDisable'); this.rootPath.soundMeter.setSoundLevel(0, this.robber); v3 = false; } } else { v3 = false; } if (v3) { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.disableCB, 40); } } }; v2.Disablingitems = [9, 10]; ASSetPropFlags(mcs.ControlBox.prototype, null, 1); } #endinitclip } movieClip 6270 __Packages.mcs.ControlBoxExtra { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.ControlBoxExtra) { var v1 = function (l, x, y, rot, xs, ys, _type) { super(l, x, y, rot, xs, ys); this.type = _type; this.rootPath = _global.path; this.Time = 3000; this.Disabled[1] = false; this.Disabled[2] = false; this.Disabled[3] = false; this.Disabled[4] = false; this.Disabled[5] = false; this.state = 'enabled'; }; mcs.ControlBoxExtra = v1; mcs.ControlBoxExtra extends MovieClipProps; var v2 = v1.prototype; v2.getDisabled = function () { return this.Disabled; }; v2.applyItem = function (_item, _robber) { trace('In Control Box ....'); this.robber = _robber; this.item = _item; if (!this.Disabled[this.type] && this.DisablingItems.length > 0) { this.foundRightItem = false; var v3 = 0; while (v3 < this.DisablingItems.length) { if (this.DisablingItems[v3] == this.item.Type) { this.foundRightItem = true; trace('Appying on Control Box ....'); this.robber.clip.body.gotoAndStop('electronic'); this.robber.animation = 'electronic'; this.rootPath.soundMeter.setSoundLevel(this.item.Noise, this.robber); this.disablingTime = this.Time; if (this.item.Type == 12) { _global.GAME.sound.stopSound('drill'); } this.robber.doingAction = true; utils.Delegate.callDelayed(this, this.disableCB, 40); break; } ++v3; } if (!this.foundRightItem && this.item) { if (this.clip) { this.clip.attachMovie('wrongtool_mc', 'wrongtool', 8300); this.clip.wrongtool._rotation = -this.clip._rotation; utils.Delegate.callDelayed(_global.GAME, _global.GAME.removeMC, 500, this.clip.wrongtool); } _global.GAME.sound.stopSound('wrongTool'); _global.GAME.sound.playSound('wrongTool'); } } }; v2.disableCB = function () { var v3 = true; var v5 = true; if (this.robber.Health > 0) { this.disablingTime -= 40; if (!this.robber.doingAction) { var v4 = this.rootPath.translateStageToCamera(_xmouse, _ymouse); var v6 = Math.ceil(v4.x / this.rootPath.game.spacing); var v7 = Math.ceil(v4.y / this.rootPath.game.spacing); if (this.rootPath.game['node' + v6 + '_' + v7].char == 0 && this.robber.Selected && v5 && !this.Disabled) { trace('Ostavam ... '); this.clip.gotoAndStop(1); this.robber.clip.body.gotoAndStop('idle'); this.robber.animation = 'idle'; v5 = false; v3 = false; } } if (this.disablingTime < 0) { this.Disabled[this.type] = true; if (this.type == 1) { this.rootPath.traps.disableLasersBlue(); } if (this.type == 2) { this.rootPath.traps.disableFloors1(); } if (this.type == 3) { this.rootPath.traps.disableLasersBlue1(); } if (this.type == 4) { this.rootPath.traps.disableFloors(); } if (this.type == 5) { this.rootPath.storm.disabled = true; removeMovieClip(this.rootPath.storm.clip); } this.clip.gotoAndStop('disabled'); this.robber.clip.body.gotoAndStop('idle'); this.robber.animation = 'idle'; this.state = 'disabled'; _global.GAME.sound.playSound('controlBoxDisable'); this.rootPath.soundMeter.setSoundLevel(0, this.robber); v3 = false; } } else { v3 = false; } if (v3) { if (_global.GAME.Level == _global.path.LevelNum) { utils.Delegate.callDelayed(this, this.disableCB, 40); } } }; v2.Disabled = new Array(); v2.DisablingItems = [8, 9, 10]; v2.DisabledCB = 0; ASSetPropFlags(mcs.ControlBoxExtra.prototype, null, 1); } #endinitclip } movieClip 6271 __Packages.mcs.AlarmButton { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.AlarmButton) { var v1 = function (l, x, y, rot, xs, ys, dx, dy) { super(l, x, y, rot, xs, ys); this.destx = dx; this.desty = dy; this.state = 'inactive'; }; mcs.AlarmButton = v1; mcs.AlarmButton extends MovieClipProps; var v2 = v1.prototype; ASSetPropFlags(mcs.AlarmButton.prototype, null, 1); } #endinitclip } movieClip 6272 __Packages.mcs.Exitlight { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Exitlight) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); }; mcs.Exitlight = v1; mcs.Exitlight extends MovieClipProps; var v2 = v1.prototype; ASSetPropFlags(mcs.Exitlight.prototype, null, 1); } #endinitclip } movieClip 6273 __Packages.mcs.Storm { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Storm) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this.disabled = false; }; mcs.Storm = v1; mcs.Storm extends MovieClipProps; var v2 = v1.prototype; v2.killRobber = function (rob) { var v3 = Math.sqrt((this.x - rob.x) * (this.x - rob.x) + (this.y - rob.y) * (this.y - rob.y)); if (v3 <= 150 && rob.Health > 0 && this.clip._visible) { trace('stormKilling'); rob.LosingAttributes(30); } }; ASSetPropFlags(mcs.Storm.prototype, null, 1); } #endinitclip } movieClip 6274 __Packages.mcs.Elevator { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Elevator) { var v1 = function (l, x, y, rot, xs, ys) { super(l, x, y, rot, xs, ys); this.state = 'opened'; }; mcs.Elevator = v1; mcs.Elevator extends MovieClipProps; var v2 = v1.prototype; ASSetPropFlags(mcs.Elevator.prototype, null, 1); } #endinitclip } movieClip 6275 __Packages.mcs.PopUp { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.PopUp) { var v1 = function (l, x, y, rot, xs, ys, dx, dy) { super(l, x, y, rot, xs, ys); this.destx = dx; this.desty = dy; }; mcs.PopUp = v1; mcs.PopUp extends MovieClipProps; var v2 = v1.prototype; ASSetPropFlags(mcs.PopUp.prototype, null, 1); } #endinitclip } movieClip 6276 __Packages.mcs.HelpHints { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.HelpHints) { var v1 = function (l, x, y, rot, xs, ys, depth, aDelay, dDelay) { super(l, x, y, rot, xs, ys); this.shown = 0; this.appearingDelay = aDelay * 1000; this.disappearingDelay = dDelay * 1000; if (dDelay < 100) { this.DisappearingDelay = true; } else { this.DisappearingDelay = false; } this.depth = depth; }; mcs.HelpHints = v1; mcs.HelpHints extends MovieClipProps; var v2 = v1.prototype; v2.showPopUp = function () { utils.Delegate.callDelayed(this, this.attachPopUp, this.appearingDelay); }; v2.attachPopUp = function () { if (this.shown == 0 && _global.stage.helpButton.showPopUps) { if (_global.path.currentPopUp != 4 && _global.path.currentPopUp != 6) { var v3 = _global.path.translateCameraToStage(this.x, this.y); } else { if (_global.path.currentPopUp == 6) { var v3 = {'x': 70 + (_global.path.selrobID - 1) * 128, 'y': this.y}; } else { var v3 = {'x': this.x, 'y': this.y}; } } this.clip = _global.stage.attachMovie(this.linkID, utils.StringUtils.getUniqueName(), this.depth, {'_x': int(v3.x), '_y': int(v3.y), '_rotation': this.rot}); this.clip.popUP._alpha = 80; this.shown = 1; if (this.DisappearingDelay) { utils.Delegate.callDelayed(this, this.dettachPopUp, this.disappearingDelay); } } }; v2.dettachPopUp = function () { if (this.clip) { this.clip.removeMovieClip(); this.clip = undefined; if (_global.path.currentPopUp == 6 && _global.path.rob[_global.path.selrobID].room == 9) { _global.path.currentPopUp = 7; _global.path.helpTips[7].showPopUp(); } if (_global.path.currentPopUp == 22) { _global.path.currentPopUp = 24; _global.path.helpTips[24].showPopUp(); } this.shown = 2; } }; v2.dettachPrevisious = function () { var v2 = 1; while (v2 < _global.path.currentPopUp) { if (_global.path.helpTips[v2].clip) { _global.path.helpTips[v2].clip.removeMovieClip(); _global.path.helpTips[v2].clip = undefined; } _global.path.helpTips[v2].shown = 2; ++v2; } }; ASSetPropFlags(mcs.HelpHints.prototype, null, 1); } #endinitclip } movieClip 6277 __Packages.br.Keyboard { #initclip if (!_global.br) { _global.br = new Object(); } if (!_global.br.Keyboard) { var v1 = function () { this.keyboardListener = new Object(); this.keyboardListener.onKeyDown = this.Press; this.keyboardListener.onKeyUp = this.Release; Key.addListener(this.keyboardListener); this.pausePress = false; this.spaceBtnReleased = true; _global.keyboard = this; }; br.Keyboard = v1; var v2 = v1.prototype; v2.Press = function () { if (Key.getCode() >= 49 && Key.getCode() <= 53) { var v4 = Key.getCode() - 48; if (v4 <= _global.path.game.numOfrobs && _global.path.rob[v4].Health > 0 && !_global.path.rob[v4].getout) { _global.keyboard.selectRobber(v4); } } if (Key.getCode() == 17) { if (_global.path.rob[_global.path.selrobID].Speed != 5) { _global.path.rob[_global.path.selrobID].Speed = 5; _global.path.rob[_global.path.selrobID].Noise = 5; } } if (Key.getCode() == 80) { trace('STOP'); if (!this.pausePress) { _global.stage.Pause(); this.pausePress = true; } else { _global.stage.Play(); this.pausePress = false; } } if (Key.getCode() == 68) { var v3 = _global.path.rob[_global.path.selrobID]; if (v3.Item.Type == 19 || v3.Item.Type == 4 || v3.Item.Type == 5) { var v6 = new mcs.Bomb(v3); v6.buttonPress(); _global.path.Bombs.push(v6); var v5 = _global.stage.levelch_mc[v3._nickName].item_mc.attachMovie(v3.Weapon.Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); v3.ItemMovie = undefined; v3.Item = undefined; v5.stop(); v5._xscale = 60; v5._yscale = 60; } } if (Key.getCode() == 16) { if (_global.stage.toolButton) { if (_global.stage.toolButton.panelItem._visible) { _global.stage.toolButton.gotoAndStop(1); } else { _global.stage.toolButton.gotoAndStop(2); } } } if (Key.getCode() == 32) { if (_global.keyboard.spaceBtnReleased) { _global.keyboard.spaceBtnReleased = false; trace('Space pressed'); trace('LevelNum ' + _global.path.LevelNum); if (_global.GAME.levelLoaded) { trace('Level loaded '); if (!_global.GAME.blueprintOnScreen) { trace('Blueprint not on screen'); if (!_global.stage.pauseMenu) { trace('No pause Menu attach clip '); _global.stage.attachMovie('mapa_btn', 'mapa_btn', 11400, {'_x': -30, '_y': -22}); trace('_global.stage.mapa_btn ' + _global.stage.mapa_btn); trace('_global.stage.mapa_btn.Depth ' + _global.stage.mapa_btn.getDepth()); _global.GAME.blueprintOnScreen = true; _global.stage.mapa_btn.onRelease = function () { _global.GAME.blueprintOnScreen = false; removeMovieClip(this); }; } } else { if (_global.stage.pauseMenu) { _global.GAME.blueprintOnScreen = false; _global.stage.Play(); } else { _global.GAME.blueprintOnScreen = false; trace('remove Blueprint '); removeMovieClip(_global.stage.mapa_btn); } } } } } }; v2.Release = function () { if (Key.getCode() == 17) { if (_global.path.rob[_global.path.selrobID].Speed != 13) { trace('release'); _global.path.rob[_global.path.selrobID].Speed = 13; _global.path.rob[_global.path.selrobID].Noise = 50; } } if (Key.getCode() == 32) { _global.keyboard.spaceBtnReleased = true; } }; v2.selectRobber = function (i) { var v2 = _global.path.rob[i]; if (_global.path.selrobID != i) { _global.path.rob[_global.path.selrobID].Selected = false; _global.path.rob[_global.path.selrobID].clip['player' + _global.path.selrobID].gotoAndStop('deselected'); _global.stage.levelch_mc['rob' + _global.path.selrobID].character_bck.gotoAndStop('deselected'); _global.path.selrobID = i; v2.Selected = true; v2.clip['player' + _global.path.selrobID].gotoAndStop('selected'); _global.stage.levelch_mc['rob' + i].character_bck.gotoAndStop('selected'); if (_global.path.LevelNum == 1) { if (_global.path.currentPopUp == 12) { _global.path.helpTips[12].dettachPopUp(); _global.path.helpTips[12].shown = 2; } if (_global.path.currentPopUp == 1) { _global.path.helpTips[1].dettachPopUp(); _global.path.helpTips[1].shown = 2; _global.path.helpTips[2].showPopUp(); _global.path.currentPopUp = 2; } } } _global.path.camera.centerStage(v2); }; ASSetPropFlags(br.Keyboard.prototype, null, 1); } #endinitclip } movieClip 6278 __Packages.br.Level { #initclip if (!_global.br) { _global.br = new Object(); } if (!_global.br.Level) { var v1 = function (num) { _global.path = this; this.LevelNum = num; this.init(); }; br.Level = v1; var v2 = v1.prototype; v2.init = function () { this.width = 780; this.height = 450; this.timer = 0; this.sec = 0; this.min = 0; this.hour = 0; this.callpolice = false; this.policeTimer = 0; this.policeIsHere = false; this.depth = new control.DepthController(); trace('this.LevelNum ' + this.LevelNum); if (this.LevelNum == 1) { this.config = new conf.Level1Conf(); } if (this.LevelNum == 2) { this.config = new conf.Level2Conf(); } if (this.LevelNum == 3) { this.config = new conf.Level3Conf(); } this.camera = new isioux.display.Camera(); this.camera.__set__follow({'x': _global.stage._xmouse, 'y': _global.stage._ymouse}); this.camera.setSize(this.width, this.height); this.background = new isioux.display.BackGround(this.bgImage, this.camera); this.camera.setBounds(0, this.background.__get__width(), 0, this.background.__get__height()); _global.stage.bgMC = _global.stage.createEmptyMovieClip('bg_mc', this.depth.bgDepth); this.camBMP = new flash.display.BitmapData(this.width, this.height, false, 0); _global.stage.bgMC.attachBitmap(this.camBMP, _global.stage.bgMC.getNextHighestDepth()); _global.stage.bgMC._x = 10; _global.stage.bgMC._y = 10; this.selrobID = 0; this.MovementPermision = true; this.camTolerance = 100; utils.Delegate.callDelayed(this, this.LaserHandller, 500); utils.Delegate.callDelayed(this, this.FloorHandller, 1000); this.gameover = false; this.endlevel = false; this.gameOverSec = 60; this.gameOverMin = 1; this.camera.centerStage(this.rob[1]); utils.Delegate.callDelayed(this, this.timerCouniting, 1000); if (this.LevelNum == 1) { this.helpTips[1].showPopUp(); this.currentPopUp = 1; } }; v2.update = function () { if (!this.pause) { this.camera.__set__follow({'x': _global.stage.bgMC._xmouse, 'y': _global.stage.bgMC._ymouse}); this.camera.update(); this.background.drawCameraView(this.camBMP); this.mcUpgrader(); this.MoveCharacters(); this.levelState(); if (this.callpolice && !this.policeIsHere) { this.policeTimer += 40; if (this.policeTimer > 40000) { this.police(); this.callpolice = false; this.policeTimer = 0; } } } else { this.Pause(); } }; v2.updateMC = function (mc) { var v5 = this.translateCameraToStage(mc.x, mc.y); var v6 = utils.MathUtils.getDistance(mc.x, mc.y, this.camera.x, this.camera.y); if (!mc.clip && v6 <= 500) { if (!mc.depth) { mc.depth = this.depth.getDepth(mc); } if (mc.linkID == 'Robber') { if (mc.Health > 0) { if (!mc.getout) { mc.clip = _global.stage.attachMovie(mc.linkID, utils.StringUtils.getUniqueName(), mc.depth, {'_x': v5.x, '_y': v5.y, '_rotation': mc.rot, '_xscale': mc.xscale, '_yscale': mc.yscale}); mc.clip.attachMovie(mc.selection, mc.selection, 100); if (mc.Selected) { mc.clip['player' + this.selrobID].gotoAndStop('selected'); } else { mc.clip['player' + this.selrobID].gotoAndStop('deselected'); } mc.clip.body.gotoAndStop(mc.animation); } else {} } } else { if (mc instanceof mcs.Door && mc.getState() > 0 && mc.opened && mc.linkID != 'safe') { mc.clip = _global.stage.attachMovie(mc.linkID, utils.StringUtils.getUniqueName(), mc.depth, {'_x': v5.x, '_y': v5.y, '_rotation': mc.rot, '_xscale': mc.xscale, '_yscale': mc.yscale}); mc.clip.gotoAndStop('opened'); if (mc.getState() == 2) { mc.clip.swapDepths(this.depth.explosionDepth - 10); var v8 = mc.clip.attachMovie('explosive', utils.StringUtils.getUniqueName(), this.depth.explosionDepth, {'_x': 0, '_y': 0}); v8.gotoAndStop('exploded'); } } else { if (mc instanceof mcs.Laser && mc.Type == 1 && mc.Disable) { } else { if (mc instanceof mcs.Laser && mc.Type == 2 && mc.destroyed) { } else { if (mc instanceof mcs.Gas || mc instanceof mcs.EMP) { if (!mc.exploded) { mc.clip = _global.stage.attachMovie(mc.linkID, utils.StringUtils.getUniqueName(), mc.depth, {'_x': v5.x, '_y': v5.y, '_rotation': mc.rot, '_xscale': mc.xscale, '_yscale': mc.yscale}); mc.clip.gotoAndStop(mc.side); } } else { if (mc instanceof mcs.Storm) { if (!mc.disabled) { mc.clip = _global.stage.attachMovie(mc.linkID, utils.StringUtils.getUniqueName(), mc.depth, {'_x': v5.x, '_y': v5.y, '_rotation': mc.rot, '_xscale': mc.xscale, '_yscale': mc.yscale}); } } else { if (mc instanceof mcs.HelpHints) { if (mc.shown == 1) { mc.clip = _global.stage.attachMovie(mc.linkID, utils.StringUtils.getUniqueName(), mc.depth, {'_x': v5.x, '_y': v5.y, '_rotation': mc.rot, '_xscale': mc.xscale, '_yscale': mc.yscale}); mc.clip.popUP._alpha = 80; } } else { mc.clip = _global.stage.attachMovie(mc.linkID, utils.StringUtils.getUniqueName(), mc.depth, {'_x': v5.x, '_y': v5.y, '_rotation': mc.rot, '_xscale': mc.xscale, '_yscale': mc.yscale}); if (mc.linkID == 'safe') { mc.clip._visible = false; } if (mc instanceof mcs.Door) { if (this.game['node' + mc.cellx + '_' + mc.celly].char == 2) { trace('-------------------------------------'); if (mc.getState() < 2 && !mc.opened) { mc.clip.gotoAndStop('opened'); mc.opened = true; var v4 = 1; while (v4 <= this.game.numOfguards) { if (this.guard[v4].cellx == mc.cellx && this.guard[v4].celly == mc.celly) { this.guard[v4].doorState = mc.getState(); break; } ++v4; } mc.setState(1); } } } if (mc instanceof mcs.ControlBoxExtra || mc instanceof mcs.ControlBox || mc instanceof mcs.AlarmButton || mc instanceof mcs.Bomb || mc instanceof mcs.DoorBomb || mc instanceof mcs.SafeDoor || mc instanceof mcs.Elevator) { mc.clip.gotoAndStop(mc.state); } if (mc.linkID == 'tiefloor' || mc.linkID == 'LaserBlue') { if (!mc.visible) { mc.clip._visible = false; } } if (mc instanceof mcs.Guard) { if (this.game['node' + mc.cellx + '_' + mc.celly].isDoor) { var v9 = this['door' + mc.cellx + '_' + mc.celly]; if (v9.clip) { mc.MoveThroughDefaultRoute(); } } if (mc.state == 4) { mc.clip.body.gotoAndStop('die'); mc.clip.body.die.gotoAndStop('dead'); } else { if (mc.Health > 0) { mc.clip.hitSpot.onRollOver = function () { if (!_global.path.game.minigameStarted) { if (_global.mouse.frame != 'aim') { _global.mouse.frame = 'aim'; trace('_global.mouse.frame ' + _global.mouse.frame); _global.mouse.clip.gotoAndStop(_global.mouse.frame); _global.mouse.hide(); } } }; mc.clip.hitSpot.onRollOut = function () { if (!_global.path.game.minigameStarted) { if (_global.mouse.frame != 'in') { _global.mouse.frame = 'in'; _global.mouse.clip.gotoAndStop(_global.mouse.frame); _global.mouse.hide(); } } }; mc.clip.hitSpot.onReleaseOutside = function () { if (!_global.path.game.minigameStarted) { if (_global.mouse.frame != 'in') { _global.mouse.frame = 'in'; _global.mouse.clip.gotoAndStop(_global.mouse.frame); _global.mouse.hide(); } } }; } } } if (mc instanceof mcs.Cam && mc._Disabled) { mc.clip.camera_view_mc._visible = false; mc.clip.stop(); } } } } } } } } if (mc instanceof mcs.Cam || mc instanceof mcs.Exitlight) { mc.clip.cacheAsBitmap = false; } else { mc.clip.cacheAsBitmap = true; } } if (mc.clip && v6 > 500) { mc.clip.removeMovieClip(); mc.clip = undefined; } if (mc.clip) { var v7 = this.translateCameraToStage(mc.x, mc.y); mc.clip._x = int(v7.x); mc.clip._y = int(v7.y); } }; v2.getDoor = function (cellx, celly) { var v2 = 0; while (v2 < this.doorArray.length) { if (this.doorArray[v2].cellx == cellx && this.doorArray[v2].celly == celly) { return this.doorArray[v2]; } ++v2; } }; v2.translateMouseClick = function () { var v3 = new Object(); v3.x = this.camera.left + _global.stage._xmouse - _global.stage.bgMC._x; v3.y = this.camera.top + _global.stage._ymouse - _global.stage.bgMC._y; return v3; }; v2.translateStageToCamera = function (x, y) { var v3 = new Object(); v3.x = this.camera.left + x - _global.stage.bgMC._x; v3.y = this.camera.top + y - _global.stage.bgMC._y; return v3; }; v2.translateCameraToStage = function (x, y) { var v3 = new Object(); v3.x = x + _global.stage.bgMC._x - this.camera.left; v3.y = y + _global.stage.bgMC._y - this.camera.top; return v3; }; v2.mcUpgrader = function () { var v2 = 0; while (v2 <= this.maxNumOfClips) { if (this.doorArray[v2]) { this.updateMC(this.doorArray[v2]); } if (this.laser[v2]) { this.updateMC(this.laser[v2]); } if (this.floor[v2]) { this.updateMC(this.floor[v2]); } if (this.cam[v2]) { this.updateMC(this.cam[v2]); } if (this.alarmButton[v2]) { this.updateMC(this.alarmButton[v2]); } if (this.rob[v2]) { this.updateMC(this.rob[v2]); } if (this.guard[v2]) { this.updateMC(this.guard[v2]); } if (this.unlockingFloor[v2]) { this.updateMC(this.unlockingFloor[v2]); } if (this.guard[v2]) { this.updateMC(this.guard[v2]); } if (this.Bombs[v2]) { this.updateMC(this.Bombs[v2]); } if (this.Emps[v2]) { this.updateMC(this.Emps[v2]); } if (this.GasAr[v2]) { this.updateMC(this.GasAr[v2]); } if (this.doorBombs[v2]) { this.updateMC(this.doorBombs[v2]); } if (this.controlBox[v2]) { this.updateMC(this.controlBox[v2]); } if (this.helpTips[v2] && v2 != 4 && v2 != 6) { this.updateMC(this.helpTips[v2]); } ++v2; } if (this.safeDoor) { this.updateMC(this.safeDoor); } if (this.exitlight) { this.updateMC(this.exitlight); } if (this.storm) { this.updateMC(this.storm); } if (this.elevator) { this.updateMC(this.elevator); } if (this.popUp) { this.updateMC(this.popUp); } }; v2.MoveCharacters = function () { var v3 = this.game.numOfguards; if (v3 < this.game.numOfrobs) { v3 = this.game.numOfrobs; } var v2 = 1; while (v2 <= v3) { if (this.guard[v2].Health > 0) { if (this.guard[v2].state == 0) { this.guard[v2].standingGuard(); } else { if (this.guard[v2].state == 1) { this.guard[v2].MoveThroughDefaultRoute(); } else { if (this.guard[v2].state == 2) { this.guard[v2].chaseRobber(); } } } } if (this.rob[v2].Health > 0) { this.rob[v2].moveRobber(); } else { if (!this.rob[v2].destroyed) { this.rob[v2].destroyed = true; utils.Delegate.callDelayed(this.rob[v2], this.rob[v2].destroyObject, 1000); } } ++v2; } }; v2.LaserHandller = function () { if (_global.GAME.Level == 13) { if (!this.traps.LDisable) { this.traps.enableLasersBlue3(); } if (!this.traps.L1Disable) { this.traps.enableLasersBlue1(); } if (!this.traps.L2Disable) { this.traps.enableLasersBlue2(); } } else { this.traps.enableLasersBlue(); } if (_global.GAME.Level == this.LevelNum) { utils.Delegate.callDelayed(this, this.LaserHandller, 500); } }; v2.FloorHandller = function () { if (_global.GAME.Level == 13) { if (!this.traps.FDisable) { this.traps.randomizeFloors2(); } if (!this.traps.F1Disable) { this.traps.randomizeFloors1(); } } else { this.traps.randomizeFloors(); } if (_global.GAME.Level == this.LevelNum) { utils.Delegate.callDelayed(this, this.FloorHandller, 1000); } }; v2.selectRobber = function (destpoint) { var v11 = this.translateStageToCamera(destpoint.x, destpoint.y); var v8 = Math.ceil(v11.x / this.game.spacing); var v7 = Math.ceil(v11.y / this.game.spacing); if (this.game['node' + v8 + '_' + v7].char == 1) { var v4 = 1; while (v4 <= this.game.numOfrobs) { var v3 = this.rob[v4]; if (v3.Health > 0) { var v6 = Math.ceil(v3.x / this.game.spacing); var v5 = Math.ceil(v3.y / this.game.spacing); if (v6 == v8 && v5 == v7) { if (this.selrobID != v4) { this.rob[this.selrobID].Selected = false; this.rob[this.selrobID].clip['player' + this.selrobID].gotoAndStop('deselected'); _global.stage.levelch_mc['rob' + this.selrobID].character_bck.gotoAndStop('deselected'); this.selrobID = v4; v3.Selected = true; v3.clip['player' + this.selrobID].gotoAndStop('selected'); _global.stage.levelch_mc['rob' + v4].character_bck.gotoAndStop('selected'); if (this.LevelNum == 1) { if (this.currentPopUp == 12) { this.helpTips[12].dettachPopUp(); this.helpTips[12].shown = 2; } if (this.currentPopUp == 1) { this.helpTips[1].dettachPopUp(); this.helpTips[1].shown = 2; this.helpTips[2].showPopUp(); this.currentPopUp = 2; } } break; } } } ++v4; } } var v9 = true; if (this.safeDoor) { if (v8 >= this.safeDoor.safeDoorx1 && v8 <= this.safeDoor.safeDoorx2 && v7 >= this.safeDoor.safeDoory1 && v7 <= this.safeDoor.safeDoory2 && !this.safeDoorOpened) { v9 = false; } } v4 = 1; while (v4 <= this.game.numOfrobs) { v3 = this.rob[v4]; if (v3.Selected && v9 && !v3.inShootingDelay) { v3.doingAction = false; v3.Walk(destpoint); break; } ++v4; } }; v2.shooting = function (x, y) { this.MovementPermision = false; var v4 = 1; while (v4 <= this.game.numOfguards) { var v2 = this.guard[v4]; if (v2.clip && v2.clip.hitSpot.hitTest(x, y, true) && v2.Health > 0) { var v3 = this.rob[this.selrobID]; if (v3.Selected && !v3.isWall(v2) && v3.canShoot(v2)) { v3.canMove = false; v3.doingAction = false; v3.Shoot(v2, x, y); break; } } ++v4; } }; v2.doAction = function (x, y) { var v13 = this.translateStageToCamera(x, y); var v9 = Math.ceil(v13.x / this.game.spacing); var v10 = Math.ceil(v13.y / this.game.spacing); this.MovementPermision = true; if (this.game['node' + v9 + '_' + v10].type == 3) { if (!this['door' + v9 + '_' + v10].isOpening) { var v6 = 1; while (v6 <= this.game.numOfrobs) { var v4 = this.rob[v6]; if (v4.Selected && v4.Health > 0) { v4.ApplyItem = true; v4.useItem(v9, v10); } ++v6; } } } else { var v5 = 1; while (v5 <= this.controlBox.length) { if (this.controlBox[v5].clip.hitTest(x, y, true) && this.rob[this.selrobID].Health > 0) { trace('control box disabling ...'); this.rob[this.selrobID].useItem(v9, v10); } ++v5; } trace('this.alarmButton.length ' + this.alarmButton.length); var v6 = 0; while (v6 < this.alarmButton.length) { trace('in for alarm'); var v3 = this.alarmButton[v6 + 1]; var v4 = this.rob[this.selrobID]; var v7 = Math.sqrt((v3.x - v4.x) * (v3.x - v4.x) + (v3.y - v4.y) * (v3.y - v4.y)); var v8 = Math.atan2(v3.y - v4.y, v3.x - v4.x); if (v3.clip.hitTest(x, y, true) && this.alarmMeter.getAlarmLevel() == 3 && v7 < 35 && v4.Health > 0) { v4.rot = v8 * 180 / Math.PI; v4.setClip(); if (v4.Item.Type == 21) { v4.clip.body.gotoAndStop('press'); this.alarmMeter.setAlarmLevel(0, undefined); } else { if (v3.clip) { v3.clip.attachMovie('wrongtool_mc', 'wrongtool', 8300); v3.clip.wrongtool._rotation = -v3.clip._rotation; utils.Delegate.callDelayed(_global.GAME, _global.GAME.removeMC, 500, v3.clip.wrongtool); } _global.GAME.sound.stopSound('wrongTool'); _global.GAME.sound.playSound('wrongTool'); } } ++v6; } } }; v2.levelState = function () { var v9 = 0; var v3 = 1; while (v3 <= this.game.unlockingFloorsNum) { if (this.unlockingFloor[v3].clip) { var v6 = Math.ceil(this.unlockingFloor[v3].x / this.game.spacing); var v5 = Math.ceil(this.unlockingFloor[v3].y / this.game.spacing); var v4 = 1; while (v4 <= this.game.numOfrobs) { if (this.rob[v4].cellx == v6 && this.rob[v4].celly == v5) { ++v9; } ++v4; } } ++v3; } if (v9 == this.game.unlockingFloorsNum && !this.safeDoorOpened) { this.safeDoor.clip.play(2); this.safeDoor.state = 'opened'; if (this.LevelNum == 1 && _global.path.currentPopUp <= 21) { _global.path.currentPopUp = 22; _global.path.helpTips[22].dettachPrevisious(); _global.path.helpTips[22].showPopUp(); _global.path.helpTips[23].showPopUp(); } } if (_global.GAME.Level == 12) { var v10 = 0; v4 = 1; while (v4 <= this.game.numOfrobs) { var rob = this.rob[v4]; if (rob.clip.body_mc.hitTest(this.elevator.clip) && rob.Health > 0) { ++v10; } ++v4; } if (v10 == this.game.numOfLiverobs && !this.AllOnLift) { this.elevator.clip.play(10); this.elevator.state = 'closed'; this.AllOnLift = true; } } if (this.game.numOfLiverobs == 0 && !this.gameover) { this.gameover = true; utils.Delegate.callDelayed(this, this.gameOver, 2000); } if (this.game.exitDoor.getState() > 0 && this.allRobberOut() && !this.endlevel) { this.endlevel = true; if (this.game.SafeOpen) { if (_global.GAME.Level <= 3) { utils.Delegate.callDelayed(this, this.endLevel, 1000); } } else { _global.stage.stopTimer(); v3 = 0; while (v3 <= _global.GAME.invenrtory.length) { var v7 = _global.stage.toolButton.panelItem.items_mc.items_mc['item_bck' + v3].quantity_mc.itemNumber; var v8 = _global.stage.toolButton.panelItem.items_mc.items_mc['item_bck' + v3].item; if (v7 > 0) { _global.GAME.money += v8._Price; } ++v3; } utils.Delegate.callDelayed(_global.GAME, _global.GAME.levelNotFinished, 1000); } } }; v2.police = function () { if (this == _global.path) { if (this.alarmMeter.getAlarmLevel() == 3) { trace('Police is here ... '); this.config.police(); this.policeIsHere = true; _global.stage.attachMovie('safeTimer_mc', 'safeTimer_mc', this.depth.interfaceDepth + 100, {'_x': 605, '_y': 18}); this.gameOverClock(); this.gameOverSec = 60; this.gameOverMin = 1; } } }; v2.callPolice = function () { this.callpolice = true; }; v2.quitPolice = function () { this.callpolice = false; this.policeTimer = 0; }; v2.Pause = function () { var v3 = this.game.numOfguards; if (v3 < this.game.numOfrobs) { v3 = this.game.numOfrobs; } var v2 = 1; while (v2 <= v3) { if (this.guard[v2].Health > 0) { this.guard[v2].clip.body.gotoAndStop('idle'); this.guard[v2].animation = 'idle'; } if (this.rob[v2].Health > 0) { this.rob[v2].clip.body.gotoAndStop('idle'); } ++v2; } }; v2.selectItem = function (item, movie_mc) { if (this.selrobID != 0) { var v4; var v3 = this.rob[this.selrobID]; if (v3.Health > 0) { if (Number(movie_mc.quantity_mc.itemNumber) > 0 && v3.Item == undefined) { var v9; v3.Item = item; v3.ItemMovie = movie_mc; v4 = _global.stage.levelch_mc['rob' + this.selrobID].item_mc.attachMovie(item.linkID, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); v4.stop(); v4._xscale = 60; v4._yscale = 60; movie_mc.quantity_mc.itemNumber = Number(movie_mc.quantity_mc.itemNumber) - 1; _global.stage.toolButton.gotoAndStop(1); } else { v3.doingAction = false; if (Number(movie_mc.quantity_mc.itemNumber) > 0 && v3.Item.Type != item.Name.Type) { v3.Item = item; v4 = _global.stage.levelch_mc['rob' + this.selrobID].item_mc.attachMovie(item.linkID, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); v4.stop(); v4._xscale = 60; v4._yscale = 60; movie_mc.quantity_mc.itemNumber = Number(movie_mc.quantity_mc.itemNumber) - 1; v3.ItemMovie.quantity_mc.itemNumber = Number(v3.ItemMovie.quantity_mc.itemNumber) + 1; v3.ItemMovie = movie_mc; _global.stage.toolButton.gotoAndStop(1); } } if (_global.path.LevelNum == 1 && _global.path.currentPopUp == 4) { _global.path.helpTips[4].dettachPopUp(); _global.path.helpTips[4].shown = 2; _global.path.currentPopUp = 5; _global.path.helpTips[5].shown = 0; _global.path.helpTips[5].showPopUp(); } } } }; v2.allRobberOut = function () { var v4 = 0; var v2 = 1; while (v2 <= this.game.numOfrobs) { var v3 = this.rob[v2]; if (v3.Health > 0 && !v3.getout) { ++v4; break; } ++v2; } if (v4 == 0) { return true; } else { return false; } }; v2.endDemo = function () { trace('Congraduation !!! - End Demo'); _global.stage.stopTimer(); if (_global.GAME.mode != 'endDemo') { delete utils.Delegate; _global.GAME.mode = 'endDemo'; _global.GAME.Play(); stopAllSounds(); } }; v2.endLevel = function () { trace('Congraduation !!! - End Level'); _global.stage.stopTimer(); if (_global.GAME.mode != 'finishLevel') { _global.GAME.safeMoney = this.treasure; var v3 = this.hour * 3600 + this.min * 60 + this.sec; var v4 = 0.2 + Number(_global.GAME.Level / 5); trace('playtime ' + v3); if (v3 < 2 * this.bonusTime) { _global.GAME.timeBonus = Math.floor(this.treasure * v4 * (v3 - (this.bonusTime + 360)) / -360); } else { _global.GAME.timeBonus = 0; } delete utils.Delegate; _global.GAME.DeathRobs = this.game.numOfrobs - this.game.numOfExitedrobs; _global.GAME.mode = 'finishLevel'; _global.GAME.Play(); stopAllSounds(); } }; v2.gameOver = function () { if (this == _global.path) { _global.stage.stopTimer(); delete utils.Delegate; _global.stage.stopTimer(); trace('You have no players - Game Over'); if (_global.GAME.mode != 'gameover') { _global.GAME.mode = 'gameover'; _global.GAME.Play(); stopAllSounds(); } } }; v2.endGame = function () { _global.stage.stopTimer(); trace('Congraduation !!! - End Game'); if (_global.GAME.mode != 'endgame') { _global.GAME.mode = 'endgame'; _global.GAME.Play(); stopAllSounds(); } }; v2.timerCouniting = function () { if (_global.GAME.Level == this.LevelNum) { if (!this.pause) { var v3 = '00'; var v4 = '00'; var v5 = '00'; ++this.sec; if (this.sec <= 9) { v3 = '0' + this.sec.toString(); } else { if (this.sec < 60) { v3 = this.sec.toString(); } } if (this.sec == 60) { this.sec = 0; v3 = '00'; ++this.min; } if (this.min <= 9) { v4 = '0' + this.min.toString(); } else { if (this.min < 60) { v4 = this.min.toString(); } } if (this.min == 60) { this.min = 0; v4 = '00'; ++this.hour; } if (this.hour <= 9) { v5 = '0' + this.hour.toString(); } else { v5 = this.hour.toString(); } _global.GAME.interFace.OverAlltimer.hour.text = v5; _global.GAME.interFace.OverAlltimer.min.text = v4; _global.GAME.interFace.OverAlltimer.sec.text = v3; } utils.Delegate.callDelayed(this, this.timerCouniting, 1000); } }; v2.gameOverClock = function () { if (_global.GAME.Level == this.LevelNum) { if (!this.pause) { var v3 = '00'; var v4 = '02'; --this.gameOverSec; if (this.gameOverSec <= 9) { v3 = '0' + this.gameOverSec.toString(); } else { v3 = this.gameOverSec.toString(); } v4 = '0' + this.gameOverMin.toString(); if (this.gameOverSec == 0) { this.gameOverSec = 60; --this.gameOverMin; } _global.stage.safeTimer_mc.hour.text = '00'; _global.stage.safeTimer_mc.min.text = v4; _global.stage.safeTimer_mc.sec.text = v3; } if (this.gameOverMin == -1) { if (this.game.numOfExitedrobs > 0) { this.endLevel(); } else { this.gameOver(); } } else { utils.Delegate.callDelayed(this, this.gameOverClock, 1000); } } }; ASSetPropFlags(br.Level.prototype, null, 1); } #endinitclip } movieClip 6279 __Packages.isioux.display.BackGround { #initclip if (!_global.isioux) { _global.isioux = new Object(); } if (!_global.isioux.display) { _global.isioux.display = new Object(); } if (!_global.isioux.display.BackGround) { var v1 = function (imageLinkId, camera) { this._linkId = imageLinkId; this._camera = camera; this.init(); }; isioux.display.BackGround = v1; var v2 = v1.prototype; v2.init = function () { this._bmp = flash.display.BitmapData.loadBitmap(this._linkId); }; v2.__get__width = function () { return this._bmp.width; }; v2.__get__height = function () { return this._bmp.height; }; v2.drawCameraView = function (destination) { var v2 = new flash.geom.Rectangle(this._camera.left, this._camera.top, this._camera.right - this._camera.left, this._camera.bottom - this._camera.top); destination.copyPixels(this._bmp, v2, new flash.geom.Point(0, 0), null, null, true); }; v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(isioux.display.BackGround.prototype, null, 1); } #endinitclip } movieClip 6280 __Packages.isioux.display.Camera { #initclip if (!_global.isioux) { _global.isioux = new Object(); } if (!_global.isioux.display) { _global.isioux.display = new Object(); } if (!_global.isioux.display.Camera) { var v1 = function () { super(); this.init(); }; isioux.display.Camera = v1; isioux.display.Camera extends MovieClip; var v2 = v1.prototype; v2.init = function () {}; v2.__get__follow = function () { return this._follow; }; v2.__set__follow = function (o) { if (o == undefined) { return undefined; } this._follow = o; return this.__get__follow(); }; v2.setSize = function (w, h) { this.width = w; this.height = h; this.x = this.width / 2; this.y = this.height / 2; this.left = this.x - this.width / 2; this.right = this.x + this.width / 2; this.top = this.y - this.height / 2; this.bottom = this.y + this.height / 2; this.szero = 50; this.swidth = this.width - this.szero; this.sheight = this.height - this.szero; }; v2.setBounds = function (left, right, top, bottom) { this.xmin = left + this.width / 2; if (right < this.width) { this.xmax = this.width / 2; } else { this.xmax = right - this.width / 2; } this.ymin = top + this.height / 2; this.ymax = bottom - this.height / 2; }; v2.update = function () { if (this._follow == undefined) { return undefined; } if ((this.__get__follow()).x < this.szero || (this.__get__follow()).y < this.szero || (this.__get__follow()).x > this.swidth || (this.__get__follow()).y > this.sheight) { this.isScrolling = true; var v3 = this.x; var v2 = this.y; this.xprev = this.x; this.yprev = this.y; if ((this.__get__follow()).x < this.szero && (this.__get__follow()).y < this.szero) { v3 -= this.speed; v2 -= this.speed; } else { if ((this.__get__follow()).x > this.swidth && (this.__get__follow()).y > this.sheight + 120) { v3 += this.speed; v2 += this.speed; } else { if ((this.__get__follow()).x < this.szero && (this.__get__follow()).y > this.sheight + 120) { v3 -= this.speed; v2 += this.speed; } else { if ((this.__get__follow()).x > this.swidth && (this.__get__follow()).y < this.szero) { v3 += this.speed; v2 -= this.speed; } else { if ((this.__get__follow()).x < this.szero) { v3 -= this.speed; } else { if ((this.__get__follow()).x > this.swidth) { v3 += this.speed; } else { if ((this.__get__follow()).y < this.szero) { v2 -= this.speed; } else { if ((this.__get__follow()).y > this.sheight + 120) { v2 += this.speed; } } } } } } } } if (v3 < this.xmin) { this.x = this.xmin; } else { if (v3 > this.xmax) { this.x = this.xmax; } else { this.x = v3; } } if (v2 < this.ymin) { this.y = this.ymin; } else { if (v2 > this.ymax) { this.y = this.ymax; } else { this.y = v2; } } if (this.x != this.xprev || this.y != this.yprev) { utils.Delegate.callDelayed(this, this.increaseSpeed, 40); } else { this.speed = 40; } this.left = this.x - this.width / 2; this.right = this.x + this.width / 2; this.top = this.y - this.height / 2; this.bottom = this.y + this.height / 2; } else { this.isScrolling = false; } }; v2.increaseSpeed = function () { this.speed += 5; }; v2.centerStage = function (temp_mc) { var v3 = temp_mc.x; var v2 = temp_mc.y; var v4 = this.width / 2; var v5 = this.height / 2; var v7 = this.xmax + v4; var v6 = this.ymax + v5; this.isScrolling = true; if (v3 > this.right - 10 || v3 < this.left + 10 || v2 > this.bottom - 10 || v2 < this.top + 10) { if (v3 >= v4 && v7 - v3 >= v4) { this.x = v3; } else { if (v3 > v4) { this.x = v7 - v4; } else { if (v7 - v3 > v4) { this.x = v4; } } } if (v2 >= v5 && v6 - v2 >= v5) { this.y = v2; } else { if (v2 > v5) { this.y = v6 - v5; } else { if (v6 - v2 > v5) { this.y = v5; } } } this.left = this.x - this.width / 2; this.right = this.x + this.width / 2; this.top = this.y - this.height / 2; this.bottom = this.y + this.height / 2; } }; v2.speed = 40; v2.addProperty('follow', v2.__get__follow, v2.__set__follow); ASSetPropFlags(isioux.display.Camera.prototype, null, 1); } #endinitclip } movieClip 6281 __Packages.conf.Level1Conf { #initclip if (!_global.conf) { _global.conf = new Object(); } if (!_global.conf.Level1Conf) { var v1 = function () { this.init(); }; conf.Level1Conf = v1; var v2 = v1.prototype; v2.init = function () { _global.path.astar = new astar.Astar(); _global.path.astar.initialize(); _global.path.game = new Object(); _global.path.game.spacing = 40; _global.path.game.deadDepth = 900; _global.path.game.numOfrobs = 0; _global.path.game.numOfguards = 0; _global.path.game.numOfRooms = 11; _global.path.game.numOfLiveGuards = _global.path.game.numOfguards; _global.path.game.numOfLiverobs = _global.path.game.numOfrobs; _global.path.game.numOfExitedrobs = 0; _global.path.game.controlBoxes = 1; _global.path.game.maxTrapsOfType = 3; _global.path.maxNumOfClips = 26; _global.path.game.SafeOpen = false; _global.path.game.minigameStarted = false; _global.path.game.unlockingFloorsNum = 1; _global.path.game.NumOfFogs = 11; _global.path.treasure = 0; _global.path.moneyValue = 3500; _global.path.goldValue = 8000; _global.path.Time = undefined; _global.path.conditionType = 1; _global.path.moneyTaken = 0; _global.path.bonusTime = 160; _global.path.bgImage = 'Level1Img'; _global.path.alarmMeter = new meters.AlarmMeter(0); _global.path.soundMeter = new meters.SoundMeter(0, _global.path.alarmMeter); _global.path.monitoringRooms = [5]; _global.path.traps = new lat.traps.TrapsL1(); _global.path.guard = new Array(); _global.path.rob = new Array(); _global.path.Bombs = new Array(); _global.path.Emps = new Array(); _global.path.GasAr = new Array(); _global.path.doorBombs = new Array(); trace('_global.path.door7_14 ' + _global.path.door7_14); _global.path.doorArray = [new mcs.Door('safe', 114, 69, 0, 82, 49), new mcs.Door('safe', 152, 69, 0, 82, 49), new mcs.Door('safe', 192, 69, 0, 82, 49), new mcs.Door('metal', 940, 102, 0, 100, 100), new mcs.Door('wooden', 459, 140, 180, 100, 100), new mcs.Door('wooden', 699, 140, 180, 100, 100), new mcs.Door('metal', 260, 182, 0, 100, 100), new mcs.Door('wooden', 380, 259, 90, 100, 100), new mcs.Door('wooden', 780, 259, 90, 100, 100), new mcs.Door('wooden', 259, 340, 180, 100, 100), new mcs.Door('metal', 700, 342, 0, 100, 100), new mcs.Door('metal', 460, 382, 0, 100, 100), new mcs.Door('metal', 858, 420, 90, 100, 100), new mcs.Door('wooden', 259, 540, 180, 100, 100), new mcs.Door('wooden', 699, 540, 180, 100, 100)]; _global.path.laser = [undefined, new mcs.Laser('LaserRedShort', 237, 128, -90, 100, 159), new mcs.Laser('LaserBlue', 508, 279, 180, 100, 100), new mcs.Laser('LaserBlue', 666, 441, 0, 100, 100)]; _global.path.floor = [undefined]; if (!_global.stage.hasSafeItem) { _global.path.popUp = new mcs.PopUp('sefpopUP_mc', 180, 60, 0, 100, 100); } _global.path.cam = [undefined, new mcs.Cam('camRot', 367, 452, 180, 100, 100)]; _global.path.alarmButton = [undefined, new mcs.AlarmButton('alarmButton', 691, 91, 90, 100, 100, 660, 100)]; _global.path.unlockingFloor = [undefined, new mcs.UnlockingFloor('unlockingFloor', 140, 180, 0, 100, 100)]; _global.path.controlBox = [undefined, new mcs.ControlBox('controlbox', 34, 181, 180, 100, 100)]; if (!_global.GAME.isLoaded) { _global.path.helpTips = new Array(); _global.path.helpTips = [undefined, new mcs.HelpHints('popUp1', 125.9, 572.15, 0, 100, 100, 9500, 1, 10), new mcs.HelpHints('popUp2', 141.2, 529.15, 0, 100, 100, 9505, 1, 10), new mcs.HelpHints('popUp3', 260.25, 525.55, 0, 100, 100, 9510, 1, 100), new mcs.HelpHints('popUp4', 729.05, 490.45, 0, 100, 100, 12160, 1, 100), new mcs.HelpHints('popUp5', 259, 535, 0, 100, 100, 9520, 1, 100), new mcs.HelpHints('popUp6', 270.85, 490, 0, 100, 100, 12270, 0, 10), new mcs.HelpHints('popUp7', 494.95, 542.2000000000001, 0, 100, 100, 9530, 1, 100), new mcs.HelpHints('popUp8', 698.85, 537.65, 0, 100, 100, 9535, 1, 100), new mcs.HelpHints('popUp9', 866.9500000000001, 418.5, 0, 100, 100, 9540, 1, 100), new mcs.HelpHints('popUp10', 826.6, 357.65, 0, 100, 100, 9545, 1, 100), new mcs.HelpHints('popUp11', 831.6, 349.7, 0, 100, 100, 9550, 1, 100), new mcs.HelpHints('popUp12', 797.6, 367.05, 0, 100, 100, 9555, 1, 100), undefined, new mcs.HelpHints('popUp14', 519, 320.2, 0, 100, 100, 9560, 1, 100), new mcs.HelpHints('popUp15', 237.4, 430.85, 0, 100, 100, 9565, 1, 100), new mcs.HelpHints('popUp16', 556, 129, 0, 100, 100, 9570, 1, 100), new mcs.HelpHints('popUp17', 520.05, 340, 0, 100, 100, 9575, 1, 100), new mcs.HelpHints('popUp18', 138, 331.65, 0, 100, 100, 9580, 1, 100), new mcs.HelpHints('popUp19', 563.6, 125, 0, 100, 100, 9585, 1, 100), new mcs.HelpHints('popUp20', 261.05, 176.65, 0, 100, 100, 9590, 1, 100), new mcs.HelpHints('popUp21', 139, 178.65, 0, 100, 100, 9595, 1, 100), new mcs.HelpHints('popUp22', 139, 137.85, 0, 100, 100, 9600, 1, 10), new mcs.HelpHints('popUp23', 22.2, 179.7, 0, 100, 100, 9605, 1, 10), new mcs.HelpHints('popUp24', 146.85, 60, 0, 100, 100, 9610, 1, 100), new mcs.HelpHints('popUp25', 334.6, 116, 0, 100, 100, 9615, 1, 100), new mcs.HelpHints('popUp26', 942.9, 94.65000000000001, 0, 100, 100, 9620, 1, 100)]; _global.stage.attachMovie('helpButton', 'helpButton', 12230, {'_x': 25, '_y': 425}); } _global.path.exitlight = new mcs.Exitlight('exitlight', 940, 90, 90, 100, 200); _global.path.safeDoor = new mcs.SafeDoor('safeDoor', 198, 43, 90, 100, 100); _global.path.safeDoor.safeDoorx1 = 1; _global.path.safeDoor.safeDoorx2 = 7; _global.path.safeDoor.safeDoory1 = 1; _global.path.safeDoor.safeDoory2 = 3; this.l = new lat.levels.Level1(); this.board = new XML(this.l.xml); this.buildXMLGrid(); }; v2.buildXMLGrid = function () { this.board = this.board.firstChild; var v4 = 1; var v11 = this.board.firstChild; while (v11 != null) { var v3 = 1; var v5 = v11.firstChild; while (v5 != null) { var v6 = 'node' + v3 + '_' + v4; var v9 = (v3 - 1) * _global.path.game.spacing; var v8 = (v4 - 1) * _global.path.game.spacing; var v21 = v5.attributes.type; var v13 = v5.attributes.room; var v22 = false; var v10; switch (v21) { case '1': v10 = 'walk'; break; case '2': v10 = 'obsticle'; _global.path.astar.nodes[v6].solid = true; break; case '3': v10 = 'door'; v22 = true; var v7 = v13.split(','); var v12 = v5.attributes.doorType; _global.path['door' + v3 + '_' + v4] = _global.path.getDoor(v3, v4); _global.path['door' + v3 + '_' + v4].setType(v12); _global.path['door' + v3 + '_' + v4].room = v7[0]; _global.path['door' + v3 + '_' + v4].room1 = v7[1]; } if (v22) { _global.path.game[v6] = {'x': v3, 'y': v4, 'xmid': v9 + _global.path.game.spacing / 2, 'ymid': v8 + _global.path.game.spacing / 2, 'name': v6, 'type': v21, 'room': storedv7[0], 'room1': storedv7[1], 'char': 0, 'isDoor': v22}; } else { _global.path.game[v6] = {'x': v3, 'y': v4, 'xmid': v9 + _global.path.game.spacing / 2, 'ymid': v8 + _global.path.game.spacing / 2, 'name': v6, 'type': v21, 'room': v13, 'char': 0, 'isDoor': v22}; } v5 = v5.nextSibling; ++v3; } v11 = v11.nextSibling; ++v4; } _global.path.game.rows = v4 - 1; _global.path.game.cols = v3 - 1; _global.path.astar.maxX = _global.path.game.rows; _global.path.astar.maxY = _global.path.game.cols; _global.path.game.exitDoor = _global.path.door24_3; this.initguards(); this.initrobs(); this.initLasers(); this.initCams(); trace('Level1Conf'); }; v2.initrobs = function () { _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 100, 580, -45, 'player1', _global.path.astar); ++_global.path.game.numOfLiverobs; var v2 = _global.GAME.selectedCharacters[1]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 140, 580, -45, 'player2', _global.path.astar); ++_global.path.game.numOfLiverobs; v2 = _global.GAME.selectedCharacters[2]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 180, 580, -45, 'player3', _global.path.astar); ++_global.path.game.numOfLiverobs; v2 = _global.GAME.selectedCharacters[3]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); }; v2.initguards = function () { _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, false, false, 10, {'x': 8, 'y': 4}, {'x': 22, 'y': 3}, {'x': 8, 'y': 4}, 300, 140, 0, _global.path.astar); ++_global.path.game.numOfLiveGuards; _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, true, false, 10, {'x': 4, 'y': 9}, {'x': 4, 'y': 9}, {'x': 4, 'y': 9}, 140, 340, -90, _global.path.astar); ++_global.path.game.numOfLiveGuards; }; v2.initCams = function () { _global.path.cam[1].Room = 6; }; v2.initLasers = function () { _global.path.laser[1].setParams(1, 1); _global.path.laser[2].setParams(2, 7); _global.path.laser[3].setParams(2, 7); }; v2.police = function () { _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('policeMan', 'policeman' + _global.path.game.numOfguards, true, true, 20, {'x': 22, 'y': 5}, {'x': 22, 'y': 5}, {'x': 22, 'y': 5}, 860, 180, 180, _global.path.astar); ++_global.path.game.numOfLiveGuards; }; ASSetPropFlags(conf.Level1Conf.prototype, null, 1); } #endinitclip } movieClip 6282 __Packages.astar.Astar { #initclip if (!_global.astar) { _global.astar = new Object(); } if (!_global.astar.Astar) { var v1 = function () {}; astar.Astar = v1; var v2 = v1.prototype; v2.initialize = function () { this.solidOb = {'solid': true, 'exists': true}; this.maxSearchTime = 3000; this.s = {}; this.g = {}; this.maxX = 0; this.maxY = 0; this.open = []; this.closed = []; this.nodes = {}; this.preventClipping = true; }; v2.findHeuristic = function (x, y) { var v3 = Math.abs(x - this.g.x); var v2 = Math.abs(y - this.g.y); var v5 = Math.min(v3, v2) * 1.41; var v4 = Math.max(v3, v2) - Math.min(v3, v2); return v5 + v4; }; v2.cost = function (who, newx, newy) { var v3 = 1; if (who.x - newx != 0 && who.y - newy != 0) { v3 = 1.41; if (this.preventClipping) { var v4 = (who.x - newx) / Math.abs(who.x - newx); var v5 = (who.y - newy) / Math.abs(who.y - newy); var v9 = who.x - v4; var v7 = who.y; var v12 = this.nodes['node' + v9 + '_' + v7]; var v8 = who.x; var v6 = who.y - v5; var v10 = this.nodes['node' + v8 + '_' + v6]; if (v12.solid || v10.solid) { v3 = 1000000; } } } return v3; }; v2.checkNode = function (newx, newy, whoName) { if (newx > 0 && newx <= this.maxX && newy > 0 && newy <= this.maxY) { var v7 = this.nodes[whoName]; var v4 = 'node' + newx + '_' + newy; var v8 = v7.g + this.cost(v7, newx, newy); if (v7.x == this.g.x && v7.y == this.g.y) { this.keepSearching = false; } if (!this.nodes[v4].exists) { this.addOpen(newx, newy, v8, whoName); } else { if (!this.nodes[v4].solid) { if (v8 < this.nodes[v4].g) { var v5 = this.nodes[v4]; v5.parent = whoName; v5.g = v8; v5.f = v5.h + v8; var v6 = v5.f; if (this.nodes[v4].where == 'open') { var v3 = 0; while (v3 < this.open.length) { if (this.open[v3].name == v4) { this.open.splice(v3, 1); } ++v3; } var v2 = 0; while (v2 < this.open.length) { if (v6 < this.open[v2].f) { this.open.splice(v2, 0, v5); this.nodes[v4] = this.open[v2]; break; } if (v2 == this.open.length - 1) { this.open.push(v5); this.nodes[v4] = this.open[v2 + 1]; break; } ++v2; } } if (this.nodes[v4].where == 'closed') { v3 = 0; while (v3 < this.closed.length) { if (this.closed[v3].name == v4) { this.closed.splice(v3, 1); } ++v3; } } } } } } }; v2.buildPath = function (name) { name = 'node' + this.g.x + '_' + this.g.y; var v2 = this.nodes[name].parent; this.path = []; while (v2 != null) { this.path.push([this.nodes[v2].x, this.nodes[v2].y]); v2 = this.nodes[v2].parent; } this.path.reverse(); this.path.shift(); this.path.push([this.g.x, this.g.y]); }; v2.expandNode = function (index) { var v6 = this.open[index]; var v3 = v6.x; var v2 = v6.y; var v4 = 'node' + v3 + '_' + v2; this.checkNode(v3 + 1, v2, v4); this.checkNode(v3 + 1, v2 - 1, v4); this.checkNode(v3, v2 - 1, v4); this.checkNode(v3 - 1, v2 - 1, v4); this.checkNode(v3 - 1, v2, v4); this.checkNode(v3 - 1, v2 + 1, v4); this.checkNode(v3, v2 + 1, v4); this.checkNode(v3 + 1, v2 + 1, v4); var v5 = this.open[index]; v5.where = 'closed'; this.open.splice(index, 1); this.closed.push(v5); if (this.closed.length > this.maxX * this.maxY) { this.finish = true; } if (!this.keepSearching) { this.buildPath(); } }; v2.addOpen = function (x, y, g, parent) { var v9 = this.findHeuristic(x, y); var v5 = g + v9; var v3 = 'node' + x + '_' + y; var v4 = {'x': x, 'y': y, 'g': g, 'h': v9, 'f': v5, 'name': v3, 'parent': parent, 'exists': true, 'where': 'open'}; if (parent == null) { this.open.push(v4); this.nodes[v3] = this.open[0]; } var v2 = 0; while (v2 < this.open.length) { if (v5 < this.open[v2].f) { this.open.splice(v2, 0, v4); this.nodes[v3] = this.open[v2]; break; } if (v2 == this.open.length - 1) { this.open.push(v4); this.nodes[v3] = this.open[v2 + 1]; break; } ++v2; } }; v2.search = function () { delete this.path; this.finish = false; this.now = getTimer(); this.addOpen(this.s.x, this.s.y, 0, null); this.keepSearching = true; while (this.keepSearching) { this.expandNode(0); if (this.finish) { this.keepSearching = false; } if (getTimer() - this.now > this.maxSearchTime) { trace('no solution'); this.keepSearching = false; } } this.initialize(); return this.path; }; v2.solidOb = {'solid': true, 'exists': true}; v2.maxSearchTime = 3000; v2.s = {}; v2.g = {}; v2.maxX = 0; v2.maxY = 0; v2.open = []; v2.closed = []; v2.nodes = {}; v2.preventClipping = false; v2.path = []; ASSetPropFlags(astar.Astar.prototype, null, 1); } #endinitclip } movieClip 6283 __Packages.meters.AlarmMeter { #initclip if (!_global.meters) { _global.meters = new Object(); } if (!_global.meters.AlarmMeter) { var v1 = function (alarmLevel) { super(); this._alarmLevel = alarmLevel; this.rootPath = _global.path; this.PopUpOn = false; this.clip = _global.stage.attachMovie('alarmmeter', 'alarmmeter', this.rootPath.depth.metersDepth++, {'_x': 70, '_y': 16, '_xscale': 50, '_yscale': 50}); this.clip.onRollOver = function () { this._alpha = 0; }; this.clip.onRollOut = function () { this._alpha = 100; }; }; meters.AlarmMeter = v1; meters.AlarmMeter extends MovieClipProps; var v2 = v1.prototype; v2.getAlarmLevel = function () { return this._alarmLevel; }; v2.setAlarmLevel = function (alarmLevel, producer) { if (alarmLevel == 3 && this._alarmLevel < alarmLevel) { _global.GAME.sound.playMusic('alarm'); this.rootPath.callPolice(); if (!this.PopUpOn) { trace('alarmPOPUP'); _global.stage.attachMovie('alarmPopUp', 'alarmPopUp', this.rootPath.depth.metersDepth++, {'_x': this.clip._x + 23, '_y': this.clip._y + 43}); utils.Delegate.callDelayed(this, this.removePopUp, 10000); this.PopUpOn = true; } var v3 = 0; while (v3 <= this.rootPath.alarmButton.length) { this.rootPath.alarmButton[v3 + 1].clip.gotoAndPlay('active'); this.rootPath.alarmButton[v3 + 1].state = 'active'; ++v3; } } this._alarmLevel = alarmLevel; this._producer = producer; this.React(); trace('alarmLevel ' + this._alarmLevel); }; v2.alertGuards = function (guards) { trace('alertguards'); this.alertedGuards = guards; }; v2.findNearestGuards = function () { function order(a, b) { var v2 = a.distance; var v1 = b.distance; if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } var v5 = new Array(); var v4 = 1; while (v4 <= this.rootPath.game.numOfguards) { var v2 = this.rootPath.guard[v4]; if (!v2._static && v2.Health > 0) { var v6 = Math.sqrt((v2.x - this._producer.x) * (v2.x - this._producer.x) + (v2.y - this._producer.y) * (v2.y - this._producer.y)); var v3 = new Object(); v3.distance = v6; v3.guard = v2; v5.push(v3); } ++v4; } v5.sort(order); v4 = 0; while (v4 < v5.length) { trace(v5[v4].distance); ++v4; } return v5; }; v2.React = function () { switch (this._alarmLevel) { case 0: var v4 = 1; while (v4 <= this.rootPath.game.numOfrobs) { var v5 = this.rootPath.rob[v4]; if (v5.Health > 0) { v5.detected = false; v5.spoted = false; } ++v4; } v4 = 0; while (v4 < this.rootPath.alarmButton.length) { this.rootPath.alarmButton[v4 + 1].clip.gotoAndStop('inactive'); this.rootPath.alarmButton[v4 + 1].state = 'inactive'; ++v4; } _global.GAME.sound.stopSound('alarm'); this.rootPath.quitPolice(); this.clip.gotoAndStop('level0'); this.removePopUp(); break; case 1: if (this.alertedGuards.length > 0) { var v7 = {'x': 0, 'y': 0}; v7.x = this._producer.x; v7.y = this._producer.y; trace('destPoint ' + v7.x + ' ' + v7.y); var v4 = 0; while (v4 < this.alertedGuards.length) { if (this.alertedGuards[v4].Health > 0) { trace('slusnav 1'); this.alertedGuards[v4]._static = false; utils.Delegate.callDelayed(this.alertedGuards[v4], this.alertedGuards[v4].Walk, this.alertedGuards[v4].astarDelay, v7); } ++v4; } this.clip.gotoAndStop('level1'); this.removePopUp(); } break; case 2: if (this.alertedGuards.length > 0) { var v7 = {'x': this._producer.x, 'y': this._producer.y}; var v4 = 0; while (v4 < this.alertedGuards.length) { trace(this.alertedGuards[v4].x); if (this.alertedGuards[v4].Health > 0) { if (v4 == 0) { trace('idam da vklucam alarm'); this.alertedGuards[v4].Walk(this.alertedGuards[v4].findNearestAlarmButton()); } else { this.alertedGuards[v4]._static = false; utils.Delegate.callDelayed(this.alertedGuards[v4], this.alertedGuards[v4].Walk, this.alertedGuards[v4].astarDelay, v7); } } ++v4; } this.clip.gotoAndStop('level2'); this.removePopUp(); } break; case 3: var v7 = {'x': this._producer.x, 'y': this._producer.y}; var v6 = this.findNearestGuards(); var v4 = 0; while (v4 < v6.length) { if (v4 < 2) { var v3 = v6[v4].guard; v3.Alertness = 3; utils.Delegate.callDelayed(v3, v3.Walk, v3.astarDelay, v7); } ++v4; } this.clip.gotoAndStop('level3'); break; case 4: } }; v2.removePopUp = function () { if (_global.stage.alarmPopUp) { _global.stage.alarmPopUp.removeMovieClip(); this.PopUpOn = false; } }; ASSetPropFlags(meters.AlarmMeter.prototype, null, 1); } #endinitclip } movieClip 6284 __Packages.meters.SoundMeter { #initclip if (!_global.meters) { _global.meters = new Object(); } if (!_global.meters.SoundMeter) { var v1 = function (soundLevel, alarmMeter) { super(); this._soundLevel = soundLevel; this._alarmMeter = alarmMeter; this._numOfGuardsHearing = 0; this.rootPath = _global.path; this.clip = _global.stage.attachMovie('soundmeter', 'soundmeter', this.rootPath.depth.metersDepth++, {'_x': 25, '_y': 16, '_xscale': 50, '_yscale': 50}); this.clip.onRollOver = function () { this._alpha = 0; }; this.clip.onRollOut = function () { this._alpha = 100; }; }; meters.SoundMeter = v1; meters.SoundMeter extends MovieClipProps; var v2 = v1.prototype; v2.getSoundLevel = function () { return this._soundLevel; }; v2.setSoundLevel = function (soundLevel, producer) { trace('soundlevel ' + soundLevel); this._soundLevel = soundLevel; this._producer = producer; this.triggerAlarm(); }; v2.triggerAlarm = function () { this._guardAlerted = new Array(); this._numOfGuardsHearing = 0; var v3 = 1; while (v3 <= this.rootPath.game.numOfguards) { var v2 = this.rootPath.guard[v3]; if (v2.Health > 0) { var v4; var v5 = Math.sqrt((v2.x - this._producer.x) * (v2.x - this._producer.x) + (v2.y - this._producer.y) * (v2.y - this._producer.y)); if (v2.room == this.rootPath.game['node' + Math.ceil(this._producer.x / this.rootPath.game.spacing) + '_' + Math.ceil(this._producer.y / this.rootPath.game.spacing)].room) { v4 = v2.HearingRadius; } else { v4 = v2.HearingRadius - 1; } if (v5 <= v4 + this._soundLevel) { if (v2.Alertness < 2) { v2.Alertness = 2; v2.state = 0; v2.clip.body.gotoAndStop('stand'); v2.animation = 'stand'; } this._guardAlerted[this._numOfGuardsHearing++] = v2; } } ++v3; } switch (this._numOfGuardsHearing) { case 0: this.clip.gotoAndStop('level0'); break; case 1: if (this._alarmMeter.getAlarmLevel() < 1) { this._alarmMeter.alertGuards(this._guardAlerted); this._alarmMeter.setAlarmLevel(1, this._producer); this.clip.gotoAndStop('level1'); } break; case 2: if (this._alarmMeter.getAlarmLevel() < 1) { this._alarmMeter.alertGuards(this._guardAlerted); this._alarmMeter.setAlarmLevel(1, this._producer); this.clip.gotoAndStop('level2'); } break; default: if (this._alarmMeter.getAlarmLevel() < 2) { this._alarmMeter.alertGuards(this._guardAlerted); this._alarmMeter.setAlarmLevel(2, this._producer); this.clip.gotoAndStop('level3'); } } }; v2.getNumOfGuardsHearing = function () { return this._numOfGuardsHearing; }; ASSetPropFlags(meters.SoundMeter.prototype, null, 1); } #endinitclip } movieClip 6285 __Packages.lat.traps.TrapsL1 { #initclip if (!_global.lat) { _global.lat = new Object(); } if (!_global.lat.traps) { _global.lat.traps = new Object(); } if (!_global.lat.traps.TrapsL1) { var v1 = function () { this.LasersBlue = 1; this.LasersRed = 1; }; lat.traps.TrapsL1 = v1; var v2 = v1.prototype; v2.enableLasersBlue = function () { if (this.LasersBlue == 1) { _global.path.laser[2].Disable = false; _global.path.laser[3].Disable = true; } if (this.LasersBlue == 3) { _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = false; } if (this.LasersBlue == 2 || this.LasersBlue == 4) { _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = true; } if (this.LasersBlue == 1) { this.LasersBlue = 2; } else { if (this.LasersBlue == 2) { this.LasersBlue = 3; } else { if (this.LasersBlue == 3) { this.LasersBlue = 4; } else { if (this.LasersBlue == 4) { this.LasersBlue = 1; } } } } }; v2.enableLasersRed = function () { if (this.LasersRed == 1) { _global.path.laser[1].Disable = true; } if (this.LasersRed == 3) { _global.path.laser[1].Disable = false; } if (this.LasersRed == 2 || this.LasersRed == 4) { _global.path.laser[1].Disable = true; } if (this.LasersRed == 1) { this.LasersRed = 2; } else { if (this.LasersRed == 2) { this.LasersRed = 3; } else { if (this.LasersRed == 3) { this.LasersRed = 4; } else { if (this.LasersRed == 4) { this.LasersRed = 1; } } } } }; v2.randomizeFloors = function () {}; v2.disableLasersRed = function () { _global.path.laser[1].Disable = true; }; v2.disableTraps = function () { this.Disabled = true; this.disableLasersRed(); }; v2.floorsDisabled = new Array(); v2.floorsEnabled = new Array(); v2.Disabled = false; ASSetPropFlags(lat.traps.TrapsL1.prototype, null, 1); } #endinitclip } movieClip 6286 __Packages.lat.levels.Level1 { #initclip if (!_global.lat) { _global.lat = new Object(); } if (!_global.lat.levels) { _global.lat.levels = new Object(); } if (!_global.lat.levels.Level1) { var v1 = function () {}; lat.levels.Level1 = v1; var v2 = v1.prototype; v2.xml = new String('<map><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="3" room="1,0" doorType="7" /><cell type="3" room="1,0" doorType="7" /><cell type="3" room="1,0" doorType="7" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="3" room="4,0" doorType="6" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="3" room="2,3" doorType="1" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="3" room="3,4" doorType="1" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="3" room="1,2" doorType="6" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="2,6" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="4,8" doorType="3" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="3" room="5,6" doorType="1" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="3" room="7,8" doorType="1" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="3" room="6,7" doorType="1" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="8,11" doorType="5" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="3" room="9,10" doorType="2" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="3" room="10,11" doorType="1" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row></map>'); ASSetPropFlags(lat.levels.Level1.prototype, null, 1); } #endinitclip } movieClip 6287 __Packages.conf.Level2Conf { #initclip if (!_global.conf) { _global.conf = new Object(); } if (!_global.conf.Level2Conf) { var v1 = function () { this.init(); }; conf.Level2Conf = v1; var v2 = v1.prototype; v2.init = function () { _global.path.astar = new astar.Astar(); _global.path.astar.initialize(); _global.path.game = new Object(); _global.path.game.spacing = 40; _global.path.game.deadDepth = 900; _global.path.game.numOfrobs = 0; _global.path.game.numOfguards = 0; _global.path.game.numOfRooms = 16; _global.path.game.numOfLiveGuards = _global.path.game.numOfguards; _global.path.game.numOfLiverobs = _global.path.game.numOfrobs; _global.path.game.numOfExitedrobs = 0; _global.path.game.controlBoxes = 1; _global.path.game.maxTrapsOfType = 7; _global.path.maxNumOfClips = 27; _global.path.game.SafeOpen = false; _global.path.game.minigameStarted = false; _global.path.game.unlockingFloorsNum = 0; _global.path.game.NumOfFogs = 16; _global.path.treasure = 0; _global.path.moneyValue = 3500; _global.path.goldValue = 8000; _global.path.Time = undefined; _global.path.conditionType = 1; _global.path.moneyTaken = 0; _global.path.bonusTime = 180; _global.path.bgImage = 'Level2Img'; _global.path.alarmMeter = new meters.AlarmMeter(0); _global.path.soundMeter = new meters.SoundMeter(0, _global.path.alarmMeter); _global.path.monitoringRooms = [9]; _global.path.traps = new lat.traps.TrapsL2(); _global.path.guard = new Array(); _global.path.rob = new Array(); _global.path.Bombs = new Array(); _global.path.Emps = new Array(); _global.path.GasAr = new Array(); _global.path.doorBombs = new Array(); _global.path.doorArray = [new mcs.Door('safe', 77.09999999999999, 73.55, 0, 82.8, 49.2), new mcs.Door('safe', 117.1, 73.55, 0, 82.8, 49.2), new mcs.Door('safe', 157.1, 73.55, 0, 82.8, 49.2), new mcs.Door('metal', 339.9, 101.85, 0, 100, 100), new mcs.Door('metal', 539.9, 101.85, 0, 100, 100), new mcs.Door('wooden', 820, 100.75, 180, 100, 100), new mcs.Door('metal', 939.9, 101.85, 0, 100, 100), new mcs.Door('metal', 621.9, 180.1, -90, 100, 100), new mcs.Door('wooden', 259.75, 219.9, -90, 100, 100), new mcs.Door('wooden', 459.75, 219.9, -90, 100, 100), new mcs.Door('wooden', 820, 220.75, 180, 100, 100), new mcs.Door('metal', 101.9, 260.1, -90, 100, 100), new mcs.Door('wooden', 899.75, 259.9, -90, 100, 100), new mcs.Door('wooden', 340, 300.75, 180, 100, 100), new mcs.Door('wooden', 540, 300.75, 180, 100, 100), new mcs.Door('wooden', 700, 300.75, 180, 100, 100), new mcs.Door('wooden', 180, 340.75, 180, 100, 100), new mcs.Door('wooden', 739.75, 379.9, -90, 100, 100), new mcs.Door('wooden', 820, 420.75, 180, 100, 100), new mcs.Door('metal', 101.9, 500.1, -90, 100, 100), new mcs.Door('metal', 261.9, 500.1, -90, 100, 100), new mcs.Door('wooden', 459.75, 499.9, -90, 100, 100), new mcs.Door('wooden', 180, 540.75, 180, 100, 100), new mcs.Door('metal', 539.9, 541.85, 0, 100, 100), new mcs.Door('wooden', 820, 540.4500000000001, 180, 100, 100), new mcs.Door('wooden', 380, 580.75, 180, 100, 100)]; _global.path.laser = [undefined, new mcs.Laser('LaserBlue', 680, 163, 0, 100, 79), new mcs.Laser('LaserBlue', 682, 35, 180, 100, 79), new mcs.Laser('LaserBlue', 757, 163, 0, 100, 80), new mcs.Laser('LaserBlue', 762, 35, 180, 100, 79), new mcs.Laser('LaserRedShort', 38, 150.65, 90, 100, 100), new mcs.Laser('LaserRedShort', 161, 165, -90, 100, 100), new mcs.Laser('LaserRedShort', 38, 230, 90, 100, 100)]; _global.path.floor = [undefined]; if (!_global.stage.hasSafeItem) { _global.path.popUp = new mcs.PopUp('sefpopUP_mc', 180, 60, 0, 100, 100); } _global.path.cam = [undefined, new mcs.Cam('camRot', 331.8, 323.05, 90, 100, 100)]; _global.path.alarmButton = [undefined, new mcs.AlarmButton('alarmButton', 333.1, 508.3, 0, 100, 100, 340, 540)]; _global.path.unlockingFloor = [undefined, new mcs.UnlockingFloor('unlockingFloor', 1460, 820, 0, 100, 100), new mcs.UnlockingFloor('unlockingFloor', 1460, 980, 0, 100, 100)]; _global.path.controlBox = [undefined, new mcs.ControlBox('controlbox', 100.65, 607.5, 90, 100, 100)]; _global.path.exitlight = new mcs.Exitlight('exitlight', 940, 90, 90, 100, 200); _global.path.safeDoor = undefined; this.l = new lat.levels.Level2(); this.board = new XML(this.l.xml); this.buildXMLGrid(); }; v2.buildXMLGrid = function () { this.board = this.board.firstChild; var v4 = 1; var v11 = this.board.firstChild; while (v11 != null) { var v3 = 1; var v5 = v11.firstChild; while (v5 != null) { var v6 = 'node' + v3 + '_' + v4; var v9 = (v3 - 1) * _global.path.game.spacing; var v8 = (v4 - 1) * _global.path.game.spacing; var v21 = v5.attributes.type; var v13 = v5.attributes.room; var v22 = false; var v10; switch (v21) { case '1': v10 = 'walk'; break; case '2': v10 = 'obsticle'; _global.path.astar.nodes[v6].solid = true; break; case '3': v10 = 'door'; v22 = true; var v7 = v13.split(','); var v12 = v5.attributes.doorType; _global.path['door' + v3 + '_' + v4] = _global.path.getDoor(v3, v4); _global.path['door' + v3 + '_' + v4].setType(v12); _global.path['door' + v3 + '_' + v4].room = v7[0]; _global.path['door' + v3 + '_' + v4].room1 = v7[1]; } if (v22) { _global.path.game[v6] = {'x': v3, 'y': v4, 'xmid': v9 + _global.path.game.spacing / 2, 'ymid': v8 + _global.path.game.spacing / 2, 'name': v6, 'type': v21, 'room': storedv7[0], 'room1': storedv7[1], 'char': 0, 'isDoor': v22}; } else { _global.path.game[v6] = {'x': v3, 'y': v4, 'xmid': v9 + _global.path.game.spacing / 2, 'ymid': v8 + _global.path.game.spacing / 2, 'name': v6, 'type': v21, 'room': v13, 'char': 0, 'isDoor': v22}; } v5 = v5.nextSibling; ++v3; } v11 = v11.nextSibling; ++v4; } _global.path.game.rows = v4 - 1; _global.path.game.cols = v3 - 1; _global.path.astar.maxX = _global.path.game.rows; _global.path.astar.maxY = _global.path.game.cols; _global.path.game.exitDoor = _global.path.door24_3; this.initguards(); this.initrobs(); this.initLasers(); this.initCams(); }; v2.initrobs = function () { _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 900, 540, 180, 'player1', _global.path.astar); ++_global.path.game.numOfLiverobs; var v2 = _global.GAME.selectedCharacters[1]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 860, 580, 180, 'player2', _global.path.astar); ++_global.path.game.numOfLiverobs; v2 = _global.GAME.selectedCharacters[2]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 900, 580, -135, 'player3', _global.path.astar); ++_global.path.game.numOfLiverobs; v2 = _global.GAME.selectedCharacters[3]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); }; v2.initguards = function () { _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, false, false, 10, {'x': 6, 'y': 14}, {'x': 13, 'y': 14}, {'x': 6, 'y': 14}, 220, 540, 0, _global.path.astar); ++_global.path.game.numOfLiveGuards; _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, true, false, 10, {'x': 16, 'y': 8}, {'x': 16, 'y': 8}, {'x': 16, 'y': 8}, 620, 300, 90, _global.path.astar); ++_global.path.game.numOfLiveGuards; }; v2.initCams = function () { _global.path.cam[1].Room = 7; }; v2.initLasers = function () { _global.path.laser[1].setParams(2, 4); _global.path.laser[2].setParams(2, 4); _global.path.laser[3].setParams(2, 4); _global.path.laser[4].setParams(2, 4); _global.path.laser[5].setParams(1, 1); _global.path.laser[6].setParams(1, 1); _global.path.laser[7].setParams(1, 1); }; v2.police = function () { _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('policeMan', 'policeman' + _global.path.game.numOfguards, true, true, 20, {'x': 23, 'y': 2}, {'x': 23, 'y': 2}, {'x': 23, 'y': 2}, 900, 60, 135, _global.path.astar); ++_global.path.game.numOfLiveGuards; }; ASSetPropFlags(conf.Level2Conf.prototype, null, 1); } #endinitclip } movieClip 6288 __Packages.lat.traps.TrapsL2 { #initclip if (!_global.lat) { _global.lat = new Object(); } if (!_global.lat.traps) { _global.lat.traps = new Object(); } if (!_global.lat.traps.TrapsL2) { var v1 = function () { this.LasersBlue = 1; this.LasersRed = 1; }; lat.traps.TrapsL2 = v1; var v2 = v1.prototype; v2.enableLasersBlue = function () { if (this.LasersBlue == 1) { _global.path.laser[1].Disable = true; _global.path.laser[2].Disable = false; _global.path.laser[3].Disable = true; _global.path.laser[4].Disable = false; } if (this.LasersBlue == 3) { _global.path.laser[1].Disable = false; _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = false; _global.path.laser[4].Disable = true; } if (this.LasersBlue == 2 || this.LasersBlue == 4) { _global.path.laser[1].Disable = true; _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = true; _global.path.laser[4].Disable = true; } if (this.LasersBlue == 1) { this.LasersBlue = 2; } else { if (this.LasersBlue == 2) { this.LasersBlue = 3; } else { if (this.LasersBlue == 3) { this.LasersBlue = 4; } else { if (this.LasersBlue == 4) { this.LasersBlue = 1; } } } } }; v2.enableLasersRed = function () { if (this.LasersRed == 1) { _global.path.laser[5].Disable = true; _global.path.laser[6].Disable = false; _global.path.laser[7].Disable = true; } if (this.LasersRed == 3) { _global.path.laser[5].Disable = false; _global.path.laser[6].Disable = true; _global.path.laser[7].Disable = false; } if (this.LasersRed == 2 || this.LasersRed == 4) { _global.path.laser[5].Disable = true; _global.path.laser[6].Disable = true; _global.path.laser[7].Disable = true; } if (this.LasersRed == 1) { this.LasersRed = 2; } else { if (this.LasersRed == 2) { this.LasersRed = 3; } else { if (this.LasersRed == 3) { this.LasersRed = 4; } else { if (this.LasersRed == 4) { this.LasersRed = 1; } } } } }; v2.disableLasersRed = function () { _global.path.laser[5].Disable = true; _global.path.laser[6].Disable = true; _global.path.laser[7].Disable = true; }; v2.disableTraps = function () { this.Disabled = true; this.disableLasersRed(); }; v2.Disabled = false; ASSetPropFlags(lat.traps.TrapsL2.prototype, null, 1); } #endinitclip } movieClip 6289 __Packages.lat.levels.Level2 { #initclip if (!_global.lat) { _global.lat = new Object(); } if (!_global.lat.levels) { _global.lat.levels = new Object(); } if (!_global.lat.levels.Level2) { var v1 = function () {}; lat.levels.Level2 = v1; var v2 = v1.prototype; v2.xml = new String('<map><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="3" room="1,0" doorType="7" /><cell type="3" room="1,0" doorType="7" /><cell type="3" room="1,0" doorType="7" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="3" room="2,3" doorType="1" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="3" room="3,4" doorType="5" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="3" room="4,5" doorType="1" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="3" room="5,0" doorType="6" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="4,9" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="2,7" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="3,8" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="3" room="10,5" doorType="1" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="1,6" doorType="5" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="5,11" doorType="2" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="3" room="7,8" doorType="1" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="3" room="8,9" doorType="1" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="3" room="9,10" doorType="1" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="3" room="6,7" doorType="1" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="10,15" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="3" room="15,11" doorType="2" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="6,12" doorType="5" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="7,13" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="8,14" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="3" room="12,13" doorType="1" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="3" room="14,15" doorType="1" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="3" room="15,16" doorType="2" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="3" room="13,14" doorType="1" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row></map>'); ASSetPropFlags(lat.levels.Level2.prototype, null, 1); } #endinitclip } movieClip 6290 __Packages.conf.Level3Conf { #initclip if (!_global.conf) { _global.conf = new Object(); } if (!_global.conf.Level3Conf) { var v1 = function () { this.init(); }; conf.Level3Conf = v1; var v2 = v1.prototype; v2.init = function () { _global.path.astar = new astar.Astar(); _global.path.astar.initialize(); _global.path.game = new Object(); _global.path.game.spacing = 40; _global.path.game.deadDepth = 900; _global.path.game.numOfrobs = 0; _global.path.game.numOfguards = 0; _global.path.game.numOfRooms = 18; _global.path.game.numOfLiveGuards = _global.path.game.numOfguards; _global.path.game.numOfLiverobs = _global.path.game.numOfrobs; _global.path.game.numOfExitedrobs = 0; _global.path.game.controlBoxes = 1; _global.path.game.maxTrapsOfType = 36; _global.path.maxNumOfClips = 36; _global.path.game.SafeOpen = false; _global.path.game.minigameStarted = false; _global.path.game.unlockingFloorsNum = 2; _global.path.game.NumOfFogs = 18; _global.path.treasure = 0; _global.path.moneyValue = 3500; _global.path.goldValue = 8000; _global.path.Time = undefined; _global.path.conditionType = 1; _global.path.moneyTaken = 0; _global.path.bonusTime = 210; _global.path.bgImage = 'Level3Img'; _global.path.alarmMeter = new meters.AlarmMeter(0); _global.path.soundMeter = new meters.SoundMeter(0, _global.path.alarmMeter); _global.path.monitoringRooms = [15]; _global.path.traps = new lat.traps.TrapsL3(); _global.path.guard = new Array(); _global.path.rob = new Array(); _global.path.Bombs = new Array(); _global.path.Emps = new Array(); _global.path.GasAr = new Array(); _global.path.doorBombs = new Array(); _global.path.doorArray = [new mcs.Door('wooden', 740.4, 100.7, 180, 100, 100), new mcs.Door('wooden', 380.4, 140.7, 180, 100, 100), new mcs.Door('metal', 979.8, 141.65, 0, 100, 100), new mcs.Door('wooden', 659.4, 260.05, -90, 100, 100), new mcs.Door('wooden', 859.4, 260.05, -90, 100, 100), new mcs.Door('metal', 1057.8, 259.65, 90, 100, 100), new mcs.Door('metal', 97.8, 299.65, 90, 100, 100), new mcs.Door('wooden', 259.4, 300.05, -90, 100, 100), new mcs.Door('wooden', 540.4, 340.7, 180, 100, 100), new mcs.Door('safe', 1144.35, 336, 180, 100, 46), new mcs.Door('safe', 1144.35, 375.85, 180, 100, 46), new mcs.Door('metal', 458, 419.65, 90, 100, 100), new mcs.Door('safe', 1143.95, 414.3, 180, 100, 46), new mcs.Door('wooden', 659.4, 500.05, -90, 100, 100), new mcs.Door('wooden', 859.2000000000001, 500.05, -90, 100, 100), new mcs.Door('metal', 1057.8, 499.65, 90, 100, 100), new mcs.Door('wooden', 99.40000000000001, 580.05, -90, 100, 100), new mcs.Door('wooden', 259.4, 580.05, -90, 100, 100), new mcs.Door('wooden', 540.4, 580.7000000000001, 180, 100, 100), new mcs.Door('wooden', 740.4, 580.7000000000001, 180, 100, 100), new mcs.Door('wooden', 659.4, 660.05, -90, 100, 100), new mcs.Door('metal', 457.8, 699.65, 90, 100, 100), new mcs.Door('wooden', 180.4, 780.7000000000001, 180, 100, 100), new mcs.Door('wooden', 380.4, 780.7000000000001, 180, 100, 100), new mcs.Door('wooden', 540.4, 780.7000000000001, 180, 100, 100), new mcs.Door('wooden', 740.4, 780.7000000000001, 180, 100, 100), new mcs.Door('metal', 979.8, 781.65, 0, 100, 100), new mcs.Door('metal', 462.25, 859.65, -90, 100, 100)]; if (!_global.stage.hasSafeItem) { _global.path.popUp = new mcs.PopUp('sefpopUP_mc', 1100, 330, 0, 100, 100); } _global.path.laser = [undefined, new mcs.Laser('LaserRedShort', 397.45, 190, 90, 100, 100), new mcs.Laser('LaserRedShort', 520.05, 200, -90, 100, 100), new mcs.Laser('LaserRedShort', 397.45, 260, 90, 100, 100), new mcs.Laser('LaserRedShort', 520.05, 270, -90, 100, 100), new mcs.Laser('LaserBlue', 997.9, 593.35, 90, 100, 100), new mcs.Laser('LaserBlue', 1158.75, 607.85, -90, 100, 100), new mcs.Laser('LaserBlue', 1000.05, 672.25, 90, 100, 100), new mcs.Laser('LaserBlue', 1158.75, 686.85, -90, 100, 100), new mcs.Laser('LaserBlue', 1000.05, 751.25, 90, 100, 100), new mcs.Laser('LaserBlue', 1158.75, 766.85, -90, 100, 100)]; _global.path.floor = [undefined, new mcs.Floor('tiefloor', 1003.45, 39, 0, 100, 100), new mcs.Floor('tiefloor', 1043.45, 39, 0, 100, 100), new mcs.Floor('tiefloor', 1083.45, 39, 0, 100, 100), new mcs.Floor('tiefloor', 1123.45, 39, 0, 100, 100), new mcs.Floor('tiefloor', 1003.45, 79, 0, 100, 100), new mcs.Floor('tiefloor', 1043.45, 79, 0, 100, 100), new mcs.Floor('tiefloor', 1083.45, 79, 0, 100, 100), new mcs.Floor('tiefloor', 1123.45, 79, 0, 100, 100), new mcs.Floor('tiefloor', 1003.45, 120, 0, 100, 100), new mcs.Floor('tiefloor', 1043.45, 120, 0, 100, 100), new mcs.Floor('tiefloor', 1083.45, 120, 0, 100, 100), new mcs.Floor('tiefloor', 1123.45, 120, 0, 100, 100), new mcs.Floor('tiefloor', 1003.45, 160, 0, 100, 100), new mcs.Floor('tiefloor', 1043.45, 160, 0, 100, 100), new mcs.Floor('tiefloor', 1083.45, 160, 0, 100, 100), new mcs.Floor('tiefloor', 1123.45, 160, 0, 100, 100), new mcs.Floor('tiefloor', 1003.45, 200, 0, 100, 100), new mcs.Floor('tiefloor', 1043.45, 200, 0, 100, 100), new mcs.Floor('tiefloor', 1083.45, 200, 0, 100, 100), new mcs.Floor('tiefloor', 1123.45, 200, 0, 100, 100), new mcs.Floor('tiefloor', 563.4500000000001, 680, 0, 100, 100), new mcs.Floor('tiefloor', 603.4500000000001, 680, 0, 100, 100), new mcs.Floor('tiefloor', 643.4500000000001, 680, 0, 100, 100), new mcs.Floor('tiefloor', 683.4500000000001, 680, 0, 100, 100), new mcs.Floor('tiefloor', 563.4500000000001, 720, 0, 100, 100), new mcs.Floor('tiefloor', 603.4500000000001, 720, 0, 100, 100), new mcs.Floor('tiefloor', 643.4500000000001, 720, 0, 100, 100), new mcs.Floor('tiefloor', 683.4500000000001, 720, 0, 100, 100), new mcs.Floor('tiefloor', 563.4500000000001, 760, 0, 100, 100), new mcs.Floor('tiefloor', 603.4500000000001, 760, 0, 100, 100), new mcs.Floor('tiefloor', 643.4500000000001, 760, 0, 100, 100), new mcs.Floor('tiefloor', 683.4500000000001, 760, 0, 100, 100), new mcs.Floor('tiefloor', 563.4500000000001, 800, 0, 100, 100), new mcs.Floor('tiefloor', 603.4500000000001, 800, 0, 100, 100), new mcs.Floor('tiefloor', 643.4500000000001, 800, 0, 100, 100), new mcs.Floor('tiefloor', 683.4500000000001, 800, 0, 100, 100)]; _global.path.cam = [undefined, new mcs.Cam('camRot', 264.75, 29.15, 0, 100, 100), new mcs.Cam('camSideStatic', 747.6, 251.6, -90, 100, 100)]; _global.path.alarmButton = [undefined, new mcs.AlarmButton('alarmButton', 530.2000000000001, 507.55, 90, 100, 100, 500, 500), new mcs.AlarmButton('alarmButton', 854.85, 691, 180, 100, 100, 860, 660)]; _global.path.unlockingFloor = [undefined, new mcs.UnlockingFloor('unlockingFloor', 1061.2, 340.25, 0, 100, 100), new mcs.UnlockingFloor('unlockingFloor', 1061.2, 420.25, 0, 100, 100)]; _global.path.controlBox = [undefined, new mcs.ControlBox('controlbox', 365.45, 659.4500000000001, 0, 100, 100)]; _global.path.exitlight = new mcs.Exitlight('exitlight', 475, 870, 180, 100, 200); _global.path.safeDoor = new mcs.SafeDoor('safeDoor', 1048.7, 322.15, 0, 100, 100); _global.path.safeDoor.safeDoorx1 = 28; _global.path.safeDoor.safeDoorx2 = 30; _global.path.safeDoor.safeDoory1 = 7; _global.path.safeDoor.safeDoory2 = 13; this.l = new lat.levels.Level3(); this.board = new XML(this.l.xml); this.buildXMLGrid(); }; v2.buildXMLGrid = function () { this.board = this.board.firstChild; var v4 = 1; var v11 = this.board.firstChild; while (v11 != null) { var v3 = 1; var v5 = v11.firstChild; while (v5 != null) { var v6 = 'node' + v3 + '_' + v4; var v9 = (v3 - 1) * _global.path.game.spacing; var v8 = (v4 - 1) * _global.path.game.spacing; var v21 = v5.attributes.type; var v13 = v5.attributes.room; var v22 = false; var v10; switch (v21) { case '1': v10 = 'walk'; break; case '2': v10 = 'obsticle'; _global.path.astar.nodes[v6].solid = true; break; case '3': v10 = 'door'; v22 = true; var v7 = v13.split(','); var v12 = v5.attributes.doorType; _global.path['door' + v3 + '_' + v4] = _global.path.getDoor(v3, v4); _global.path['door' + v3 + '_' + v4].setType(v12); _global.path['door' + v3 + '_' + v4].room = v7[0]; _global.path['door' + v3 + '_' + v4].room1 = v7[1]; } if (v22) { _global.path.game[v6] = {'x': v3, 'y': v4, 'xmid': v9 + _global.path.game.spacing / 2, 'ymid': v8 + _global.path.game.spacing / 2, 'name': v6, 'type': v21, 'room': storedv7[0], 'room1': storedv7[1], 'char': 0, 'isDoor': v22}; } else { _global.path.game[v6] = {'x': v3, 'y': v4, 'xmid': v9 + _global.path.game.spacing / 2, 'ymid': v8 + _global.path.game.spacing / 2, 'name': v6, 'type': v21, 'room': v13, 'char': 0, 'isDoor': v22}; } v5 = v5.nextSibling; ++v3; } v11 = v11.nextSibling; ++v4; } _global.path.game.rows = v4 - 1; _global.path.game.cols = v3 - 1; _global.path.astar.maxX = _global.path.game.rows; _global.path.astar.maxY = _global.path.game.cols; _global.path.game.exitDoor = _global.path.door12_22; this.initguards(); this.initrobs(); this.initLasers(); this.initCams(); this.initFloors(); }; v2.initrobs = function () { _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 100, 100, 90, 'player1', _global.path.astar); ++_global.path.game.numOfLiverobs; var v2 = _global.GAME.selectedCharacters[1]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 100, 140, 45, 'player2', _global.path.astar); ++_global.path.game.numOfLiverobs; v2 = _global.GAME.selectedCharacters[2]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); _global.path.rob[++_global.path.game.numOfrobs] = new mcs.Robber('rob' + _global.path.game.numOfrobs, 140, 140, 135, 'player3', _global.path.astar); ++_global.path.game.numOfLiverobs; v2 = _global.GAME.selectedCharacters[3]; _global.path.rob[_global.path.game.numOfrobs].setSkills('char' + v2.picture, v2.shooting, v2.unlocking, v2.electronic, v2.explosives, v2.weapon); }; v2.initguards = function () { _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, false, false, 10, {'x': 7, 'y': 10}, {'x': 2, 'y': 9}, {'x': 4, 'y': 14}, 260, 380, 0, _global.path.astar); ++_global.path.game.numOfLiveGuards; _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, false, false, 10, {'x': 12, 'y': 15}, {'x': 12, 'y': 21}, {'x': 12, 'y': 15}, 460, 580, 0, _global.path.astar); ++_global.path.game.numOfLiveGuards; _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, true, false, 10, {'x': 23, 'y': 16}, {'x': 23, 'y': 16}, {'x': 23, 'y': 16}, 900, 620, 0, _global.path.astar); ++_global.path.game.numOfLiveGuards; _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('Guard', 'guard' + _global.path.game.numOfguards, false, false, 10, {'x': 23, 'y': 12}, {'x': 16, 'y': 8}, {'x': 15, 'y': 12}, 900, 460, 0, _global.path.astar); ++_global.path.game.numOfLiveGuards; }; v2.initCams = function () { _global.path.cam[1].Room = 2; _global.path.cam[2].Room = 5; }; v2.initLasers = function () { _global.path.laser[1].setParams(1, 3); _global.path.laser[2].setParams(1, 3); _global.path.laser[3].setParams(1, 3); _global.path.laser[4].setParams(1, 3); _global.path.laser[5].setParams(2, 16); _global.path.laser[6].setParams(2, 16); _global.path.laser[7].setParams(2, 16); _global.path.laser[8].setParams(2, 16); _global.path.laser[9].setParams(2, 16); _global.path.laser[10].setParams(2, 16); }; v2.police = function () { _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('policeMan', 'policeman' + _global.path.game.numOfguards, true, true, 20, {'x': 9, 'y': 21}, {'x': 9, 'y': 21}, {'x': 9, 'y': 21}, 340, 820, -90, _global.path.astar); ++_global.path.game.numOfLiveGuards; _global.path.guard[++_global.path.game.numOfguards] = new mcs.Guard('policeMan', 'policeman' + _global.path.game.numOfguards, true, true, 20, {'x': 13, 'y': 21}, {'x': 13, 'y': 21}, {'x': 13, 'y': 21}, 500, 820, -90, _global.path.astar); ++_global.path.game.numOfLiveGuards; }; v2.initFloors = function () { var v2 = 1; while (v2 <= _global.path.floor.length) { _global.path.floor[v2].calcRoom(); ++v2; } }; ASSetPropFlags(conf.Level3Conf.prototype, null, 1); } #endinitclip } movieClip 6291 __Packages.lat.traps.TrapsL3 { #initclip if (!_global.lat) { _global.lat = new Object(); } if (!_global.lat.traps) { _global.lat.traps = new Object(); } if (!_global.lat.traps.TrapsL3) { var v1 = function () { this.floorsDisabled = [1, 3, 6, 8, 9, 11, 14, 16, 17, 19, 21, 23, 26, 28, 29, 31, 34, 36]; this.floorsEnabled = [2, 4, 5, 7, 10, 12, 13, 15, 18, 20, 22, 24, 25, 27, 30, 32, 33, 35]; this.onoff = true; this.FloorRow = 1; this.LasersBlue = 1; this.LasersRed = 1; }; lat.traps.TrapsL3 = v1; var v2 = v1.prototype; v2.randomizeFloors = function () { var v4 = 1; while (v4 <= _global.path.game.maxTrapsOfType) { var v5 = _global.path.floor[v4]; _global.path.floor[v4].Disable = false; if (v5) { if (this.FloorRow == 2 || this.FloorRow == 4) { v5.Disable = true; } else { var v3 = 0; while (v3 < this.floorsDisabled.length) { if (this.FloorRow == 1 && v4 == this.floorsDisabled[v3]) { v5.Disable = true; } ++v3; } v3 = 0; while (v3 < this.floorsEnabled.length) { if (this.FloorRow == 3 && v4 == this.floorsEnabled[v3]) { v5.Disable = true; } ++v3; } } } ++v4; } if (this.FloorRow == 1) { this.FloorRow = 2; } else { if (this.FloorRow == 2) { this.FloorRow = 3; } else { if (this.FloorRow == 3) { this.FloorRow = 4; } else { if (this.FloorRow == 4) { this.FloorRow = 1; } } } } }; v2.enableLasersBlue = function () { if (this.LasersBlue == 1) { _global.path.laser[5].Disable = true; _global.path.laser[6].Disable = false; _global.path.laser[7].Disable = true; _global.path.laser[8].Disable = false; _global.path.laser[9].Disable = true; _global.path.laser[10].Disable = false; } if (this.LasersBlue == 3) { _global.path.laser[5].Disable = false; _global.path.laser[6].Disable = true; _global.path.laser[7].Disable = false; _global.path.laser[8].Disable = true; _global.path.laser[9].Disable = false; _global.path.laser[10].Disable = true; } if (this.LasersBlue == 2 || this.LasersBlue == 4) { _global.path.laser[5].Disable = true; _global.path.laser[6].Disable = true; _global.path.laser[7].Disable = true; _global.path.laser[8].Disable = true; _global.path.laser[9].Disable = true; _global.path.laser[10].Disable = true; } if (this.LasersBlue == 1) { this.LasersBlue = 2; } else { if (this.LasersBlue == 2) { this.LasersBlue = 3; } else { if (this.LasersBlue == 3) { this.LasersBlue = 4; } else { if (this.LasersBlue == 4) { this.LasersBlue = 1; } } } } }; v2.enableLasersRed = function () { if (this.LasersRed == 1) { _global.path.laser[1].Disable = true; _global.path.laser[2].Disable = false; _global.path.laser[3].Disable = true; _global.path.laser[4].Disable = false; } if (this.LasersRed == 3) { _global.path.laser[1].Disable = false; _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = false; _global.path.laser[4].Disable = true; } if (this.LasersRed == 2 || this.LasersRed == 4) { _global.path.laser[1].Disable = true; _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = true; _global.path.laser[4].Disable = true; } if (this.LasersRed == 1) { this.LasersRed = 2; } else { if (this.LasersRed == 2) { this.LasersRed = 3; } else { if (this.LasersRed == 3) { this.LasersRed = 4; } else { if (this.LasersRed == 4) { this.LasersRed = 1; } } } } }; v2.disableFloors = function () { var v2 = 1; while (v2 <= _global.path.game.maxTrapsOfType) { if (_global.path.floor[v2] instanceof MovieClip) { _global.path.floor[v2].Disable = true; } ++v2; } }; v2.disableLasersRed = function () { _global.path.laser[1].Disable = true; _global.path.laser[2].Disable = true; _global.path.laser[3].Disable = true; _global.path.laser[4].Disable = true; }; v2.disableTraps = function () { this.Disabled = true; this.disableLasersRed(); }; v2.floorsDisabled = new Array(); v2.floorsEnabled = new Array(); v2.Disabled = false; ASSetPropFlags(lat.traps.TrapsL3.prototype, null, 1); } #endinitclip } movieClip 6292 __Packages.lat.levels.Level3 { #initclip if (!_global.lat) { _global.lat = new Object(); } if (!_global.lat.levels) { _global.lat.levels = new Object(); } if (!_global.lat.levels.Level3) { var v1 = function () {}; lat.levels.Level3 = v1; var v2 = v1.prototype; v2.xml = new String('<map><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="3" room="4,5" doorType="1" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="3" room="2,3" doorType="1" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="3" room="5,6" doorType="5" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="1" room="4" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="1" room="5" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="1" room="6" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="1" room="1" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="1" room="2" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="4,9" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="5,9" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="6,10" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="1,7" doorType="6" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="2,7" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="3" room="3,9" doorType="1" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="3" room="10,0" doorType="7" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="1" room="3" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="3" room="10,0" doorType="7" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="3,8" doorType="5" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="3" room="10,0" doorType="7" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="1" room="9" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="1" room="10" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="9,14" doorType="2" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="9,15" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="10,16" doorType="6" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="1" room="7" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="7,11" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="7,12" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="3" room="8,14" doorType="3" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="3" room="14,15" doorType="3" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="1" room="14" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="1" room="8" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="14,17" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="1" room="15" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="8,13" doorType="1" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="3" room="11,12" doorType="1" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="3" room="12,13" doorType="1" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="3" room="13,17" doorType="1" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="3" room="17,18" doorType="1" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="1" room="18" doorType="0" /><cell type="3" room="18,16" doorType="1" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="1" room="11" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="12" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="1" room="13" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="1" room="17" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="1" room="16" doorType="0" /><cell type="2" room="0" doorType="0" /></row><row><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="3" room="13,0" doorType="6" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /><cell type="2" room="0" doorType="0" /></row></map>'); ASSetPropFlags(lat.levels.Level3.prototype, null, 1); } #endinitclip } movieClip 6293 __Packages.Game { #initclip if (!_global.Game) { var v1 = function () { _global.GAME = this; this.init(); }; _global.Game = v1; var v2 = v1.prototype; v2.init = function () { this.safeMoney = 0; this.sound = new control.SoundController(); this.interFace = new br.Interface(); this.ITEMS = new Array(); this.BuyedItems = new Array(); this.selectedCharacters = new Array(); this.LevelPlayers = new Array(); this.invenrtory = new Array(); this.ITEMS = [undefined, new mcs.Item('item1', 'Security Card', 16, 6, 5, 0, 20000), new mcs.Item('item2', 'NCS 9000', 11, 9, 40, 0, 5000), new mcs.Item('item3', 'Special Key', 2, 5, 10, 0, 40000), new mcs.Item('item4', 'Master Key', 1, 6, 10, 0, 10000), new mcs.Item('item5', 'Golden Key', 3, 5, 10, 0, 60000), new mcs.Item('item6', 'DU Cassette', 6, 3, 1000, 0, 65000), new mcs.Item('item7', 'DU Cassette', 7, 1, 1600, 0, 90000), new mcs.Item('item8', 'Military C4', 4, 7, 500, 0, 20000), new mcs.Item('item9', 'Military C4', 5, 5, 700, 0, 40000), new mcs.Item('item10', 'Diamond Drill', 12, 0, 200, 0, 140000), new mcs.Item('item11', 'QS 512Mb', 8, 4, 5, 0, 50000), new mcs.Item('item12', 'QS 1Gb', 9, 4, 5, 0, 65000), new mcs.Item('item13', 'QS 2in1 1Gb', 10, 3, 5, 0, 140000), new mcs.Item('item14', 'PA Mirror', 22, 3, 30, 0, 15000), new mcs.Item('item15', 'EMP Generator', 18, 2, 30, 0, 160000), new mcs.Item('item16', 'Alarm Card', 21, 2, 30, 0, 150000), new mcs.Item('item17', 'Plasma Torch', 13, 0, 30, 0, 180000), new mcs.Item('item18', 'VX Bomb', 17, 2, 30, 0, 160000), new mcs.Item('item19', 'BoobyTrap X7', 19, 2, 500, 0, 140000)]; this.LevelPlayers = [undefined, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5]; this.blueprintOnScreen = false; this.ref = utils.Delegate; this.mode = 'menu'; this.Play(); }; v2.Play = function () { this.levelLoaded = false; switch (this.mode) { case 'menu': this.gameMenu(); break; case 'new': this.newGame(); break; case 'blueprint': this.bluePrint(); break; case 'charSelection': this.charSelection(); break; case 'itemSelection': this.finishLevel(); this.itemSelection(); break; case 'finishLevel': this.finishLevel(); break; case 'endDemo': this.endDemo(); break; case 'gameover': this.gameOver(); break; case 'endgame': this.endGame(); break; case 'bonus': this.bonusGame(); } }; v2.gamePlay = function () { _global.mouse.RemoveListener(); utils.Delegate = this.ref; _global.stage.timer.removeEventListener('onTimerTick', this); if (this.bg) { this.bg.removeMovieClip(); } if (this.currentClip) { this.currentClip.removeMovieClip(); } delete _global.path; delete _global.stage; delete _global.mouse; delete _global.keyboard; this.currentClip = _root.attachMovie('Stage', 'Stage', 13000, {'_x': 0, '_y': 0}); this.currentClip.stop(); this.levelLoaded = true; stopAllSounds(); this.sound.playMusic('bgMusic'); }; v2.gameMenu = function () { delete utils.Delegate; Mouse.show(); if (this.bg) { this.bg.removeMovieClip(); } if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('BRintro_mc', 'BRintro_mc', 13000, {'_x': 0, '_y': 0}); stopAllSounds(); this.sound.playMusic('mainTheme'); }; v2.newGame = function () { trace('deleting ... ' + delete utils.Delegate); this.isLoaded = false; _global.mouse.RemoveListener(); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.bg = _root.attachMovie('InterfaceBg_mc', 'InterfaceBg_mc', 12900, {'_x': 0, '_y': 0}); this.Level = 1; this.money = 130000; this.startLevelMoney = this.money; var v4 = new SaveLoad(this.Level); var v5 = v4.savedGame(); if (!v5.level) { v4.saveGame(this.money); } this.randomization = new Randomize(this.Level); this.Characters = this.randomization.RandomChars(); this.intro(); }; v2.loadGame = function (level) { Mouse.show(); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.bg = _root.attachMovie('InterfaceBg_mc', 'InterfaceBg_mc', 12900, {'_x': 0, '_y': 0}); this.Level = level; this.randomization = new Randomize(this.Level); this.Characters = this.randomization.RandomChars(); var v3 = new SaveLoad(this.Level); var v4 = v3.savedGame(); this.money = v4.money; this.startLevelMoney = this.money; this.bluePrint(); }; v2.intro = function () { if (this.bg) { this.bg.removeMovieClip(); } this.bg = _root.attachMovie('InterfaceBg_mc', 'InterfaceBg_mc', 12900, {'_x': 0, '_y': 0}); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('strip', 'strip', 13000, {'_x': 390, '_y': 300}); }; v2.bluePrint = function () { stopAllSounds(); this.sound.playMusic('mainTheme'); Mouse.show(); _global.mouse.RemoveListener(); trace('deleting ... ' + delete utils.Delegate); if (this.bg) { this.bg.removeMovieClip(); } this.bg = _root.attachMovie('InterfaceBg_mc', 'InterfaceBg_mc', 12900, {'_x': 0, '_y': 0}); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('Blueprint_mc', 'Blueprint_mc', 13000, {'_x': 30, '_y': 50}); this.currentClip.gotoAndStop(this.Level); this.startLevelMoney = this.money; }; v2.charSelection = function () { if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('charSelection_mc', 'charSelection_mc', 13000, {'_x': 30, '_y': 50}); }; v2.itemSelection = function () { utils.Delegate = this.ref; if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('itemSelection_mc', 'itemSelection_mc', 13000, {'_x': 30, '_y': 50}); utils.Delegate.callDelayed(this, this.itemSelectionPopUps, 15000); }; v2.finishLevel = function () { Mouse.show(); _global.mouse.RemoveListener(); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('finishLevel_mc', 'finishLevel_mc', 13000, {'_x': 0, '_y': 0}); if (this.Level == 3) { _root.attachMovie('highscore', 'highscore', 17000, {'_x': 255, '_y': 115}); } }; v2.gameOver = function () { Mouse.show(); _global.mouse.RemoveListener(); _root.attachMovie('highscore', 'highscore', 17000, {'_x': 255, '_y': 115}); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('gameover_mc', 'gameover_mc', 13000, {'_x': 400, '_y': 300}); }; v2.endDemo = function () { stopAllSounds(); Mouse.show(); _global.mouse.RemoveListener(); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('endDemo', 'endDemo', 13000, {'_x': 400, '_y': 300}); }; v2.endGame = function () { Mouse.show(); _global.mouse.RemoveListener(); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.bg = _root.attachMovie('InterfaceBg_mc', 'InterfaceBg_mc', 12900, {'_x': 0, '_y': 0}); this.currentClip = _root.attachMovie('endgame_mc', 'endgame_mc', 13000, {'_x': 400, '_y': 300}); }; v2.bonusGame = function () { var v14 = SharedObject.getLocal('Robbers', '/'); v14.clear(); v14.data.numOfrobs = _global.path.game.numOfrobs; v14.data.numOfLiverobs = _global.path.game.numOfLiverobs; var v5 = 1; while (v5 <= _global.path.game.numOfrobs) { var v3 = _global.path.rob[v5]; if (v3.Health > 0) { var v4 = {'_image': v3.image, '_health': v3._health, '_nickName': v3._nickName, '_shooting': v3._shooting, '_unlocking': v3._unlocking, '_explosives': v3._explosives, '_electronics': v3._electronics, '_weapon': v3._weapon}; trace('Level 12 rob' + v5 + ' S ' + v4._shooting + ' U ' + v4._unlocking + ' EX ' + v4._explosives + ' EL ' + v4._electronics + ' W ' + v4._weapon._Type); v14.data['rob' + v5] = v4; } ++v5; } v14.flush(); _global.stage.stopTimer(); this.Level = 13; this.gamePlay(); }; v2.removeMC = function (mc) { trace('removing ... '); removeMovieClip(mc); }; v2.levelNotFinished = function () { Mouse.show(); stopAllSounds(); delete utils.Delegate; _global.mouse.RemoveListener(); if (this.currentClip) { this.currentClip.removeMovieClip(); } this.currentClip = _root.attachMovie('finishedLevelNoSafe_mc', 'finishedLevelNoSafe_mc', 13000, {'_x': 0, '_y': 0}); }; v2.openPopUp = function (whichItem, whichButton) { if (!this.levelLoaded) { var v3; var v4; var v8; var v7; var v5 = 'pop_up'; var v6 = {'x': whichButton._x, 'y': whichButton._y}; whichButton.localToGlobal(v6); v8 = v6.x + 120; v7 = v6.y - 75; switch (whichItem) { case 'pop_up1': v3 = 'Security Card:'; v4 = 'Unlocks electronic doors.'; break; case 'pop_up2': v3 = 'Nanochip Screwdriver 9000:'; v4 = 'Opens mechanical doors.'; break; case 'pop_up3': v3 = 'Special key:'; v4 = 'Opens the safe.'; break; case 'pop_up4': v3 = 'Golden Key:'; v4 = 'Opens mechanical doors and the safe.'; break; case 'pop_up5': v3 = 'Master key:'; v4 = 'Opens mechanical doors.'; break; case 'pop_up6': v3 = 'Depleted Uranium Cassette:'; v4 = '(50g) Destroys any door. Small blast, kills in a short range.'; break; case 'pop_up7': v5 = 'pop_up7'; v3 = 'Depleted Uranium Cassette:'; v4 = '(100g) Destroys any door. Huge blast, kills in a long range.'; break; case 'pop_up8': v3 = 'Military C4: '; v4 = '(500g) Destroys any door. Small, loud explosion. Deadly at short range.'; break; case 'pop_up9': v3 = 'Military C4:'; v4 = '(1000g) Destroys any door. Big, loud explosion. Deadly at long range.'; break; case 'pop_up10': v3 = 'Diamond Drill:'; v4 = 'Opens electronic and mechanical doors.'; break; case 'pop_up11': v3 = 'Quantum Scrambler 512Mb:'; v4 = 'Unlocks electronic doors.'; break; case 'pop_up12': v3 = 'Quantum Scrambler 1Gb:'; v4 = 'Disables red lasers in Electric Panel.'; break; case 'pop_up13': v3 = 'Quantum Scrambler 2in1 1Gb:'; v4 = 'Unlocks electronic doors and disables red lasers.'; break; case 'pop_up14': v5 = 'pop_up7'; v3 = 'Platinum Alloy Mirror:'; v4 = 'Walk through a laser beam with the mirror to reflect it.'; break; case 'pop_up15': v3 = 'EMP Generator:'; v4 = 'Disables a camera by an Electro Magnetic Pulse. Put it on a door.'; break; case 'pop_up16': v3 = 'Security Alarm Card:'; v4 = 'Disables the alarm. Used at the red buttons in the corridors.'; break; case 'pop_up17': v3 = 'Plasma Torch:'; v4 = 'Opens the electronic doors and the safe.'; break; case 'pop_up18': v3 = 'VX Nerve Gas Bomb:'; v4 = 'Kills guards inside a room. Put the bomb under a door.'; break; case 'pop_up19': v3 = 'Smart BoobyTrap X7:'; v4 = 'Kills a guard if he steps on it.'; } this.popUp = _root.attachMovie(v5, 'popUp', 14600, {'_x': v8, '_y': v7}); this.popUp.label_txt.text = v3; this.popUp.desc_txt.text = v4; } }; v2.closePopUp = function (whichItem) { if (!this.levelLoaded) { this.popUp.removeMovieClip(); } }; v2.itemSelectionPopUps = function () { if (this.currentClip == _root.itemSelection_mc) { if (!_root.mapa_btn) { if (this.currentClip.infPopUp) { this.currentClip.infPopUp.removeMovieClip(); } var v5 = false; var v7 = false; var v6 = false; var v4 = 1; while (v4 <= 6) { var v3 = this.currentClip.purchedItems.selected_mc['buy' + v4].items_mc.item; if (v3.Type == undefined) { } else { if (v3.Type == 1 || v3.Type == 11 || v3.Type == 12 || v3.Type >= 3 && v3.Type <= 7) { v7 = true; } if (v3.Type == 10 || v3.Type == 13 || v3.Type == 12 || v3.Type == 16 || v3.Type >= 4 && v3.Type <= 8) { v6 = true; } if (v3.Type == 2 || v3.Type == 3 || v3.Type == 13) { v5 = true; } } ++v4; } if (v5 && v7 && v6) { } else { this.currentClip.infPopUp = _root.attachMovie('itemSelPopUp1', 'itemSelPopUp1', 17222, {'_x': 330, '_y': 550}); trace('itemSelPopUp1'); } } utils.Delegate.callDelayed(this, this.itemSelectionPopUps, 15000); } }; ASSetPropFlags(_global.Game.prototype, null, 1); } #endinitclip } movieClip 6294 __Packages.Randomize { #initclip if (!_global.Randomize) { var v1 = function (Level) { var v2 = new mcs.Weapon('pistol', 1, 2, 150, 1000); var v3 = new mcs.Weapon('silencer', 2, 2, 50, 1500); var v5 = new mcs.Weapon('uzi', 3, 4, 200, 2000); var v6 = new mcs.Weapon('ak47', 4, 4, 250, 4000); var v4 = new mcs.Weapon('shotgun', 5, 6, 350, 3500); this.maleNames = new Array('Joey', 'Shean', 'Michel', 'Johny', 'Finch', 'Mario', 'Mo', 'Frank', 'Kick', 'Paul', 'Nick'); this.femaleNames = new Array('Marija', 'Monika', 'Tara', 'Christi', 'Lina', 'Lana', 'Luis', 'Naomi'); this.group1 = new Array({'shooting': 7, 'unlocking': 5, 'electronic': 2, 'explosives': 1, 'genre': 0, 'nickName': 'a', 'weapon': v3, 'hint': 'I am a good shooter with a silent gun and I am fast in unlocking doors.'}, {'shooting': 2, 'unlocking': 8, 'electronic': 3, 'explosives': 2, 'genre': 0, 'nickName': 'b', 'weapon': v2, 'hint': 'I am very good in unlocking doors, I am a bad shooter!'}, {'shooting': 6, 'unlocking': 1, 'electronic': 0, 'explosives': 8, 'genre': 0, 'nickName': 'c', 'weapon': v3, 'hint': 'I am very good with explosives and I am a good shooter with a silent gun.'}, {'shooting': 1, 'unlocking': 5, 'electronic': 8, 'explosives': 1, 'genre': 0, 'nickName': 'd', 'weapon': v2, 'hint': 'I am good in electronics and unlocking doors, but I am not much of a shooter.'}, {'shooting': 4, 'unlocking': 4, 'electronic': 4, 'explosives': 3, 'genre': 1, 'nickName': 'e', 'weapon': v2, 'hint': 'I am a multi talent, I know a bit of everything.'}); this.group2 = new Array({'shooting': 1, 'unlocking': 10, 'electronic': 8, 'explosives': 1, 'genre': 1, 'nickName': 'a1', 'weapon': v4, 'hint': 'I am specialized in unlocking all kinds of doors and I use a shotgun.'}, {'shooting': 4, 'unlocking': 6, 'electronic': 2, 'explosives': 8, 'genre': 0, 'nickName': 'b1', 'weapon': v3, 'hint': 'I am specialized in explosives and good in unlocking doors. I also have a gun with a silencer.'}, {'shooting': 3, 'unlocking': 6, 'electronic': 10, 'explosives': 1, 'genre': 0, 'nickName': 'c1', 'weapon': v2, 'hint': 'I am specialized in electronics, I am fast at unlocking doors and I can handle a gun.'}, {'shooting': 9, 'unlocking': 2, 'electronic': 2, 'explosives': 7, 'genre': 0, 'nickName': 'd1', 'weapon': v6, 'hint': 'I am an expert in shooting but also I am good at handling explosives.'}, {'shooting': 5, 'unlocking': 5, 'electronic': 5, 'explosives': 5, 'genre': 0, 'nickName': 'e1', 'weapon': v2, 'hint': 'I am a multi talent, I know a bit of everything.'}); this.group3 = new Array({'shooting': 8, 'unlocking': 4, 'electronic': 3, 'explosives': 10, 'genre': 0, 'nickName': 'a2', 'weapon': v4, 'hint': 'I am an expert with explosives and a specialist in shooting.'}, {'shooting': 5, 'unlocking': 3, 'electronic': 10, 'explosives': 7, 'genre': 1, 'nickName': 'b2', 'weapon': v5, 'hint': 'I am an expert in electronics and I am good with explosives and shooting.'}, {'shooting': 10, 'unlocking': 6, 'electronic': 5, 'explosives': 4, 'genre': 0, 'nickName': 'c2', 'weapon': v6, 'hint': 'I am an expert shooter and I am good at unlocking doors.'}, {'shooting': 3, 'unlocking': 10, 'electronic': 2, 'explosives': 10, 'genre': 0, 'nickName': 'd2', 'weapon': v2, 'hint': 'I am an expert with explosives and also an expert at unlocking doors.'}, {'shooting': 7, 'unlocking': 6, 'electronic': 6, 'explosives': 6, 'genre': 0, 'nickName': 'e2', 'weapon': v5, 'hint': 'I am good at shooting and I know something about unlocking, electronics and explosives.'}); this.group4 = new Array({'shooting': 10, 'unlocking': 3, 'electronic': 7, 'explosives': 10, 'genre': 0, 'nickName': 'a3', 'weapon': v3, 'hint': 'I am good in electronics and I am an expert at shooting and explosives.'}, {'shooting': 8, 'unlocking': 5, 'electronic': 10, 'explosives': 7, 'genre': 0, 'nickName': 'b3', 'weapon': v4, 'hint': 'I am a very good shooter, and I am an expert in electronics. Not bad at unlocking doors, too.'}, {'shooting': 6, 'unlocking': 10, 'electronic': 9, 'explosives': 5, 'genre': 0, 'nickName': 'c3', 'weapon': v6, 'hint': 'I am an expert at unlocking doors and I am very good in electronics. I happen to be a good shooter, too.'}, {'shooting': 10, 'unlocking': 8, 'electronic': 3, 'explosives': 9, 'genre': 0, 'nickName': 'd3', 'weapon': v5, 'hint': 'I am an expert with explosives and shooting and I am fast at unlocking doors.'}, {'shooting': 7, 'unlocking': 8, 'electronic': 7, 'explosives': 8, 'genre': 0, 'nickName': 'e3', 'weapon': v4, 'hint': 'I am very good at everything!'}); this.RandMatrix = new Array([5, 2, 0, 0], [4, 3, 0, 0], [3, 4, 0, 0], [2, 4, 1, 0], [1, 4, 2, 0], [0, 4, 3, 0], [0, 3, 4, 0], [0, 2, 4, 1], [0, 1, 4, 2], [0, 0, 5, 2], [0, 0, 4, 3], [0, 0, 3, 4]); this.level = Level - 1; this.males = 0; this.females = 0; }; _global.Randomize = v1; var v2 = v1.prototype; v2.RandomChars = function () { var v2 = new Array(); var v3 = 0; var v6 = 0; while (v6 < 4) { var v8 = this.RandMatrix[this.level][v6]; if (v8 > 0) { if (v8 == 5) { var v5 = 0; while (v5 < 5) { v2[v3] = this['group' + (v6 + 1)][v5]; if (v2[v3].genre == 0) { ++this.males; } else { ++this.females; } ++v3; ++v5; } } else { var v9 = new Array(v8); v9 = this.doRandomizing(5, 0, v8); var v4 = 0; while (v4 < v8) { v2[v3] = this['group' + (v6 + 1)][v9[v4]]; if (v2[v3].genre == 0) { ++this.males; } else { ++this.females; } ++v3; ++v4; } } } ++v6; } this.RandomPicturesAndNames(); var v11 = 0; var v10 = 0; var v7 = 0; while (v7 < v3) { if (v2[v7].genre == 0) { v2[v7].nickName = this.Man[v11].name; v2[v7].picture = this.Man[v11].picture; ++v11; } else { v2[v7].nickName = this.Woman[v10].name; v2[v7].picture = this.Woman[v10].picture; ++v10; } ++v7; } return v2; }; v2.getMaleNum = function () { return this.males; }; v2.getFemaleNum = function () { return this.females; }; v2.RandomPicturesAndNames = function () { var v6 = 0; var v4 = 0; if (this.males > 0) { var v5 = new Array(this.males); v5 = this.doRandomizing(11, 0, this.males); var v2 = 0; while (v2 < this.males) { this.Man[v6] = {'picture': v5[v2], 'name': this.maleNames[v5[v2]]}; ++v6; ++v2; } } if (this.females > 0) { var v9 = new Array(this.females); var v10 = new Array(this.females); v9 = this.doRandomizing(3, 12, this.females); v10 = this.doRandomizing(8, 0, this.females); var v3 = 0; while (v3 < this.females) { this.Woman[v4] = {'picture': v9[v3], 'name': this.femaleNames[v10[v4]]}; ++v4; ++v3; } } }; v2.doRandomizing = function (num, offset, elements) { var v5 = new Array(elements); v5[0] = random(num) + offset; var v2 = 1; while (v2 < elements) { var v3 = random(num) + offset; var v4 = false; var v1 = 0; while (v1 < v2) { if (v5[v1] == v3) { v4 = true; break; } ++v1; } if (!v4) { v5[v2] = v3; ++v2; } } return v5; }; v2.Man = new Array(); v2.Woman = new Array(); ASSetPropFlags(_global.Randomize.prototype, null, 1); } #endinitclip } movieClip 6295 __Packages.mcs.Weapon { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Weapon) { var v1 = function (Name, Type, Damage, Noise, Price) { this._Type = Type; this._Name = Name; this._Damage = Damage; this._Noise = Noise; this._Price = Price; }; mcs.Weapon = v1; var v2 = v1.prototype; v2.__get__Type = function () { return this._Type; }; v2.__get__ShootingSpeed = function () { return this._ShootingSpeed; }; v2.__set__ShootingSpeed = function (shootingSpeed) { this._ShootingSpeed = shootingSpeed; return this.__get__ShootingSpeed(); }; v2.__get__Name = function () { return this._Name; }; v2.__get__Damage = function () { return this._Damage; }; v2.__set__Damage = function (damage) { this._Damage = damage; return this.__get__Damage(); }; v2.__get__Noise = function () { return this._Noise; }; v2.__set__Noise = function (noise) { this._Noise = noise; return this.__get__Noise(); }; v2.__get__Price = function () { return this._Price; }; v2.__set__Price = function (prise) { this._Price = prise; return this.__get__Price(); }; v2.addProperty('Damage', v2.__get__Damage, v2.__set__Damage); v2.addProperty('Name', v2.__get__Name, function () {}); v2.addProperty('Noise', v2.__get__Noise, v2.__set__Noise); v2.addProperty('Price', v2.__get__Price, v2.__set__Price); v2.addProperty('ShootingSpeed', v2.__get__ShootingSpeed, v2.__set__ShootingSpeed); v2.addProperty('Type', v2.__get__Type, function () {}); ASSetPropFlags(mcs.Weapon.prototype, null, 1); } #endinitclip } movieClip 6296 __Packages.br.Interface { #initclip if (!_global.br) { _global.br = new Object(); } if (!_global.br.Interface) { var v1 = function () { this.init(); }; br.Interface = v1; var v2 = v1.prototype; v2.init = function () { this.depth = new control.DepthController(); }; v2.setGameInterface = function () { _global.stage.attachMovie('levelch_mc', 'levelch_mc', this.depth.interfaceDepth++, {'_x': 15, '_y': 455}); _global.stage.attachMovie('navigator', 'navigator', this.depth.interfaceDepth++, {'_x': 0, '_y': -1}); _global.stage.levelch_mc.cacheAsBitmap = true; _global.stage.navigator.cacheAsBitmap = true; this.toolbtn = _global.stage.attachMovie('toolButton', 'toolButton', this.depth.interfaceDepth++, {'_x': 642, '_y': 458}); this.dropmine = _global.stage.attachMovie('dropMinebtn_mc', 'dropMine_mc', this.depth.interfaceDepth++, {'_x': 652, '_y': 505}); this.mainMenu = _global.stage.attachMovie('menu_btn_mc', 'mainMenu', this.depth.interfaceDepth++, {'_x': 652, '_y': 542}); this.OverAlltimer = _global.stage.attachMovie('overalTime_mc', 'overalTime_mc', this.depth.interfaceDepth++, {'_x': 195, '_y': 18}); }; ASSetPropFlags(br.Interface.prototype, null, 1); } #endinitclip } movieClip 6297 __Packages.control.SoundController { #initclip if (!_global.control) { _global.control = new Object(); } if (!_global.control.SoundController) { var v1 = function () { this.volume = 100; this.off = false; this.Sounds = new Array(['wrongTool', 25], ['mainTheme', 10], ['controlBoxEnable', 25], ['controlBoxDisable', 25], ['hrcenje', 25], ['eDoorUnlocking', 25], ['deadBody', 25], ['alarm', 25], ['C4bipping', 25], ['C4Explode', 25], ['camera', 25], ['eDoorOpen', 25], ['running', 25], ['bluePrint', 25], ['pistols', 25], ['ak47s', 25], ['uzis', 25], ['drill', 25], ['bgMusic', 25], ['shotguns', 25], ['silencers', 25], ['torch', 25], ['wDoorUnlocking', 25], ['wDoorOpen', 25], ['AAA', 25], ['EMP_sound', 25], ['gas_sound', 25]); var v2 = 0; while (v2 < this.Sounds.length) { this.SOUND[this.Sounds[v2][0]] = new Sound(); this.SOUND[this.Sounds[v2][0]].setVolume(this.Sounds[v2][1]); this.SOUND[this.Sounds[v2][0]].attachSound(this.Sounds[v2][0]); this.SOUND[this.Sounds[v2][0]].initalVol = this.Sounds[v2][1]; ++v2; } }; control.SoundController = v1; var v2 = v1.prototype; v2.playSound = function (soundName) { if (!this.off) { var v3 = this.SOUND[soundName].initalVol; this.SOUND[soundName].setVolume(v3 * this.volume / 100); this.SOUND[soundName].start(); this.currSound = soundName; } }; v2.playMusic = function (musicName) { trace('this.off ' + this.off); if (!this.off) { var v3 = this.SOUND[musicName].initalVol; this.SOUND[musicName].setVolume(v3 * this.volume / 100); this.SOUND[musicName].start(0, 32768); if (musicName != 'alarm') { this.currLoop = musicName; } } }; v2.stopSound = function (soundName) { this.SOUND[soundName].stop(soundName); }; v2.stopCurrentSound = function () { this.stopSound(this.currSound); }; v2.getSound = function (soundName) { return this.SOUND[soundName]; }; v2.stopLoops = function () { this.SOUND[this.currLoop].stop(this.currLoop); }; v2.playLoops = function () { if (!this.off) { var v2 = this.SOUND[this.currLoop].initalVol; this.SOUND[this.currLoop].setVolume(v2 * this.volume / 100); this.SOUND[this.currLoop].start(0, 32768); } }; v2.SOUND = new Object(); ASSetPropFlags(control.SoundController.prototype, null, 1); } #endinitclip } movieClip 6298 __Packages.mcs.Item { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Item) { var v1 = function (LinkID, Name, Type, Usage, Noise, Quantity, Price) { this.linkID = LinkID; this._Type = Type; this._Usage = Usage; this._Name = Name; this._Noise = Noise; this._Price = Price; this._Quantity = Quantity; }; mcs.Item = v1; var v2 = v1.prototype; v2.__get__Type = function () { return this._Type; }; v2.__get__Name = function () { return this._Name; }; v2.__get__Usage = function () { return this._Usage; }; v2.__set__Usage = function (usage) { this._Usage = usage; return this.__get__Usage(); }; v2.__get__Quantity = function () { return this._Quantity; }; v2.__set__Quantity = function (quantity) { this._Quantity = quantity; return this.__get__Quantity(); }; v2.__get__Noise = function () { return this._Noise; }; v2.__set__Noise = function (noise) { this._Noise = noise; return this.__get__Noise(); }; v2.__get__Price = function () { return this._Price; }; v2.__set__Price = function (prise) { this._Price = prise; return this.__get__Price(); }; v2.addProperty('Name', v2.__get__Name, function () {}); v2.addProperty('Noise', v2.__get__Noise, v2.__set__Noise); v2.addProperty('Price', v2.__get__Price, v2.__set__Price); v2.addProperty('Quantity', v2.__get__Quantity, v2.__set__Quantity); v2.addProperty('Type', v2.__get__Type, function () {}); v2.addProperty('Usage', v2.__get__Usage, v2.__set__Usage); ASSetPropFlags(mcs.Item.prototype, null, 1); } #endinitclip } frame 5 { stop(); } button 106 { on (press) { getURL('http://www.youdagames.com', '_blank'); } } movieClip 108 { } movieClip 111 { } movieClip 113 { } movieClip 115 { } movieClip 120 { } movieClip 125 { } movieClip 127 { } movieClip 131 { frame 99 { _root.gotoAndPlay('naintro'); } } movieClip 177 { } movieClip 178 { } movieClip 190 { } button 191 { on (release) { _global.rootgame.mode = 'blueprint'; _global.rootgame.Play(); } } movieClip 192 finishedLevelNoSafe_mc { frame 1 { stop(); this.moneyLost = _global.GAME.startLevelMoney - _global.GAME.money; this.yourMoney = _global.GAME.money; } instance of movieClip 178 { onClipEvent (release) { _global.rootgame.mode = 'menu'; _global.rootgame.Play(); } } } movieClip 194 { } movieClip 197 { } movieClip 201 { } movieClip 207 safeTimer_mc { frame 125 { stop(); } } movieClip 212 overalTime_mc { } movieClip 222 { } movieClip 225 { } movieClip 228 { } movieClip 229 alarmTimer_mc { frame 44 { stop(); } } movieClip 251 { } movieClip 252 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 255 { } movieClip 282 { } movieClip 284 controlbox { frame 11 { stop(); } frame 12 { stop(); } } movieClip 285 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 289 { } movieClip 293 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 296 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 298 { } movieClip 300 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 302 help_items_mc { } button 313 { on (release) { if (!_global.path.pause) { _global.stage.Pause(); } else { _global.stage.Play(); } } } movieClip 314 menu_btn_mc { frame 1 { stop(); } } movieClip 315 dropMine_mc { } movieClip 317 safe { } movieClip 319 unlockingFloor { } movieClip 322 alarmButton { frame 1 { stop(); } frame 23 { gotoAndPlay(6); } } movieClip 325 { } movieClip 326 { } movieClip 328 { } movieClip 329 LaserRot { } movieClip 331 { } movieClip 332 { } movieClip 333 exitlight { frame 1 { stop(); } frame 2 { stop(); } } movieClip 336 wooden { frame 1 { this.opened = false; stop(); } frame 7 { _global.GAME.sound.playSound('wDoorOpen'); } frame 17 { this.opened = true; stop(); } frame 18 { _global.GAME.sound.playSound('wDoorOpen'); } frame 19 { this.opened = false; } frame 34 { gotoAndStop(1); } } movieClip 338 { } movieClip 346 { } movieClip 347 { frame 16 { stop(); } } movieClip 349 metal { frame 1 { this.opened = false; stop(); } frame 2 { this.opened = false; stop(); } frame 3 { _global.GAME.sound.playSound('eDoorOpen'); } frame 11 { this.opened = true; stop(); } frame 17 { this.opened = false; } frame 17 { _global.GAME.sound.playSound('eDoorOpen'); } frame 23 { gotoAndPlay(1); } } movieClip 351 { } movieClip 353 LaserRedShort { frame 1 { stop(); } frame 10 { stop(); } } movieClip 355 { } movieClip 356 { } movieClip 357 LaserRedLong { } movieClip 358 LaserBlue { frame 1 { stop(); } } movieClip 362 { } movieClip 364 { } movieClip 367 { } movieClip 368 { frame 1 { } frame 14 { gotoAndPlay('false'); } frame 31 { gotoAndPlay('true'); } } movieClip 369 { } movieClip 370 camRot { } movieClip 373 { } movieClip 375 { } movieClip 377 { } movieClip 378 safeDoor { frame 1 { stop(); _global.path.safeDoorOpened = false; } frame 53 { stop(); _global.path.safeDoorOpened = true; } } movieClip 433 { } movieClip 434 tiefloor { frame 1 { stop(); } frame 2 { } frame 11 { gotoAndPlay('alarm'); } } movieClip 438 { } movieClip 505 { frame 3 { _global.GAME.sound.playSound('C4Explode'); } } movieClip 508 { } movieClip 509 explosive { frame 8 { _global.GAME.sound.playSound('C4bipping'); } frame 104 { stop(); } frame 139 { stop(); } } movieClip 511 cam2 { } movieClip 514 { } movieClip 515 camStatic { } movieClip 517 { } movieClip 518 { frame 1 { } frame 14 { gotoAndPlay('false'); } frame 31 { gotoAndPlay('true'); } } movieClip 519 { } movieClip 520 camSideStatic { } movieClip 523 { } movieClip 525 { } movieClip 527 { } movieClip 528 player4 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 530 { } movieClip 532 { } movieClip 533 player5 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 534 { } movieClip 536 { } movieClip 538 { } movieClip 539 player1 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 540 { } movieClip 542 { } movieClip 544 { } movieClip 545 player2 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 547 { } movieClip 549 { } movieClip 550 player3 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 552 { } movieClip 554 { } movieClip 597 { } movieClip 630 { frame 3 { _global.GAME.sound.playSound('deadBody'); } frame 16 { stop(); } } movieClip 669 { } movieClip 680 { } movieClip 682 { } movieClip 685 { frame 1 { _global.GAME.sound.playSound('ak47s'); } } movieClip 686 { } movieClip 687 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 688 policeMan { } movieClip 729 { frame 1 { stop(); } } movieClip 766 { } movieClip 813 { } movieClip 864 { frame 1 { _global.GAME.sound.playSound('deadBody'); } frame 38 { this._parent._parent.removeMovieClip(); stop(); } } movieClip 943 { frame 30 { gotoAndPlay(17); } } movieClip 996 { frame 51 { stop(); } } movieClip 1023 { frame 26 { stop(); } } movieClip 1036 { frame 25 { gotoAndPlay(15); } } movieClip 1043 { frame 5 { if (this._parent._parent._parent._weapon.Type == 3) { gotoAndPlay(6); } else { gotoAndStop(1); } } frame 15 { gotoAndStop(1); } } movieClip 1045 { } movieClip 1046 { frame 3 { if (_global.path.rob[_global.path.selrobID]._weapon.Type == 1) { _global.GAME.sound.stopSound('pistols'); _global.GAME.sound.playSound('pistols'); } if (_global.path.rob[_global.path.selrobID]._weapon.Type == 2) { _global.GAME.sound.stopSound('silencers'); _global.GAME.sound.playSound('silencers'); } if (_global.path.rob[_global.path.selrobID]._weapon.Type == 3) { _global.GAME.sound.stopSound('uzis'); _global.GAME.sound.playSound('uzis'); } } frame 4 { if (_global.path.rob[_global.path.selrobID]._weapon.Type == 3) { gotoAndPlay(5); } else { gotoAndStop(1); } } frame 10 { gotoAndStop(1); } } movieClip 1047 { frame 2 { position.gotoAndPlay(1); } frame 5 { if (_global.path.rob[_global.path.selrobID]._weapon.Type == 3) { gotoAndPlay(6); } else { gotoAndStop(1); } } frame 13 { gotoAndStop(1); } } movieClip 1064 { frame 21 { gotoAndStop(1); } } movieClip 1066 { } movieClip 1067 { frame 2 { _global.GAME.sound.stopSound('ak47s'); _global.GAME.sound.playSound('ak47s'); } frame 6 { _global.GAME.sound.playSound('ak47s'); } frame 10 { _global.GAME.sound.playSound('ak47s'); } frame 14 { _global.GAME.sound.playSound('ak47s'); } frame 18 { _global.GAME.sound.playSound('ak47s'); } frame 21 { _global.GAME.sound.playSound('ak47s'); gotoAndStop(1); } } movieClip 1068 { frame 2 { position.gotoAndPlay(1); } frame 23 { gotoAndStop(1); } } movieClip 1085 { frame 12 { gotoAndStop(1); } } movieClip 1087 { } movieClip 1088 { frame 2 { _global.GAME.sound.stopSound('shotguns'); _global.GAME.sound.playSound('shotguns'); } frame 13 { gotoAndStop(1); } } movieClip 1090 { } movieClip 1109 { frame 12 { gotoAndStop(1); } } movieClip 1110 { frame 2 { position.gotoAndPlay(1); } frame 6 { gotoAndStop(1); } } movieClip 1111 { 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 { gun.gotoAndPlay(1); } frame 10 { stop(); } frame 11 { ak47.gotoAndPlay(1); } frame 12 { stop(); } frame 13 { shotgun.gotoAndPlay(1); } frame 14 { stop(); } } movieClip 1113 { } movieClip 1115 { } movieClip 1116 Robber { instance body of movieClip 1111 { onClipEvent (load) { this.swapDepths(1000); } } } movieClip 1118 { } movieClip 1119 { } movieClip 1120 { } movieClip 1121 { } movieClip 1122 gas_mc { frame 1 { stop(); } frame 1 { trace('NAGORE'); } frame 5 { stop(); } frame 5 { trace('NADOLE'); } frame 10 { stop(); } frame 10 { trace('LEVO'); } frame 15 { stop(); } frame 15 { trace('DESNO'); } } movieClip 1149 emp_mc { } movieClip 1153 { } movieClip 1220 mine { frame 1 { stop(); } frame 4 { _global.GAME.sound.playSound('C4Explode'); } frame 35 { stop(); } } movieClip 1233 { } movieClip 1236 { frame 1 { this.swapDepths(10000); } } movieClip 1240 { frame 1 { this.swapDepths('100'); } } movieClip 1244 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1247 { } movieClip 1252 { } movieClip 1253 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1257 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1260 { } movieClip 1262 { frame 79 { this._parent.gotoAndPlay('epoint'); } } movieClip 1265 { } movieClip 1266 { frame 1 { this.swapDepths(6000); } } movieClip 1269 { } movieClip 1274 minigame_mc { frame 1 { if (_global.path.conditionType == 1) { this.counter_mc._visible = false; } else { this.counter_mc._visible = true; } } instance money21 of movieClip 1244 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money27._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money26 of movieClip 1244 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money31._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money20 of movieClip 1244 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money10._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money19 of movieClip 1244 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money14._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money1 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money6._visible) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } } instance money2 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money6._visible && !this._parent.money7._visible) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } } instance money3 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money8._visible && !this._parent.money7._visible) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } } instance money4 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money8._visible && !this._parent.money9._visible) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } } instance money5 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money9._visible) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } } instance money6 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } instance money7 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } instance money8 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } instance money9 of movieClip 1253 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.goldValue; ++_global.path.moneyTaken; } } instance money15 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money10._visible && !this._parent.money11._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money16 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money11._visible && !this._parent.money12._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money17 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money12._visible && !this._parent.money13._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money18 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money13._visible && !this._parent.money14._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money11 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money12 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money13 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money14 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money10 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money22 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money27._visible && !this._parent.money28._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money23 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money29._visible && !this._parent.money28._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money24 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money29._visible && !this._parent.money30._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money25 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { if (!this._parent.money30._visible && !this._parent.money31._visible) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } } instance money28 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money29 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money30 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money31 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1000); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } instance money27 of movieClip 1257 { onClipEvent (rollOver) { this.gotoAndStop(2); this.swapDepths(1100); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this._visible = false; _global.path.treasure += _global.path.moneyValue; ++_global.path.moneyTaken; } } frame 10 { var now = getTimer(); var now1 = getTimer(); var seconds = _global.path.Time; trace('this.counter ' + this.counter_mc); this.counter_mc.counter = seconds; trace('seconds ' + seconds); this.onEnterFrame = function () { if (_global.path.conditionType == 1) { if (_global.path.moneyTaken == 31) { gotoAndStop('exit'); delete onEnterFrame; } } else { if (getTimer() - now1 > 1000) { --seconds; if (seconds < 10) { this.counter_mc.counter = '0' + seconds; } else { this.counter_mc.counter = seconds; } trace('seconds ' + seconds); now1 = getTimer(); } if (getTimer() - now > _global.path.Time * 1000 || _global.path.moneyTaken == 31) { gotoAndStop('exit'); delete onEnterFrame; } } }; stop(); } frame 11 { this.counter_mc._visible = false; var i = 1; while (i <= 31) { this['money' + i]._visible = false; ++i; } stop(); } frame 70 { _global.path.game.minigameStarted = false; _global.path.exitlight.clip.gotoAndStop('exit'); stop(); } } movieClip 1285 { frame 1 { stop(); this.onPress = function () { _global.path.helpTips.clip._visible = false; _global.stage.helpTipsInterface._visible = false; gotoAndStop(2); }; } frame 2 { stop(); this.onPress = function () { _global.path.helpTips.clip._visible = true; _global.stage.helpTipsInterface._visible = true; gotoAndStop(1); }; } } movieClip 1286 DoorWooden { #initclip Object.registerClass('DoorWooden', mcs.Door); #endinitclip } movieClip 1377 { } movieClip 1436 { frame 22 { this.gotoAndPlay(7); } } movieClip 1438 { } movieClip 1439 { frame 5 { _global.GAME.sound.stopSound('pistols'); _global.GAME.sound.playSound('pistols'); } } movieClip 1440 { } movieClip 1443 { } movieClip 1478 { } movieClip 1529 { } movieClip 1564 { frame 5 { _root._parent.SOUND.playSound('deadBody'); } frame 17 { stop(); } } movieClip 1603 { frame 1 { stop(); } frame 28 { this._parent.gotoAndStop('fire'); } } movieClip 1642 { frame 1 { gotoAndPlay(8); } frame 20 { stop(); } } movieClip 1643 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 25 { stop(); } frame 30 { stop(); } frame 35 { stop(); } frame 41 { stop(); } frame 48 { stop(); } } movieClip 1644 { } movieClip 1645 { } movieClip 1646 Guard { } movieClip 1647 Stage { #initclip Object.registerClass('Stage', br.Stage); #endinitclip } movieClip 1649 meta { } movieClip 1652 { frame 1 { stop(); } } movieClip 1653 mouse_out { } movieClip 1667 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 1668 Cursors { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 6 { stop(); } } movieClip 1723 navigator { } movieClip 1734 { } movieClip 1736 { } movieClip 1739 { } movieClip 1743 { } movieClip 1744 { } movieClip 1746 { frame 1 { stop(); } instance of movieClip 1734 { onClipEvent (load) { trace('robBoreder= ' + this._parent._parent._name); var colorful = new Color(this); switch (this._parent._parent._name) { case 'rob1': colorful.setRGB(1142388); break; case 'rob2': colorful.setRGB(11017762); break; case 'rob3': colorful.setRGB(6925900); break; case 'rob4': colorful.setRGB(6370893); break; case 'rob5': colorful.setRGB(12997671); } } } instance of movieClip 1736 { onClipEvent (load) { var colorful = new Color(this); switch (this._parent._parent._name) { case 'rob1': colorful.setRGB(1142388); break; case 'rob2': colorful.setRGB(11017762); break; case 'rob3': colorful.setRGB(6925900); break; case 'rob4': colorful.setRGB(6370893); break; case 'rob5': colorful.setRGB(12997671); } } } instance of movieClip 1739 { onClipEvent (load) { var colorful = new Color(this); switch (this._parent._parent._name) { case 'rob1': colorful.setRGB(1142388); break; case 'rob2': colorful.setRGB(11017762); break; case 'rob3': colorful.setRGB(6925900); break; case 'rob4': colorful.setRGB(6370893); break; case 'rob5': colorful.setRGB(12997671); } } } frame 2 { stop(); } instance of movieClip 1744 { } } movieClip 1750 { } movieClip 1751 { } movieClip 1752 { frame 1 { } } movieClip 1754 { } movieClip 1755 { } movieClip 1756 { frame 1 { } } movieClip 1758 { } movieClip 1759 { } movieClip 1760 { frame 1 { } } movieClip 1762 { frame 1 { } } movieClip 1765 { } movieClip 1767 { } movieClip 1769 { instance item_mc of movieClip 1762 { onClipEvent (release) { var temp_mc1; removeMovieClip(this.rob_item_mc); if (this._parent.robbi.Item != undefined) { this._parent.robbi.Item = undefined; this._parent.robbi.doingAction = false; this._parent.robbi.ItemMovie.quantity_mc.itemNumber = Number(this._parent.robbi.ItemMovie.quantity_mc.itemNumber) + 1; if (_global.path.LevelNum == 1 && _global.path.currentPopUp == 6) { utils.Delegate.callDelayed(_global.path.helpTips[6], _global.path.helpTips[6].dettachPopUp, 5000); _global.path.helpTips[6].shown = 2; if (this._parent.robbi.room != 10) { _global.path.currentPopUp = 7; _global.path.helpTips[7].showPopUp(); } } } temp_mc1 = this._parent.item_mc.attachMovie(this._parent.robbi.Weapon._Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } instance image_mc of movieClip 1765 { onClipEvent (load) { var which = this._parent._name.substr(3, 1); trace('KOJ ROBBER broj= ' + which); var robber = 'char' + _global.selectedCharacters[Number(which)].picture; trace('KOJ ROBBER slika= ' + robber); this.attachMovie(robber, 'rob_img', 1); this.rob_img._xscale = 69; this.rob_img._yscale = 69; this.rob_img._y += 5; } onClipEvent (release) { var temp_mc; var i; i = Number(this._parent._name.substr(3, 1)); temp_mc = eval('_root.level_mc.' + this._parent._name); if (_root.level_mc.selrobID != i) { _root.level_mc['rob' + _root.level_mc.selrobID].Selected = false; if (_root.level_mc['rob' + _root.level_mc.selrobID].Health > 0) { } (eval('_root.level_mc.rob' + _root.level_mc.selrobID + '.player' + _root.level_mc.selrobID)).gotoAndStop('deselected'); _root.level_mc.selrobID = i; temp_mc.Selected = true; trace('_x= ' + temp_mc._x + '; _y= ' + temp_mc._y); trace('level_mc._x= ' + _root.level_mc._x + '; level_mc._y= ' + _root.level_mc._y); _root.centerStage(temp_mc); temp_mc['player' + _root.level_mc.selrobID].gotoAndStop('selected'); } } } instance nema_mc of movieClip 1767 { onClipEvent (load) { this._visible = false; } } } movieClip 1771 levelch_mc { frame 1 { var i = 1; while (i <= 5) { if (_global.path.game.numOfrobs < i) { this['rob' + i]._visible = false; } ++i; } stop(); } instance rob1 of movieClip 1769 { onClipEvent (load) { var robbi = _global.path.rob[1]; this.Unlocking.skill_mc.bar_mc._xscale = robbi.Unlocking * 10; this.Shooting.skill_mc.bar_mc._xscale = robbi.Shooting * 10; this.Electronics.skill_mc.bar_mc._xscale = robbi.Electronics * 10; this.Explosives.skill_mc.bar_mc._xscale = robbi.Explosives * 10; this.Health.h_bar.bar._xscale = robbi.Health; this.Running.r_bar.bar._xscale = robbi.Running; this.Num = 1; var temp_mc = this.image_mc.attachMovie(robbi.image, 'image', 10, {'_x': 0, '_y': 0}); temp_mc._xscale = 60; temp_mc._yscale = 60; var temp_mc1 = this.item_mc.attachMovie(robbi.Weapon._Name, 'rob_item_mc', 10, {'_x': 0, '_y': 2}); temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } instance rob2 of movieClip 1769 { onClipEvent (load) { var robbi = _global.path.rob[2]; this.Unlocking.skill_mc.bar_mc._xscale = robbi.Unlocking * 10; this.Shooting.skill_mc.bar_mc._xscale = robbi.Shooting * 10; this.Electronics.skill_mc.bar_mc._xscale = robbi.Electronics * 10; this.Explosives.skill_mc.bar_mc._xscale = robbi.Explosives * 10; this.Health.h_bar.bar._xscale = robbi.Health; this.Running.r_bar.bar._xscale = robbi.Running; this.Num = 2; var temp_mc = this.image_mc.attachMovie(robbi.image, 'image', 10, {'_x': 0, '_y': 0}); temp_mc._xscale = 60; temp_mc._yscale = 60; var temp_mc1 = this.item_mc.attachMovie(robbi.Weapon._Name, 'rob_item_mc', 10, {'_x': 0, '_y': 2}); temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } instance rob3 of movieClip 1769 { onClipEvent (load) { var robbi = _global.path.rob[3]; this.Unlocking.skill_mc.bar_mc._xscale = robbi.Unlocking * 10; this.Shooting.skill_mc.bar_mc._xscale = robbi.Shooting * 10; this.Electronics.skill_mc.bar_mc._xscale = robbi.Electronics * 10; this.Explosives.skill_mc.bar_mc._xscale = robbi.Explosives * 10; this.Health.h_bar.bar._xscale = robbi.Health; this.Running.r_bar.bar._xscale = robbi.Running; this.Num = 3; var temp_mc = this.image_mc.attachMovie(robbi.image, 'image', 10, {'_x': 0, '_y': 0}); temp_mc._xscale = 60; temp_mc._yscale = 60; var temp_mc1 = this.item_mc.attachMovie(robbi.Weapon._Name, 'rob_item_mc', 10, {'_x': 0, '_y': 2}); temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } instance rob4 of movieClip 1769 { onClipEvent (load) { var robbi = _global.path.rob[4]; this.Unlocking.skill_mc.bar_mc._xscale = robbi.Unlocking * 10; this.Shooting.skill_mc.bar_mc._xscale = robbi.Shooting * 10; this.Electronics.skill_mc.bar_mc._xscale = robbi.Electronics * 10; this.Explosives.skill_mc.bar_mc._xscale = robbi.Explosives * 10; this.Health.h_bar.bar._xscale = robbi.Health; this.Running.r_bar.bar._xscale = robbi.Running; this.Num = 4; var temp_mc = this.image_mc.attachMovie(robbi.image, 'image', 10, {'_x': 0, '_y': 0}); temp_mc._xscale = 60; temp_mc._yscale = 60; var temp_mc1 = this.item_mc.attachMovie(robbi.Weapon._Name, 'rob_item_mc', 10, {'_x': 0, '_y': 2}); temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } instance rob5 of movieClip 1769 { onClipEvent (load) { var robbi = _global.path.rob[5]; this.Unlocking.skill_mc.bar_mc._xscale = robbi.Unlocking * 10; this.Shooting.skill_mc.bar_mc._xscale = robbi.Shooting * 10; this.Electronics.skill_mc.bar_mc._xscale = robbi.Electronics * 10; this.Explosives.skill_mc.bar_mc._xscale = robbi.Explosives * 10; this.Health.h_bar.bar._xscale = robbi.Health; this.Running.r_bar.bar._xscale = robbi.Running; this.Num = 5; var temp_mc = this.image_mc.attachMovie(robbi.image, 'image', 10, {'_x': 0, '_y': 0}); temp_mc._xscale = 60; temp_mc._yscale = 60; var temp_mc1 = this.item_mc.attachMovie(robbi.Weapon._Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } } movieClip 1775 { } movieClip 1779 { } movieClip 1780 { } movieClip 1782 { } movieClip 1783 { instance of movieClip 1782 { onClipEvent (load) { this._visible = false; } } } movieClip 1784 { instance of movieClip 1782 { onClipEvent (load) { this._visible = false; } } instance items_mc of movieClip 1783 { onClipEvent (load) { var dist = 0; var x = 100; var y = -135; var temp_mc; var temp_item_mc; var i = 1; while (i < _global.GAME.invenrtory.length) { var itemName; itemName = 'none'; itemName = _global.GAME.invenrtory[i].linkID; if (itemName != 'none') { temp_mc = this.attachMovie('item_bck', 'item_bck' + i, this.getNextHighestDepth(), {'_x': -125 + dist, '_y': y}); temp_item_mc = temp_mc.attachMovie(String(itemName), String('item_mc'), this.getNextHighestDepth(), {'_x': -2, '_y': 0}); temp_item_mc._xscale = 70; temp_item_mc._yscale = 70; temp_item_mc.stop(); temp_mc.item = _global.GAME.invenrtory[i]; temp_mc.quantity_mc.itemNumber = _global.GAME.invenrtory[i].Quantity; dist += 50; if (dist > 80) { y += 50; dist = 0; } } ++i; } } } } movieClip 1785 panel_item_mc { } movieClip 1786 { } movieClip 1791 { } movieClip 1792 { } movieClip 1795 { } button 1796 { on (release) { this.gotoAndStop(2); if (_global.path.LevelNum == 1 && _global.path.currentPopUp <= 3) { _global.path.helpTips[3].dettachPopUp(); _global.path.helpTips[3].shown = 2; _global.path.currentPopUp = 4; _global.path.helpTips[4].dettachPrevisious(); _global.path.helpTips[4].shown = 0; _global.path.helpTips[4].showPopUp(); } } } button 1797 { on (release) { this.gotoAndStop(1); } } movieClip 1798 toolButton { frame 1 { panelItem._visible = false; stop(); } frame 2 { panelItem._visible = true; stop(); } } movieClip 1879 { } button 1881 { on (rollOver) { if (!_global.GAME.levelLoaded) { ogledalo.play(); _global.GAME.openPopUp('pop_up14', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { ogledalo.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(14); } } } movieClip 1882 item14 { instance ogledalo of movieClip 1879 { onClipEvent (load) { this.stop(); } } } movieClip 1923 { } button 1924 { on (rollOver) { if (!_global.GAME.levelLoaded) { red_card.play(); _global.GAME.openPopUp('pop_up16', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { red_card.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 1925 item16 { instance red_card of movieClip 1923 { onClipEvent (load) { this.stop(); } } } movieClip 1968 land_mine { frame 1 { stop(); } } button 1969 { on (rollOver) { if (!_global.GAME.levelLoaded) { landMine.play(); _global.GAME.openPopUp('pop_up19', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { landMine.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 1970 item19 { } movieClip 1972 starce_mc { } movieClip 1980 ex { } movieClip 2059 silencer { } movieClip 2138 shotgun { } movieClip 2217 ak47 { } movieClip 2296 pistol { } movieClip 2375 uzi { } movieClip 2454 gas { } movieClip 2535 card { } movieClip 2614 masterkey { frame 1 { } } movieClip 2707 screw { } movieClip 2788 c4 { } movieClip 2789 { } button 2790 { on (rollOver) { if (!_global.GAME.levelLoaded) { c4.play(); _global.GAME.openPopUp('pop_up7', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { c4.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 2791 item7 { instance c4 of movieClip 2789 { onClipEvent (load) { this.stop(); } } } movieClip 2870 { } button 2871 { on (rollOver) { if (!_global.GAME.levelLoaded) { gas.play(); _global.GAME.openPopUp('pop_up18', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { gas.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(18); } } } movieClip 2872 item18 { instance gas of movieClip 2870 { onClipEvent (load) { this.stop(); } } } movieClip 2951 { } button 2952 { on (rollOver) { if (!_global.GAME.levelLoaded) { master.play(); _global.GAME.openPopUp('pop_up5', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { master.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(4); } } } movieClip 2953 item4 { instance master of movieClip 2951 { onClipEvent (load) { this.stop(); } } } movieClip 3046 { } button 3047 { on (rollOver) { if (!_global.GAME.levelLoaded) { screw.play(); _global.GAME.openPopUp('pop_up2', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { screw.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(2); } } } movieClip 3048 item2 { instance screw of movieClip 3046 { onClipEvent (load) { this.stop(); } } } button 3049 { on (rollOver) { if (!_global.GAME.levelLoaded) { master3.play(); _global.GAME.openPopUp('pop_up4', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { master3.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(5); } } } movieClip 3050 item5 { instance master3 of movieClip 2951 { onClipEvent (load) { this.stop(); } } } button 3051 { on (rollOver) { if (!_global.GAME.levelLoaded) { master2.play(); _global.GAME.openPopUp('pop_up3', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { master2.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(3); } } } movieClip 3052 item3 { instance master2 of movieClip 2951 { onClipEvent (load) { this.stop(); } } } movieClip 3133 { } button 3134 { on (rollOver) { if (!_global.GAME.levelLoaded) { card.play(); _global.GAME.openPopUp('pop_up1', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { card.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(1); } } } movieClip 3135 { } movieClip 3137 { frame 1 { stop(); } frame 22 { stop(); } } movieClip 3138 item1 { instance card of movieClip 3133 { onClipEvent (load) { this.stop(); } } } movieClip 3219 { } button 3220 { on (rollOver) { if (!_global.GAME.levelLoaded) { dinamit.play(); _global.GAME.openPopUp('pop_up8', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { dinamit.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(8); } } } movieClip 3221 item8 { instance dinamit of movieClip 3219 { onClipEvent (load) { this.stop(); } } } movieClip 3302 { } button 3303 { on (rollOver) { if (!_global.GAME.levelLoaded) { drill.play(); _global.GAME.openPopUp('pop_up10', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { drill.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 3304 item10 { instance drill of movieClip 3302 { onClipEvent (load) { this.stop(); } } } movieClip 3385 { } button 3386 { on (rollOver) { if (!_global.GAME.levelLoaded) { elDevice.play(); _global.GAME.openPopUp('pop_up11', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { elDevice.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 3387 item11 { instance elDevice of movieClip 3385 { onClipEvent (load) { this.stop(); } } } movieClip 3468 { } button 3469 { on (rollOver) { if (!_global.GAME.levelLoaded) { dinamit7.play(); _global.GAME.openPopUp('pop_up9', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { dinamit7.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 3470 item9 { instance dinamit7 of movieClip 3468 { onClipEvent (load) { this.stop(); } } } movieClip 3551 { } button 3552 { on (rollOver) { if (!_global.GAME.levelLoaded) { torch.play(); _global.GAME.openPopUp('pop_up17', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { torch.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 3553 item17 { instance torch of movieClip 3551 { onClipEvent (load) { this.stop(); } } } movieClip 3634 { } button 3635 { on (rollOver) { if (!_global.GAME.levelLoaded) { elDevice_1.play(); _global.GAME.openPopUp('pop_up13', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { elDevice_1.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 3636 item13 { instance elDevice_1 of movieClip 3634 { onClipEvent (load) { this.stop(); } } } movieClip 3651 { } movieClip 3692 { } movieClip 3711 { } movieClip 3718 { } movieClip 3719 { } movieClip 3721 { } button 3723 { on (press) { getURL('http://www.youdagames.com/shop/', '_blank'); } } movieClip 3724 { frame 1 { stop(); start_btn.onPress = function () { this._parent._parent.gotoAndStop('startGame'); trace('newGame'); }; } } movieClip 3727 { } movieClip 3737 { } button 3738 { on (release) { this.gotoAndStop('instructions'); } } movieClip 3741 { } movieClip 3751 { } movieClip 3758 { } button 3759 { on (release) { this.gotoAndStop('options'); } } movieClip 3762 { } button 3771 { on (release) { _global.GAME.mode = 'endDemo'; _global.GAME.Play(); } } button 3772 { on (release) { _global.rootgame.mode = 'new'; _global.rootgame.Play(); } } button 3778 { on (release) { getURL(_root.weblink, '_blank'); } } button 3779 { on (release) { getURL(_root.weblink, '_blank'); } } movieClip 3782 { } movieClip 3791 { } movieClip 3798 { } movieClip 3801 { } movieClip 3802 { frame 1 { if (_global.GAME.levelLoaded) { var snd = _global.GAME.sound.getSound('bgMusic'); } else { var snd = _global.GAME.sound.getSound('mainTheme'); } vol = snd.getVolume(); tempBar = _global.GAME.sound.volume; vBar_mc._xscale = _global.GAME.sound.volume; minus.onPress = function () { if (tempBar > 0) { vBar_mc._xscale -= 25; tempBar -= 25; _global.GAME.sound.volume = tempBar; snd.setVolume(snd.initalVol * tempBar / 100); } }; plus.onPress = function () { if (tempBar < 100) { vBar_mc._xscale += 25; tempBar += 25; _global.GAME.sound.volume = tempBar; snd.setVolume(snd.initalVol * tempBar / 100); } }; } } movieClip 3812 { } button 3813 { on (release) { this.gotoAndStop('mainMenu'); } } movieClip 3850 { } movieClip 3852 { } movieClip 3853 { frame 1 { stop(); } frame 2 { stop(); } } button 3855 { on (release) { soundFX.gotoAndStop(1); _global.GAME.sound.off = false; _global.GAME.sound.playLoops(); } } button 3856 { on (release) { soundFX.gotoAndStop(2); _global.GAME.sound.off = true; _global.GAME.sound.stopLoops(); } } movieClip 3866 { } movieClip 3869 { } movieClip 3872 { } movieClip 3881 { } button 3882 { on (release) { this.gotoAndStop('instructions2'); } } button 3883 { on (release) { this.gotoAndStop('instructions'); } } button 3884 { on (release) { this.gotoAndStop('instructions3'); } } movieClip 3903 { } movieClip 3905 { } movieClip 3906 { } button 3907 { on (release) { this.gotoAndStop('instructions2'); } } button 3908 { on (release) { this.gotoAndStop('instrctions4'); } } movieClip 3923 { } movieClip 3925 { } movieClip 3928 { } movieClip 3931 { } movieClip 3935 { } movieClip 3937 { } movieClip 4018 { } movieClip 4099 { } movieClip 4180 { } movieClip 4259 { } movieClip 4260 { } movieClip 4261 { } movieClip 4262 { } movieClip 4263 { } button 4264 { on (release) { this.gotoAndStop('instructions3'); } } button 4265 { on (release) { this.gotoAndStop('instructions5'); } } movieClip 4307 { } movieClip 4309 { } movieClip 4310 { } movieClip 4311 { } button 4312 { on (release) { this.gotoAndStop('instrctions4'); } } button 4313 { on (release) { this.gotoAndStop('instructions6'); } } movieClip 4327 { frame 1 { this.onEnterFrame = function () { if (coolOff == true) { gotoAndStop(prevFrame); } }; } frame 1 { stop(); } frame 13 { if (_root.level_mc.soundMeter.getNumOfGuardsHearing() == 0) { coolOff = true; } gotoAndPlay(11); } frame 25 { if (_root.level_mc.soundMeter.getNumOfGuardsHearing() == 0) { } gotoAndPlay(23); } frame 37 { gotoAndPlay(35); stop(); } } movieClip 4331 { } movieClip 4333 { } movieClip 4335 { frame 1 { stop(); } frame 13 { stop(); } frame 25 { stop(); } frame 36 { stop(); } frame 37 { stop(); } frame 37 { stop(); } } movieClip 4337 { } movieClip 4338 { instance soundmeter of movieClip 4327 { onClipEvent (enterFrame) { if (_root.level_mc.soundMeter.getNumOfGuardsHearing() == 0) { this.gotoAndPlay('level0'); } else { if (_root.level_mc.soundMeter.getNumOfGuardsHearing() == 1) { this.gotoAndPlay('level1'); } else { if (_root.level_mc.soundMeter.getNumOfGuardsHearing() == 2) { this.gotoAndPlay('level2'); } else { if (_root.level_mc.soundMeter.getNumOfGuardsHearing() == 3) { this.gotoAndPlay('level3'); } this.stop(); } } } } onClipEvent (load) { this.coolOff = true; this.swapDepths(16151); } } instance alarmMeter of movieClip 4335 { onClipEvent (load) { this.swapDepths(16152); } onClipEvent (enterFrame) { var alarm; alarm = _root.level_mc.alarmMeter.getAlarmLevel(); if (alarm == 0) { this.gotoAndStop(1); } if (alarm == 1) { this.gotoAndStop(13); } if (alarm == 2) { this.gotoAndStop(25); } if (alarm == 3) { this.gotoAndStop(36); } if (alarm == 4) { this.gotoAndStop(37); } } } } button 4339 { on (release) { this.gotoAndStop('instructions5'); } } button 4340 { on (release) { this.gotoAndStop('instructions7'); } } movieClip 4348 { } movieClip 4350 { } movieClip 4352 { } movieClip 4353 { } movieClip 4354 { frame 1 { } frame 14 { gotoAndPlay('false'); } frame 31 { gotoAndPlay('true'); } } movieClip 4355 { } movieClip 4356 { } movieClip 4358 { } movieClip 4359 lasersaaa { frame 1 { stop(); } frame 10 { stop(); } } movieClip 4361 { } movieClip 4362 { } movieClip 4363 { frame 1 { stop(); } } movieClip 4494 { } movieClip 4495 { instance cam1 of movieClip 4356 { onClipEvent (load) { this.stop(); } } } button 4496 { on (release) { this.gotoAndStop('instructions6'); } } button 4497 { on (release) { this.gotoAndStop('mainMenu'); } } movieClip 4522 { } movieClip 4621 { } movieClip 4622 { frame 16 { stop(); } frame 34 { stop(); } } movieClip 4623 BRintro_mc { } movieClip 4631 soundmeter { frame 1 { stop(); } frame 13 { gotoAndPlay(11); } frame 25 { gotoAndPlay(23); } frame 37 { gotoAndPlay(35); } } movieClip 4637 { } movieClip 4644 { } movieClip 4647 { } movieClip 4648 { } movieClip 4650 alarmmeter { frame 1 { stop(); } frame 13 { stop(); } frame 25 { stop(); } frame 36 { stop(); gotoAndPlay(nextFrame); } frame 37 { stop(); gotoAndPlay(prevFrame); } } movieClip 4662 { } button 4679 { on (release) { play(); } } movieClip 4682 { } button 4687 { on (release) { play(); } } movieClip 4692 { } movieClip 4699 { } movieClip 4707 { frame 137 { stop(); } } movieClip 4720 { } button 4740 { on (release) { _global.rootgame.mode = 'blueprint'; _global.rootgame.Play(); } } movieClip 4742 { frame 180 { stop(); } frame 340 { stop(); } frame 518 { stop(); } frame 527 { stop(); } } movieClip 4743 strip { instance of movieClip 4662 { onClipEvent (release) { _global.rootgame.mode = 'blueprint'; _global.rootgame.Play(); } } frame 329 { stop(); } frame 556 { stop(); } frame 715 { stop(); } frame 737 { gotoAndPlay(846); } frame 846 { stop(); } } movieClip 4754 { } button 4755 { on (release) { _global.rootgame.mode = 'menu'; _global.rootgame.Play(); } } movieClip 4762 { } movieClip 4765 { } movieClip 4767 { } movieClip 4768 { } movieClip 4772 { } movieClip 4774 { } button 4776 { on (rollOver) { this.gotoAndPlay('start'); trace('start'); } on (rollOut) { this.gotoAndPlay('end'); trace('end'); } } movieClip 4778 { } movieClip 4779 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4781 { } button 4782 { on (rollOver) { this.gotoAndPlay('start'); } on (rollOut) { this.gotoAndPlay('end'); } } movieClip 4783 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4785 { } movieClip 4786 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4787 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4788 { } movieClip 4789 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4790 BluePrint_1 { } movieClip 4793 { } movieClip 4797 { } movieClip 4799 { } movieClip 4800 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4801 BluePrint_2 { } movieClip 4804 { } movieClip 4808 { } movieClip 4809 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4811 { } movieClip 4812 { frame 1 { stop(); } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4813 BluePrint_3 { } movieClip 4814 Blueprint_mc { frame 1 { stop(); } instance of movieClip 4762 { onClipEvent (release) { _global.rootgame.mode = 'charSelection'; _global.rootgame.Play(); } } 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 4823 InterfaceBg_mc { } movieClip 4831 { } movieClip 4832 { } movieClip 4836 { } movieClip 4843 { } movieClip 4846 { } movieClip 4848 { } movieClip 4850 { } movieClip 4852 { } movieClip 4853 { } movieClip 4878 { } movieClip 4881 { } movieClip 4892 { frame 1 { stop(); } } movieClip 4893 { } movieClip 4894 { frame 1 { stop(); } instance characters_mc of movieClip 4893 { onClipEvent (load) { function order(a, b) { var v2 = a.weigth; var v1 = b.weigth; if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } var distance = 0; var sum = new Array(); var i = 0; while (i < 7) { var tempo_mc = this.attachMovie('ch_over', 'chOver_mc' + i, this.getNextHighestDepth(), {'_x': -303 + distance, '_y': -30}); var Char = this['chOver_mc' + i]; var Path = _global.rootgame.Characters[i]; tempo_mc.Character = Path; Char.charName = Path.nickName; Char.selected_ = false; var tempChar_mc = Char.attachMovie('char' + Path.picture, String('char' + i + '_mc'), this.getNextHighestDepth(), {'_x': -1.5, '_y': -12}); tempo_mc.nickName = Path.nickName; tempo_mc.unlocking = Path.unlocking; tempo_mc.shooting = Path.shooting; tempo_mc.electronic = Path.electronic; tempo_mc.explosives = Path.explosives; tempo_mc.weapon = Path.weapon; tempo_mc.comment_mc.commentar = Path.hint; tempo_mc.avaible = true; sum[i] = new Object(); sum[i].weigth = Path.unlocking + Path.shooting + Path.electronic + Path.electronic; sum[i].char = tempo_mc; var bar = this._parent._parent.chHolder.bars_mc; var cHolder = this._parent._parent.chHolder; tempo_mc.btnce.onRollOver = function () { ++i; var v2 = this._parent.weapon.Name; bar.unlock._xscale = Number(this._parent.unlocking) * 10; bar.shoot._xscale = Number(this._parent.shooting) * 10; bar.hack._xscale = Number(this._parent.electronic) * 10; bar.breaking._xscale = Number(this._parent.explosives) * 10; cHolder.weapon_mc.attachMovie(v2, 'weapon_item_mc', 16000, {'_x': 0, '_y': -30}); cHolder.weapon_mc.weaponName = v2; }; tempo_mc.btnce.onRollOut = function () { removeMovieClip(cHolder.weapon_mc.weapon_item_mc); cHolder.weapon_mc.weaponName = ''; }; tempChar_mc._xscale = 63; tempChar_mc._yscale = 61; Char.picture = Path.picture; Char.clip = i; distance += 99.8; ++i; } sum.sort(order, Array.DESCENDING); var i = 0; while (i < 4) { sum[i].char.avaible = false; this.attachMovie('fvCharMask', 'fvCharMask' + i, this.getNextHighestDepth(), {'_x': sum[i].char._x - 2, '_y': sum[i].char._y - 16}); ++i; } } } } button 4896 { on (release) { if (this._visible) { this.used = false; this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID].selected_ = false; removeMovieClip('chars_mc'); this._parent.selName_5 = ''; trace('Path' + this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID]); trace('CH OVER:chOver_mc' + this.ID); trace('ID Gore:' + this.ID); } } } movieClip 4897 { frame 1 { var character; stop(); } } button 4898 { on (release) { if (this._visible) { this.used = false; this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID].selected_ = false; removeMovieClip('chars_mc'); this._parent.selName_4 = ''; trace('Path' + this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID]); trace('CH OVER:chOver_mc' + this.ID); trace('ID Gore:' + this.ID); } } } movieClip 4899 { frame 1 { var character; stop(); } } button 4900 { on (release) { if (this._visible) { this.used = false; this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID].selected_ = false; removeMovieClip('chars_mc'); this._parent.selName_3 = ''; trace('Path' + this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID]); trace('CH OVER:chOver_mc' + this.ID); trace('ID Gore:' + this.ID); } } } movieClip 4901 { frame 1 { var character; stop(); } } button 4902 { on (release) { if (this._visible) { this.used = false; this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID].selected_ = false; removeMovieClip('chars_mc'); this._parent.selName_2 = ''; trace('Path' + this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID]); trace('CH OVER:chOver_mc' + this.ID); trace('ID Gore:' + this.ID); } } } movieClip 4903 { frame 1 { var character; stop(); } } button 4904 { on (release) { if (this._visible) { this.used = false; this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID].selected_ = false; removeMovieClip('chars_mc'); this._parent.selName_1 = ''; trace('CH OVER:chOver_mc' + this.ID); trace('GORE Selected:' + this._parent._parent.chHolder.characters_mc['chOver_mc' + this.ID].selected_); } } } movieClip 4905 { frame 1 { var character; stop(); } } movieClip 4912 { } movieClip 4914 { } movieClip 4916 { } movieClip 4918 { } movieClip 4920 { } movieClip 4921 { instance sel5 of movieClip 4897 { onClipEvent (load) { this.used = false; } } instance sel4 of movieClip 4899 { onClipEvent (load) { this.used = false; } } instance sel3 of movieClip 4901 { onClipEvent (load) { this.used = false; } } instance sel2 of movieClip 4903 { onClipEvent (load) { this.used = false; } } instance sel1 of movieClip 4905 { onClipEvent (load) { this.used = false; } } } button 4922 { on (release) { _global.rootgame.mode = 'blueprint'; _global.rootgame.Play(); } } button 4923 { on (release) { var selRobCount = 0; var i = 1; while (i <= 5) { if (this.selected['sel' + i].used == true) { ++selRobCount; } ++i; } if (selRobCount == _global.GAME.LevelPlayers[_global.GAME.Level]) { var i = 1; while (i <= selRobCount) { _global.GAME.selectedCharacters[i] = this.selected['sel' + i].character; ++i; } _global.rootgame.mode = 'itemSelection'; _global.rootgame.Play(); } } } movieClip 4924 charSelection_mc { frame 1 { _global.GAME.selectedCharacters.splice(0); var i = 1; while (i <= 5) { this.selected['sel' + i].used = false; if (i > _global.GAME.LevelPlayers[_global.GAME.Level]) { this.selected['sel' + i]._visible = false; this.selected['ram' + i]._visible = false; } ++i; } } } movieClip 4926 { } movieClip 4929 { } movieClip 4931 character_comment_mc { frame 1 { text_mc._visible = false; } instance of movieClip 4926 { onClipEvent (load) { this._visible = false; } } frame 6 { text_mc._visible = true; } frame 22 { stop(); } frame 32 { stop(); } } movieClip 4934 { } button 4935 { on (release) { this.gotoAndStop('end'); if (this.selected_ == false && this.avaible) { select(this.Character); } } on (rollOver) { showComment(this.Character); } on (rollOut) { hideComment(); } on (releaseOutside) { hideComment(); } } movieClip 4936 ch_over { frame 1 { function select(chars) { var v4; var v3 = this._parent._parent._parent; var v2 = 1; while (v2 <= 5) { if (v3.selected['sel' + v2].used == false && v3.selected['sel' + v2]._visible) { v4 = v3.selected['sel' + v2].attachMovie('char' + chars.picture, 'chars_mc', 10, {'_x': 0, '_y': 2}); v3.selected['sel' + v2].character = chars; v3.selected['selName_' + v2] = this.charName; v4._xscale = 63; v4._yscale = 61; v3.selected['sel' + v2].used = true; v3.selected['sel' + v2].ID = this.clip; this.selected_ = true; break; } ++v2; } } function showComment(char) { comment = this.attachMovie('character_comment_mc', 'characterComment', this.getNextHighestDepth(), {'_x': 144, '_y': -85}); comment.text_mc.text = char.hint; } function hideComment() { this.characterComment.removeMovieClip(); } var comment; stop(); } } button 4945 { on (release) { if (this.avaible) { this._parent.select(this.clip); } } } movieClip 4951 { } movieClip 4953 { } movieClip 4954 buy_item { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4955 { } movieClip 4958 pop_up7 { frame 1 { label_txt._visible = false; desc_txt._visible = false; } frame 8 { label_txt._visible = true; desc_txt._visible = true; } frame 16 { label_txt._visible = true; desc_txt._visible = true; } frame 22 { stop(); } frame 26 { this.removeMovieClip(); } } movieClip 4968 { } movieClip 4973 { } movieClip 4977 { } movieClip 4981 { } movieClip 4985 { } movieClip 4989 { } movieClip 4993 { } button 4994 { on (release) { var path = this._parent._parent._parent; path.mcHolder.itemsHolder_mc['buyItem' + this.buy1.ID].chosed = false; _root.WarningPopUp.removeMovieClip(); if (this.buy1.used) { vratiPari(this.buy1.items_mc.item._Price); trace('this.items_mc.item._Type = ' + this.buy1.items_mc.item._Type); if (this.buy1.items_mc.item.Quantity > 0) { --this.buy1.items_mc.item.Quantity; buy1.itemQuantity = this.buy1.items_mc.item.Quantity; } if (this.buy1.items_mc.item.Quantity == 0) { this.buy1.used = false; this.buy1.itemName = 'NAME'; this.buy1.money = '0'; removeMovieClip(this.buy1.items_mc); } checkNecessaryItems(); trace('this.buy1.items_mc.item.Quantity ' + this.buy1.items_mc.item.Quantity); } } } button 4995 { on (release) { var path = this._parent._parent._parent; path.mcHolder.itemsHolder_mc['buyItem' + this.buy2.ID].chosed = false; _root.WarningPopUp.removeMovieClip(); if (this.buy2.used) { vratiPari(this.buy2.items_mc.item._Price); trace('this.items_mc.item._Type = ' + this.buy2.items_mc.item._Type); if (this.buy2.items_mc.item.Quantity > 0) { --this.buy2.items_mc.item.Quantity; buy2.itemQuantity = this.buy2.items_mc.item.Quantity; } if (this.buy2.items_mc.item.Quantity == 0) { this.buy2.used = false; this.buy2.itemName = 'NAME'; this.buy2.money = '0'; removeMovieClip(this.buy2.items_mc); } checkNecessaryItems(); trace('this.buy2.items_mc.item.Quantity ' + this.buy2.items_mc.item.Quantity); } } } button 4996 { on (release) { var path = this._parent._parent._parent; path.mcHolder.itemsHolder_mc['buyItem' + this.buy3.ID].chosed = false; _root.WarningPopUp.removeMovieClip(); if (this.buy3.used) { vratiPari(this.buy3.items_mc.item._Price); trace('this.items_mc.item._Type = ' + this.buy3.items_mc.item._Type); if (this.buy3.items_mc.item.Quantity > 0) { --this.buy3.items_mc.item.Quantity; buy3.itemQuantity = this.buy3.items_mc.item.Quantity; } if (this.buy3.items_mc.item.Quantity == 0) { this.buy3.used = false; this.buy3.itemName = 'NAME'; this.buy3.money = '0'; removeMovieClip(this.buy3.items_mc); } checkNecessaryItems(); trace('this.buy3.items_mc.item.Quantity ' + this.buy3.items_mc.item.Quantity); } } } button 4997 { on (release) { var path = this._parent._parent._parent; path.mcHolder.itemsHolder_mc['buyItem' + this.buy4.ID].chosed = false; _root.WarningPopUp.removeMovieClip(); if (this.buy4.used) { vratiPari(this.buy4.items_mc.item._Price); trace('this.items_mc.item._Type = ' + this.buy4.items_mc.item._Type); if (this.buy4.items_mc.item.Quantity > 0) { --this.buy4.items_mc.item.Quantity; buy4.itemQuantity = this.buy4.items_mc.item.Quantity; } if (this.buy4.items_mc.item.Quantity == 0) { this.buy4.used = false; this.buy4.itemName = 'NAME'; this.buy4.money = '0'; removeMovieClip(this.buy4.items_mc); } checkNecessaryItems(); trace('this.buy1.items_mc.item.Quantity ' + this.buy4.items_mc.item.Quantity); } } } button 4998 { on (release) { var path = this._parent._parent._parent; path.mcHolder.itemsHolder_mc['buyItem' + this.buy5.ID].chosed = false; _root.WarningPopUp.removeMovieClip(); if (this.buy5.used) { vratiPari(this.buy5.items_mc.item._Price); trace('this.items_mc.item._Type = ' + this.buy5.items_mc.item._Type); if (this.buy5.items_mc.item.Quantity > 0) { --this.buy5.items_mc.item.Quantity; buy5.itemQuantity = this.buy5.items_mc.item.Quantity; } if (this.buy5.items_mc.item.Quantity == 0) { this.buy5.used = false; this.buy5.itemName = 'NAME'; this.buy5.money = '0'; removeMovieClip(this.buy5.items_mc); } checkNecessaryItems(); trace('this.buy5.items_mc.item.Quantity ' + this.buy5.items_mc.item.Quantity); } } } button 4999 { on (release) { var path = this._parent._parent._parent; path.mcHolder.itemsHolder_mc['buyItem' + this.buy6.ID].chosed = false; _root.WarningPopUp.removeMovieClip(); if (this.buy6.used) { vratiPari(this.buy6.items_mc.item._Price); trace('this.items_mc.item._Type = ' + this.buy6.items_mc.item._Type); if (this.buy6.items_mc.item.Quantity > 0) { --this.buy6.items_mc.item.Quantity; buy6.itemQuantity = this.buy6.items_mc.item.Quantity; } if (this.buy6.items_mc.item.Quantity == 0) { this.buy6.used = false; this.buy6.itemName = 'NAME'; this.buy6.money = '0'; removeMovieClip(this.buy6.items_mc); } checkNecessaryItems(); trace('this.buy6.items_mc.item.Quantity ' + this.buy6.items_mc.item.Quantity); } } } movieClip 5000 { frame 1 { function vratiPari(kolku) { trace('Vrakam pari = ' + kolku); if (kolku != undefined) { this._parent._parent.global_money = Number(this._parent._parent.global_money) + kolku; this._parent._parent.mcHolder.checkPrices(); } } function checkNecessaryItems() { trace('checkNecessaryItems()'); var v4 = false; var v6 = false; var v5 = false; var v3 = 1; while (v3 <= 6) { var v2 = this['buy' + v3].items_mc.item; if (v2.Type == undefined) { } else { if (v2.Type == 1 || v2.Type == 11 || v2.Type == 12 || v2.Type >= 3 && v2.Type <= 7) { v6 = true; } if (v2.Type == 10 || v2.Type == 13 || v2.Type == 12 || v2.Type == 16 || v2.Type >= 4 && v2.Type <= 8) { v5 = true; } if (v2.Type == 2 || v2.Type == 3 || v2.Type == 13) { v4 = true; } } ++v3; } if (v4 && v6 && v5) { } else { this._parent._parent.play_btn.gotoAndStop(1); } } } instance buy1 of movieClip 4973 { onClipEvent (load) { this.used = false; } } instance buy2 of movieClip 4977 { onClipEvent (load) { this.used = false; } } instance buy3 of movieClip 4981 { onClipEvent (load) { this.used = false; } } instance buy4 of movieClip 4985 { onClipEvent (load) { this.used = false; } } instance buy5 of movieClip 4989 { onClipEvent (load) { this.used = false; } } instance buy6 of movieClip 4993 { onClipEvent (load) { this.used = false; } } } movieClip 5001 { frame 1 { stop(); } frame 8 { stop(); } frame 16 { stop(); } } movieClip 5006 { } movieClip 5014 { } movieClip 5022 { } movieClip 5039 { } movieClip 5040 { } movieClip 5041 { } movieClip 5045 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5048 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5051 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5054 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5057 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5060 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5063 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5066 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5069 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5072 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5075 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5078 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5081 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5082 { frame 1 { function popUpItem(which) { my_str.substr(6, 5); } function zemiPari(kolku) { trace('Zimam pari'); trace(kolku); trace(this._parent._parent.global_money); this._parent._parent.global_money = Number(this._parent._parent.global_money) - kolku; } function select(chars) { var temp_mc; var flag = false; _root.WarningPopUp.removeMovieClip(); if (Number(this._parent._parent.global_money) - _global.GAME.ITEMS[chars]._Price >= 0) { var i = 1; while (i <= 6) { if (this._parent._parent.purchedItems.selected_mc['buy' + i].used) { if (this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item._Type == (eval('this._parent.itemsHolder_mc.buyItem' + chars + '.item' + chars + '_mc')).item._Type) { ++this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item.Quantity; trace('QUANTITY = ' + this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item.Quantity); this._parent._parent.purchedItems.selected_mc['buy' + i].itemQuantity = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item.Quantity; this._parent._parent.purchedItems.selected_mc['buy' + i].itemName = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item._Name; this._parent._parent.purchedItems.selected_mc['buy' + i].money = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item._Price; zemiPari(_global.GAME.ITEMS[chars]._Price); flag = true; } } ++i; } if (!flag) { var i = 1; while (i <= 6) { if (this._parent._parent.purchedItems.selected_mc['buy' + i].used == false) { if (i > 4) { this._parent._parent.purchedItems.onEnterFrame = function () { if (this.selected_mc._x > 46.55) { this.selected_mc._x -= 10; _root.WarningPopUp._x -= 10; } else { delete this.onEnterFrame; } }; } else { if (i == 1) { if (this._parent._parent.purchedItems.selected_mc._x < 50) { this._parent._parent.purchedItems.onEnterFrame = function () { if (this.selected_mc._x < 136.55) { this.selected_mc._x += 10; _root.WarningPopUp._x += 10; } else { delete this.onEnterFrame; } }; } } } var linkid; if (i == 6) { linkid = 'pop_up7'; } else { linkid = 'pop_up'; } var temp_mc = this._parent._parent.purchedItems.selected_mc['buy' + i].attachMovie('item' + chars, 'items_mc', 10, {'_x': 0, '_y': 2, 'item': _global.GAME.ITEMS[chars]}); zemiPari(_global.GAME.ITEMS[chars]._Price); temp_mc.item.Quantity = 1; this._parent._parent.purchedItems.selected_mc['buy' + i].used = true; this._parent._parent.purchedItems.selected_mc['buy' + i].ID = chars; this['buyItem' + chars].chosed = true; this._parent._parent.purchedItems.selected_mc['buy' + i].itemQuantity = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item.Quantity; this._parent._parent.purchedItems.selected_mc['buy' + i].itemName = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item._Name; this._parent._parent.purchedItems.selected_mc['buy' + i].money = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item._Price; if (temp_mc.item.Type >= 4 && temp_mc.item.Type <= 7 || temp_mc.item.Type >= 17 && temp_mc.item.Type <= 19 || temp_mc.item.Type == 22) { var popCoord = {'x': temp_mc._x, 'y': temp_mc._y}; temp_mc.localToGlobal(popCoord); x = popCoord.x + 120; y = popCoord.y - 75; var popUp = _root.attachMovie(linkid, 'WarningPopUp', 14700, {'_x': x, '_y': y}); popUp.label_txt.text = ''; popUp.desc_txt.text = 'This item is not reusable. Choose your strategy wisely.'; popUp.desc_txt._x -= 10; popUp.desc_txt._y -= 10; } break; } ++i; } } var safeItem = false; var wdoorItem = false; var mdoorItem = false; var i = 1; while (i <= 6) { var item = this._parent._parent.purchedItems.selected_mc['buy' + i].items_mc.item; if (item.Type == undefined) { } else { if (item.Type == 1 || item.Type == 11 || item.Type == 12 || item.Type >= 3 && item.Type <= 7) { wdoorItem = true; } if (item.Type == 10 || item.Type == 13 || item.Type == 12 || item.Type == 16 || item.Type >= 4 && item.Type <= 8) { mdoorItem = true; } if (item.Type == 2 || item.Type == 3 || item.Type == 13) { safeItem = true; } } ++i; } if (safeItem && wdoorItem && mdoorItem) { this._parent._parent.play_btn.gotoAndStop('blink'); this._parent._parent.check_mc.gotoAndStop(1); } this._parent.checkPrices(); } } stop(); } instance buyItem1 of movieClip 4954 buy_item { onClipEvent (load) { trace(this); } } } movieClip 5086 { frame 1 { function checkPrices() { var v4 = _global.rootgame; var v3 = 1; while (v3 <= 21) { if (v4.ITEMS[v3].Type == 1 || v4.ITEMS[v3].Type == 2 || v4.ITEMS[v3].Type == 3 || v4.ITEMS[v3].Type == 4 || v4.ITEMS[v3].Type == 9 || v4.ITEMS[v3].Type == 16 || v4.ITEMS[v3].Type == 17 || v4.ITEMS[v3].Type == 22 || v4.ITEMS[v3].Type == 11) { var v5 = int(this._parent.global_money); removeMovieClip(this.itemsHolder_mc['buyItem' + v3].fog_items_mc); if (v4.ITEMS[v3]._Price > v5) { var v6 = this.itemsHolder_mc['buyItem' + v3].attachMovie('fog_items_mc', 'fog_items_mc', this.itemsHolder_mc['buyItem' + v3].getNextHighestDepth() + 100, {'_x': 0, '_y': -1}); v6._alpha = 70; } } ++v3; } } var path = _global.rootgame; var i = 1; while (i <= 21) { var temp_mc = this.itemsHolder_mc['buyItem' + i].attachMovie(String('item' + i), String('item' + i + '_mc'), this.itemsHolder_mc['buyItem' + i].getNextHighestDepth(), {'_x': 0, '_y': -1, 'item': path.ITEMS[i]}); var money = int(this._parent.global_money); if (path.ITEMS[i]._Price > money) { var fog = this.itemsHolder_mc['buyItem' + i].attachMovie('fog_items_mc', 'fog_items_mc', this.itemsHolder_mc['buyItem' + i].getNextHighestDepth() + 100, {'_x': 0, '_y': -1}); fog._alpha = 70; } if ((path.Level == 1 or path.Level == 2) and (path.ITEMS[i].Type == 16 or path.ITEMS[i].Type == 2 or path.ITEMS[i].Type == 1 or path.ITEMS[i].Type == 9 or path.ITEMS[i].Type == 22 or path.ITEMS[i].Type == 11)) { this.itemsHolder_mc['buyItem' + i].attachMovie('starce_mc', 'star_mc', 100, {'_x': 25, '_y': -25}); } this.itemsHolder_mc['buyItem' + i].itemName = path.ITEMS[i]._Name; this.itemsHolder_mc['buyItem' + i].money = path.ITEMS[i]._Price; var Item = this.itemsHolder_mc['buyItem' + i]; Item.chosed = false; Item.clip = i; if (path.ITEMS[i].Type == 1 || path.ITEMS[i].Type == 2 || path.ITEMS[i].Type == 3 || path.ITEMS[i].Type == 11 || path.ITEMS[i].Type == 4 || path.ITEMS[i].Type == 9 || path.ITEMS[i].Type == 16 || path.ITEMS[i].Type == 17 || path.ITEMS[i].Type == 22) { Item.avaible = true; } else { Item.avaible = false; if (fog) { removeMovieClip(fog); } var fv = this.itemsHolder_mc['buyItem' + i].attachMovie('fvItemMask', 'fvItemMask', this.itemsHolder_mc['buyItem' + i].getNextHighestDepth() + 100, {'_x': 0, '_y': -1}); } ++i; } stop(); } frame 8 { stop(); } } movieClip 5101 { } movieClip 5102 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5111 { } movieClip 5112 { } movieClip 5113 { } movieClip 5114 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5124 { } movieClip 5125 { } movieClip 5130 { } movieClip 5131 { instance bar_btn of movieClip 5130 { onClipEvent (load) { function __f_load(eventObj) { startDrag(this, false, 0, -72, 0, 59); } this.addEventListener('load', __f_load); } onClipEvent (press) { startDrag(this, false, 0, -72, 0, 59); this.onEnterFrame = function () { this._x = 0; if (this._y <= 59 && this._y >= -72) { var v2 = (this._y + 72) / 131; this._parent._parent.mcHolder.itemsHolder_mc._y = 110 - 143 * v2; } else { if (this._y > 59) { this._y = 59; this._parent._parent.mcHolder.itemsHolder_mc._y = -33; this.stopDrag(); } else { if (this._y < -72) { this._parent._parent.mcHolder.itemsHolder_mc._y = 110; this.stopDrag(); this._y = -72; } } } }; } onClipEvent (releaseOutside) { this.stopDrag(); delete this.onEnterFrame; } onClipEvent (release) { trace('stopDrag'); this.stopDrag(); delete this.onEnterFrame; } } } movieClip 5140 { } movieClip 5149 { } movieClip 5150 itemSelection_mc { frame 1 { global_money = _global.GAME.money; _global.GAME.invenrtory.splice(0); var xmov = 10; var ymov = -150; var dist = 0.5600000000000001; var znamence = false; var selectedMC = this.purchedItems.selected_mc; var thisObj = this; moveRight.onPress = function () { this.onEnterFrame = function () { if (selectedMC._x > 46.55) { selectedMC._x -= thisObj.xmov; } else { delete this.onEnterFrame; } }; }; moveLeft.onPress = function () { this.onEnterFrame = function () { if (selectedMC._x < 136.55) { selectedMC._x += thisObj.xmov; } else { delete this.onEnterFrame; } }; }; moveDown_mc.onPress = function () { delete this.onEnterFrame; this.onEnterFrame = function () { if (this._parent.mcHolder.itemsHolder_mc._y > -33) { this._parent.mcHolder.itemsHolder_mc._y -= 29; if (this._parent.scrollbar.bar_btn._y + 26 <= 59) { this._parent.scrollbar.bar_btn._y += 26; } else { this._parent.scrollbar.bar_btn._y = 59; } } else { delete this.onEnterFrame; } }; }; moveUp_mc.onPress = function () { delete this.onEnterFrame; this.onEnterFrame = function () { if (this._parent.mcHolder.itemsHolder_mc._y < 110) { this._parent.mcHolder.itemsHolder_mc._y += 29; if (this._parent.scrollbar.bar_btn._y - 26 >= -72) { this._parent.scrollbar.bar_btn._y -= 26; } else { this._parent.scrollbar.bar_btn._y = -72; } } else { delete this.onEnterFrame; } }; }; } instance play_btn of movieClip 5102 { onClipEvent (release) { if (this._parent.infPopUp) { this._parent.infPopUp.removeMovieClip(); } _root.WarningPopUp.removeMovieClip(); var go = false; i = 0; while (i <= 6) { if (this._parent.purchedItems.selected_mc['buy' + i].used) { go = true; } ++i; } if (go == true) { var temp_money = 0; var safeItem = false; var wdoorItem = false; var mdoorItem = false; var br = 1; var i = 1; while (i <= 6) { temp_money += Number(this._parent.purchedItems.selected_mc['buy' + i].money); var item = this._parent.purchedItems.selected_mc['buy' + i].items_mc.item; if (item.Type == undefined) { } else { _global.GAME.invenrtory[br] = item; ++br; if (item.Type == 1 || item.Type == 11 || item.Type == 12 || item.Type >= 3 && item.Type <= 7) { wdoorItem = true; } if (item.Type == 10 || item.Type == 13 || item.Type == 12 || item.Type == 16 || item.Type >= 4 && item.Type <= 8) { mdoorItem = true; } if (item.Type == 2 || item.Type == 3 || item.Type == 13) { safeItem = true; } } ++i; } if (_root.help) { removeMovieClip(_root.help); } if (_root.mapa_btn) { removeMovieClip(_root.mapa_btn); } if (safeItem && wdoorItem && mdoorItem) { _global.GAME.money = this._parent.global_money; this._parent.global_money = 0; _global.GAME.gamePlay(); } else { if (!_root.help) { this._parent.check_mc.gotoAndStop(2); } } } else { trace('kupi item'); if (!_root.help) { this._parent.check_mc.gotoAndStop(2); } } } } instance of movieClip 5111 { onClipEvent (release) { if (this._parent.infPopUp) { this._parent.infPopUp.removeMovieClip(); } _root.WarningPopUp.removeMovieClip(); if (_root.help) { removeMovieClip(_root.help); } if (_root.mapa_btn) { removeMovieClip(_root.mapa_btn); } _global.rootgame.mode = 'charSelection'; _global.rootgame.Play(); } } instance check_mc of movieClip 5114 { onClipEvent (release) { if (this._parent.infPopUp) { this._parent.infPopUp.removeMovieClip(); } this._parent.play_btn.gotoAndStop(1); _root.WarningPopUp.removeMovieClip(); if (_root.mapa_btn) { this._parent.bp.opened = false; removeMovieClip(_root.mapa_btn); } this.gotoAndStop(1); var temp_mc; if (!this.opened) { temp_mc = _root.attachMovie('help_items_mc', 'help', 15000, {'_x': 398, '_y': 300}); this.opened = true; _root.help.wdoor.gotoAndStop(2); _root.help.mdoor.gotoAndStop(2); _root.help.safe.gotoAndStop(2); _root.help.cbox.gotoAndStop(2); _root.help.abutton.gotoAndStop(2); var i = 1; while (i <= 6) { var item = this._parent.purchedItems.selected_mc['buy' + i].items_mc.item; if (item.Type == undefined) { } else { if (item.Type == 1 || item.Type == 11 || item.Type == 12 || item.Type >= 3 && item.Type <= 7) { _root.help.wdoor.gotoAndStop(1); } if (item.Type == 10 || item.Type == 13 || item.Type == 12 || item.Type == 16 || item.Type >= 4 && item.Type <= 8) { _root.help.mdoor.gotoAndStop(1); } if (item.Type == 2 || item.Type == 3 || item.Type == 13) { _root.help.safe.gotoAndStop(1); } if (item.Type == 9 || item.Type == 10) { _root.help.cbox.gotoAndStop(1); } if (item.Type == 21) { _root.help.abutton.gotoAndStop(1); } } ++i; } _root.help.onRelease = function () { _global.GAME.currentClip.check_mc.opened = false; removeMovieClip(this); }; } else { removeMovieClip(_root.help); this.opened = false; } } } instance bp of movieClip 5125 { onClipEvent (release) { if (this._parent.infPopUp) { this._parent.infPopUp.removeMovieClip(); } this._parent.play_btn.gotoAndStop(1); _root.WarningPopUp.removeMovieClip(); var temp_mc; if (_root.help) { trace('check_mc ' + this._parent.check_mc); this._parent.check_mc.opened = false; removeMovieClip(_root.help); } if (!this.opened) { temp_mc = _root.attachMovie('mapa_btn', 'mapa_btn', 15100, {'_x': -20, '_y': 20}); this.opened = true; _root.onMouseDown = function () { if (_root.mapa_btn.hitTest(_root._xmouse, _root._ymouse, true)) { removeMovieClip(_root.mapa_btn); } }; } else { removeMovieClip(_root.mapa_btn); this.opened = false; } } } } movieClip 5231 { } button 5232 { on (rollOver) { if (!_global.GAME.levelLoaded) { c4100.play(); _global.GAME.openPopUp('pop_up6', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { c4100.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 5233 item6 { instance c4100 of movieClip 5231 { onClipEvent (load) { this.stop(); } } } movieClip 5236 pop_up { frame 1 { label_txt._visible = false; desc_txt._visible = false; } frame 4 { label_txt._visible = true; desc_txt._visible = true; } frame 16 { label_txt._visible = true; desc_txt._visible = true; } frame 22 { stop(); } frame 26 { this.removeMovieClip(); } } button 5276 { on (release) { _global.GAME.mode = 'blueprint'; _global.GAME.Play(); } } button 5286 { on (release) { System.security.allowDomain('www.totallygame.com'); _root.hs_list = false; _root.hs_score = _global.GAME.money; _root.is_time = false; _root.hs_gameid = 36; _root.hs_requesturl = 'www.totallygame.com'; _root.highscore.loadMovie('http://www.totallygame.com/highscores/flash.php'); this._visible = false; _global.GAME.mode = 'endDemo'; _global.GAME.Play(); stop(); } } movieClip 5287 finishLevel_mc { frame 1 { stop(); if (_global.GAME.Level == 3) { subbtn._visible = true; nextLevel._visible = false; } else { subbtn._visible = false; nextLevel._visible = true; } this.prvaSuma = _global.GAME.safeMoney; this.levelNumber = _global.GAME.Level; this.deathRobs = _global.GAME.DeathRobs; this.timeBonus = _global.GAME.timeBonus; trace('finish ' + _global.GAME.safeMoney + ' ' + _global.GAME.Level + ' ' + _global.GAME.DeathRobs); var tempMoney = Math.round(_global.GAME.safeMoney / _global.path.game.numOfrobs); trace('tempMoney ' + tempMoney); this.minusSuma = _global.GAME.DeathRobs * tempMoney; this.razlika = Number(this.prvaSuma) + Number(this.timeBonus) - Number(this.minusSuma); this.yourMoney = Number(this.razlika) + _global.GAME.money; _global.GAME.money = Number(this.yourMoney); if (_global.GAME.Level < 3) { ++_global.GAME.Level; } var sl = new SaveLoad(_global.GAME.Level); sl.saveGame(_global.GAME.money); } instance of movieClip 178 { onClipEvent (release) { _global.rootgame.mode = 'menu'; _global.rootgame.Play(); } } } movieClip 5294 { } movieClip 5295 mainMenu { } movieClip 5310 { } movieClip 5314 { } movieClip 5316 { } movieClip 5317 { } button 5318 { on (release) { _global.rootgame.loadGame(_global.rootgame.Level); } } movieClip 5319 gameover_mc { instance of movieClip 5295 mainMenu { onClipEvent (release) { _global.rootgame.mode = 'menu'; _global.rootgame.Play(); } } } movieClip 5368 EMP { } button 5369 { on (rollOver) { if (!_global.GAME.levelLoaded) { EMP_mc.play(); _global.GAME.openPopUp('pop_up15', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { EMP_mc.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { } } } movieClip 5370 item15 { instance EMP_mc of movieClip 5368 EMP { onClipEvent (load) { this.stop(); } } } movieClip 5451 { } button 5452 { on (rollOver) { if (!_global.GAME.levelLoaded) { elDevice_2.play(); _global.GAME.openPopUp('pop_up12', this); this._parent.gotoAndStop(2); } } on (rollOut) { if (!_global.GAME.levelLoaded) { elDevice_2.stop(); _global.GAME.closePopUp(); this._parent.gotoAndStop(1); } } on (release) { if (!_global.GAME.levelLoaded) { this._parent._parent.select(12); } } } movieClip 5453 item12 { instance elDevice_2 of movieClip 5451 { onClipEvent (load) { this.stop(); } } } movieClip 5456 { } button 5457 { on (rollOver) { this._parent.play(); this._parent.item_mc.play(); } on (rollOut) { this._parent.gotoAndPlay('begin'); this._parent.item_mc.stop(); } on (release) { _global.path.selectItem(this._parent.item, this._parent); } } movieClip 5458 { } movieClip 5461 { } movieClip 5462 { } movieClip 5463 item_bck { frame 1 { stop(); } instance of movieClip 5458 { onClipEvent (load) { this.swapDepths(16000); } } instance quantity_mc of movieClip 5461 { onClipEvent (load) { this.swapDepths(1000); } } frame 10 { stop(); } frame 11 { stop(); } } movieClip 5466 { } movieClip 5468 { } movieClip 5469 LaserDoubleRot { } movieClip 5472 { frame 1 { this.attachMovie('BluePrint_' + _global.GAME.Level, 'level_' + _global.GAME.Level, 1); } } movieClip 5473 mapa_btn { frame 15 { stop(); } } movieClip 5566 { } movieClip 5587 instructions_gameplay { } movieClip 5596 { } movieClip 5597 { } movieClip 5598 instructions_popup { } movieClip 5606 { } button 5611 { on (release) { this.gotoAndStop('instructions'); } } movieClip 5617 { } button 5622 { on (release) { trace('_global.GAME.blueprintOnScreen ' + _global.GAME.blueprintOnScreen); if (!_global.GAME.blueprintOnScreen) { this.gotoAndStop('blueprint'); _global.GAME.blueprintOnScreen = true; } } } movieClip 5628 { } button 5631 { on (release) { this.gotoAndStop('shortcuts'); } } movieClip 5639 { } button 5642 { on (release) { this.gotoAndStop('exit'); } } movieClip 5647 { } button 5651 { on (release) { _global.stage.Play(); } } button 5654 { on (release) { this.gotoAndStop('options'); } } button 5656 { on (release) { this.gotoAndStop(1); trace('CLICK'); if (_global.GAME.blueprintOnScreen) { _global.GAME.blueprintOnScreen = false; removeMovieClip(_global.stage.mapa_btn); } } } button 5659 { on (release) { this.gotoAndStop(1); } } button 5661 { on (release) { soundFX.gotoAndStop(1); _global.GAME.sound.off = false; _global.GAME.sound.playLoops(); if (_global.path.alarmMeter.getAlarmLevel() == 3) { _global.GAME.sound.stopSound('alarm'); _global.GAME.sound.playMusic('alarm'); } } } button 5662 { on (release) { soundFX.gotoAndStop(2); _global.GAME.sound.off = true; _global.GAME.sound.stopLoops(); if (_global.path.alarmMeter.getAlarmLevel() == 3) { _global.GAME.sound.stopSound('alarm'); } } } button 5672 { on (release) { this.gotoAndStop(1); } } button 5690 { on (release) { _global.GAME.mode = 'menu'; _global.GAME.Play(); } } button 5691 { on (release) { this.gotoAndStop(1); } } movieClip 5692 pause_menu_mc { frame 1 { stop(); } frame 4 { stop(); } frame 7 { stop(); } frame 10 { stop(); } frame 13 { stop(); if (_global.GAME.sound.off) { soundFX.gotoAndStop(2); } } frame 17 { stop(); } } movieClip 5698 { } movieClip 5699 char8 { } movieClip 5719 { } movieClip 5720 char12 { } movieClip 5730 { } movieClip 5731 char13 { } movieClip 5737 { } movieClip 5738 char6 { } movieClip 5740 { } movieClip 5741 char5 { } movieClip 5745 { } movieClip 5746 char4 { } movieClip 5762 { } movieClip 5763 char2 { } movieClip 5783 { } movieClip 5784 char1 { } movieClip 5799 { } movieClip 5800 char3 { } movieClip 5802 { } movieClip 5803 char10 { } movieClip 5809 { } movieClip 5810 char14 { } movieClip 5823 { } movieClip 5824 char9 { } movieClip 5826 { } movieClip 5827 char7 { } movieClip 5837 { } movieClip 5838 char11 { } movieClip 5839 char0 { } movieClip 5842 { } movieClip 5843 sefpopUP_mc { frame 7 { stop(); } } movieClip 5845 { } button 5847 { on (release) { var robi = _global.path.rob[_global.path.selrobID]; if (robi.Item.Type == 19 || robi.Item.Type == 4 || robi.Item.Type == 5) { var b = new mcs.Bomb(robi); b.buttonPress(); _global.path.Bombs.push(b); var temp_mc1 = _global.stage.levelch_mc[robi._nickName].item_mc.attachMovie(robi.Weapon.Name, 'rob_item_mc', 10, {'_x': 0, '_y': 0}); robi.ItemMovie = undefined; robi.Item = undefined; temp_mc1.stop(); temp_mc1._xscale = 60; temp_mc1._yscale = 60; } } } movieClip 5848 dropMinebtn_mc { frame 1 { stop(); } } movieClip 5850 { } movieClip 5852 wrongtool_mc { } movieClip 5855 { } movieClip 5856 fog_items_mc { } movieClip 5859 timer_mc { } movieClip 5862 { } movieClip 5863 fvItemMask { } movieClip 5865 fvCharMask { } movieClip 6048 { } movieClip 6049 { } movieClip 6051 { } movieClip 6071 { } movieClip 6073 { } movieClip 6075 { } button 6084 { on (press) { getURL('https://secure.bmtmicro.com/servlets/Orders.ShoppingCart?CLR=0&CID=2249&PRODUCTID=22490034&AID=1298578', '_blank'); } } button 6093 { on (release) { _global.rootgame.mode = 'menu'; _global.rootgame.Play(); } } movieClip 6094 endDemo { frame 1 { } } button 6113 { on (release) { _global.rootgame.mode = 'menu'; _global.rootgame.Play(); } } button 6116 { on (release) { System.security.allowDomain('www.totallygame.com'); _root.hs_list = true; _root.hs_score = _global.GAME.money; _root.is_time = false; _root.hs_gameid = 36; _root.hs_requesturl = 'www.totallygame.com'; _root.highscore.loadMovie('http://www.totallygame.com/highscores/flash.php'); _root.highscore.swapDepths(_root.getNextHighestDepth()); stop(); } } movieClip 6120 gameOverScore_mc { frame 1 { this.money.text = _global.GAME.money; stop(); } } movieClip 6122 { } movieClip 6131 { } button 6139 { on (release) { if (_global.GAME.mode != 'endDemo') { delete Delegate; _global.GAME.mode = 'endDemo'; _global.GAME.Play(); stopAllSounds(); } } } button 6140 { on (release) { System.security.allowDomain('www.totallygame.com'); _root.hs_list = true; _root.hs_score = _global.GAME.money; _root.is_time = false; _root.hs_gameid = 36; _root.hs_requesturl = 'www.totallygame.com'; _root.highscore.loadMovie('http://www.totallygame.com/highscores/flash.php'); _root.highscore.swapDepths(_root.getNextHighestDepth()); stop(); _global.stage.stopTimer(); if (_global.GAME.mode != 'endDemo') { delete Delegate; _global.GAME.mode = 'endDemo'; _global.GAME.Play(); stopAllSounds(); } } } movieClip 6143 scoreLC_mc { } movieClip 6144 highscore { } movieClip 6146 itemSelPopUp1 { } movieClip 6148 itemSelPopUp2 { } movieClip 6150 { } movieClip 6151 alarmPopUp { frame 125 { stop(); } } movieClip 6153 { } movieClip 6155 popUp1 { } movieClip 6157 { } movieClip 6159 popUp2 { } movieClip 6161 popUp3 { } movieClip 6164 popUp4 { } movieClip 6166 popUp5 { } movieClip 6168 popUp6 { } movieClip 6170 popUp7 { } movieClip 6172 popUp8 { } movieClip 6174 popUp9 { } movieClip 6176 popUp10 { } movieClip 6178 popUp11 { } movieClip 6180 popUp12 { } movieClip 6182 popUp14 { } movieClip 6184 popUp15 { } movieClip 6186 popUp16 { } movieClip 6188 popUp17 { } movieClip 6190 popUp18 { } movieClip 6192 popUp19 { } movieClip 6194 popUp20 { } movieClip 6196 popUp21 { } movieClip 6198 popUp22 { } movieClip 6200 popUp23 { } movieClip 6202 popUp24 { } movieClip 6204 popUp25 { } movieClip 6206 popUp26 { } movieClip 6218 helpButton { frame 1 { var showPopUps = true; } frame 1 { hide.onPress = function () { this._parent.showPopUps = false; var v3 = 0; while (v3 <= _global.path.helpTips.length) { if (_global.path.helpTips[v3].shown == 1) { if (_global.path.helpTips[v3].clip) { _global.path.helpTips[v3].clip.removeMovieClip(); _global.path.helpTips[v3].clip = undefined; } _global.path.helpTips[v3].shown = 2; } ++v3; } gotoAndStop(2); }; } frame 1 { stop(); } frame 2 { show.onPress = function () { this._parent.showPopUps = true; gotoAndStop(1); }; } frame 2 { stop(); } } movieClip 6244 { frame 1 { stop(); } } frame 11 { stop(); Stage.showMenu = false; fscommand('allowscale', 'true'); fscommand('showmenu', 'false'); _global.rootgame = new Game(); }




http://swfchan.com/6/29401/info.shtml
Created: 19/5 -2019 23:10:44 Last modified: 19/5 -2019 23:10:44 Server time: 28/04 -2024 01:32:04