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

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

Soul Job.swf

This is the info page for
Flash #205862

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


ActionScript [AS1/AS2]
Combined Code
movieClip 17 myCursorLightning { } movieClip 19 { frame 1 { this._alpha = 0; } } movieClip 20 butDisabler { frame 1 { but1.onRelease = function () {}; but2.onRelease = function () {}; } } movieClip 24 { } movieClip 71 AchievementIcons { } frame 1 { function gotoSponsorWebsite() { getURL('http://ludobox.com/', '_blank'); } stop(); mochi.as2.MochiServices.connect('6f05f582583bcd1a'); var CPMStarContentSpotID = '2580Z2EC0A938'; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); fscommand('showmenu', false); fscommand('allowscale', false); fscommand('trapallkeys', true); play_btn._visible = false; preload = true; this.onEnterFrame = function () { if (preload == true) { now = getBytesLoaded(); tot = getBytesTotal(); persen = Math.round((now / tot) * 100); load_txt.text = persen + ' %'; preloaderBar_mc._xscale = persen; if (persen == 100) { loading_mc._visible = false; load_txt.text = ''; play_btn._visible = true; play_btn.onRelease = function () { play(); }; preload = false; } } }; languageType = 1; var rightClick = new ContextMenu(); rightClick.hideBuiltInItems(); _root.menu = rightClick; } movieClip 74 { } // unknown tag 88 length 56 movieClip 77 { } movieClip 79 { } movieClip 81 { } // unknown tag 88 length 79 // unknown tag 88 length 143 movieClip 89 { } movieClip 91 { frame 1 { btn.onRollOver = function () { _root.giveGlow(this._parent); }; btn.onRollOut = function () { _root.removeGlow(this._parent); }; btn.onRelease = function () { _root.gotoSponsorWebsite(); }; } } movieClip 1311 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 1312 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.9.4 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { mochi.as2.MochiServices.onError('NotConnected'); return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError('IOError'); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError(errorCode); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'services': mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args); break; case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args); break; case 'social': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError('IOError'); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError('NotConnected'); } if (args.options != null && args.options.onError != null) { args.options.onError('NotConnected'); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': break; case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.CONNECTED = 'onConnected'; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 1313 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.getAchievements = function (properties) { mochi.as2.MochiServices.send('events_getAchievements', properties); }; v1.unlockAchievement = function (properties) { mochi.as2.MochiServices.send('events_unlockAchievement', properties); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.showAwards = function (options) { mochi.as2.MochiServices.send('events_showAwards', options, null, null); }; v1.setNotifications = function (style) { mochi.as2.MochiServices.send('events_setNotifications', style, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENTS_OWNED = 'AchievementOwned'; v1.ACHIEVEMENT_NEW = 'AchievementReceived'; v1.GAME_ACHIEVEMENTS = 'GameAchievements'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.IO_PENDING = 'IOPending'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1.FORMAT_NONE = 'NoForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 1314 __Packages.mochi.as2.MochiCoins { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiCoins) { var v1 = function () {}; mochi.as2.MochiCoins = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showStore = function (options) { mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null); }; v1.showItem = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showItem call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null); }; v1.showVideo = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showVideo call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null); }; v1.getStoreItems = function () { mochi.as2.MochiServices.send('coins_getStoreItems'); }; v1.requestFunding = function (properties) { mochi.as2.MochiServices.send('social_requestFunding', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate); }; v1.STORE_SHOW = 'StoreShow'; v1.STORE_HIDE = 'StoreHide'; v1.ITEM_OWNED = 'ItemOwned'; v1.ITEM_NEW = 'ItemNew'; v1.STORE_ITEMS = 'StoreItems'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1); } #endinitclip } movieClip 1315 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('social_hideLoginWidget'); }; v1.requestLogin = function (properties) { mochi.as2.MochiServices.send('social_requestLogin', properties); }; v1.getFriendsList = function (properties) { mochi.as2.MochiServices.send('social_getFriendsList', properties); }; v1.showProfile = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showProfile', options); }; v1.postToStream = function (properties) { mochi.as2.MochiServices.send('social_postToStream', properties); }; v1.inviteFriends = function (properties) { mochi.as2.MochiServices.send('social_inviteFriends', properties); }; v1.requestFan = function (properties) { mochi.as2.MochiServices.send('social_requestFan', properties); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('social_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.FRIEND_LIST = 'FriendsList'; v1.PROFILE_DATA = 'ProfileData'; v1.GAMEPLAY_DATA = 'GameplayData'; v1.ACTION_CANCELED = 'onCancel'; v1.ACTION_COMPLETE = 'onComplete'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } movieClip 1316 __Packages.mochi.as2.MochiScores { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiScores) { var v1 = function () {}; mochi.as2.MochiScores = v1; var v2 = v1.prototype; v1.setBoardID = function (boardID) { mochi.as2.MochiServices.warnID(boardID, true); mochi.as2.MochiScores.boardID = boardID; mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID}); }; v1.showLeaderboard = function (options) { options.clip = mochi.as2.MochiServices.clip; if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) { mochi.as2.MochiServices.disconnect(); trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!'); trace('make sure MochiServices.connect is called as early in the application runtime as possible.'); mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip); } delete options.clip; if (options.name != null) { if (typeof options.name == 'object') { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (options.score instanceof TextField) { if (options.score.text != undefined) { options.score = options.score.text; } } else { if (options.score instanceof mochi.as2.MochiDigits) { options.score = options.score.value; } } var v1 = Number(options.score); if (isNaN(v1)) { trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\''); } else { if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) { trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite'); } else { if (Math.floor(v1) != v1) { trace('WARNING: Submitted score \'' + options.score + '\' will be truncated'); } options.score = v1; } } } if (options.onDisplay != null) { options.onDisplay(); } else { (mochi.as2.MochiServices.__get__clip()).stop(); } if (options.onClose != null) { mochi.as2.MochiScores.onClose = options.onClose; } else { mochi.as2.MochiScores.onClose = function () { (mochi.as2.MochiServices.__get__clip()).play(); }; } if (options.onError != null) { mochi.as2.MochiScores.onError = options.onError; } else { mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose; } if (options.boardID == null) { if (mochi.as2.MochiScores.boardID != null) { options.boardID = mochi.as2.MochiScores.boardID; } } mochi.as2.MochiServices.warnID(options.boardID, true); trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal'); mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose); }; v1.closeLeaderboard = function () { mochi.as2.MochiServices.send('scores_closeLeaderboard'); }; v1.getPlayerInfo = function (callbackObj, callbackMethod) { mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod); }; v1.submit = function (score, name, callbackObj, callbackMethod) { score = Number(score); if (isNaN(score)) { trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\''); } else { if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) { trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite'); } else { if (Math.floor(score) != score) { trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated'); } score = Number(score); } } mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod); }; v1.requestList = function (callbackObj, callbackMethod) { mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod); }; v1.scoresArrayToObjects = function (scores) { var v5 = {}; var v1; var v4; var v2; var v6; for (var v8 in scores) { if (typeof scores[v8] == 'object') { if (scores[v8].cols != null && scores[v8].rows != null) { v5[v8] = []; v2 = scores[v8]; v4 = 0; while (v4 < v2.rows.length) { v6 = {}; v1 = 0; while (v1 < v2.cols.length) { v6[v2.cols[v1]] = v2.rows[v4][v1]; ++v1; } v5[v8].push(v6); ++v4; } } else { v5[v8] = {}; for (var v7 in scores[v8]) { v5[v8][v7] = scores[v8][v7]; } } } else { v5[v8] = scores[v8]; } } return v5; }; v1.doClose = function (args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = 'IOError'; } mochi.as2.MochiScores.onError.apply(null, [args.errorCode]); } else { mochi.as2.MochiScores.onClose.apply(); } }; ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1); } #endinitclip } movieClip 1317 __Packages.mochi.as2.MochiDigits { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiDigits) { var v1 = function (digit, index) { this.Encoder = 0; this.setValue(digit, index); }; mochi.as2.MochiDigits = v1; var v2 = v1.prototype; v2.__get__value = function () { return Number(this.toString()); }; v2.__set__value = function (v) { this.setValue(v); return this.__get__value(); }; v2.addValue = function (v) { this.value += v; }; v2.setValue = function (digit, index) { var v3 = digit.toString(); if (index == undefined || isNaN(index)) { index = 0; } this.Fragment = v3.charCodeAt(index++) ^ this.Encoder; if (index < v3.length) { this.Sibling = new mochi.as2.MochiDigits(digit, index); } else { this.Sibling = null; } this.reencode(); }; v2.reencode = function () { var v2 = int(2147483647 * Math.random()); this.Fragment ^= v2 ^ this.Encoder; this.Encoder = v2; }; v2.toString = function () { var v2 = String.fromCharCode(this.Fragment ^ this.Encoder); return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2; }; v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1); } #endinitclip } frame 32 { stop(); _urlStart = _url.indexOf('://') + 3; _urlEnd = _url.indexOf('/', _urlStart); domain = _url.substring(_urlStart, _urlEnd); LastDot = domain.lastIndexOf('.') - 1; domEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(domEnd, domain.length); if (domain == 'armorgames.com' || domain == 'funevergames.com') { gotoAndStop('logo'); } else { stop(); gotoAndStop('logo'); } } // unknown tag 88 length 63 frame 33 { gotoAndStop(_currentframe - 1); } movieClip 98 { frame 1 { stop(); } } movieClip 99 ComboBoard { frame 49 { stop(); delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 102 Fired { frame 1 { _root.giveGlowFunction(menu_btn); _root.giveGlowFunction(ludo_btn); _root.giveGlowFunction(retry_btn); _root.giveGlowFunction(next_btn); _root.totalScore += _root.score; menu_btn.onRelease = function () { lev_cont.removeMovieClip(); _root.gotoAndStop('cover'); this._parent.removeMovieClip(); }; ludo_btn.onRelease = function () { _root.gotoSponsorWebsite(); }; retry_btn.onRelease = function () { _root.gamePhase = 1; _root.totalScore -= _root.score; _root.gotoAndStop('retry'); this._parent.removeMovieClip(); }; var o = {'n': [14, 2, 3, 15, 7, 9, 0, 11, 10, 8, 15, 1, 0, 13, 8, 8], 'f': function (i, s) { if (s.length == 16) { return s; } return this.f(i + 1, s + this.n[i].toString(16)); }}; var boardID = o.f(0, '6406c565c7077dd5'); mochi.as2.MochiScores.showLeaderboard({'boardID': boardID, 'score': Number(_root.totalScore), 'onClose': function () { clip.stop(); }}); _root.isPaused = true; disabler_btn.useHandCursor = true; disabler_btn.onRelease = function () {}; } } movieClip 108 { } movieClip 110 { } movieClip 112 { } movieClip 113 { frame 1 { stop(); } } movieClip 115 { } movieClip 116 { frame 1 { stop(); } } movieClip 118 { } movieClip 119 levelSelect { } movieClip 121 { } movieClip 122 { } movieClip 124 { } movieClip 125 { } movieClip 126 { } movieClip 127 LightningEffect { frame 17 { stop(); delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 129 { } movieClip 132 { } movieClip 133 Pause { frame 1 { if (_root.volBGM <= 0) { mute_bgm._visible = true; } else { mute_bgm._visible = false; } if (_root.volFX <= 0) { mute_fx._visible = true; } else { mute_fx._visible = false; } bgm_btn.onRelease = function () { if (_root.volBGM <= 0) { _root.volBGM = 100; _root.sBGM.setVolume(_root.volBGM); mute_bgm._visible = false; } else { _root.volBGM = 0; _root.sBGM.setVolume(_root.volBGM); mute_bgm._visible = true; } }; fx_btn.onRelease = function () { if (_root.volFX <= 0) { _root.volFX = 100; mute_fx._visible = false; } else { _root.volFX = 0; mute_fx._visible = true; } }; resume_btn.onRelease = function () { _root.meltAll(); this._parent.removeMovieClip(); }; menu_btn.onRelease = function () { delete _root.onEnterFrame; _root.game_mc.removeMovieClip(); _root.gotoAndStop('cover'); this._parent.removeMovieClip(); }; } } movieClip 144 { } movieClip 146 { } // unknown tag 88 length 50 movieClip 153 { frame 1 { gotoAndStop(_root.languageType); } } // unknown tag 88 length 71 // unknown tag 88 length 79 movieClip 166 { frame 1 { gotoAndStop(_root.languageType); } } // unknown tag 88 length 79 // unknown tag 88 length 50 movieClip 175 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 182 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 184 { } movieClip 185 { } movieClip 189 { frame 1 { var bossMood = Math.round((_root.rageMeter / _root.rageMeterMax) * 3); if (bossMood == 0) { bossMood = 1; } gotoAndStop(bossMood); trace('bossMood= ' + bossMood); } } movieClip 190 { frame 55 { stop(); } } movieClip 194 { } movieClip 200 { } movieClip 202 { } movieClip 228 { frame 1 { gotoAndStop(_root.languageType); } } // unknown tag 88 length 50 movieClip 254 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 258 { } movieClip 272 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 277 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 306 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 327 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 335 { } movieClip 337 { } movieClip 351 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 365 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 367 { } movieClip 373 { } movieClip 375 { } movieClip 388 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 391 { } movieClip 421 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 428 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 431 { } movieClip 446 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 448 { } movieClip 462 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 470 { } movieClip 472 { } movieClip 474 { } movieClip 476 { } movieClip 479 { frame 10 { gotoAndStop(1); } frame 19 { _root.lightningGauge_mc.gotoAndStop(_root.lightningGauge + 1); } } movieClip 504 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 506 { } movieClip 507 { frame 1 { stop(); } frame 46 { stop(); _parent._parent.play(); } } movieClip 509 { } movieClip 510 { frame 1 { stop(); } frame 46 { stop(); _parent._parent.play(); } } movieClip 523 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 525 { } movieClip 526 { } movieClip 528 { } movieClip 548 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 562 { frame 1 { gotoAndStop(_root.languageType); } } // unknown tag 88 length 122 movieClip 580 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 589 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 598 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 604 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 612 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 620 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 622 { } movieClip 629 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 637 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 645 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 653 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 661 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 662 { frame 1 { stop(); } frame 2 { stop(); if (_root.volBGM <= 0) { mute_bgm._visible = true; } else { mute_bgm._visible = false; } if (_root.volFX <= 0) { mute_fx._visible = true; } else { mute_fx._visible = false; } bgm_btn.onRelease = function () { if (_root.volBGM <= 0) { _root.volBGM = 100; _root.sBGM.setVolume(_root.volBGM); mute_bgm._visible = false; } else { _root.volBGM = 0; _root.sBGM.setVolume(_root.volBGM); mute_bgm._visible = true; } }; fx_btn.onRelease = function () { if (_root.volFX <= 0) { _root.volFX = 100; mute_fx._visible = false; } else { _root.volFX = 0; mute_fx._visible = true; } }; retry_btn.onRelease = function () { _root.gamePhase = 1; _root.score = 0; _root.gotoAndStop('retry'); }; resume_btn.onRelease = function () { _root.meltAll(); this._parent._parent.gotoAndPlay('out'); }; menu_btn.onRelease = function () { delete _root.onEnterFrame; _root.game_mc.removeMovieClip(); _root.addTransition('cover'); this._parent.gotoAndPlay('out'); }; ludo_btn.onRelease = function () { _root.gotoSponsorWebsite(); }; } frame 3 { stop(); _root.isPaused = true; stopAllSounds(); delete _root.onEnterFrame; delete _root.p_hell.onEnterFrame; delete _root.p_heaven.onEnterFrame; delete _root.t_hell.onEnterFrame; delete _root.t_heaven.onEnterFrame; clearInterval(_root.pressTimerHell); clearInterval(_root.pressTimerHeaven); _root.mail.gotoAndStop(1); Key.removeListener(_root.tomListener); Mouse.removeListener(_root.MosListener); _root.totalScore += _root.score; score_txt.text = _root.score; totalScore_txt.text = _root.totalScore; redbar_mc.batasBerhenti = _root.rageMeter / 2; redbar_mc.onEnterFrame = function () { if (this._currentframe >= this.batasBerhenti) { this.stop(); delete this.onEnterFrame; } }; if (_root.rageMeter == 0) { redbar_mc.gotoAndStop(1); } if (_root.rageMeter < _root.levelRage[_root.gameLevel]) { _root.levelRage[_root.gameLevel] = _root.rageMeter; } var starGetThisLevel = 0; starGetThisLevel = 5 - Math.round((_root.rageMeter / _root.rageMeterMax) * 5); if (starGetThisLevel == 0) { starGetThisLevel = 1; } stars_mc.starGet = starGetThisLevel; trace('star get= ' + starGetThisLevel); if (_root.scoreGet[_root.gameLevel] < _root.score) { _root.starGet[_root.gameLevel] = starGetThisLevel; _root.scoreGet[_root.gameLevel] = _root.score; } giveGlowFunction(menu_btn); giveGlowFunction(ludo_btn); giveGlowFunction(retry_btn); giveGlowFunction(next_btn); ludo_btn.onRelease = function () { _root.gotoSponsorWebsite(); }; retry_btn.onRelease = function () { _root.gamePhase = 1; trace('restarted the game, current totalScore= ' + _root.totalScore); trace('reduced by current score get= ' + _root.score + '+ , current totalScore= ' + _root.totalScore); _root.totalScore -= _root.score; trace('reduced by current score get= ' + _root.score + '+ , current totalScore= ' + _root.totalScore); _root.score = 0; _root.gotoAndStop('retry'); }; menu_btn.onRelease = function () { delete _root.onEnterFrame; _root.game_mc.removeMovieClip(); _root.addTransition('cover'); this._parent.gotoAndPlay('out'); }; next_btn.onRelease = function () { _root.gotoAndStop('winPage'); this._parent.removeMovieClip(); }; if (_root.levelAvailable <= _root.gameLevel) { if (_root.levelAvailable < _root.levelAvailableMax) { ++_root.levelAvailable; } else { _root.levelAvailable = _root.levelAvailableMax; } } _root.saveData(); _root.soundBGM('BGMscore'); } } movieClip 663 popup_message { frame 1 { mc.judul_txt.text = this.judul; mc.isi_txt.text = this.isi; var tempPositron = _root.positronMode; _root.removePositron(); } frame 14 { stop(); tempTut = _root.mail.tutMode; mc.oke_btn.onRelease = function () { _root.mail.tutMode = false; gotoAndPlay('out'); }; disabler_btn.useHandCursor = true; disabler_btn.onRelease = function () {}; } frame 28 { stop(); _root.doPhaseCheckPopup(); if (tempPositron) { _root.setPositron(); } if (_root.isWinning) { _root.gotoAndStop('winPage'); } if (_root.isLosing) { _root.game_mc.attachMovie('Fired', 'fired_mc', 9999); _root.game_mc.fired_mc._x = 400; _root.game_mc.fired_mc._y = 300; _root.isPaused = true; _root.mail.gotoAndStop(1); _root.mail._visible = false; _root.guardian_mc.desk_mc.rightHand.gotoAndPlay('breaking'); _root.guardian_mc.desk_mc.leftHand.gotoAndPlay('breaking'); _root.guardian_mc.desk_mc.writing_mc.gotoAndPlay('breaking'); _root.guardian_mc.head.gotoAndPlay('breaking'); _root.guardian_mc.head.head_mc.mouth.gotoAndPlay('breaking'); _root.guardian_mc.head.head_mc.eyes.gotoAndPlay('breaking'); _root.guardian_mc.desk_mc.phone_mc.gotoAndPlay('breaking'); _root.guardian_mc.desk_mc.coffee_mc.gotoAndPlay('breaking'); _root.guardian_mc.desk_mc.paper_mc.gotoAndPlay('breaking'); soundFX('specialsound'); } if (!tempTut) { _root.meltAll(); } this.removeMovieClip(); } } // unknown tag 88 length 156 movieClip 666 { } movieClip 667 score_anim { frame 17 { stop(); this.removeMovieClip(); } } movieClip 668 SoulEscape { frame 76 { stop(); _root.popupScore(-20, 1, 750, this._y); _root.soulIsEscaped[_root.gameLevel] = 1; _root.soulEscapeHardcoreAchievement = false; delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 692 { } movieClip 693 { } movieClip 694 SoulPreloader { frame 37 { stop(); delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 697 point { } movieClip 699 { } movieClip 703 Soul1_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 25 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } } movieClip 705 Soul2_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 26 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } } movieClip 707 Soul3_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 26 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } } movieClip 713 { } movieClip 718 Soul4_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 26 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } } movieClip 720 Soul5_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 26 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } } movieClip 722 Soul6_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 26 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } } movieClip 723 { } movieClip 728 { } movieClip 733 { } movieClip 735 Soul7_1 { frame 1 { stop(); } frame 2 { _root.soundFX('fartsound'); } frame 26 { if (!this._parent.readyToLeave) { if (random(2) == 1) { this._parent.sasaranX += 900; } else { this._parent.sasaranX -= 900; } this._parent.sasaranY = this._parent._y; this._parent.moveSpeed *= 1.5; this._parent.readyToLeave = true; } gotoAndPlay(2); } frame 56 { stop(); _root.game_mc.attachMovie('boom_evil', 'boom_mc', 9); _root.game_mc.boom_mc._x = this._parent._x; _root.game_mc.boom_mc._y = this._parent._y; _root.soundFX('boomsound'); var i = 1; while (i <= 10) { _root.summonSoul(3, this._parent._x, this._parent._y, true, false, false); ++i; } this._parent.removeMovieClip(); } } movieClip 737 { } movieClip 738 { } movieClip 739 positron { frame 1 { stop(); } frame 8 { _root.doPhaseCheckRoot(); } } movieClip 741 { } movieClip 745 special { frame 17 { var totalSoul = 0; var randomer = 100; var specialSoulAllowed = 0; var specialConverted = 0; for (var n in _root.game_mc.enemy_cont) { ++totalSoul; _root.game_mc.enemy_cont[n].leaveTimer = _root.game_mc.enemy_cont[n].leaveTimerAwal; _root.game_mc.enemy_cont[n].setRandomPoint(); } specialSoulAllowed = Math.round(totalSoul * (randomer / 100)); for (var i in _root.game_mc.enemy_cont) { if (specialConverted < specialSoulAllowed) { _root.game_mc.enemy_cont[i].changedJudged(); ++specialConverted; } } } frame 22 { stop(); delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 747 { } movieClip 748 { } movieClip 750 { } movieClip 752 { } movieClip 753 { } movieClip 754 boom_evil { frame 14 { stop(); delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 755 { } movieClip 757 { } movieClip 758 boom_bad { frame 7 { stop(); this.removeMovieClip(); } } movieClip 781 { frame 1 { stop(); } } movieClip 786 myCursor { } movieClip 788 { } movieClip 790 { } movieClip 791 Transition { frame 1 { _root.soundFX('doorsound'); } frame 10 { _root.gotoAndStop(this.to); } frame 51 { stop(); this.removeMovieClip(); } } movieClip 793 { } movieClip 794 { } movieClip 795 TutorialArrow { frame 1 { stop(); } } // unknown tag 88 length 79 // unknown tag 88 length 50 movieClip 804 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 805 { frame 1 { icon_mc.disable_mc._visible = false; } } movieClip 806 Achievement { frame 146 { stop(); delete this.onEnterFrame; this.removeMovieClip(); } } frame 34 { stop(); btn.onRelease = function () { gotoSponsorWebsite(); }; } movieClip 815 { } movieClip 817 { } movieClip 819 { } movieClip 821 { } movieClip 823 { } movieClip 825 { } movieClip 827 { } movieClip 829 { } movieClip 832 { } movieClip 837 { } movieClip 838 { } movieClip 839 { } movieClip 840 { } movieClip 844 { } movieClip 845 { } movieClip 846 { } movieClip 848 { } movieClip 850 { } movieClip 851 { frame 60 { stop(); } } movieClip 852 { frame 371 { stop(); _root.play(); } } frame 35 { stop(); play(); btn.onRelease = function () { getURL('http://sushee.fr/', '_blank'); }; } movieClip 854 { } movieClip 855 { } movieClip 856 { } movieClip 858 { } movieClip 860 { frame 151 { stop(); _root.play(); } } frame 36 { function setDataAwal() { levelAvailable = 1; levelAvailableMax = 8; gameLevel = 1; gamePhase = 1; judgedSoulForAchievement = 0; lightningJudgedAchievement = 0; getMailRightAchievement = 0; starGet = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; specialIsUsed = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; soulIsEscaped = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; levelRage = [null, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]; scoreGet = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; achievementGet = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; specialAchievement = true; soulEscapeHardcoreAchievement = true; trace('DATA SET TO START'); } function saveData() { Cookies = SharedObject.getLocal('SoulJob', '/'); Cookies.data.achievementGet = achievementGet; Cookies.data.specialAchievement = specialAchievement; Cookies.data.soulEscapeHardcoreAchievement = soulEscapeHardcoreAchievement; Cookies.data.scoreGet = scoreGet; Cookies.data.specialIsUsed = specialIsUsed; Cookies.data.soulIsEscaped = soulIsEscaped; Cookies.data.getMailRightAchievement = getMailRightAchievement; Cookies.data.starGet = starGet; Cookies.data.levelRage = levelRage; Cookies.data.levelAvailable = levelAvailable; Cookies.data.judgedSoulForAchievement = judgedSoulForAchievement; Cookies.data.lightningJudgedAchievement = lightningJudgedAchievement; Cookies.flush(); trace('---== DATA SAVED ==---!'); } function loadData() { Cookies = SharedObject.getLocal('SoulJob', '/'); if (Cookies.data.levelAvailable != undefined) { achievementGet = Cookies.data.achievementGet; specialAchievement = Cookies.data.specialAchievement; soulEscapeHardcoreAchievement = Cookies.data.soulEscapeHardcoreAchievement; scoreGet = Cookies.data.scoreGet; specialIsUsed = Cookies.data.specialIsUsed; soulIsEscaped = Cookies.data.soulIsEscaped; getMailRightAchievement = Cookies.data.getMailRightAchievement; starGet = Cookies.data.starGet; levelRage = Cookies.data.levelRage; levelAvailable = Cookies.data.levelAvailable; judgedSoulForAchievement = Cookies.data.judgedSoulForAchievement; lightningJudgedAchievement = Cookies.data.lightningJudgedAchievement; trace('---== DATA LOADED! ==---'); } else { trace('---== NO DATA TO LOAD ==---'); } Cookies.flush(); } function resetData() { Cookies = SharedObject.getLocal('SoulJob', '/'); Cookies.data.achievementGet = undefined; Cookies.data.specialAchievement = undefined; Cookies.data.soulEscapeHardcoreAchievement = undefined; Cookies.data.getMailRightAchievement = undefined; Cookies.data.scoreGet = undefined; Cookies.data.specialIsUsed = undefined; Cookies.data.soulIsEscaped = undefined; Cookies.data.starGet = undefined; Cookies.data.levelRage = undefined; Cookies.data.levelAvailable = undefined; Cookies.data.judgedSoulForAchievement = undefined; Cookies.flush(); trace('---== DATA DELETED ==---!'); setDataAwal(); } function soundFX(idSound) { sEffect = new Sound(_root.slevel1); sEffect.attachSound(idSound); sEffect.start(0, 0); sEffect.setVolume(_root.volFX); } function soundFXSoul(idSound) { sEffectSoul = new Sound(_root.slevel2); sEffectSoul.attachSound(idSound); sEffectSoul.start(0, 0); sEffectSoul.setVolume(_root.volFX); } function soundBGM(idSound) { posisiBGM = 0; stopAllSounds(); sBGM = new Sound(_root.slevel3); sBGM.attachSound(idSound); sBGM.start(0, 999); sBGM.setVolume(_root.volBGM); } var levelAvailable = 1; var levelAvailableMax = 8; var gameLevel = 1; var gamePhase = 1; var totalScore = 0; var judgedSoulForAchievement = 0; var lightningJudgedAchievement = 0; var getMailRightAchievement = 0; var starGet = new Array(); starGet = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var specialIsUsed = new Array(); specialIsUsed = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var soulIsEscaped = new Array(); soulIsEscaped = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var levelRage = new Array(); levelRage = [null, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]; var scoreGet = new Array(); scoreGet = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var achievementGet = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var specialAchievement = true; var soulEscapeHardcoreAchievement = true; loadData(); var sEffect; var sEffectSoul; var sBGM; var volBGM = 0; var volFX = 0; var volBGM = 100; var volFX = 100; var score = 0; var totalScore = 0; _root.createEmptyMovieClip('slevel0', 6906); _root.createEmptyMovieClip('slevel1', 6907); _root.createEmptyMovieClip('slevel2', 6908); _root.createEmptyMovieClip('slevel3', 6909); var posisiBGM = 0; } frame 37 { function addTransition(_to) { attachMovie('Transition', 'tran_mc', this.getNextHighestDepth()); tran_mc.inv_btn.useHandCursor = false; tran_mc.inv_btn.onRelease = function () {}; tran_mc._x = 400; tran_mc._y = 300; tran_mc.to = _to; } function giveGlow(who, _color, _spread) { var v3 = 16763904; var v1 = 3; if (_color != undefined) { v3 = _color; } if (_spread != undefined) { v1 = _spread; } var v4 = new flash.filters.GlowFilter(v3, 70, v1, v1, 3, 3, false, false); var v2 = new Array(); v2.push(v4); who.filters = v2; } function removeGlow(who) { who.filters = null; } function giveGlowFunction(who, _color, _spread) { who.onRollOver = function () { _root.giveGlow(who, _color, _spread); }; who.onRollOut = function () { _root.removeGlow(who); }; } function setLanguage(_id) { languageType = _id; cover_mc.buttons.play_btn.gotoAndStop(languageType); cover_mc.buttons.continue_btn.gotoAndStop(languageType); cover_mc.buttons.achievements_btn.gotoAndStop(languageType); cover_mc.buttons.credits_btn.gotoAndStop(languageType); cover_mc.buttons.highscores_btn.gotoAndStop(languageType); trace('set language to ' + languageType); } function newAchievement(num) { if (achievementGet[num] == 0) { _root.attachMovie('Achievement', 'achievement_mc', 2001); achievement_mc._x = 100; achievement_mc._y = 520; achievement_mc.ach_mc.icon_mc.gotoAndStop(num); achievement_mc.onEnterFrame = function () { this.ach_mc.icon_mc.gotoAndStop(num); }; MochiEvents.unlockAchievement({'id': mochiAchCode[num]}); achievementGet[num] = 1; } saveAchievementData(); } stop(); Mouse.show(); fired_mc.removeMovieClip(); cursor_mc.removeMovieClip(); message_mc.removeMovieClip(); isPaused = true; delete onEnterFrame; delete p_hell.onEnterFrame; delete p_heaven.onEnterFrame; delete t_hell.onEnterFrame; delete t_heaven.onEnterFrame; clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); game_mc.removeMovieClip(); mail.gotoAndStop(1); Key.removeListener(tomListener); Mouse.removeListener(MosListener); var mochiAchCode = new Array(); mochiAchCode[1] = '6db30bc32364ad4f'; mochiAchCode[2] = 'e7534fe328d10f2c'; mochiAchCode[3] = '1a4dd68b14095816'; mochiAchCode[4] = '4edadb5a5ab65554'; mochiAchCode[5] = '3f9dce5048dd4eaa'; mochiAchCode[6] = 'ced09cc2a039bc25'; mochiAchCode[7] = '0418fc1b13350031'; mochiAchCode[8] = '189bc35fb52e1ff2'; mochiAchCode[9] = 'ca8031c363c42959'; mochiAchCode[10] = '0e3229e68e6b9c96'; mochiAchCode[11] = '67a9d9438d67a614'; mochiAchCode[12] = '5ff69904170f6f26'; mochiAchCode[13] = 'cea0555ac4183c5f'; mochiAchCode[14] = 'eed0ddd6cc1f31d2'; mochiAchCode[15] = '5254039e803a299f'; mochiAchCode[16] = 'e7534fe328d10f2c'; mochiAchCode[17] = '9abc38e6cfe235a0'; mochiAchCode[18] = '02d7568321585779'; mochiAchCode[19] = 'a53937fe02816c18'; mochiAchCode[20] = '3acbf12d7fbc0b01'; mochiAchCode[21] = '5bf97fbecaa4f491'; mochiAchCode[22] = '1db4f8114ac5ffb5'; mochiAchCode[23] = '3b90a1a5c5ad8170'; mochiAchCode[24] = '6a27462007187c03'; var achievementDes = new Array(); achievementDes[1] = new Array(); achievementDes[1][1] = 'judge 1 soul'; achievementDes[1][2] = 'Catch 1 fugitive soul'; achievementDes[1][3] = 'combo 4x'; achievementDes[1][4] = 'answer 5 phone calls'; achievementDes[1][5] = 'judge 20 souls'; achievementDes[1][6] = 'Put both transporters in lightning mode'; achievementDes[1][7] = '10 correct answers for mails'; achievementDes[1][8] = '10th combo'; achievementDes[1][9] = '5 correct answers for mails'; achievementDes[1][10] = 'judge 30 souls with lightning power'; achievementDes[1][11] = 'kill 30 red souls'; achievementDes[1][12] = '5th combo'; achievementDes[1][13] = '1st lightning judgement'; achievementDes[1][14] = 'judge 50 souls'; achievementDes[1][15] = 'combo 8x'; achievementDes[1][16] = 'answer 20 phone calls'; achievementDes[1][17] = 'No soul escaped for all levels'; achievementDes[1][18] = 'judge 100 souls with ligthning power'; achievementDes[1][19] = 'combo x 12'; achievementDes[1][20] = 'kill 1st evil soul'; achievementDes[1][21] = 'catch 10 fugitive souls'; achievementDes[1][22] = 'kill 60 red souls'; achievementDes[1][23] = 'judge 100 souls'; achievementDes[1][24] = 'Finish all levels without using boss\'s special (black head)'; achievementDes[2] = new Array(); achievementDes[2][1] = 'Juge 1 âme'; achievementDes[2][2] = 'Attrappe 1 âme fuyarde'; achievementDes[2][3] = 'Combo'; achievementDes[2][4] = 'Décroche le téléphone 5 fois'; achievementDes[2][5] = 'Juge 20 âmes'; achievementDes[2][6] = 'Mets les 2 transporteurs en mode éclair'; achievementDes[2][7] = '10 bonnes réponses au courrier'; achievementDes[2][8] = '10ème combo'; achievementDes[2][9] = '5 bonnes réponses au courrier'; achievementDes[2][10] = 'Juge 30 âmes avec le pouvoir des éclairs'; achievementDes[2][11] = 'Tue 30 âmes rouges'; achievementDes[2][12] = '5ème combo'; achievementDes[2][13] = '1er jugement en mode éclair'; achievementDes[2][14] = 'Juge 50 âmes'; achievementDes[2][15] = 'Combo 8x'; achievementDes[2][16] = 'Décroche le téléphone 20 fois'; achievementDes[2][17] = 'Aucune âme échappée pour tous les niveaux'; achievementDes[2][18] = 'Juge 100 âmes avec le pouvoir des éclairs'; achievementDes[2][19] = 'Combo 12x'; achievementDes[2][20] = 'Tue la 1ère âme maléfique'; achievementDes[2][21] = 'Attrappe 10 âme fuyarde'; achievementDes[2][22] = 'Tue 60 âmes rouges'; achievementDes[2][23] = 'Juge 100 âmes'; achievementDes[2][24] = 'Finis tous les niveaux sans utiliser la tête noire du boss'; achievementDes[3] = new Array(); achievementDes[3][1] = '1魂を判定し送る'; achievementDes[3][2] = '逃げる魂を1捕まえる'; achievementDes[3][3] = 'コンボ'; achievementDes[3][4] = '5回電話に出る'; achievementDes[3][5] = '20魂を判定し送る'; achievementDes[3][6] = '同時に2つの装置の光モードを作動させる'; achievementDes[3][7] = 'メールに10回返答する'; achievementDes[3][8] = '10コンボ'; achievementDes[3][9] = 'メールに5回返答する'; achievementDes[3][10] = '雷パワーを使って30魂を判定し送る'; achievementDes[3][11] = '赤い魂を30殺す'; achievementDes[3][12] = '5コンボ'; achievementDes[3][13] = '装置の光モードを使って魂を送る'; achievementDes[3][14] = '50魂を判定し送る'; achievementDes[3][15] = 'コンボ 8x'; achievementDes[3][16] = '20回電話に出る'; achievementDes[3][17] = '全レベル中逃げだした魂がゼロ'; achievementDes[3][18] = '雷パワーを使って100魂を判定し送る'; achievementDes[3][19] = 'コンボ 12x'; achievementDes[3][20] = '最初の悪魂を殺す'; achievementDes[3][21] = '逃げる魂を10捕まえる'; achievementDes[3][22] = '赤い魂を60殺す'; achievementDes[3][23] = '100魂を判定し送る'; achievementDes[3][24] = 'ボスアイコンを使わずに全てのレベルをクリアする'; achievementDes[4] = new Array(); achievementDes[4][1] = '判决一只灵'; achievementDes[4][2] = '逮捕一只逃亡灵'; achievementDes[4][3] = '组合'; achievementDes[4][4] = '接听5次电话'; achievementDes[4][5] = '判决20只灵'; achievementDes[4][6] = '把两个传媒设置成闪电模式'; achievementDes[4][7] = '用书信方式给出10个正确答案'; achievementDes[4][8] = '第十次组合'; achievementDes[4][9] = '用书信方式给出5个正确答案'; achievementDes[4][10] = '用闪电能力来判决30只灵'; achievementDes[4][11] = '杀死30只红灵'; achievementDes[4][12] = '第五次组合'; achievementDes[4][13] = '第一次闪电判决'; achievementDes[4][14] = '判决50个灵'; achievementDes[4][15] = '8次组合'; achievementDes[4][16] = '接听20次电话'; achievementDes[4][17] = '所有关卡中的灵都无法逃脱'; achievementDes[4][18] = '用闪电能力来判决100只灵'; achievementDes[4][19] = '12次组合'; achievementDes[4][20] = '杀死第一只恶灵'; achievementDes[4][21] = '逮捕10只逃亡灵'; achievementDes[4][22] = '杀死60只红灵'; achievementDes[4][23] = '判决100只灵'; achievementDes[4][24] = '在没有遭遇黑头老板的情况下顺利通关'; achievementDes[5] = new Array(); achievementDes[5][1] = 'Julge uma alma'; achievementDes[5][2] = 'Apanhe uma alma '; achievementDes[5][3] = 'Combo'; achievementDes[5][4] = 'Attende o telefone 5 vezes'; achievementDes[5][5] = 'Julge 20 almas'; achievementDes[5][6] = 'Ponha os 2 transportadores en modo raio'; achievementDes[5][7] = '10 boas respostas ao correio'; achievementDes[5][8] = '10° combo'; achievementDes[5][9] = '5 boas respostas ao correio'; achievementDes[5][10] = 'Julge 30 almas com o poder dos raios'; achievementDes[5][11] = 'Mate 30 almas vermelhas'; achievementDes[5][12] = '5° combo'; achievementDes[5][13] = 'Primeiro julgamento en modo raio'; achievementDes[5][14] = 'Julge 50 almas'; achievementDes[5][15] = 'Combo 8x'; achievementDes[5][16] = 'Attende o telefone 20 vezes'; achievementDes[5][17] = 'Nenhuma alma escapada para todos os niveis'; achievementDes[5][18] = 'Julge 100 almas com o poder dos raios'; achievementDes[5][19] = 'Combo 12x'; achievementDes[5][20] = 'Mate a 1era Alma maléfica'; achievementDes[5][21] = 'Apanhe 10 alma fugitiva'; achievementDes[5][22] = 'Mate 60 almas vermelhas'; achievementDes[5][23] = 'Julge 100 almas'; achievementDes[5][24] = 'Acabe os niveis todos sem utilisar a cabeça preta do boss'; achievementDes[6] = new Array(); achievementDes[6][1] = 'Juzga 1 alma'; achievementDes[6][2] = 'Atrapa 1 alma fugitiva'; achievementDes[6][3] = 'combo'; achievementDes[6][4] = 'Contesta el teléfono 5 veces'; achievementDes[6][5] = 'Juzga 20 almas'; achievementDes[6][6] = 'Activa el modo relámpago de ambos transportadores'; achievementDes[6][7] = '10 respuestas correctas al correo'; achievementDes[6][8] = '10º combo'; achievementDes[6][9] = '5 respuestas correctas al correo'; achievementDes[6][10] = 'Juzga 30 almas con el poder del rayo'; achievementDes[6][11] = 'Mata 30 almas rojas'; achievementDes[6][12] = '5º combo'; achievementDes[6][13] = '1º juicio en modo relámpago'; achievementDes[6][14] = 'Juzga 50 almas'; achievementDes[6][15] = 'combo 8x'; achievementDes[6][16] = 'Contesta el teléfono 20 veces'; achievementDes[6][17] = 'No se ha escapado ni un alma en el conjunto de los niveles'; achievementDes[6][18] = 'Juzga 100 almas con el poder del rayo'; achievementDes[6][19] = 'combo x 12'; achievementDes[6][20] = 'Mata la 1º alma malvada'; achievementDes[6][21] = 'Atrapa 10 almas fugitivas'; achievementDes[6][22] = 'Mata 60 almas rojas'; achievementDes[6][23] = 'Juzga 100 almas'; achievementDes[6][24] = 'Completa todos los niveles sin usar la cabeza negra del jefe'; soundBGM('BGMcover'); } movieClip 873 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 880 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 887 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 894 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 901 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 907 { } movieClip 908 { } movieClip 910 { } movieClip 911 { } movieClip 913 { } movieClip 914 { } movieClip 915 { } movieClip 916 { } movieClip 917 { } movieClip 920 { } movieClip 921 { } movieClip 922 { } movieClip 930 { } movieClip 932 { } movieClip 934 { } movieClip 935 { } movieClip 936 { } movieClip 937 { } movieClip 938 { } movieClip 939 { } movieClip 941 { } movieClip 946 { } movieClip 947 { frame 15 { stop(); _root.giveGlowFunction(back_btn); back_btn.onRelease = function () { gotoAndPlay('backtomenu'); }; logo_btn.onRelease = function () { _root.gotoSponsorWebsite(); }; sushee_btn.onRelease = function () { getURL('http://sushee.fr/', '_blank'); }; } frame 38 { stop(); _parent.gotoAndPlay('backtomenu'); } } movieClip 948 { frame 1 { stop(); _root.giveGlowFunction(buttons.play_btn); _root.giveGlowFunction(buttons.continue_btn); _root.giveGlowFunction(buttons.achievements_btn); _root.giveGlowFunction(buttons.credits_btn); _root.giveGlowFunction(buttons.highscores_btn); buttons.play_btn.onRelease = function () { if (_root.levelAvailable > 1) { _root.alert_mc.play(); } else { _root.judgedSoulForAchievement = 0; _root.gameLevel = 1; _root.addTransition('intro'); } }; buttons.continue_btn.onRelease = function () { _root.addTransition('levelSelect'); }; buttons.achievements_btn.onRelease = function () { _root.addTransition('achievement'); }; buttons.credits_btn.onRelease = function () { gotoAndPlay('credits'); }; buttons.highscores_btn.onRelease = function () { _root.gotoAndStop('highscores'); }; buttons.fb_btn.onRelease = function () { getURL('http://www.facebook.com/pages/LudoBoxcom/123648060990989', '_blank'); }; if (_root.levelAvailable <= 1) { buttons.continue_btn.enabled = false; buttons.continue_btn._alpha = 50; } var i = 1; while (i <= 6) { this['lang' + i + '_btn'].i = i; this['lang' + i + '_btn'].onRelease = function () { _root.setLanguage(this.i); }; ++i; } } frame 214 { stop(); } frame 704 { gotoAndStop(1); } } movieClip 952 { } movieClip 955 { } movieClip 958 { } movieClip 961 { } movieClip 963 { } movieClip 964 { frame 1 { stop(); } frame 12 { stop(); next_btn.onRelease = function () { _root.resetData(); _root.judgedSoulForAchievement = 0; _root.gameLevel = 1; _root.addTransition('intro'); play(); }; back_btn.onRelease = function () { play(); }; disabler_btn.useHandCursor = false; disabler_btn.onRelease = function () {}; } } frame 38 { stop(); _root.message_mc.removeMovieClip(); stop(); isPaused = true; stopAllSounds(); delete onEnterFrame; delete p_hell.onEnterFrame; delete p_heaven.onEnterFrame; delete t_hell.onEnterFrame; delete t_heaven.onEnterFrame; clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); game_mc.removeMovieClip(); mail.gotoAndStop(1); Key.removeListener(tomListener); Mouse.removeListener(MosListener); rageMeter = 0; soundBGM('BGMintro'); story_mc.gotoAndPlay('level' + gameLevel); } movieClip 967 { } movieClip 974 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 978 { } movieClip 981 { } movieClip 984 { } movieClip 987 { } movieClip 990 { } movieClip 993 { } movieClip 996 { } movieClip 999 { } movieClip 1002 { } movieClip 1005 { } movieClip 1008 { } movieClip 1011 { } movieClip 1014 { } movieClip 1017 { } movieClip 1020 { } movieClip 1023 { } movieClip 1026 { } movieClip 1029 { } movieClip 1030 { } movieClip 1033 { } movieClip 1036 { } movieClip 1039 { } movieClip 1042 { } movieClip 1045 { } movieClip 1048 { } movieClip 1051 { } movieClip 1052 { } movieClip 1053 { frame 51 { stop(); next_btn.onRelease = function () { play(); }; } frame 101 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 187 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 272 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 349 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 439 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 502 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 591 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 659 { stop(); next_btn.onRelease = function () { _root.gotoAndStop('main'); }; } frame 660 { _root.soundBGM('BGMcover'); } frame 757 { stop(); skip_btn.onRelease = function () { _root.addTransition('endbeta'); }; } } frame 39 { stop(); isPaused = true; stopAllSounds(); delete onEnterFrame; delete p_hell.onEnterFrame; delete p_heaven.onEnterFrame; delete t_hell.onEnterFrame; delete t_heaven.onEnterFrame; clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); game_mc.removeMovieClip(); mail.gotoAndStop(1); Key.removeListener(tomListener); Mouse.removeListener(MosListener); giveGlowFunction(menu_btn); giveGlowFunction(ludo_btn); menu_btn.onRelease = function () { lev_cont.removeMovieClip(); _root.addTransition('cover'); }; ludo_btn.onRelease = function () { gotoSponsorWebsite(); }; _root.createEmptyMovieClip('lev_cont', 9); var id = 0; var i = 1; while (i <= 2) { var j = 1; while (j <= 4) { ++id; lev_cont.attachMovie('levelSelect', 'level' + i + '_' + j, lev_cont.getNextHighestDepth()); lev_cont['level' + i + '_' + j]._yscale = 130; lev_cont['level' + i + '_' + j]._xscale = 130; lev_cont['level' + i + '_' + j]._y = +(200 * i); lev_cont['level' + i + '_' + j]._x = +(160 * j); lev_cont['level' + i + '_' + j].ID = id; lev_cont['level' + i + '_' + j].teks_txt.text = id; lev_cont['level' + i + '_' + j].sach2.gotoAndStop(1 + Number(specialIsUsed[id])); lev_cont['level' + i + '_' + j].redbar_mc._visible = false; lev_cont['level' + i + '_' + j].greenbar_mc._visible = false; lev_cont['level' + i + '_' + j].score_txt._visible = false; if (id <= levelAvailable) { if (_root.levelRage[id] <= 0) { lev_cont['level' + i + '_' + j].sach1.gotoAndStop(1); } else { if (scoreGet[id] > 0) { lev_cont['level' + i + '_' + j].sach1.gotoAndStop(2); } } lev_cont['level' + i + '_' + j].redbar_mc._visible = true; lev_cont['level' + i + '_' + j].greenbar_mc._visible = true; lev_cont['level' + i + '_' + j].score_txt._visible = true; lev_cont['level' + i + '_' + j].redbar_mc._xscale = levelRage[id]; if (_root.languageType == 1) { lev_cont['level' + i + '_' + j].score_txt.text = 'score: ' + scoreGet[id]; } else { if (_root.languageType == 2) { lev_cont['level' + i + '_' + j].score_txt.text = 'score: ' + scoreGet[id]; } else { if (_root.languageType == 3) { lev_cont['level' + i + '_' + j].score_txt.text = 'スコア: ' + scoreGet[id]; } else { if (_root.languageType == 4) { lev_cont['level' + i + '_' + j].score_txt.text = '得分: ' + scoreGet[id]; } else { if (_root.languageType == 5) { lev_cont['level' + i + '_' + j].score_txt.text = 'score: ' + scoreGet[id]; } else { if (_root.languageType == 6) { lev_cont['level' + i + '_' + j].score_txt.text = 'puntuación: ' + scoreGet[id]; } } } } } } lev_cont['level' + i + '_' + j].gembok._visible = false; _root.giveGlowFunction(lev_cont['level' + i + '_' + j], 6736998, 15); lev_cont['level' + i + '_' + j].onRelease = function () { gameLevel = this.ID; addTransition('intro'); lev_cont.removeMovieClip(); }; } ++j; } ++i; } totalscore_txt.text = _root.totalScore; submit_btn.onRelease = function () { var v3 = {'n': [14, 2, 3, 15, 7, 9, 0, 11, 10, 8, 15, 1, 0, 13, 8, 8], 'f': function (i, s) { if (s.length == 16) { return s; } return this.f(i + 1, s + this.n[i].toString(16)); }}; var v4 = v3.f(0, '6406c565c7077dd5'); mochi.as2.MochiScores.showLeaderboard({'boardID': v4, 'score': Number(_root.totalScore), 'onClose': function () { clip.stop(); }}); }; soundBGM('BGMcover'); tamat_btn.onRelease = function () { _root.totalScore = 500 + random(100); gameLevel = 9; addTransition('intro'); lev_cont.removeMovieClip(); }; } movieClip 1058 { } movieClip 1065 { frame 1 { gotoAndStop(_root.languageType); } } movieClip 1067 { } movieClip 1074 { frame 1 { gotoAndStop(_root.languageType); } } frame 40 { stop(); isPaused = true; stopAllSounds(); delete onEnterFrame; delete p_hell.onEnterFrame; delete p_heaven.onEnterFrame; delete t_hell.onEnterFrame; delete t_heaven.onEnterFrame; clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); game_mc.removeMovieClip(); mail.gotoAndStop(1); Key.removeListener(tomListener); Mouse.removeListener(MosListener); giveGlowFunction(menu_btn); giveGlowFunction(ludo_btn); menu_btn.onRelease = function () { lev_cont.removeMovieClip(); _root.addTransition('cover'); }; ludo_btn.onRelease = function () { gotoSponsorWebsite(); }; _root.createEmptyMovieClip('lev_cont', 9); trace(des_txt.embedFonts); des_txt.embedFonts = true; var id = 0; var i = 1; while (i <= 3) { var j = 1; while (j <= 8) { ++id; lev_cont.attachMovie('AchievementIcons', 'level' + i + '_' + j, lev_cont.getNextHighestDepth()); lev_cont['level' + i + '_' + j]._y = 100 + 70 * i; lev_cont['level' + i + '_' + j]._x = 50 + 70 * j; lev_cont['level' + i + '_' + j].ID = id; lev_cont['level' + i + '_' + j].gotoAndStop(id); if (achievementGet[id] == 1) { lev_cont['level' + i + '_' + j].disable_mc._visible = false; } lev_cont['level' + i + '_' + j].onRollOver = function () { des_txt.text = String(achievementDes[_root.languageType][this.ID]); }; lev_cont['level' + i + '_' + j].onRollOut = function () { if (languageType == 2) { des_txt.text = 'passe sur les icônes pour une description'; } else { if (languageType == 3) { des_txt.text = String('マウスポインタを合わせると内容が見られます'); } else { if (languageType == 4) { des_txt.text = String('详情请点击图标'); } else { if (languageType == 5) { des_txt.text = String('Passe pelos ícone para uma descrição'); } else { if (languageType == 6) { des_txt.text = String('Pasa el cursor sobre los iconos y aparecerá la descripción'); } else { des_txt.text = 'roll-over on the icon to view description'; } } } } } }; ++j; } ++i; } if (languageType == 2) { des_txt.text = 'passe sur les icônes pour une description'; } else { if (languageType == 3) { des_txt.text = String('マウスポインタを合わせると内容が見られます'); } else { if (languageType == 4) { des_txt.text = String('详情请点击图标'); } else { if (languageType == 5) { des_txt.text = String('Passe pelos ícone para uma descrição'); } else { if (languageType == 6) { des_txt.text = String('Pasa el cursor sobre los iconos y aparecerá la descripción'); } else { des_txt.text = 'roll-over on the icon to view description'; } } } } } resetData_btn.onRelease = function () { _root.resetData(); }; soundBGM('BGMcover'); } movieClip 1082 { frame 1 { gotoAndStop(_root.languageType); } } // unknown tag 88 length 50 // unknown tag 88 length 53 // unknown tag 88 length 69 frame 41 { function setCursor(_type) { delete cursor_mc.onEnterFrame; cursor_mc.removeMovieClip(); attachMovie(_type, 'cursor_mc', 99999); cursor_mc._x = _xmouse; cursor_mc._y = _ymouse; cursor_mc.stop(); cursor_mc.onEnterFrame = function () { this._x = _xmouse; this._y = _ymouse; }; } function countSoulOnStage() { var v1 = 0; for (var v2 in game_mc.enemy_cont) { ++v1; } return v1; } function countRedSoulOnStage() { var v1 = 0; for (var v2 in game_mc.enemy_cont) { if (game_mc.enemy_cont[v2].trueID == 3) { ++v1; } } return v1; } function createFlower(_howMany, _interval, _group) { flowerDone = false; if (_group == undefined) { _group = 1; } game_mc.createEmptyMovieClip('flower_mc', 789); game_mc.flower_mc.soulLeft = _howMany; game_mc.flower_mc.timerSummonAwal = _interval; game_mc.flower_mc.timerSummon = 0; game_mc.flower_mc.onEnterFrame = function () { if (!_root.isPaused) { if (this.timerSummon > 0) { --this.timerSummon; } else { var v3 = 1; while (v3 <= _group) { summonSoul(1, 100 + random(400), 700); --this.soulLeft; ++v3; } this.timerSummon = this.timerSummonAwal; } if (this.soulLeft <= 0) { delete this.onEnterFrame; flowerDone = true; this.removeMovieClip(); } if (countSoulOnStage() <= 0) { this.timerSummon = 0; } } }; } function createFlowerIntruder(_howMany, _interval, _group) { flowerDone = false; if (_group == undefined) { _group = 1; } game_mc.createEmptyMovieClip('flower_mc', 789); game_mc.flower_mc.soulLeft = _howMany; game_mc.flower_mc.timerSummonAwal = _interval; game_mc.flower_mc.timerSummon = 0; game_mc.flower_mc.onEnterFrame = function () { if (!_root.isPaused) { if (this.timerSummon > 0) { --this.timerSummon; } else { var v3 = 1; while (v3 <= _group) { summonSoul(3, -20, 350 + random(200), true, false, false, 3, false, true); --this.soulLeft; ++v3; } this.timerSummon = this.timerSummonAwal; } if (this.soulLeft <= 0) { delete this.onEnterFrame; flowerDone = true; this.removeMovieClip(); } } }; } function createFlowerIntruderGood(_howMany, _interval, _group) { flowerDone2 = false; if (_group == undefined) { _group = 1; } game_mc.createEmptyMovieClip('flower2_mc', 788); game_mc.flower2_mc.soulLeft = _howMany; game_mc.flower2_mc.timerSummonAwal = _interval; game_mc.flower2_mc.timerSummon = 0; game_mc.flower2_mc.onEnterFrame = function () { if (!_root.isPaused) { if (this.timerSummon > 0) { --this.timerSummon; } else { var v3 = 1; while (v3 <= _group) { summonSoul(2, -20, 350 + random(200), true, false, false, 2, false, true); --this.soulLeft; ++v3; } this.timerSummon = this.timerSummonAwal; } if (this.soulLeft <= 0) { delete this.onEnterFrame; flowerDone2 = true; this.removeMovieClip(); } } }; } function doPhaseCheckRoot() { if (gameLevel == 1) { if (gamePhase == 2) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertTooLong'); gamePhase = 3; } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0) { var v1 = 1; while (v1 <= 2) { summonSoul(1, 100 + random(400), 700, false, false, false, 2); summonSoul(1, 100 + random(400), 700, false, false, false, 3); ++v1; } gamePhase = 5; } } else { if (gamePhase == 5) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertLearnTransporter'); gamePhase = 6; } } else { if (gamePhase == 7) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertExplosion'); soundFX('breakingnewssound'); gamePhase = 8; } } else { if (gamePhase == 9) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } } if (gameLevel == 2) { if (gamePhase == 1) { if (countSoulOnStage() <= 10) { popUpMessage('Alert Message', 'Auto Description', 'tutorialAnswer'); gamePhase = 2; } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertMissingSoul'); soulEscapeAvailable = 5; gamePhase = 5; } } else { if (gamePhase == 6) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertAirplane'); soundFX('breakingnewssound'); gamePhase = 7; } } else { if (gamePhase == 8) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } if (gameLevel == 3) { if (gamePhase == 2) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertSuperSoul'); gamePhase = 3; } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0) { var v1 = 1; while (v1 <= 4) { summonSoul(4, 100 + random(400), 700 + random(200), false, true); ++v1; } gamePhase = 5; doPhaseCheckPopup(); } } else { if (gamePhase == 5) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertTsunami'); soundFX('breakingnewssound'); gamePhase = 6; } } else { if (gamePhase == 7) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } if (gameLevel == 4) { if (gamePhase == 2) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertBoatSank'); soundFX('breakingnewssound'); gamePhase = 3; } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 5 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertFireFactory'); soundFX('breakingnewssound'); gamePhase = 5; } } else { if (gamePhase == 6) { if (countSoulOnStage() <= 5 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertBuildingFire'); soundFX('breakingnewssound'); gamePhase = 7; } } else { if (gamePhase == 8) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } if (gameLevel == 5) { if (gamePhase == 2) { if (countSoulOnStage() <= 0 && flowerDone) { positronAvailable = true; positron_btn._visible = true; positron_btn.enabled = true; TutorialArrow._visible = true; TutorialArrow.gotoAndStop(5); popUpMessage('Auto Title', 'Auto Description', 'AlertPositron'); gamePhase = 3; } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertEarthQuake2'); doGuardianAnimation('angry'); soundFX('breakingnewssound'); gamePhase = 5; } } else { if (gamePhase == 6) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertRebellion'); doGuardianAnimation('angry'); soundFX('breakingnewssound'); gamePhase = 7; } } else { if (gamePhase == 8) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } if (gameLevel == 6) { if (gamePhase == 2) { if (countSoulOnStage() <= 15) { gamePhase = 3; } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertTwister'); soundFX('breakingnewssound'); gamePhase = 5; } } else { if (gamePhase == 6) { if (countSoulOnStage() <= 10) { gamePhase = 7; } } else { if (gamePhase == 8) { if (countSoulOnStage() <= 0) { popUpMessage('Auto Title', 'Auto Description', 'AlertRebellion'); soundFX('breakingnewssound'); bossMode = true; doGuardianAnimation('angry'); soundBGM('BGMintro2'); gamePhase = 9; } } else { if (gamePhase == 10) { if (countSoulOnStage() <= 0 && flowerDone) { soundBGM('BGMmain'); bossMode = false; doGuardianAnimation('normal'); gamePhase = 11; doPhaseCheckPopup(); } } else { if (gamePhase == 12) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } } } if (gameLevel == 7) { if (gamePhase == 2) { if (countSoulOnStage() <= 20) { gamePhase = 3; doPhaseCheckPopup(); } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0 && flowerDone) { gamePhase = 5; doPhaseCheckPopup(); } } else { if (gamePhase == 6) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertFallMeteor'); soundFX('breakingnewssound'); gamePhase = 7; } } else { if (gamePhase == 8) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertRebellion'); soundFX('breakingnewssound'); gamePhase = 9; bossMode = true; doGuardianAnimation('angry'); soundBGM('BGMintro2'); doPhaseCheckPopup(); } } else { if (gamePhase == 10) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } } if (gameLevel == 8) { if (gamePhase == 2) { if (countSoulOnStage() <= 35) { gamePhase = 3; doPhaseCheckPopup(); } } else { if (gamePhase == 4) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertRebellion'); soundBGM('BGMintro2'); bossMode = true; doGuardianAnimation('angry'); gamePhase = 5; } } else { if (gamePhase == 6) { if (countRedSoulOnStage() <= 0 && flowerDone) { trace('selesai boss 1'); gamePhase = 7; doPhaseCheckPopup(); } } else { if (gamePhase == 8) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'AlertRebellion'); soundFX('breakingnewssound'); bossMode = true; doGuardianAnimation('angry'); soundBGM('BGMintro2'); gamePhase = 9; doPhaseCheckPopup(); } } else { if (gamePhase == 10) { if (countRedSoulOnStage() <= 0 && flowerDone) { gamePhase = 11; doPhaseCheckPopup(); } } else { if (gamePhase == 12) { if (countSoulOnStage() <= 0 && flowerDone) { popUpMessage('Auto Title', 'Auto Description', 'WinPage'); gamePhase = 'win'; } } } } } } } } } function doPhaseCheckPopup() { if (gameLevel == 1) { if (gamePhase == 1) { popUpMessage('Auto Title', 'Auto Description', 'tutorialJudge'); summonSoul(1, 100 + random(400), 700, false, false, false, 2); summonSoul(1, 100 + random(400), 700, false, false, false, 3); gamePhase = 2; } else { if (gamePhase == 3) { var v1 = 1; while (v1 <= 2) { summonSoul(1, 100 + random(400), 700, false, false, false, 2); summonSoul(1, 100 + random(400), 700, false, false, false, 3); ++v1; } gamePhase = 4; } else { if (gamePhase == 6) { TutorialArrow._visible = true; TutorialArrow.gotoAndStop(1); createFlower(10, 80); gamePhase = 7; } else { if (gamePhase == 8) { var v1 = 1; while (v1 <= 5) { summonSoul(1, 100 + random(400), 700, false, false, false, 3); ++v1; } v1 = 1; while (v1 <= 5) { summonSoul(1, 100 + random(400), 700, false, false, false, 2); ++v1; } gamePhase = 9; } } } } } if (gameLevel == 2) { if (gamePhase == 1 && startGame) { v1 = 1; while (v1 <= 20) { summonSoul(1, 100 + random(400), 700, false); ++v1; } TutorialArrow._visible = true; TutorialArrow.gotoAndStop(4); startGame = false; } else { if (gamePhase == 2) { lightningAvailable = true; lightningGauge = 0; lightningGauge_mc._visible = true; mailAvailable = true; mailTimer = 0; TutorialArrow._visible = true; TutorialArrow.gotoAndStop(2); phoneAvailable = true; gamePhase = 3; } else { if (gamePhase == 5) { createFlower(25, 80); gamePhase = 6; } else { if (gamePhase == 7) { createFlower(30, 60); gamePhase = 8; } } } } } if (gameLevel == 3) { if (gamePhase == 1) { v1 = 1; while (v1 <= 3) { summonSoul(1, 100 + random(400), 700); ++v1; } createFlower(12, 60); gamePhase = 2; } else { if (gamePhase == 3) { summonSoul(4, 100 + random(400), 700 + random(200), false, true); gamePhase = 4; } else { if (gamePhase == 6) { createFlower(60, 1100, 10); gamePhase = 7; } } } } if (gameLevel == 4) { if (gamePhase == 1) { v1 = 1; while (v1 <= 3) { summonSoul(1, 100 + random(400), 700); ++v1; } createFlower(17, 60); gamePhase = 2; } else { if (gamePhase == 3) { v1 = 1; while (v1 <= 25) { summonSoul(1, 100 + random(400), 700); ++v1; } gamePhase = 4; } else { if (gamePhase == 5) { createFlower(15, 45); gamePhase = 6; } else { if (gamePhase == 7) { createFlower(18, 400, 6); gamePhase = 8; } } } } } if (gameLevel == 5) { if (gamePhase == 1) { v1 = 1; while (v1 <= 3) { summonSoul(1, 100 + random(400), 700); ++v1; } createFlower(27, 60); gamePhase = 2; } else { if (gamePhase == 3) { t_hell.lightningTimer = 0; p_hell.but.enabled = false; p_hell.p_mask._visible = false; t_hell.body.gotoAndPlay('closing'); t_hell.isRecovering = true; t_hell.broken = true; clearInterval(pressTimerHell); soundBGM('BGMintro2'); v1 = 1; while (v1 <= 10) { summonSoul(3, 100 + random(400), 700, true); ++v1; } gamePhase = 4; } else { if (gamePhase == 5) { createFlower(30, 30); gamePhase = 6; } else { if (gamePhase == 7) { v1 = 1; while (v1 <= 10) { summonSoul(3, 100 + random(400), 700, true); ++v1; } summonSoul(7, 100 + random(400), 700, false, true); gamePhase = 8; } } } } } if (gameLevel == 6) { if (gamePhase == 1) { v1 = 1; while (v1 <= 3) { summonSoul(1, 100 + random(400), 700); ++v1; } createFlower(27, 60); gamePhase = 2; } else { if (gamePhase == 3) { summonSoul(7, 100 + random(400), 700, false, true); gamePhase = 4; } else { if (gamePhase == 5) { v1 = 1; while (v1 <= 3) { summonSoul(1, 100 + random(400), 700); ++v1; } createFlower(27, 30); gamePhase = 6; } else { if (gamePhase == 7) { v1 = 1; while (v1 <= 3) { summonSoul(4, 100 + random(400), 700, false, true); ++v1; } gamePhase = 8; } else { if (gamePhase == 9) { game_mc.attachMovie('butDisabler', 'but_mc', 3333); t_hell.lightningTimer = 0; p_hell.but.enabled = false; p_hell.p_mask._visible = false; t_hell.body.gotoAndPlay('closing'); t_hell.isRecovering = true; t_hell.broken = true; clearInterval(pressTimerHell); t_heaven.lightningTimer = 0; p_heaven.but.enabled = false; p_heaven.p_mask._visible = false; t_heaven.body.gotoAndPlay('closing'); t_heaven.isRecovering = true; t_heaven.broken = true; clearInterval(pressTimerHeaven); createFlowerIntruder(40, 60, 4); gamePhase = 10; } else { if (gamePhase == 11) { game_mc.but_mc.removeMovieClip(); p_hell.but.enabled = true; p_hell.p_mask._visible = true; t_hell.body.gotoAndPlay('opening'); t_hell.isRecovering = false; t_hell.broken = false; resetPressureHell(); p_heaven.but.enabled = true; p_heaven.p_mask._visible = true; t_heaven.body.gotoAndPlay('opening'); t_heaven.isRecovering = false; t_heaven.broken = false; resetPressureHeaven(); v1 = 1; while (v1 <= 10) { summonSoul(1, 100 + random(400), 700); ++v1; } gamePhase = 12; } } } } } } } if (gameLevel == 7) { if (gamePhase == 1) { v1 = 1; while (v1 <= 3) { summonSoul(1, 100 + random(400), 700); ++v1; } createFlower(27, 60); gamePhase = 2; } else { if (gamePhase == 3) { summonSoul(7, 100 + random(400), 700, false, true); gamePhase = 4; } else { if (gamePhase == 5) { v1 = 1; while (v1 <= 10) { summonSoul(1, 100 + random(400), 700); ++v1; } summonSoul(7, 100 + random(400), 700, false, true); v1 = 1; while (v1 <= 2) { summonSoul(4, 100 + random(400), 700, false, true); ++v1; } gamePhase = 6; } else { if (gamePhase == 7) { createFlower(24, 420, 8); summonSoul(7, 100 + random(400), 700, false, true); v1 = 1; while (v1 <= 2) { summonSoul(4, 100 + random(400), 700, false, true); ++v1; } gamePhase = 8; } else { if (gamePhase == 9) { t_hell.lightningTimer = 0; p_hell.but.enabled = false; p_hell.p_mask._visible = false; t_hell.body.gotoAndPlay('closing'); t_hell.isRecovering = true; t_hell.broken = true; clearInterval(pressTimerHell); v1 = 1; while (v1 <= 10) { summonSoul(1, 100 + random(400), 700); ++v1; } v1 = 1; while (v1 <= 10) { summonSoul(3, 100 + random(400), 700, true, false, false, 3); ++v1; } summonSoul(7, 100 + random(400), 700, false, true); gamePhase = 10; } } } } } } if (gameLevel == 8) { if (gamePhase == 1) { createFlower(30, 60); gamePhase = 2; } else { if (gamePhase == 3) { v1 = 1; while (v1 <= 5) { summonSoul(1, 100 + random(400), 700); ++v1; } v1 = 1; while (v1 <= 2) { summonSoul(4, 100 + random(400), 700, false, true); ++v1; } gamePhase = 4; } else { if (gamePhase == 5) { game_mc.attachMovie('butDisabler', 'but_mc', 3333); t_hell.lightningTimer = 0; p_hell.but.enabled = false; p_hell.p_mask._visible = false; t_hell.body.gotoAndPlay('closing'); t_hell.isRecovering = true; t_hell.broken = true; clearInterval(pressTimerHell); t_heaven.lightningTimer = 0; p_heaven.but.enabled = false; p_heaven.p_mask._visible = false; t_heaven.body.gotoAndPlay('closing'); t_heaven.isRecovering = true; t_heaven.broken = true; clearInterval(pressTimerHeaven); createFlowerIntruder(50, 60, 3); createFlowerIntruderGood(10, 60, 1); gamePhase = 6; } else { if (gamePhase == 7) { for (var v2 in game_mc.enemy_cont) { game_mc.enemy_cont[v2].intruder = false; game_mc.enemy_cont[v2].intruderDone = true; delete game_mc.enemy_cont[v2].onEnterFrame; game_mc.enemy_cont[v2].onEnterFrame = game_mc.enemy_cont[v2].updateFrame; game_mc.enemy_cont[v2].leaveTimer = 0; } v1 = 1; while (v1 <= 10) { summonSoul(3, 120, 300, true, false, false, 3); ++v1; } summonSoul(7, 120, 300, false, true); summonSoul(7, 120, 300, false, true); gamePhase = 8; } else { if (gamePhase == 9) { game_mc.attachMovie('butDisabler', 'but_mc', 3333); t_hell.lightningTimer = 0; p_hell.but.enabled = false; p_hell.p_mask._visible = false; t_hell.body.gotoAndPlay('closing'); t_hell.isRecovering = true; t_hell.broken = true; clearInterval(pressTimerHell); t_heaven.lightningTimer = 0; p_heaven.but.enabled = false; p_heaven.p_mask._visible = false; t_heaven.body.gotoAndPlay('closing'); t_heaven.isRecovering = true; t_heaven.broken = true; clearInterval(pressTimerHeaven); createFlowerIntruder(50, 60, 3); createFlowerIntruderGood(10, 60, 2); gamePhase = 10; } else { if (gamePhase == 11) { for (v1 in game_mc.enemy_cont) { game_mc.enemy_cont[v1].intruder = false; game_mc.enemy_cont[v1].intruderDone = true; delete game_mc.enemy_cont[v1].onEnterFrame; game_mc.enemy_cont[v1].onEnterFrame = game_mc.enemy_cont[v1].updateFrame; game_mc.enemy_cont[v1].leaveTimer = 0; } v1 = 1; while (v1 <= 10) { summonSoul(3, 120, 300, true, false, false, 3); ++v1; } summonSoul(7, 120, 300, false, true); summonSoul(7, 120, 300, false, true); summonSoul(7, 120, 300, false, true); gamePhase = 12; } } } } } } } if (gamePhase == 'win') { isWinning = true; soulCount = 0; updateInterface(); } if (gamePhase == 'lose') { isLosing = true; soulCount = 0; updateInterface(); } } function acceptProperty(from, to) { for (var v3 in from) { to[v3] = from[v3]; } } function summonSoul(_id, posX, posY, _judged, _super, _beingdragged, _setTrueID, _stay, _intruder) { if (soulDepth > soulDepthMax) { soulDepth = 0; } ++soulDepth; var v3 = 'Soul' + soulDepth; var v2 = game_mc.enemy_cont; v2.createEmptyMovieClip(v3, soulDepth); v2[v3].neutralID = 0; if (_judged == undefined || _judged == false) { _judged = false; v2[v3].judged = false; v2[v3].trueID = 2 + random(2); } else { v2[v3].judged = _judged; v2[v3].trueID = _id; } if (_super == true) { v2[v3].trueID = 5 + random(2); } if (_beingdragged == undefined) { _beingdragged = false; } if (_setTrueID != undefined) { v2[v3].trueID = _setTrueID; } acceptProperty(_root['soul' + _id], v2[v3]); v2[v3].leaveTimerAwal = 800 + random(301); v2[v3].leaveTimer = v2[v3].leaveTimerAwal; if (_id == 7) { v2[v3].leaveTimerAwal = 320; v2[v3].leaveTimer = v2[v3].leaveTimerAwal; } v2[v3]._x = posX; v2[v3]._y = posY; v2[v3].setStance(1); v2[v3].cacheAsBitmap = true; v2[v3].useHandCursor = false; if (_intruder) { v2[v3].leaveTimer = 1200; v2[v3].intruder = true; v2[v3].intruderDone = false; v2[v3].moveSpeed *= 2; var v6 = 1 + random(2); if (v6 == 1) { v2[v3].posAwalIntruder = 1; v2[v3]._x = -20; } else { v2[v3].posAwalIntruder = 2; v2[v3]._x = 820; } } v2[v3].onEnterFrame = v2[v3].updateFrame; if (_stay != undefined) { delete v2[v3].onEnterFrame; v2[v3].onEnterFrame = v2[v3].stayFor3Sec; } if (_beingdragged) { controlledSoul = v2[v3]; delete v2[v3].onEnterFrame; v2[v3].onEnterFrame = v2[v3].beingDragged; } if (!_beingdragged) { ++currentSoulOut; } if (!_judged) { if (soulCount > 0) { --soulCount; } else { soulCount = 0; } } updateInterface(); } function summonSoulEscape() { if (soulDepth > soulDepthMax) { soulDepth = 0; } ++soulDepth; var v4 = 'Soul' + soulDepth; var v3 = game_mc.enemy_cont; v3.attachMovie('SoulEscape', v4, soulDepth); v3[v4].neutralID = 0; v3[v4].escapedSoul = true; v3[v4].judged = true; v3[v4].trueID = 3; acceptProperty(_root['soul' + _id], v3[v4]); v3[v4].leaveTimerAwal = 0; v3[v4].leaveTimer = 0; v3[v4]._x = 120; v3[v4]._y = 300; v3[v4].cacheAsBitmap = true; v3[v4].useHandCursor = false; v3[v4].onPress = function () { if (!_root.isPaused) { if (!positronMode) { controlledSoul = this; summonSoul(3, _root._xmouse, _root._ymouse, true, false, true, 3); this.removeMovieClip(); } else { game_mc.attachMovie('boom_bad', 'boom_mc', 9); game_mc.boom_mc._x = this._x; game_mc.boom_mc._y = this._y; popupScore(2, 2, _root._xmouse, _root._ymouse); doPhaseCheckRoot(); delete this.onEnterFrame; this.removeMovieClip(); } ++escapeSoulCatchedAchievement; if (escapeSoulCatchedAchievement >= 1) { newAchievement(2); } if (escapeSoulCatchedAchievement >= 10) { newAchievement(21); } } }; _root.soundFX('escapesound'); } function doGuardianAnimation(_animation) { if (_animation == 'normal') { _root.guardian_mc.head.gotoAndStop(1); _root.guardian_mc.head.head_mc.mouth.gotoAndStop(1); _root.guardian_mc.head.head_mc.eyes.gotoAndStop(1); _root.guardian_mc.desk_mc.rightHand.gotoAndStop(1); _root.guardian_mc.desk_mc.leftHand.gotoAndStop(1); _root.guardian_mc.desk_mc.writing_mc.gotoAndStop(1); _root.guardian_mc.desk_mc.phone_mc.gotoAndStop(1); _root.guardian_mc.desk_mc.coffee_mc.gotoAndStop(1); _root.guardian_mc.desk_mc.paper_mc.gotoAndStop(1); } _root.guardian_mc.head.gotoAndPlay(_animation); _root.guardian_mc.head.head_mc.mouth.gotoAndPlay(_animation); _root.guardian_mc.head.head_mc.eyes.gotoAndPlay(_animation); _root.guardian_mc.desk_mc.rightHand.gotoAndPlay(_animation); _root.guardian_mc.desk_mc.leftHand.gotoAndPlay(_animation); _root.guardian_mc.desk_mc.writing_mc.gotoAndPlay(_animation); _root.guardian_mc.desk_mc.phone_mc.gotoAndPlay(_animation); _root.guardian_mc.desk_mc.coffee_mc.gotoAndPlay(_animation); _root.guardian_mc.desk_mc.paper_mc.gotoAndPlay(_animation); } function makeBossAngry() { doGuardianAnimation('angry'); } function increaseRage(_howMuch) { if (rageMeter + Math.abs(_howMuch) < rageMeterMax) { rageMeter += Math.abs(_howMuch); if (rageMeter > 80) { if (!bossAngry) { makeBossAngry(); bossAngry = true; } } } else { rageMeter = rageMeterMax; trace('GAME OVER!!'); _root.attachMovie('Fired', 'fired_mc', 9999); _root.fired_mc._x = 400; _root.fired_mc._y = 300; _root.isPaused = true; mail.gotoAndStop(1); mail._visible = false; doGuardianAnimation('breaking'); soundFX('specialsound'); isLosing = true; mail.gotoAndStop(1); gamePhase = 'lose'; clearInterval(guardianLaugh); } if (!bossMode) { if (rageMeter >= 50 && soundRage == 1) { soundBGM('BGMmain2'); soundRage = 2; } else { if (rageMeter >= 75 && soundRage == 2) { soundBGM('BGMmain3'); soundRage = 3; } } } updateInterface(); } function increaseLightning(_howMuch) { if (lightningAvailable) { if (!lightningJudgementMode) { if (lightningGauge + _howMuch < lightningGaugeMax) { lightningGauge += Math.abs(_howMuch); } else { lightningGauge = lightningGaugeMax; lightningGauge_mc.efek_mc._visible = true; lightningGauge_mc.efek_mc.gotoAndStop(lightningGauge); var v1 = 1; while (v1 <= 10) { lightningGauge_mc.efek_mc['e' + v1].gotoAndPlay(1); ++v1; } lightningJudgementMode = true; removePositron(); setCursor('myCursorLightning'); } } lightningGauge_mc.gotoAndStop(lightningGauge + 1); } updateInterface(); } function popupScore(_value, _colorID, posX, posY) { if (scoreDepth > scoreDepthMax) { scoreDepth = 0; } ++scoreDepth; var v3 = 'score_' + scoreDepth; var v2 = _root.score_cont; var v5 = scoreDepth; if (_colorID == 3) { v5 = 9984; } v2.attachMovie('score_anim', v3, v5); if (_colorID == 1) { v2[v3].mc.teks.textColor = 16711680; } else { if (_colorID == 2) { v2[v3].mc.teks.textColor = 65280; } else { if (_colorID == 3) { v2[v3].mc.teks.textColor = 26367; v2[v3]._xscale = 150; v2[v3]._yscale = 150; } } } if (_value > 0) { v2[v3].mc.teks.text = '+' + _value; } else { v2[v3].mc.teks.text = _value; } v2[v3]._x = posX; v2[v3]._y = posY; v2[v3].cacheAsBitmap = true; if (_root.score + _value > 0) { _root.score += _value; } else { _root.score = 0; } _root.updateInterface(); if (_value < 0 && !phoneMode) { guardian_mc.desk_mc.rightHand.gotoAndPlay('breaking'); guardian_mc.head.gotoAndPlay('breaking'); guardian_mc.head.head_mc.mouth.gotoAndPlay('losepoint'); guardian_mc.head.head_mc.eyes.gotoAndPlay('breaking'); guardian_mc.desk_mc.phone_mc.gotoAndPlay('breaking'); guardian_mc.desk_mc.coffee_mc.gotoAndPlay('breaking'); guardian_mc.desk_mc.paper_mc.gotoAndPlay('breaking'); soundFX('angrysound'); increaseRage(_value / 2); } } function popupCombo(_value, _whichPortal, _boardType) { if (scoreDepth > scoreDepthMax) { scoreDepth = 0; } ++scoreDepth; var v3 = 'score_' + scoreDepth; var v2 = _root.score_cont; v2.attachMovie('ComboBoard', v3, 9983); v2[v3].mc.gotoAndStop(_boardType); if (_boardType == 1) { newAchievement(3); } else { if (_boardType == 2) { newAchievement(15); } else { if (_boardType == 3) { newAchievement(19); } } } ++countComboAch; if (countComboAch >= 5) { newAchievement(12); } else { if (countComboAch >= 10) { newAchievement(8); } } if (_whichPortal == 'hell') { v2[v3]._x = 200; } else { v2[v3]._x = 600; } v2[v3]._y = 220; v2[v3].cacheAsBitmap = true; soundFX('combosound'); _root.updateInterface(); } function updateInterface() { level_txt.text = gameLevel; score_text.text = score; if (soulCount < 0) { soulCount = 0; } soulCount_txt.text = soulCount + '/' + soulCountAwal; p_hell.p_mask._yscale = 100 - t_hell.pres; p_heaven.p_mask._yscale = 100 - t_heaven.pres; rage_mc.bar._xscale = rageMeter; if (lightningGauge < lightningGaugeMax) { lightningGauge_mc.efek_mc.gotoAndStop(lightningGauge); } if (isLosing) { mail._visible = false; mail.swapDepths(1); } } function increasePressureHell(_howMuch) { if (t_hell.pres + _howMuch < 100) { t_hell.pres += _howMuch; } else { if (!t_hell.alarm) { p_hell.alarm_mc.play(); _root.soundFX('alarmsound'); t_hell.alarm = true; clearInterval(pressTimerHell); } t_hell.pres = 100; } updateInterface(); } function increasePressureHeaven(_howMuch) { if (t_heaven.pres + _howMuch < 100) { t_heaven.pres += _howMuch; } else { if (!t_heaven.alarm) { p_heaven.alarm_mc.play(); _root.soundFX('alarmsound'); t_heaven.alarm = true; clearInterval(pressTimerHeaven); } t_heaven.pres = 100; } updateInterface(); } function resetPressureHell() { t_hell.pres = 0; if (t_hell.broken) { t_hell.broken = false; setPressTimerHell(); } updateInterface(); } function resetPressureHeaven() { t_heaven.pres = 0; if (t_heaven.broken) { t_heaven.broken = false; setPressTimerHeaven(); } updateInterface(); } function setPressTimerHell() { clearInterval(pressTimerHell); if (pressTimerHellAvailable) { if (!t_hell.broken) { pressTimerHell = setInterval(increasePressureHell, 1000, 1); } } } function setPressTimerHeaven() { clearInterval(pressTimerHeaven); if (pressTimerHeavenAvailable) { if (!t_heaven.broken) { pressTimerHeaven = setInterval(increasePressureHeaven, 1000, 1); } } } function startSummoning() { if (normalSoulAvailable) { clearInterval(summoning); summoning = setInterval(summonSoul, normalSoulInterval, 1, 100 + random(400), 700); } if (superSoulAvailable) { clearInterval(summoningSup); summoningSup = setInterval(summonSoul, superSoulInterval, 4, 100 + random(400), 700 + random(200), false, true); } if (evilSoulAvailable) { clearInterval(summoningEv); summoningEv = setInterval(summonSoul, evilSoulInterval, 7, 100 + random(400), 700 + random(200), false, true); } } function popUpMessage(_judul, _isi, _frame) { _root.attachMovie('popup_message', 'message_mc', 99); message_mc._x = 400; message_mc._y = 300; message_mc.judul = _judul; message_mc.isi = _isi; if (_judul == 'pause') { message_mc.mc.gotoAndStop(2); } if (_frame != undefined) { message_mc.mc.gotoAndStop(_frame); } freezeAll(); } function guardianRandomLaughing() { if (!phoneMode && !doingSpecial && !pickingUpPhone && !bossMode) { var v2 = random(10); if (v2 < 4) { if (_root.rageMeter < 50) { guardian_mc.desk_mc.rightHand.gotoAndStop(1); guardian_mc.desk_mc.leftHand.gotoAndStop(1); guardian_mc.head.head_mc.mouth.gotoAndStop(1); guardian_mc.desk_mc.coffee_mc.gotoAndStop(1); guardian_mc.head.gotoAndPlay('laughing'); guardian_mc.head.head_mc.eyes.gotoAndPlay('success'); guardian_mc.desk_mc.writing_mc.gotoAndPlay('laughing'); soundFX('laughsound'); } else { if (_root.rageMeter >= 50 && _root.rageMeter < 80) { guardian_mc.desk_mc.rightHand.gotoAndStop(1); guardian_mc.desk_mc.leftHand.gotoAndStop(1); guardian_mc.desk_mc.coffee_mc.gotoAndStop(1); guardian_mc.head.head_mc.mouth.gotoAndPlay('pickPhone'); guardian_mc.head.head_mc.eyes.gotoAndPlay('pickPhone'); guardian_mc.desk_mc.writing_mc.gotoAndPlay('pickPhone'); soundFX('gruntsound'); } else { trace('no grunt no v sign, just angry!'); clearInterval(guardianLaugh); } } } else { if (v2 > 7) { if (random(4) < 2) { guardian_mc.desk_mc.rightHand.gotoAndStop(1); guardian_mc.head.head_mc.mouth.gotoAndStop(1); guardian_mc.desk_mc.coffee_mc.gotoAndStop(1); guardian_mc.desk_mc.writing_mc.gotoAndPlay('scratching'); guardian_mc.desk_mc.leftHand.gotoAndPlay('scratching'); guardian_mc.head.head_mc.eyes.gotoAndPlay('scratching'); } else { guardian_mc.desk_mc.rightHand.gotoAndStop(1); guardian_mc.desk_mc.writing_mc.gotoAndPlay('coffee'); guardian_mc.desk_mc.leftHand.gotoAndPlay('coffee'); guardian_mc.head.head_mc.mouth.gotoAndPlay('coffee'); guardian_mc.desk_mc.coffee_mc.gotoAndPlay('coffee'); guardian_mc.head.head_mc.eyes.gotoAndPlay('coffee'); } } } } } function freezeAll() { isPaused = true; for (var v2 in game_mc.enemy_cont) { var v1 = game_mc.enemy_cont[v2]; v1.char.aura.stop(); v1.stop(); } guardian_mc.desk_mc.writing_mc.stop(); guardian_mc.desk_mc.writing_mc.write_anim.stop(); guardian_mc.head.stop(); guardian_mc.desk_mc.rightHand.stop(); guardian_mc.desk_mc.leftHand.stop(); guardian_mc.head.head_mc.mouth.stop(); guardian_mc.head.head_mc.eyes.stop(); t_hell.body.breakdown.f1.stop(); t_hell.body.breakdown.f2.stop(); t_heaven.body.breakdown.f1.stop(); t_heaven.body.breakdown.f2.stop(); guardian_mc.desk_mc.phone_mc.phone.stop(); guardian_mc.desk_mc.rightHand.stop(); guardian_mc.desk_mc.phone_mc.stop(); guardian_mc.head.head_mc.mouth.stop(); guardian_mc.head.head_mc.eyes.stop(); guardian_mc.desk_mc.phone_mc.phone.enabled = false; clearInterval(summoning); clearInterval(summoningSup); clearInterval(summoningEv); clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); clearInterval(guardianLaugh); } function meltAll() { isPaused = false; for (var v3 in game_mc.enemy_cont) { var v2 = game_mc.enemy_cont[v3]; v2.char.aura.play(); v2.play(); } guardian_mc.desk_mc.writing_mc.play(); guardian_mc.desk_mc.writing_mc.write_anim.play(); guardian_mc.head.play(); guardian_mc.desk_mc.rightHand.play(); guardian_mc.desk_mc.leftHand.play(); guardian_mc.head.head_mc.mouth.play(); guardian_mc.head.head_mc.eyes.play(); t_hell.body.breakdown.f1.play(); t_hell.body.breakdown.f2.play(); t_heaven.body.breakdown.f1.play(); t_heaven.body.breakdown.f2.play(); if (t_hell.alarm) { p_hell.alarm_mc.play(); _root.soundFX('alarmsound'); } if (t_heaven.alarm) { p_heaven.alarm_mc.play(); _root.soundFX('alarmsound'); } if (phoneMode) { guardian_mc.desk_mc.phone_mc.phone.play(); guardian_mc.desk_mc.rightHand.play(); guardian_mc.desk_mc.phone_mc.play(); guardian_mc.head.head_mc.mouth.play(); guardian_mc.head.head_mc.eyes.play(); guardian_mc.desk_mc.phone_mc.phone.enabled = true; } startSummoning(); setPressTimerHell(); setPressTimerHeaven(); clearInterval(guardianLaugh); guardianLaugh = setInterval(guardianRandomLaughing, 5000); } function removePositron() { cursor_mc._visible = true; delete game_mc.positron_mc.onEnterFrame; game_mc.positron_mc.removeMovieClip(); positronMode = false; } function doSpecial() { specialAchievement = false; specialIsUsed[gameLevel] = 1; doingSpecial = true; guardian_mc.desk_mc.rightHand.gotoAndPlay('breaking'); guardian_mc.desk_mc.leftHand.gotoAndPlay('breaking'); guardian_mc.desk_mc.writing_mc.gotoAndPlay('breaking'); guardian_mc.head.gotoAndPlay('breaking'); guardian_mc.head.head_mc.mouth.gotoAndPlay('breaking'); guardian_mc.head.head_mc.eyes.gotoAndPlay('breaking'); guardian_mc.desk_mc.phone_mc.gotoAndPlay('breaking'); guardian_mc.desk_mc.coffee_mc.gotoAndPlay('breaking'); guardian_mc.desk_mc.paper_mc.gotoAndPlay('breaking'); soundFX('specialsound'); special_btn._visible = false; specialAvailable = false; if (gameLevel == 2 && gamePhase == 1) { TutorialArrow._visible = false; } } function doLightningJudgement(targetL) { if (!isPaused) { if (lightningGauge - 1 >= 0) { ++game_mc.lightning_cont.depth; game_mc.lightning_cont.attachMovie('LightningEffect', 'l_mc' + game_mc.lightning_cont.depth, game_mc.lightning_cont.depth); game_mc.lightning_cont['l_mc' + game_mc.lightning_cont.depth]._x = targetL._x; game_mc.lightning_cont['l_mc' + game_mc.lightning_cont.depth]._y = targetL._y; soundFX('lightningsound'); targetL.lightningJudged = true; targetL.changedJudged(); lightningGauge_mc['or' + lightningGauge].gotoAndPlay('dead'); lightningGauge -= 1; newAchievement(13); ++lightningJudgedAchievement; if (lightningJudgedAchievement >= 30) { newAchievement(10); } if (lightningJudgedAchievement >= 100) { newAchievement(18); } } else { setCursor('myCursor'); lightningJudgementMode = false; lightningGauge = 0; lightningGauge_mc.efek_mc._visible = false; } if (lightningGauge == 0) { setCursor('myCursor'); lightningJudgementMode = false; } updateInterface(); doPhaseCheckRoot(); } } function setPositron() { if (!positronMode) { cursor_mc._visible = false; game_mc.attachMovie('positron', 'positron_mc', game_mc.getNextHighestDepth()); game_mc.positron_mc._x = _xmouse; game_mc.positron_mc._y = _ymouse; game_mc.positron_mc.onEnterFrame = function () { this._x = _xmouse; this._y = _ymouse; }; positronMode = true; soundFX('equippositronsound'); } else { removePositron(); soundFX('equippositronsound'); } } function checkPosition(Void) { if (_xmouse < mouseSpeed || _xmouse > Stage.width - mouseSpeed || _ymouse < mouseSpeed || _ymouse > Stage.height - mouseSpeed) { in_mc._visible = false; out_mc._visible = true; if (!isPaused) { popUpMessage('pause'); freezeAll(); } } else { in_mc._visible = true; out_mc._visible = false; } } stop(); lev_cont.removeMovieClip(); fired_mc.removeMovieClip(); Mouse.hide(); TutorialArrow._visible = false; setCursor('myCursor'); var soundRage = 1; stopAllSounds(); sBGMAwal = new Sound(_root.slevel3); sBGMAwal.attachSound('BGMopen'); sBGMAwal.start(0, 1); sBGMAwal.setVolume(_root.volBGM); sBGMAwal.onSoundComplete = function () { soundBGM('BGMmain'); }; _root.createEmptyMovieClip('game_mc', 1); game_mc.createEmptyMovieClip('enemy_cont', 1); game_mc.createEmptyMovieClip('lightning_cont', 2); game_mc.lightning_cont.depth = 1; _root.createEmptyMovieClip('score_cont', 9); var isWinning = false; var isLosing = false; var gamePhase = 1; var startGame = true; var isPaused = false; var pressTimerHellAvailable = true; var pressTimerHeavenAvailable = true; var controlledSoul; var currentSoulOut = 0; var maxSoulOut = 30; var soulCount = 0; var soulEscapeAvailable = 0; var soulEscapeTimer = 300; var soulSuperAvailable = 0; var soulSuperTimer = 900; var summonSoulTimerMax = 1000; var summonSoulTimer = summonSoulTimerMax; var summonSoulAvailable = 0; var normalSoulAvailable = false; var superSoulAvailable = false; var evilSoulAvailable = false; var normalSoulInterval = 6000; var superSoulInterval = 15000; var evilSoulInterval = 25000; var positronMode = false; var specialAvailable = true; var positronAvailable = true; var doingSpecial = false; var mailAvailable = true; var mailMode = false; var mailTimerAwal = 750; var mailTimer = mailTimerAwal; var phoneAvailable = true; var phoneMode = false; var phoneTimerAwal = 400; var phoneTimer = phoneTimerAwal; var score = 0; var rageMeterMax = 100; var rageMeter = 0; var lightningMeterMax = 100; var lightningMeter = 0; var lightningGaugeMax = 10; var lightningGauge = 0; var lightningJudgementMode = false; var lightningAvailable = true; var bossMode = false; t_hell.nama = 'hell'; t_heaven.nama = 'heaven'; t_hell.pres = 0; t_heaven.pres = 0; t_hell.isRecovering = false; t_heaven.isRecovering = false; t_hell.lightningMode = false; t_heaven.lightningMode = false; t_hell.lightningTimerAwal = 270; t_hell.lightningTimer = 270; t_heaven.lightningTimer = 270; t_heaven.lightningTimerAwal = 270; mail._visible = true; soulIsEscaped[_root.gameLevel] = 0; var unitClass = new Object(); unitClass.unitID = 1; unitClass.nama = 'Nama Unit'; unitClass.deskripsi = 'Deskripsi Unit ini nanti harus jelas, biar keren gamenya'; unitClass.mcType = 'soul1'; unitClass.bloodType = 'blood1'; unitClass.deadSound = 'deadMonster1'; unitClass.stance = 0; unitClass.idle = false; unitClass.lifeAwal = 3; unitClass.life = unitClass.lifeAwal; unitClass.attack = 3; unitClass.defense = 0; unitClass.goldGet = 20; unitClass.sasaranX = 0; unitClass.sasaranY = 0; unitClass.timerWaitAwal = [100, 120, 150, 180, 200]; unitClass.timerWait = 0; unitClass.judgeTimerAwal = 30; unitClass.judgeTimer = 30; unitClass.leaveTimerAwal = 600; unitClass.leaveTimer = unitClass.leaveTimerAwal; unitClass.isLeaving = false; unitClass.readyToLeave = false; unitClass.presGive = 10; unitClass.pointLost = 15; unitClass.isSpecial = false; unitClass.enableSpecial = true; unitClass.timer = 0; unitClass.jump = 0; unitClass.isDead = false; unitClass.hancurable = true; unitClass.jumlahPart = 6; unitClass.frozzen = false; unitClass.frozzenTime = 0; unitClass.timerTerbakar = 0; unitClass.rot = 0; unitClass.moveSpeedAwal = 5; unitClass.moveSpeed = 5; unitClass.posTarget = 0; unitClass.goldGet = 10; unitClass.showStance = function () { if (this.char._name == undefined) { this.attachMovie(this.mcType + '_' + this.stance, 'char', 1); } }; unitClass.setStance = function (_stanceID) { if (_stanceID == 3) { this.isAttack = true; if (this.damaging) { if (this.melee) { towerDamaged(this.attack); } else { this.attackShot(); } } } if (this.stance != _stanceID) { this.attachMovie(this.mcType + '_' + _stanceID, 'char', 1); this.stance = _stanceID; this.cacheAsBitmap = true; if (_stanceID == 6) { } } }; setColor = function (_who, _rb, _gb, _bb) { myColor = new Color(_who); myColorTransform = new Object(); myColorTransform = {'rb': _rb, 'gb': _gb, 'bb': _bb}; myColor.setTransform(myColorTransform); }; unitClass.setColor = function (_rb, _gb, _bb) { myColor = new Color(this.char); myColorTransform = new Object(); myColorTransform = {'rb': _rb, 'gb': _gb, 'bb': _bb}; myColor.setTransform(myColorTransform); }; unitClass.setOriginalColor = function () { myColor = new Color(this.char); myColorTransform = new Object(); myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0}; myColor.setTransform(myColorTransform); }; unitClass.ngeblink = function () { this.setColor(100, 100, 100); this.createEmptyMovieClip('selected_mc', 10); this.selected_mc.timerSelected = 1; this.selected_mc.onEnterFrame = function () { if (this.timerSelected <= 0) { this.timerSelected = 0; this._parent.setOriginalColor(); delete this.onEnterFrame; this.removeMovieClip(); } else { --this.timerSelected; } }; }; unitClass.kelipKelip = function () { this.setColor(100, 100, 100); this.createEmptyMovieClip('selected_mc', 10); this.selected_mc.timerSelected = 50; this.selected_mc.onEnterFrame = function () { if (this.timerSelected <= 0) { this.timerSelected = 0; this._parent.setOriginalColor(); delete this.onEnterFrame; this.removeMovieClip(); } else { --this.timerSelected; if (this.timerSelected % 6 <= 2) { this._parent.setOriginalColor(); } else { this._parent.setColor(100, 100, 100); } } }; }; unitClass.setRandomPoint = function () { this.sasaranX = Math.round(50 + Math.random() * 700); this.sasaranY = Math.round(350 + Math.random() * 200); }; unitClass.gotoPoint = function () { if (!isPaused) { var v4 = this.sasaranX - this._x; var v3 = this.sasaranY - this._y; var v6 = 57.29577951308232 * Math.atan2(v3, v4); var v2 = this.moveSpeed * Math.cos(0.0174532925199433 * v6); var v5 = this.moveSpeed * Math.sin(0.0174532925199433 * v6); if (Math.abs(v4) <= v2) { this._x = this.sasaranX; v2 = 0; } if (Math.abs(v3) <= v5) { this._y = this.sasaranY; v5 = 0; } if (Math.abs(v4) <= 0 && Math.abs(v3) <= 0) { setStance(spriteIdle); } this._x += v2; this._y += v5; this.doSwap(); } else {} }; unitClass.changedJudged = function () { if (doingSpecial) { summonSoul(this.trueID, this._x, this._y, true, false, false, this.trueID, true); } else { summonSoul(this.trueID, this._x, this._y, true, false, true); } delete this.onEnterFrame; this.removeMovieClip(); }; unitClass.doSwap = function () { this.swapDepths(this._y); }; var flowerDone = true; var flowerDone2 = true; var comboCountingHell = false; var comboCountingHeaven = false; var comboTimerDefault = 30; var comboTimerHell = comboTimerDefault; var comboTimerHeaven = comboTimerDefault; var comboBoardHell1 = false; var comboBoardHell2 = false; var comboBoardHell3 = false; var comboBoardHeaven1 = false; var comboBoardHeaven2 = false; var comboBoardHeaven3 = false; var comboGetHell = 0; var comboGetHeaven = 0; unitClass.cekEnteringGate = function () { if (this.trueID == 2 || this.trueID == 5) { var v3 = t_heaven; var v5 = p_heaven; var v4 = t_hell; var v6 = p_hell; } else { if (this.trueID == 3 || this.trueID == 6) { var v3 = t_hell; var v5 = p_hell; var v4 = t_heaven; var v6 = p_heaven; } } if (v3.door.hitTest(this._x, this._y, true) && !v3.broken && !v3.isRecovering) { v3.play(); if (!v3.lightningMode) { if (v3.pres + this.presGive < 100) { v3.pres += this.presGive; } else { v3.pres = 100; if (!v3.alarm) { v5.alarm_mc.play(); _root.soundFX('alarmsound'); v3.alarm = true; } } } popupScore(10, 2, v3._x, 200); if (v3.nama == 'hell') { comboTimerHell = comboTimerDefault; ++comboGetHell; } else { comboTimerHeaven = comboTimerDefault; ++comboGetHeaven; } delete this.onEnterFrame; this.removeMovieClip(); } else { if (v4.door.hitTest(this._x, this._y, true) && !v4.broken && !v4.isRecovering) { v4.play(); if (!v4.lightningMode) { if (v4.pres + this.presGive < 100) { v4.pres += this.presGive; } else { v4.pres = 100; if (!v4.alarm) { v6.alarm_mc.play(); _root.soundFX('alarmsound'); v4.alarm = true; } } } popupScore(-20, 1, v4._x, 200); delete this.onEnterFrame; this.removeMovieClip(); } else { delete this.onEnterFrame; this.onEnterFrame = this.updateFrame; } } updateInterface(); doPhaseCheckRoot(); }; unitClass.trisec = 75; unitClass.stayFor3Sec = function () { if (!isPaused) { if (this.trisec > 0) { --this.trisec; } else { delete this.onEnterFrame; this.onEnterFrame = this.updateFrame; } } }; unitClass.updateFrame = function () { if (!isPaused) { if (this.intruder) { delete this.onEnterFrame; this.onEnterFrame = this.updateFrameIntruder; } if (this.leaveTimer > 0) { --this.leaveTimer; if (this.timerWait <= 0) { this.setRandomPoint(); this.timerWait = this.timerWaitAwal[random(this.timerWaitAwal.length)]; } else { --this.timerWait; } } else { if (!this.isLeaving) { this.sasaranX = this._x; this.sasaranY = this._y; this.char.play(); this.isLeaving = true; } } if (this._x > 820 || this._x < -20) { if (!this.intruderDone) { if (this._x > 800) { popupScore(-this.pointLost, 1, 750, this._y); } else { popupScore(-this.pointLost, 1, 50, this._y); } } soulIsEscaped[_root.gameLevel] = 1; updateInterface(); delete this.onEnterFrame; this.removeMovieClip(); doPhaseCheckRoot(); } this.gotoPoint(); } }; unitClass.updateFrameIntruder = function () { if (!isPaused) { if (this.leaveTimer > 0) { --this.leaveTimer; if (this.posAwalIntruder == 1) { this._x += this.moveSpeed; if (this._x > 810) { this._x = -10; this._y = 350 + random(200); } } else { this._x -= this.moveSpeed; if (this._x < -10) { this._x = 810; this._y = 350 + random(200); } } } else { this.intruder = false; delete this.onEnterFrame; this.onEnterFrame = this.updateFrame; } } }; unitClass.lightningAbsorbed = function () { if (!isPaused) { this.moveSpeed = 25; if (this.trueID == 2 || this.trueID == 5) { this.sasaranX = 710; this.sasaranY = 210; } else { if (this.trueID == 3 || this.trueID == 6) { this.sasaranX = 90; this.sasaranY = 210; } } if (Math.abs(this.sasaranX - this._x) <= 15 && Math.abs(this.sasaranY - this._y) <= 15) { delete this.onEnterFrame; this.cekEnteringGate(); } this.gotoPoint(); } }; var soul1 = new Object(); acceptProperty(unitClass, soul1); soul1.unitID = 13; soul1.nama = 'Neutral Soul'; soul1.deskripsi = 'A non judged soul '; soul1.mcType = 'soul1'; soul1.containerTarget = bullet_cont.pasukan_container; soul1.posTarget = 0; soul1.bloodType = 'Blood2'; soul1.isSpecial = false; soul1.attack = 1; soul1.lifeAwal = 2; soul1.life = soul1.lifeAwal; soul1.moveSpeedAwal = 3; soul1.moveSpeed = 3; soul1.range = 50; soul1.goldGet = 25; soul1.cekEnteringGate = function () { var v4 = t_heaven; var v5 = p_heaven; var v3 = t_hell; var v6 = p_hell; if (v4.door.hitTest(this._x, this._y, true) && !v4.broken && !v4.isRecovering) { v4.play(); if (!v4.lightningMode) { if (v4.pres + this.presGive < 100) { v4.pres += this.presGive; } else { v4.pres = 100; if (!v4.alarm) { v5.alarm_mc.play(); _root.soundFX('alarmsound'); v4.alarm = true; } } } popupScore(-20, 1, v4._x, 200); delete this.onEnterFrame; this.removeMovieClip(); } else { if (v3.door.hitTest(this._x, this._y, true) && !v3.broken && !v3.isRecovering) { v3.play(); if (!v3.lightningMode) { if (v3.pres + this.presGive < 100) { v3.pres += this.presGive; } else { v3.pres = 100; if (!v3.alarm) { v6.alarm_mc.play(); _root.soundFX('alarmsound'); v3.alarm = true; } } } popupScore(-20, 1, v3._x, 200); delete this.onEnterFrame; this.removeMovieClip(); } else { delete this.onEnterFrame; this.onEnterFrame = this.updateFrame; } } updateInterface(); doPhaseCheckRoot(); }; soul1.beingJudged = function () { if (!isPaused) { this._x = _xmouse; this._y = _ymouse; if (this.judgeTimer - 1 > 0) { --this.judgeTimer; this.preloadMC.gotoAndStop(this.judgeTimerAwal - this.judgeTimer / this.judgeTimerAwal); } else { ++judgedSoulForAchievement; if (judgedSoulForAchievement >= 1) { newAchievement(1); } if (judgedSoulForAchievement >= 20) { newAchievement(5); } if (judgedSoulForAchievement >= 50) { newAchievement(14); } if (judgedSoulForAchievement >= 100) { newAchievement(23); } _root.increaseLightning(1); this.changedJudged(); } } }; soul1.onPress = function () { if (!isPaused) { if (!positronMode) { delete this.onEnterFrame; this._parent.attachMovie('SoulPreloader', 'preload', this._parent.getNextHighestDepth()); var induk = this; this.preloadMC = this._parent.preload; this.preloadMC._x = this._x; this.preloadMC._y = this._y; this.preloadMC.onEnterFrame = function () { this._x = induk._x; this._y = induk._y; }; giveGlow(this.preloadMC, 6750207, 5); if (this.trueID == 2) { soundFXSoul('judgegood'); } else { if (this.trueID == 3) { soundFXSoul('judgebad'); } } this.onEnterFrame = this.beingJudged; } else { game_mc.attachMovie('boom_bad', 'boom_mc', 9); game_mc.boom_mc._x = this._x; game_mc.boom_mc._y = this._y; popupScore(-10, 1, this._x, this._y); doPhaseCheckRoot(); delete this.onEnterFrame; this.removeMovieClip(); } } }; soul1.onReleaseOutside = function () { if (this.judgeTimer > 0) { delete this.onEnterFrame; this.judgeTimer = this.judgeTimerAwal; delete this.preloadMC.onEnterFrame; this.preloadMC.removeMovieClip(); sEffectSoul.stop(); this.onEnterFrame = this.updateFrame; } this.cekEnteringGate(); }; soul1.onRelease = soul1.onReleaseOutside; var soul2 = new Object(); acceptProperty(unitClass, soul2); soul2.nama = 'Blue Soul'; soul2.deskripsi = 'A good judged soul'; soul2.mcType = 'soul2'; soul2.posTarget = 0; soul2.bloodType = 'Blood2'; soul2.isSpecial = false; soul2.attack = 1; soul2.lifeAwal = 2; soul2.life = soul1.lifeAwal; soul2.moveSpeedAwal = 5; soul2.moveSpeed = 5; soul2.range = 50; soul2.goldGet = 25; soul2.beingDragged = function () { if (!isPaused) { this._x = _xmouse; this._y = _ymouse; if (!mouseisdown) { delete this.onEnterFrame; this.cekEnteringGate(); } } }; soul2.onPress = function () { if (!positronMode) { controlledSoul = this; delete this.onEnterFrame; this.onEnterFrame = this.beingDragged; } else { game_mc.attachMovie('boom_bad', 'boom_mc', 9); game_mc.boom_mc._x = this._x; game_mc.boom_mc._y = this._y; popupScore(-10, 1, this._x, this._y); doPhaseCheckRoot(); delete this.onEnterFrame; this.removeMovieClip(); } }; soul2.onReleaseOutside = cekEnteringGate; soul2.onRelease = soul2.onReleaseOutside; var soul3 = new Object(); acceptProperty(soul2, soul3); soul3.nama = 'Red Soul'; soul3.deskripsi = 'A bad judged soul'; soul3.mcType = 'soul3'; soul3.posTarget = 0; soul3.bloodType = 'Blood2'; soul3.isSpecial = false; soul3.attack = 1; soul3.lifeAwal = 2; soul3.life = soul1.lifeAwal; soul3.moveSpeedAwal = 5; soul3.moveSpeed = 5; soul3.range = 50; soul3.goldGet = 25; var soul3KilledAchievement = 0; soul3.onPress = function () { if (!positronMode) { controlledSoul = this; delete this.onEnterFrame; this.onEnterFrame = this.beingDragged; } else { game_mc.attachMovie('boom_bad', 'boom_mc', 9); game_mc.boom_mc._x = this._x; game_mc.boom_mc._y = this._y; if (gameLevel == 6 && gamePhase < 8 || gameLevel == 7 && gamePhase < 8) { popupScore(-10, 1, this._x, this._y); } else { popupScore(2, 2, this._x, this._y); } ++soul3KilledAchievement; if (soul3KilledAchievement >= 30) { newAchievement(11); } if (soul3KilledAchievement >= 60) { newAchievement(22); } doPhaseCheckRoot(); delete this.onEnterFrame; this.removeMovieClip(); } }; var soul4 = new Object(); acceptProperty(soul1, soul4); soul4.nama = 'Super Neutral Soul'; soul4.deskripsi = 'A super non judged soul'; soul4.mcType = 'soul4'; soul4.timerWaitAwal = [50, 60, 70, 80, 90]; soul4.timerWait = soul4.timerWaitAwal; soul4.moveSpeedAwal = 10; soul4.moveSpeed = 10; soul4.goldGet = 25; soul4.kekanan = false; soul4.tiltKanan = 0; soul4.kekiri = false; soul4.tiltKiri = 0; soul4.presGive = 40; soul4.beingJudged = function () { if (!isPaused) { var v5 = this._x; this._x = _xmouse; this._y = _ymouse; var v4 = _xmouse; var v3 = v4 - v5; if (v3 > 0) { if (!this.kekanan) { this.kekiri = false; ++this.tiltKanan; this.kekanan = true; } } else { if (!this.kekiri) { this.kekanan = false; ++this.tiltKiri; this.kekiri = true; } } if (this.tiltKanan >= 5 && this.tiltKiri >= 5) { game_mc.attachMovie('boom_bad', 'boom_mc', game_mc.getNextHighestDepth()); game_mc.boom_mc._x = this._x; game_mc.boom_mc._y = this._y; soundFX('boomsound'); summonSoul(this.trueID, this._x, this._y, true, false, true); delete this.preloadMC.onEnterFrame; this.preloadMC.removeMovieClip(); _root.increaseLightning(1); delete this.onEnterFrame; this.removeMovieClip(); } } }; soul4.onPress = function () { if (!positronMode) { this.kekanan = false; this.kekiri = false; this.tiltKanan = 0; this.tiltKiri = 0; this._parent.attachMovie('SoulPreloader', 'preload', this._parent.getNextHighestDepth()); var induk = this; this.preloadMC = this._parent.preload; this.preloadMC._x = this._x; this.preloadMC._y = this._y; this.preloadMC.stop(); this.preloadMC.onEnterFrame = function () { this.gotoAndStop(((induk.tiltKanan + induk.tiltKiri) / 2) * 7); this._x = induk._x; this._y = induk._y; }; giveGlow(this.preloadMC, 6750207, 5); doPhaseCheckRoot(); delete this.onEnterFrame; this.onEnterFrame = this.beingJudged; } }; var soul5 = new Object(); acceptProperty(soul2, soul5); soul5.nama = 'Super Blue Soul'; soul5.deskripsi = 'A super good judged soul'; soul5.mcType = 'soul5'; soul5.posTarget = 0; soul5.bloodType = 'Blood2'; soul5.timerWaitAwal = [50, 60, 70, 80, 90]; soul5.timerWait = soul5.timerWaitAwal; soul5.moveSpeedAwal = 10; soul5.moveSpeed = 10; soul5.goldGet = 25; soul5.presGive = 40; var soul6 = new Object(); acceptProperty(soul3, soul6); soul6.nama = 'Super Red Soul'; soul6.deskripsi = 'A super bad judged soul'; soul6.mcType = 'soul6'; soul6.posTarget = 0; soul6.bloodType = 'Blood2'; soul6.timerWaitAwal = [50, 60, 70, 80, 90]; soul6.timerWait = soul6.timerWaitAwal; soul6.moveSpeedAwal = 10; soul6.moveSpeed = 10; soul6.goldGet = 25; soul6.presGive = 40; var soul7 = new Object(); acceptProperty(soul1, soul7); soul7.nama = 'Evil Soul'; soul7.deskripsi = 'An evil soul'; soul7.mcType = 'soul7'; soul7.moveSpeedAwal = 10; soul7.moveSpeed = 10; soul7.timerWaitAwal = [50, 40, 40, 30, 30]; soul7.timerWait = soul7.timerWaitAwal; soul7.life = 10; soul7.goldGet = 25; soul7.presGive = 50; soul7.pointLost = 40; soul7.changedJudged = function () { trace('evil soul can\'t be judged'); }; soul7.onPress = function () { if (!positronMode) { trace('evil soul can\'t be captured'); } else { if (this.life - 1 <= 0) { this.moveSpeed = 0; delete this.onEnterFrame; delete this.onPress; newAchievement(20); this.char.gotoAndPlay('dead'); soundFX('bigboomsound'); } else { --this.life; this.ngeblink(); } doPhaseCheckRoot(); } }; var soulDepth = 0; soulDepthMax = 100; var scoreDepth = 101; scoreDepthMax = 200; var escapeSoulCatchedAchievement = 0; var bossAngry = false; var countComboAch = 0; var sEffectPhone; var pickingUpPhone = false; var phoneAnsweredAchievement = 0; onEnterFrame = function () { t = getTimer(); framerate = Math.round(1000 / (t - o)); o = t; f_text.text = framerate; if (!isPaused) { if (mailAvailable) { if (mailTimer > 0) { --mailTimer; } else { if (!mailMode) { mail.gotoAndPlay('getMail'); mail.swapDepths(2); mailMode = true; } } } if (phoneAvailable) { if (phoneTimer > 0) { --phoneTimer; } else { if (!phoneMode) { sEffectPhone = new Sound(_root.slevel0); sEffectPhone.attachSound('phonesound'); sEffectPhone.start(0, 0); sEffectPhone.setVolume(_root.volFX); guardian_mc.desk_mc.phone_mc.phone.gotoAndPlay('phoneRing'); guardian_mc.desk_mc.phone_mc.phone.enabled = true; guardian_mc.desk_mc.phone_mc.phone.onRelease = function () { if (!positronMode) { sEffectPhone.stop(); guardian_mc.desk_mc.leftHand.gotoAndStop(1); guardian_mc.desk_mc.coffee_mc.gotoAndStop(1); guardian_mc.desk_mc.rightHand.gotoAndPlay('pickPhone'); guardian_mc.desk_mc.phone_mc.gotoAndPlay('pickPhone'); guardian_mc.head.head_mc.mouth.gotoAndPlay('pickPhone'); guardian_mc.head.head_mc.eyes.gotoAndPlay('pickPhone'); guardian_mc.desk_mc.writing_mc.gotoAndPlay('pickPhone'); } if (gameLevel == 2) { TutorialArrow._visible = false; } ++phoneAnsweredAchievement; if (phoneAnsweredAchievement >= 5) { newAchievement(4); } if (phoneAnsweredAchievement >= 20) { newAchievement(16); } pickingUpPhone = true; }; if (gameLevel == 2 && gamePhase == 4) { TutorialArrow._visible = true; TutorialArrow.gotoAndStop(3); } phoneMode = true; } } } if (soulEscapeAvailable > 0) { if (soulEscapeTimer > 0) { --soulEscapeTimer; } else { if (random(2) == 1) { summonSoulEscape(); --soulEscapeAvailable; } soulEscapeTimer = 300; } } if (soulSuperAvailable > 0) { if (soulSuperTimer > 0) { --soulSuperTimer; } else { if (random(2) == 1) { summonSoul(4, 100 + random(400), 700 + random(200), false, true); --soulSuperAvailable; } soulSuperTimer = 900; } } if (comboTimerHell > 0) { --comboTimerHell; comboCountingHell = true; } else { if (comboCountingHell) { comboBoardHell1 = false; comboBoardHell2 = false; comboBoardHell3 = false; comboGetHell = 0; comboCountingHell = false; } } if (comboGetHell >= 4 && comboGetHell <= 8) { if (!comboBoardHell1) { popupCombo(comboGetHell, 'hell', 1); popupScore(10 * comboGetHell, 3, 200, 220); comboBoardHell1 = true; } } else { if (comboGetHell >= 9 && comboGetHell <= 13) { if (!comboBoardHell2) { popupCombo(comboGetHell, 'hell', 2); popupScore(10 * comboGetHell, 3, 200, 220); comboBoardHell2 = true; } } else { if (comboGetHell >= 14) { if (!comboBoardHell3) { popupCombo(comboGetHell, 'hell', 3); popupScore(10 * comboGetHell, 3, 200, 220); comboBoardHell3 = true; } } } } if (comboTimerHeaven > 0) { --comboTimerHeaven; comboCountingHeaven = true; } else { if (comboCountingHeaven) { comboBoardHeaven1 = false; comboBoardHeaven2 = false; comboBoardHeaven3 = false; comboGetHeaven = 0; comboCountingHeaven = false; } } if (comboGetHeaven >= 4 && comboGetHeaven <= 8) { if (!comboBoardHeaven1) { popupCombo(comboGetHeaven, 'heaven', 1); popupScore(10 * comboGetHeaven, 3, 600, 220); comboBoardHeaven1 = true; } } else { if (comboGetHeaven >= 9 && comboGetHeaven <= 13) { if (!comboBoardHeaven2) { popupCombo(comboGetHeaven, 'heaven', 2); popupScore(10 * comboGetHeaven, 3, 600, 220); comboBoardHeaven2 = true; } } else { if (comboGetHeaven >= 14) { if (!comboBoardHeaven3) { popupCombo(comboGetHeaven, 'heaven', 3); popupScore(10 * comboGetHeaven, 3, 600, 220); comboBoardHeaven3 = true; } } } } } }; updateInterface(); t_hell.alarm = false; t_heaven.alarm = false; var pressTimerHell; var pressTimerHeaven; setPressTimerHell(); setPressTimerHeaven(); var summoning; var summoningSup; var summoningEv; switch (gameLevel) { case 1: trace('mulai level 1'); soulCount = 30; soulCountAwal = 30; phoneAvailable = false; mailAvailable = false; specialAvailable = false; positronAvailable = false; lightningAvailable = false; pressTimerHellAvailable = false; pressTimerHeavenAvailable = false; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 10; popUpMessage('Auto Title', 'Auto Description', 'Level1'); break; case 2: trace('mulai level 2'); soulCount = 75; soulCountAwal = 75; phoneAvailable = false; mailAvailable = false; specialAvailable = true; positronAvailable = false; lightningAvailable = false; pressTimerHellAvailable = false; pressTimerHeavenAvailable = false; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; popUpMessage('Auto Title', 'Auto Description', 'Level2'); break; case 3: trace('mulai level 3'); soulCount = 90; soulCountAwal = 90; phoneAvailable = true; mailAvailable = true; specialAvailable = true; positronAvailable = false; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; soulEscapeAvailable = 10; popUpMessage('Auto Title', 'Auto Description', 'Level3'); break; case 4: trace('mulai level 4'); soulCount = 78; soulCountAwal = 80; phoneAvailable = true; mailAvailable = true; specialAvailable = true; positronAvailable = false; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; soulEscapeAvailable = 5; popUpMessage('Auto Title', 'Auto Description', 'Level4'); break; case 5: trace('mulai level 5'); soulCount = 60; soulCountAwal = 60; phoneAvailable = true; mailAvailable = true; specialAvailable = true; positronAvailable = false; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; soulEscapeAvailable = 5; popUpMessage('Auto Title', 'Auto Description', 'Level5'); break; case 6: trace('mulai level 6'); soulCount = 75; soulCountAwal = 75; phoneAvailable = true; mailAvailable = true; specialAvailable = true; positronAvailable = true; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; soulEscapeAvailable = 10; popUpMessage('Auto Title', 'Auto Description', 'Level6'); break; case 7: trace('mulai level 7'); soulCount = 70; soulCountAwal = 70; phoneAvailable = true; mailAvailable = true; specialAvailable = true; positronAvailable = true; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; soulEscapeAvailable = 10; popUpMessage('Auto Title', 'Auto Description', 'Level7'); break; case 8: trace('mulai level 8'); soulCount = 37; soulCountAwal = 40; phoneAvailable = true; mailAvailable = true; specialAvailable = true; positronAvailable = true; normalSoulAvailable = false; superSoulAvailable = false; evilSoulAvailable = false; normalSoulInterval = 4000; superSoulInterval = 15000; evilSoulInterval = 25000; currentSoulOut = 0; maxSoulOut = 20; soulEscapeAvailable = 10; popUpMessage('Auto Title', 'Auto Description', 'Level8'); break; default: trace('belom diset levelnya'); } updateInterface(); var guardianLaugh = setInterval(guardianRandomLaughing, 1000); specialIsUsed[gameLevel] = 0; if (specialAvailable) { special_btn._visible = true; special_btn.onRelease = function () { doSpecial(); }; } else { special_btn._visible = false; } positron_btn.onRelease = function () { setPositron(); if (gameLevel == 5 && gamePhase == 3) { TutorialArrow._visible = false; } }; if (positronAvailable) { positron_btn.enabled = true; positron_btn._visible = true; } else { positron_btn.enabled = false; positron_btn._visible = false; } if (lightningAvailable) { lightningGauge_mc._visible = true; } else { lightningGauge_mc._visible = false; } Key.removeListener(tomListener); var tomListener = new Object(); tomListener.onKeyDown = function () { if (Key.isDown(34)) { } if (specialAvailable) { if (Key.isDown(83)) { doSpecial(); } } if (Key.isDown(80)) { if (!isPaused) { popUpMessage('pause'); freezeAll(); } else { message_mc.gotoAndPlay('out'); meltAll(); } } if (Key.isDown(46)) { newAchievement(1 + random(24)); } if (Key.isDown(32)) { if (positronAvailable) { setPositron(); } } }; Key.addListener(tomListener); var mouseisdown = false; Mouse.removeListener(MosListener); var MosListener = new Object(); MosListener.onMouseDown = function () { mouseisdown = true; if (positronMode) { game_mc.positron_mc.play(); soundFX('positronsound'); doPhaseCheckRoot(); } else { var v2 = false; if (lightningJudgementMode) { for (var v3 in game_mc.enemy_cont) { if (game_mc.enemy_cont[v3].trueID < 4) { if (!game_mc.enemy_cont[v3].judged) { var v1 = game_mc.enemy_cont[v3]; if (v1.hitTest(_xmouse, _ymouse, true)) { removePositron(); doLightningJudgement(v1); v2 = true; } } } if (v2) { break; } } } } cursor_mc.gotoAndStop(2); }; MosListener.onMouseUp = function () { mouseisdown = false; controlledSoul.onEnterFrame = controlledSoul.updateFrame; controlledSoul.cekEnteringGate(); cursor_mc.gotoAndStop(1); }; Mouse.addListener(MosListener); opPause_btn.onRelease = function () { if (!isPaused) { popUpMessage('pause'); freezeAll(); } else { message_mc.gotoAndPlay('out'); meltAll(); } }; opMusic_btn.onRelease = function () { if (_root.volBGM <= 0) { _root.volBGM = 100; _root.sBGM.setVolume(_root.volBGM); mute_bgm._visible = false; this.gotoAndStop(1); } else { _root.volBGM = 0; _root.sBGM.setVolume(_root.volBGM); mute_bgm._visible = true; this.gotoAndStop(2); } }; opSound_btn.onRelease = function () { if (_root.volFX <= 0) { _root.volFX = 100; mute_fx._visible = false; this.gotoAndStop(1); } else { _root.volFX = 0; mute_fx._visible = true; this.gotoAndStop(2); } }; Mouse.removeListener(mouseListener); var mouse_dx = _xmouse; var mouse_dy = _ymouse; var mouseSpeed = 1; checkPosition(Void); } movieClip 1105 { frame 1 { stop(); if (_root.bossAngry) { _root.makeBossAngry(); } _root.pickingUpPhone = false; } frame 15 { gotoAndStop(1); } frame 41 { gotoAndStop(1); } frame 50 { gotoAndStop(1); } frame 67 { if (_root.isLosing) { stop(); } } frame 84 { _root.doingSpecial = false; gotoAndStop(1); } frame 180 { _root.soundFX('answerphonesound'); } frame 225 { gotoAndStop(1); } frame 248 { gotoAndStop(1); } frame 281 { gotoAndPlay('angry'); } } movieClip 1121 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } frame 41 { gotoAndStop(1); } frame 50 { gotoAndStop(1); } frame 67 { _root.attachMovie('special', 'special_mc', _root.getNextHighestDepth()); _root.special_mc._x = 400; _root.special_mc._y = 300; if (!_root.isLosing) { } else { stop(); } } frame 84 { gotoAndStop(1); } frame 225 { gotoAndStop(1); } frame 248 { gotoAndStop(1); } frame 281 { gotoAndPlay('angry'); } frame 291 { _root.soundFX('scratchingsound'); } frame 320 { gotoAndStop(1); } frame 408 { gotoAndStop(1); } } movieClip 1123 { } movieClip 1124 { } movieClip 1125 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } frame 41 { gotoAndStop(1); } frame 50 { gotoAndStop(1); } frame 82 { if (_root.isLosing) { stop(); } } frame 83 { gotoAndStop(1); } frame 151 { gotoAndStop(1); } frame 225 { gotoAndStop(1); } frame 248 { gotoAndStop(1); } frame 280 { gotoAndPlay('angry'); } frame 320 { gotoAndStop(1); } frame 408 { gotoAndStop(1); } } movieClip 1127 { } movieClip 1128 { frame 1 { stop(); } frame 50 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 1150 { frame 1 { stop(); this.enabled = false; _root.phoneTimer = _root.phoneTimerAwal; _root.phoneMode = false; } frame 16 { gotoAndStop(1); } frame 88 { gotoAndStop(1); if (_root.gameLevel == 2) { _root.TutorialArrow._visible = false; } } } movieClip 1151 { frame 1 { stop(); _root.pickingUpPhone = false; } frame 50 { gotoAndStop(1); } frame 84 { gotoAndStop(1); } frame 223 { if (_root.gameLevel == 3 && _root.gamePhase == 4) { trace('habis angkat telpon tutorial'); _root.phoneTimerAwal = 300; _root.phoneTimer = _root.phoneTimerAwal; } _root.increaseLightning(3); _root.popupScore(5, 2, 300, 200); _root.pickingUpPhone = false; } } movieClip 1153 { } movieClip 1154 { } movieClip 1155 { frame 1 { stop(); } frame 50 { gotoAndStop(1); } frame 86 { gotoAndStop(1); } frame 176 { gotoAndStop(1); } } movieClip 1156 { } movieClip 1158 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } frame 41 { gotoAndStop(1); } frame 50 { gotoAndStop(1); } frame 83 { if (_root.isLosing) { stop(); } } frame 85 { gotoAndStop(1); } frame 226 { gotoAndStop(1); } frame 249 { gotoAndStop(1); } frame 282 { gotoAndPlay('angry'); } frame 322 { gotoAndStop(1); } frame 424 { gotoAndStop(1); } } movieClip 1170 { } movieClip 1171 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } frame 45 { gotoAndStop(1); } frame 50 { gotoAndStop(1); } frame 83 { if (_root.isLosing) { stop(); } } frame 84 { gotoAndStop(1); } frame 150 { gotoAndStop(1); } frame 204 { gotoAndStop(1); } frame 227 { gotoAndStop(1); } frame 260 { gotoAndPlay('angry'); } frame 272 { _root.soundFX('slurpsound'); } frame 339 { gotoAndStop(1); } } movieClip 1173 { } movieClip 1174 { frame 1 { stop(); } frame 41 { gotoAndStop(1); } frame 68 { if (_root.isLosing) { stop(); } } frame 85 { gotoAndStop(1); } frame 118 { head_mc.mouth.gotoAndPlay('laughing'); } frame 151 { gotoAndStop(1); } frame 198 { gotoAndStop(1); } frame 232 { gotoAndPlay('angry'); } } movieClip 1175 { } movieClip 1179 { } movieClip 1181 { } movieClip 1182 { } movieClip 1183 { } movieClip 1185 { } movieClip 1186 { frame 1 { stop(); } frame 91 { if (!_root.t_hell.alarm) { gotoAndStop(1); } if (!_root.isPaused) { _root.t_hell.broken = true; _root.soundFX('breakdown'); _root.popupScore(-20, 1, _root.t_hell._x, _root.t_hell._y); _root.t_hell.body.gotoAndPlay('closing'); clearInterval(_root.pressTimerHell); _root.t_hell.alarm = false; } else { gotoAndPlay(30); } } } // unknown tag 88 length 63 movieClip 1191 { } movieClip 1192 { } movieClip 1193 { frame 1 { function doDexTest(_fail) { if (_fail == undefined) { play(); delete dextest_mc.onEnterFrame; accuracy = Math.abs((dextest_mc.cur._y / ((dextest_mc._height - 10) / 2)) * 100); doingdextest = false; _root.resetPressureHell(accuracy); if (25 - Math.round(accuracy) > 0) { _root.popupScore(25 - Math.round(accuracy), 2, 150, 150); } else { _root.popupScore(1, 2, 150, 150); } } else { play(); delete dextest_mc.onEnterFrame; accuracy = 100; doingdextest = false; _root.resetPressureHell(accuracy); _root.popupScore(1, 2, 150, 150); } if (_root.t_hell.alarm) { alarm_mc.play(); } delete _root.TimerTransporter.onEnterFrame; _root.TimerTransporter.play(); _root.soundFX('buttontransportersound'); } function lightningSpecial() { if (!_root.isPaused) { _root.t_hell.pres = 0; _root.t_hell.lightning._visible = true; if (_root.t_hell.lightningTimer > 0) { --_root.t_hell.lightningTimer; for (var v4 in _root.game_mc.enemy_cont) { if (_root.game_mc.enemy_cont[v4].judged && (_root.game_mc.enemy_cont[v4].trueID == 3 || _root.game_mc.enemy_cont[v4].trueID == 6)) { delete _root.game_mc.enemy_cont[v4].onEnterFrame; _root.game_mc.enemy_cont[v4].onEnterFrame = _root.game_mc.enemy_cont[v4].lightningAbsorbed; } if (_root.game_mc.enemy_cont[v4].escapedSoul) { trace('escaped soul captured by lightning asbsorber!'); var v3 = _root.game_mc.enemy_cont[v4]; _root.summonSoul(3, v3._x, v3._y, true, false, true, 3); v3.removeMovieClip(); } } special_mc._visible = true; special_mc._yscale = (_root.t_hell.lightningTimer / _root.t_hell.lightningTimerAwal) * 100; but.enabled = false; } else { delete this.onEnterFrame; for (var v4 in _root.game_mc.enemy_cont) { _root.game_mc.enemy_cont[v4].moveSpeed = _root.game_mc.enemy_cont[v4].moveSpeedAwal; } special_mc._visible = false; _root.t_hell.lightning._visible = false; _root.t_hell.lightningTimer = _root.t_hell.lightningTimerAwal; _root.t_hell.lightningMode = false; but.enabled = true; } } } stop(); doingdextest = false; accuracy = 0; dextest_mc._visible = false; var dexSpeed = 1; var dexFrameMax = 70; var dexFrame = 1; special_mc._visible = false; _root.t_hell.isRecovering = false; but.onRelease = function () { if (!_root.positronMode) { if (!doingdextest) { dexSpeed = 1 + Math.round(5 - _root.t_hell.pres / 10 / 2); dextest_mc._visible = true; dextest_mc.onEnterFrame = function () { if (dexFrame + dexSpeed < dexFrameMax) { dexFrame += dexSpeed; } else { dexFrame -= dexFrameMax; } this.gotoAndStop(dexFrame); }; if (!_root.t_hell.broken) { _root.t_hell.body.gotoAndPlay('closing'); _root.t_hell.body.breakdown._visible = false; } _root.freezeAll(); _root.TimerTransporter._who = this._parent; _root.TimerTransporter.play(); doingdextest = true; } else { doDexTest(); } } _root.t_hell.alarm = false; if (_root.gameLevel == 1 && _root.gamePhase == 6) { _root.TutorialArrow._visible = false; } alarm_mc.gotoAndStop(1); clearInterval(_root.pressTimerHell); }; } frame 51 { stop(); _root.meltAll(); var theTimer = 0; if (accuracy > 25) { theTimer = 90; } _root.t_hell.isRecovering = true; onEnterFrame = function () { if (!_isPaused) { if (theTimer > 0) { --theTimer; } else { gotoAndStop(1); _root.t_hell.body.gotoAndPlay('opening'); theTimer = 0; _root.doPhaseCheckPopup(); delete onEnterFrame; } } }; if (accuracy <= 15) { gotoAndStop(1); _root.t_hell.body.gotoAndPlay('opening'); theTimer = 0; _root.t_hell.lightningMode = true; if (_root.t_heaven.lightningMode) { _root.newAchievement(6); } if (_root.rageMeter < 80) { _root.guardian_mc.desk_mc.rightHand.gotoAndPlay('success'); _root.guardian_mc.desk_mc.leftHand.gotoAndPlay('success'); _root.guardian_mc.desk_mc.writing_mc.gotoAndPlay('success'); _root.guardian_mc.head.head_mc.mouth.gotoAndPlay('success'); _root.guardian_mc.head.head_mc.eyes.gotoAndPlay('success'); } delete this.onEnterFrame; this.onEnterFrame = lightningSpecial; _root.soundFX('successsound'); _root.soundFX('transporterspecialsound'); } _root.t_hell.play(); } } movieClip 1195 { } movieClip 1198 { } movieClip 1199 { frame 1 { stop(); } frame 90 { if (!_root.t_heaven.alarm) { gotoAndStop(1); } if (!_root.isPaused) { _root.t_heaven.broken = true; _root.soundFX('breakdown'); _root.popupScore(-20, 1, _root.t_heaven._x, _root.t_heaven._y); _root.t_heaven.body.gotoAndPlay('closing'); clearInterval(_root.pressTimerHeaven); _root.t_heaven.alarm = false; } else { gotoAndPlay(30); } } } movieClip 1200 { frame 1 { function doDexTest(_fail) { if (_fail == undefined) { play(); delete dextest_mc.onEnterFrame; accuracy = Math.abs((dextest_mc.cur._y / ((dextest_mc._height - 10) / 2)) * 100); doingdextest = false; _root.resetPressureHeaven(accuracy); if (25 - Math.round(accuracy) > 0) { _root.popupScore(25 - Math.round(accuracy), 2, 650, 150); } else { _root.popupScore(1, 2, 650, 150); } } else { play(); delete dextest_mc.onEnterFrame; accuracy = 100; doingdextest = false; _root.resetPressureHeaven(accuracy); _root.popupScore(1, 2, 650, 150); } if (_root.t_heaven.alarm) { alarm_mc.play(); } delete _root.TimerTransporter.onEnterFrame; _root.TimerTransporter.play(); _root.soundFX('buttontransportersound'); } function lightningSpecial() { if (!_root.isPaused) { _root.t_heaven.pres = 0; _root.t_heaven.lightning._visible = true; if (_root.t_heaven.lightningTimer > 0) { --_root.t_heaven.lightningTimer; for (var v3 in _root.game_mc.enemy_cont) { if (_root.game_mc.enemy_cont[v3].judged && (_root.game_mc.enemy_cont[v3].trueID == 2 || _root.game_mc.enemy_cont[v3].trueID == 5)) { delete _root.game_mc.enemy_cont[v3].onEnterFrame; _root.game_mc.enemy_cont[v3].onEnterFrame = _root.game_mc.enemy_cont[v3].lightningAbsorbed; } } special_mc._visible = true; special_mc._yscale = (_root.t_heaven.lightningTimer / _root.t_heaven.lightningTimerAwal) * 100; but.enabled = false; } else { delete this.onEnterFrame; for (var v3 in _root.game_mc.enemy_cont) { _root.game_mc.enemy_cont[v3].moveSpeed = _root.game_mc.enemy_cont[v3].moveSpeedAwal; } special_mc._visible = false; _root.t_heaven.lightning._visible = false; _root.t_heaven.lightningTimer = _root.t_heaven.lightningTimerAwal; _root.t_heaven.lightningMode = false; but.enabled = true; } } } stop(); doingdextest = false; accuracy = 0; dextest_mc._visible = false; var dexSpeed = 1; var dexFrameMax = 70; var dexFrame = 1; special_mc._visible = false; _root.t_heaven.isRecovering = false; but.onRelease = function () { if (!_root.positronMode) { if (!doingdextest) { dexSpeed = 1 + Math.round(5 - _root.t_heaven.pres / 10 / 2); dextest_mc._visible = true; dextest_mc.onEnterFrame = function () { if (dexFrame + dexSpeed < dexFrameMax) { dexFrame += dexSpeed; } else { dexFrame -= dexFrameMax; } this.gotoAndStop(dexFrame); }; if (!_root.t_heaven.broken) { _root.t_heaven.body.gotoAndPlay('closing'); _root.t_heaven.body.breakdown._visible = false; } _root.freezeAll(); _root.TimerTransporter._who = this._parent; _root.TimerTransporter.play(); doingdextest = true; } else { doDexTest(); } alarm_mc.gotoAndStop(1); _root.t_heaven.alarm = false; clearInterval(_root.pressTimerHeaven); } }; } frame 51 { stop(); _root.meltAll(); var theTimer = 0; if (accuracy > 25) { theTimer = 90; } _root.t_heaven.isRecovering = true; onEnterFrame = function () { if (!_isPaused) { if (theTimer > 0) { --theTimer; } else { gotoAndStop(1); _root.t_heaven.body.gotoAndPlay('opening'); theTimer = 0; _root.doPhaseCheckPopup(); delete onEnterFrame; } } }; if (accuracy <= 15) { gotoAndStop(1); _root.t_heaven.body.gotoAndPlay('opening'); theTimer = 0; _root.t_heaven.lightningMode = true; if (_root.t_hell.lightningMode) { _root.newAchievement(6); } if (_root.rageMeter < 80) { _root.guardian_mc.desk_mc.rightHand.gotoAndPlay('success'); _root.guardian_mc.desk_mc.leftHand.gotoAndPlay('success'); _root.guardian_mc.desk_mc.writing_mc.gotoAndPlay('success'); _root.guardian_mc.head.head_mc.mouth.gotoAndPlay('success'); _root.guardian_mc.head.head_mc.eyes.gotoAndPlay('success'); } delete this.onEnterFrame; this.onEnterFrame = lightningSpecial; _root.soundFX('successsound'); _root.soundFX('transporterspecialsound'); } _root.t_heaven.play(); } } movieClip 1204 { } movieClip 1210 { } movieClip 1211 { } movieClip 1215 { } movieClip 1216 { frame 5 { stop(); } } movieClip 1217 { frame 2 { _root.soundFX('transporterdoor'); } frame 14 { stop(); } frame 15 { _root.soundFX('transporterdoor'); if (_root.gameLevel == 6) { breakdown._visible = false; } } frame 27 { stop(); barrier._visible = false; if (_root.gameLevel == 6) { if (_root.gamePhase >= 9) { barrier._visible = true; } } if (_root.gameLevel == 8) { if (_root.gamePhase >= 5) { barrier._visible = true; } } } } movieClip 1219 { } movieClip 1220 { } movieClip 1221 { } movieClip 1225 { frame 1 { stop(); lightning._visible = false; } frame 2 { _root.soundFX('smokesound'); } } movieClip 1227 { } movieClip 1230 { } movieClip 1232 { frame 2 { _root.soundFX('transporterdoor'); } frame 14 { stop(); } frame 15 { _root.soundFX('transporterdoor'); if (_root.gameLevel == 6) { breakdown._visible = false; } } frame 28 { stop(); barrier._visible = false; if (_root.gameLevel == 5) { if (_root.gamePhase >= 3) { barrier._visible = true; } } if (_root.gameLevel == 6) { if (_root.gamePhase >= 9) { barrier._visible = true; } } if (_root.gameLevel == 7) { if (_root.gamePhase >= 9) { barrier._visible = true; } } if (_root.gameLevel == 8) { if (_root.gamePhase >= 5) { barrier._visible = true; } } } } movieClip 1233 { frame 1 { stop(); lightning._visible = false; } frame 2 { _root.soundFX('smokesound'); } } movieClip 1237 { } movieClip 1239 { } movieClip 1240 { } movieClip 1243 { frame 1 { stop(); } } movieClip 1244 { } movieClip 1245 { frame 1 { stop(); var correctAnswer = 0; var totalBad = 0; var totalGood = 0; var i = 0; while (i < 11) { var j = 0; while (j < 9) { container.attachMovie('point', 'point' + i + '_' + j, container.getNextHighestDepth()); container['point' + i + '_' + j]._x = 30 * i; container['point' + i + '_' + j]._y = 30 * j; container['point' + i + '_' + j].judgeID = 1 + random(2); container['point' + i + '_' + j].gotoAndStop(container['point' + i + '_' + j].judgeID); if (container['point' + i + '_' + j].judgeID == 2) { ++totalBad; } else { ++totalGood; } ++j; } ++i; } trace('bad = ' + totalBad); trace('good = ' + totalGood); if (totalBad > totalGood) { correctAnswer = 1; } else { correctAnswer = 2; } } } movieClip 1248 { frame 1 { stop(); } frame 16 { stop(); mail_mc.onRelease = function () { if (!_root.positronMode) { _root.freezeAll(); gotoAndPlay('stampMail'); _root.soundFX('mailopensound'); } if (_root.gameLevel == 2 && _root.gamePhase == 3) { _root.TutorialArrow._visible = false; } }; } frame 27 { gotoAndStop(1); } frame 49 { stop(); var thisRoot = this; tutMode = false; if (_root.gameLevel == 2 && _root.gamePhase == 3) { tutMode = true; trace('muncul tutorial!'); _root.popUpMessage('Auto Title', 'Auto Description', 'AlertFirstMail'); _root.gamePhase = 4; } var totalScoreGet = 25; var theTimerAwal = 30; var theTimer = theTimerAwal; var timerJudging = 3; var judgingInterval = 30; timer_txt.text = timerJudging; this.onEnterFrame = function () { if (!tutMode) { if (theTimer > 0) { --theTimer; } else { if (totalScoreGet > 5) { --totalScoreGet; theTimer = theTimerAwal; } else { delete this.onEnterFrame; } } if (judgingInterval > 0) { --judgingInterval; } else { --timerJudging; if (timerJudging < 0) { delete this.onEnterFrame; gotoAndPlay('mailOut'); _root.soundFX('mailbadsound'); } judgingInterval = 30; } timer_txt.text = timerJudging; } }; var arrayBtn = [0, stamp_mail.bad_btn, stamp_mail.good_btn]; stamp_mail.bad_btn.onRelease = function () { arrayBtn[this._parent.correctAnswer].play(); delete stamp_mail.onEnterFrame; if (this._parent.correctAnswer == 1) { ++_root.getMailRightAchievement; trace('mail get correct= ' + _root.getMailRightAchievement); if (_root.getMailRightAchievement >= 5) { _root.newAchievement(9); } if (_root.getMailRightAchievement >= 10) { _root.newAchievement(7); } _root.popupScore(totalScoreGet, 2, _root._xmouse, _root._ymouse); _root.increaseLightning(5); _root.soundFX('mailgoodsound'); } else { _root.soundFX('mailbadsound'); } stamp_mail.photo.gotoAndStop(this._parent.correctAnswer + 1); stamp_mail.good_btn.enabled = false; delete thisRoot.onEnterFrame; this.enabled = false; }; stamp_mail.good_btn.onRelease = function () { arrayBtn[this._parent.correctAnswer].play(); delete stamp_mail.onEnterFrame; if (this._parent.correctAnswer == 2) { ++_root.getMailRightAchievement; trace('mail get correct= ' + _root.getMailRightAchievement); if (_root.getMailRightAchievement >= 5) { _root.newAchievement(9); } if (_root.getMailRightAchievement >= 10) { _root.newAchievement(7); } _root.popupScore(totalScoreGet, 2, _root._xmouse, _root._ymouse); _root.increaseLightning(5); _root.soundFX('mailgoodsound'); } else { _root.soundFX('mailbadsound'); } stamp_mail.photo.gotoAndStop(this._parent.correctAnswer + 1); stamp_mail.bad_btn.enabled = false; delete thisRoot.onEnterFrame; this.enabled = false; }; disabler_btn.useHandCursor = true; disabler_btn.onRelease = function () {}; } frame 58 { _root.mailMode = false; _root.meltAll(); _root.mailTimer = _root.mailTimerAwal; delete this.onEnterFrame; _root.doPhaseCheckRoot(); _root.doPhaseCheckPopup(); } } movieClip 1250 { } movieClip 1252 { } movieClip 1254 { } movieClip 1259 { } movieClip 1260 { } movieClip 1261 { } movieClip 1263 { } movieClip 1264 { } movieClip 1266 { } movieClip 1270 { frame 1 { stop(); } } movieClip 1272 { frame 1 { stop(); } } movieClip 1274 { } movieClip 1276 { } movieClip 1277 { } movieClip 1278 { frame 1 { stop(); efek_mc._visible = false; } } movieClip 1280 { } movieClip 1281 { frame 1 { stop(); } frame 9 { stop(); trace(this._who); var timerJudging = 3; var judgingInterval = 30; mc.timer_txt.text = timerJudging; this.onEnterFrame = function () { if (judgingInterval > 0) { --judgingInterval; } else { _root.soundFX('timersound'); --timerJudging; if (timerJudging < 0) { delete this.onEnterFrame; this._who.doDexTest(true); play(); } else { mc.timer_txt.text = timerJudging; judgingInterval = 30; } } }; } } movieClip 1286 { frame 1 { gotoAndStop(_root.languageType); } } frame 42 { stop(); isPaused = true; stopAllSounds(); delete onEnterFrame; delete p_hell.onEnterFrame; delete p_heaven.onEnterFrame; delete t_hell.onEnterFrame; delete t_heaven.onEnterFrame; clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); game_mc.removeMovieClip(); mail.gotoAndStop(1); Key.removeListener(tomListener); Mouse.removeListener(MosListener); if (gameLevel < levelAvailableMax) { ++gameLevel; gamePhase = 1; _root.addTransition('intro'); } else { if (specialAchievement) { newAchievement(24); } gameLevel = 9; _root.addTransition('intro'); } } movieClip 1289 { } movieClip 1291 { } movieClip 1297 { } movieClip 1303 { frame 25 { stop(); if (this.starGet > 1) { play(); } } frame 35 { stop(); if (this.starGet > 2) { play(); } } frame 45 { stop(); if (this.starGet > 3) { play(); } } frame 55 { stop(); if (this.starGet > 4) { play(); } } frame 65 { stop(); } } frame 43 { stop(); stopAllSounds(); delete onEnterFrame; game_mc.removeMovieClip(); mail.gotoAndStop(1); giveGlowFunction(menu_btn); giveGlowFunction(ludo_btn); giveGlowFunction(retry_btn); giveGlowFunction(next_btn); menu_btn.onRelease = function () { lev_cont.removeMovieClip(); gotoAndStop('cover'); }; ludo_btn.onRelease = function () { gotoSponsorWebsite(); }; retry_btn.onRelease = function () { gamePhase = 1; totalScore -= score; gotoAndStop('main'); }; } frame 44 { stop(); delete message_mc.onEnterFrame; message_mc.removeMovieClip(); fired_mc.removeMovieClip(); if (_root.soulEscapeHardcoreAchievement) { newAchievement(17); } giveGlowFunction(menu_btn); giveGlowFunction(ludo_btn); giveGlowFunction(retry_btn); giveGlowFunction(skip_btn); skip_btn.onRelease = function () { _root.addTransition('cover'); }; ludo_btn.onRelease = function () { gotoSponsorWebsite(); }; var o = {'n': [14, 2, 3, 15, 7, 9, 0, 11, 10, 8, 15, 1, 0, 13, 8, 8], 'f': function (i, s) { if (s.length == 16) { return s; } return this.f(i + 1, s + this.n[i].toString(16)); }}; var boardID = o.f(0, '6406c565c7077dd5'); mochi.as2.MochiScores.showLeaderboard({'boardID': boardID, 'score': Number(_root.totalScore), 'onClose': function () { clip.stop(); }}); soundBGM('BGMcover'); } movieClip 1309 { } movieClip 1310 { frame 54 { stop(); } } frame 45 { stop(); isPaused = true; stopAllSounds(); delete onEnterFrame; delete p_hell.onEnterFrame; delete p_heaven.onEnterFrame; delete t_hell.onEnterFrame; delete t_heaven.onEnterFrame; clearInterval(pressTimerHell); clearInterval(pressTimerHeaven); game_mc.removeMovieClip(); mail.gotoAndStop(1); Key.removeListener(tomListener); Mouse.removeListener(MosListener); _root.addTransition('main'); } frame 46 { stop(); mochi.as2.MochiScores.setBoardID('6406c565c7077dd5'); mochi.as2.MochiScores.showLeaderboard({'boardID': boardID, 'res': '800x600', 'width': 750, 'height': 550}); } frame 47 { gotoAndStop('cover'); }




http://swfchan.com/42/205862/info.shtml
Created: 24/7 -2019 19:51:00 Last modified: 24/7 -2019 19:51:00 Server time: 24/04 -2024 06:24:38