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

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

Grand_Adventure.swf

This is the info page for
Flash #188998

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


ActionScript [AS1/AS2]
Combined Code
movieClip 28 LilSpider { frame 1 { function onEnterFrame() { if (_root.removeSpiders) { removeMovieClip(this); } if (this.hitTest(_root.attack_mc)) { gotoAndPlay(10); } this._y += 10; if (this._y > _parent.spiderHorde_mc._y) { _parent.spiderHorde_mc._y -= 10; removeMovieClip(this); } } } frame 9 { gotoAndPlay(1); } frame 10 { function onEnterFrame() {} } frame 12 { removeMovieClip(this); } } movieClip 38 DemonFireUpRight { frame 1 { function onEnterFrame() { if (isActive) { this._x += 8; this._y -= 8; if (this._y >= 600 || this._x < -30 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 2) { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = -8; play(); } else { if (_root.blocking && _root.playerDir == 3) { _root.playerKnockback = true; _root.playerXVel = 8; _root.playerYVel = 0; gotoAndPlay(11); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = 12; _root.playerYVel = -12; } removeMovieClip(this); } } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } frame 11 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 19 { removeMovieClip(this); } } movieClip 43 DemonFireUpLeft { frame 1 { function onEnterFrame() { if (isActive) { this._x -= 8; this._y -= 8; if (this._y >= 600 || this._x < -30 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 2) { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = -8; play(); } else { if (_root.blocking && _root.playerDir == 1) { _root.playerKnockback = true; _root.playerXVel = -8; _root.playerYVel = 0; gotoAndPlay(11); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = -12; _root.playerYVel = -12; } removeMovieClip(this); } } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } frame 11 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 19 { removeMovieClip(this); } } movieClip 45 DemonFireUp { frame 1 { function onEnterFrame() { if (isActive) { this._y -= 15; if (this._y < -30 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 2) { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = -8; play(); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = -13; } removeMovieClip(this); } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } } movieClip 47 DemonFireRight { frame 1 { function onEnterFrame() { if (isActive) { this._x += 15; if (this._x > 600 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 3) { _root.playerKnockback = true; _root.playerXVel = 8; _root.playerYVel = 0; play(); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = 13; _root.playerYVel = 0; } removeMovieClip(this); } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } } movieClip 50 DemonFireLeft { frame 1 { function onEnterFrame() { if (isActive) { this._x -= 15; if (this._x < -30 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 1) { _root.playerKnockback = true; _root.playerXVel = -8; _root.playerYVel = 0; play(); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = -13; _root.playerYVel = 0; } removeMovieClip(this); } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } } movieClip 54 DemonFireDownRight { frame 1 { function onEnterFrame() { if (isActive) { this._x += 8; this._y += 8; if (this._y >= 600 || this._x < -30 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 0) { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = 8; play(); } else { if (_root.blocking && _root.playerDir == 3) { _root.playerKnockback = true; _root.playerXVel = 8; _root.playerYVel = 0; gotoAndPlay(11); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = 12; _root.playerYVel = 12; } removeMovieClip(this); } } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } frame 11 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 19 { removeMovieClip(this); } } movieClip 57 DemonFireDownLeft { frame 1 { function onEnterFrame() { if (isActive) { this._x -= 8; this._y += 8; if (this._y >= 600 || this._x < -30 || _root.playerHealth <= 0) { removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 0) { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = 8; play(); } else { if (_root.blocking && _root.playerDir == 1) { _root.playerKnockback = true; _root.playerXVel = -8; _root.playerYVel = 0; gotoAndPlay(11); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = -12; _root.playerYVel = 12; } removeMovieClip(this); } } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } frame 11 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 19 { removeMovieClip(this); } } movieClip 59 DemonFireDown { frame 1 { function onEnterFrame() { if (isActive) { this._y += 15; if (this._y >= 600 || _root.playerHealth <= 0) { trace('MUST REMOVE'); removeMovieClip(this); } if (this.hitTest(_root.player_mc)) { isActive = false; if (_root.blocking && _root.playerDir == 0) { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = 8; play(); } else { --_root.playerHealth; if (_root.playerHealth <= 0) { _root.scenes_mc.gotoAndStop(71); } else { _root.playerKnockback = true; _root.playerXVel = 0; _root.playerYVel = 13; } removeMovieClip(this); } } } } stop(); var isActive = true; } frame 2 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 10 { removeMovieClip(this); } } movieClip 63 BlueFireball { #initclip Object.registerClass('BlueFireball', Attack); #endinitclip frame 1 { function onHit() { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } loadMovie('', this); } function onBlock() { _root.maps_mc.reflectBlue_mc._y = _root.player_mc._y - 36; _root.maps_mc.reflectBlue_mc._x = this._x; _root.maps_mc.reflectBlue_mc.play(); loadMovie('', this); } function onEnterFrame() { if (_x > prevX) { gotoAndStop(3); } else { if (_x < prevX) { gotoAndStop(2); } else { if (_x == prevX) { gotoAndStop(1); } else { trace('Something is amiss... (BlueFireball)'); } } } prevX = _x; } stop(); var prevX = _x; damage = 0; knockX = 0; knockY = 10; blockDir = 0; } frame 2 { stop(); knockX = -8; knockY = 8; } frame 3 { stop(); knockX = 8; knockY = 8; } } movieClip 64 blueFireRig { frame 1 { function testHit() { return blueFire_mc.testHit(); } if (path >= 1 && path <= 5) { gotoAndPlay((path - 1) * 35 + 2); } else { trace('blueFireRig failure!'); stop(); } sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 36 { stop(); loadMovie('', this); } frame 71 { stop(); loadMovie('', this); } frame 106 { stop(); loadMovie('', this); } frame 141 { stop(); loadMovie('', this); } frame 176 { stop(); loadMovie('', this); } } movieClip 72 Attack { frame 1 { function onEnterFrame() { if (_root.stopMove && !_root.cutsceneAttack) { _root.attacking = false; this.gotoAndStop(10); } } sfxSwipe2 = new Sound(); sfxSwipe2.attachSound('sfxSwipe2'); if (_root.soundEnabled) { sfxSwipe2.start(0, 1); } } frame 10 { _root.attacking = false; _root.cutsceneAttack = false; removeMovieClip(this); } } movieClip 80 fire1Reflect { frame 4 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 7 { function onEnterFrame() { if (!hitTarget) { _x = _x + 20; } if (this.hitTest(_root.maps_mc.launcher_mc)) { play(); _root.maps_mc.launcher_mc.play(); hitTarget = true; } } var hitTarget = false; stop(); } frame 11 { stop(); loadMovie('', this); } } movieClip 81 Fireball1 { #initclip Object.registerClass('Fireball1', Attack); #endinitclip frame 1 { function onHit() { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } loadMovie('', this); } function onBlock() { _root.plotProgress = 15; _root.playerXVel = -5; _root.playerKnockback = true; _root.maps_mc.attachMovie('fire1Reflect', 'reflect_mc', 40, {'_x': _root.player_mc._x + 18, '_y': 300}); loadMovie('', this); } isActive = false; damage = 0; knockX = -17; knockY = 0; blockDir = 1; } frame 2 { fxShoot = new Sound(); fxShoot.attachSound('fxShoot'); if (_root.soundEnabled) { fxShoot.start(0, 1); } } frame 4 { stop(); this.isActive = true; } } movieClip 82 fire1Rig { frame 1 { function testHit() { return fireball_mc.testHit(); } } frame 26 { loadMovie('', this); } } movieClip 108 Dragon3 { #initclip Object.registerClass('Dragon3', TriggerPanel); #endinitclip frame 1 { if (_root.plotProgress < 2) { loadMovie('', this); } } frame 61 { _root.maps_mc.door7_mc._y = 260.5; } frame 73 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 139 { _root.dragonInRange = true; } frame 143 { _root.dragonInRange = false; } frame 144 { if (_root.dragonTargeted) { gotoAndPlay(157); } } frame 156 { stopAllSounds(); _root.currentMusic = 0; _root.maps_mc.panic_mc.gotoAndStop(1); _root.stopMove = true; _root.plotProgress = 3; gotoAndPlay(228); } frame 157 { stopAllSounds(); _root.currentMusic = 0; _root.maps_mc.panic_mc.gotoAndStop(1); _root.stopMove = true; _root.maps_mc.gate7_mc.play(); _root.maps_mc.gate8_mc.play(); _root.dragonKilled = 1; } frame 164 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 205 { sfxSelect = new Sound(); sfxSelect.attachSound('sfxSelect'); if (_root.soundEnabled) { sfxSelect.start(0, 1); } } frame 226 { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; } frame 226 { _root.stopMove = false; _root.pauseable = true; _root.plotProgress = 3; _root.playerSpeed = 5; _root.maps_mc.interactive13_mc._x = 116.35; _root.maps_mc.interactive13_mc._y = 298.35; _root.autoSave(); } frame 227 { stop(); } frame 231 { _root.maps_mc.gate7_mc.gotoAndPlay(14); _root.dragonKilled = 2; } frame 264 { sfxSelect = new Sound(); sfxSelect.attachSound('sfxSelect'); if (_root.soundEnabled) { sfxSelect.start(0, 1); } } frame 286 { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; } frame 286 { _root.stopMove = false; _root.pauseable = true; _root.playerSpeed = 5; _root.maps_mc.interactive13_mc._x = 302.35; _root.maps_mc.interactive13_mc._y = 301.35; _root.autoSave(); } frame 287 { stop(); } } movieClip 112 spr_Torch { #initclip Object.registerClass('spr_Torch', Wall); #endinitclip } movieClip 115 { } movieClip 116 { } movieClip 118 { } movieClip 120 { frame 1 { stop(); } } movieClip 123 { } movieClip 124 { } movieClip 127 { } movieClip 130 { frame 1 { stop(); } } movieClip 131 Preloader { frame 1 { function enterFrameHandler() { var v2 = 0; v2 = _root.getBytesLoaded() / _root.getBytesTotal(); if (loadingBar) { loadingBar.gotoAndStop(int(v2 * (loadingBar._totalframes - 1)) + 1); } if (v2 >= 1) { onEnterFrame = null; gotoAndStop('loaded'); } } stop(); var autoPlay; var className; onEnterFrame = enterFrameHandler; } frame 10 { function _onPlayClick() { _root.nextFrame(); _root.play(); _parent._onLoaded(); } if (playButton) { playButton.onRelease = _onPlayClick; playButton.stop(); } if (autoPlay) { _onPlayClick(null); } } } movieClip 133 Newgrounds API Classes { #initclip Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim); #endinitclip } movieClip 173 { } movieClip 176 { } movieClip 181 { } movieClip 185 { } movieClip 186 { } movieClip 187 { } movieClip 188 FlashAd { #initclip Object.registerClass('FlashAd', com.newgrounds.components.FlashAdBase); #endinitclip frame 1 { stop(); } frame 30 { function onPlayClick() { removeAd(); _visible = false; } if (this.playButton) { this.playButton.onRelease = onPlayClick; } } } movieClip 189 APIConnector { frame 1 { function _onLoaded() { gotoAndStop('invisible'); if (_redirect) { com.newgrounds.API.loadOfficialVersion(); return undefined; } } function _apiConnect() { var v2 = com.newgrounds.API; if (v2 && !v2.connected) { if (!apiId) { com.newgrounds.Logger.logError('No API ID entered in the API Connector component.', 'You can create an API ID for this submission at http://newgrounds.com/account/flashapi', 'Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).'); return undefined; } switch (debugMode) { case 'Off': default: v2.debugMode = v2.RELEASE_MODE; goto 1299; case 'Simulate Logged-in User': //Invalid switch } v2.debugMode = v2.DEBUG_MODE_LOGGED_IN; goto 1299; case 'Off': v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT; goto 1299; case 'Simulate Logged-in User': v2.debugMode = v2.DEBUG_MODE_NEW_VERSION; goto 1299; case 'Simulate Logged-out User': v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED; label 1299: v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected); v2.connect(_root, apiId, encryptionKey, movieVersion); } } function _onConnected(event) { if (redirectOnNewVersion && event.__get__success() && (event.__get__data()).newVersion) { _redirect = true; } if (redirectOnHostBlocked && !event.__get__success() && event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED) { _redirect = true; } if (_redirect) { gotoAndStop('adPreloader'); forceAlwaysOnTop(); } } function forceAlwaysOnTop() { var v2 = getNextHighestDepth(); swapDepths(v2); if (Stage) { _x = (Stage.width - _width) / 2; _y = (Stage.height - _height) / 2; _visible = true; } if (_root && _root instanceof MovieClip) { (MovieClip(_root)).stop(); } } stop(); if (_root && _root instanceof MovieClip) { (MovieClip(_root)).stop(); } var apiId; var encryptionKey; var movieVersion; var debugMode; var connectorType; var redirectOnHostBlocked; var redirectOnNewVersion; var adType; var className; var _redirect; _x = int(_x); _y = int(_y); if (!debugMode) { debugMode = 'Simulate Logged-in User'; } if (!connectorType) { connectorType = 'Flash Ad + Preloader'; } if (!adType) { adType = 'Video'; } if (ad) { ad.adType = adType; } switch (connectorType) { case 'Flash Ad + Preloader': gotoAndStop('adPreloader'); break; case 'Flash Ad Only': gotoAndStop('ad'); break; case 'Invisible': gotoAndStop('invisible'); } _apiConnect(); } instance ad of movieClip 188 FlashAd { onClipEvent (construct) { adType = 'Video'; apiId = ''; showBorder = true; } } instance loader of movieClip 131 Preloader { onClipEvent (construct) { autoPlay = false; mainClass = ''; } } } frame 1 { _root.menuHide = true; _root._quality = 'Low'; _root.saveSlot = 0; if (_root.soundEnabled != false) { _root.soundEnabled = true; } stop(); } button 194 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 195 { } movieClip 197 { frame 1 { function startAd(ngad_url) { trace('opening ' + ngad_url); System.security.allowDomain('70.87.128.99'); System.security.allowInsecureDomain('70.87.128.99'); System.security.allowDomain('ads.shizmoo.com'); System.security.allowInsecureDomain('ads.shizmoo.com'); System.security.allowDomain('www.cpmstar.com'); System.security.allowInsecureDomain('www.cpmstar.com'); System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!'); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), 'GET'); } else {} }; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function (ad_url) { startAd(ad_url); }; stop(); } } movieClip 200 { } movieClip 208 { } button 209 { on (release) { _root.play(); } } movieClip 210 { frame 1 { stop(); } frame 2 { sfxSelect = new Sound(); sfxSelect.attachSound('sfxSelect'); if (_root.soundEnabled) { sfxSelect.start(0, 1); } } } instance of movieClip 210 { onClipEvent (enterFrame) { _root.percentPreloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; this.pBar._xscale = _root.percentPreloaded; if (_root.percentPreloaded != 100) { _root.percentPreloadedDis = _root.percentPreloaded + '%'; } else { this.nextFrame(); } } } instance of movieClip 189 APIConnector { onClipEvent (construct) { adType = 'Video'; apiId = '23257:6s9jkk7i'; connectorType = 'Invisible'; debugMode = 'Simulate Logged-in User'; encryptionKey = 'mXUuIgiTPHHv9IrqUMgRa8FhzCHCdVrC'; movieVersion = ''; redirectOnHostBlocked = true; redirectOnNewVersion = true; } } instance of movieClip 188 FlashAd { onClipEvent (construct) { adType = 'Video'; apiId = '23257:6s9jkk7i'; showBorder = false; } } movieClip 141 __Packages.com.newgrounds.APIConnection { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIConnection) { var v1 = function () { this.reset(); }; com.newgrounds.APIConnection = v1; var v2 = v1.prototype; v2.__get__hostURL = function () { return this._hostURL; }; v2.__set__hostURL = function (value) { this._hostURL = value; this.hostDomain = null; if (this._hostURL) { var v2 = this._hostURL.split('/'); if (v2[0] != 'file:' && this._hostURL != 'localhost') { this.hostDomain = v2[2]; } } if (!this.hostDomain) { this.hostDomain = 'localhost'; } return this.__get__hostURL(); }; v2.__get__sandboxType = function () { return System.security.sandboxType; }; v2.__get__isNetworkHost = function () { switch (this.__get__sandboxType()) { return true; case 'localWithFile': case 'localWithNetwork': case 'localTrusted': case 'application': return false; case 'remote': } return true; }; v2.__get__hasUserSession = function () { return this.sessionId != null && this.sessionId != '' && this.publisherId != 0; }; v2.__get__connected = function () { return this.connectionState == com.newgrounds.APIConnection.CONNECTED; }; v2.reset = function () { this.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED; this.encryptionKey = null; this.sessionId = null; this.userEmail = null; this.username = null; this.userId = 0; this.userpageFormat = 0; }; v2.assertInitialized = function () { if (!this.initialized) { com.newgrounds.Logger.logError('You must initialized the API using API.connect() before using this command.'); return false; } return true; }; v2.assertConnected = function () { if (!this.connectionState == com.newgrounds.APIConnection.CONNECTED) { com.newgrounds.Logger.logError('You must establish a connection using API.connect() before using this command.'); return false; } return true; }; v2.sendSimpleCommand = function (command, completeHandler, parameters, secureParameters) { if (parameters == undefined) { parameters = null; } if (secureParameters == undefined) { secureParameters = null; } var v2 = new com.newgrounds.APICommand(command); v2.__set__parameters(parameters); v2.__set__secureParameters(secureParameters); if (completeHandler != null) { v2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler); } v2.send(this); }; v2.sendCommand = function (command) { command.send(this); }; v2.loadInBrowser = function (command, newWindow, parameters) { if (newWindow == undefined) { newWindow = true; } if (parameters == undefined) { parameters = null; } var v2 = new com.newgrounds.APICommand(command); v2.__set__parameters(parameters); v2.loadInBrowser(this, newWindow); }; v1.NOT_CONNECTED = 'notConnected'; v1.CONNECTING = 'connecting'; v1.CONNECTED = 'connected'; v2.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED; v2.apiURL = 'http://www.ngads.com/gateway_v2.php'; v2.addProperty('connected', v2.__get__connected, function () {}); v2.addProperty('hasUserSession', v2.__get__hasUserSession, function () {}); v2.addProperty('hostURL', v2.__get__hostURL, v2.__set__hostURL); v2.addProperty('isNetworkHost', v2.__get__isNetworkHost, function () {}); v2.addProperty('sandboxType', v2.__get__sandboxType, function () {}); ASSetPropFlags(com.newgrounds.APIConnection.prototype, null, 1); } #endinitclip } movieClip 135 __Packages.com.newgrounds.EventDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.EventDispatcher) { var v1 = function () { this._listeners = {}; }; com.newgrounds.EventDispatcher = v1; var v2 = v1.prototype; v2.addEventListener = function (type, listener) { if (!this._listeners[type]) { this._listeners[type] = []; } if (typeof listener == 'function') { this._listeners[type].push({'target': null, 'func': listener}); } else { this._listeners[type].push(listener); } }; v2.removeEventListener = function (type, listener) { var v3 = this._listeners[type]; if (v3) { var v5 = v3.length; var v2 = 0; while (v2 < v5) { if (v3[v2].func == listener || v3[v2] == listener) { v3.splice(v2, 1); return undefined; } ++v2; } } }; v2.dispatchEvent = function (event) { var v4 = this._listeners[event.__get__type()]; if (v4) { var v5 = v4.length; var v2 = 0; while (v2 < v5) { var v3 = v4[v2]; v3.func.call(v3.target, event); ++v2; } } return true; }; ASSetPropFlags(com.newgrounds.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 134 __Packages.com.newgrounds.Event { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Event) { var v1 = function (type) { this._type = type; }; com.newgrounds.Event = v1; var v2 = v1.prototype; v2.__get__type = function () { return this._type; }; v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.Event.prototype, null, 1); } #endinitclip } movieClip 136 __Packages.com.newgrounds.APIEventDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEventDispatcher) { var v1 = function () { super(); }; com.newgrounds.APIEventDispatcher = v1; com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher; var v2 = v1.prototype; v1.__get__globalDispatcher = function () { return com.newgrounds.APIEventDispatcher._globalDispatcher; }; v1.__set__globalDispatcher = function (value) { com.newgrounds.APIEventDispatcher._globalDispatcher = value; return com.newgrounds.APIEventDispatcher.__get__globalDispatcher(); }; v1.initEventQueue = function () { setInterval(com.newgrounds.APIEventDispatcher.runEventQueue, 50); return []; }; v2.dispatchEvent = function (event) { com.newgrounds.APIEventDispatcher._eventQueue.push({'dispatcher': this, 'event': event}); return true; }; v2.actualDispatchEvent = function (event) { var v3 = super.dispatchEvent(event); if (com.newgrounds.APIEventDispatcher._globalDispatcher && this != com.newgrounds.APIEventDispatcher._globalDispatcher) { com.newgrounds.APIEventDispatcher._globalDispatcher.dispatchEvent(event); } }; v1.runEventQueue = function (event) { var v3 = com.newgrounds.APIEventDispatcher._eventQueue.length; if (v3) { var v4 = com.newgrounds.APIEventDispatcher._eventQueue; com.newgrounds.APIEventDispatcher._eventQueue = []; var v1 = 0; while (v1 < v3) { var v2 = v4[v1]; v2.dispatcher.actualDispatchEvent(v2.event); ++v1; } } }; v1._eventQueue = com.newgrounds.APIEventDispatcher.initEventQueue(); v1.addProperty('globalDispatcher', v1.__get__globalDispatcher, v1.__set__globalDispatcher); ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 139 __Packages.com.newgrounds.encoders.BaseN { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.BaseN) { var v1 = function (hash) { if (hash) { this._hash = hash; } else { this._hash = com.newgrounds.encoders.BaseN.DEFAULT_HASH; } this._base = this._hash.length; this._reverseHash = new Object(); var v2 = 0; while (v2 < this._hash.length) { this._reverseHash[this._hash.charAt(v2)] = v2; ++v2; } }; com.newgrounds.encoders.BaseN = v1; var v2 = v1.prototype; v2.encodeUint = function (number, minimumChars) { if (minimumChars == undefined) { minimumChars = 1; } var v2 = ''; var v3 = number; while (v3 != 0) { v2 = this._hash.charAt(v3 % this._base) + v2; v3 /= this._base; v3 = int(v3); } while (v2.length < minimumChars) { v2 = this._hash.charAt(0) + v2; } return v2; }; v2.decodeUint = function (encodedNumber) { var v3 = 0; var v2 = 0; while (v2 < encodedNumber.length) { v3 *= this._base; v3 += this._reverseHash[encodedNumber.charAt(v2)]; ++v2; } return v3; }; v1.DEFAULT_HASH = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/'; ASSetPropFlags(com.newgrounds.encoders.BaseN.prototype, null, 1); } #endinitclip } movieClip 145 __Packages.com.newgrounds.APICommand { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APICommand) { var v1 = function (command) { super(); this._command = command; this._parameters = new Object(); this._secureParameters = new Object(); this._hasTimeout = true; }; com.newgrounds.APICommand = v1; com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v1.stopPendingCommands = function () { for (var v2 in com.newgrounds.APICommand._pendingCommands) { var v1 = com.newgrounds.APICommand._pendingCommands[v2]; v1.close(); } com.newgrounds.APICommand._pendingCommands = []; }; v1.onThrottleTimer = function (event) { if (getTimer() - com.newgrounds.APICommand._throttleTimestamp >= com.newgrounds.APICommand.THROTTLE_INTERVAL) { com.newgrounds.APICommand._throttleCount = 0; com.newgrounds.APICommand._throttleCount = 0; for (;;) { if (!(com.newgrounds.APICommand._commandQueue.length && com.newgrounds.APICommand._throttleCount < com.newgrounds.APICommand.THROTTLE_THRESHOLD)) break; var v1 = com.newgrounds.APICommand._commandQueue.shift(); v1.command.send(v1.connection); ++com.newgrounds.APICommand._throttleCount; } } }; v1.encryptHex = function (hexValue) { var v4 = hexValue.length % 6; var v3 = ''; var v1 = 0; while (v1 < hexValue.length) { v3 += com.newgrounds.APICommand._encryptor.encodeUint(int('0x' + hexValue.substr(v1, 6)), 4); v1 += 6; } return v4.toString() + v3; }; v2.__get__command = function () { return this._command; }; v2.__set__command = function (value) { this._command = value; return this.__get__command(); }; v2.__get__hasTimeout = function () { return this._hasTimeout; }; v2.__set__hasTimeout = function (val) { this._hasTimeout = val; return this.__get__hasTimeout(); }; v2.__get__parameters = function () { return this._parameters; }; v2.__set__parameters = function (object) { this._parameters = new Object(); if (object) { for (var v3 in object) { this._parameters[v3] = object[v3]; } } return this.__get__parameters(); }; v2.__get__preventCache = function () { return this._preventCache; }; v2.__set__preventCache = function (value) { this._preventCache = value; return this.__get__preventCache(); }; v2.__get__secureParameters = function () { return this._secureParameters; }; v2.__set__secureParameters = function (object) { this._secureParameters = new Object(); if (object) { for (var v3 in object) { this._secureParameters[v3] = object[v3]; } } return this.__get__secureParameters(); }; v2.__get__hasSecureParameters = function () { for (var v2 in this._secureParameters) { return true; } return false; }; v2.addFile = function (filename, data, dataField, contentType) { if (contentType == undefined) { contentType = 'application/octet-stream'; } if (!this._files) { this._files = new Object(); } var v3 = {'filename': filename, 'data': data, 'dataField': dataField, 'contentType': contentType}; this._files[filename] = v3; }; v2.removeFile = function (filename) { if (this._files) { delete this._files[filename]; } }; v2.clearFiles = function () { this._files = null; }; v2.close = function () { if (this._loader) { clearInterval(this._timeoutTimer); var v2 = 0; while (v2 < com.newgrounds.APICommand._pendingCommands.length) { if (com.newgrounds.APICommand._pendingCommands[v2] == this) { com.newgrounds.APICommand._pendingCommands.splice(v2, 1); break; } ++v2; } this._loader = null; } }; v2.loadInBrowser = function (connection, newWindow) { this._parameters.command_id = this._command; this._parameters.tracker_id = connection.apiId ? connection.apiId : 1; if (connection.debug) { this._parameters.debug = 1; } var v3 = connection.apiURL + '?host=' + escape(connection.hostDomain); for (var v4 in this._parameters) { v3 += '&' + escape(v4) + '=' + escape(this._parameters[v4]); } var v6; if (newWindow) { v6 = '_blank'; } else { v6 = '_top'; } _root.getURL(v3, v6); }; v2.send = function (connection) { if (com.newgrounds.APICommand._throttleCount >= com.newgrounds.APICommand.THROTTLE_THRESHOLD) { com.newgrounds.APICommand._commandQueue.push({'connection': connection, 'command': this}); } else { this.sendInternal(connection); } }; v2.sendInternal = function (connection) { var v4; v4 = new LoadVars(); v4.command_id = this._command; v4.tracker_id = connection.apiId; if (connection.debug) { v4.debug = 1; } if (this._preventCache) { v4.seed = Math.random(); } var v2; var v3; var v7; for (v2 in this._parameters) { v3 = this._parameters[v2]; if (v3 != null) { if (typeof v3 == 'boolean') { v4[v2] = int(v3); } else { v4[v2] = v3; } } } if (this.__get__hasSecureParameters()) { var v6 = new Object(); for (v2 in this._secureParameters) { v3 = this._secureParameters[v2]; if (v3 != null) { if (typeof v3 == 'boolean') { v6[v2] = int(v3); } else { v6[v2] = v3; } } } var v8 = ''; v7 = 0; while (v7 < 16) { v8 += com.newgrounds.APICommand.ENCRYPTOR_RADIX.charAt(int(Math.random() * com.newgrounds.APICommand.ENCRYPTOR_RADIX.length)); ++v7; } v4.command_id = 'securePacket'; v6.command_id = this._command; v6.as_version = 3; v6.session_id = connection.sessionId; v6.user_email = connection.userEmail; v6.publisher_id = connection.publisherId; v6.seed = v8; var v13 = com.newgrounds.crypto.MD5.hash(v8); var v11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(v6), connection.encryptionKey); v4.secure = com.newgrounds.APICommand.encryptHex(v13 + v11); } com.newgrounds.Logger.logInternal('Sending packet:', v4); var v12; v12 = 'application/x-www-form-urlencoded'; for (v2 in v4) { if (typeof v4[v2] == 'object') { v4[v2] = com.newgrounds.encoders.json.JSON.encode(v4[v2]); } } if (this._files) { for (var v10 in this._files) { var v5 = this._files[v10]; if (typeof v5.data == 'string') { v4[v10] = v5.data; } else { v4[v10] = com.newgrounds.encoders.json.JSON.encode(v5.data); } } } com.newgrounds.APICommand._pendingCommands.push(this); ++com.newgrounds.APICommand._throttleCount; com.newgrounds.APICommand._throttleTimestamp = getTimer(); this.startLoader(connection.apiURL, v4, v12); }; v2.startLoader = function (url, data, contentType) { this._loader = LoadVars(data); this._loader.onData = this.as2CompleteHandler; this._loader.contentType = contentType; this._loader.sendAndLoad(url, this._loader, 'POST'); if (this._hasTimeout) { setInterval(this, this.onTimeout, com.newgrounds.APICommand.TIMEOUT_INTERVAL); } }; v2.as2CompleteHandler = function (data) { var v3; var v2 = 0; while (v2 < com.newgrounds.APICommand._pendingCommands.length) { if (com.newgrounds.APICommand._pendingCommands[v2]._loader == this) { v3 = com.newgrounds.APICommand._pendingCommands[v2]; break; } ++v2; } v3.onComplete(data); }; v2.onTimeout = function (event) { this.close(); com.newgrounds.Logger.logError('Command timed out.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT)); }; v2.onError = function (error) { com.newgrounds.Logger.logError('Error when sending command:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN)); this.close(); }; v2.onComplete = function (data) { try { if (!data || data == '') { throw new Error(); } com.newgrounds.Logger.logInternal('Received packet:', data); var v2 = com.newgrounds.encoders.json.JSON.decode(data); if (!v2) { throw new Error(); } if (com.newgrounds.APICommand.bridge) { com.newgrounds.APICommand.bridge.sendEvent(v2.command_id, v2); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, v2, (v2 && v2.success) ? com.newgrounds.APIEvent.ERROR_NONE : com.newgrounds.APIEvent.ERROR_COMMAND_FAILED)); } catch (e) { com.newgrounds.Logger.logError('Invalid response returned from server: ' + data); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE)); } this.close(); }; v1.TIMEOUT_INTERVAL = 10000; v1.THROTTLE_INTERVAL = 10050; v1.THROTTLE_TICK_INTERVAL = 1000; v1.THROTTLE_THRESHOLD = 24; v1._throttleCount = 0; v1._commandQueue = []; v1._throttleTimer = setInterval(com.newgrounds.APICommand.onThrottleTimer, com.newgrounds.APICommand.THROTTLE_TICK_INTERVAL); v1.ENCRYPTOR_RADIX = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1._encryptor = new com.newgrounds.encoders.BaseN(com.newgrounds.APICommand.ENCRYPTOR_RADIX); v1._pendingCommands = []; v1.CRLF = '\r\n'; v2.addProperty('command', v2.__get__command, v2.__set__command); v2.addProperty('hasSecureParameters', v2.__get__hasSecureParameters, function () {}); v2.addProperty('hasTimeout', v2.__get__hasTimeout, v2.__set__hasTimeout); v2.addProperty('parameters', v2.__get__parameters, v2.__set__parameters); v2.addProperty('preventCache', v2.__get__preventCache, v2.__set__preventCache); v2.addProperty('secureParameters', v2.__get__secureParameters, v2.__set__secureParameters); ASSetPropFlags(com.newgrounds.APICommand.prototype, null, 1); } #endinitclip } movieClip 140 __Packages.com.newgrounds.Bridge { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Bridge) { var v1 = function (id) { this._widgetId = id; this._inConnection = new LocalConnection(); this._outConnection = new LocalConnection(); this._inConnection.receiveEvent = this.receiveEvent; try { this._inConnection.connect('rec_' + this._widgetId); } com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {'target': this, 'func': this.onLogMessage}); }; com.newgrounds.Bridge = v1; var v2 = v1.prototype; v2.onLogMessage = function (event) { try { this._outConnection.send(this._widgetId, 'sendEvent', 'trace', String(event.__get__data())); } }; v2.sendEvent = function (command, parameters) { if (this._outConnection) { parameters = {'data': parameters}; this._outConnection.send(this._widgetId, 'sendEvent', command, parameters); } }; v2.receiveEvent = function (event, parameters) {}; v2.onStatus = function (event) {}; ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1); } #endinitclip } movieClip 137 __Packages.com.newgrounds.APIEvent { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEvent) { var v1 = function (type, data, error) { super(type); if (data == undefined) { data = null; } if (error == undefined) { error = null; } if (!error || error == '' || error == com.newgrounds.APIEvent.ERROR_NONE) { this._error = com.newgrounds.APIEvent.ERROR_NONE; this._success = true; } else { this._error = error; this._success = false; } if (data) { this._data = data; } else { this._data = {}; } }; com.newgrounds.APIEvent = v1; com.newgrounds.APIEvent extends com.newgrounds.Event; var v2 = v1.prototype; v2.clone = function () { return new com.newgrounds.APIEvent(this.__get__type(), this._data, this._error); }; v2.__get__success = function () { return this._success; }; v2.__get__data = function () { return this._data; }; v2.__get__error = function () { return this._error; }; v1.COMMAND_COMPLETE = 'commandComplete'; v1.MEDAL_UNLOCK_CONFIRMED = 'medalUnlockConfirmed'; v1.ICON_LOADED = 'iconLoaded'; v1.API_CONNECTED = 'movieConnected'; v1.LOG = 'log'; v1.MEDAL_UNLOCKED = 'medalUnlocked'; v1.SCORES_LOADED = 'scoresLoaded'; v1.SCORE_POSTED = 'scorePosted'; v1.QUERY_COMPLETE = 'queryComplete'; v1.FILE_LOADED = 'fileLoaded'; v1.FILE_SAVED = 'fileSaved'; v1.FILE_REQUESTED = 'fileRequested'; v1.VOTE_COMPLETE = 'voteComplete'; v1.ERROR_NONE = 'noError'; v1.ERROR_UNKNOWN = 'unknownError'; v1.ERROR_COMMAND_FAILED = 'commandFailed'; v1.ERROR_NOT_CONNECTED = 'notConnected'; v1.ERROR_INVALID_ARGUMENT = 'invalidArgument'; v1.ERROR_TIMED_OUT = 'timedOut'; v1.ERROR_BAD_FILE = 'badFile'; v1.ERROR_BAD_RESPONSE = 'badResponse'; v1.ERROR_SENDING_COMMAND = 'errorSendingCommand'; v1.ERROR_HOST_BLOCKED = 'hostBlocked'; v1.ERROR_ALREADY_VOTED = 'alreadyVoted'; v1.ERROR_NOT_LOGGED_IN = 'notLoggedIn'; v1.ERROR_WRONG_ENCRYPTION_KEY = 'wrongEncryptionKey'; v2.addProperty('data', v2.__get__data, function () {}); v2.addProperty('error', v2.__get__error, function () {}); v2.addProperty('success', v2.__get__success, function () {}); ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1); } #endinitclip } movieClip 156 __Packages.com.newgrounds.API { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.API) { var v1 = function () {}; com.newgrounds.API = v1; var v2 = v1.prototype; v1.__get__connected = function () { return com.newgrounds.API._connection.__get__connected(); }; v1.__get__isNetworkHost = function () { return com.newgrounds.API._connection.__get__isNetworkHost(); }; v1.__get__apiId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.apiId; }; v1.__get__debugMode = function () { return com.newgrounds.API._debugMode; }; v1.__set__debugMode = function (val) { com.newgrounds.API._debugMode = val; return com.newgrounds.API.__get__debugMode(); }; v1.__get__publisherId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.publisherId; }; v1.__get__sessionId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.sessionId; }; v1.__get__hostDomain = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.hostDomain; }; v1.__get__hostURL = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.__get__hostURL(); }; v1.__get__isNewgrounds = function () { return com.newgrounds.API._connection.publisherId == 1; }; v1.__get__hasUserSession = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.__get__hasUserSession(); }; v1.__get__username = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.username; }; v1.__get__userId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.userId; }; v1.assertConnected = function (eventType) { if (eventType == undefined) { eventType = null; } if (com.newgrounds.API._connection.assertConnected()) { return true; } else { if (eventType) { com.newgrounds.API.dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); } return false; } }; v1.__get__adsApproved = function () { return com.newgrounds.API._adsApproved; }; v1.__get__adFeedURL = function () { return com.newgrounds.API._adFeedURL; }; v1.__get__medals = function () { return com.newgrounds.API._medalsArray; }; v1.__get__scoreBoards = function () { return com.newgrounds.API._scoreBoardsArray; }; v1.__get__saveGroups = function () { return com.newgrounds.API._saveGroupsArray; }; v1.connect = function (_root, apiId, encryptionKey, movieVersion) { if (encryptionKey == undefined) { encryptionKey = null; } if (movieVersion == undefined) { movieVersion = ''; } com.newgrounds.APIEventDispatcher.__set__globalDispatcher(com.newgrounds.API._dispatcher); System.security.loadPolicyFile('http://apifiles.ngfiles.com/crossdomain.xml'); if (com.newgrounds.API._connection.initialized) { com.newgrounds.Logger.logError('Connection already in progress. Please call API.disconnect() before attempting another connection.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); return undefined; } apiId = com.newgrounds.API.trimWhitespace(apiId); if (encryptionKey) { encryptionKey = com.newgrounds.API.trimWhitespace(encryptionKey); } if (!apiId || apiId == '') { com.newgrounds.Logger.logError('No apiId given. Please use the API ID from your API settings page.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } com.newgrounds.Logger.logMessage('====== Newgrounds API v' + com.newgrounds.API.VERSION + ' ======'); com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTING; _root = _root; com.newgrounds.API._movieVersion = movieVersion; com.newgrounds.API._connection.apiId = apiId; var v4; v4 = apiId.indexOf(':'); if (v4 != -1) { com.newgrounds.API._connection.trackerId = int(apiId.substring(0, v4)); } else { com.newgrounds.API._connection.trackerId = int(apiId); } if (!com.newgrounds.API._connection.trackerId) { com.newgrounds.Logger.logError('Invalid API ID: ' + apiId); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } com.newgrounds.API._connection.encryptionKey = encryptionKey; com.newgrounds.API._connection.initialized = true; com.newgrounds.API._connection.__set__hostURL(_root._url); com.newgrounds.API.doConnect(_root); }; v1.doConnect = function (flashVars) { if (com.newgrounds.API.__get__isNetworkHost() && com.newgrounds.API._debugMode != com.newgrounds.API.RELEASE_MODE) { com.newgrounds.Logger.logMessage('Live file detected, turning off debug mode.'); com.newgrounds.API._debugMode = com.newgrounds.API.RELEASE_MODE; } if (flashVars && flashVars.NewgroundsAPI_SandboxID) { com.newgrounds.API._bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID); com.newgrounds.APICommand.bridge = com.newgrounds.API._bridge; } if (com.newgrounds.API._debugMode == com.newgrounds.API.RELEASE_MODE) { if (flashVars) { if (flashVars.NewgroundsAPI_UserName) { com.newgrounds.API._connection.username = flashVars.NewgroundsAPI_UserName; } if (flashVars.NewgroundsAPI_UserID) { com.newgrounds.API._connection.userId = flashVars.NewgroundsAPI_UserID; } if (flashVars.NewgroundsAPI_PublisherID) { com.newgrounds.API._connection.publisherId = flashVars.NewgroundsAPI_PublisherID; } if (flashVars.NewgroundsAPI_UserpageFormat) { com.newgrounds.API._connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat; } if (flashVars.NewgroundsAPI_SessionID) { com.newgrounds.API._connection.sessionId = flashVars.NewgroundsAPI_SessionID; } if (flashVars.NewgroundsAPI_SaveGroupID) { com.newgrounds.API._requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID; } if (flashVars.NewgroundsAPI_SaveFileID) { com.newgrounds.API._requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID; } } } else { com.newgrounds.API._connection.debug = true; if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN || com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_OUT) { com.newgrounds.API._connection.publisherId = 1; } if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN) { com.newgrounds.API._connection.sessionId = 'D3bu64p1U53R'; com.newgrounds.API._connection.userId = 10; com.newgrounds.API._connection.username = 'API-Debugger'; } } com.newgrounds.API._connection.sendSimpleCommand('connectMovie', com.newgrounds.API.onConnect, {'host': com.newgrounds.API._connection.hostDomain, 'movie_version': com.newgrounds.API._movieVersion, 'publisher_id': com.newgrounds.API._connection.publisherId}); }; v1.onConnect = function (event) { var v1 = event.__get__data(); if (!event.__get__success()) { com.newgrounds.Logger.logError('Unable to connect to the API.'); com.newgrounds.API._connection.reset(); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error()); return undefined; } if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) { com.newgrounds.API._adFeedURL = com.newgrounds.API.TEST_AD_FEED_URL; } else { if (v1.ad_url) { com.newgrounds.API._adFeedURL = unescape(v1.ad_url); } } switch (v1.ad_status) { case -1: com.newgrounds.Logger.logWarning('Your movie is not approved to run Flash Ads.'); break; case 0: com.newgrounds.Logger.logWarning('Your movie is still awaiting approval to run Flash Ads.'); break; case 1: com.newgrounds.Logger.logMessage('Your movie is approved to run Flash Ads!'); } com.newgrounds.API._adsApproved = v1.ad_status == 1; if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_HOST_BLOCKED || v1.deny_host) { com.newgrounds.Logger.logWarning(com.newgrounds.API._connection.hostDomain + ' does not have permission to host this movie!', 'Update your API configuration to allow this host.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'officialURL': unescape(v1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED); com.newgrounds.API._connection.reset(); return undefined; } com.newgrounds.API._movieName = v1.movieName ? v1.movieName : ''; com.newgrounds.Logger.logMessage('Connecting to the Newgrounds API Gateway...', '----- ' + v1.movie_name + ' -----'); if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_NEW_VERSION) { v1.movie_version = 'Debug Mode'; } if (v1.movie_version) { com.newgrounds.Logger.logMessage('A new version of this movie is available.', 'Current version:\t' + com.newgrounds.API._movieVersion, 'Newest version:\t' + v1.movie_version, 'Use API.loadOfficialVersion() to link to the latest version.'); com.newgrounds.API._newVersion = true; } else { com.newgrounds.API._newVersion = false; } if (v1.request_portal_url) { com.newgrounds.API._connection.sendSimpleCommand('setPortalID', null, {'portal_url': com.newgrounds.API._connection.__get__hostURL()}); } com.newgrounds.API._connection.sendSimpleCommand('preloadSettings', com.newgrounds.API.onMetadataLoaded, {'publisher_id': com.newgrounds.API._connection.publisherId, 'user_id': com.newgrounds.API._connection.userId}); }; v1.onMetadataLoaded = function (event) { var v11 = event.__get__data(); var v1; var v7; if (!event.__get__success()) { com.newgrounds.Logger.logWarning('Unable to load movie metadata.'); com.newgrounds.API.disconnect(); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error()); return undefined; } var v10 = 0; if (v11.medals) { v10 = v11.medals.length; var v18; if (com.newgrounds.API.__get__hasUserSession()) { v18 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); } else { v18 = com.newgrounds.API.loadLocal('medals_unlocked'); } v1 = 0; while (v1 < v10) { var v4 = v11.medals[v1]; var v15 = v4.medal_unlocked; var v17 = v18 && v18[v4.medal_id]; var v14 = com.newgrounds.API.__get__hasUserSession() ? v15 : v17; if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) { v14 = false; } var v5 = new com.newgrounds.Medal(com.newgrounds.API._connection, v4.medal_id, v4.medal_name, v4.medal_description, Boolean(int(v4.secret)), v14, v4.medal_value, v4.medal_difficulty, v4.medal_icon); v5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked, false, 0, true); v5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed, false, 0, true); com.newgrounds.API._medals[v5.__get__name()] = v5; com.newgrounds.API._medalsArray.push(v5); com.newgrounds.Logger.logMessage(v5); if (com.newgrounds.API.__get__hasUserSession() && v17 && !v15) { com.newgrounds.Logger.logMessage('Server missed the "' + v5.__get__name() + '" unlock. Resending...'); v5.unlock(); } ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' medal' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.score_boards) { v10 = v11.score_boards.length; v1 = 0; while (v1 < v10) { var v16 = v11.score_boards[v1]; var v9 = new com.newgrounds.ScoreBoard(com.newgrounds.API._connection, v16.name, v16.id); com.newgrounds.API._scoreBoards[v9.__get__name()] = v9; com.newgrounds.API._scoreBoardsArray.push(v9); com.newgrounds.Logger.logMessage(v9); ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' scoreboard' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.save_groups) { v10 = v11.save_groups.length; v1 = 0; while (v1 < v10) { var v2 = v11.save_groups[v1]; var v13 = []; if (v2.keys) { v7 = 0; while (v7 < v2.keys.length) { var v6 = v2.keys[v7]; v13.push(new com.newgrounds.SaveKey(v6.name, v6.id, v6.type)); ++v7; } } var v12 = []; if (v2.ratings) { v1 = 0; while (v1 < v2.ratings.length) { var v3 = v2.ratings[v1]; v12.push(new com.newgrounds.SaveRating(v3.name, v3.id, v3.float, v3.min, v3.max)); ++v1; } } var v8 = new com.newgrounds.SaveGroup(com.newgrounds.API._connection, v2.group_name, v2.group_id, v2.group_type, v13, v12); com.newgrounds.API._saveGroups[v8.__get__name()] = v8; com.newgrounds.API._saveGroupsArray.push(v8); com.newgrounds.Logger.logMessage(v8); ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' save group' + ((v10 != 1) ? 's' : '') + ' initialized.'); if (v11.save_file_path) { com.newgrounds.API._saveFilePath = v11.save_file_path + '/'; com.newgrounds.SaveFile._saveFilePath = com.newgrounds.API._saveFilePath; com.newgrounds.Logger.logInternal('Save file path: ' + com.newgrounds.API._saveFilePath); } if (v11.image_file_path) { com.newgrounds.API._imageFilePath = v11.image_file_path + '/'; com.newgrounds.SaveFile._imageFilePath = com.newgrounds.API._imageFilePath; com.newgrounds.Logger.logInternal('Image file path: ' + com.newgrounds.API._imageFilePath); } com.newgrounds.Logger.logMessage('Connection complete!'); com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTED; com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'movieName': com.newgrounds.API._movieName, 'newVersion': com.newgrounds.API._newVersion}); if (com.newgrounds.API._requestedSaveFileId && com.newgrounds.API._requestedSaveGroupId) { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded); com.newgrounds.API.loadSaveFile(com.newgrounds.API._requestedSaveFileId, false); } }; v1.disconnect = function () { if (!com.newgrounds.API._connection.__get__connected()) { com.newgrounds.Logger.logWarning('The Newgrounds API is already disconnected.'); return undefined; } com.newgrounds.API._connection.reset(); for (var v2 in com.newgrounds.API._medals) { var v1 = com.newgrounds.API._medals[v2]; v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked); v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed); } com.newgrounds.API._newVersion = false; com.newgrounds.API._medals = new Object(); com.newgrounds.API._medalsArray = []; com.newgrounds.API._scoreBoards = new Object(); com.newgrounds.API._scoreBoardsArray = []; com.newgrounds.API._saveGroups = new Object(); com.newgrounds.API._saveGroupsArray = []; com.newgrounds.API._sharedObjects = new Object(); com.newgrounds.API._imageFilePath = null; com.newgrounds.API._saveFilePath = null; com.newgrounds.Logger.logMessage('Disconnected from the Newgrounds API.'); }; v1.loadNewgrounds = function () { com.newgrounds.API._connection.loadInBrowser('loadNewgrounds'); }; v1.loadOfficialVersion = function () { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadOfficialVersion', false); } }; v1.loadMySite = function () { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadMySite'); } }; v1.loadCustomLink = function (linkName) { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadCustomLink', true, {'link': linkName}); } }; v1.getMedal = function (medalName) { return com.newgrounds.API._medals[medalName]; }; v1.unlockMedal = function (medalName) { if (!com.newgrounds.API.assertConnected()) { return undefined; } var v1 = com.newgrounds.API._medals[medalName]; if (!v1) { com.newgrounds.Logger.logError('No medal named "' + medalName + '" w.'); return undefined; } v1.unlock(); }; v1.onMedalUnlocked = function (event) { if (event.__get__success()) { var v2 = com.newgrounds.Medal(event.__get__data()); var v1; if (com.newgrounds.API.__get__hasUserSession()) { v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); if (!v1) { v1 = new Object(); } v1[v2.__get__id()] = true; com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1); } else { v1 = com.newgrounds.API.loadLocal('medals_unlocked'); if (!v1) { v1 = new Object(); } v1[(com.newgrounds.Medal(event.__get__data())).__get__id()] = true; com.newgrounds.API.saveLocal('medals_unlocked', v1); com.newgrounds.Logger.logMessage('User instanceof not logged in. Medal "' + v2.__get__name() + '" unlocked locally.'); } } }; v1.onMedalUnlockConfirmed = function (event) { if (com.newgrounds.API.__get__hasUserSession()) { var v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); if (!v1) { v1 = new Object(); } else { delete v1[(com.newgrounds.Medal(event.__get__data())).__get__id()]; } com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1); } }; v1.clearLocalMedals = function () { for (var v2 in com.newgrounds.API._medals) { var v1 = com.newgrounds.API._medals[v2]; v1.setUnlocked(false); } if (!com.newgrounds.API.__get__hasUserSession()) { com.newgrounds.API.saveLocal('medals_unlocked', new Object()); } }; v1.getScoreBoard = function (scoreBoardName) { if (!com.newgrounds.API.assertConnected()) { return null; } return com.newgrounds.API._scoreBoards[scoreBoardName]; }; v1.loadScores = function (scoreBoardName, period, firstResult, numResults, tag) { if (period == undefined) { period = 'All-Time'; } if (firstResult == undefined) { firstResult = 1; } if (numResults == undefined) { numResults = 10; } if (tag == undefined) { tag = null; } if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API._scoreBoards[scoreBoardName]; if (!v1) { com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return null; } v1.__set__period(period); v1.__set__firstResult(firstResult); v1.__set__numResults(numResults); v1.__set__tag(tag); v1.loadScores(); return v1; }; v1.postScore = function (scoreBoardName, numericScore, tag) { if (tag == undefined) { tag = null; } if (!com.newgrounds.API.assertConnected()) { return undefined; } if (!com.newgrounds.API.__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to post a score.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN); return undefined; } var v1 = com.newgrounds.API._scoreBoards[scoreBoardName]; if (!v1) { com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } v1.postScore(numericScore, tag); }; v1.getSaveGroup = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } return com.newgrounds.API._saveGroups[groupName]; }; v1.getSaveGroupById = function (id) { for (var v3 in com.newgrounds.API._saveGroups) { var v1 = com.newgrounds.API._saveGroups[v3]; if (v1.__get__id() == id) { return v1; } } return null; }; v1.createSaveFile = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API.getSaveGroup(groupName); if (!v1) { com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.'); return null; } return new com.newgrounds.SaveFile(v1); }; v1.loadSaveFile = function (saveId, loadContents) { if (loadContents == undefined) { loadContents = true; } com.newgrounds.API._connection.sendSimpleCommand('loadSaveFile', com.newgrounds.API.onFileLoaded, {'save_id': saveId, 'get_contents': loadContents}); }; v1.onFileLoaded = function (event) { var v2; if (event.__get__success()) { v2 = com.newgrounds.SaveFile.fromObject(com.newgrounds.API.getSaveGroupById((event.__get__data()).group_id), (event.__get__data()).file); if ((event.__get__data()).get_contents) { v2.load(); } else { com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, v2); } } else { com.newgrounds.Logger.logError('Unable to load file:', event.__get__error()); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error()); } }; v1.createSaveQuery = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API.getSaveGroup(groupName); if (!v1) { com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.'); return null; } var v2 = new com.newgrounds.SaveQuery(v1); return v2; }; v1.createSaveQueryByDate = function (groupName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); if (!v1) { return null; } v1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending); return v1; }; v1.createSaveQueryByName = function (groupName, filename, exactMatch, sortDescending) { if (exactMatch == undefined) { exactMatch = false; } if (sortDescending == undefined) { sortDescending = false; } var v1 = com.newgrounds.API.createSaveQuery(groupName); if (!exactMatch) { v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_CONTAINS, filename); return v1; } v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_EQUAL, filename); return v1; }; v1.createSaveQueryByRating = function (groupName, ratingName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); v1.sortOn(ratingName, sortDescending); return v1; }; v1.onRequestedFileLoaded = function (event) { com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded); if (event.__get__success()) { var v1 = event.__get__data(); if (v1) { com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, v1); } } }; v1.addEventListener = function (eventType, listener, priority, useWeakReference) { if (priority == undefined) { priority = 0; } if (useWeakReference == undefined) { useWeakReference = true; } com.newgrounds.API._dispatcher.addEventListener(eventType, listener, false, priority, useWeakReference); }; v1.removeEventListener = function (eventType, listener) { com.newgrounds.API._dispatcher.removeEventListener(eventType, listener); }; v1.dispatchEvent = function (event, data, error) { if (data == undefined) { data = null; } if (error == undefined) { error = null; } com.newgrounds.API._dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error)); }; v1.saveLocal = function (saveId, saveData) { try { var v3; var v2 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey); if (!com.newgrounds.API._sharedObjects[saveId]) { com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v2); } v3 = com.newgrounds.API._sharedObjects[saveId]; v3.data.data = com.newgrounds.API.encodeData(saveData); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Unable to save local data.', error); return false; return true; } throw v0; } return true; }; v1.loadLocal = function (saveId) { try { var v1; var v3 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey); if (!com.newgrounds.API._sharedObjects[saveId]) { com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v3); } v1 = com.newgrounds.API._sharedObjects[saveId]; if (v1 && v1.data && v1.data.data) { return com.newgrounds.API.decodeData(v1.data.data); } return null; } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Unable to load local data.', error); return null; } throw v0; } return null; }; v1.logCustomEvent = function (eventName) { if (com.newgrounds.API.assertConnected()) { com.newgrounds.Logger.logMessage('Logged event: ' + eventName); com.newgrounds.API._connection.sendSimpleCommand('logCustomEvent', null, {'event': eventName}); } }; v1.encodeData = function (data) { if (!com.newgrounds.API._connection.assertInitialized()) { return null; } return com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), com.newgrounds.API._connection.encryptionKey); }; v1.decodeData = function (data) { if (!com.newgrounds.API._connection.assertInitialized()) { return null; } try { return com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, com.newgrounds.API._connection.encryptionKey)); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); return null; } throw v0; } return null; }; v1.stopPendingCommands = function () { com.newgrounds.APICommand.stopPendingCommands(); com.newgrounds.Logger.logMessage('Pending commands stopped.'); }; v1.trimWhitespace = function (string) { if (!string) { return null; } var v3 = 0; while (string.charAt(v3) == ' ') { ++v3; } var v1 = string.length - 1; for (;;) { if (!(string.charAt(v1) == ' ' && v1 >= 0)) break; --v1; } return string.slice(v3, v1 + 1); }; v1.VERSION = '3.1.0 AS2'; v1.RELEASE_MODE = 'releaseMode'; v1.DEBUG_MODE_LOGGED_IN = 'debugModeLoggedIn'; v1.DEBUG_MODE_LOGGED_OUT = 'debugModeLoggedOut'; v1.DEBUG_MODE_NEW_VERSION = 'debugModeNewVersion'; v1.DEBUG_MODE_HOST_BLOCKED = 'debugModeHostBlocked'; v1.TEST_AD_FEED_URL = 'http://www.ngads.com/adtest.php'; v1._dispatcher = new com.newgrounds.APIEventDispatcher(); v1._connection = new com.newgrounds.APIConnection(); v1._debugMode = com.newgrounds.API.DEBUG_MODE_LOGGED_IN; v1._adsApproved = false; v1._medals = new Object(); v1._medalsArray = []; v1._scoreBoards = new Object(); v1._scoreBoardsArray = []; v1._saveGroups = new Object(); v1._saveGroupsArray = []; v1._sharedObjects = new Object(); v1.addProperty('adFeedURL', v1.__get__adFeedURL, function () {}); v1.addProperty('adsApproved', v1.__get__adsApproved, function () {}); v1.addProperty('apiId', v1.__get__apiId, function () {}); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('debugMode', v1.__get__debugMode, v1.__set__debugMode); v1.addProperty('hasUserSession', v1.__get__hasUserSession, function () {}); v1.addProperty('hostDomain', v1.__get__hostDomain, function () {}); v1.addProperty('hostURL', v1.__get__hostURL, function () {}); v1.addProperty('isNetworkHost', v1.__get__isNetworkHost, function () {}); v1.addProperty('isNewgrounds', v1.__get__isNewgrounds, function () {}); v1.addProperty('medals', v1.__get__medals, function () {}); v1.addProperty('publisherId', v1.__get__publisherId, function () {}); v1.addProperty('saveGroups', v1.__get__saveGroups, function () {}); v1.addProperty('scoreBoards', v1.__get__scoreBoards, function () {}); v1.addProperty('sessionId', v1.__get__sessionId, function () {}); v1.addProperty('userId', v1.__get__userId, function () {}); v1.addProperty('username', v1.__get__username, function () {}); ASSetPropFlags(com.newgrounds.API.prototype, null, 1); } #endinitclip } movieClip 153 __Packages.com.newgrounds.encoders.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.ImageScanner) { var v1 = function (hashLength, charsPerPixel) { if (hashLength) { this._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH.substr(0, hashLength); } this._baseN = new com.newgrounds.encoders.BaseN(this._hash); if (charsPerPixel) { this._charsPerPixel = charsPerPixel; } this.__set__encodeAlpha(false); }; com.newgrounds.encoders.ImageScanner = v1; var v2 = v1.prototype; v2.__get__encodeAlpha = function () { return this._encodeAlpha; }; v2.__set__encodeAlpha = function (v) { this._encodeAlpha = v; this._maxPerChannel = int(Math.pow(this._hash.length, this._charsPerPixel / (this._encodeAlpha ? 4 : 3))); if (this._maxPerChannel > 256) { this._maxPerChannel = 256; } return this.__get__encodeAlpha(); }; v2.encode = function (source, callbackFunction, callbackObject) { var v4 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'x': 0, 'y': 0, 'output': null}; var v2 = source.width.toString(); var v3 = source.height.toString(); while (v2.length < 3) { v2 = '0' + v2; } while (v3.length < 3) { v3 = '0' + v3; } v4.output = v2 + v3; var v6 = setInterval(this, 'doEncode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v4); v4.interval = v6; }; v2.decode = function (source, callbackFunction, callbackObject) { var v2 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'i': 6, 'x': 0, 'y': 0, 'output': null}; var v5 = int(source.substr(0, 3)); var v6 = int(source.substr(3, 3)); v2.output = new flash.display.BitmapData(v5, v6, this._encodeAlpha); var v4 = setInterval(this, 'doDecode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v2); v2.interval = v4; }; v2.doEncode = function (state) { var v3 = getTimer(); for (;;) { if (!(state.y < state.source.height && getTimer() - v3 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break; state.output += this.encodePixel(state.source.getPixel32(state.x, state.y)); ++state.x; if (state.x == state.source.width) { state.x = 0; ++state.y; } } if (state.y == state.source.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } }; v2.doDecode = function (state) { var v4 = getTimer(); for (;;) { if (!(state.y < state.output.height && getTimer() - v4 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break; var v3 = this.decodePixel(state.source.substr(state.i, this._charsPerPixel)); state.output.setPixel32(state.x, state.y, v3); state.i += this._charsPerPixel; ++state.x; if (state.x == state.output.width) { state.x = 0; ++state.y; } } if (state.y == state.output.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } }; v2.encodePixel = function (pixel) { var v3 = pixel >> 24 & 255; var v4 = pixel >> 16 & 255; var v5 = pixel >> 8 & 255; var v2 = pixel & 255; v3 = int((v3 / 256) * this._maxPerChannel); v4 = int((v4 / 256) * this._maxPerChannel); v5 = int((v5 / 256) * this._maxPerChannel); v2 = int((v2 / 256) * this._maxPerChannel); var v7 = v4 * this._maxPerChannel * this._maxPerChannel + v5 * this._maxPerChannel + v2; if (this._encodeAlpha) { v7 += v3 * this._maxPerChannel * this._maxPerChannel * this._maxPerChannel; } return this._baseN.encodeUint(v7, this._charsPerPixel); }; v2.decodePixel = function (encodedPixel) { var v3 = 255; var v5; var v6; var v4; var v7 = 0; var v2 = this._baseN.decodeUint(encodedPixel); v4 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); v6 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); v5 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); if (this._encodeAlpha) { v3 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); } return v3 << 24 | v5 << 16 | v6 << 8 | v4; }; v1.DEFAULT_HASH = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&'; v2._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH; v2._charsPerPixel = 2; v1.WORK_INTERVAL = 33.33333333333334; v2.addProperty('encodeAlpha', v2.__get__encodeAlpha, v2.__set__encodeAlpha); ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 154 __Packages.com.newgrounds.SaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveFile) { var v1 = function (group) { super(); this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.SaveFile.DEFAULT_ICON, null); this._group = group; this._keys = {}; this._ratings = {}; }; com.newgrounds.SaveFile = v1; com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v1.__get__currentFile = function () { return com.newgrounds.SaveFile._currentFile; }; v1.fromObject = function (group, fileData) { var v4 = new com.newgrounds.SaveFile(group); v4._name = fileData.filename; v4._description = fileData.description; v4._id = fileData.save_id; v4._authorId = fileData.user_id; v4._authorName = fileData.user_name; v4._createdDate = fileData.created; v4._modifiedDate = fileData.last_update; v4._views = fileData.views; if (fileData.thumb && fileData.thumb != '') { v4._iconLoader.__set__url(com.newgrounds.SaveFile._imageFilePath + fileData.thumb); } v4._dataURL = com.newgrounds.SaveFile._saveFilePath + fileData.file; v4._fileSize = fileData.file_size; v4._approved = fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; v4._readOnly = false; v4._public = fileData.status != com.newgrounds.SaveFile.STATUS_PRIVATE && fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; for (var v8 in fileData.keys) { var v6 = fileData.keys[v8]; var v2 = group.getKeyById(v6.id); if (v2) { v4._keys[v2.__get__name()] = v2.validateValue(v6.value); } } for (var v9 in fileData.ratings) { var v5 = fileData.ratings[v9]; var v3 = group.getRatingById(v5.id); if (v3) { v4._ratings[v3.__get__name()] = v3.validateValue(v5.score); } } return v4; }; v2.__get__group = function () { return this._group; }; v2.__get__name = function () { return this._name; }; v2.__set__name = function (val) { this._name = val; return this.__get__name(); }; v2.__get__description = function () { return this._description; }; v2.__set__description = function (val) { this._description = val; return this.__get__description(); }; v2.__get__id = function () { return this._id; }; v2.__get__data = function () { return this._data; }; v2.__set__data = function (val) { this._data = val; return this.__get__data(); }; v2.__get__bytesLoaded = function () { if (this._data) { return this.__get__bytesTotal(); } else { if (!this._dataLoader) { return 0; } else { return this._dataLoader.getBytesLoaded(); } } }; v2.__get__bytesTotal = function () { return this._fileSize; }; v2.__get__readOnly = function () { return this._readOnly; }; v2.__get__draft = function () { return this._draft; }; v2.__set__draft = function (v) { this._draft = v; return this.__get__draft(); }; v2.__get__authorId = function () { return this._authorId; }; v2.__get__authorName = function () { return this._authorName; }; v2.__get__keys = function () { return this._keys; }; v2.__get__ratings = function () { return this._ratings; }; v2.__get__views = function () { return this._views; }; v2.__get__createdDate = function () { return this._createdDate; }; v2.__get__updatedDate = function () { return this._modifiedDate; }; v2.toString = function () { return 'Save File: ' + this._name; }; v2.__get__icon = function () { return this._iconLoader.__get__bitmapData(); }; v2.__set__icon = function (v) { this.createIcon(v); return this.__get__icon(); }; v2.__get__iconLoaded = function () { return this._iconLoader.__get__loaded(); }; v2.createIcon = function (source) { var v9 = new flash.display.BitmapData(com.newgrounds.SaveFile.ICON_WIDTH, com.newgrounds.SaveFile.ICON_HEIGHT, false, 0); var v6; var v5; var v10 = 0; var v8 = 0; if (source instanceof flash.display.BitmapData) { v6 = source.width; v5 = source.height; } else { if (source instanceof MovieClip) { v6 = source._width; v5 = source._height; var v7 = (MovieClip(source)).getBounds(source); v10 = v7.xMin; v8 = v7.yMin; } } var v3 = new flash.geom.Matrix(); var v4; v4 = Math.min(com.newgrounds.SaveFile.ICON_WIDTH / v6, com.newgrounds.SaveFile.ICON_HEIGHT / v5); v3.translate(-v10, -v8); v3.scale(v4, v4); v3.translate((com.newgrounds.SaveFile.ICON_WIDTH - v6 * v4) / 2, (com.newgrounds.SaveFile.ICON_HEIGHT - v5 * v4) / 2); v9.draw(source, v3); this._iconLoader.__set__bitmapData(v9); }; v2.attachIcon = function (parent) { if (this._iconLoader) { return this._iconLoader.attachBitmap(parent); } com.newgrounds.Logger.logError('No icon available for this sumbission.'); return null; }; v2.save = function () { if (!(this._group.__get__connection()).__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to save a file.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN)); return undefined; } ++com.newgrounds.BitmapLoader._cacheSeed; com.newgrounds.SaveFile._currentFile = this; if (this.__get__iconLoaded()) { com.newgrounds.SaveFile.ICON_IMAGE_SCANNER.encode(this.__get__icon(), this.onIconEncoded, this); } else { this.encodeData(true); } }; v2.onIconEncoded = function (encodedIcon) { this._encodedIcon = encodedIcon; this.encodeData(true); }; v2.doSave = function () { var v4 = new com.newgrounds.APICommand('saveFile'); (v4.__get__secureParameters()).group = this._group.id; (v4.__get__secureParameters()).user_name = (this._group.__get__connection()).username; (v4.__get__secureParameters()).filename = this._name; (v4.__get__secureParameters()).description = this._description; if (this._draft) { (v4.__get__secureParameters()).draft = true; } if (this._id && !this._readOnly) { (v4.__get__secureParameters()).overwrite = 1; (v4.__get__secureParameters()).save_id = this._id; } var v8 = []; for (var v9 in this._keys) { var v2 = this._group.getKey(v9); if (v2) { v8.push({'id': v2.__get__id(), 'value': v2.validateValue(this._keys[v9])}); } else { com.newgrounds.Logger.logError('No key named "' + v9 + '" in save group "' + this._group.__get__name() + '".'); } } (v4.__get__secureParameters()).keys = v8; var v7 = []; for (var v10 in this._ratings) { var v3 = this._group.getRating(v10); if (v3) { v7.push({'id': v3.__get__id(), 'value': v3.validateValue(this._ratings[v10])}); } else { com.newgrounds.Logger.logError('No rating named "' + v10 + '" in save group "' + this._group.__get__name() + '".'); } } (v4.__get__secureParameters()).ratings = v7; if (typeof this._encodedData == 'string') { v4.addFile('file', this._encodedData, 'file'); } else { v4.addFile('file', com.newgrounds.encoders.json.JSON.encode(this._encodedData), 'file'); } if (this.__get__iconLoaded()) { v4.addFile('thumbnail', this._encodedIcon, 'thumbnail'); } v4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {'target': this, 'func': this.onSaveComplete}); (this._group.__get__connection()).sendCommand(v4); }; v2.encodeData = function (encode) { this._encoderQueue = []; this._encoding = encode; if (encode) { this._encodedData = this._data; this.preEncodeObject(this, '_encodedData'); } else { this.preEncodeObject(this, '_data'); } this.encodeObject(); }; v2.preEncodeObject = function (parent, property) { var v3 = parent[property]; var v5; try { if (this._encoding) { v5 = v3 instanceof flash.display.BitmapData; } else { v5 = v3.type == '__bitmap'; } } var v2 = v3; var v8; if (v5) { this._encoderQueue.push({'parent': parent, 'property': property}); } else { if (typeof v3 == 'object' && !v8) { if (this._encoding) { if (v3 instanceof Array) { v2 = []; } else { v2 = {}; } for (var v4 in v3) { v2[v4] = v3[v4]; } parent[property] = v2; } for (v4 in v2) { this.preEncodeObject(v2, v4); } } } }; v2.encodeObject = function () { if (!this._encoderQueue.length) { if (this._encoding) { this.doSave(); } else { this._dataLoaded = true; this.checkLoadComplete(); } return undefined; } var v6 = this._encoderQueue.pop(); var v4 = v6.parent; var v3 = v6.property; var v2 = v4[v3]; var v5; if (this._encoding) { v5 = {'type': '__bitmap', 'width': v2.width, 'height': v2.height, 'transparent': v2.transparent}; v4[v3] = v5; this._encodingParent = v5; this._encodingProperty = 'data'; com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent); com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(v2), this.encodeBitmapComplete, this); } else { this._encodingParent = v4; this._encodingProperty = v3; com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent); com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.decode(String(v2.data), this.encodeBitmapComplete, this); } }; v2.encodeBitmapComplete = function (data) { this._encodingParent[this._encodingProperty] = data; this.encodeObject(); }; v2.load = function () { com.newgrounds.SaveFile._currentFile = this; this._dataLoaded = false; this._data = null; if (!this.__get__iconLoaded()) { this._iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {'target': this, 'func': this.onIconLoaded}); this._iconLoader.load(); } this._dataLoader = new LoadVars(); var file = this; this._dataLoader.onData = function (data) { file.onDataLoaded(data); }; this._dataLoader.load(this._dataURL); }; v2.onIconLoaded = function (event) { if (!event.__get__success() && this._iconLoader.__get__url()) { com.newgrounds.Logger.logWarning('Unable to load the icon for this save file.'); } this._iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, this.onIconLoaded); this.checkLoadComplete(); }; v2.checkLoadComplete = function () { if (this._dataLoaded && this.__get__iconLoaded()) { com.newgrounds.Logger.logMessage('Data loaded.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this)); } }; v2.onDataLoaded = function (data) { try { if (data) { if (data.charAt(0) == '{') { this._data = com.newgrounds.encoders.json.JSON.decode(String(data)); } else { this._data = String(data); } this.encodeData(false); } } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Error while loading data:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); } else { throw v0; } } }; v2.onDataError = function (error) { com.newgrounds.Logger.logError('Unable to load data:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); }; v2.onSaveComplete = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('File "' + this._name + '" saved!'); if (event.__get__data()) { this._id = (event.__get__data()).save_id; this._dataURL = unescape((event.__get__data()).file_url); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this)); } else { com.newgrounds.Logger.logError('Error saving file "' + this._name + '":', event.__get__error()); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error())); } }; v2.sendVote = function (ratingName, vote) { var v2 = this._group.getRating(ratingName); if (!v2) { com.newgrounds.Logger.logError('No save rating named "' + ratingName + '" exists for this save group.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } vote = v2.validateValue(vote); if (isNaN(vote)) { com.newgrounds.Logger.logError('Invalid vote (' + vote + '). ' + ratingName + ' allows a range of ' + v2.__get__minimum() + '-' + v2.__get__maximum() + '.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } com.newgrounds.Logger.logMessage('Voting ' + vote + ' for ' + ratingName + ' on ' + this._name + '...'); (this._group.__get__connection()).sendSimpleCommand('rateSaveFile', {'target': this, 'func': this.onVoteComplete}, null, {'group': this._group.__get__id(), 'save_id': this._id, 'rating_id': v2.__get__id(), 'vote': vote}); }; v2.onVoteComplete = function (event) { var v2 = event.__get__error(); if ((event.__get__data()).already_voted) { com.newgrounds.Logger.logError('Vote failed. You\'ve already voted on this rating today.'); v2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED; } if (v2 == com.newgrounds.APIEvent.ERROR_NONE) { var v3 = this._group.getRatingById((event.__get__data()).rating_id); if (v3) { this._ratings[v3.__get__name()] = v3.validateValue((event.__get__data()).score); } com.newgrounds.Logger.logMessage('Vote complete!'); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, v2)); }; v2.clone = function () { var v3 = new com.newgrounds.SaveFile(this._group); v3._data = this._data; v3._description = this._description; v3._draft = this._draft; v3._fileSize = this._fileSize; v3._iconLoader.__set__bitmapData(this._iconLoader.bitmapData); var v2; for (v2 in this._keys) { v3._keys[v2] = this._keys[v2]; } for (v2 in this._ratings) { v3._ratings[v2] = this._ratings[v2]; } v3._name = this._name; return v3; }; v1.ICON_WIDTH = 90; v1.ICON_HEIGHT = 90; v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultSaveIcon'); v1.STATUS_PRIVATE = 0; v1.STATUS_SHARED = 1; v1.STATUS_UNAPPROVED = 2; v1.STATUS_APPROVED = 3; v1._imageFilePath = ''; v1._saveFilePath = ''; v1.ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(); v1.DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6); v2.addProperty('authorId', v2.__get__authorId, function () {}); v2.addProperty('authorName', v2.__get__authorName, function () {}); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('createdDate', v2.__get__createdDate, function () {}); v1.addProperty('currentFile', v1.__get__currentFile, function () {}); v2.addProperty('data', v2.__get__data, v2.__set__data); v2.addProperty('description', v2.__get__description, v2.__set__description); v2.addProperty('draft', v2.__get__draft, v2.__set__draft); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('iconLoaded', v2.__get__iconLoaded, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('name', v2.__get__name, v2.__set__name); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('readOnly', v2.__get__readOnly, function () {}); v2.addProperty('updatedDate', v2.__get__updatedDate, function () {}); v2.addProperty('views', v2.__get__views, function () {}); ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1); } #endinitclip } movieClip 152 __Packages.com.newgrounds.SaveGroup { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveGroup) { var v1 = function (connection, name, id, type, keys, ratings) { this._connection = connection; this._id = id; this._name = name; this._type = type; this._keysArray = keys; this._ratingsArray = ratings; this._keys = new Object(); this._ratings = new Object(); var v11; for (var v7 in keys) { var v2 = keys[v7]; this._keys[v2.__get__name()] = v2; } for (var v6 in ratings) { var v3 = ratings[v6]; this._ratings[v3.__get__name()] = v3; } }; com.newgrounds.SaveGroup = v1; var v2 = v1.prototype; v2.__get__connection = function () { return this._connection; }; v2.__get__name = function () { return this._name; }; v2.__get__type = function () { return this._type; }; v2.__get__id = function () { return this._id; }; v2.__get__keys = function () { return this._keysArray; }; v2.__get__ratings = function () { return this._ratingsArray; }; v2.getKey = function (name) { return this._keys[name]; }; v2.getRating = function (name) { return this._ratings[name]; }; v2.getKeyById = function (id) { for (var v4 in this._keys) { var v2 = this._keys[v4]; if (v2.__get__id() == id) { return v2; } } return null; }; v2.getRatingById = function (id) { for (var v4 in this._ratings) { var v2 = this._ratings[v4]; if (v2.__get__id() == id) { return v2; } } return null; }; v2.toString = function () { return 'SaveGroup: ' + this.__get__name() + ' Keys: ' + this._keysArray + ' Ratings: ' + this._ratingsArray; }; v1.TYPE_SYSTEM = 0; v1.TYPE_PRIVATE = 1; v1.TYPE_PUBLIC = 2; v1.TYPE_MODERATED = 3; v2.addProperty('connection', v2.__get__connection, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1); } #endinitclip } movieClip 150 __Packages.com.newgrounds.SaveKey { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveKey) { var v1 = function (name, id, type) { this._name = name; this._id = id; this._type = type; }; com.newgrounds.SaveKey = v1; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__id = function () { return this._id; }; v2.__get__type = function () { return this._type; }; v2.validateValue = function (value) { switch (this._type) { return null; case com.newgrounds.SaveKey.TYPE_INTEGER: value = Number(value); if (!isNaN(value)) { var v3 = int(value); if (v3 != value) { com.newgrounds.Logger.logWarning('Float value ' + value + ' given for integer key "' + this._name + '". Clamping to ' + v3 + '.'); } return v3; } return null; case com.newgrounds.SaveKey.TYPE_FLOAT: value = Number(value); if (!isNaN(value)) { return isNaN(Number(value)); } return null; case com.newgrounds.SaveKey.TYPE_BOOLEAN: return Boolean(value); return null; case com.newgrounds.SaveKey.TYPE_STRING: return value ? value.toString() : ''; return null; } return null; }; v2.toString = function () { return this._name; }; v1.TYPE_FLOAT = 1; v1.TYPE_INTEGER = 2; v1.TYPE_STRING = 3; v1.TYPE_BOOLEAN = 4; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveKey.prototype, null, 1); } #endinitclip } movieClip 151 __Packages.com.newgrounds.SaveRating { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveRating) { var v1 = function (name, id, isFloat, minimum, maximum) { this._name = name; this._id = id; this._isFloat = isFloat; this._minimum = minimum; this._maximum = maximum; }; com.newgrounds.SaveRating = v1; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__id = function () { return this._id; }; v2.__get__isFloat = function () { return this._isFloat; }; v2.__get__minimum = function () { return this._minimum; }; v2.__get__maximum = function () { return this._maximum; }; v2.validateValue = function (value) { var v2 = Number(value); if (isNaN(v2)) { com.newgrounds.Logger.logError('Invalid value for rating "' + this._name + '".'); return NaN; } if (v2 < this._minimum) { com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._minimum + '.'); return this._minimum; } if (v2 > this._maximum) { com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._maximum + '.'); return this._maximum; } if (!this.__get__isFloat()) { var v3 = int(v2); if (v3 != v2) { com.newgrounds.Logger.logWarning('Float value ' + v2 + ' given for integer rating "' + this._name + '". Clamping to ' + v3 + '.'); } return v3; } return v2; }; v2.toString = function () { return this._name; }; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('isFloat', v2.__get__isFloat, function () {}); v2.addProperty('maximum', v2.__get__maximum, function () {}); v2.addProperty('minimum', v2.__get__minimum, function () {}); v2.addProperty('name', v2.__get__name, function () {}); ASSetPropFlags(com.newgrounds.SaveRating.prototype, null, 1); } #endinitclip } movieClip 146 __Packages.com.newgrounds.BitmapLoader { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.BitmapLoader) { var v1 = function (defaultBitmap, url) { super(); this._bitmapData = defaultBitmap; this._url = url; }; com.newgrounds.BitmapLoader = v1; com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__url = function () { return this._url; }; v2.__set__url = function (v) { this._loaded = false; this._url = v; return this.__get__url(); }; v2.__get__bitmapData = function () { return this._bitmapData; }; v2.__set__bitmapData = function (v) { this._bitmapData = v; this._loaded = true; return this.__get__bitmapData(); }; v2.__get__loaded = function () { return this._loaded; }; v2.disposeLoader = function () { if (this._loader) { if (this._loaderClip._parent == _root) { this._loader.unloadClip(this._loaderClip.bitmap); this._loaderClip.removeMovieClip(); } this._loader = null; this._loaderClip = null; } }; v2.load = function () { if (!this._url || this._url == '') { this.onLoadComplete(); return undefined; } this._loaded = false; if (this._bitmapData) { this._bitmapData.dispose(); this._bitmapData = null; } this.disposeLoader(); this.attachBitmap(null); }; v2.attachBitmap = function (parent) { if (!parent) { parent = _root; } var v5 = parent.getNextHighestDepth(); var v3 = parent.createEmptyMovieClip('__bitmap' + v5, v5); if (!this._loaded && this._url && this._url != '') { v3.createEmptyMovieClip('bitmap', 0); this._loader = new MovieClipLoader(); this._loaderClip = v3; if (parent == _root) { this._loaderClip._visible = false; } var thisObj = this; this._loaderClip.onEnterFrame = function () { thisObj.pollLoad(); }; this._loader.addListener({'onLoadError': function () { thisObj.onLoadComplete(); }}); this._loader.loadClip(this._url, v3.bitmap); return v3; } v3.attachBitmap(this._bitmapData, 0); return v3; }; v2.pollLoad = function () { if (this._loaderClip._width) { this.onLoadComplete(); } }; v2.onLoadComplete = function () { var v2; if (this._loader && this._loaderClip && this._loaderClip._width) { try { this._loaderClip.onEnterFrame = null; v2 = new flash.display.BitmapData(this._loaderClip._width, this._loaderClip._height, true, 0); v2.draw(this._loaderClip); this._bitmapData = v2; this._loaded = true; } catch (error) { if (v2) { v2.dispose(); } } } this.disposeLoader(); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, this._loaded ? null : com.newgrounds.APIEvent.ERROR_BAD_FILE)); }; v1._cacheSeed = 0; v2._loaded = true; v2.addProperty('bitmapData', v2.__get__bitmapData, v2.__set__bitmapData); v2.addProperty('loaded', v2.__get__loaded, function () {}); v2.addProperty('url', v2.__get__url, v2.__set__url); ASSetPropFlags(com.newgrounds.BitmapLoader.prototype, null, 1); } #endinitclip } movieClip 155 __Packages.com.newgrounds.SaveQuery { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveQuery) { var v1 = function (group) { super(); this._group = group; this._connection = group.connection; this.reset(); }; com.newgrounds.SaveQuery = v1; com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__group = function () { return this._group; }; v2.__get__resultsPerPage = function () { return this._resultsPerPage; }; v2.__set__resultsPerPage = function (val) { this._resultsPerPage = Math.min(Math.max(val, 1), 100); return this.__get__resultsPerPage(); }; v2.__get__page = function () { return this._page; }; v2.__set__page = function (val) { this._page = Math.max(val, 1); return this.__get__page(); }; v2.prevPage = function () { this.__set__page(this.__get__page() - 1); }; v2.nextPage = function () { this.__set__page(this.__get__page() + 1); }; v2.__get__isRandomized = function () { return this._isRandomized; }; v2.__set__isRandomized = function (val) { this._isRandomized = val; return this.__get__isRandomized(); }; v2.__get__files = function () { return this._files; }; v2.reset = function () { this._page = 1; this._resultsPerPage = 10; this._isRandomized = false; this._lookupKeys = []; this._lookupRatings = []; this._fileConditions = []; this._keyConditions = []; this._ratingConditions = []; this._sortFields = []; this._files = []; this.includeAllFields(); }; v2.clone = function () { var v2 = new com.newgrounds.SaveQuery(this._group); v2._page = this._page; v2._resultsPerPage = this._resultsPerPage; v2._isRandomized = this._isRandomized; v2._lookupKeys = this._lookupKeys.concat(); v2._lookupRatings = this._lookupRatings.concat(); v2._fileConditions = this._fileConditions.concat(); v2._keyConditions = this._keyConditions.concat(); v2._ratingConditions = this._ratingConditions.concat(); return v2; }; v2.includeAllFields = function () { for (var v5 in this._group.__get__keys()) { var v2 = (this._group.__get__keys())[v5]; this._lookupKeys.push(v2.__get__id()); } for (var v4 in this._group.__get__ratings()) { var v3 = (this._group.__get__ratings())[v4]; this._lookupRatings.push(v3.__get__id()); } }; v2.addCondition = function (field, operator, value) { var v2; v2 = 0; while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) { if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) { break; } ++v2; } if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) { v2 = -1; } if (v2 >= 0) { this._fileConditions.push({'field': v2, 'operator': operator, 'value': value}); } else { var v3 = this._group.getKey(field); if (v3) { value = v3.validateValue(value); this._keyConditions.push({'key_id': v3.__get__id(), 'operator': operator, 'value': value}); return undefined; } var v4 = field.split('.'); var v6 = this._group.getRating(v4[0]); if (v6) { value = v6.validateValue(value); this._ratingConditions.push({'rating_id': v6.__get__id(), 'operator': operator, 'value': value, 'column': v4[1] ? v4[1] : 'score'}); return undefined; } com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".'); } }; v2.sortOn = function (field, sortDescending) { if (sortDescending == undefined) { sortDescending = false; } var v2; v2 = 0; while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) { if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) { break; } ++v2; } if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) { v2 = -1; } if (v2 >= 0) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_FILES, 'field': v2, 'desc': sortDescending}); } else { var v5 = this._group.getKey(field); if (v5) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_KEYS, 'field': v5.__get__id(), 'desc': sortDescending}); return undefined; } var v3 = field.split('.'); var v6 = this._group.getRating(v3[0]); if (v6) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_RATINGS, 'field': v6.__get__id(), 'desc': sortDescending, 'extra': v3[1] ? v3[1] : 'score'}); return undefined; } com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".'); } }; v2.execute = function () { var v5 = {}; v5.page = this._page; v5.num_results = this._resultsPerPage; if (this._isRandomized) { v5.randomize = 1; } if (this._lookupKeys && this._lookupKeys.length) { v5.lookup_keys = this._lookupKeys; } if (this._lookupRatings && this._lookupRatings.length) { v5.lookup_ratings = this._lookupRatings; } if (this._fileConditions && this._fileConditions.length) { v5.file_conditions = this._fileConditions; } if (this._keyConditions && this._keyConditions.length) { v5.key_conditions = this._keyConditions; } if (this._ratingConditions && this._ratingConditions.length) { v5.rating_conditions = this._ratingConditions; } if (this._sortFields && this._sortFields.length) { v5.sort_conditions = this._sortFields; } this._connection.sendSimpleCommand('lookupSaveFiles', {'target': this, 'func': this.onQueryComplete}, {'publisher_id': this._connection.publisherId, 'group_id': this._group.__get__id(), 'query': v5}); }; v2.onQueryComplete = function (event) { if (event.__get__success()) { var v4 = event.__get__data(); this._files = []; if (v4.files) { var v2 = 0; while (v2 < v4.files.length) { var v3 = com.newgrounds.SaveFile.fromObject(this._group, v4.files[v2]); if (v3) { this._files.push(v3); } ++v2; } } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this)); } else { com.newgrounds.Logger.logError('Query failed: ' + event.__get__error()); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error())); } }; v1.FILE_ID = 'fileId'; v1.AUTHOR_ID = 'authorId'; v1.AUTHOR_NAME = 'authorName'; v1.FILE_NAME = 'fileName'; v1.CREATED_ON = 'createdOn'; v1.UPDATED_ON = 'updatedOn'; v1.FILE_VIEWS = 'fileViews'; v1.FILE_STATUS = 'fileStatus'; v1.FILE_FIELDS = [com.newgrounds.SaveQuery.FILE_ID, com.newgrounds.SaveQuery.AUTHOR_ID, com.newgrounds.SaveQuery.AUTHOR_NAME, com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.CREATED_ON, com.newgrounds.SaveQuery.UPDATED_ON, com.newgrounds.SaveQuery.FILE_VIEWS, com.newgrounds.SaveQuery.FILE_STATUS]; v1.OPERATOR_EQUAL = '='; v1.OPERATOR_LESS_THAN = '<'; v1.OPERATOR_GREATER_THAN = '>'; v1.OPERATOR_NOT_EQUAL = '!='; v1.OPERATOR_LESS_OR_EQUAL = '<='; v1.OPERATOR_GREATER_OR_EQUAL = '>='; v1.OPERATOR_CONTAINS = '*'; v1.OPERATOR_NOT_CONTAINS = '!*'; v1.OPERATOR_NOT_BEGINS_WITH = '!*='; v1.OPERATOR_NOT_ENDS_WITH = '!=*'; v1.OPERATOR_BEGINS_WITH = '*='; v1.OPERATOR_ENDS_WITH = '=*'; v1.TABLE_FILES = 1; v1.TABLE_KEYS = 2; v1.TABLE_RATINGS = 3; v2._page = 1; v2._resultsPerPage = 10; v2._isRandomized = false; v2.addProperty('files', v2.__get__files, function () {}); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('isRandomized', v2.__get__isRandomized, v2.__set__isRandomized); v2.addProperty('page', v2.__get__page, v2.__set__page); v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage); ASSetPropFlags(com.newgrounds.SaveQuery.prototype, null, 1); } #endinitclip } movieClip 147 __Packages.com.newgrounds.Medal { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Medal) { var v1 = function (connection, id, name, description, secret, unlocked, value, difficultyId, iconURL) { super(); this._connection = connection; this._id = id; this._name = name; this._description = description; this._secret = secret; this._unlocked = unlocked; this._value = value; this._difficulty = com.newgrounds.Medal.DIFFICULTIES[difficultyId]; this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.Medal.DEFAULT_ICON, iconURL); this._iconLoader.load(); }; com.newgrounds.Medal = v1; com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__difficulty = function () { return this._difficulty; }; v2.__get__icon = function () { return this._iconLoader.__get__bitmapData(); }; v2.__get__id = function () { return this._id; }; v2.__get__name = function () { return this._name; }; v2.__get__description = function () { return this._description; }; v2.__get__secret = function () { return this._secret; }; v2.__get__unlocked = function () { return this._unlocked; }; v2.__get__value = function () { return this._value; }; v2.toString = function () { if (!this._unlocked) { return 'Medal: ' + this._name + '\t\t(' + 'locked, ' + this._value + 'pts, ' + this._difficulty + ')'; } return 'Medal: ' + this._name + '\t\t(' + 'unlocked, ' + this._value + 'pts, ' + this._difficulty + ')'; }; v2.attachIcon = function (parent) { return this._iconLoader.attachBitmap(parent); }; v2.unlock = function () { if (this._unlocked) { com.newgrounds.Logger.logWarning('Medal "' + this._name + '" is already unlocked.'); return undefined; } com.newgrounds.Logger.logMessage('Unlocking medal "' + this.__get__name() + '"...'); this._unlocked = true; if (this._connection.__get__hasUserSession()) { this._connection.sendSimpleCommand('unlockMedal', {'target': this, 'func': this.onUnlockConfirmed}, null, {'medal_id': this.__get__id()}); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this)); }; v2.setUnlocked = function (unlocked) { this._unlocked = unlocked; }; v2.onUnlockConfirmed = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('Medal "' + this.__get__name() + '" unlocked.'); } else { com.newgrounds.Logger.logError('Failed to unlock "' + this.__get__name() + '"!'); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error())); }; v1.ICON_WIDTH = 50; v1.ICON_HEIGHT = 50; v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultMedalIcon'); v1.DIFFICULTY_EASY = 'Easy'; v1.DIFFICULTY_MODERATE = 'Moderate'; v1.DIFFICULTY_CHALLENGING = 'Challenging'; v1.DIFFICULTY_DIFFICULT = 'Difficult'; v1.DIFFICULTY_BRUTAL = 'Brutal'; v1.DIFFICULTIES = ['Unknown', com.newgrounds.Medal.DIFFICULTY_EASY, com.newgrounds.Medal.DIFFICULTY_MODERATE, com.newgrounds.Medal.DIFFICULTY_CHALLENGING, com.newgrounds.Medal.DIFFICULTY_DIFFICULT, com.newgrounds.Medal.DIFFICULTY_BRUTAL]; v2.addProperty('description', v2.__get__description, function () {}); v2.addProperty('difficulty', v2.__get__difficulty, function () {}); v2.addProperty('icon', v2.__get__icon, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('secret', v2.__get__secret, function () {}); v2.addProperty('unlocked', v2.__get__unlocked, function () {}); v2.addProperty('value', v2.__get__value, function () {}); ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1); } #endinitclip } movieClip 149 __Packages.com.newgrounds.ScoreBoard { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.ScoreBoard) { var v1 = function (connection, name, id) { super(); this._connection = connection; this._name = name; this._id = id; }; com.newgrounds.ScoreBoard = v1; com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__scores = function () { return this._scores; }; v2.__get__period = function () { return this._period; }; v2.__set__period = function (val) { this._period = val; return this.__get__period(); }; v2.__get__firstResult = function () { return this._firstResult; }; v2.__set__firstResult = function (val) { this._firstResult = Math.max(1, val); return this.__get__firstResult(); }; v2.__get__numResults = function () { return this._numResults; }; v2.__set__numResults = function (val) { this._numResults = val; return this.__get__numResults(); }; v2.__get__tag = function () { return this._tag; }; v2.__set__tag = function (val) { this._tag = val; return this.__get__tag(); }; v2.__get__page = function () { return Math.ceil((this._firstResult - 1) / this._numResults) + 1; }; v2.prevPage = function () { if (this.__get__firstResult() > this._numResults) { this.firstResult -= this._numResults; } }; v2.nextPage = function () { this.firstResult += this._numResults; }; v2.loadScores = function () { this._connection.sendSimpleCommand('loadScores', {'target': this, 'func': this.onScoresLoaded}, {'publisher_id': this._connection.publisherId, 'board': this._id, 'page': (this._firstResult - 1) / this._numResults + 1, 'num_results': this._numResults, 'period': this._period, 'tag': this._tag}); }; v2.postScore = function (numericScore, tag) { if (tag == undefined) { tag = null; } if (isNaN(numericScore)) { com.newgrounds.Logger.logError('Cannot post invalid score: ' + numericScore); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } com.newgrounds.Logger.logMessage('Posting a score of ' + numericScore + ' by ' + this._connection.username + ' to scoreboard "' + this._name + '"...'); this._connection.sendSimpleCommand('postScore', {'target': this, 'func': this.onScorePosted}, null, {'user_name': this._connection.username, 'board': this._id, 'value': numericScore, 'tag': tag}); }; v2.onScoresLoaded = function (event) { var v4 = event.__get__data(); this._scores = []; var v5; if (v4.first_result) { v5 = v4.first_result; } else { v5 = this._firstResult; } if (v4.scores) { var v3 = 0; while (v3 < v4.scores.length) { var v2 = v4.scores[v3]; if (v2) { this._scores[v3] = new com.newgrounds.Score(v5, v2.username, v2.value, v2.numeric_value, v2.tag); } v3++; v5++; } } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this)); }; v2.onScorePosted = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('Score posted!'); var v4 = event.__get__data(); var v2 = {}; v2.score = v4.value; v2.scoreBoard = this; } else { com.newgrounds.Logger.logError('Error posting score: ' + event.__get__error()); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, storedv2, event.__get__error())); }; v2.toString = function () { return 'Scoreboard: ' + this._name; }; v1.TODAY = 'Today'; v1.THIS_WEEK = 'This Week'; v1.THIS_MONTH = 'This Month'; v1.THIS_YEAR = 'This Year'; v1.ALL_TIME = 'All-Time'; v2._period = com.newgrounds.ScoreBoard.ALL_TIME; v2._firstResult = 1; v2._numResults = 10; v2.addProperty('firstResult', v2.__get__firstResult, v2.__set__firstResult); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('numResults', v2.__get__numResults, v2.__set__numResults); v2.addProperty('page', v2.__get__page, function () {}); v2.addProperty('period', v2.__get__period, v2.__set__period); v2.addProperty('scores', v2.__get__scores, function () {}); v2.addProperty('tag', v2.__get__tag, v2.__set__tag); ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1); } #endinitclip } movieClip 138 __Packages.com.newgrounds.Logger { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Logger) { var v1 = function () {}; com.newgrounds.Logger = v1; var v2 = v1.prototype; v1.logInternal = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_INTERNAL, v2); }; v1.logMessage = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_MESSAGE, v2); }; v1.logWarning = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_WARNING, v2); }; v1.logError = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_ERROR, v2); }; v1.log = function (priority, messages) { if (priority == undefined) { priority = com.newgrounds.Logger.PRIORITY_MESSAGE; } if (messages == undefined) { messages = null; } if (priority >= com.newgrounds.Logger._messageLevel) { var v1 = 0; while (v1 < messages.length) { trace(com.newgrounds.Logger.HEADER + messages[v1]); com.newgrounds.Logger._eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[v1])); ++v1; } } if (priority >= com.newgrounds.Logger._throwLevel) { throw new Error(messages.join('\n')); } }; v1.addEventListener = function (event, listener) { com.newgrounds.Logger._eventDispatcher.addEventListener(event, listener, false, 0, false); }; v1.PRIORITY_INTERNAL = 0; v1.PRIORITY_MESSAGE = 1; v1.PRIORITY_WARNING = 2; v1.PRIORITY_ERROR = 3; v1.PRIORITY_MAX = 4; v1.HEADER = '[Newgrounds API] :: '; v1._eventDispatcher = new com.newgrounds.EventDispatcher(); v1._messageLevel = com.newgrounds.Logger.PRIORITY_MESSAGE; v1._throwLevel = com.newgrounds.Logger.PRIORITY_MAX; ASSetPropFlags(com.newgrounds.Logger.prototype, null, 1); } #endinitclip } movieClip 4445 __Packages.Attack { #initclip if (!_global.Attack) { var v1 = function () { super(); }; _global.Attack = v1; _global.Attack extends MovieClip; var v2 = v1.prototype; v2.onBlock = function () {}; v2.onHit = function () {}; v2.testHit = function () { if (!this.hitTest(player_mc) || !this.isActive) { return false; } if (_root.blocking && _root.playerDir == this.blockDir) { this.onBlock(); this.isActive = false; return true; } else { _root.playerHealth -= this.damage; _root.playerKnockback = true; if (this.knockX != 0) { _root.playerXVel = this.knockX; } if (this.knockY != 0) { _root.playerYVel = this.knockY; } this.isActive = false; if (_root.playerHealth <= 0) { _root.playerDie(); } this.onHit(); return true; } }; v2.isActive = true; v2.damage = 0; v2.knockX = 0; v2.knockY = 0; v2.blockDir = -1; ASSetPropFlags(_global.Attack.prototype, null, 1); } #endinitclip } movieClip 4446 __Packages.TriggerPanel { #initclip if (!_global.TriggerPanel) { var v1 = function () { super(); }; _global.TriggerPanel = v1; _global.TriggerPanel extends MovieClip; var v2 = v1.prototype; v2.testHit = function () { if (this.hitTest(_root.player_mc) && _root.plotProgress >= this.minPlotProgress && _root.plotProgress <= this.maxPlotProgress) { _root.stopMove = this.pauseMove; scenes_mc.gotoAndStop(this.sceneNum + 1); } return false; }; v2.minPlotProgress = 0; v2.maxPlotProgress = 9999; v2.sceneNum = 0; v2.pauseMove = true; ASSetPropFlags(_global.TriggerPanel.prototype, null, 1); } #endinitclip } movieClip 4447 __Packages.Wall { #initclip if (!_global.Wall) { var v1 = function () { super(); }; _global.Wall = v1; _global.Wall extends MovieClip; var v2 = v1.prototype; v2.testHit = function () { if (!this.hitTest(player_mc) || !this.isActive) { return false; } var v4 = 0; var v3 = 0; while (this.hitTest(player_mc)) { if (_root.playerXVel != 0) { player_mc._x -= _root.playerXVel / Math.abs(_root.playerXVel); ++v4; } if (_root.playerYVel != 0) { player_mc._y -= _root.playerYVel / Math.abs(_root.playerYVel); ++v3; } } var v6 = v4 * _root.playerXVel / Math.abs(_root.playerXVel); var v5 = v3 * _root.playerYVel / Math.abs(_root.playerYVel); if (player_mc._x + player_mc._width < this._x || player_mc._x > this._x + this._width) { v6 = 0; } if (player_mc._y + player_mc._height < this._y || player_mc._y > this._y + this._height) { if (v3 * _root.playerYVel / Math.abs(_root.playerYVel) > 0) { _root.jumpable = true; } v5 = 0; _root.playerYVel = 0; } player_mc._x += v6; player_mc._y += v5; return true; }; v2.isActive = true; ASSetPropFlags(_global.Wall.prototype, null, 1); } #endinitclip } movieClip 157 __Packages.com.newgrounds.components.FlashAdBase { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.FlashAdBase) { var v1 = function () { super(); try { System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); } this._x = int(this._x); this._y = int(this._y); this.stop(); if (this.__get___newgroundsButton()) { (this.__get___newgroundsButton()).onRelease = this.onNGClick; } this.onUnload = this.removeAd; var v4 = this; this._adListener = {'onLoadError': function (target, error, httpStatus) { target._parent.onAdError(target, error, httpStatus); }}; if (this.__get__fullScreen()) { this.drawFullScreenRect(); } if (com.newgrounds.API.__get__adFeedURL()) { this.loadAdFeed(); } else { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {'target': this, 'func': this.loadAdFeed}); } }; com.newgrounds.components.FlashAdBase = v1; com.newgrounds.components.FlashAdBase extends MovieClip; var v2 = v1.prototype; v2.__get___adContainer = function () { return this.adContainer; }; v2.__get___newgroundsButton = function () { return this.newgroundsButton; }; v2.__get__fullScreen = function () { return this._fullScreen; }; v2.__set__fullScreen = function (v) { this._fullScreen = v; if (v) { this.drawFullScreenRect(); } else { this.clear(); } return this.__get__fullScreen(); }; v2.__get__showBorder = function () { return this._showBorder; }; v2.__set__showBorder = function (value) { this._showBorder = value; if (this._showBorder) { if (this._ad) { var v2 = this._ad.getProgress(this.__get___adContainer()); if (v2.bytesLoaded >= v2.bytesTotal) { if (this.showPlayButton) { this.gotoAndStop('loadedPlay'); } else { this.gotoAndStop('loaded'); } } else { this.gotoAndStop('loading'); } } else { this.gotoAndStop('idle'); } } else { this.gotoAndStop('noBorder'); } return this.__get__showBorder(); }; v2.loadAdFeed = function (event) { if (event == undefined) { event = null; } this._adFeedLoader = new LoadVars(); var target = this; this._adFeedLoader.onData = function (data) { target.onAdFeedLoaded(data); }; this._adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), this._adFeedLoader); }; v2.onAdFeedLoaded = function (data) { if (data && data != '') { this.loadAd(data); } else { this.onAdError(); } }; v2.loadAd = function (adURL) { if (this.showPlayButton) { this.gotoAndStop('loadedPlay'); } if (this.adType != this.VIDEO_ADS) { if (adURL.indexOf('?') >= 0) { adURL += '&'; } else { adURL += '?'; } adURL += 'blockoverlays=1'; } this._ad = new MovieClipLoader(); this._ad.addListener(this._adListener); (this.__get___adContainer())._lockroot = true; this._ad.loadClip(adURL, this.__get___adContainer()); }; v2.removeAd = function () { this._adFeedLoader.onData = null; this._adFeedLoader = null; this._ad.removeListener(this._adListener); if (this.__get___adContainer()) { this._ad.unloadClip(this.__get___adContainer()); } this._ad = null; }; v2.onAdError = function (target, error, httpStatus) { com.newgrounds.Logger.logError('Unable to load ad.'); this.removeAd(); }; v2.onNGClick = function () { com.newgrounds.API.loadNewgrounds(); }; v2.drawFullScreenRect = function () { this._x = (Stage.width - this._width) / 2; this._y = (Stage.height - this._height) / 2; this.beginFill(0); this.moveTo(-Stage.width, -Stage.height); this.lineTo(Stage.width, -Stage.height); this.lineTo(Stage.width, Stage.height); this.lineTo(-Stage.width, Stage.height); this.lineTo(-Stage.width, -Stage.height); this.endFill(); }; v2._showBorder = true; v2.adType = com.newgrounds.components.FlashAdBase.prototype.VIDEO_ADS; v2.VIDEO_ADS = 'Video'; v2.SIMPLE_ADS = 'Simple'; v2.addProperty('_adContainer', v2.__get___adContainer, function () {}); v2.addProperty('_newgroundsButton', v2.__get___newgroundsButton, function () {}); v2.addProperty('fullScreen', v2.__get__fullScreen, v2.__set__fullScreen); v2.addProperty('showBorder', v2.__get__showBorder, v2.__set__showBorder); ASSetPropFlags(com.newgrounds.components.FlashAdBase.prototype, null, 1); } #endinitclip } movieClip 4448 __Packages.Door { #initclip if (!_global.Door) { var v1 = function () { super(); }; _global.Door = v1; _global.Door extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this._alpha = 0; }; v2.testHit = function () { if (this.hitTest(player_mc)) { if (this.newX >= 0) { player_mc._x = this.newX; } else { player_mc._x -= _root.playerXVel; } if (this.newY >= 0) { player_mc._y = this.newY; } else { player_mc._y -= _root.playerYVel; } maps_mc.gotoAndStop(this.newRoom); return true; } else { return false; } }; ASSetPropFlags(_global.Door.prototype, null, 1); } #endinitclip } movieClip 4449 __Packages.Ladder { #initclip if (!_global.Ladder) { var v1 = function () { super(); }; _global.Ladder = v1; _global.Ladder extends MovieClip; var v2 = v1.prototype; v2.testHit = function () { if (_root.playerMoveMode == 2 && this.hitTest(player_mc) && this.isActive) { _root.playerMoveMode = 3; return false; } }; v2.isActive = true; ASSetPropFlags(_global.Ladder.prototype, null, 1); } #endinitclip } movieClip 4450 __Packages.Ramp { #initclip if (!_global.Ramp) { var v1 = function () { super(); }; _global.Ramp = v1; _global.Ramp extends MovieClip; var v2 = v1.prototype; v2.testHit = function () { if (!this.hitTest(player_mc._x + 12, player_mc._y + 12, true) && !this.hitTest(player_mc._x, player_mc._y + 12, true) && !this.hitTest(player_mc._x + 6, player_mc._y + 6, true) || !this.isActive) { return false; } _root.playerYVel = 0; _root.jumpable = true; for (;;) { if (!(this.hitTest(player_mc._x + 12, player_mc._y + 12, true) || this.hitTest(player_mc._x, player_mc._y + 12, true) || this.hitTest(player_mc._x + 6, player_mc._y + 6, true))) break; --player_mc._y; } return true; }; v2.isActive = true; ASSetPropFlags(_global.Ramp.prototype, null, 1); } #endinitclip } movieClip 4451 __Packages.PushSwitch { #initclip if (!_global.PushSwitch) { var v1 = function () { super(); }; _global.PushSwitch = v1; _global.PushSwitch extends MovieClip; var v2 = v1.prototype; v2.testHit = function () { if (!this.hitTest(player_mc) || !this.isActive) { return false; } var v4 = 0; var v3 = 0; while (this.hitTest(player_mc)) { if (_root.playerXVel != 0) { player_mc._x -= _root.playerXVel / Math.abs(_root.playerXVel); ++v4; } if (_root.playerYVel != 0) { player_mc._y -= _root.playerYVel / Math.abs(_root.playerYVel); ++v3; } } var v6 = v4 * _root.playerXVel / Math.abs(_root.playerXVel); var v5 = v3 * _root.playerYVel / Math.abs(_root.playerYVel); if ((player_mc._x + player_mc._width < this._x || player_mc._x > this._x + this._width) && this.pushNorth || !this.isPushable) { v6 = 0; } if ((player_mc._y + player_mc._height < this._y || player_mc._y > this._y + this._height) && !this.pushNorth || !this.isPushable) { v5 = 0; _root.playerYVel = 0; } if (!this.pushNorth) { player_mc._y += v5; player_mc._x += v6 * this.moveSpeedMult; this._x += v6 * this.moveSpeedMult; if (this._x > this.maxPush && v6 > 0) { player_mc._x -= this._x - this.maxPush; this._x = this.maxPush; _root.scenes_mc.gotoAndStop(this.maxPushScene + 1); } if (this._x < this.minPush && v6 < 0) { player_mc._x += this.minPush - this._x; this._x = this.minPush; _root.scenes_mc.gotoAndStop(this.minPushScene + 1); } return true; } player_mc._x += v6; player_mc._y += v5 * this.moveSpeedMult; this._y += v5 * this.moveSpeedMult; if (this._y > this.maxPush && v5 > 0) { player_mc._y -= this._y - this.maxPush; this._y = this.maxPush; _root.scenes_mc.gotoAndStop(this.maxPushScene + 1); } if (this._y < this.minPush && v5 < 0) { player_mc._y += this.minPush - this._y; this._y = this.minPush; _root.scenes_mc.gotoAndStop(this.minPushScene + 1); } return true; }; v2.isActive = true; v2.isPushable = true; v2.pushNorth = true; v2.minPush = 0; v2.maxPush = 600; v2.minPushScene = 0; v2.maxPushScene = 0; v2.moveSpeedMult = 0.25; ASSetPropFlags(_global.PushSwitch.prototype, null, 1); } #endinitclip } movieClip 4452 __Packages.InteractivePanel { #initclip if (!_global.InteractivePanel) { var v1 = function () { super(); }; _global.InteractivePanel = v1; _global.InteractivePanel extends MovieClip; var v2 = v1.prototype; v2.testHit = function () { if (this.hitTest(player_mc) && _root.plotProgress >= this.minPlotProgress && _root.plotProgress <= this.maxPlotProgress && this.isActive) { if (this.orbNum == 0 || this.orbNum == 1 && !_root.orb1Get || this.orbNum == 2 && !_root.orb2Get || this.orbNum == 3 && !_root.orb3Get) { examineText_mc._alpha = 100; if (this.sceneNum == 1) { examineText_mc.gotoAndStop(2); return false; } examineText_mc.gotoAndStop(1); } } return false; }; v2.interact = function () { if (this.isActive && this.hitTest(player_mc) && _root.plotProgress >= this.minPlotProgress && _root.plotProgress <= this.maxPlotProgress && (this.orbNum == 0 || this.orbNum == 1 && !_root.orb1Get || this.orbNum == 2 && !_root.orb2Get || this.orbNum == 3 && !_root.orb3Get)) { _root.stopMove = this.pauseMove; scenes_mc.gotoAndStop(this.sceneNum + 1); } }; v2.minPlotProgress = 0; v2.maxPlotProgress = 9999; v2.orbNum = 0; v2.sceneNum = 0; v2.pauseMove = true; v2.isActive = true; ASSetPropFlags(_global.InteractivePanel.prototype, null, 1); } #endinitclip } movieClip 132 __Packages.com.newgrounds.shims.APIShim { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.shims) { _global.com.newgrounds.shims = new Object(); } if (!_global.com.newgrounds.shims.APIShim) { var v1 = function () { super(); }; com.newgrounds.shims.APIShim = v1; com.newgrounds.shims.APIShim extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(com.newgrounds.shims.APIShim.prototype, null, 1); } #endinitclip } movieClip 142 __Packages.com.newgrounds.crypto.MD5 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.crypto) { _global.com.newgrounds.crypto = new Object(); } if (!_global.com.newgrounds.crypto.MD5) { var v1 = function () {}; com.newgrounds.crypto.MD5 = v1; var v2 = v1.prototype; v1.hash = function (src) { return com.newgrounds.crypto.MD5.hex_md5(src); }; v1.hex_md5 = function (src) { return com.newgrounds.crypto.MD5.binl2hex(com.newgrounds.crypto.MD5.core_md5(com.newgrounds.crypto.MD5.str2binl(src), src.length * 8)); }; v1.core_md5 = function (x, len) { x[len >> 5] |= 128 << len % 32; x[(len + 64 >>> 9 << 4) + 14] = len; var v4 = 1732584193; var v3 = -271733879; var v2 = -1732584194; var v1 = 271733878; var v5 = 0; while (v5 < x.length) { var v10 = v4; var v9 = v3; var v8 = v2; var v7 = v1; v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330); v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983); v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162); v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551); v4 = com.newgrounds.crypto.MD5.safe_add(v4, v10); v3 = com.newgrounds.crypto.MD5.safe_add(v3, v9); v2 = com.newgrounds.crypto.MD5.safe_add(v2, v8); v1 = com.newgrounds.crypto.MD5.safe_add(v1, v7); v5 += 16; } return new Array(v4, v3, v2, v1); }; v1.md5_cmn = function (q, a, b, x, s, t) { return com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.bit_rol(com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.safe_add(a, q), com.newgrounds.crypto.MD5.safe_add(x, t)), s), b); }; v1.md5_ff = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t); }; v1.md5_gg = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t); }; v1.md5_hh = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t); }; v1.md5_ii = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t); }; v1.bit_rol = function (num, cnt) { return num << cnt | num >>> 32 - cnt; }; v1.safe_add = function (x, y) { var v1 = (x & 65535) + (y & 65535); var v2 = (x >> 16) + (y >> 16) + (v1 >> 16); return v2 << 16 | v1 & 65535; }; v1.str2binl = function (str) { var v3 = new Array(); var v4 = 255; var v1 = 0; while (v1 < str.length * 8) { v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32; v1 += 8; } return v3; }; v1.binl2hex = function (binarray) { var v4 = new String(''); var v3 = new String('0123456789abcdef'); var v1 = 0; while (v1 < binarray.length * 4) { v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15); ++v1; } return v4; }; ASSetPropFlags(com.newgrounds.crypto.MD5.prototype, null, 1); } #endinitclip } movieClip 143 __Packages.com.newgrounds.crypto.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.crypto) { _global.com.newgrounds.crypto = new Object(); } if (!_global.com.newgrounds.crypto.RC4) { var v1 = function () {}; com.newgrounds.crypto.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.newgrounds.crypto.RC4.strToChars(src); var v1 = com.newgrounds.crypto.RC4.strToChars(key); var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1); return com.newgrounds.crypto.RC4.charsToHex(v2); }; v1.encryptbin = function (src, key) { var v3 = com.newgrounds.crypto.RC4.strToChars(src); var v1 = com.newgrounds.crypto.RC4.strToChars(key); var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1); return v2; }; v1.decrypt = function (src, key) { var v3 = com.newgrounds.crypto.RC4.hexToChars(src); var v1 = com.newgrounds.crypto.RC4.strToChars(key); var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1); return com.newgrounds.crypto.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.newgrounds.crypto.RC4.mykey[v1] = pwd[v1 % v4]; com.newgrounds.crypto.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.mykey[v1]) % 256; v3 = com.newgrounds.crypto.RC4.sbox[v1]; com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2]; com.newgrounds.crypto.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.newgrounds.crypto.RC4.initialize(psw); var v1 = 0; var v2 = 0; var v9 = new Array(); var v7; var v5; var v6; var v3 = 0; while (v3 < plaintxt.length) { v1 = (v1 + 1) % 256; v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1]) % 256; v5 = com.newgrounds.crypto.RC4.sbox[v1]; com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2]; com.newgrounds.crypto.RC4.sbox[v2] = v5; var v4 = (com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.sbox[v2]) % 256; v7 = com.newgrounds.crypto.RC4.sbox[v4]; v6 = plaintxt[v3] ^ v7; v9.push(v6); ++v3; } return v9; }; v1.charsToHex = function (chars) { var v4 = new String(''); var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); var v1 = 0; while (v1 < chars.length) { v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15]; ++v1; } return v4; }; v1.hexToChars = function (hex) { var v3 = new Array(); var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0; while (v1 < hex.length) { v3.push(parseInt(hex.substr(v1, 2), 16)); v1 += 2; } return v3; }; v1.charsToStr = function (chars) { var v3 = new String(''); var v1 = 0; while (v1 < chars.length) { v3 += String.fromCharCode(chars[v1]); ++v1; } return v3; }; v1.strToChars = function (str) { var v3 = new Array(); var v1 = 0; while (v1 < str.length) { v3.push(str.charCodeAt(v1)); ++v1; } return v3; }; v1.sbox = new Array(255); v1.mykey = new Array(255); ASSetPropFlags(com.newgrounds.crypto.RC4.prototype, null, 1); } #endinitclip } movieClip 144 __Packages.com.newgrounds.encoders.json.JSON { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.json) { _global.com.newgrounds.encoders.json = new Object(); } if (!_global.com.newgrounds.encoders.json.JSON) { var v1 = function () {}; com.newgrounds.encoders.json.JSON = v1; var v2 = v1.prototype; v1.encode = function (arg, noquotes) { var v3; var v2; var v6; var v1 = ''; var v4; if (arg.isSServerVar()) { var v8 = 'sservervariable'; } else { var v8 = typeof arg; } switch (v8) { return 'null'; case 'sservervariable': return '?' + arg.getEncodedValue(); break; case 'object': if (arg) { if (arg instanceof Array) { v2 = 0; while (v2 < arg.length) { v4 = com.newgrounds.encoders.json.JSON.encode(arg[v2]); if (v1) { v1 += ','; } v1 += v4; ++v2; } return '[' + v1 + ']'; } else { if (typeof arg.toString != 'undefined') { for (v2 in arg) { v4 = arg[v2]; if (typeof v4 != 'undefined' && typeof v4 != 'function') { v4 = com.newgrounds.encoders.json.JSON.encode(v4); if (v1) { v1 += ','; } v1 += com.newgrounds.encoders.json.JSON.encode(v2) + ':' + v4; } } return '{' + v1 + '}'; } } } return 'null'; case 'number': return isFinite(arg) ? String(arg) : 'null'; case 'string': v6 = arg.length; if (noquotes) { var v7 = ''; } else { var v7 = '"'; } v1 = v7; v2 = 0; while (v2 < v6) { v3 = arg.charAt(v2); if (v3 >= ' ') { if (v3 == '\\' || v3 == '"') { v1 += '\\'; } v1 += v3; } else { switch (v3) { case '\b': v1 += '\\b'; break; case '\f': v1 += '\\f'; break; case '\n': v1 += '\\n'; break; case '\r': v1 += '\\r'; break; case '\t': v1 += '\\t'; break; default: v3 = v3.charCodeAt(); v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16); } } v2 += 1; } return v1 + v7; case 'boolean': return String(arg); default: return 'null'; } }; v1.background_encode = function (arg, callback) { if (com.newgrounds.encoders.json.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode'); return false; } } com.newgrounds.encoders.json.JSON.busy = true; var v2 = new Date(); com.newgrounds.encoders.json.JSON.start = v2.getTime(); com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () { com.newgrounds.encoders.json.JSON.encode_chunk(); }}; if (com.newgrounds.encoders.json.JSON.getType(arg) == 'object') { com.newgrounds.encoders.json.JSON.cache.encoded = '{'; com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25); return true; } if (com.newgrounds.encoders.json.JSON.getType(arg) == 'array') { com.newgrounds.encoders.json.JSON.cache.encoded = '['; } com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25); return true; }; v1.background_decode = function (arg, callback) { if (com.newgrounds.encoders.json.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode'); return false; } } com.newgrounds.encoders.json.JSON.busy = true; var v1 = new Date(); com.newgrounds.encoders.json.JSON.start = v1.getTime(); com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () { com.newgrounds.encoders.json.JSON.decode_chunk(); }}; com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'decode_chunk', 25); return true; }; v1.decode = function (text) { var at = 0; var ch = ' '; var _value; var _error = function (m) { throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text}; }; var _next = function () { ch = text.charAt(at); at += 1; return ch; }; var _white = function () { while (ch) { if (ch <= ' ') { _next(); } else { if (ch == '/') { switch (_next()) { case '/': for (;;) { if (!(_next() && ch != '\n' && ch != '\r')) break; } break; case '*': _next(); for (;;) { if (ch) { if (ch == '*') { if (_next() == '/') { _next(); break; } } else { _next(); } continue; } _error('Unterminated comment'); } break; default: _error('Syntax error'); } } else { break; } } } }; var _string = function () { var v4; var v1 = ''; var v3; var v2; var v5 = false; if (ch == '"') { while (_next()) { if (ch == '"') { _next(); return v1; } else { if (ch == '\\') { switch (_next()) { case 'b': v1 += '\b'; break; case 'f': v1 += '\f'; break; case 'n': v1 += '\n'; break; case 'r': v1 += '\r'; break; case 't': v1 += '\t'; break; case 'u': v2 = 0; v4 = 0; while (v4 < 4) { v3 = parseInt(_next(), 16); if (!isFinite(v3)) { v5 = true; break; } v2 = v2 * 16 + v3; v4 += 1; } if (v5) { v5 = false; } else { v1 += String.fromCharCode(v2); break; default: v1 += ch; } } } else { v1 += ch; } } } } _error('Bad string'); }; var _array = function () { var v1 = []; if (ch == '[') { _next(); _white(); if (ch == ']') { _next(); return v1; } while (ch) { v1.push(_value()); _white(); if (ch == ']') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad array'); }; var _object = function () { var v2; var v1 = {}; if (ch == '{') { _next(); _white(); if (ch == '}') { _next(); return v1; } while (ch) { v2 = _string(); _white(); if (ch != ':') { break; } _next(); v1[v2] = _value(); _white(); if (ch == '}') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad object'); }; var _number = function () { var v1 = ''; var v2; if (ch == '-') { v1 = '-'; _next(); } for (;;) { if (!(ch >= '0' && ch <= '9')) break; v1 += ch; _next(); } if (ch == '.') { v1 += '.'; for (;;) { if (!(_next() && ch >= '0' && ch <= '9')) break; v1 += ch; } } v2 = 1 * v1; if (!isFinite(v2)) { _error('Bad number'); } else { return v2; } }; var _word = function () { switch (ch) { case 't': if (_next() == 'r' && _next() == 'u' && _next() == 'e') { _next(); return true; } break; case 'f': if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') { _next(); return false; } break; case 'n': if (_next() == 'u' && _next() == 'l' && _next() == 'l') { _next(); return null; } } _error('Syntax error'); }; _value = function () { _white(); switch (ch) { case '{': return _object(); case '[': return _array(); case '"': return _string(); case '-': return _number(); } return (ch >= '0' && ch <= '9') ? _number() : _word(); }; return _value(); }; v1.getType = function (v) { if (v instanceof Array) { return 'array'; } else { return typeof v; } }; v1.decode_chunk = function () { if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) { com.newgrounds.encoders.json.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.decode_chunks) { com.newgrounds.encoders.json.JSON.chunk_decoder(); if (com.newgrounds.encoders.json.JSON.cache.complete) { break; } ++v1; } trace(Math.round((com.newgrounds.encoders.json.JSON.cache.pos / com.newgrounds.encoders.json.JSON.cache.arg.length) * 100) + '% decoded'); com.newgrounds.encoders.json.JSON.cache.busy = false; } if (com.newgrounds.encoders.json.JSON.cache.complete) { var v2 = new Date(); com.newgrounds.encoders.json.JSON.busy = false; clearInterval(com.newgrounds.encoders.json.JSON.interval); com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.json.JSON.start); com.newgrounds.encoders.json.JSON.cache.arg = ''; } }; v1.encode_chunk = function () { if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) { com.newgrounds.encoders.json.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.encode_chunks) { com.newgrounds.encoders.json.JSON.chunk_encoder(); if (com.newgrounds.encoders.json.JSON.cache.complete) { break; } ++v1; } com.newgrounds.encoders.json.JSON.cache.busy = false; } if (com.newgrounds.encoders.json.JSON.cache.complete) { var v3 = new Date(); var v2 = v3.getTime(); com.newgrounds.encoders.json.JSON.busy = false; clearInterval(com.newgrounds.encoders.json.JSON.interval); com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.encoded, v2 - com.newgrounds.encoders.json.JSON.start); com.newgrounds.encoders.json.JSON.cache.encoded = ''; } }; v1.chunk_decoder = function () { function _object() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = 'object'; ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.json.JSON.cache.scratch = ''; _setTargetValue({}); } else { if (v1 == ',') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.json.JSON.cache.scratch = ''; } else { if (v1 == '}') { _useParent(); } else { if (v1 == '"') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 != ':') { throw 'Malformed object notation. Object keys and values must be separated by colons(:)'; } _addParent(com.newgrounds.encoders.json.JSON.cache.scratch); com.newgrounds.encoders.json.JSON.cache.mode = null; } else { if (v1 == '\\') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); } com.newgrounds.encoders.json.JSON.cache.scratch += v1; } } } } ++com.newgrounds.encoders.json.JSON.cache.pos; } function _array() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = 'array'; ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); _setTargetValue([]); if (v1 != ']') { _addArrayKey(); } else { _useParent(); } return undefined; } else { if (v1 == ',') { _addArrayKey(); } else { if (v1 == ']') { _useParent(); } } } ++com.newgrounds.encoders.json.JSON.cache.pos; } function _boolean() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 == 't') { _setTargetValue(true); com.newgrounds.encoders.json.JSON.cache.pos += 3; } else { if (v1 == 'f') { _setTargetValue(false); com.newgrounds.encoders.json.JSON.cache.pos += 4; } else { throw 'Bool values must be true or false'; } } _useParent(); } function _null() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 == 'n') { _setTargetValue(null); com.newgrounds.encoders.json.JSON.cache.pos += 2; } else { throw 'Null values must be null'; } _useParent(); } function _string() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { if (v1 != '"') { throw 'Strings must be wrapped in quotes ("")'; } com.newgrounds.encoders.json.JSON.cache.scratch = ''; com.newgrounds.encoders.json.JSON.cache.mode = 'string'; } else { if (v1 == '"') { _setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch); _useParent(); } else { if (v1 == '\\') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); switch (v1) { case 'n': v1 = '\n'; break; case 'r': v1 = '\n'; break; case 't': v1 = '\t'; break; case 'u': v1 = '\\' + v1; } } com.newgrounds.encoders.json.JSON.cache.scratch += v1; } } ++com.newgrounds.encoders.json.JSON.cache.pos; } function _number() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); var v2 = '01234567890.-'; if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = 'number'; com.newgrounds.encoders.json.JSON.cache.scratch = ''; } if (v2.indexOf(v1) < 0) { _setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch)); _useParent(); } else { com.newgrounds.encoders.json.JSON.cache.scratch += v1; ++com.newgrounds.encoders.json.JSON.cache.pos; } } function _setTargetValue(newval) { var v2 = (_getParent()).obj; var v1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1]; v2[v1] = newval; } function _useParent() { com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType((_getParent()).obj); com.newgrounds.encoders.json.JSON.cache.parents.pop(); } function _getParent() { var v2 = com.newgrounds.encoders.json.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length - 1) { v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]}; } function _getCurrent() { var v2 = com.newgrounds.encoders.json.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length) { v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]}; } function _addParent(child) { com.newgrounds.encoders.json.JSON.cache.parents.push(child); } function _addArrayKey() { var v1 = (_getCurrent()).obj.length; com.newgrounds.encoders.json.JSON.cache.parents.push(v1); com.newgrounds.encoders.json.JSON.cache.mode = null; } if (com.newgrounds.encoders.json.JSON.cache.pos >= com.newgrounds.encoders.json.JSON.cache.arg.length) { com.newgrounds.encoders.json.JSON.cache.complete = true; return undefined; } else { if (com.newgrounds.encoders.json.JSON.cache.mode) { ('_' + com.newgrounds.encoders.json.JSON.cache.mode)(); } else { var char = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); switch (char) { case '{': _object(); break; case '[': _array(); break; case '"': _string(); break; case 'n': _null(); break; case 't': _boolean(); break; case 'f': _boolean(); break; default: _number(); } } } }; v1.chunk_encoder = function () { if (com.newgrounds.encoders.json.JSON.cache.complete) { return undefined; } var v2 = com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target); switch (v2) { case 'number': com.newgrounds.encoders.json.JSON.cache.encoded += com.newgrounds.encoders.json.JSON.cache.target; com.newgrounds.encoders.json.JSON.getParent(); break; case 'string': com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (com.newgrounds.encoders.json.JSON.cache.target.split('"')).join('\\"') + '"'; com.newgrounds.encoders.json.JSON.getParent(); break; case 'boolean': com.newgrounds.encoders.json.JSON.cache.encoded += (com.newgrounds.encoders.json.JSON.cache.target == true) ? 'true' : 'false'; com.newgrounds.encoders.json.JSON.getParent(); break; case 'null': com.newgrounds.encoders.json.JSON.cache.encoded += 'null'; com.newgrounds.encoders.json.JSON.getParent(); break; case 'array': if (com.newgrounds.encoders.json.JSON.cache.target.length < 1) { com.newgrounds.encoders.json.JSON.cache.encoded += ']'; com.newgrounds.encoders.json.JSON.getParent(); } else { com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target); com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[0]; if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') { com.newgrounds.encoders.json.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') { com.newgrounds.encoders.json.JSON.cache.encoded += '{'; } } } break; case 'object': for (var v1 in com.newgrounds.encoders.json.JSON.cache.target) { break; } if (v1 === undefined) { com.newgrounds.encoders.json.JSON.cache.encoded += '}'; com.newgrounds.encoders.json.JSON.getParent(); } else { com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target); com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[v1]; com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":'; if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') { com.newgrounds.encoders.json.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') { com.newgrounds.encoders.json.JSON.cache.encoded += '{'; } } } break; default: com.newgrounds.encoders.json.JSON.cache.encoded += 'null'; com.newgrounds.encoders.json.JSON.getParent(); } }; v1.getParent = function () { if (com.newgrounds.encoders.json.JSON.cache.parents.length > 0) { var v1 = com.newgrounds.encoders.json.JSON.cache.parents.pop(); if (com.newgrounds.encoders.json.JSON.getType(v1) == 'array') { v1.shift(); } else { for (var v3 in v1) { delete v1[v3]; break; } } if (com.newgrounds.encoders.json.JSON.getType(v1) == 'object' or com.newgrounds.encoders.json.JSON.getType(v1) == 'array') { for (var v2 in v1) { break; } if (v2 !== undefined) { com.newgrounds.encoders.json.JSON.cache.encoded += ','; } } com.newgrounds.encoders.json.JSON.cache.target = v1; } else { com.newgrounds.encoders.json.JSON.cache.complete = true; } }; v1.encode_chunks = 20000; v1.decode_chunks = 20000; v1.busy = false; ASSetPropFlags(com.newgrounds.encoders.json.JSON.prototype, null, 1); } #endinitclip } movieClip 148 __Packages.com.newgrounds.Score { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Score) { var v1 = function (rank, username, score, numericValue, tag) { this._rank = rank; this._username = username; this._score = score; this._numericValue = numericValue; this._tag = tag; }; com.newgrounds.Score = v1; var v2 = v1.prototype; v2.__get__numericValue = function () { return this._numericValue; }; v2.__get__rank = function () { return this._rank; }; v2.__get__score = function () { return this._score; }; v2.__get__tag = function () { return this._tag; }; v2.__get__username = function () { return this._username; }; v2.toString = function () { return this._rank + '.\t' + this._username + '\t' + this._score; }; v2.addProperty('numericValue', v2.__get__numericValue, function () {}); v2.addProperty('rank', v2.__get__rank, function () {}); v2.addProperty('score', v2.__get__score, function () {}); v2.addProperty('tag', v2.__get__tag, function () {}); v2.addProperty('username', v2.__get__username, function () {}); ASSetPropFlags(com.newgrounds.Score.prototype, null, 1); } #endinitclip } frame 2 { function onEnterFrame() {} stop(); if (_root.soundEnabled) { mscTitle = new Sound(); mscTitle.attachSound('mscTitle'); mscTitle.start(0, 999); } } movieClip 214 { } // unknown tag 88 length 44 movieClip 217 { } // unknown tag 88 length 44 movieClip 226 { } movieClip 227 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 234 { } movieClip 236 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 243 { } movieClip 244 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 251 { } movieClip 252 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 259 { } movieClip 260 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 267 { } movieClip 268 { frame 1 { stop(); } frame 2 { stop(); } } button 269 { on (rollOver) { if (_root.gameStarted) { if (menuChoice != 1) { if (menuChoice == 0) { start_mc.gotoAndStop(1); } if (menuChoice == 2) { preload_mc.gotoAndStop(1); } if (menuChoice == 3) { instructions_mc.gotoAndStop(1); } if (menuChoice == 4) { options_mc.gotoAndStop(1); } if (menuChoice == 5) { extras_mc.gotoAndStop(1); } continue_mc.gotoAndStop(2); menuChoice = 1; } } } on (release) { stopAllSounds(); if (_root.playerRoom == 7) { _root.currentMusic = 3; _root.creepyMusic = true; mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); if (_root.soundEnabled) { mscCreepy.start(0, 999); } } else { _root.creepyMusic = false; if (_root.openingViewed) { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; } } _root.gotoAndPlay(4); } } button 270 { on (rollOver) { if (menuChoice != 0) { if (menuChoice == 1) { continue_mc.gotoAndStop(1); } if (menuChoice == 2) { preload_mc.gotoAndStop(1); } if (menuChoice == 3) { instructions_mc.gotoAndStop(1); } if (menuChoice == 4) { options_mc.gotoAndStop(1); } if (menuChoice == 5) { extras_mc.gotoAndStop(1); } start_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { _root.play(); } } button 271 { on (rollOver) { if (menuChoice != 2) { if (menuChoice == 1) { continue_mc.gotoAndStop(1); } if (menuChoice == 0) { start_mc.gotoAndStop(1); } if (menuChoice == 3) { instructions_mc.gotoAndStop(1); } if (menuChoice == 4) { options_mc.gotoAndStop(1); } if (menuChoice == 5) { extras_mc.gotoAndStop(1); } preload_mc.gotoAndStop(2); menuChoice = 2; } } on (release) { stopAllSounds(); _root.gotoAndStop(1); } } button 272 { on (rollOver) { if (menuChoice != 3) { if (menuChoice == 1) { continue_mc.gotoAndStop(1); } if (menuChoice == 2) { preload_mc.gotoAndStop(1); } if (menuChoice == 0) { start_mc.gotoAndStop(1); } if (menuChoice == 4) { options_mc.gotoAndStop(1); } if (menuChoice == 5) { extras_mc.gotoAndStop(1); } instructions_mc.gotoAndStop(2); menuChoice = 3; } } on (release) { play(); } } button 273 { on (rollOver) { if (menuChoice != 4) { if (menuChoice == 1) { continue_mc.gotoAndStop(1); } if (menuChoice == 2) { preload_mc.gotoAndStop(1); } if (menuChoice == 3) { instructions_mc.gotoAndStop(1); } if (menuChoice == 0) { start_mc.gotoAndStop(1); } if (menuChoice == 5) { extras_mc.gotoAndStop(1); } options_mc.gotoAndStop(2); menuChoice = 4; } } on (release) { gotoAndStop(4); } } button 274 { on (rollOver) { if (menuChoice != 5) { if (menuChoice == 1) { continue_mc.gotoAndStop(1); } if (menuChoice == 2) { preload_mc.gotoAndStop(1); } if (menuChoice == 3) { instructions_mc.gotoAndStop(1); } if (menuChoice == 4) { options_mc.gotoAndStop(1); } if (menuChoice == 0) { start_mc.gotoAndStop(1); } extras_mc.gotoAndStop(2); menuChoice = 5; } } on (release) { gotoAndStop(5); } } movieClip 283 { } movieClip 284 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 291 { } movieClip 292 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 299 { } movieClip 300 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 302 { frame 1 { function onEnterFrame() { if (_root.soundEnabled) { gotoAndStop(1); } else { gotoAndStop(2); } } } } movieClip 303 { frame 1 { function onEnterFrame() { if (!_root.soundEnabled) { gotoAndStop(1); } else { gotoAndStop(2); } } } } button 304 { on (rollOver) { if (menuChoice != 0) { if (menuChoice == 1) { manage_mc.gotoAndStop(1); } if (menuChoice == 2) { mainMenu_mc.gotoAndStop(1); } sound_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { _root.soundEnabled = !_root.soundEnabled; if (_root.soundEnabled) { mscTitle = new Sound(); mscTitle.attachSound('mscTitle'); mscTitle.start(0, 999); } else { stopAllSounds(); } } } button 305 { on (rollOver) { if (menuChoice != 1) { if (menuChoice == 0) { sound_mc.gotoAndStop(1); } if (menuChoice == 2) { mainMenu_mc.gotoAndStop(1); } manage_mc.gotoAndStop(2); menuChoice = 1; } } on (release) { gotoAndStop(7); } } button 306 { on (rollOver) { if (menuChoice != 2) { if (menuChoice == 0) { sound_mc.gotoAndStop(1); } if (menuChoice == 1) { manage_mc.gotoAndStop(1); } mainMenu_mc.gotoAndStop(2); menuChoice = 2; } } on (release) { gotoAndStop(2); } } movieClip 314 { } movieClip 315 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 322 { } movieClip 323 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 330 { } movieClip 331 { frame 1 { stop(); } frame 2 { stop(); } } button 332 { on (rollOver) { if (menuChoice != 0) { if (menuChoice == 1) { letters_mc.gotoAndStop(1); } if (menuChoice == 2) { donation_mc.gotoAndStop(1); } if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } gallery_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { gotoAndStop(8); } } button 333 { on (rollOver) { if (menuChoice != 1) { if (menuChoice == 0) { gallery_mc.gotoAndStop(1); } if (menuChoice == 2) { donation_mc.gotoAndStop(1); } if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } letters_mc.gotoAndStop(2); menuChoice = 1; } } on (release) { gotoAndStop(12); } } button 334 { on (rollOver) { if (menuChoice != 2) { if (menuChoice == 0) { gallery_mc.gotoAndStop(1); } if (menuChoice == 1) { letters_mc.gotoAndStop(1); } if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } donation_mc.gotoAndStop(2); menuChoice = 2; } } on (release) { gotoAndStop(6); } } button 335 { on (rollOver) { if (menuChoice != 3) { if (menuChoice == 0) { gallery_mc.gotoAndStop(1); } if (menuChoice == 1) { letters_mc.gotoAndStop(1); } if (menuChoice == 2) { donation_mc.gotoAndStop(1); } mainMenu_mc.gotoAndStop(2); menuChoice = 3; } } on (release) { gotoAndStop(2); } } // unknown tag 88 length 44 movieClip 342 { } movieClip 344 { } movieClip 346 { } movieClip 348 { } movieClip 350 { } movieClip 352 { } movieClip 354 { } movieClip 356 { } movieClip 358 { } movieClip 360 { } movieClip 362 { } movieClip 364 { } movieClip 366 { } movieClip 368 { } movieClip 369 { frame 1 { function refreshIcons() { if (_root.saveData.data.slot1GameStart) { gameStart_mc._alpha = 100; if (_root.saveData.data.slot1CharLvl >= 1) { swordFound_mc._alpha = 100; } else { swordFound_mc._alpha = 0; } if (_root.saveData.data.slot1CharLvl >= 2) { shieldFound_mc._alpha = 100; } else { shieldFound_mc._alpha = 0; } if (_root.saveData.data.slot1CharLvl >= 3) { armorFound_mc._alpha = 100; } else { armorFound_mc._alpha = 0; } if (_root.saveData.data.slot1Orb1) { orb1Found_mc._alpha = 100; } else { orb1Found_mc._alpha = 0; } if (_root.saveData.data.slot1Orb2) { orb2Found_mc._alpha = 100; } else { orb2Found_mc._alpha = 0; } if (_root.saveData.data.slot1Orb3) { orb3Found_mc._alpha = 100; } else { orb3Found_mc._alpha = 0; } } else { gameStart_mc._alpha = 0; swordFound_mc._alpha = 0; shieldFound_mc._alpha = 0; armorFound_mc._alpha = 0; orb1Found_mc._alpha = 0; orb2Found_mc._alpha = 0; orb3Found_mc._alpha = 0; } if (_root.saveData.data.slot1GameResets >= 1) { boss1_mc._alpha = 100; } else { boss1_mc._alpha = 0; } if (_root.saveData.data.slot1GameResets >= 2) { boss2_mc._alpha = 100; } else { boss2_mc._alpha = 0; } if (_root.saveData.data.slot1GameResets >= 3) { boss3_mc._alpha = 100; } else { boss3_mc._alpha = 0; } if (_root.saveData.data.slot1GoodEnd) { princess_mc._alpha = 100; } else { princess_mc._alpha = 0; } if (_root.saveData.data.slot1Crystal) { crystal_mc._alpha = 100; } else { crystal_mc._alpha = 0; } if (_root.saveData.data.slot1GameResets >= 1) { note1_mc._alpha = 100; } else { note1_mc._alpha = 0; } if (_root.saveData.data.slot1GameResets >= 4) { note2_mc._alpha = 100; } else { note2_mc._alpha = 0; } if (_root.saveData.data.slot1GoodEnd) { note3_mc._alpha = 100; } else { note3_mc._alpha = 0; } if (_root.saveData.data.slot1UltraEnd) { note4_mc._alpha = 100; } else { note4_mc._alpha = 0; } } refreshIcons(); } } movieClip 371 { frame 1 { function refreshIcons() { if (_root.saveData.data.slot2GameStart) { gameStart_mc._alpha = 100; if (_root.saveData.data.slot2CharLvl >= 1) { swordFound_mc._alpha = 100; } else { swordFound_mc._alpha = 0; } if (_root.saveData.data.slot2CharLvl >= 2) { shieldFound_mc._alpha = 100; } else { shieldFound_mc._alpha = 0; } if (_root.saveData.data.slot2CharLvl >= 3) { armorFound_mc._alpha = 100; } else { armorFound_mc._alpha = 0; } if (_root.saveData.data.slot2Orb1) { orb1Found_mc._alpha = 100; } else { orb1Found_mc._alpha = 0; } if (_root.saveData.data.slot2Orb2) { orb2Found_mc._alpha = 100; } else { orb2Found_mc._alpha = 0; } if (_root.saveData.data.slot2Orb3) { orb3Found_mc._alpha = 100; } else { orb3Found_mc._alpha = 0; } } else { gameStart_mc._alpha = 0; swordFound_mc._alpha = 0; shieldFound_mc._alpha = 0; armorFound_mc._alpha = 0; orb1Found_mc._alpha = 0; orb2Found_mc._alpha = 0; orb3Found_mc._alpha = 0; } if (_root.saveData.data.slot2GameResets >= 1) { boss1_mc._alpha = 100; } else { boss1_mc._alpha = 0; } if (_root.saveData.data.slot2GameResets >= 2) { boss2_mc._alpha = 100; } else { boss2_mc._alpha = 0; } if (_root.saveData.data.slot2GameResets >= 3) { boss3_mc._alpha = 100; } else { boss3_mc._alpha = 0; } if (_root.saveData.data.slot2GoodEnd) { princess_mc._alpha = 100; } else { princess_mc._alpha = 0; } if (_root.saveData.data.slot2Crystal) { crystal_mc._alpha = 100; } else { crystal_mc._alpha = 0; } if (_root.saveData.data.slot2GameResets >= 1) { note1_mc._alpha = 100; } else { note1_mc._alpha = 0; } if (_root.saveData.data.slot2GameResets >= 4) { note2_mc._alpha = 100; } else { note2_mc._alpha = 0; } if (_root.saveData.data.slot2GoodEnd) { note3_mc._alpha = 100; } else { note3_mc._alpha = 0; } if (_root.saveData.data.slot2UltraEnd) { note4_mc._alpha = 100; } else { note4_mc._alpha = 0; } } refreshIcons(); } } movieClip 373 { frame 1 { function refreshIcons() { if (_root.saveData.data.slot3GameStart) { gameStart_mc._alpha = 100; if (_root.saveData.data.slot3CharLvl >= 1) { swordFound_mc._alpha = 100; } else { swordFound_mc._alpha = 0; } if (_root.saveData.data.slot3CharLvl >= 2) { shieldFound_mc._alpha = 100; } else { shieldFound_mc._alpha = 0; } if (_root.saveData.data.slot3CharLvl >= 3) { armorFound_mc._alpha = 100; } else { armorFound_mc._alpha = 0; } if (_root.saveData.data.slot3Orb1) { orb1Found_mc._alpha = 100; } else { orb1Found_mc._alpha = 0; } if (_root.saveData.data.slot3Orb2) { orb2Found_mc._alpha = 100; } else { orb2Found_mc._alpha = 0; } if (_root.saveData.data.slot3Orb3) { orb3Found_mc._alpha = 100; } else { orb3Found_mc._alpha = 0; } } else { gameStart_mc._alpha = 0; swordFound_mc._alpha = 0; shieldFound_mc._alpha = 0; armorFound_mc._alpha = 0; orb1Found_mc._alpha = 0; orb2Found_mc._alpha = 0; orb3Found_mc._alpha = 0; } if (_root.saveData.data.slot3GameResets >= 1) { boss1_mc._alpha = 100; } else { boss1_mc._alpha = 0; } if (_root.saveData.data.slot3GameResets >= 2) { boss2_mc._alpha = 100; } else { boss2_mc._alpha = 0; } if (_root.saveData.data.slot3GameResets >= 3) { boss3_mc._alpha = 100; } else { boss3_mc._alpha = 0; } if (_root.saveData.data.slot3GoodEnd) { princess_mc._alpha = 100; } else { princess_mc._alpha = 0; } if (_root.saveData.data.slot3Crystal) { crystal_mc._alpha = 100; } else { crystal_mc._alpha = 0; } if (_root.saveData.data.slot3GameResets >= 1) { note1_mc._alpha = 100; } else { note1_mc._alpha = 0; } if (_root.saveData.data.slot3GameResets >= 4) { note2_mc._alpha = 100; } else { note2_mc._alpha = 0; } if (_root.saveData.data.slot3GoodEnd) { note3_mc._alpha = 100; } else { note3_mc._alpha = 0; } if (_root.saveData.data.slot3UltraEnd) { note4_mc._alpha = 100; } else { note4_mc._alpha = 0; } } refreshIcons(); } } movieClip 380 { } movieClip 381 { frame 1 { stop(); } frame 2 { stop(); } } button 382 { on (rollOver) { if (menuChoice != 0) { if (menuChoice == 1) { slot2_mc.gotoAndStop(1); } if (menuChoice == 2) { slot3_mc.gotoAndStop(1); } slot1_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { _root.saveSlot = menuChoice + 1; if (_root.saveSlot == 1) { _root.gameStarted = _root.saveData.data.slot1GameStart; _root.characterLevel = _root.saveData.data.slot1CharLvl; _root.orb1Get = _root.saveData.data.slot1Orb1; _root.orb2Get = _root.saveData.data.slot1Orb2; _root.orb3Get = _root.saveData.data.slot1Orb3; _root.plotProgress = _root.saveData.data.slot1PlotProgress; _root.playerX = _root.saveData.data.slot1PlayerX; _root.playerY = _root.saveData.data.slot1PlayerY; _root.playerRoom = _root.saveData.data.slot1PlayerRoom; _root.gameResets = _root.saveData.data.slot1GameResets; _root.playerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.switch7 = _root.saveData.data.slot1Switch7; _root.openingViewed = _root.saveData.data.slot1OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot1DragonKilled; _root.diedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot1Orb3Revealed; } if (_root.saveSlot == 2) { _root.gameStarted = _root.saveData.data.slot2GameStart; _root.characterLevel = _root.saveData.data.slot2CharLvl; _root.orb1Get = _root.saveData.data.slot2Orb1; _root.orb2Get = _root.saveData.data.slot2Orb2; _root.orb3Get = _root.saveData.data.slot2Orb3; _root.plotProgress = _root.saveData.data.slot2PlotProgress; _root.playerX = _root.saveData.data.slot2PlayerX; _root.playerY = _root.saveData.data.slot2PlayerY; _root.playerRoom = _root.saveData.data.slot2PlayerRoom; _root.gameResets = _root.saveData.data.slot2GameResets; _root.playerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.switch7 = _root.saveData.data.slot2Switch7; _root.openingViewed = _root.saveData.data.slot2OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot2DragonKilled; _root.diedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.gameStarted = _root.saveData.data.slot3GameStart; _root.characterLevel = _root.saveData.data.slot3CharLvl; _root.orb1Get = _root.saveData.data.slot3Orb1; _root.orb2Get = _root.saveData.data.slot3Orb2; _root.orb3Get = _root.saveData.data.slot3Orb3; _root.plotProgress = _root.saveData.data.slot3PlotProgress; _root.playerX = _root.saveData.data.slot3PlayerX; _root.playerY = _root.saveData.data.slot3PlayerY; _root.playerRoom = _root.saveData.data.slot3PlayerRoom; _root.gameResets = _root.saveData.data.slot3GameResets; _root.playerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.switch7 = _root.saveData.data.slot3Switch7; _root.openingViewed = _root.saveData.data.slot3OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot3DragonKilled; _root.diedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } gotoAndStop(13); } } button 383 { on (rollOver) { if (menuChoice != 1) { if (menuChoice == 0) { slot1_mc.gotoAndStop(1); } if (menuChoice == 2) { slot3_mc.gotoAndStop(1); } slot2_mc.gotoAndStop(2); menuChoice = 1; } } on (release) { _root.saveSlot = menuChoice + 1; if (_root.saveSlot == 1) { _root.gameStarted = _root.saveData.data.slot1GameStart; _root.characterLevel = _root.saveData.data.slot1CharLvl; _root.orb1Get = _root.saveData.data.slot1Orb1; _root.orb2Get = _root.saveData.data.slot1Orb2; _root.orb3Get = _root.saveData.data.slot1Orb3; _root.plotProgress = _root.saveData.data.slot1PlotProgress; _root.playerX = _root.saveData.data.slot1PlayerX; _root.playerY = _root.saveData.data.slot1PlayerY; _root.playerRoom = _root.saveData.data.slot1PlayerRoom; _root.gameResets = _root.saveData.data.slot1GameResets; _root.playerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.switch7 = _root.saveData.data.slot1Switch7; _root.openingViewed = _root.saveData.data.slot1OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot1DragonKilled; _root.diedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot1Orb3Revealed; } if (_root.saveSlot == 2) { _root.gameStarted = _root.saveData.data.slot2GameStart; _root.characterLevel = _root.saveData.data.slot2CharLvl; _root.orb1Get = _root.saveData.data.slot2Orb1; _root.orb2Get = _root.saveData.data.slot2Orb2; _root.orb3Get = _root.saveData.data.slot2Orb3; _root.plotProgress = _root.saveData.data.slot2PlotProgress; _root.playerX = _root.saveData.data.slot2PlayerX; _root.playerY = _root.saveData.data.slot2PlayerY; _root.playerRoom = _root.saveData.data.slot2PlayerRoom; _root.gameResets = _root.saveData.data.slot2GameResets; _root.playerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.switch7 = _root.saveData.data.slot2Switch7; _root.openingViewed = _root.saveData.data.slot2OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot2DragonKilled; _root.diedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.gameStarted = _root.saveData.data.slot3GameStart; _root.characterLevel = _root.saveData.data.slot3CharLvl; _root.orb1Get = _root.saveData.data.slot3Orb1; _root.orb2Get = _root.saveData.data.slot3Orb2; _root.orb3Get = _root.saveData.data.slot3Orb3; _root.plotProgress = _root.saveData.data.slot3PlotProgress; _root.playerX = _root.saveData.data.slot3PlayerX; _root.playerY = _root.saveData.data.slot3PlayerY; _root.playerRoom = _root.saveData.data.slot3PlayerRoom; _root.gameResets = _root.saveData.data.slot3GameResets; _root.playerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.switch7 = _root.saveData.data.slot3Switch7; _root.openingViewed = _root.saveData.data.slot3OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot3DragonKilled; _root.diedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } gotoAndStop(13); } } button 384 { on (rollOver) { if (menuChoice != 2) { if (menuChoice == 1) { slot2_mc.gotoAndStop(1); } if (menuChoice == 0) { slot1_mc.gotoAndStop(1); } slot3_mc.gotoAndStop(2); menuChoice = 2; } } on (release) { _root.saveSlot = menuChoice + 1; if (_root.saveSlot == 1) { _root.gameStarted = _root.saveData.data.slot1GameStart; _root.characterLevel = _root.saveData.data.slot1CharLvl; _root.orb1Get = _root.saveData.data.slot1Orb1; _root.orb2Get = _root.saveData.data.slot1Orb2; _root.orb3Get = _root.saveData.data.slot1Orb3; _root.plotProgress = _root.saveData.data.slot1PlotProgress; _root.playerX = _root.saveData.data.slot1PlayerX; _root.playerY = _root.saveData.data.slot1PlayerY; _root.playerRoom = _root.saveData.data.slot1PlayerRoom; _root.gameResets = _root.saveData.data.slot1GameResets; _root.playerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.switch7 = _root.saveData.data.slot1Switch7; _root.openingViewed = _root.saveData.data.slot1OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot1DragonKilled; _root.diedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot1Orb3Revealed; } if (_root.saveSlot == 2) { _root.gameStarted = _root.saveData.data.slot2GameStart; _root.characterLevel = _root.saveData.data.slot2CharLvl; _root.orb1Get = _root.saveData.data.slot2Orb1; _root.orb2Get = _root.saveData.data.slot2Orb2; _root.orb3Get = _root.saveData.data.slot2Orb3; _root.plotProgress = _root.saveData.data.slot2PlotProgress; _root.playerX = _root.saveData.data.slot2PlayerX; _root.playerY = _root.saveData.data.slot2PlayerY; _root.playerRoom = _root.saveData.data.slot2PlayerRoom; _root.gameResets = _root.saveData.data.slot2GameResets; _root.playerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.switch7 = _root.saveData.data.slot2Switch7; _root.openingViewed = _root.saveData.data.slot2OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot2DragonKilled; _root.diedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.gameStarted = _root.saveData.data.slot3GameStart; _root.characterLevel = _root.saveData.data.slot3CharLvl; _root.orb1Get = _root.saveData.data.slot3Orb1; _root.orb2Get = _root.saveData.data.slot3Orb2; _root.orb3Get = _root.saveData.data.slot3Orb3; _root.plotProgress = _root.saveData.data.slot3PlotProgress; _root.playerX = _root.saveData.data.slot3PlayerX; _root.playerY = _root.saveData.data.slot3PlayerY; _root.playerRoom = _root.saveData.data.slot3PlayerRoom; _root.gameResets = _root.saveData.data.slot3GameResets; _root.playerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.switch7 = _root.saveData.data.slot3Switch7; _root.openingViewed = _root.saveData.data.slot3OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot3DragonKilled; _root.diedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } gotoAndStop(13); } } movieClip 386 { } // unknown tag 88 length 44 movieClip 392 { frame 1 { if (_root.gallery1 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 395 { frame 1 { if (_root.gallery2 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 398 { frame 1 { if (_root.gallery3 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 401 { frame 1 { if (_root.gallery4 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 404 { frame 1 { if (_root.gallery5 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 407 { frame 1 { if (_root.gallery6 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } // unknown tag 88 length 44 movieClip 412 { } movieClip 429 { } movieClip 430 { } movieClip 447 { } movieClip 448 { } movieClip 463 { } movieClip 464 { } movieClip 491 { frame 1 { function onEnterFrame() { gotoAndStop(_parent.colNum * 3 + _parent.rowNum + 2); } } frame 2 { if (_root.gallery1) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 3 { if (_root.gallery2) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 4 { if (_root.gallery3) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 5 { if (_root.gallery4) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 6 { if (_root.gallery5) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 7 { if (_root.gallery6) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 8 { if (_root.gallery7) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 9 { if (_root.gallery8) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 10 { if (_root.gallery9) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 11 { if (_root.gallery10) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 12 { if (_root.gallery11) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 13 { if (_root.gallery12) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 14 { if (_root.gallery13) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 15 { if (_root.gallery14) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 16 { if (_root.gallery15) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 17 { if (_root.gallery16) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 18 { if (_root.gallery17) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 19 { if (_root.gallery18) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 20 { if (_root.gallery19) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 21 { if (_root.gallery20) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 22 { if (_root.gallery21) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 23 { if (_root.gallery22) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 24 { if (_root.gallery23) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 25 { if (_root.gallery24) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 26 { if (_root.gallery25) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 27 { if (_root.gallery26) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 28 { if (_root.gallery27) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 29 { if (_root.gallery28) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 30 { if (_root.gallery29) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 31 { if (_root.gallery30) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 32 { if (_root.gallery31) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 33 { if (_root.gallery32) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 34 { if (_root.gallery33) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 35 { if (_root.gallery34) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 36 { if (_root.gallery35) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 37 { if (_root.gallery36) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 38 { if (_root.gallery5B) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 39 { if (_root.gallery5C) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } frame 40 { if (_root.gallery5D) { locked_mc._alpha = 0; } else { locked_mc._alpha = 100; } } } movieClip 493 { frame 1 { if (_root.gallery7 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 495 { frame 1 { if (_root.gallery8 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 497 { frame 1 { if (_root.gallery9 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 499 { frame 1 { if (_root.gallery10 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 501 { frame 1 { if (_root.gallery11 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 503 { frame 1 { if (_root.gallery12 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 505 { frame 1 { if (_root.gallery13 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 507 { frame 1 { if (_root.gallery14 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 509 { frame 1 { if (_root.gallery15 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 511 { frame 1 { if (_root.gallery16 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 513 { frame 1 { if (_root.gallery17 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 515 { frame 1 { if (_root.gallery18 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 517 { frame 1 { if (_root.gallery19 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 519 { frame 1 { if (_root.gallery20 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 521 { frame 1 { if (_root.gallery21 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 523 { frame 1 { if (_root.gallery22 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 525 { frame 1 { if (_root.gallery23 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 527 { frame 1 { if (_root.gallery24 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 529 { frame 1 { if (_root.gallery25 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 531 { frame 1 { if (_root.gallery26 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 533 { frame 1 { if (_root.gallery27 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 535 { frame 1 { if (_root.gallery28 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 537 { frame 1 { if (_root.gallery29 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 539 { frame 1 { if (_root.gallery30 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 541 { frame 1 { if (_root.gallery31 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 543 { frame 1 { if (_root.gallery32 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 545 { frame 1 { if (_root.gallery33 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 547 { frame 1 { if (_root.gallery34 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 549 { frame 1 { if (_root.gallery35 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 551 { frame 1 { if (_root.gallery36 == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 554 { frame 1 { if (_root.gallery5B == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 556 { frame 1 { if (_root.gallery5C == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 558 { frame 1 { if (_root.gallery5D == false) { stop(); } else { nextFrame(); } } frame 2 { stop(); } } movieClip 560 { frame 1 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { if (colNum == 13) { _root.spaceClear = false; _parent.gotoAndPlay(5); } else { zoomed = !zoomed; if (zoomed) { fullSize_mc._alpha = 100; } else { fullSize_mc._alpha = 0; } } } _root.spaceClear = false; } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40) || Key.isDown(37) || Key.isDown(39)) { if (arrowTimer > 0) { --arrowTimer; } else { arrowTimer = 10; if (Key.isDown(38) && !zoomed && colNum != 13) { rowNum = (rowNum + 2) % 3; } if (Key.isDown(40) && !zoomed && colNum != 13) { rowNum = (rowNum + 1) % 3; } if (Key.isDown(37) && colNum > 0 && !zoomed) { --colNum; } if (Key.isDown(39) && colNum < 13 && !zoomed) { ++colNum; if (colNum == 13) { rowNum = 1; } } if (Key.isDown(37) && (colNum > 0 || rowNum > 0) && zoomed) { if (rowNum == 0) { --colNum; rowNum = 2; } else { --rowNum; } } if (Key.isDown(39) && (colNum < 12 || rowNum < 2) && zoomed) { if (rowNum == 2) { ++colNum; rowNum = 0; } else { ++rowNum; } } } } else { arrowTimer = 0; } if (!zoomed) { arrows_mc._y = rowNum * 200 + 86; arrows_mc._x = (colNum % 2) * 284 + 22; gotoAndStop((colNum - colNum % 2) / 2 + 2); } } var rowNum = 0; var colNum = 0; var zoomed = false; var arrowTimer = 0; nextFrame(); } } movieClip 573 { } movieClip 574 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 582 { } movieClip 583 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 591 { } movieClip 592 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 595 { frame 1 { stop(); } } movieClip 602 { } movieClip 603 { frame 1 { stop(); } frame 2 { stop(); } } button 604 { on (rollOver) { if (menuChoice != 3) { if (menuChoice == 0) { blackLetter_mc.gotoAndStop(2); } if (menuChoice == 1) { burntLetter_mc.gotoAndStop(2); } if (menuChoice == 2) { bloodLetter_mc.gotoAndStop(2); } mainMenu_mc.gotoAndStop(2); menuChoice = 3; } } on (release) { gotoAndStop(2); } } button 605 { on (rollOver) { if (menuChoice != 0 && letter1Unlocked) { if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } if (menuChoice == 1) { burntLetter_mc.gotoAndStop(2); } if (menuChoice == 2) { bloodLetter_mc.gotoAndStop(2); } blackLetter_mc.gotoAndStop(3); menuChoice = 0; } } on (release) { gotoAndStop(9); } } button 606 { on (rollOver) { if (menuChoice != 1 && letter2Unlocked) { if (menuChoice == 0) { blackLetter_mc.gotoAndStop(2); } if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } if (menuChoice == 2) { bloodLetter_mc.gotoAndStop(2); } burntLetter_mc.gotoAndStop(3); menuChoice = 1; } } on (release) { gotoAndStop(10); } } button 607 { on (rollOver) { if (menuChoice != 2 && letter3Unlocked) { if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } if (menuChoice == 1) { burntLetter_mc.gotoAndStop(2); } if (menuChoice == 0) { blackLetter_mc.gotoAndStop(2); } bloodLetter_mc.gotoAndStop(3); menuChoice = 2; } } on (release) { gotoAndStop(11); } } movieClip 615 { } movieClip 616 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 623 { } movieClip 624 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 631 { } movieClip 632 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 639 { } movieClip 640 { frame 1 { stop(); } frame 2 { stop(); } } button 641 { on (rollOver) { if (menuChoice != 0) { if (menuChoice == 1) { delete_mc.gotoAndStop(1); } if (menuChoice == 2) { copy_mc.gotoAndStop(1); } if (menuChoice == 3) { cancel_mc.gotoAndStop(1); } load_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { _parent.gotoAndStop(2); } } button 642 { on (rollOver) { if (menuChoice != 1) { if (menuChoice == 0) { load_mc.gotoAndStop(1); } if (menuChoice == 2) { copy_mc.gotoAndStop(1); } if (menuChoice == 3) { cancel_mc.gotoAndStop(1); } delete_mc.gotoAndStop(2); menuChoice = 1; } } on (release) { gotoAndStop(2); } } button 643 { on (rollOver) { if (menuChoice != 2) { if (menuChoice == 0) { load_mc.gotoAndStop(1); } if (menuChoice == 1) { delete_mc.gotoAndStop(1); } if (menuChoice == 3) { cancel_mc.gotoAndStop(1); } copy_mc.gotoAndStop(2); menuChoice = 2; } } on (release) { gotoAndStop(3); } } button 644 { on (rollOver) { if (menuChoice != 3) { if (menuChoice == 0) { load_mc.gotoAndStop(1); } if (menuChoice == 1) { delete_mc.gotoAndStop(1); } if (menuChoice == 2) { copy_mc.gotoAndStop(1); } cancel_mc.gotoAndStop(2); menuChoice = 3; } } on (release) { _parent.gotoAndStop(7); } } movieClip 656 { } movieClip 657 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 664 { } movieClip 665 { frame 1 { stop(); } frame 2 { stop(); } } button 666 { on (rollOver) { if (menuChoice != 0) { yes_mc.gotoAndStop(1); no_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { gotoAndStop(1); } } button 667 { on (rollOver) { if (menuChoice != 1) { yes_mc.gotoAndStop(2); no_mc.gotoAndStop(1); menuChoice = 1; } } on (release) { if (_root.saveSlot == 1) { _root.saveData.data.slot1GameStart = false; _root.saveData.data.slot1CharLvl = 0; _root.saveData.data.slot1Orb1 = false; _root.saveData.data.slot1Orb2 = false; _root.saveData.data.slot1Orb3 = false; _root.saveData.data.slot1PlotProgress = 0; _root.saveData.data.slot1PlayerX = 0; _root.saveData.data.slot1PlayerY = 0; _root.saveData.data.slot1PlayerRoom = 0; _root.saveData.data.slot1GameResets = 0; _root.saveData.data.slot1GoodEnd = false; _root.saveData.data.slot1Crystal = false; _root.saveData.data.slot1UltraEnd = false; _root.saveData.data.slot1PlayerMoveMode = 1; _root.saveData.data.slot1Switch7 = false; _root.saveData.data.slot1OpeningViewed = false; _root.saveData.data.slot1Scene1Viewed = false; _root.saveData.data.slot1Scene2Viewed = false; _root.saveData.data.slot1Scene9Viewed = false; _root.saveData.data.slot1Scene12Viewed = false; _root.saveData.data.slot1Scene14Viewed = false; _root.saveData.data.slot1Scene15Viewed = false; _root.saveData.data.slot1Scene16Viewed = false; _root.saveData.data.slot1Scene28Viewed = false; _root.saveData.data.slot1Scene30Viewed = false; _root.saveData.data.slot1Scene34Viewed = false; _root.saveData.data.slot1Scene36Viewed = false; _root.saveData.data.slot1Scene40Viewed = false; _root.saveData.data.slot1Scene52Viewed = false; _root.saveData.data.slot1Scene53Viewed = false; _root.saveData.data.slot1Scene54Viewed = false; _root.saveData.data.slot1Scene63Viewed = false; _root.saveData.data.slot1Scene69Viewed = false; _root.saveData.data.slot1Scene78Viewed = false; _root.saveData.data.slot1SecretIntroViewed = false; _root.saveData.data.slot1DiedOnDragon = false; _root.saveData.data.slot1DragonKilled = 0; _root.saveData.data.slot1DiedOnSpider = false; _root.saveData.data.slot1DiedOnGhost = false; _root.saveData.data.slot1DiedOnDemon = false; _root.saveData.data.slot1Orb1Revealed = false; _root.saveData.data.slot1Orb2Revealed = false; _root.saveData.data.slot1Orb3Revealed = false; _parent.saveSlot1_mc.refreshIcons(); } if (_root.saveSlot == 2) { _root.saveData.data.slot2GameStart = false; _root.saveData.data.slot2CharLvl = 0; _root.saveData.data.slot2Orb1 = false; _root.saveData.data.slot2Orb2 = false; _root.saveData.data.slot2Orb3 = false; _root.saveData.data.slot2PlotProgress = 0; _root.saveData.data.slot2PlayerX = 0; _root.saveData.data.slot2PlayerY = 0; _root.saveData.data.slot2PlayerRoom = 0; _root.saveData.data.slot2GameResets = 0; _root.saveData.data.slot2GoodEnd = false; _root.saveData.data.slot2Crystal = false; _root.saveData.data.slot2UltraEnd = false; _root.saveData.data.slot2PlayerMoveMode = 1; _root.saveData.data.slot2Switch7 = false; _root.saveData.data.slot2OpeningViewed = false; _root.saveData.data.slot2Scene1Viewed = false; _root.saveData.data.slot2Scene2Viewed = false; _root.saveData.data.slot2Scene9Viewed = false; _root.saveData.data.slot2Scene12Viewed = false; _root.saveData.data.slot2Scene14Viewed = false; _root.saveData.data.slot2Scene15Viewed = false; _root.saveData.data.slot2Scene16Viewed = false; _root.saveData.data.slot2Scene28Viewed = false; _root.saveData.data.slot2Scene30Viewed = false; _root.saveData.data.slot2Scene34Viewed = false; _root.saveData.data.slot2Scene36Viewed = false; _root.saveData.data.slot2Scene40Viewed = false; _root.saveData.data.slot2Scene52Viewed = false; _root.saveData.data.slot2Scene53Viewed = false; _root.saveData.data.slot2Scene54Viewed = false; _root.saveData.data.slot2Scene63Viewed = false; _root.saveData.data.slot2Scene69Viewed = false; _root.saveData.data.slot2Scene78Viewed = false; _root.saveData.data.slot2SecretIntroViewed = false; _root.saveData.data.slot2DiedOnDragon = false; _root.saveData.data.slot2DragonKilled = 0; _root.saveData.data.slot2DiedOnSpider = false; _root.saveData.data.slot2DiedOnGhost = false; _root.saveData.data.slot2DiedOnDemon = false; _root.saveData.data.slot2Orb1Revealed = false; _root.saveData.data.slot2Orb2Revealed = false; _root.saveData.data.slot2Orb3Revealed = false; _parent.saveSlot2_mc.refreshIcons(); } if (_root.saveSlot == 3) { _root.saveData.data.slot3GameStart = false; _root.saveData.data.slot3CharLvl = 0; _root.saveData.data.slot3Orb1 = false; _root.saveData.data.slot3Orb2 = false; _root.saveData.data.slot3Orb3 = false; _root.saveData.data.slot3PlotProgress = 0; _root.saveData.data.slot3PlayerX = 0; _root.saveData.data.slot3PlayerY = 0; _root.saveData.data.slot3PlayerRoom = 0; _root.saveData.data.slot3GameResets = 0; _root.saveData.data.slot3GoodEnd = false; _root.saveData.data.slot3Crystal = false; _root.saveData.data.slot3UltraEnd = false; _root.saveData.data.slot3PlayerMoveMode = 1; _root.saveData.data.slot3Switch7 = false; _root.saveData.data.slot3OpeningViewed = false; _root.saveData.data.slot3Scene1Viewed = false; _root.saveData.data.slot3Scene2Viewed = false; _root.saveData.data.slot3Scene9Viewed = false; _root.saveData.data.slot3Scene12Viewed = false; _root.saveData.data.slot3Scene14Viewed = false; _root.saveData.data.slot3Scene15Viewed = false; _root.saveData.data.slot3Scene16Viewed = false; _root.saveData.data.slot3Scene28Viewed = false; _root.saveData.data.slot3Scene30Viewed = false; _root.saveData.data.slot3Scene34Viewed = false; _root.saveData.data.slot3Scene36Viewed = false; _root.saveData.data.slot3Scene40Viewed = false; _root.saveData.data.slot3Scene52Viewed = false; _root.saveData.data.slot3Scene53Viewed = false; _root.saveData.data.slot3Scene54Viewed = false; _root.saveData.data.slot3Scene63Viewed = false; _root.saveData.data.slot3Scene69Viewed = false; _root.saveData.data.slot3Scene78Viewed = false; _root.saveData.data.slot3SecretIntroViewed = false; _root.saveData.data.slot3DiedOnDragon = false; _root.saveData.data.slot3DragonKilled = 0; _root.saveData.data.slot3DiedOnSpider = false; _root.saveData.data.slot3DiedOnGhost = false; _root.saveData.data.slot3DiedOnDemon = false; _root.saveData.data.slot3Orb1Revealed = false; _root.saveData.data.slot3Orb2Revealed = false; _root.saveData.data.slot3Orb3Revealed = false; _parent.saveSlot3_mc.refreshIcons(); } _root.saveData.flush(); _parent.gotoAndStop(7); } } movieClip 674 { frame 1 { if (_root.saveSlot == 1) { nextFrame(); } stop(); } frame 2 { stop(); } } movieClip 680 { } movieClip 686 { } movieClip 687 { frame 1 { if (_root.saveSlot == 1) { nextFrame(); } stop(); } frame 2 { stop(); } } movieClip 688 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 691 { frame 1 { if (_root.saveSlot != 3) { nextFrame(); } stop(); } frame 2 { stop(); } } movieClip 697 { } movieClip 698 { frame 1 { if (_root.saveSlot != 3) { nextFrame(); } stop(); } frame 2 { stop(); } } movieClip 699 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 706 { } movieClip 707 { frame 1 { stop(); } frame 2 { stop(); } } button 708 { on (rollOver) { if (menuChoice != 0) { if (menuChoice == 1) { copy2_mc.gotoAndStop(1); } if (menuChoice == 2) { cancel_mc.gotoAndStop(1); } copy1_mc.gotoAndStop(2); menuChoice = 0; } } on (release) { if (_root.saveSlot == 1) { _root.saveData.data.slot2GameStart = _root.saveData.data.slot1GameStart; _root.saveData.data.slot2CharLvl = _root.saveData.data.slot1CharLvl; _root.saveData.data.slot2Orb1 = _root.saveData.data.slot1Orb1; _root.saveData.data.slot2Orb2 = _root.saveData.data.slot1Orb2; _root.saveData.data.slot2Orb3 = _root.saveData.data.slot1Orb3; _root.saveData.data.slot2PlotProgress = _root.saveData.data.slot1PlotProgress; _root.saveData.data.slot2PlayerX = _root.saveData.data.slot1PlayerX; _root.saveData.data.slot2PlayerY = _root.saveData.data.slot1PlayerY; _root.saveData.data.slot2PlayerRoom = _root.saveData.data.slot1PlayerRoom; _root.saveData.data.slot2GameResets = _root.saveData.data.slot1GameResets; _root.saveData.data.slot2GoodEnd = _root.saveData.data.slot1GoodEnd; _root.saveData.data.slot2Crystal = _root.saveData.data.slot1Crystal; _root.saveData.data.slot2UltraEnd = _root.saveData.data.slot1UltraEnd; _root.saveData.data.slot2PlayerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.saveData.data.slot2Switch7 = _root.saveData.data.slot1Switch7; _root.saveData.data.slot2OpeningViewed = _root.saveData.data.slot1OpeningViewed; _root.saveData.data.slot2Scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.saveData.data.slot2Scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.saveData.data.slot2Scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.saveData.data.slot2Scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.saveData.data.slot2Scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.saveData.data.slot2Scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.saveData.data.slot2Scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.saveData.data.slot2Scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.saveData.data.slot2Scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.saveData.data.slot2Scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.saveData.data.slot2Scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.saveData.data.slot2Scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.saveData.data.slot2Scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.saveData.data.slot2Scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.saveData.data.slot2Scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.saveData.data.slot2Scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.saveData.data.slot2Scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.saveData.data.slot2Scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.saveData.data.slot2SecretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.saveData.data.slot2DiedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.saveData.data.slot2DragonKilled = _root.saveData.data.slot1DragonKilled; _root.saveData.data.slot2DiedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.saveData.data.slot2DiedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.saveData.data.slot2DiedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.saveData.data.slot2Orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.saveData.data.slot2Orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.saveData.data.slot2Orb3Revealed = _root.saveData.data.slot1Orb3Revealed; _parent.saveSlot2_mc.refreshIcons(); } if (_root.saveSlot == 2) { _root.saveData.data.slot1GameStart = _root.saveData.data.slot2GameStart; _root.saveData.data.slot1CharLvl = _root.saveData.data.slot2CharLvl; _root.saveData.data.slot1Orb1 = _root.saveData.data.slot2Orb1; _root.saveData.data.slot1Orb2 = _root.saveData.data.slot2Orb2; _root.saveData.data.slot1Orb3 = _root.saveData.data.slot2Orb3; _root.saveData.data.slot1PlotProgress = _root.saveData.data.slot2PlotProgress; _root.saveData.data.slot1PlayerX = _root.saveData.data.slot2PlayerX; _root.saveData.data.slot1PlayerY = _root.saveData.data.slot2PlayerY; _root.saveData.data.slot1PlayerRoom = _root.saveData.data.slot2PlayerRoom; _root.saveData.data.slot1GameResets = _root.saveData.data.slot2GameResets; _root.saveData.data.slot1GoodEnd = _root.saveData.data.slot2GoodEnd; _root.saveData.data.slot1Crystal = _root.saveData.data.slot2Crystal; _root.saveData.data.slot1UltraEnd = _root.saveData.data.slot2UltraEnd; _root.saveData.data.slot1PlayerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.saveData.data.slot1Switch7 = _root.saveData.data.slot2Switch7; _root.saveData.data.slot1OpeningViewed = _root.saveData.data.slot2OpeningViewed; _root.saveData.data.slot1Scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.saveData.data.slot1Scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.saveData.data.slot1Scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.saveData.data.slot1Scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.saveData.data.slot1Scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.saveData.data.slot1Scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.saveData.data.slot1Scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.saveData.data.slot1Scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.saveData.data.slot1Scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.saveData.data.slot1Scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.saveData.data.slot1Scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.saveData.data.slot1Scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.saveData.data.slot1Scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.saveData.data.slot1Scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.saveData.data.slot1Scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.saveData.data.slot1Scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.saveData.data.slot1Scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.saveData.data.slot1Scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.saveData.data.slot1SecretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.saveData.data.slot1DiedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.saveData.data.slot1DragonKilled = _root.saveData.data.slot2DragonKilled; _root.saveData.data.slot1DiedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.saveData.data.slot1DiedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.saveData.data.slot1DiedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.saveData.data.slot1Orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.saveData.data.slot1Orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.saveData.data.slot1Orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.saveData.data.slot1GameStart = _root.saveData.data.slot3GameStart; _root.saveData.data.slot1CharLvl = _root.saveData.data.slot3CharLvl; _root.saveData.data.slot1Orb1 = _root.saveData.data.slot3Orb1; _root.saveData.data.slot1Orb2 = _root.saveData.data.slot3Orb2; _root.saveData.data.slot1Orb3 = _root.saveData.data.slot3Orb3; _root.saveData.data.slot1PlotProgress = _root.saveData.data.slot3PlotProgress; _root.saveData.data.slot1PlayerX = _root.saveData.data.slot3PlayerX; _root.saveData.data.slot1PlayerY = _root.saveData.data.slot3PlayerY; _root.saveData.data.slot1PlayerRoom = _root.saveData.data.slot3PlayerRoom; _root.saveData.data.slot1GameResets = _root.saveData.data.slot3GameResets; _root.saveData.data.slot1GoodEnd = _root.saveData.data.slot3GoodEnd; _root.saveData.data.slot1Crystal = _root.saveData.data.slot3Crystal; _root.saveData.data.slot1UltraEnd = _root.saveData.data.slot3UltraEnd; _root.saveData.data.slot1PlayerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.saveData.data.slot1Switch7 = _root.saveData.data.slot3Switch7; _root.saveData.data.slot1OpeningViewed = _root.saveData.data.slot3OpeningViewed; _root.saveData.data.slot1Scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.saveData.data.slot1Scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.saveData.data.slot1Scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.saveData.data.slot1Scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.saveData.data.slot1Scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.saveData.data.slot1Scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.saveData.data.slot1Scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.saveData.data.slot1Scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.saveData.data.slot1Scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.saveData.data.slot1Scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.saveData.data.slot1Scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.saveData.data.slot1Scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.saveData.data.slot1Scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.saveData.data.slot1Scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.saveData.data.slot1Scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.saveData.data.slot1Scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.saveData.data.slot1Scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.saveData.data.slot1Scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.saveData.data.slot1SecretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.saveData.data.slot1DiedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.saveData.data.slot1DragonKilled = _root.saveData.data.slot3DragonKilled; _root.saveData.data.slot1DiedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.saveData.data.slot1DiedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.saveData.data.slot1DiedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.saveData.data.slot1Orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.saveData.data.slot1Orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.saveData.data.slot1Orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } _root.saveData.flush(); _parent.gotoAndStop(7); } } button 709 { on (rollOver) { if (menuChoice != 1) { if (menuChoice == 0) { copy1_mc.gotoAndStop(1); } if (menuChoice == 2) { cancel_mc.gotoAndStop(1); } copy2_mc.gotoAndStop(2); menuChoice = 1; } } on (release) { if (_root.saveSlot == 1) { _root.saveData.data.slot3GameStart = _root.saveData.data.slot1GameStart; _root.saveData.data.slot3CharLvl = _root.saveData.data.slot1CharLvl; _root.saveData.data.slot3Orb1 = _root.saveData.data.slot1Orb1; _root.saveData.data.slot3Orb2 = _root.saveData.data.slot1Orb2; _root.saveData.data.slot3Orb3 = _root.saveData.data.slot1Orb3; _root.saveData.data.slot3PlotProgress = _root.saveData.data.slot1PlotProgress; _root.saveData.data.slot3PlayerX = _root.saveData.data.slot1PlayerX; _root.saveData.data.slot3PlayerY = _root.saveData.data.slot1PlayerY; _root.saveData.data.slot3PlayerRoom = _root.saveData.data.slot1PlayerRoom; _root.saveData.data.slot3GameResets = _root.saveData.data.slot1GameResets; _root.saveData.data.slot3GoodEnd = _root.saveData.data.slot1GoodEnd; _root.saveData.data.slot3Crystal = _root.saveData.data.slot1Crystal; _root.saveData.data.slot3UltraEnd = _root.saveData.data.slot1UltraEnd; _root.saveData.data.slot3PlayerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.saveData.data.slot3Switch7 = _root.saveData.data.slot1Switch7; _root.saveData.data.slot3OpeningViewed = _root.saveData.data.slot1OpeningViewed; _root.saveData.data.slot3Scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.saveData.data.slot3Scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.saveData.data.slot3Scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.saveData.data.slot3Scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.saveData.data.slot3Scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.saveData.data.slot3Scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.saveData.data.slot3Scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.saveData.data.slot3Scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.saveData.data.slot3Scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.saveData.data.slot3Scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.saveData.data.slot3Scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.saveData.data.slot3Scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.saveData.data.slot3Scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.saveData.data.slot3Scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.saveData.data.slot3Scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.saveData.data.slot3Scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.saveData.data.slot3Scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.saveData.data.slot3Scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.saveData.data.slot3SecretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.saveData.data.slot3DiedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.saveData.data.slot3DragonKilled = _root.saveData.data.slot1DragonKilled; _root.saveData.data.slot3DiedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.saveData.data.slot3DiedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.saveData.data.slot3DiedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.saveData.data.slot3Orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.saveData.data.slot3Orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.saveData.data.slot3Orb3Revealed = _root.saveData.data.slot1Orb3Revealed; _parent.saveSlot3_mc.refreshIcons(); } if (_root.saveSlot == 2) { _root.saveData.data.slot3GameStart = _root.saveData.data.slot2GameStart; _root.saveData.data.slot3CharLvl = _root.saveData.data.slot2CharLvl; _root.saveData.data.slot3Orb1 = _root.saveData.data.slot2Orb1; _root.saveData.data.slot3Orb2 = _root.saveData.data.slot2Orb2; _root.saveData.data.slot3Orb3 = _root.saveData.data.slot2Orb3; _root.saveData.data.slot3PlotProgress = _root.saveData.data.slot2PlotProgress; _root.saveData.data.slot3PlayerX = _root.saveData.data.slot2PlayerX; _root.saveData.data.slot3PlayerY = _root.saveData.data.slot2PlayerY; _root.saveData.data.slot3PlayerRoom = _root.saveData.data.slot2PlayerRoom; _root.saveData.data.slot3GameResets = _root.saveData.data.slot2GameResets; _root.saveData.data.slot3GoodEnd = _root.saveData.data.slot2GoodEnd; _root.saveData.data.slot3Crystal = _root.saveData.data.slot2Crystal; _root.saveData.data.slot3UltraEnd = _root.saveData.data.slot2UltraEnd; _root.saveData.data.slot3PlayerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.saveData.data.slot3Switch7 = _root.saveData.data.slot2Switch7; _root.saveData.data.slot3OpeningViewed = _root.saveData.data.slot2OpeningViewed; _root.saveData.data.slot3Scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.saveData.data.slot3Scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.saveData.data.slot3Scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.saveData.data.slot3Scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.saveData.data.slot3Scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.saveData.data.slot3Scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.saveData.data.slot3Scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.saveData.data.slot3Scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.saveData.data.slot3Scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.saveData.data.slot3Scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.saveData.data.slot3Scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.saveData.data.slot3Scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.saveData.data.slot3Scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.saveData.data.slot3Scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.saveData.data.slot3Scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.saveData.data.slot3Scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.saveData.data.slot3Scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.saveData.data.slot3Scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.saveData.data.slot3SecretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.saveData.data.slot3DiedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.saveData.data.slot3DragonKilled = _root.saveData.data.slot2DragonKilled; _root.saveData.data.slot3DiedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.saveData.data.slot3DiedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.saveData.data.slot3DiedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.saveData.data.slot3Orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.saveData.data.slot3Orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.saveData.data.slot3Orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.saveData.data.slot2GameStart = _root.saveData.data.slot3GameStart; _root.saveData.data.slot2CharLvl = _root.saveData.data.slot3CharLvl; _root.saveData.data.slot2Orb1 = _root.saveData.data.slot3Orb1; _root.saveData.data.slot2Orb2 = _root.saveData.data.slot3Orb2; _root.saveData.data.slot2Orb3 = _root.saveData.data.slot3Orb3; _root.saveData.data.slot2PlotProgress = _root.saveData.data.slot3PlotProgress; _root.saveData.data.slot2PlayerX = _root.saveData.data.slot3PlayerX; _root.saveData.data.slot2PlayerY = _root.saveData.data.slot3PlayerY; _root.saveData.data.slot2PlayerRoom = _root.saveData.data.slot3PlayerRoom; _root.saveData.data.slot2GameResets = _root.saveData.data.slot3GameResets; _root.saveData.data.slot2GoodEnd = _root.saveData.data.slot3GoodEnd; _root.saveData.data.slot2Crystal = _root.saveData.data.slot3Crystal; _root.saveData.data.slot2UltraEnd = _root.saveData.data.slot3UltraEnd; _root.saveData.data.slot2PlayerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.saveData.data.slot2Switch7 = _root.saveData.data.slot3Switch7; _root.saveData.data.slot2OpeningViewed = _root.saveData.data.slot3OpeningViewed; _root.saveData.data.slot2Scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.saveData.data.slot2Scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.saveData.data.slot2Scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.saveData.data.slot2Scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.saveData.data.slot2Scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.saveData.data.slot2Scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.saveData.data.slot2Scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.saveData.data.slot2Scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.saveData.data.slot2Scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.saveData.data.slot2Scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.saveData.data.slot2Scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.saveData.data.slot2Scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.saveData.data.slot2Scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.saveData.data.slot2Scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.saveData.data.slot2Scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.saveData.data.slot2Scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.saveData.data.slot2Scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.saveData.data.slot2Scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.saveData.data.slot2SecretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.saveData.data.slot2DiedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.saveData.data.slot2DragonKilled = _root.saveData.data.slot3DragonKilled; _root.saveData.data.slot2DiedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.saveData.data.slot2DiedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.saveData.data.slot2DiedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.saveData.data.slot2Orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.saveData.data.slot2Orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.saveData.data.slot2Orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } _root.saveData.flush(); _parent.gotoAndStop(7); } } button 710 { on (rollOver) { if (menuChoice != 2) { if (menuChoice == 1) { copy2_mc.gotoAndStop(1); } if (menuChoice == 0) { copy1_mc.gotoAndStop(1); } cancel_mc.gotoAndStop(2); menuChoice = 3; } } on (release) { gotoAndStop(1); } } movieClip 711 { frame 1 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { _root.spaceClear = false; switch (menuChoice) { case 0: _parent.gotoAndStop(2); break; case 1: gotoAndStop(2); break; case 2: gotoAndStop(3); break; case 3: _parent.gotoAndStop(7); break; default: trace('Something is amiss (menuChoice is invalid)'); } } } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(38) && !Key.isDown(40) || Key.isDown(40) && !Key.isDown(38)) { if (menuChoice == 0) { load_mc.gotoAndStop(1); } if (menuChoice == 1) { delete_mc.gotoAndStop(1); } if (menuChoice == 2) { copy_mc.gotoAndStop(1); } if (menuChoice == 3) { cancel_mc.gotoAndStop(1); } if (Key.isDown(38)) { menuChoice = (menuChoice + 3) % 4; } else { menuChoice = (menuChoice + 1) % 4; } if (menuChoice == 0) { load_mc.gotoAndStop(2); } if (menuChoice == 1) { delete_mc.gotoAndStop(2); } if (menuChoice == 2) { copy_mc.gotoAndStop(2); } if (menuChoice == 3) { cancel_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); var menuChoice = 0; var arrowTimer = 0; load_mc.gotoAndStop(2); } frame 2 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { _root.spaceClear = false; switch (menuChoice) { case 1: if (_root.saveSlot == 1) { _root.saveData.data.slot1GameStart = false; _root.saveData.data.slot1CharLvl = 0; _root.saveData.data.slot1Orb1 = false; _root.saveData.data.slot1Orb2 = false; _root.saveData.data.slot1Orb3 = false; _root.saveData.data.slot1PlotProgress = 0; _root.saveData.data.slot1PlayerX = 0; _root.saveData.data.slot1PlayerY = 0; _root.saveData.data.slot1PlayerRoom = 0; _root.saveData.data.slot1GameResets = 0; _root.saveData.data.slot1GoodEnd = false; _root.saveData.data.slot1Crystal = false; _root.saveData.data.slot1UltraEnd = false; _root.saveData.data.slot1PlayerMoveMode = 1; _root.saveData.data.slot1Switch7 = false; _root.saveData.data.slot1OpeningViewed = false; _root.saveData.data.slot1Scene1Viewed = false; _root.saveData.data.slot1Scene2Viewed = false; _root.saveData.data.slot1Scene9Viewed = false; _root.saveData.data.slot1Scene12Viewed = false; _root.saveData.data.slot1Scene14Viewed = false; _root.saveData.data.slot1Scene15Viewed = false; _root.saveData.data.slot1Scene16Viewed = false; _root.saveData.data.slot1Scene28Viewed = false; _root.saveData.data.slot1Scene30Viewed = false; _root.saveData.data.slot1Scene34Viewed = false; _root.saveData.data.slot1Scene36Viewed = false; _root.saveData.data.slot1Scene40Viewed = false; _root.saveData.data.slot1Scene52Viewed = false; _root.saveData.data.slot1Scene53Viewed = false; _root.saveData.data.slot1Scene54Viewed = false; _root.saveData.data.slot1Scene63Viewed = false; _root.saveData.data.slot1Scene69Viewed = false; _root.saveData.data.slot1Scene78Viewed = false; _root.saveData.data.slot1SecretIntroViewed = false; _root.saveData.data.slot1DiedOnDragon = false; _root.saveData.data.slot1DragonKilled = 0; _root.saveData.data.slot1DiedOnSpider = false; _root.saveData.data.slot1DiedOnGhost = false; _root.saveData.data.slot1DiedOnDemon = false; _root.saveData.data.slot1Orb1Revealed = false; _root.saveData.data.slot1Orb2Revealed = false; _root.saveData.data.slot1Orb3Revealed = false; _parent.saveSlot1_mc.refreshIcons(); } if (_root.saveSlot == 2) { _root.saveData.data.slot2GameStart = false; _root.saveData.data.slot2CharLvl = 0; _root.saveData.data.slot2Orb1 = false; _root.saveData.data.slot2Orb2 = false; _root.saveData.data.slot2Orb3 = false; _root.saveData.data.slot2PlotProgress = 0; _root.saveData.data.slot2PlayerX = 0; _root.saveData.data.slot2PlayerY = 0; _root.saveData.data.slot2PlayerRoom = 0; _root.saveData.data.slot2GameResets = 0; _root.saveData.data.slot2GoodEnd = false; _root.saveData.data.slot2Crystal = false; _root.saveData.data.slot2UltraEnd = false; _root.saveData.data.slot2PlayerMoveMode = 1; _root.saveData.data.slot2Switch7 = false; _root.saveData.data.slot2OpeningViewed = false; _root.saveData.data.slot2Scene1Viewed = false; _root.saveData.data.slot2Scene2Viewed = false; _root.saveData.data.slot2Scene9Viewed = false; _root.saveData.data.slot2Scene12Viewed = false; _root.saveData.data.slot2Scene14Viewed = false; _root.saveData.data.slot2Scene15Viewed = false; _root.saveData.data.slot2Scene16Viewed = false; _root.saveData.data.slot2Scene28Viewed = false; _root.saveData.data.slot2Scene30Viewed = false; _root.saveData.data.slot2Scene34Viewed = false; _root.saveData.data.slot2Scene36Viewed = false; _root.saveData.data.slot2Scene40Viewed = false; _root.saveData.data.slot2Scene52Viewed = false; _root.saveData.data.slot2Scene53Viewed = false; _root.saveData.data.slot2Scene54Viewed = false; _root.saveData.data.slot2Scene63Viewed = false; _root.saveData.data.slot2Scene69Viewed = false; _root.saveData.data.slot2Scene78Viewed = false; _root.saveData.data.slot2SecretIntroViewed = false; _root.saveData.data.slot2DiedOnDragon = false; _root.saveData.data.slot2DragonKilled = 0; _root.saveData.data.slot2DiedOnSpider = false; _root.saveData.data.slot2DiedOnGhost = false; _root.saveData.data.slot2DiedOnDemon = false; _root.saveData.data.slot2Orb1Revealed = false; _root.saveData.data.slot2Orb2Revealed = false; _root.saveData.data.slot2Orb3Revealed = false; _parent.saveSlot2_mc.refreshIcons(); } if (_root.saveSlot == 3) { _root.saveData.data.slot3GameStart = false; _root.saveData.data.slot3CharLvl = 0; _root.saveData.data.slot3Orb1 = false; _root.saveData.data.slot3Orb2 = false; _root.saveData.data.slot3Orb3 = false; _root.saveData.data.slot3PlotProgress = 0; _root.saveData.data.slot3PlayerX = 0; _root.saveData.data.slot3PlayerY = 0; _root.saveData.data.slot3PlayerRoom = 0; _root.saveData.data.slot3GameResets = 0; _root.saveData.data.slot3GoodEnd = false; _root.saveData.data.slot3Crystal = false; _root.saveData.data.slot3UltraEnd = false; _root.saveData.data.slot3PlayerMoveMode = 1; _root.saveData.data.slot3Switch7 = false; _root.saveData.data.slot3OpeningViewed = false; _root.saveData.data.slot3Scene1Viewed = false; _root.saveData.data.slot3Scene2Viewed = false; _root.saveData.data.slot3Scene9Viewed = false; _root.saveData.data.slot3Scene12Viewed = false; _root.saveData.data.slot3Scene14Viewed = false; _root.saveData.data.slot3Scene15Viewed = false; _root.saveData.data.slot3Scene16Viewed = false; _root.saveData.data.slot3Scene28Viewed = false; _root.saveData.data.slot3Scene30Viewed = false; _root.saveData.data.slot3Scene34Viewed = false; _root.saveData.data.slot3Scene36Viewed = false; _root.saveData.data.slot3Scene40Viewed = false; _root.saveData.data.slot3Scene52Viewed = false; _root.saveData.data.slot3Scene53Viewed = false; _root.saveData.data.slot3Scene54Viewed = false; _root.saveData.data.slot3Scene63Viewed = false; _root.saveData.data.slot3Scene69Viewed = false; _root.saveData.data.slot3Scene78Viewed = false; _root.saveData.data.slot3SecretIntroViewed = false; _root.saveData.data.slot3DiedOnDragon = false; _root.saveData.data.slot3DragonKilled = 0; _root.saveData.data.slot3DiedOnSpider = false; _root.saveData.data.slot3DiedOnGhost = false; _root.saveData.data.slot3DiedOnDemon = false; _root.saveData.data.slot3Orb1Revealed = false; _root.saveData.data.slot3Orb2Revealed = false; _root.saveData.data.slot3Orb3Revealed = false; _parent.saveSlot3_mc.refreshIcons(); } _root.saveData.flush(); _parent.gotoAndStop(7); case 0: gotoAndStop(1); break; default: trace('Something is amiss (menuChoice is invalid)'); } } } else { _root.spaceClear = true; } if (Key.isDown(37) || Key.isDown(39)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(37) && !Key.isDown(39) || Key.isDown(39) && !Key.isDown(37)) { if (menuChoice == 0) { no_mc.gotoAndStop(1); yes_mc.gotoAndStop(2); menuChoice = 1; } else { no_mc.gotoAndStop(2); yes_mc.gotoAndStop(1); menuChoice = 0; } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); var menuChoice = 0; var arrowTimer = 0; no_mc.gotoAndStop(2); } frame 3 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { _root.spaceClear = false; switch (menuChoice) { case 0: if (_root.saveSlot == 1) { _root.saveData.data.slot2GameStart = _root.saveData.data.slot1GameStart; _root.saveData.data.slot2CharLvl = _root.saveData.data.slot1CharLvl; _root.saveData.data.slot2Orb1 = _root.saveData.data.slot1Orb1; _root.saveData.data.slot2Orb2 = _root.saveData.data.slot1Orb2; _root.saveData.data.slot2Orb3 = _root.saveData.data.slot1Orb3; _root.saveData.data.slot2PlotProgress = _root.saveData.data.slot1PlotProgress; _root.saveData.data.slot2PlayerX = _root.saveData.data.slot1PlayerX; _root.saveData.data.slot2PlayerY = _root.saveData.data.slot1PlayerY; _root.saveData.data.slot2PlayerRoom = _root.saveData.data.slot1PlayerRoom; _root.saveData.data.slot2GameResets = _root.saveData.data.slot1GameResets; _root.saveData.data.slot2GoodEnd = _root.saveData.data.slot1GoodEnd; _root.saveData.data.slot2Crystal = _root.saveData.data.slot1Crystal; _root.saveData.data.slot2UltraEnd = _root.saveData.data.slot1UltraEnd; _root.saveData.data.slot2PlayerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.saveData.data.slot2Switch7 = _root.saveData.data.slot1Switch7; _root.saveData.data.slot2OpeningViewed = _root.saveData.data.slot1OpeningViewed; _root.saveData.data.slot2Scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.saveData.data.slot2Scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.saveData.data.slot2Scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.saveData.data.slot2Scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.saveData.data.slot2Scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.saveData.data.slot2Scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.saveData.data.slot2Scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.saveData.data.slot2Scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.saveData.data.slot2Scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.saveData.data.slot2Scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.saveData.data.slot2Scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.saveData.data.slot2Scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.saveData.data.slot2Scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.saveData.data.slot2Scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.saveData.data.slot2Scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.saveData.data.slot2Scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.saveData.data.slot2Scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.saveData.data.slot2Scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.saveData.data.slot2SecretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.saveData.data.slot2DiedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.saveData.data.slot2DragonKilled = _root.saveData.data.slot1DragonKilled; _root.saveData.data.slot2DiedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.saveData.data.slot2DiedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.saveData.data.slot2DiedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.saveData.data.slot2Orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.saveData.data.slot2Orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.saveData.data.slot2Orb3Revealed = _root.saveData.data.slot1Orb3Revealed; _parent.saveSlot2_mc.refreshIcons(); } if (_root.saveSlot == 2) { _root.saveData.data.slot1GameStart = _root.saveData.data.slot2GameStart; _root.saveData.data.slot1CharLvl = _root.saveData.data.slot2CharLvl; _root.saveData.data.slot1Orb1 = _root.saveData.data.slot2Orb1; _root.saveData.data.slot1Orb2 = _root.saveData.data.slot2Orb2; _root.saveData.data.slot1Orb3 = _root.saveData.data.slot2Orb3; _root.saveData.data.slot1PlotProgress = _root.saveData.data.slot2PlotProgress; _root.saveData.data.slot1PlayerX = _root.saveData.data.slot2PlayerX; _root.saveData.data.slot1PlayerY = _root.saveData.data.slot2PlayerY; _root.saveData.data.slot1PlayerRoom = _root.saveData.data.slot2PlayerRoom; _root.saveData.data.slot1GameResets = _root.saveData.data.slot2GameResets; _root.saveData.data.slot1GoodEnd = _root.saveData.data.slot2GoodEnd; _root.saveData.data.slot1Crystal = _root.saveData.data.slot2Crystal; _root.saveData.data.slot1UltraEnd = _root.saveData.data.slot2UltraEnd; _root.saveData.data.slot1PlayerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.saveData.data.slot1Switch7 = _root.saveData.data.slot2Switch7; _root.saveData.data.slot1OpeningViewed = _root.saveData.data.slot2OpeningViewed; _root.saveData.data.slot1Scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.saveData.data.slot1Scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.saveData.data.slot1Scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.saveData.data.slot1Scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.saveData.data.slot1Scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.saveData.data.slot1Scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.saveData.data.slot1Scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.saveData.data.slot1Scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.saveData.data.slot1Scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.saveData.data.slot1Scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.saveData.data.slot1Scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.saveData.data.slot1Scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.saveData.data.slot1Scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.saveData.data.slot1Scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.saveData.data.slot1Scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.saveData.data.slot1Scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.saveData.data.slot1Scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.saveData.data.slot1Scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.saveData.data.slot1SecretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.saveData.data.slot1DiedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.saveData.data.slot1DragonKilled = _root.saveData.data.slot2DragonKilled; _root.saveData.data.slot1DiedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.saveData.data.slot1DiedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.saveData.data.slot1DiedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.saveData.data.slot1Orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.saveData.data.slot1Orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.saveData.data.slot1Orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.saveData.data.slot1GameStart = _root.saveData.data.slot3GameStart; _root.saveData.data.slot1CharLvl = _root.saveData.data.slot3CharLvl; _root.saveData.data.slot1Orb1 = _root.saveData.data.slot3Orb1; _root.saveData.data.slot1Orb2 = _root.saveData.data.slot3Orb2; _root.saveData.data.slot1Orb3 = _root.saveData.data.slot3Orb3; _root.saveData.data.slot1PlotProgress = _root.saveData.data.slot3PlotProgress; _root.saveData.data.slot1PlayerX = _root.saveData.data.slot3PlayerX; _root.saveData.data.slot1PlayerY = _root.saveData.data.slot3PlayerY; _root.saveData.data.slot1PlayerRoom = _root.saveData.data.slot3PlayerRoom; _root.saveData.data.slot1GameResets = _root.saveData.data.slot3GameResets; _root.saveData.data.slot1GoodEnd = _root.saveData.data.slot3GoodEnd; _root.saveData.data.slot1Crystal = _root.saveData.data.slot3Crystal; _root.saveData.data.slot1UltraEnd = _root.saveData.data.slot3UltraEnd; _root.saveData.data.slot1PlayerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.saveData.data.slot1Switch7 = _root.saveData.data.slot3Switch7; _root.saveData.data.slot1OpeningViewed = _root.saveData.data.slot3OpeningViewed; _root.saveData.data.slot1Scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.saveData.data.slot1Scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.saveData.data.slot1Scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.saveData.data.slot1Scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.saveData.data.slot1Scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.saveData.data.slot1Scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.saveData.data.slot1Scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.saveData.data.slot1Scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.saveData.data.slot1Scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.saveData.data.slot1Scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.saveData.data.slot1Scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.saveData.data.slot1Scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.saveData.data.slot1Scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.saveData.data.slot1Scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.saveData.data.slot1Scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.saveData.data.slot1Scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.saveData.data.slot1Scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.saveData.data.slot1Scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.saveData.data.slot1SecretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.saveData.data.slot1DiedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.saveData.data.slot1DragonKilled = _root.saveData.data.slot3DragonKilled; _root.saveData.data.slot1DiedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.saveData.data.slot1DiedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.saveData.data.slot1DiedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.saveData.data.slot1Orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.saveData.data.slot1Orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.saveData.data.slot1Orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } _root.saveData.flush(); _parent.gotoAndStop(7); break; case 1: if (_root.saveSlot == 1) { _root.saveData.data.slot3GameStart = _root.saveData.data.slot1GameStart; _root.saveData.data.slot3CharLvl = _root.saveData.data.slot1CharLvl; _root.saveData.data.slot3Orb1 = _root.saveData.data.slot1Orb1; _root.saveData.data.slot3Orb2 = _root.saveData.data.slot1Orb2; _root.saveData.data.slot3Orb3 = _root.saveData.data.slot1Orb3; _root.saveData.data.slot3PlotProgress = _root.saveData.data.slot1PlotProgress; _root.saveData.data.slot3PlayerX = _root.saveData.data.slot1PlayerX; _root.saveData.data.slot3PlayerY = _root.saveData.data.slot1PlayerY; _root.saveData.data.slot3PlayerRoom = _root.saveData.data.slot1PlayerRoom; _root.saveData.data.slot3GameResets = _root.saveData.data.slot1GameResets; _root.saveData.data.slot3GoodEnd = _root.saveData.data.slot1GoodEnd; _root.saveData.data.slot3Crystal = _root.saveData.data.slot1Crystal; _root.saveData.data.slot3UltraEnd = _root.saveData.data.slot1UltraEnd; _root.saveData.data.slot3PlayerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.saveData.data.slot3Switch7 = _root.saveData.data.slot1Switch7; _root.saveData.data.slot3OpeningViewed = _root.saveData.data.slot1OpeningViewed; _root.saveData.data.slot3Scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.saveData.data.slot3Scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.saveData.data.slot3Scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.saveData.data.slot3Scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.saveData.data.slot3Scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.saveData.data.slot3Scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.saveData.data.slot3Scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.saveData.data.slot3Scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.saveData.data.slot3Scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.saveData.data.slot3Scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.saveData.data.slot3Scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.saveData.data.slot3Scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.saveData.data.slot3Scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.saveData.data.slot3Scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.saveData.data.slot3Scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.saveData.data.slot3Scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.saveData.data.slot3Scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.saveData.data.slot3Scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.saveData.data.slot3SecretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.saveData.data.slot3DiedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.saveData.data.slot3DragonKilled = _root.saveData.data.slot1DragonKilled; _root.saveData.data.slot3DiedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.saveData.data.slot3DiedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.saveData.data.slot3DiedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.saveData.data.slot3Orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.saveData.data.slot3Orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.saveData.data.slot3Orb3Revealed = _root.saveData.data.slot1Orb3Revealed; _parent.saveSlot3_mc.refreshIcons(); } if (_root.saveSlot == 2) { _root.saveData.data.slot3GameStart = _root.saveData.data.slot2GameStart; _root.saveData.data.slot3CharLvl = _root.saveData.data.slot2CharLvl; _root.saveData.data.slot3Orb1 = _root.saveData.data.slot2Orb1; _root.saveData.data.slot3Orb2 = _root.saveData.data.slot2Orb2; _root.saveData.data.slot3Orb3 = _root.saveData.data.slot2Orb3; _root.saveData.data.slot3PlotProgress = _root.saveData.data.slot2PlotProgress; _root.saveData.data.slot3PlayerX = _root.saveData.data.slot2PlayerX; _root.saveData.data.slot3PlayerY = _root.saveData.data.slot2PlayerY; _root.saveData.data.slot3PlayerRoom = _root.saveData.data.slot2PlayerRoom; _root.saveData.data.slot3GameResets = _root.saveData.data.slot2GameResets; _root.saveData.data.slot3GoodEnd = _root.saveData.data.slot2GoodEnd; _root.saveData.data.slot3Crystal = _root.saveData.data.slot2Crystal; _root.saveData.data.slot3UltraEnd = _root.saveData.data.slot2UltraEnd; _root.saveData.data.slot3PlayerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.saveData.data.slot3Switch7 = _root.saveData.data.slot2Switch7; _root.saveData.data.slot3OpeningViewed = _root.saveData.data.slot2OpeningViewed; _root.saveData.data.slot3Scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.saveData.data.slot3Scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.saveData.data.slot3Scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.saveData.data.slot3Scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.saveData.data.slot3Scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.saveData.data.slot3Scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.saveData.data.slot3Scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.saveData.data.slot3Scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.saveData.data.slot3Scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.saveData.data.slot3Scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.saveData.data.slot3Scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.saveData.data.slot3Scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.saveData.data.slot3Scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.saveData.data.slot3Scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.saveData.data.slot3Scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.saveData.data.slot3Scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.saveData.data.slot3Scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.saveData.data.slot3Scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.saveData.data.slot3SecretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.saveData.data.slot3DiedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.saveData.data.slot3DragonKilled = _root.saveData.data.slot2DragonKilled; _root.saveData.data.slot3DiedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.saveData.data.slot3DiedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.saveData.data.slot3DiedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.saveData.data.slot3Orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.saveData.data.slot3Orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.saveData.data.slot3Orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.saveData.data.slot2GameStart = _root.saveData.data.slot3GameStart; _root.saveData.data.slot2CharLvl = _root.saveData.data.slot3CharLvl; _root.saveData.data.slot2Orb1 = _root.saveData.data.slot3Orb1; _root.saveData.data.slot2Orb2 = _root.saveData.data.slot3Orb2; _root.saveData.data.slot2Orb3 = _root.saveData.data.slot3Orb3; _root.saveData.data.slot2PlotProgress = _root.saveData.data.slot3PlotProgress; _root.saveData.data.slot2PlayerX = _root.saveData.data.slot3PlayerX; _root.saveData.data.slot2PlayerY = _root.saveData.data.slot3PlayerY; _root.saveData.data.slot2PlayerRoom = _root.saveData.data.slot3PlayerRoom; _root.saveData.data.slot2GameResets = _root.saveData.data.slot3GameResets; _root.saveData.data.slot2GoodEnd = _root.saveData.data.slot3GoodEnd; _root.saveData.data.slot2Crystal = _root.saveData.data.slot3Crystal; _root.saveData.data.slot2UltraEnd = _root.saveData.data.slot3UltraEnd; _root.saveData.data.slot2PlayerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.saveData.data.slot2Switch7 = _root.saveData.data.slot3Switch7; _root.saveData.data.slot2OpeningViewed = _root.saveData.data.slot3OpeningViewed; _root.saveData.data.slot2Scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.saveData.data.slot2Scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.saveData.data.slot2Scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.saveData.data.slot2Scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.saveData.data.slot2Scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.saveData.data.slot2Scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.saveData.data.slot2Scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.saveData.data.slot2Scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.saveData.data.slot2Scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.saveData.data.slot2Scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.saveData.data.slot2Scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.saveData.data.slot2Scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.saveData.data.slot2Scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.saveData.data.slot2Scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.saveData.data.slot2Scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.saveData.data.slot2Scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.saveData.data.slot2Scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.saveData.data.slot2Scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.saveData.data.slot2SecretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.saveData.data.slot2DiedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.saveData.data.slot2DragonKilled = _root.saveData.data.slot3DragonKilled; _root.saveData.data.slot2DiedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.saveData.data.slot2DiedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.saveData.data.slot2DiedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.saveData.data.slot2Orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.saveData.data.slot2Orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.saveData.data.slot2Orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } _root.saveData.flush(); _parent.gotoAndStop(7); break; case 2: gotoAndStop(1); break; default: trace('Something is amiss (menuChoice is invalid)'); } } } else { _root.spaceClear = true; } if (Key.isDown(37) || Key.isDown(39)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(37) && !Key.isDown(39) || Key.isDown(39) && !Key.isDown(37)) { if (menuChoice == 0) { copy1_mc.gotoAndStop(1); } if (menuChoice == 1) { copy2_mc.gotoAndStop(1); } if (menuChoice == 2) { cancel_mc.gotoAndStop(1); } if (Key.isDown(37)) { menuChoice = (menuChoice + 2) % 3; } else { menuChoice = (menuChoice + 1) % 3; } if (menuChoice == 0) { copy1_mc.gotoAndStop(2); } if (menuChoice == 1) { copy2_mc.gotoAndStop(2); } if (menuChoice == 2) { cancel_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); var menuChoice = 2; var arrowTimer = 0; cancel_mc.gotoAndStop(2); } } movieClip 712 { frame 1 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { if (_root.saveSlot == 0) { gotoAndPlay(7); } else { play(); } } _root.spaceClear = false; } else { _root.spaceClear = true; } } stop(); _root.spaceClear = false; _root.saveData = SharedObject.getLocal('GrandAdventureSave'); if (!_root.saveData.data.exists) { trace('creating new save'); _root.saveData.data.exists = true; _root.saveData.data.gallery1 = false; _root.saveData.data.gallery2 = false; _root.saveData.data.gallery3 = false; _root.saveData.data.gallery4 = false; _root.saveData.data.gallery5 = false; _root.saveData.data.gallery6 = false; _root.saveData.data.gallery7 = false; _root.saveData.data.gallery8 = false; _root.saveData.data.gallery9 = false; _root.saveData.data.gallery10 = false; _root.saveData.data.gallery11 = false; _root.saveData.data.gallery12 = false; _root.saveData.data.gallery13 = false; _root.saveData.data.gallery14 = false; _root.saveData.data.gallery15 = false; _root.saveData.data.gallery16 = false; _root.saveData.data.gallery17 = false; _root.saveData.data.gallery18 = false; _root.saveData.data.gallery19 = false; _root.saveData.data.gallery20 = false; _root.saveData.data.gallery21 = false; _root.saveData.data.gallery22 = false; _root.saveData.data.gallery23 = false; _root.saveData.data.gallery24 = false; _root.saveData.data.gallery25 = false; _root.saveData.data.gallery26 = false; _root.saveData.data.gallery27 = false; _root.saveData.data.gallery28 = false; _root.saveData.data.gallery29 = false; _root.saveData.data.gallery30 = false; _root.saveData.data.gallery31 = false; _root.saveData.data.gallery32 = false; _root.saveData.data.gallery33 = false; _root.saveData.data.gallery34 = false; _root.saveData.data.gallery35 = false; _root.saveData.data.gallery36 = false; _root.saveData.data.gallery5B = false; _root.saveData.data.gallery5C = false; _root.saveData.data.gallery5D = false; _root.saveData.data.slot1GameStart = false; _root.saveData.data.slot1CharLvl = 0; _root.saveData.data.slot1Orb1 = false; _root.saveData.data.slot1Orb2 = false; _root.saveData.data.slot1Orb3 = false; _root.saveData.data.slot1PlotProgress = 0; _root.saveData.data.slot1PlayerX = 0; _root.saveData.data.slot1PlayerY = 0; _root.saveData.data.slot1PlayerRoom = 0; _root.saveData.data.slot1GameResets = 0; _root.saveData.data.slot1GoodEnd = false; _root.saveData.data.slot1Crystal = false; _root.saveData.data.slot1UltraEnd = false; _root.saveData.data.slot1PlayerMoveMode = 1; _root.saveData.data.slot1Switch7 = false; _root.saveData.data.slot1OpeningViewed = false; _root.saveData.data.slot1Scene1Viewed = false; _root.saveData.data.slot1Scene2Viewed = false; _root.saveData.data.slot1Scene9Viewed = false; _root.saveData.data.slot1Scene12Viewed = false; _root.saveData.data.slot1Scene14Viewed = false; _root.saveData.data.slot1Scene15Viewed = false; _root.saveData.data.slot1Scene16Viewed = false; _root.saveData.data.slot1Scene28Viewed = false; _root.saveData.data.slot1Scene30Viewed = false; _root.saveData.data.slot1Scene34Viewed = false; _root.saveData.data.slot1Scene36Viewed = false; _root.saveData.data.slot1Scene40Viewed = false; _root.saveData.data.slot1Scene52Viewed = false; _root.saveData.data.slot1Scene53Viewed = false; _root.saveData.data.slot1Scene54Viewed = false; _root.saveData.data.slot1Scene63Viewed = false; _root.saveData.data.slot1Scene69Viewed = false; _root.saveData.data.slot1Scene78Viewed = false; _root.saveData.data.slot1SecretIntroViewed = false; _root.saveData.data.slot1DiedOnDragon = false; _root.saveData.data.slot1DragonKilled = 0; _root.saveData.data.slot1DiedOnSpider = false; _root.saveData.data.slot1DiedOnGhost = false; _root.saveData.data.slot1DiedOnDemon = false; _root.saveData.data.slot1Orb1Revealed = false; _root.saveData.data.slot1Orb2Revealed = false; _root.saveData.data.slot1Orb3Revealed = false; _root.saveData.data.slot2GameStart = false; _root.saveData.data.slot2CharLvl = 0; _root.saveData.data.slot2Orb1 = false; _root.saveData.data.slot2Orb2 = false; _root.saveData.data.slot2Orb3 = false; _root.saveData.data.slot2PlotProgress = 0; _root.saveData.data.slot2PlayerX = 0; _root.saveData.data.slot2PlayerY = 0; _root.saveData.data.slot2PlayerRoom = 0; _root.saveData.data.slot2GameResets = 0; _root.saveData.data.slot2GoodEnd = false; _root.saveData.data.slot2Crystal = false; _root.saveData.data.slot2UltraEnd = false; _root.saveData.data.slot2PlayerMoveMode = 1; _root.saveData.data.slot2Switch7 = false; _root.saveData.data.slot2OpeningViewed = false; _root.saveData.data.slot2Scene1Viewed = false; _root.saveData.data.slot2Scene2Viewed = false; _root.saveData.data.slot2Scene9Viewed = false; _root.saveData.data.slot2Scene12Viewed = false; _root.saveData.data.slot2Scene14Viewed = false; _root.saveData.data.slot2Scene15Viewed = false; _root.saveData.data.slot2Scene16Viewed = false; _root.saveData.data.slot2Scene28Viewed = false; _root.saveData.data.slot2Scene30Viewed = false; _root.saveData.data.slot2Scene34Viewed = false; _root.saveData.data.slot2Scene36Viewed = false; _root.saveData.data.slot2Scene40Viewed = false; _root.saveData.data.slot2Scene52Viewed = false; _root.saveData.data.slot2Scene53Viewed = false; _root.saveData.data.slot2Scene54Viewed = false; _root.saveData.data.slot2Scene63Viewed = false; _root.saveData.data.slot2Scene69Viewed = false; _root.saveData.data.slot2Scene78Viewed = false; _root.saveData.data.slot2SecretIntroViewed = false; _root.saveData.data.slot2DiedOnDragon = false; _root.saveData.data.slot2DragonKilled = 0; _root.saveData.data.slot2DiedOnSpider = false; _root.saveData.data.slot2DiedOnGhost = false; _root.saveData.data.slot2DiedOnDemon = false; _root.saveData.data.slot2Orb1Revealed = false; _root.saveData.data.slot2Orb2Revealed = false; _root.saveData.data.slot2Orb3Revealed = false; _root.saveData.data.slot3GameStart = false; _root.saveData.data.slot3CharLvl = 0; _root.saveData.data.slot3Orb1 = false; _root.saveData.data.slot3Orb2 = false; _root.saveData.data.slot3Orb3 = false; _root.saveData.data.slot3PlotProgress = 0; _root.saveData.data.slot3PlayerX = 0; _root.saveData.data.slot3PlayerY = 0; _root.saveData.data.slot3PlayerRoom = 0; _root.saveData.data.slot3GameResets = 0; _root.saveData.data.slot3GoodEnd = false; _root.saveData.data.slot3Crystal = false; _root.saveData.data.slot3UltraEnd = false; _root.saveData.data.slot3PlayerMoveMode = 1; _root.saveData.data.slot3Switch7 = false; _root.saveData.data.slot3OpeningViewed = false; _root.saveData.data.slot3Scene1Viewed = false; _root.saveData.data.slot3Scene2Viewed = false; _root.saveData.data.slot3Scene9Viewed = false; _root.saveData.data.slot3Scene12Viewed = false; _root.saveData.data.slot3Scene14Viewed = false; _root.saveData.data.slot3Scene15Viewed = false; _root.saveData.data.slot3Scene16Viewed = false; _root.saveData.data.slot3Scene28Viewed = false; _root.saveData.data.slot3Scene30Viewed = false; _root.saveData.data.slot3Scene34Viewed = false; _root.saveData.data.slot3Scene36Viewed = false; _root.saveData.data.slot3Scene40Viewed = false; _root.saveData.data.slot3Scene52Viewed = false; _root.saveData.data.slot3Scene53Viewed = false; _root.saveData.data.slot3Scene54Viewed = false; _root.saveData.data.slot3Scene63Viewed = false; _root.saveData.data.slot3Scene69Viewed = false; _root.saveData.data.slot3Scene78Viewed = false; _root.saveData.data.slot3SecretIntroViewed = false; _root.saveData.data.slot3DiedOnDragon = false; _root.saveData.data.slot3DragonKilled = 0; _root.saveData.data.slot3DiedOnSpider = false; _root.saveData.data.slot3DiedOnGhost = false; _root.saveData.data.slot3DiedOnDemon = false; _root.saveData.data.slot3Orb1Revealed = false; _root.saveData.data.slot3Orb2Revealed = false; _root.saveData.data.slot3Orb3Revealed = false; _root.saveData.flush(); } _root.gallery1 = _root.saveData.data.gallery1; _root.gallery2 = _root.saveData.data.gallery2; _root.gallery3 = _root.saveData.data.gallery3; _root.gallery4 = _root.saveData.data.gallery4; _root.gallery5 = _root.saveData.data.gallery5; _root.gallery6 = _root.saveData.data.gallery6; _root.gallery7 = _root.saveData.data.gallery7; _root.gallery8 = _root.saveData.data.gallery8; _root.gallery9 = _root.saveData.data.gallery9; _root.gallery10 = _root.saveData.data.gallery10; _root.gallery11 = _root.saveData.data.gallery11; _root.gallery12 = _root.saveData.data.gallery12; _root.gallery13 = _root.saveData.data.gallery13; _root.gallery14 = _root.saveData.data.gallery14; _root.gallery15 = _root.saveData.data.gallery15; _root.gallery16 = _root.saveData.data.gallery16; _root.gallery17 = _root.saveData.data.gallery17; _root.gallery18 = _root.saveData.data.gallery18; _root.gallery19 = _root.saveData.data.gallery19; _root.gallery20 = _root.saveData.data.gallery20; _root.gallery21 = _root.saveData.data.gallery21; _root.gallery22 = _root.saveData.data.gallery22; _root.gallery23 = _root.saveData.data.gallery23; _root.gallery24 = _root.saveData.data.gallery24; _root.gallery25 = _root.saveData.data.gallery25; _root.gallery26 = _root.saveData.data.gallery26; _root.gallery27 = _root.saveData.data.gallery27; _root.gallery28 = _root.saveData.data.gallery28; _root.gallery29 = _root.saveData.data.gallery29; _root.gallery30 = _root.saveData.data.gallery30; _root.gallery31 = _root.saveData.data.gallery31; _root.gallery32 = _root.saveData.data.gallery32; _root.gallery33 = _root.saveData.data.gallery33; _root.gallery34 = _root.saveData.data.gallery34; _root.gallery35 = _root.saveData.data.gallery35; _root.gallery36 = _root.saveData.data.gallery36; _root.gallery5B = _root.saveData.data.gallery5B; _root.gallery5C = _root.saveData.data.gallery5C; _root.gallery5D = _root.saveData.data.gallery5D; } frame 2 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { _root.spaceClear = false; switch (menuChoice) { case 0: _root.play(); break; case 1: stopAllSounds(); if (_root.playerRoom == 7) { _root.creepyMusic = true; mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); if (_root.soundEnabled) { mscCreepy.start(0, 999); } _root.currentMusic = 3; } else { _root.creepyMusic = false; if (_root.openingViewed) { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; } } _root.gotoAndPlay(4); break; case 2: stopAllSounds(); _root.gotoAndStop(1); break; case 3: play(); break; case 4: gotoAndStop(4); break; case 5: gotoAndStop(5); break; default: trace('Something is amiss (menuChoice is invalid)'); } } _root.spaceClear = false; } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(38) && !Key.isDown(40) || Key.isDown(40) && !Key.isDown(38)) { if (menuChoice == 0) { start_mc.gotoAndStop(1); } if (menuChoice == 1) { continue_mc.gotoAndStop(1); } if (menuChoice == 2) { preload_mc.gotoAndStop(1); } if (menuChoice == 3) { instructions_mc.gotoAndStop(1); } if (menuChoice == 4) { options_mc.gotoAndStop(1); } if (menuChoice == 5) { extras_mc.gotoAndStop(1); } if (Key.isDown(38)) { menuChoice = (menuChoice + 5) % 6; if (menuChoice == 1 && !_root.gameStarted) { --menuChoice; } } else { menuChoice = (menuChoice + 1) % 6; if (menuChoice == 1 && !_root.gameStarted) { ++menuChoice; } } if (menuChoice == 0) { start_mc.gotoAndStop(2); } if (menuChoice == 1) { continue_mc.gotoAndStop(2); } if (menuChoice == 2) { preload_mc.gotoAndStop(2); } if (menuChoice == 3) { instructions_mc.gotoAndStop(2); } if (menuChoice == 4) { options_mc.gotoAndStop(2); } if (menuChoice == 5) { extras_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); var menuChoice = 0; if (!_root.gameStarted) { continue_mc.gotoAndStop(3); start_mc.gotoAndStop(2); } else { continue_mc.gotoAndStop(2); menuChoice = 1; } var arrowTimer = 0; } frame 3 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { gotoAndStop(2); } _root.spaceClear = false; } else { _root.spaceClear = true; } } stop(); } frame 4 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { switch (menuChoice) { case 0: _root.soundEnabled = !_root.soundEnabled; if (_root.soundEnabled) { mscTitle = new Sound(); mscTitle.attachSound('mscTitle'); mscTitle.start(0, 999); } else { stopAllSounds(); } break; case 1: gotoAndStop(7); break; case 2: gotoAndStop(2); break; default: trace('Something is amiss (menuChoice is invalid)'); } } _root.spaceClear = false; } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(38) && !Key.isDown(40) || Key.isDown(40) && !Key.isDown(38)) { if (menuChoice == 0) { sound_mc.gotoAndStop(1); } if (menuChoice == 1) { manage_mc.gotoAndStop(1); } if (menuChoice == 2) { mainMenu_mc.gotoAndStop(1); } if (Key.isDown(38)) { menuChoice = (menuChoice + 2) % 3; } else { menuChoice = (menuChoice + 1) % 3; } if (menuChoice == 0) { sound_mc.gotoAndStop(2); } if (menuChoice == 1) { manage_mc.gotoAndStop(2); } if (menuChoice == 2) { mainMenu_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); sound_mc.gotoAndStop(2); var menuChoice = 0; var arrowTimer = 0; } frame 5 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { switch (menuChoice) { case 0: gotoAndStop(8); break; case 1: gotoAndStop(12); break; case 2: gotoAndStop(6); break; case 3: gotoAndStop(2); break; default: trace('Something is amiss (menuChoice is invalid)'); } } _root.spaceClear = false; } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(38) && !Key.isDown(40) || Key.isDown(40) && !Key.isDown(38)) { if (menuChoice == 0) { gallery_mc.gotoAndStop(1); } if (menuChoice == 1) { letters_mc.gotoAndStop(1); } if (menuChoice == 2) { donation_mc.gotoAndStop(1); } if (menuChoice == 3) { mainMenu_mc.gotoAndStop(1); } if (Key.isDown(38)) { menuChoice = (menuChoice + 3) % 4; } else { menuChoice = (menuChoice + 1) % 4; } if (menuChoice == 0) { gallery_mc.gotoAndStop(2); } if (menuChoice == 1) { letters_mc.gotoAndStop(2); } if (menuChoice == 2) { donation_mc.gotoAndStop(2); } if (menuChoice == 3) { mainMenu_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); gallery_mc.gotoAndPlay(2); var menuChoice = 0; var arrowTimer = 0; } frame 6 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { gotoAndStop(5); } _root.spaceClear = false; } else { _root.spaceClear = true; } } stop(); } frame 7 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { _root.saveSlot = menuChoice + 1; if (_root.saveSlot == 1) { _root.gameStarted = _root.saveData.data.slot1GameStart; _root.characterLevel = _root.saveData.data.slot1CharLvl; _root.orb1Get = _root.saveData.data.slot1Orb1; _root.orb2Get = _root.saveData.data.slot1Orb2; _root.orb3Get = _root.saveData.data.slot1Orb3; _root.plotProgress = _root.saveData.data.slot1PlotProgress; _root.playerX = _root.saveData.data.slot1PlayerX; _root.playerY = _root.saveData.data.slot1PlayerY; _root.playerRoom = _root.saveData.data.slot1PlayerRoom; _root.gameResets = _root.saveData.data.slot1GameResets; _root.playerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.switch7 = _root.saveData.data.slot1Switch7; _root.openingViewed = _root.saveData.data.slot1OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot1DragonKilled; _root.diedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot1Orb3Revealed; } if (_root.saveSlot == 2) { _root.gameStarted = _root.saveData.data.slot2GameStart; _root.characterLevel = _root.saveData.data.slot2CharLvl; _root.orb1Get = _root.saveData.data.slot2Orb1; _root.orb2Get = _root.saveData.data.slot2Orb2; _root.orb3Get = _root.saveData.data.slot2Orb3; _root.plotProgress = _root.saveData.data.slot2PlotProgress; _root.playerX = _root.saveData.data.slot2PlayerX; _root.playerY = _root.saveData.data.slot2PlayerY; _root.playerRoom = _root.saveData.data.slot2PlayerRoom; _root.gameResets = _root.saveData.data.slot2GameResets; _root.playerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.switch7 = _root.saveData.data.slot2Switch7; _root.openingViewed = _root.saveData.data.slot2OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot2DragonKilled; _root.diedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.gameStarted = _root.saveData.data.slot3GameStart; _root.characterLevel = _root.saveData.data.slot3CharLvl; _root.orb1Get = _root.saveData.data.slot3Orb1; _root.orb2Get = _root.saveData.data.slot3Orb2; _root.orb3Get = _root.saveData.data.slot3Orb3; _root.plotProgress = _root.saveData.data.slot3PlotProgress; _root.playerX = _root.saveData.data.slot3PlayerX; _root.playerY = _root.saveData.data.slot3PlayerY; _root.playerRoom = _root.saveData.data.slot3PlayerRoom; _root.gameResets = _root.saveData.data.slot3GameResets; _root.playerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.switch7 = _root.saveData.data.slot3Switch7; _root.openingViewed = _root.saveData.data.slot3OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot3DragonKilled; _root.diedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } gotoAndStop(13); } _root.spaceClear = false; } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40)) { if (arrowTimer <= 0) { arrowTimer = 10; if (Key.isDown(38) && !Key.isDown(40) || Key.isDown(40) && !Key.isDown(38)) { if (menuChoice == 0) { slot1_mc.gotoAndStop(1); } if (menuChoice == 1) { slot2_mc.gotoAndStop(1); } if (menuChoice == 2) { slot3_mc.gotoAndStop(1); } if (Key.isDown(38)) { menuChoice = (menuChoice + 2) % 3; } else { menuChoice = (menuChoice + 1) % 3; } if (menuChoice == 0) { slot1_mc.gotoAndStop(2); } if (menuChoice == 1) { slot2_mc.gotoAndStop(2); } if (menuChoice == 2) { slot3_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } stop(); var menuChoice = 0; if (_root.saveSlot == 2) { menuChoice = 1; slot2_mc.gotoAndStop(2); } else { if (_root.saveSlot == 3) { menuChoice = 2; slot3_mc.gotoAndStop(2); } else { slot1_mc.gotoAndStop(2); } } var arrowTimer = 0; } frame 8 { function onEnterFrame() { if (Key.isDown(27)) { gotoAndStop(5); } } stop(); } frame 9 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { gotoAndStop(12); } _root.spaceClear = false; } else { _root.spaceClear = true; } } stop(); } frame 10 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { gotoAndStop(12); } _root.spaceClear = false; } else { _root.spaceClear = true; } } stop(); } frame 11 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { gotoAndStop(12); } _root.spaceClear = false; } else { _root.spaceClear = true; } } stop(); } frame 12 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { switch (menuChoice) { case 0: gotoAndStop(9); break; case 1: gotoAndStop(10); break; case 2: gotoAndStop(11); break; case 3: gotoAndStop(2); break; default: trace('Something is amiss (menuChoice is invalid)'); } } _root.spaceClear = false; } else { _root.spaceClear = true; } if (Key.isDown(38) || Key.isDown(40) || Key.isDown(37) || Key.isDown(39)) { if (arrowTimer <= 0) { arrowTimer = 10; if ((Key.isDown(38) && !Key.isDown(40) || Key.isDown(40) && !Key.isDown(38)) && menuChoice != 3) { if (menuChoice == 0) { blackLetter_mc.gotoAndStop(2); } if (menuChoice == 1) { burntLetter_mc.gotoAndStop(2); } if (menuChoice == 2) { bloodLetter_mc.gotoAndStop(2); } if (Key.isDown(38)) { var v2 = false; do { acceptable = true; menuChoice = (menuChoice + 2) % 3; if (menuChoice == 0 && !letter1Unlocked || menuChoice == 1 && !letter2Unlocked || menuChoice == 2 && !letter3Unlocked) { acceptable = false; } } while (!acceptable); } else { var v2 = false; do { acceptable = true; menuChoice = (menuChoice + 1) % 3; if (menuChoice == 0 && !letter1Unlocked || menuChoice == 1 && !letter2Unlocked || menuChoice == 2 && !letter3Unlocked) { acceptable = false; } } while (!acceptable); } if (menuChoice == 0) { blackLetter_mc.gotoAndStop(3); } if (menuChoice == 1) { burntLetter_mc.gotoAndStop(3); } if (menuChoice == 2) { bloodLetter_mc.gotoAndStop(3); } } if (Key.isDown(37) && !Key.isDown(39) || Key.isDown(39) && !Key.isDown(37)) { if (menuChoice == 3) { if (letter1Unlocked) { mainMenu_mc.gotoAndStop(1); menuChoice = 0; blackLetter_mc.gotoAndStop(3); } else { if (letter3Unlocked) { mainMenu_mc.gotoAndStop(1); menuChoice = 2; bloodLetter_mc.gotoAndStop(3); } } } else { if (menuChoice == 0) { blackLetter_mc.gotoAndStop(2); } if (menuChoice == 1) { burntLetter_mc.gotoAndStop(2); } if (menuChoice == 2) { bloodLetter_mc.gotoAndStop(2); } menuChoice = 3; mainMenu_mc.gotoAndStop(2); } } } else { --arrowTimer; } } else { arrowTimer = 0; } } var menuChoice = 3; var arrowTimer = 0; var letter1Unlocked = _root.gameResets >= 1; var letter2Unlocked = _root.gameResets >= 4; var letter3Unlocked = false; if (_root.saveSlot == 1 && _root.saveData.data.slot1GoodEnd || _root.saveSlot == 2 && _root.saveData.data.slot2GoodEnd || _root.saveSlot == 3 && _root.saveData.data.slot3GoodEnd) { letter3Unlocked = true; } if (!letter1Unlocked && !letter2Unlocked && !letter3Unlocked) { noLetters_mc.gotoAndStop(2); mainMenu_mc.gotoAndStop(2); } if (letter1Unlocked) { blackLetter_mc.gotoAndStop(3); menuChoice = 0; } if (letter2Unlocked) { burntLetter_mc.gotoAndStop(2); } if (letter3Unlocked) { bloodLetter_mc.gotoAndStop(2); if (!letter1Unlocked) { menuChoice = 2; } } stop(); if (menuChoice == 3) { mainMenu_mc.gotoAndStop(2); } else { if (menuChoice == 0) { blackLetter_mc.gotoAndStop(3); } else { bloodLetter_mc.gotoAndStop(3); } } } frame 13 { function onEnterFrame() {} stop(); if (_root.saveSlot == 1) { slot1_mc.gotoAndStop(2); } if (_root.saveSlot == 2) { slot2_mc.gotoAndStop(2); } if (_root.saveSlot == 3) { slot3_mc.gotoAndStop(2); } menu_mc._y = _root.saveSlot * 145 + 28; var menuChoice = 0; var arrowTimer = 0; } } frame 3 { function onEnterFrame() { if (_root.ccGender == 'Male') { maleBtn_mc.gotoAndStop(2); femaleBtn_mc.gotoAndStop(1); } else { if (_root.ccGender == 'Female') { maleBtn_mc.gotoAndStop(1); femaleBtn_mc.gotoAndStop(2); } } if (_root.ccRace == 'Orc') { orcBtn_mc.gotoAndStop(2); } else { orcBtn_mc.gotoAndStop(1); } if (_root.ccRace == 'Dwarf') { dwarfBtn_mc.gotoAndStop(2); } else { dwarfBtn_mc.gotoAndStop(1); } if (_root.ccRace == 'Elf') { elfBtn_mc.gotoAndStop(2); } else { elfBtn_mc.gotoAndStop(1); } if (_root.ccRace == 'Human') { humanBtn_mc.gotoAndStop(2); } else { humanBtn_mc.gotoAndStop(1); } if (_root.ccRace == 'Cat') { catBtn_mc.gotoAndStop(2); } else { catBtn_mc.gotoAndStop(1); } if (_root.ccRace != '' && _root.ccGender != '') { if (_root.ccGender == 'Male') { if (_root.ccRace == 'Orc') { ccPortrait_mc.gotoAndStop('mo'); } if (_root.ccRace == 'Dwarf') { ccPortrait_mc.gotoAndStop('md'); } if (_root.ccRace == 'Elf') { ccPortrait_mc.gotoAndStop('me'); } if (_root.ccRace == 'Human') { ccPortrait_mc.gotoAndStop('mh'); } if (_root.ccRace == 'Cat') { ccPortrait_mc.gotoAndStop('mc'); } } else { if (_root.ccRace == 'Orc') { ccPortrait_mc.gotoAndStop('fo'); } if (_root.ccRace == 'Dwarf') { ccPortrait_mc.gotoAndStop('fd'); } if (_root.ccRace == 'Elf') { ccPortrait_mc.gotoAndStop('fe'); } if (_root.ccRace == 'Human') { ccPortrait_mc.gotoAndStop('fh'); } if (_root.ccRace == 'Cat') { ccPortrait_mc.gotoAndStop('fc'); } } doneBtn_mc.gotoAndStop(2); ccIGA_mc.gotoAndStop(2); } } stop(); sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } _root.gameStarted = true; _root.playerSpeed = 5; _root.playerJump = 10; _root.stopMove = false; _root.spaceClear = true; _root.attacking = false; _root.cutsceneAttack = false; _root.creepyMusic = false; _root.jumpable = false; _root.playerHealth = 3; _root.playerKnockback = false; _root.blocking = false; _root.blockSpeed = 3; _root.bossHealth = 6; _root.pauseable = true; _root.playerX = 294; _root.playerY = 407; _root.playerRoom = 1; _root.switch7 = false; _root.gameResets = 0; _root.playerMoveMode = 1; _root.playerDir = 0; _root.characterLevel = 0; _root.plotProgress = 0; _root.currentMusic = 1; _root.openingViewed = false; _root.scene1Viewed = false; _root.scene2Viewed = false; _root.scene9Viewed = false; _root.scene12Viewed = false; _root.scene14Viewed = false; _root.scene15Viewed = false; _root.scene16Viewed = false; _root.scene28Viewed = false; _root.scene30Viewed = false; _root.scene34Viewed = false; _root.scene36Viewed = false; _root.scene40Viewed = false; _root.scene52Viewed = false; _root.scene53Viewed = false; _root.scene54Viewed = false; _root.scene63Viewed = false; _root.scene69Viewed = false; _root.scene78Viewed = false; _root.secretIntroViewed = false; _root.diedOnDragon = false; _root.dragonKilled = 0; _root.diedOnSpider = false; _root.diedOnGhost = false; _root.diedOnDemon = false; _root.orb1Revealed = false; _root.orb1Get = false; _root.orb2Revealed = false; _root.orb2Get = false; _root.orb3Revealed = false; _root.orb3Get = false; _root.orbsCollected = 0; _root.ccRace = ''; _root.ccGender = ''; } movieClip 725 { frame 1 { stop(); } } button 727 { on (release) { _root.ccGender = 'Male'; } } movieClip 729 { frame 1 { stop(); } frame 2 { stop(); } } button 731 { on (release) { _root.ccGender = 'Female'; } } movieClip 733 { frame 1 { stop(); } frame 2 { stop(); } } button 735 { on (release) { _root.ccRace = 'Orc'; } } movieClip 737 { frame 1 { stop(); } frame 2 { stop(); } } button 739 { on (release) { _root.ccRace = 'Dwarf'; } } movieClip 741 { frame 1 { stop(); } frame 2 { stop(); } } button 743 { on (release) { _root.ccRace = 'Elf'; } } movieClip 745 { frame 1 { stop(); } frame 2 { stop(); } } button 747 { on (release) { _root.ccRace = 'Human'; } } movieClip 749 { frame 1 { stop(); } frame 2 { stop(); } } button 751 { on (release) { _root.ccRace = 'Cat'; } } movieClip 753 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 756 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 762 { } button 763 { on (release) { stopAllSounds(); _root.fadeout_mc.play(); } } movieClip 764 { frame 1 { stop(); } frame 2 { stop(); } } // unknown tag 88 length 44 movieClip 767 { frame 1 { stop(); } frame 2 { sfxSelect = new Sound(); sfxSelect.attachSound('sfxSelect'); if (_root.soundEnabled) { sfxSelect.start(0, 1); } } frame 40 { _root.play(); } } frame 4 { function varDump() { trace('Gallery1: ' + _root.gallery1); trace('Gallery2: ' + _root.gallery2); trace('Gallery3: ' + _root.gallery3); trace('Gallery4: ' + _root.gallery4); trace('Gallery5: ' + _root.gallery5); trace('Gallery6: ' + _root.gallery6); trace('Gallery7: ' + _root.gallery7); trace('Gallery8: ' + _root.gallery8); trace('Gallery9: ' + _root.gallery9); trace('Gallery10: ' + _root.gallery10); trace('Gallery11: ' + _root.gallery11); trace('Gallery12: ' + _root.gallery12); trace('Gallery13: ' + _root.gallery13); trace('Gallery14: ' + _root.gallery14); trace('Gallery15: ' + _root.gallery15); trace('Gallery16: ' + _root.gallery16); trace('Gallery17: ' + _root.gallery17); trace('Gallery18: ' + _root.gallery18); trace('Gallery19: ' + _root.gallery19); trace('Gallery20: ' + _root.gallery20); trace('Gallery21: ' + _root.gallery21); trace('Gallery22: ' + _root.gallery22); trace('Gallery23: ' + _root.gallery23); trace('Gallery24: ' + _root.gallery24); trace('Gallery25: ' + _root.gallery25); trace('Gallery26: ' + _root.gallery26); trace('Gallery27: ' + _root.gallery27); trace('Gallery28: ' + _root.gallery28); trace('Gallery29: ' + _root.gallery29); trace('Gallery30: ' + _root.gallery30); trace('Gallery31: ' + _root.gallery31); trace('Gallery32: ' + _root.gallery32); trace('Gallery33: ' + _root.gallery33); trace('Gallery34: ' + _root.gallery34); trace('Gallery35: ' + _root.gallery35); trace('Gallery36: ' + _root.gallery36); trace('Gallery5B: ' + _root.gallery5B); trace('Gallery5C: ' + _root.gallery5C); trace('Gallery5D: ' + _root.gallery5D); trace('GameStarted: ' + _root.gameStarted); trace('CharLevel: ' + _root.characterLevel); trace('Orb1Found: ' + _root.orb1Get); trace('Orb2Found: ' + _root.orb2Get); trace('Orb3Found: ' + _root.orb3Get); trace('PlotProgress: ' + _root.plotProgress); trace('gameResets:' + _root.gameResets); trace('MoveMode: ' + _root.playerMoveMode); trace('Switch7: ' + _root.switch7); trace('OpeningViewed: ' + _root.openingViewed); trace('Scene1Viewed: ' + _root.scene1Viewed); trace('Scene2Viewed: ' + _root.scene2Viewed); trace('Scene9Viewed: ' + _root.scene9Viewed); trace('Scene12Viewed: ' + _root.scene12Viewed); trace('Scene14Viewed: ' + _root.scene14Viewed); trace('Scene15Viewed: ' + _root.scene15Viewed); trace('Scene16Viewed: ' + _root.scene16Viewed); trace('Scene28Viewed: ' + _root.scene28Viewed); trace('Scene30Viewed: ' + _root.scene30Viewed); trace('Scene34Viewed: ' + _root.scene34Viewed); trace('Scene36Viewed: ' + _root.scene36Viewed); trace('Scene40Viewed: ' + _root.scene40Viewed); trace('Scene52Viewed: ' + _root.scene52Viewed); trace('Scene53Viewed: ' + _root.scene53Viewed); trace('Scene54Viewed: ' + _root.scene54Viewed); trace('Scene63Viewed: ' + _root.scene63Viewed); trace('Scene69Viewed: ' + _root.scene69Viewed); trace('Scene78Viewed: ' + _root.scene78Viewed); trace('SecretIntroViewed: ' + _root.secretIntroViewed); trace('DiedOnDragon: ' + _root.diedOnDragon); trace('DragonKilled: ' + _root.dragonKilled); trace('DiedOnSpider: ' + _root.diedOnSpider); trace('DiedOnGhost: ' + _root.diedOnGhost); trace('DiedOnDemon: ' + _root.diedOnDemon); trace('Orb1Revealed: ' + _root.orb1Revealed); trace('Orb2Revealed: ' + _root.orb2Revealed); trace('Orb3Revealed: ' + _root.orb3Revealed); trace('playerX: ' + _root.playerX); trace('playerY: ' + _root.playerY); trace('playerRoom: ' + _root.playerRoom); trace('stopMove: ' + _root.stopMove); trace('playerSpeed: ' + _root.playerSpeed); trace('playerJump: ' + _root.playerJump); trace('spaceClear: ' + _root.spaceClear); trace('attacking: ' + _root.attacking); trace('cutsceneAttack: ' + _root.cutsceneAttack); trace('creepyMusic: ' + _root.creepyMusic); trace('jumpable: ' + _root.jumpable); trace('playerHealth: ' + _root.playerHealth); trace('playerKnockback: ' + _root.playerKnockback); trace('blocking: ' + _root.blocking); trace('blockSpeed: ' + _root.blockSpeed); trace('bossHealth: ' + _root.bossHealth); trace('pauseable: ' + _root.pauseable); trace('gamePaused: ' + _root.gamePaused); trace('escClear: ' + _root.escClear); trace('currentMusic: ' + _root.currentMusic); trace('muteClear: ' + _root.muteClear); } function onEnterFrame() { var v2; if (!Key.isDown(32)) { _root.spaceClear = true; } if (!Key.isDown(77)) { _root.muteClear = true; } if (Key.isDown(16) && Key.isDown(34)) { varDump(); } if (!Key.isDown(27)) { _root.escClear = true; } if (Key.isDown(80)) { progressSlider_mc.play(); } if (Key.isDown(27) && _root.escClear) { quitSlider_mc.play(); } if (Key.isDown(77) && _root.muteClear) { _root.soundEnabled = !_root.soundEnabled; if (!_root.soundEnabled) { muteIcon_mc.gotoAndStop(2); stopAllSounds(); } else { muteIcon_mc.gotoAndStop(3); switch (_root.currentMusic) { case 1: mscMain.start(0, 999); break; case 2: mscAction.start(0, 999); break; case 3: mscCreepy.start(0, 999); break; case 4: mscBoss.start(0, 999); break; default: trace('No music to start.'); } } } examineText_mc._alpha = 0; if (!_root.stopMove && !_root.gamePaused) { if (!_root.attacking && Key.isDown(90) && _root.characterLevel >= 1 && !_root.playerKnockback) { _root.attacking = true; _root.attachMovie('Attack', 'attack_mc', 100, {'_x': player_mc._x + 6, '_y': player_mc._y + 6, '_rotation': 90 * _root.playerDir}); } if (Key.isDown(88) && _root.characterLevel >= 2 && _root.playerMoveMode != 4) { _root.blocking = true; } else { _root.blocking = false; } if (_root.playerMoveMode == 1 || _root.playerMoveMode == 3) { if (!_root.playerKnockback) { _root.playerXVel = 0; _root.playerYVel = 0; if (Key.isDown(37)) { _root.playerDir = 3; if (_root.blocking) { _root.playerXVel -= _root.blockSpeed; } else { _root.playerXVel -= _root.playerSpeed; } } if (Key.isDown(39)) { _root.playerDir = 1; if (_root.blocking) { _root.playerXVel += _root.blockSpeed; } else { _root.playerXVel += _root.playerSpeed; } } if (Key.isDown(40)) { _root.playerDir = 2; if (_root.blocking) { _root.playerYVel += _root.blockSpeed; } else { _root.playerYVel += _root.playerSpeed; } } if (Key.isDown(38)) { _root.playerDir = 0; if (_root.blocking) { _root.playerYVel -= _root.blockSpeed; } else { _root.playerYVel -= _root.playerSpeed; } } } else { if (Math.abs(_root.playerXVel) >= 1) { _root.playerXVel -= _root.playerXVel / Math.abs(_root.playerXVel); } else { _root.playerXVel = 0; } if (Math.abs(_root.playerYVel) >= 1) { _root.playerYVel -= _root.playerYVel / Math.abs(_root.playerYVel); } else { _root.playerYVel = 0; } if (_root.playerXVel == 0 && _root.playerYVel == 0) { _root.playerKnockback = false; } } } else { if (_root.playerMoveMode == 2) { _root.playerYVel += 1; if (!_root.playerKnockback) { _root.playerXVel = 0; if (Key.isDown(37)) { _root.playerDir = 3; if (_root.blocking) { _root.playerXVel -= _root.blockSpeed; } else { _root.playerXVel -= _root.playerSpeed; } } if (Key.isDown(39)) { _root.playerDir = 1; if (_root.blocking) { _root.playerXVel += _root.blockSpeed; } else { _root.playerXVel += _root.playerSpeed; } } if (Key.isDown(40)) { } if (Key.isDown(38)) { if (_root.jumpable) { _root.playerYVel = -1 * _root.playerJump; } } } else { if (Math.abs(_root.playerXVel) >= 1) { _root.playerXVel -= _root.playerXVel / Math.abs(_root.playerXVel); } else { _root.playerXVel = 0; } if (_root.playerXVel == 0) { _root.playerKnockback = false; } } } else { if (_root.playerMoveMode == 4) { if (!_root.playerKnockback) { _root.playerXVel = 0; _root.playerYVel = 0; if (Key.isDown(38)) { _root.playerDir = 0; if (_root.blocking) { _root.playerYVel -= _root.blockSpeed; } else { _root.playerYVel -= _root.playerSpeed; } } } } } } _root.jumpable = false; player_mc._x += _root.playerXVel; player_mc._y += _root.playerYVel; if (_root.playerMoveMode == 3) { _root.playerMoveMode = 2; _root.jumpable = true; } do { v2 = false; for (mc in maps_mc) { v2 = v2 || maps_mc[mc].testHit(); } } while (v2); attack_mc._x = player_mc._x + 6; attack_mc._y = player_mc._y + 6; attack_mc._rotation = 90 * _root.playerDir; if (Key.isDown(32) && _root.spaceClear) { for (mc in maps_mc) { maps_mc[mc].interact(); } } } if (Key.isDown(32)) { _root.spaceClear = false; } if (Key.isDown(77)) { _root.muteClear = false; } if (Key.isDown(27)) { _root.escClear = false; } if (_root.characterLevel == -1) { princessPlayer_mc._x = player_mc._x; princessPlayer_mc._y = player_mc._y - 15; princessPlayer_mc._alpha = 100; } else { princessPlayer_mc._alpha = 0; } if (_root.characterLevel >= 2) { shield_mc._alpha = player_mc._alpha; shield_mc._x = player_mc._x + 6; shield_mc._y = player_mc._y + 6; if (_root.blocking) { shield_mc._rotation = 90 * _root.playerDir; shield_mc.gotoAndStop(2); } else { if (_root.playerMoveMode == 2) { shield_mc._rotation = 0; if (_root.playerDir == 1) { shield_mc.gotoAndStop(3); } else { shield_mc.gotoAndStop(4); } } else { shield_mc.gotoAndStop(1); shield_mc._rotation = 90 * _root.playerDir; } } } else { shield_mc._alpha = 0; } } function autoSave() { trace('Saved!'); if (_root.saveSlot == 1) { _root.saveData.data.slot1GameStart = _root.gameStarted; _root.saveData.data.slot1CharLvl = _root.characterLevel; _root.saveData.data.slot1Orb1 = _root.orb1Get; _root.saveData.data.slot1Orb2 = _root.orb2Get; _root.saveData.data.slot1Orb3 = _root.orb3Get; _root.saveData.data.slot1PlotProgress = _root.plotProgress; _root.saveData.data.slot1PlayerX = player_mc._x; _root.saveData.data.slot1PlayerY = player_mc._y; _root.saveData.data.slot1PlayerRoom = maps_mc._currentframe; _root.saveData.data.slot1GameResets = _root.gameResets; _root.saveData.data.slot1PlayerMoveMode = _root.playerMoveMode; _root.saveData.data.slot1Switch7 = _root.switch7; _root.saveData.data.slot1OpeningViewed = _root.openingViewed; _root.saveData.data.slot1Scene1Viewed = _root.scene1Viewed; _root.saveData.data.slot1Scene2Viewed = _root.scene2Viewed; _root.saveData.data.slot1Scene9Viewed = _root.scene9Viewed; _root.saveData.data.slot1Scene12Viewed = _root.scene12Viewed; _root.saveData.data.slot1Scene14Viewed = _root.scene14Viewed; _root.saveData.data.slot1Scene15Viewed = _root.scene15Viewed; _root.saveData.data.slot1Scene16Viewed = _root.scene16Viewed; _root.saveData.data.slot1Scene28Viewed = _root.scene28Viewed; _root.saveData.data.slot1Scene30Viewed = _root.scene30Viewed; _root.saveData.data.slot1Scene34Viewed = _root.scene34Viewed; _root.saveData.data.slot1Scene36Viewed = _root.scene36Viewed; _root.saveData.data.slot1Scene40Viewed = _root.scene40Viewed; _root.saveData.data.slot1Scene52Viewed = _root.scene52Viewed; _root.saveData.data.slot1Scene53Viewed = _root.scene53Viewed; _root.saveData.data.slot1Scene54Viewed = _root.scene54Viewed; _root.saveData.data.slot1Scene63Viewed = _root.scene63Viewed; _root.saveData.data.slot1Scene69Viewed = _root.scene69Viewed; _root.saveData.data.slot1Scene78Viewed = _root.scene78Viewed; _root.saveData.data.slot1SecretIntroViewed = _root.secretIntroViewed; _root.saveData.data.slot1DiedOnDragon = _root.diedOnDragon; _root.saveData.data.slot1DragonKilled = _root.dragonKilled; _root.saveData.data.slot1DiedOnSpider = _root.diedOnSpider; _root.saveData.data.slot1DiedOnGhost = _root.diedOnGhost; _root.saveData.data.slot1DiedOnDemon = _root.diedOnDemon; _root.saveData.data.slot1Orb1Revealed = _root.orb1Revealed; _root.saveData.data.slot1Orb2Revealed = _root.orb2Revealed; _root.saveData.data.slot1Orb3Revealed = _root.orb3Revealed; } if (_root.saveSlot == 2) { _root.saveData.data.slot2GameStart = _root.gameStarted; _root.saveData.data.slot2CharLvl = _root.characterLevel; _root.saveData.data.slot2Orb1 = _root.orb1Get; _root.saveData.data.slot2Orb2 = _root.orb2Get; _root.saveData.data.slot2Orb3 = _root.orb3Get; _root.saveData.data.slot2PlotProgress = _root.plotProgress; _root.saveData.data.slot2PlayerX = player_mc._x; _root.saveData.data.slot2PlayerY = player_mc._y; _root.saveData.data.slot2PlayerRoom = maps_mc._currentframe; _root.saveData.data.slot2GameResets = _root.gameResets; _root.saveData.data.slot2PlayerMoveMode = _root.playerMoveMode; _root.saveData.data.slot2Switch7 = _root.switch7; _root.saveData.data.slot2OpeningViewed = _root.openingViewed; _root.saveData.data.slot2Scene1Viewed = _root.scene1Viewed; _root.saveData.data.slot2Scene2Viewed = _root.scene2Viewed; _root.saveData.data.slot2Scene9Viewed = _root.scene9Viewed; _root.saveData.data.slot2Scene12Viewed = _root.scene12Viewed; _root.saveData.data.slot2Scene14Viewed = _root.scene14Viewed; _root.saveData.data.slot2Scene15Viewed = _root.scene15Viewed; _root.saveData.data.slot2Scene16Viewed = _root.scene16Viewed; _root.saveData.data.slot2Scene28Viewed = _root.scene28Viewed; _root.saveData.data.slot2Scene30Viewed = _root.scene30Viewed; _root.saveData.data.slot2Scene34Viewed = _root.scene34Viewed; _root.saveData.data.slot2Scene36Viewed = _root.scene36Viewed; _root.saveData.data.slot2Scene40Viewed = _root.scene40Viewed; _root.saveData.data.slot2Scene52Viewed = _root.scene52Viewed; _root.saveData.data.slot2Scene53Viewed = _root.scene53Viewed; _root.saveData.data.slot2Scene54Viewed = _root.scene54Viewed; _root.saveData.data.slot2Scene63Viewed = _root.scene63Viewed; _root.saveData.data.slot2Scene69Viewed = _root.scene69Viewed; _root.saveData.data.slot2Scene78Viewed = _root.scene78Viewed; _root.saveData.data.slot2SecretIntroViewed = _root.secretIntroViewed; _root.saveData.data.slot2DiedOnDragon = _root.diedOnDragon; _root.saveData.data.slot2DragonKilled = _root.dragonKilled; _root.saveData.data.slot2DiedOnSpider = _root.diedOnSpider; _root.saveData.data.slot2DiedOnGhost = _root.diedOnGhost; _root.saveData.data.slot2DiedOnDemon = _root.diedOnDemon; _root.saveData.data.slot2Orb1Revealed = _root.orb1Revealed; _root.saveData.data.slot2Orb2Revealed = _root.orb2Revealed; _root.saveData.data.slot2Orb3Revealed = _root.orb3Revealed; } if (_root.saveSlot == 3) { _root.saveData.data.slot3GameStart = _root.gameStarted; _root.saveData.data.slot3CharLvl = _root.characterLevel; _root.saveData.data.slot3Orb1 = _root.orb1Get; _root.saveData.data.slot3Orb2 = _root.orb2Get; _root.saveData.data.slot3Orb3 = _root.orb3Get; _root.saveData.data.slot3PlotProgress = _root.plotProgress; _root.saveData.data.slot3PlayerX = player_mc._x; _root.saveData.data.slot3PlayerY = player_mc._y; _root.saveData.data.slot3PlayerRoom = maps_mc._currentframe; _root.saveData.data.slot3GameResets = _root.gameResets; _root.saveData.data.slot3PlayerMoveMode = _root.playerMoveMode; _root.saveData.data.slot3Switch7 = _root.switch7; _root.saveData.data.slot3OpeningViewed = _root.openingViewed; _root.saveData.data.slot3Scene1Viewed = _root.scene1Viewed; _root.saveData.data.slot3Scene2Viewed = _root.scene2Viewed; _root.saveData.data.slot3Scene9Viewed = _root.scene9Viewed; _root.saveData.data.slot3Scene12Viewed = _root.scene12Viewed; _root.saveData.data.slot3Scene14Viewed = _root.scene14Viewed; _root.saveData.data.slot3Scene15Viewed = _root.scene15Viewed; _root.saveData.data.slot3Scene16Viewed = _root.scene16Viewed; _root.saveData.data.slot3Scene28Viewed = _root.scene28Viewed; _root.saveData.data.slot3Scene30Viewed = _root.scene30Viewed; _root.saveData.data.slot3Scene34Viewed = _root.scene34Viewed; _root.saveData.data.slot3Scene36Viewed = _root.scene36Viewed; _root.saveData.data.slot3Scene40Viewed = _root.scene40Viewed; _root.saveData.data.slot3Scene52Viewed = _root.scene52Viewed; _root.saveData.data.slot3Scene53Viewed = _root.scene53Viewed; _root.saveData.data.slot3Scene54Viewed = _root.scene54Viewed; _root.saveData.data.slot3Scene63Viewed = _root.scene63Viewed; _root.saveData.data.slot3Scene69Viewed = _root.scene69Viewed; _root.saveData.data.slot3Scene78Viewed = _root.scene78Viewed; _root.saveData.data.slot3SecretIntroViewed = _root.secretIntroViewed; _root.saveData.data.slot3DiedOnDragon = _root.diedOnDragon; _root.saveData.data.slot3DragonKilled = _root.dragonKilled; _root.saveData.data.slot3DiedOnSpider = _root.diedOnSpider; _root.saveData.data.slot3DiedOnGhost = _root.diedOnGhost; _root.saveData.data.slot3DiedOnDemon = _root.diedOnDemon; _root.saveData.data.slot3Orb1Revealed = _root.orb1Revealed; _root.saveData.data.slot3Orb2Revealed = _root.orb2Revealed; _root.saveData.data.slot3Orb3Revealed = _root.orb3Revealed; } _root.saveData.data.gallery1 = _root.gallery1; _root.saveData.data.gallery2 = _root.gallery2; _root.saveData.data.gallery3 = _root.gallery3; _root.saveData.data.gallery4 = _root.gallery4; _root.saveData.data.gallery5 = _root.gallery5; _root.saveData.data.gallery6 = _root.gallery6; _root.saveData.data.gallery7 = _root.gallery7; _root.saveData.data.gallery8 = _root.gallery8; _root.saveData.data.gallery9 = _root.gallery9; _root.saveData.data.gallery10 = _root.gallery10; _root.saveData.data.gallery11 = _root.gallery11; _root.saveData.data.gallery12 = _root.gallery12; _root.saveData.data.gallery13 = _root.gallery13; _root.saveData.data.gallery14 = _root.gallery14; _root.saveData.data.gallery15 = _root.gallery15; _root.saveData.data.gallery16 = _root.gallery16; _root.saveData.data.gallery17 = _root.gallery17; _root.saveData.data.gallery18 = _root.gallery18; _root.saveData.data.gallery19 = _root.gallery19; _root.saveData.data.gallery20 = _root.gallery20; _root.saveData.data.gallery21 = _root.gallery21; _root.saveData.data.gallery22 = _root.gallery22; _root.saveData.data.gallery23 = _root.gallery23; _root.saveData.data.gallery24 = _root.gallery24; _root.saveData.data.gallery25 = _root.gallery25; _root.saveData.data.gallery26 = _root.gallery26; _root.saveData.data.gallery27 = _root.gallery27; _root.saveData.data.gallery28 = _root.gallery28; _root.saveData.data.gallery29 = _root.gallery29; _root.saveData.data.gallery30 = _root.gallery30; _root.saveData.data.gallery31 = _root.gallery31; _root.saveData.data.gallery32 = _root.gallery32; _root.saveData.data.gallery33 = _root.gallery33; _root.saveData.data.gallery34 = _root.gallery34; _root.saveData.data.gallery35 = _root.gallery35; _root.saveData.data.gallery36 = _root.gallery36; _root.saveData.data.gallery5B = _root.gallery5B; _root.saveData.data.gallery5C = _root.gallery5C; _root.saveData.data.gallery5D = _root.gallery5D; _root.saveData.flush(); } stop(); mscMain = new Sound(); mscMain.attachSound('mscMain'); mscAction = new Sound(); mscAction.attachSound('mscAction'); mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); mscBoss = new Sound(); mscBoss.attachSound('mscBoss'); player_mc._x = _root.playerX; player_mc._y = _root.playerY; maps_mc.gotoAndStop(_root.playerRoom); _root.finaleOrbs = 0; _root.playerSpeed = 5; _root.playerJump = 10; _root.stopMove = false; _root.spaceClear = true; _root.attacking = false; _root.cutsceneAttack = false; _root.jumpable = true; _root.playerHealth = 3; _root.playerKnockback = false; _root.blocking = false; _root.blockSpeed = 3; _root.bossHealth = 6; _root.pauseable = true; _root.orbsCollected = 0; _root.playerXVel = 0; _root.playerYVel = 0; _root.switchJiggles = 5; _root.gamePaused = false; _root.escClear = true; _root.muteClear = true; _root.redOrbPlaced = false; _root.greenOrbPlaced = false; _root.blueOrbPlaced = false; _root.libraryRevealed = false; _root.scene89Viewed = false; _root.scene90Viewed = false; _root.scene91Viewed = false; _root.scene92Viewed = false; _root.scene100Viewed = false; _root.crazyRant = 0; _root.playerMaxHealth = 3; if (_root.orb1Get) { ++orbsCollected; } if (_root.orb2Get) { ++orbsCollected; } if (_root.orb3Get) { ++orbsCollected; } } movieClip 771 InteractivePanel { #initclip Object.registerClass('InteractivePanel', InteractivePanel); #endinitclip } movieClip 773 deadTree { #initclip Object.registerClass('deadTree', Wall); #endinitclip } movieClip 775 OuterWall1 { #initclip Object.registerClass('OuterWall1', Wall); #endinitclip } movieClip 777 OuterWall2 { #initclip Object.registerClass('OuterWall2', Wall); #endinitclip } movieClip 779 HangedMan { #initclip Object.registerClass('HangedMan', Wall); #endinitclip } movieClip 782 Door { #initclip Object.registerClass('Door', Door); #endinitclip } movieClip 786 TriggerPanel { #initclip Object.registerClass('TriggerPanel', TriggerPanel); #endinitclip } movieClip 788 Wall3 { #initclip Object.registerClass('Wall3', Wall); #endinitclip } movieClip 790 Wall1 { #initclip Object.registerClass('Wall1', Wall); #endinitclip } movieClip 792 Wall2 { #initclip Object.registerClass('Wall2', Wall); #endinitclip } movieClip 794 Wall4 { #initclip Object.registerClass('Wall4', Wall); #endinitclip } movieClip 796 Wall5 { #initclip Object.registerClass('Wall5', Wall); #endinitclip } movieClip 798 Wall6 { #initclip Object.registerClass('Wall6', Wall); #endinitclip } movieClip 800 Wall7 { #initclip Object.registerClass('Wall7', Wall); #endinitclip } movieClip 802 Wall8 { #initclip Object.registerClass('Wall8', Wall); #endinitclip } movieClip 806 { frame 1 { stop(); } frame 2 { stop(); } frame 14 { sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 26 { if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 52 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 65 { _root.plotProgress = 21; gotoAndStop(2); _root.stopMove = false; } } movieClip 812 Gate { #initclip Object.registerClass('Gate', Wall); #endinitclip frame 1 { stop(); isActive = true; } frame 7 { stop(); isActive = false; } } movieClip 815 { frame 1 { stop(); } frame 2 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 9 { stop(); } frame 10 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 17 { stop(); } frame 18 { gotoAndPlay(2); } } movieClip 817 Wall9 { #initclip Object.registerClass('Wall9', Wall); #endinitclip } movieClip 819 Wall10 { #initclip Object.registerClass('Wall10', Wall); #endinitclip } movieClip 820 Wall12 { #initclip Object.registerClass('Wall12', Wall); #endinitclip } movieClip 821 Wall13 { #initclip Object.registerClass('Wall13', Wall); #endinitclip } movieClip 823 Wall14 { #initclip Object.registerClass('Wall14', Wall); #endinitclip } movieClip 824 Wall15 { #initclip Object.registerClass('Wall15', Wall); #endinitclip } movieClip 826 Wall16 { #initclip Object.registerClass('Wall16', Wall); #endinitclip } movieClip 828 Wall11 { #initclip Object.registerClass('Wall11', Wall); #endinitclip } movieClip 839 BlueGate { #initclip Object.registerClass('BlueGate', Wall); #endinitclip frame 1 { stop(); isActive = true; } frame 7 { stop(); isActive = false; } frame 13 { gotoAndStop(1); } frame 14 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 20 { stop(); isActive = false; } } movieClip 842 { frame 1 { stop(); } frame 2 { if (_root.plotProgress == 2) { gotoAndPlay(20); } else { nextFrame(); } } frame 3 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 10 { stop(); } frame 11 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 18 { stop(); } frame 19 { gotoAndPlay(2); } frame 20 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 22 { stop(); } frame 23 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 25 { stop(); } frame 26 { gotoAndPlay(2); } } movieClip 844 Wall17 { #initclip Object.registerClass('Wall17', Wall); #endinitclip } movieClip 845 Wall18 { #initclip Object.registerClass('Wall18', Wall); #endinitclip } movieClip 867 { frame 1 { stop(); } frame 2 { stop(); } frame 7 { stop(); } frame 12 { stop(); } frame 17 { stop(); } frame 22 { stop(); } frame 27 { stop(); } frame 32 { stop(); } frame 37 { stop(); } frame 42 { stop(); } frame 47 { stop(); } frame 52 { stop(); } frame 57 { stop(); } frame 62 { stop(); } } movieClip 869 Wall19 { #initclip Object.registerClass('Wall19', Wall); #endinitclip } movieClip 870 Dragon2 { #initclip Object.registerClass('Dragon2', TriggerPanel); #endinitclip frame 1 { if (_root.plotProgress != 2) { loadMovie('', this); } } frame 26 { _root.playerSpeed = 7; } frame 61 { _root.playerSpeed = 8; } } movieClip 872 Wall20 { #initclip Object.registerClass('Wall20', Wall); #endinitclip } movieClip 873 Wall21 { #initclip Object.registerClass('Wall21', Wall); #endinitclip } movieClip 874 Wall23 { #initclip Object.registerClass('Wall23', Wall); #endinitclip } movieClip 875 Wall25 { #initclip Object.registerClass('Wall25', Wall); #endinitclip } movieClip 877 Dragon1 { #initclip Object.registerClass('Dragon1', TriggerPanel); #endinitclip frame 1 { stop(); if (_root.plotProgress > 2) { loadMovie('', this); } } frame 13 { mscAction = new Sound(); mscAction.attachSound('mscAction'); _root.currentMusic = 2; if (_root.soundEnabled) { mscAction.start(0, 999); } } frame 17 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 54 { _root.stopMove = false; } } movieClip 878 Wall22 { #initclip Object.registerClass('Wall22', Wall); #endinitclip } movieClip 879 Wall24 { #initclip Object.registerClass('Wall24', Wall); #endinitclip } movieClip 880 Wall28 { #initclip Object.registerClass('Wall28', Wall); #endinitclip } movieClip 881 Wall29 { #initclip Object.registerClass('Wall29', Wall); #endinitclip } movieClip 882 { frame 1 { stop(); if (_root.characterLevel >= 1) { nextFrame(); } } frame 2 { stop(); } } movieClip 891 FakeWall { #initclip Object.registerClass('FakeWall', Wall); #endinitclip frame 1 { function onEnterFrame() { if (this.hitTest(_root.attack_mc)) { play(); } } stop(); } frame 8 { _root.stopMove = true; } frame 13 { _root.scenes_mc.gotoAndStop(26); } frame 31 { stop(); isActive = false; } } movieClip 893 Wall27 { #initclip Object.registerClass('Wall27', Wall); #endinitclip } movieClip 894 Wall30 { #initclip Object.registerClass('Wall30', Wall); #endinitclip } movieClip 895 Wall26 { #initclip Object.registerClass('Wall26', Wall); #endinitclip } movieClip 896 Wall31 { #initclip Object.registerClass('Wall31', Wall); #endinitclip } movieClip 897 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 900 NOTALADDER { #initclip Object.registerClass('NOTALADDER', Ladder); #endinitclip } movieClip 902 Wall32 { #initclip Object.registerClass('Wall32', Wall); #endinitclip } movieClip 904 Wall33 { #initclip Object.registerClass('Wall33', Wall); #endinitclip } movieClip 905 Wall34 { #initclip Object.registerClass('Wall34', Wall); #endinitclip } movieClip 906 Wall35 { #initclip Object.registerClass('Wall35', Wall); #endinitclip } movieClip 907 Wall36 { #initclip Object.registerClass('Wall36', Wall); #endinitclip } movieClip 910 Orb1 { #initclip Object.registerClass('Orb1', Wall); #endinitclip frame 1 { stop(); } frame 2 { stop(); isActive = false; } } movieClip 913 Orb2 { #initclip Object.registerClass('Orb2', Wall); #endinitclip frame 1 { stop(); } frame 2 { stop(); isActive = false; } } movieClip 916 Orb3 { #initclip Object.registerClass('Orb3', Wall); #endinitclip frame 1 { stop(); } frame 2 { stop(); isActive = false; } } movieClip 918 Wall37 { #initclip Object.registerClass('Wall37', Wall); #endinitclip } movieClip 920 Wall38 { #initclip Object.registerClass('Wall38', Wall); #endinitclip } movieClip 921 Wall39 { #initclip Object.registerClass('Wall39', Wall); #endinitclip } movieClip 922 Wall40 { #initclip Object.registerClass('Wall40', Wall); #endinitclip } movieClip 923 Wall41 { #initclip Object.registerClass('Wall41', Wall); #endinitclip } movieClip 925 Wall42 { #initclip Object.registerClass('Wall42', Wall); #endinitclip } movieClip 927 Wall43 { #initclip Object.registerClass('Wall43', Wall); #endinitclip } movieClip 929 Wall44 { #initclip Object.registerClass('Wall44', Wall); #endinitclip } movieClip 930 Wall45 { #initclip Object.registerClass('Wall45', Wall); #endinitclip } movieClip 931 Wall46 { #initclip Object.registerClass('Wall46', Wall); #endinitclip } movieClip 932 Pedestal1 { #initclip Object.registerClass('Pedestal1', Wall); #endinitclip } movieClip 933 Pedestal2 { #initclip Object.registerClass('Pedestal2', Wall); #endinitclip } movieClip 934 Pedestal3 { #initclip Object.registerClass('Pedestal3', Wall); #endinitclip } movieClip 937 Wall49 { #initclip Object.registerClass('Wall49', Wall); #endinitclip } movieClip 939 Wall47 { #initclip Object.registerClass('Wall47', Wall); #endinitclip } movieClip 940 Wall50 { #initclip Object.registerClass('Wall50', Wall); #endinitclip } movieClip 945 Webbing1 { #initclip Object.registerClass('Webbing1', Wall); #endinitclip frame 1 { function onEnterFrame() { if (hitTest(_root.attack_mc)) { play(); } } if (_root.plotProgress >= 5) { gotoAndStop(17); } stop(); } frame 9 { stop(); } frame 16 { stop(); } frame 17 { function onEnterFrame() {} isActive = false; _root.maps_mc.sidewall1_mc.isActive = true; _root.maps_mc.sidewall2_mc.isActive = true; if (_root.plotProgress < 5) { _root.plotProgress = 5; } stop(); } } movieClip 947 Webbing1-1 { #initclip Object.registerClass('Webbing1-1', Wall); #endinitclip } movieClip 949 spidercorpse1 { #initclip Object.registerClass('spidercorpse1', Wall); #endinitclip } movieClip 951 spidercorpse2 { #initclip Object.registerClass('spidercorpse2', Wall); #endinitclip } movieClip 952 Wall48 { #initclip Object.registerClass('Wall48', Wall); #endinitclip } movieClip 954 Wall51 { #initclip Object.registerClass('Wall51', Wall); #endinitclip } movieClip 956 Wall52 { #initclip Object.registerClass('Wall52', Wall); #endinitclip } movieClip 958 Wall53 { #initclip Object.registerClass('Wall53', Wall); #endinitclip } movieClip 963 Webbing2 { #initclip Object.registerClass('Webbing2', Wall); #endinitclip frame 1 { function onEnterFrame() { if (hitTest(_root.attack_mc)) { play(); } } if (_root.plotProgress >= 6) { gotoAndStop(20); } stop(); } frame 9 { stop(); } frame 18 { function onEnterFrame() { if (hitTest(_root.attack_mc)) { _root.stopMove = true; _root.scenes_mc.gotoAndStop(77); play(); } } stop(); } frame 19 { function onEnterFrame() {} stop(); } frame 20 { function onEnterFrame() {} stop(); this.isActive = false; if (_root.plotProgress < 6) { _root.plotProgress = 6; } } } movieClip 965 Ladder1 { #initclip Object.registerClass('Ladder1', Ladder); #endinitclip } movieClip 966 Wall106 { #initclip Object.registerClass('Wall106', Wall); #endinitclip } movieClip 967 Wall107 { #initclip Object.registerClass('Wall107', Wall); #endinitclip } movieClip 968 Wall108 { #initclip Object.registerClass('Wall108', Wall); #endinitclip } movieClip 969 Wall109 { #initclip Object.registerClass('Wall109', Wall); #endinitclip } movieClip 970 Wall110 { #initclip Object.registerClass('Wall110', Wall); #endinitclip } movieClip 972 Webbing1-2 { #initclip Object.registerClass('Webbing1-2', Wall); #endinitclip } movieClip 974 { } movieClip 977 Wall64 { #initclip Object.registerClass('Wall64', Wall); #endinitclip } movieClip 978 Wall56 { #initclip Object.registerClass('Wall56', Wall); #endinitclip } movieClip 980 Ladder2 { #initclip Object.registerClass('Ladder2', Ladder); #endinitclip } movieClip 981 Wall55 { #initclip Object.registerClass('Wall55', Wall); #endinitclip } movieClip 983 Wall58 { #initclip Object.registerClass('Wall58', Wall); #endinitclip } movieClip 984 Wall59 { #initclip Object.registerClass('Wall59', Wall); #endinitclip } movieClip 985 Wall60 { #initclip Object.registerClass('Wall60', Wall); #endinitclip } movieClip 986 Wall62 { #initclip Object.registerClass('Wall62', Wall); #endinitclip } movieClip 987 Wall63 { #initclip Object.registerClass('Wall63', Wall); #endinitclip } movieClip 989 Wall54 { #initclip Object.registerClass('Wall54', Wall); #endinitclip } movieClip 991 Wall61 { #initclip Object.registerClass('Wall61', Wall); #endinitclip } movieClip 994 Weight { #initclip Object.registerClass('Weight', Wall); #endinitclip } movieClip 998 Rope { #initclip Object.registerClass('Rope', Ladder); #endinitclip frame 1 { stop(); this.isActive = false; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); this.isActive = true; } } movieClip 1000 { } movieClip 1005 { frame 1 { function testHit() { return theWeight_mc.testHit() || rope_mc.testHit(); } function onEnterFrame() { if (_root.attack_mc.hitTest(rope_mc) && _root.plotProgress < 7) { play(); } } stop(); } frame 2 { rope_mc.play(); } frame 10 { stop(); } frame 11 { rope_mc.play(); } frame 19 { stop(); } frame 20 { _root.plotProgress = 7; rope_mc.play(); } frame 45 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 50 { _parent.Shld2Floor1_mc.isActive = true; _parent.Shld2Floor2_mc.isActive = true; _parent.Shld2Floor3_mc.isActive = false; } frame 58 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 58 { _root.plotProgress = 8; } frame 59 { rope_mc.gotoAndStop(4); stop(); } } movieClip 1007 Ladder3 { #initclip Object.registerClass('Ladder3', Ladder); #endinitclip } movieClip 1009 Wall57 { #initclip Object.registerClass('Wall57', Wall); #endinitclip } movieClip 1010 Wall111 { #initclip Object.registerClass('Wall111', Wall); #endinitclip } movieClip 1011 Wall112 { #initclip Object.registerClass('Wall112', Wall); #endinitclip } movieClip 1013 Wall65 { #initclip Object.registerClass('Wall65', Wall); #endinitclip } movieClip 1015 Wall66 { #initclip Object.registerClass('Wall66', Wall); #endinitclip } movieClip 1017 Wall67 { #initclip Object.registerClass('Wall67', Wall); #endinitclip } movieClip 1018 Wall68 { #initclip Object.registerClass('Wall68', Wall); #endinitclip } movieClip 1020 Ramp { #initclip Object.registerClass('Ramp', Ramp); #endinitclip } movieClip 1022 Wall69 { #initclip Object.registerClass('Wall69', Wall); #endinitclip } movieClip 1024 Ladder5 { #initclip Object.registerClass('Ladder5', Ladder); #endinitclip } movieClip 1026 Ladder4 { #initclip Object.registerClass('Ladder4', Ladder); #endinitclip } movieClip 1028 WeightRamp { #initclip Object.registerClass('WeightRamp', Ramp); #endinitclip } movieClip 1031 spiderHeadRamp { #initclip Object.registerClass('spiderHeadRamp', Ramp); #endinitclip } movieClip 1033 spiderHeadWall { #initclip Object.registerClass('spiderHeadWall', Wall); #endinitclip } movieClip 1034 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } } frame 7 { _root.plotProgress = 8; sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1035 Wall70 { #initclip Object.registerClass('Wall70', Wall); #endinitclip } movieClip 1037 { frame 1 { function onEnterFrame() {} if (_root.characterLevel < 2 && _root.plotProgress >= 12) { gotoAndStop(2); } stop(); } frame 2 { function onEnterFrame() { if (_root.characterLevel >= 2 || _root.plotProgress < 12) { play(); } } stop(); } } movieClip 1040 Ladder7 { #initclip Object.registerClass('Ladder7', Ladder); #endinitclip } movieClip 1042 Ladder6 { #initclip Object.registerClass('Ladder6', Ladder); #endinitclip } movieClip 1044 Ladder8 { #initclip Object.registerClass('Ladder8', Ladder); #endinitclip } movieClip 1046 Ladder9 { #initclip Object.registerClass('Ladder9', Ladder); #endinitclip } movieClip 1053 { } movieClip 1063 { frame 1 { function onEnterFrame() { if (_root.player_mc._y > this._y) { trace('lol u died'); _root.stopMove = true; _root.scenes_mc.gotoAndStop(75); } } spiders1_mc.gotoAndPlay(7); spiders2_mc.gotoAndPlay(13); spiders3_mc.gotoAndPlay(1); spiders4_mc.gotoAndPlay(10); } frame 16 { gotoAndPlay(1); } frame 32 { this._y = 1000; stop(); } } movieClip 1065 { } movieClip 1080 ShieldBreakWall { #initclip Object.registerClass('ShieldBreakWall', Wall); #endinitclip frame 1 { stop(); if (_root.plotProgress >= 12) { this.isActive = false; _parent.spiderWall4_mc.isActive = true; _parent.spiderWall5_mc.isActive = true; gotoAndStop(63); } } frame 2 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 17 { if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 32 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 32 { stop(); _parent.shieldDrop_mc.play(); _parent.shieldDrop_mc._x = _root.player_mc._x + 6; _parent.shieldStand_mc.play(); _root.player_mc._y += 6; } frame 33 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 33 { this.isActive = false; _parent.spiderWall4_mc.isActive = true; _parent.spiderWall5_mc.isActive = true; _parent.shieldStand_mc.play(); _root.stopMove = false; } frame 39 { _parent.spiderDoor_mc.play(); } frame 55 { sfxDemon2 = new Sound(); sfxDemon2.attachSound('sfxDemon2'); if (_root.soundEnabled) { sfxDemon2.start(0, 1); } } frame 63 { stop(); } } movieClip 1082 Wall73 { #initclip Object.registerClass('Wall73', Wall); #endinitclip } movieClip 1084 Walluh { #initclip Object.registerClass('Walluh', Wall); #endinitclip } movieClip 1086 Wall72 { #initclip Object.registerClass('Wall72', Wall); #endinitclip } movieClip 1087 Wall74 { #initclip Object.registerClass('Wall74', Wall); #endinitclip } movieClip 1088 Wall75 { #initclip Object.registerClass('Wall75', Wall); #endinitclip } movieClip 1089 Wall76 { #initclip Object.registerClass('Wall76', Wall); #endinitclip } movieClip 1090 Wall79 { #initclip Object.registerClass('Wall79', Wall); #endinitclip } movieClip 1091 Wall80 { #initclip Object.registerClass('Wall80', Wall); #endinitclip } movieClip 1093 Wall81 { #initclip Object.registerClass('Wall81', Wall); #endinitclip } movieClip 1094 Wall83 { #initclip Object.registerClass('Wall83', Wall); #endinitclip } movieClip 1096 Wall84 { #initclip Object.registerClass('Wall84', Wall); #endinitclip } movieClip 1098 Wall85 { #initclip Object.registerClass('Wall85', Wall); #endinitclip } movieClip 1099 Wall86 { #initclip Object.registerClass('Wall86', Wall); #endinitclip } movieClip 1101 Wall82 { #initclip Object.registerClass('Wall82', Wall); #endinitclip } movieClip 1103 Wall77 { #initclip Object.registerClass('Wall77', Wall); #endinitclip } movieClip 1105 Wall78 { #initclip Object.registerClass('Wall78', Wall); #endinitclip } movieClip 1106 { frame 1 { function onEnterFrame() { if (_root.characterLevel >= 2 || _root.plotProgress >= 12) { trace('Shield disappearing'); gotoAndStop(2); } } stop(); } frame 2 { function onEnterFrame() {} stop(); } } movieClip 1111 { frame 1 { if (_root.plotProgress > 9) { gotoAndStop(6); } stop(); } frame 2 { stop(); } frame 6 { stop(); } } movieClip 1116 { frame 1 { stop(); _parent.spiderWall1_mc.isActive = true; _parent.spiderWall2_mc.isActive = true; _parent.spiderWall3_mc.isActive = false; } frame 7 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 7 { stop(); _parent.spiderWall1_mc.isActive = false; _parent.spiderWall2_mc.isActive = false; _parent.spiderWall3_mc.isActive = true; } frame 8 { fxClick = new Sound(); fxClick.attachSound('fxClick'); if (_root.soundEnabled) { fxClick.start(0, 1); } } } movieClip 1117 { } movieClip 1129 { frame 1 { sfxHiss = new Sound(); sfxHiss.attachSound('sfxHiss'); } frame 11 { _root.maps_mc.attachMovie('LilSpider', 'LilSpider' + LilSpiderDepth + '_mc', LilSpiderDepth, {'_x': this._x + 77 + (LilSpiderDepth % 2) * 8, '_y': this._y + 129}); ++LilSpiderDepth; if (LilSpiderDepth >= 100) { LilSpiderDepth = 0; } } frame 21 { gotoAndPlay(1); } frame 22 { stop(); var LilSpiderDepth = 0; } frame 39 { if (_root.soundEnabled) { sfxHiss.start(0, 1); } } frame 53 { _root.stopMove = false; mscAction = new Sound(); mscAction.attachSound('mscAction'); if (_root.soundEnabled) { mscAction.start(0, 999); } _root.currentMusic = 2; } frame 54 { gotoAndPlay(1); } frame 55 { if (_root.soundEnabled) { sfxHiss.start(0, 1); } } frame 66 { _parent.play(); } frame 69 { gotoAndPlay(66); } frame 76 { _root.maps_mc.attachMovie('LilSpider', 'LilSpider' + LilSpiderDepth + '_mc', LilSpiderDepth, {'_x': this._x + 77 + (LilSpiderDepth % 2) * 8, '_y': this._y + 129}); ++LilSpiderDepth; if (LilSpiderDepth >= 100) { LilSpiderDepth = 0; } } frame 82 { gotoAndPlay(70); } frame 87 { _root.maps_mc.attachMovie('LilSpider', 'LilSpider' + LilSpiderDepth + '_mc', LilSpiderDepth, {'_x': this._x + 77 + (LilSpiderDepth % 2) * 8, '_y': this._y + 129}); ++LilSpiderDepth; if (LilSpiderDepth >= 100) { LilSpiderDepth = 0; } } frame 91 { gotoAndPlay(83); } frame 92 { stopAllSounds(); _root.currentMusic = 0; } frame 93 { stop(); if (_root.soundEnabled) { sfxHiss.start(0, 1); } } frame 94 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 95 { _parent.frayedLine_mc.gotoAndPlay(2); } frame 119 { sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } } frame 160 { _root.stopMove = false; _root.plotProgress = 12; _root.pauseable = true; _root.autoSave(); _root.currentMusic = 1; mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } stop(); } } movieClip 1134 { frame 1 { function onEnterFrame() { if (hitTest(_root.attack_mc)) { _root.stopMove = true; _root.scenes_mc.gotoAndStop(47); play(); } } stop(); } frame 2 { function onEnterFrame() {} } frame 9 { function onEnterFrame() { if (hitTest(_root.attack_mc)) { _root.stopMove = true; _root.scenes_mc.gotoAndStop(48); play(); } } stop(); } frame 10 { function onEnterFrame() {} } frame 18 { function onEnterFrame() { if (hitTest(_root.attack_mc)) { _root.stopMove = true; _root.scenes_mc.gotoAndStop(49); play(); } } stop(); } frame 19 { function onEnterFrame() {} stop(); } frame 20 { stop(); } } movieClip 1136 spiderBackRamp { #initclip Object.registerClass('spiderBackRamp', Ramp); #endinitclip } movieClip 1138 spiderBackWall { #initclip Object.registerClass('spiderBackWall', Wall); #endinitclip } movieClip 1143 { frame 1 { stop(); } frame 8 { stop(); } } movieClip 1144 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } } frame 1 { stop(); spider_mc.stop(); } frame 7 { spider_mc.gotoAndStop(22); _root.removeSpiders = false; } frame 33 { spider_mc.play(); stop(); _root.plotProgress = 11; _parent.spiderHorde_mc._y = 621; } frame 34 { spider_mc.gotoAndPlay(55); stop(); } frame 42 { stop(); spider_mc.gotoAndPlay(70); } frame 43 { spider_mc.gotoAndPlay(55); stop(); } frame 51 { stop(); spider_mc.gotoAndPlay(83); } frame 52 { spider_mc.gotoAndPlay(92); _parent.spiderHorde_mc.gotoAndPlay(17); _root.removeSpiders = true; } frame 52 { webline_mc.gotoAndStop(20); } frame 70 { stop(); spider_mc.play(); _parent.spiderDoor_mc.play(); } } movieClip 1147 { } movieClip 1148 { frame 1 { stop(); } frame 2 { _root.characterLevel = 1; } frame 41 { stop(); } } movieClip 1150 Wall87 { #initclip Object.registerClass('Wall87', Wall); #endinitclip } movieClip 1151 Wall88 { #initclip Object.registerClass('Wall88', Wall); #endinitclip } movieClip 1152 Wall89 { #initclip Object.registerClass('Wall89', Wall); #endinitclip } movieClip 1159 { frame 6 { stop(); } } movieClip 1160 { frame 1 { function onEnterFrame() { ++launchTime; if (launchTime >= 43 && _root.plotProgress < 15) { launchTime = 0; _parent.attachMovie('fire1Rig', 'fire1_mc', 20, {'_x': 0, '_y': 0}); } } stop(); var launchTime = 0; } frame 2 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 2 { function onEnterFrame() {} } frame 8 { stop(); } } movieClip 1163 Wall90 { #initclip Object.registerClass('Wall90', Wall); #endinitclip } movieClip 1165 GreenTree { #initclip Object.registerClass('GreenTree', Wall); #endinitclip } movieClip 1169 MiniTorch { #initclip Object.registerClass('MiniTorch', Wall); #endinitclip } movieClip 1171 Wall91 { #initclip Object.registerClass('Wall91', Wall); #endinitclip } movieClip 1173 Wall92 { #initclip Object.registerClass('Wall92', Wall); #endinitclip } movieClip 1175 SpecialTree1 { #initclip Object.registerClass('SpecialTree1', Wall); #endinitclip } movieClip 1177 SpecialTree2 { #initclip Object.registerClass('SpecialTree2', Wall); #endinitclip } movieClip 1179 SpecialTree3 { #initclip Object.registerClass('SpecialTree3', Wall); #endinitclip } movieClip 1185 { frame 1 { function onEnterFrame() { if (_parent.litTorches == 4) { _parent.temple_mc.gotoAndStop(2); if (_root.plotProgress < 16) { _root.plotProgress = 16; _root.stopMove = true; _root.scenes_mc.gotoAndStop(53); } } gotoAndStop(_parent.litTorches + 1); } if (_root.plotProgress >= 16) { _parent.temple_mc.gotoAndStop(2); gotoAndStop(5); } stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1187 { frame 1 { function onEnterFrame() { if (this.hitTest(_parent.pushTorch_mc.fireHit_mc)) { play(); } } stop(); } frame 2 { function onEnterFrame() {} ++_parent.litTorches; sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 3 { function onEnterFrame() {} play(); } frame 9 { gotoAndPlay(3); } } movieClip 1188 temple1 { #initclip Object.registerClass('temple1', Wall); #endinitclip } movieClip 1189 temple2 { #initclip Object.registerClass('temple2', Wall); #endinitclip } movieClip 1191 temple3 { #initclip Object.registerClass('temple3', Wall); #endinitclip } movieClip 1193 temple4 { #initclip Object.registerClass('temple4', Wall); #endinitclip } movieClip 1195 temple5 { #initclip Object.registerClass('temple5', Wall); #endinitclip } movieClip 1198 temple6 { #initclip Object.registerClass('temple6', Wall); #endinitclip } movieClip 1200 temple7 { #initclip Object.registerClass('temple7', Wall); #endinitclip } movieClip 1201 temple8 { #initclip Object.registerClass('temple8', Wall); #endinitclip } movieClip 1202 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } stop(); } frame 2 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } stop(); } } movieClip 1203 { } movieClip 1204 { frame 1 { function testHit() { if (!hitBox_mc.hitTest(_root.player_mc)) { return false; } while (hitBox_mc.hitTest(_root.player_mc)) { if (_root.playerXVel != 0) { this._x += _root.playerXVel / Math.abs(_root.playerXVel); } if (_root.playerYVel != 0 || _root.playerYVel == 0 && _root.playerXVel == 0) { this._y += _root.playerYVel / Math.abs(_root.playerYVel); } } return false; } } } movieClip 1206 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1207 Wall93 { #initclip Object.registerClass('Wall93', Wall); #endinitclip } movieClip 1208 Wall94 { #initclip Object.registerClass('Wall94', Wall); #endinitclip } movieClip 1209 Wall95 { #initclip Object.registerClass('Wall95', Wall); #endinitclip } movieClip 1211 Grave { #initclip Object.registerClass('Grave', Wall); #endinitclip } movieClip 1216 blueTorch { #initclip Object.registerClass('blueTorch', Wall); #endinitclip frame 1 { this.isActive = true; } frame 7 { gotoAndPlay(1); } frame 8 { isActive = false; stop(); } frame 9 { prevFrame(); } } movieClip 1217 torchStand { #initclip Object.registerClass('torchStand', Wall); #endinitclip } movieClip 1219 LanternWall { #initclip Object.registerClass('LanternWall', Wall); #endinitclip frame 1 { function onEnterFrame() { if (_root.plotProgress == 18) { ++launchTime; if (launchTime >= 90) { _root.maps_mc.attachMovie('blueFireRig', 'blueFire1', 101, {'path': 1}); var v2 = random(2) + 1; _root.maps_mc.attachMovie('blueFireRig', 'blueFire2', 102, {'path': v2 * 2}); _root.maps_mc.attachMovie('blueFireRig', 'blueFire3', 103, {'path': v2 * 2 + 1}); launchTime = 0; } } } var launchTime = 0; } } movieClip 1227 { frame 1 { function onEnterFrame() {} } frame 10 { _root.playerYVel = 15; _root.playerXVel = 0; _root.playerKnockback = true; _root.stopMove = false; _root.plotProgress = 18; } frame 26 { sfxGhost = new Sound(); sfxGhost.attachSound('sfxGhost'); if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 26 { _root.stopMove = true; } frame 44 { mscAction = new Sound(); mscAction.attachSound('mscAction'); if (_root.soundEnabled) { mscAction.start(0, 999); } _root.currentMusic = 2; } frame 46 { _root.stopMove = false; } frame 64 { stop(); _parent.play(); } frame 65 { function onEnterFrame() { if (this.hitTest(_root.player_mc._x, _root.player_mc._y, 1) || this.hitTest(_root.player_mc._x, _root.player_mc._y + 12, 1) || this.hitTest(_root.player_mc._x + 12, _root.player_mc._y + 12, 1) || this.hitTest(_root.player_mc._x + 12, _root.player_mc._y, 1)) { _root.scenes_mc.gotoAndStop(59); } } stop(); } frame 66 { function onEnterFrame() { if (this.hitTest(_root.player_mc._x, _root.player_mc._y, 1) || this.hitTest(_root.player_mc._x, _root.player_mc._y + 12, 1) || this.hitTest(_root.player_mc._x + 12, _root.player_mc._y + 12, 1) || this.hitTest(_root.player_mc._x + 12, _root.player_mc._y, 1)) { _root.scenes_mc.gotoAndStop(59); } } stop(); } frame 67 { sfxGhost = new Sound(); sfxGhost.attachSound('sfxGhost'); if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 85 { stop(); _parent.play(); } frame 86 { if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 98 { _parent.play(); gotoAndStop(65); } frame 99 { function onEnterFrame() {} } frame 111 { _parent.play(); stop(); } frame 117 { if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 146 { if (_root.maps_mc.blueTorch1_mc.isActive && _root.maps_mc.blueTorch2_mc.isActive && _root.maps_mc.blueTorch3_mc.isActive && _root.maps_mc.blueTorch4_mc.isActive) { _parent.gotoAndStop(357); } else { _parent.gotoAndPlay(3); } stop(); } } movieClip 1232 { frame 1 { _root.stopMove = true; _root.plotProgress = 19; stopAllSounds(); _root.currentMusic = 0; } frame 10 { sfxGhost = new Sound(); sfxGhost.attachSound('sfxGhost'); if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 25 { sfxGhost = new Sound(); sfxGhost.attachSound('sfxGhost'); if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 41 { sfxGhost = new Sound(); sfxGhost.attachSound('sfxGhost'); if (_root.soundEnabled) { sfxGhost.start(0, 1); } } frame 99 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 183 { sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } } frame 195 { _root.maps_mc.armor_mc.play(); } frame 223 { stop(); _root.pauseable = true; _root.currentMusic = 1; mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.scenes_mc.gotoAndStop(61); } } movieClip 1233 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { ghost_mc._x = random(451) + 38; ghost_mc._y = random(434) + 84; ghost_mc.gotoAndPlay(67); stop(); } frame 4 { ghost_mc._x = random(451) + 38; ghost_mc._y = random(434) + 84; ghost_mc.gotoAndPlay(67); stop(); } frame 5 { var path = random(5); switch (path) { case 0: gotoAndStop(6); break; case 1: gotoAndStop(59); break; case 2: gotoAndStop(112); break; case 3: gotoAndStop(215); break; case 4: gotoAndStop(292); } } frame 6 { ghost_mc.gotoAndPlay(86); stop(); } frame 7 { ghost_mc.gotoAndStop(65); ghost_mc.isActive = true; ghost_mc.sceneNum = 58; ghost_mc.pauseMove = true; } frame 57 { stop(); ghost_mc.gotoAndPlay(99); ghost_mc.isActive = false; } frame 58 { gotoAndStop(3); } frame 59 { ghost_mc.gotoAndPlay(86); stop(); } frame 60 { ghost_mc.gotoAndStop(66); ghost_mc.isActive = true; ghost_mc.sceneNum = 58; ghost_mc.pauseMove = true; } frame 86 { ghost_mc.gotoAndStop(65); } frame 110 { stop(); ghost_mc.gotoAndPlay(99); ghost_mc.isActive = false; } frame 111 { gotoAndStop(3); } frame 112 { ghost_mc.gotoAndPlay(86); stop(); } frame 113 { ghost_mc.gotoAndStop(66); ghost_mc.isActive = true; ghost_mc.sceneNum = 58; ghost_mc.pauseMove = true; } frame 137 { ghost_mc.gotoAndStop(65); } frame 188 { ghost_mc.gotoAndStop(66); } frame 213 { stop(); ghost_mc.gotoAndPlay(99); ghost_mc.isActive = false; } frame 214 { gotoAndStop(3); } frame 215 { stop(); ghost_mc.gotoAndPlay(86); } frame 216 { ghost_mc.isActive = true; ghost_mc.sceneNum = 58; ghost_mc.pauseMove = true; } frame 253 { ghost_mc.gotoAndStop(66); } frame 290 { ghost_mc.gotoAndPlay(99); ghost_mc.isActive = false; stop(); } frame 291 { gotoAndStop(3); } frame 292 { stop(); ghost_mc.gotoAndPlay(86); } frame 293 { ghost_mc.gotoAndStop(65); } frame 293 { ghost_mc.isActive = true; ghost_mc.sceneNum = 58; ghost_mc.pauseMove = true; } frame 355 { ghost_mc.gotoAndPlay(99); ghost_mc.isActive = false; stop(); } frame 356 { gotoAndStop(3); } frame 357 { stop(); } } movieClip 1240 { frame 1 { function onEnterFrame() {} stop(); } frame 4 { sfxShoot = new Sound(); sfxShoot.attachSound('sfxShoot'); if (_root.soundEnabled) { sfxShoot.start(0, 1); } } frame 7 { function onEnterFrame() { if (!hitTarget) { _y = _y - 20; if (_y < -30 || _root.plotProgress < 18) { this._y = -35; this.gotoAndStop(1); } if (this.hitTest(_root.maps_mc.blueTorch1_mc) && _root.maps_mc.blueTorch1_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch1_mc.gotoAndPlay(1); _root.maps_mc.ghostRig_mc.stop(); _root.maps_mc.ghostRig_mc.ghost_mc.gotoAndPlay(112); hitTarget = true; this._y = -35; this.gotoAndStop(1); } if (this.hitTest(_root.maps_mc.blueTorch2_mc) && _root.maps_mc.blueTorch2_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch2_mc.gotoAndPlay(1); _root.maps_mc.ghostRig_mc.stop(); _root.maps_mc.ghostRig_mc.ghost_mc.gotoAndPlay(112); hitTarget = true; this._y = -35; this.gotoAndStop(1); } if (this.hitTest(_root.maps_mc.blueTorch3_mc) && _root.maps_mc.blueTorch3_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch3_mc.gotoAndPlay(1); _root.maps_mc.ghostRig_mc.stop(); _root.maps_mc.ghostRig_mc.ghost_mc.gotoAndPlay(112); hitTarget = true; this._y = -35; this.gotoAndStop(1); } if (this.hitTest(_root.maps_mc.blueTorch4_mc) && _root.maps_mc.blueTorch4_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch4_mc.gotoAndPlay(1); _root.maps_mc.ghostRig_mc.stop(); _root.maps_mc.ghostRig_mc.ghost_mc.gotoAndPlay(112); hitTarget = true; this._y = -35; this.gotoAndStop(1); } if (this.hitTest(_root.maps_mc.ghostRig_mc.ghost_mc)) { _root.maps_mc.ghostRig_mc.stop(); _root.maps_mc.ghostRig_mc.ghost_mc.gotoAndPlay(112); hitTarget = true; if (_root.maps_mc.blueTorch1_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch1_mc.gotoAndPlay(1); } else { if (_root.maps_mc.blueTorch2_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch2_mc.gotoAndPlay(1); } else { if (_root.maps_mc.blueTorch3_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch3_mc.gotoAndPlay(1); } else { if (_root.maps_mc.blueTorch4_mc._currentframe == 8) { if (_root.soundEnabled) { sfxFlame.start(0, 1); } _root.maps_mc._root.maps_mc.blueTorch4_mc.gotoAndPlay(1); } else { trace('Something is amiss... (Ghost should already be dead)'); } } } } this._y = -35; this.gotoAndStop(1); } } } var hitTarget = false; stop(); sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); } } movieClip 1241 { frame 1 { stop(); } frame 19 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 25 { stop(); _root.maps_mc.interactive23_mc._x = 290; } } movieClip 1243 SecretGrave { #initclip Object.registerClass('SecretGrave', PushSwitch); #endinitclip } movieClip 1246 Wall96 { #initclip Object.registerClass('Wall96', Wall); #endinitclip } movieClip 1247 Wall97 { #initclip Object.registerClass('Wall97', Wall); #endinitclip } movieClip 1248 Wall98 { #initclip Object.registerClass('Wall98', Wall); #endinitclip } movieClip 1249 Wall99 { #initclip Object.registerClass('Wall99', Wall); #endinitclip } movieClip 1251 Statue1 { #initclip Object.registerClass('Statue1', Wall); #endinitclip } movieClip 1253 Statue2 { #initclip Object.registerClass('Statue2', Wall); #endinitclip } movieClip 1254 Wall100 { #initclip Object.registerClass('Wall100', Wall); #endinitclip } movieClip 1256 { } movieClip 1258 Wall101 { #initclip Object.registerClass('Wall101', Wall); #endinitclip } movieClip 1261 Wall102 { #initclip Object.registerClass('Wall102', Wall); #endinitclip } movieClip 1262 Wall103 { #initclip Object.registerClass('Wall103', Wall); #endinitclip } movieClip 1263 Wall104 { #initclip Object.registerClass('Wall104', Wall); #endinitclip } movieClip 1265 DoomWallLeft { #initclip Object.registerClass('DoomWallLeft', Wall); #endinitclip } movieClip 1267 DoomWallRight { #initclip Object.registerClass('DoomWallRight', Wall); #endinitclip } movieClip 1272 DoomGate { #initclip Object.registerClass('DoomGate', Wall); #endinitclip frame 1 { function onEnterFrame() { if (_root.maps_mc.guardLeft_mc.guard_mc._currentframe >= 50 && _root.maps_mc.guardRight_mc.guard_mc._currentframe >= 50 && !sceneTriggered) { _root.stopMove = true; _root.scenes_mc.gotoAndStop(67); sceneTriggered = true; } } stop(); var sceneTriggered = false; } frame 2 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 2 { function onEnterFrame() {} isActive = false; } frame 15 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 28 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 41 { function onEnterFrame() {} stop(); isActive = false; } } movieClip 1274 GuardPedestal { #initclip Object.registerClass('GuardPedestal', Wall); #endinitclip } movieClip 1285 RedGuardLeftAnim { frame 1 { function onEnterFrame() { if (_root.plotProgress >= 22) { gotoAndStop(50); } if (this.hitTest(_root.attack_mc)) { gotoAndPlay(36); } } stop(); } frame 6 { sfxSwipe2 = new Sound(); sfxSwipe2.attachSound('sfxSwipe2'); if (_root.soundEnabled) { sfxSwipe2.start(0, 1); } } frame 7 { if (this.hitTest(_root.player_mc)) { if (!_root.playerKnockback) { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } _root.playerXVel = 0; _root.playerYVel = 8; _root.playerKnockback = true; } } frame 9 { if (this.hitTest(_root.player_mc)) { if (!_root.playerKnockback) { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } _root.playerXVel = 0; _root.playerYVel = 8; _root.playerKnockback = true; } } frame 35 { gotoAndStop(1); } frame 36 { function onEnterFrame() {} _parent.guardWall_mc.isActive = false; } frame 38 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 50 { function onEnterFrame() {} stop(); _parent.guardWall_mc.isActive = false; } frame 51 { prevFrame(); } } movieClip 1286 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } } } movieClip 1298 RedGuardRightAnim { frame 1 { function onEnterFrame() { if (_root.plotProgress >= 22) { gotoAndStop(50); } if (this.hitTest(_root.attack_mc)) { gotoAndPlay(36); } } stop(); } frame 6 { sfxSwipe2 = new Sound(); sfxSwipe2.attachSound('sfxSwipe2'); if (_root.soundEnabled) { sfxSwipe2.start(0, 1); } } frame 7 { if (this.hitTest(_root.player_mc)) { if (!_root.playerKnockback) { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } _root.playerXVel = 0; _root.playerYVel = 8; _root.playerKnockback = true; } } frame 9 { if (this.hitTest(_root.player_mc)) { if (!_root.playerKnockback) { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } _root.playerXVel = 0; _root.playerYVel = 8; _root.playerKnockback = true; } } frame 35 { gotoAndStop(1); } frame 36 { function onEnterFrame() {} _parent.guardWall_mc.isActive = false; } frame 38 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 50 { function onEnterFrame() {} stop(); _parent.guardWall_mc.isActive = false; } frame 51 { prevFrame(); } } movieClip 1299 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } } } movieClip 1300 Wall105 { #initclip Object.registerClass('Wall105', Wall); #endinitclip } movieClip 1304 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1307 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1310 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1318 { frame 1 { stop(); } frame 2 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 24 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 43 { sfxClose = new Sound(); sfxClose.attachSound('sfxClose'); if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 47 { if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 51 { if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 55 { if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 59 { if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 63 { if (_root.soundEnabled) { sfxClose.start(0, 1); } } frame 84 { _root.stopMove = false; _root.maps_mc.door39_mc._x = 403; } frame 85 { stop(); } } movieClip 1323 { } movieClip 1324 { frame 1 { stop(); } frame 2 { stop(); } frame 31 { stop(); } } movieClip 1329 { } movieClip 1330 { frame 1 { stop(); } frame 2 { stop(); } frame 31 { stop(); } } movieClip 1335 { } movieClip 1336 { frame 1 { stop(); } frame 2 { stop(); } frame 31 { stop(); } } movieClip 1337 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1338 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1339 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1345 { frame 1 { function onEnterFrame() { if (this.hitTest(_root.attack_mc)) { _parent.gotoAndPlay(68); } } } } movieClip 1353 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } } frame 13 { _root.attachMovie('DemonFireDown', 'dfd_mc', 9001, {'_x': this._x + 30, '_y': this._y + 45}); _root.attachMovie('DemonFireDownLeft', 'dfdl_mc', 9002, {'_x': this._x + 30, '_y': this._y + 45}); _root.attachMovie('DemonFireLeft', 'dfl_mc', 9003, {'_x': this._x + 26, '_y': this._y + 46}); _root.attachMovie('DemonFireDownRight', 'dfdr_mc', 9004, {'_x': this._x + 30, '_y': this._y + 45}); _root.attachMovie('DemonFireRight', 'dfr_mc', 9005, {'_x': this._x + 26, '_y': this._y + 46}); _root.attachMovie('DemonFireUpRight', 'dfur_mc', 9006, {'_x': this._x + 30, '_y': this._y + 45}); _root.attachMovie('DemonFireUp', 'dfu_mc', 9007, {'_x': this._x + 30, '_y': this._y + 45}); _root.attachMovie('DemonFireUpLeft', 'dful_mc', 9008, {'_x': this._x + 30, '_y': this._y + 45}); sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 67 { stop(); _parent.gotoAndPlay(87); } frame 68 { if (_root.bossHealth == 6) { _root.demonHealth_mc.bossHealth6_mc.gotoAndStop(11); } if (_root.bossHealth == 5) { _root.demonHealth_mc.bossHealth5_mc.gotoAndStop(11); } if (_root.bossHealth == 4) { _root.demonHealth_mc.bossHealth4_mc.gotoAndStop(11); } if (_root.bossHealth == 3) { _root.demonHealth_mc.bossHealth3_mc.gotoAndStop(11); } if (_root.bossHealth == 2) { _root.demonHealth_mc.bossHealth2_mc.gotoAndStop(11); } if (_root.bossHealth == 1) { _root.demonHealth_mc.bossHealth1_mc.gotoAndStop(11); } --_root.bossHealth; if (_root.bossHealth == 0) { stopAllSounds(); _root.currentMusic = 0; } } frame 69 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 108 { _parent.gotoAndPlay(87); } frame 109 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 109 { _parent.stop(); ++_root.finaleOrbs; if (_root.bossHealth > 6 - 2 * _root.finaleOrbs) { _root.bossHealth = 6 - 2 * _root.finaleOrbs; } if (_root.finaleOrbs == 1) { _root.demonHealth_mc.bossHealth6_mc.play(); } if (_root.finaleOrbs == 2) { _root.demonHealth_mc.bossHealth4_mc.play(); } if (_root.finaleOrbs == 3) { stopAllSounds(); _root.currentMusic = 0; _root.demonHealth_mc.bossHealth2_mc.play(); } } frame 110 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 115 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 126 { if (_root.finaleOrbs == 1) { _root.demonHealth_mc.bossHealth5_mc.play(); } if (_root.finaleOrbs == 2) { _root.demonHealth_mc.bossHealth3_mc.play(); } if (_root.finaleOrbs == 3) { _root.demonHealth_mc.bossHealth1_mc.play(); } } frame 136 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 156 { _parent.gotoAndPlay(87); } } movieClip 1362 { frame 1 { function testHit() { var v2 = false; for (mc in this) { v2 = v2 || this[mc].testHit(); } return v2; } stop(); } frame 38 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 51 { mscBoss = new Sound(); mscBoss.attachSound('mscBoss'); if (_root.soundEnabled) { mscBoss.start(0, 999); } _root.currentMusic = 4; } frame 85 { _root.stopMove = false; _root.playerSpeed = 5; _root.playerMoveMode = 1; _root.blockSpeed = 3; _root.finaleOrbs = 0; } frame 87 { demon_mc.gotoAndStop(1); demon_mc._alpha = 0; } frame 111 { demon_mc._alpha = 100; demon_mc.play(); if (_root.bossHealth <= 0) { if (_root.finaleOrbs == 3) { gotoAndPlay(263); } else { gotoAndPlay(112); } } else { do { demon_mc._x = random(410) + 55; demon_mc._y = random(448) + 35; } while (demon_mc.hitTest(_root.player_mc)); stop(); } } frame 112 { } frame 148 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 159 { sfxDemon = new Sound(); sfxDemon.attachSound('sfxDemon'); if (_root.soundEnabled) { sfxDemon.start(0, 1); } } frame 170 { if (_root.soundEnabled) { sfxDemon.start(0, 1); } } frame 179 { if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 200 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 226 { _root.stopMove = true; _root.scenes_mc.gotoAndStop(72); } frame 262 { stop(); } frame 263 { _root.stopMove = true; } frame 269 { _root.player_mc._alpha = 0; } frame 274 { _root.player_mc._alpha = 100; } frame 280 { _root.player_mc._alpha = 0; } frame 287 { _root.player_mc._alpha = 100; } frame 291 { _root.player_mc._alpha = 0; } frame 304 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 315 { sfxDemon = new Sound(); sfxDemon.attachSound('sfxDemon'); if (_root.soundEnabled) { sfxDemon.start(0, 1); } } frame 326 { if (_root.soundEnabled) { sfxDemon.start(0, 1); } } frame 356 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 377 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 397 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 413 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 429 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 442 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 455 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 466 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 478 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 488 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 498 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 502 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 506 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 510 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 512 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 514 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 516 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 518 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 521 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 522 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 524 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 526 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 530 { _root.scenes_mc.gotoAndStop(100); gotoAndStop(1); } } movieClip 1364 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1367 SecondaryBookcases { #initclip Object.registerClass('SecondaryBookcases', Wall); #endinitclip } movieClip 1369 BookshelfRow2 { #initclip Object.registerClass('BookshelfRow2', Wall); #endinitclip } movieClip 1371 BookshelfRow4 { #initclip Object.registerClass('BookshelfRow4', Wall); #endinitclip } movieClip 1373 BookshelfRow3 { #initclip Object.registerClass('BookshelfRow3', Wall); #endinitclip } movieClip 1375 BookshelfRow1 { #initclip Object.registerClass('BookshelfRow1', Wall); #endinitclip } movieClip 1377 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1381 BookshelfRow5 { #initclip Object.registerClass('BookshelfRow5', Wall); #endinitclip frame 1 { stop(); } frame 2 { sfxClick = new Sound(); sfxClick.attachSound('sfxClick'); if (_root.soundEnabled) { sfxClick.start(0, 1); } } frame 2 { this.isActive = false; _parent.sideBooks1_mc.isActive = true; _parent.sideBooks2_mc.isActive = true; } frame 17 { sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 51 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 74 { _root.scenes_mc.gotoAndStop(103); } frame 75 { stop(); } frame 84 { _root.maps_mc.baseWall_mc.gotoAndStop(2); } frame 104 { _root.stopMove = false; _root.plotProgress = 25; } frame 105 { stop(); } } movieClip 1383 Wall113 { #initclip Object.registerClass('Wall113', Wall); #endinitclip } movieClip 1390 { frame 1 { stop(); var thisDir; var fuzzy = false; var fuzzyCooldown = 30; } frame 2 { sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 12 { function onEnterFrame() { thisDir = 0; if (this._x > _root.player_mc._x + 7 && this._x > 291) { --thisDir; } if (this._x < _root.player_mc._x + 5 && this._x < 333) { ++thisDir; } this._x += thisDir; if (fuzzyCooldown > 0) { --fuzzyCooldown; } if (!fuzzy) { if (Math.random() < 0.05 && fuzzyCooldown <= 0) { fuzzy = true; gotoAndPlay(15); } else { if (thisDir == 1) { gotoAndStop(13); } else { if (thisDir == -1) { gotoAndStop(14); } else { gotoAndStop(12); } } } } } } frame 25 { fuzzy = false; fuzzyCooldown = 30; gotoAndStop(12); } frame 26 { sfxFlame = new Sound(); sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); } } frame 26 { function onEnterFrame() {} } frame 32 { stop(); } } movieClip 1391 { frame 1 { stop(); door1_mc.newX = -1; door1_mc.newY = 570; door1_mc.newRoom = 2; interactive1_mc.sceneNum = 1; interactive1_mc.pauseMove = true; } frame 2 { door2_mc.newX = -1; door2_mc.newY = 15; door2_mc.newRoom = 1; door3_mc.newX = 577; door3_mc.newY = 242; door3_mc.newRoom = 3; door13_mc.newX = -1; door13_mc.newY = 577; door13_mc.newRoom = 8; door24_mc.newX = 10; door24_mc.newY = -1; door24_mc.newRoom = 12; trigger1_mc.sceneNum = 14; trigger1_mc.pauseMove = true; trigger32_mc.sceneNum = 61; trigger32_mc.pauseMove = true; trigger32_mc.maxPlotProgress = 20; trigger32_mc.minPlotProgress = 20; interactive2_mc.sceneNum = 2; interactive2_mc.pauseMove = true; interactive2_mc.maxPlotProgress = 19; interactivexyz_mc.sceneNum = 62; interactivexyz_mc.pauseMove = true; interactivexyz_mc.minPlotProgress = 21; if (_root.plotProgress >= 21) { manhole_mc.isActive = false; manhole_mc.gotoAndStop(2); } stop(); } frame 3 { stop(); gate1_mc.gotoAndStop(7); gate4_mc.gotoAndStop(7); if (_root.switch7) { gate2_mc.gotoAndStop(7); gate3_mc.gotoAndStop(7); gate5_mc.gotoAndStop(7); gate6_mc.gotoAndStop(7); } door4_mc.newX = 13; door4_mc.newY = 296; door4_mc.newRoom = 2; door5_mc.newX = 575; door5_mc.newY = -1; door5_mc.newRoom = 4; trigger2_mc.sceneNum = 15; trigger2_mc.pauseMove = true; interactive3_mc.sceneNum = 3; interactive3_mc.pauseMove = false; interactive4_mc.sceneNum = 4; interactive4_mc.pauseMove = false; interactive5_mc.sceneNum = 5; interactive5_mc.pauseMove = false; interactive6_mc.sceneNum = 6; interactive6_mc.pauseMove = false; interactive7_mc.sceneNum = 7; interactive7_mc.pauseMove = false; interactive8_mc.sceneNum = 8; interactive8_mc.pauseMove = false; interactive9_mc.sceneNum = 9; interactive9_mc.pauseMove = true; } frame 4 { _root.dragonInRange = false; _root.dragonTargeted = false; stop(); gate8_mc.gotoAndStop(7); door6_mc.newX = 13; door6_mc.newY = -1; door6_mc.newRoom = 3; door7_mc.newX = 575; door7_mc.newY = -1; door7_mc.newRoom = 5; trigger8_mc.sceneNum = 22; trigger8_mc.maxPlotProgress = 2; trigger8_mc.minPlotProgress = 2; trigger8_mc.pauseMove = false; dragon3_mc.sceneNum = 20; dragon3_mc.maxPlotProgress = 2; dragon3_mc.minPlotProgress = 2; dragon3_mc.pauseMove = true; interactive10_mc.sceneNum = 11; interactive10_mc.pauseMove = false; interactive11_mc.sceneNum = 12; interactive11_mc.pauseMove = false; interactive13_mc.sceneNum = 23; interactive13_mc.pauseMove = true; if (_root.plotProgress == 2) { door7_mc._y = 0; } if (_root.dragonKilled == 1) { interactive13_mc._x = 116.35; interactive13_mc._y = 298.35; dragon3_mc.gotoAndStop(227); } if (_root.dragonKilled == 2) { interactive13_mc._x = 302.35; interactive13_mc._y = 301.35; dragon3_mc.gotoAndStop(298); gate7_mc.gotoAndStop(20); } } frame 5 { stop(); door8_mc.newX = 13; door8_mc.newY = -1; door8_mc.newRoom = 4; door9_mc.newX = 575; door9_mc.newY = -1; door9_mc.newRoom = 6; trigger3_mc.sceneNum = 16; trigger3_mc.pauseMove = true; trigger3_mc.maxPlotProgress = 1; trigger5_mc.sceneNum = 18; trigger5_mc.maxPlotProgress = 1; trigger5_mc.minPlotProgress = 1; trigger5_mc.pauseMove = false; trigger7_mc.sceneNum = 21; trigger7_mc.maxPlotProgress = 2; trigger7_mc.minPlotProgress = 2; trigger7_mc.pauseMove = false; dragon2_mc.sceneNum = 20; dragon2_mc.maxPlotProgress = 2; dragon2_mc.minPlotProgress = 2; dragon2_mc.pauseMove = true; interactive12_mc.sceneNum = 13; interactive12_mc.pauseMove = true; if (_root.plotProgress == 2) { interactive12_mc._y = 0; door9_mc._y = 0; } } frame 6 { stop(); door10_mc.newX = 13; door10_mc.newY = -1; door10_mc.newRoom = 5; door11_mc.newX = 21; door11_mc.newY = 394; door11_mc.newRoom = 7; trigger4_mc.sceneNum = 17; trigger4_mc.maxPlotProgress = 1; trigger4_mc.pauseMove = true; trigger6_mc.sceneNum = 19; trigger6_mc.maxPlotProgress = 1; trigger6_mc.pauseMove = true; trigger9_mc.sceneNum = 26; trigger9_mc.minPlotProgress = 3; trigger9_mc.pauseMove = false; trigger10_mc.minPlotProgress = 4; trigger10_mc.sceneNum = 27; trigger10_mc.pauseMove = false; trigger11_mc.sceneNum = 27; trigger11_mc.pauseMove = false; dragon1_mc.sceneNum = 20; dragon1_mc.maxPlotProgress = 2; dragon1_mc.minPlotProgress = 2; dragon1_mc.pauseMove = true; interactive14_mc.sceneNum = 24; interactive14_mc.pauseMove = true; interactive14_mc.maxPlotProgress = 3; if (_root.orb1Revealed) { hider1_mc.gotoAndStop(2); fakewall_mc.gotoAndStop(31); } } frame 7 { stop(); door12_mc.newX = 234; door12_mc.newY = 563; door12_mc.newRoom = 6; door18_mc.newX = 10; door18_mc.newY = 150; door18_mc.newRoom = 9; door37_mc.newX = 420; door37_mc.newY = 249; door37_mc.newRoom = 15; trigger12_mc.sceneNum = 28; trigger12_mc.pauseMove = true; trigger17_mc.sceneNum = 36; trigger17_mc.pauseMove = true; trigger40_mc.sceneNum = 78; trigger40_mc.pauseMove = true; interactive15_mc.sceneNum = 29; interactive15_mc.pauseMove = true; interactive15_mc.orbNum = 1; interactive18_mc.sceneNum = 37; interactive18_mc.pauseMove = true; interactive18_mc.orbNum = 2; interactive26_mc.sceneNum = 77; interactive26_mc.pauseMove = true; interactive26_mc.orbNum = 3; if (_root.orb1Get) { orb1_mc.gotoAndStop(2); } if (_root.orb2Get) { orb2_mc.gotoAndStop(2); } if (_root.orb3Get) { orb3_mc.gotoAndStop(2); } _root.SecretCover2b_mc._alpha = 0; _root.SecretCover2_mc._alpha = 0; } frame 8 { stop(); sidewall1_mc.isActive = false; sidewall2_mc.isActive = false; door14_mc.newX = -1; door14_mc.newY = 15; door14_mc.newRoom = 2; door15_mc.newX = 15; door15_mc.newY = -1; door15_mc.newRoom = 9; interactive16_mc.sceneNum = 30; interactive16_mc.pauseMove = true; interactive17_mc.sceneNum = 31; interactive17_mc.maxPlotProgress = 4; interactive17_mc.pauseMove = true; trigger13_mc.sceneNum = 32; trigger13_mc.pauseMove = false; trigger14_mc.sceneNum = 33; trigger14_mc.pauseMove = false; _root.SecretCover2b_mc._alpha = 0; _root.SecretCover2_mc._alpha = 0; } frame 9 { stop(); door16_mc.newX = 577; door16_mc.newY = -1; door16_mc.newRoom = 8; door17_mc.newX = 291; door17_mc.newY = 22; door17_mc.newRoom = 7; door19_mc.newX = 102; door19_mc.newY = 11; door19_mc.newRoom = 10; trigger15_mc.sceneNum = 34; trigger15_mc.pauseMove = true; trigger16_mc.sceneNum = 35; trigger16_mc.pauseMove = true; trigger18_mc.sceneNum = 27; trigger18_mc.pauseMove = false; trigger19_mc.sceneNum = 38; trigger19_mc.pauseMove = false; trigger20_mc.sceneNum = 34; trigger20_mc.pauseMove = true; if (_root.plotProgress < 7) { Shld2Floor1_mc.isActive = false; Shld2Floor2_mc.isActive = false; } else { Shld2Floor3_mc.isActive = false; weightRig_mc.gotoAndStop(59); } _root.SecretCover2b_mc._alpha = 100; if (!_root.orb2Revealed) { _root.SecretCover2_mc._alpha = 100; } } frame 10 { stop(); if (_root.plotProgress >= 8) { if (_root.plotProgress >= 12) { weightRig2_mc.gotoAndStop(9); } else { weightRig2_mc.gotoAndStop(8); } } _root.SecretCover2b_mc._alpha = 0; _root.SecretCover2_mc._alpha = 0; door20_mc.newX = 410; door20_mc.newY = 579; door20_mc.newRoom = 9; door24_mc.newX = 320; door24_mc.newY = 581; door24_mc.newRoom = 11; interactive19_mc.sceneNum = 39; interactive19_mc.pauseMove = true; interactive25_mc.sceneNum = 75; interactive25_mc.pauseMove = true; interactive25_mc.maxPlotProgress = 12; interactive25_mc.minPlotProgress = 12; trigger21_mc.sceneNum = 40; trigger21_mc.pauseMove = true; trigger21_mc.maxPlotProgress = 8; trigger25_mc.sceneNum = 43; trigger25_mc.pauseMove = false; trigger25_mc.minPlotProgress = 9; trigger25_mc.maxPlotProgress = 9; } frame 11 { stop(); spiderwall3_mc.isActive = false; spiderwall4_mc.isActive = false; spiderwall5_mc.isActive = false; door21_mc.newX = 498; door21_mc.newY = 3; door21_mc.newRoom = 10; door22_mc.newX = 531; door22_mc.newY = 3; door22_mc.newRoom = 10; door23_mc.newX = 438; door23_mc.newY = 3; door23_mc.newRoom = 10; trigger22_mc.sceneNum = 41; trigger22_mc.pauseMove = true; trigger22_mc.maxPlotProgress = 8; trigger23_mc.sceneNum = 41; trigger23_mc.pauseMove = true; trigger23_mc.maxPlotProgress = 8; trigger24_mc.sceneNum = 42; trigger24_mc.pauseMove = false; trigger24_mc.maxPlotProgress = 9; trigger26_mc.sceneNum = 45; trigger26_mc.pauseMove = true; trigger26_mc.minPlotProgress = 10; trigger26_mc.maxPlotProgress = 10; interactive20_mc.sceneNum = 44; interactive20_mc.pauseMove = true; interactive20_mc.maxPlotProgress = 9; } frame 12 { stop(); door25_mc.newX = 585; door25_mc.newY = -1; door25_mc.newRoom = 2; door26_mc.newX = 10; door26_mc.newY = 298; door26_mc.newRoom = 13; if (_root.plotProgress >= 15) { launcher_mc.gotoAndStop(8); loadMovie('', fireRig1_mc); } } frame 13 { stop(); door27_mc.newX = 584; door27_mc.newY = 294; door27_mc.newRoom = 12; door28_mc.newX = 8; door28_mc.newY = 258; door28_mc.newRoom = 14; interactive20_mc.sceneNum = 49; interactive20_mc.pauseMove = true; interactive21_mc.sceneNum = 50; interactive21_mc.pauseMove = true; interactive22_mc.sceneNum = 51; interactive22_mc.pauseMove = true; trigger27_mc.sceneNum = 53; trigger27_mc.pauseMove = true; } frame 14 { stop(); var litTorches = 0; door29_mc.newX = 580; door29_mc.newY = 70; door29_mc.newRoom = 13; door30_mc.newX = 280; door30_mc.newY = 580; door30_mc.newRoom = 15; trigger28_mc.sceneNum = 54; trigger28_mc.pauseMove = true; trigger30_mc.sceneNum = 56; trigger30_mc.pauseMove = false; trigger30_mc.minPlotProgress = 17; trigger30_mc.maxPlotProgress = 17; if (_root.plotProgress >= 16) { torch1_mc.gotoAndPlay(3); torch2_mc.gotoAndPlay(3); torch3_mc.gotoAndPlay(3); torch4_mc.gotoAndPlay(3); } } frame 15 { stop(); door31_mc.newX = 306; door31_mc.newY = 238; door31_mc.newRoom = 14; door36_mc.newRoom = 7; door36_mc.newX = 579; door36_mc.newY = 393; trigger29_mc.sceneNum = 55; trigger29_mc.pauseMove = true; trigger29_mc.maxPlotProgress = 17; trigger31_mc.sceneNum = 57; trigger31_mc.pauseMove = true; trigger31_mc.maxPlotProgress = 17; trigger41_mc.sceneNum = 27; trigger41_mc.pauseMove = false; trigger41_mc.minPlotProgress = 20; interactive23_mc.sceneNum = 59; interactive23_mc.minPlotProgress = 19; interactive23_mc.maxPlotProgress = 19; interactive23_mc.pauseMove = true; interactive27_mc.sceneNum = 80; interactive27_mc.puaseMove = true; interactive28_mc.sceneNum = 81; interactive28_mc.puaseMove = true; interactive29_mc.sceneNum = 82; interactive29_mc.puaseMove = true; interactive30_mc.sceneNum = 83; interactive30_mc.puaseMove = true; interactive31_mc.sceneNum = 84; interactive31_mc.puaseMove = true; bottomWall3_mc.isActive = false; torchStand1.isActive = false; torchStand2.isActive = false; torchStand3.isActive = false; torchStand4.isActive = false; secretGrave_mc.maxPush = 216; secretGrave_mc.minPush = 192; secretGrave_mc.minPushScene = 79; if (_root.orb3Revealed) { secretGrave_mc.isPushable = false; secretGrave_mc._y = 192; secretHide3_mc.gotoAndStop(2); door36_mc._y = 216; door36_mc._x = 419; } if (_root.plotProgress < 20) { secretGrave_mc.isPushable = false; } } frame 16 { stop(); door32_mc.newX = -1; door32_mc.newY = 585; door32_mc.newRoom = 17; interactive24_mc.sceneNum = 72; interactive24_mc.pauseMove = true; } frame 17 { door33_mc.newX = -1; door33_mc.newY = 10; door33_mc.newRoom = 16; door34_mc.newX = -1; door34_mc.newY = 585; door34_mc.newRoom = 18; trigger34_mc.sceneNum = 63; trigger34_mc.pauseMove = true; } frame 18 { stop(); trigger35_mc.sceneNum = 64; trigger35_mc.pauseMove = false; trigger35_mc.maxPlotProgress = 23; trigger36_mc.sceneNum = 65; trigger36_mc.pauseMove = false; trigger36_mc.maxPlotProgress = 23; trigger37_mc.sceneNum = 67; trigger37_mc.pauseMove = true; trigger37_mc.maxPlotProgress = 23; trigger39_mc.sceneNum = 69; trigger39_mc.pauseMove = true; trigger39_mc.maxPlotProgress = 23; trigger43_mc.sceneNum = 95; trigger43_mc.pauseMove = false; trigger43_mc.maxPlotProgress = 23; trigger44_mc.sceneNum = 100; trigger44_mc.pauseMove = false; trigger44_mc.minPlotProgress = 24; door35_mc.newX = -1; door35_mc.newY = 5; door35_mc.newRoom = 17; door39_mc.newX = 39; door39_mc.newY = 78; door39_mc.newRoom = 20; if (_root.plotProgress >= 22) { doomGate_mc.gotoAndStop(41); _root.guardLeft_mc.guard_mc.gotoAndStop(50); _root.guardRight_mc.guard_mc.gotoAndStop(50); _root.guardLeft_mc.guardWall_mc.isActive = false; _root.guardRight_mc.guardWall_mc.isActive = false; } interactive32_mc.sceneNum = 85; interactive32_mc.pauseMove = true; interactive32_mc.isActive = _root.orb1Get; interactive33_mc.sceneNum = 86; interactive33_mc.pauseMove = true; interactive33_mc.isActive = _root.orb2Get; interactive34_mc.sceneNum = 87; interactive34_mc.pauseMove = true; interactive34_mc.isActive = _root.orb3Get; if (_root.redOrbPlaced) { redSpiral_mc.gotoAndStop(2); interactive32_mc.isActive = false; pedestalRed_mc.gotoAndStop(2); } if (_root.greenOrbPlaced) { greenSpiral_mc.gotoAndStop(2); interactive33_mc.isActive = false; pedestalGreen_mc.gotoAndStop(2); } if (_root.blueOrbPlaced) { blueSpiral_mc.gotoAndStop(2); interactive34_mc.isActive = false; pedestalBlue_mc.gotoAndStop(2); } if (_root.libraryRevealed) { pedestalRed_mc.gotoAndStop(3); pedestalGreen_mc.gotoAndStop(3); pedestalBlue_mc.gotoAndStop(3); redSpiral_mc.gotoAndStop(1); greenSpiral_mc.gotoAndStop(1); blueSpiral_mc.gotoAndStop(1); ladder_mc.gotoAndStop(85); door39_mc._x = 403; } } frame 19 { stop(); door40_mc.newX = 297; door40_mc.newY = 120; door40_mc.newRoom = 18; trigger38_mc.sceneNum = 68; trigger38_mc.pauseMove = true; trigger38_mc.maxPlotProgress = 22; interactive39_mc.isActive = _root.orb1Get; interactive39_mc.sceneNum = 96; interactive39_mc.pauseMove = true; interactive39_mc.maxPlotProgress = 23; interactive40_mc.isActive = _root.orb2Get; interactive40_mc.sceneNum = 97; interactive40_mc.pauseMove = true; interactive40_mc.maxPlotProgress = 23; interactive41_mc.isActive = _root.orb3Get; interactive41_mc.sceneNum = 98; interactive41_mc.pauseMove = true; interactive41_mc.maxPlotProgress = 23; } instance finPedRed_mc of movieClip 1337 { onClipEvent (enterFrame) { if (_root.varSecrets >= 3) { if (this.hitTest(_root.mainGame.mainPlayer._x, _root.mainGame.mainPlayer._y, true)) { if (this._currentframe == 1) { if (_root.engAllowNotifier) { _root.mainGame.NOTIFIER.gotoAndStop(3); } if (Key.isDown(32)) { if (_root.engAllowUse) { ++_root.engEventList[67]; if (_root.engEventList[68] == 1) { _root.mainGame.finAnim1.gotoAndStop('secHit'); _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } else { _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } if (_root.engEventList[67] == 3) { if (_root.engEventList[69] == 0) { _root.engEventList[69] = 1; _root.engAllowMovement = false; stopAllSounds(); } } _root.varDemonHealth -= 2; --_root.varHealth; if (_root.varDemonHealth <= 0) { stopAllSounds(); _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } _root.engAllowUse = false; _root.USETIMER.gotoAndPlay(2); _root.mainGame.NOTIFIER.gotoAndStop(1); this.nextFrame(); } } } } } } } instance finPedGreen_mc of movieClip 1338 { onClipEvent (enterFrame) { if (_root.varSecrets >= 3) { if (this.hitTest(_root.mainGame.mainPlayer._x, _root.mainGame.mainPlayer._y, true)) { if (this._currentframe == 1) { if (_root.engAllowNotifier) { _root.mainGame.NOTIFIER.gotoAndStop(3); } if (Key.isDown(32)) { if (_root.engAllowUse) { ++_root.engEventList[67]; if (_root.engEventList[68] == 1) { _root.mainGame.finAnim1.gotoAndStop('secHit'); _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } else { _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } if (_root.engEventList[67] == 3) { if (_root.engEventList[69] == 0) { _root.engEventList[69] = 1; _root.engAllowMovement = false; stopAllSounds(); } } _root.varDemonHealth -= 2; --_root.varHealth; if (_root.varDemonHealth <= 0) { stopAllSounds(); _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } _root.engAllowUse = false; _root.USETIMER.gotoAndPlay(2); _root.mainGame.NOTIFIER.gotoAndStop(1); this.nextFrame(); } } } } } } } instance finPedBlue_mc of movieClip 1339 { onClipEvent (enterFrame) { if (_root.varSecrets >= 3) { if (this.hitTest(_root.mainGame.mainPlayer._x, _root.mainGame.mainPlayer._y, true)) { if (this._currentframe == 1) { if (_root.engAllowNotifier) { _root.mainGame.NOTIFIER.gotoAndStop(3); } if (Key.isDown(32)) { if (_root.engAllowUse) { ++_root.engEventList[67]; if (_root.engEventList[68] == 1) { _root.mainGame.finAnim1.gotoAndStop('secHit'); _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } else { _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } if (_root.engEventList[67] == 3) { if (_root.engEventList[69] == 0) { _root.engEventList[69] = 1; _root.engAllowMovement = false; stopAllSounds(); } } _root.varDemonHealth -= 2; --_root.varHealth; if (_root.varDemonHealth <= 0) { stopAllSounds(); _root.mainGame.finAnim1.sprDemon.gotoAndPlay('hurt'); } _root.engAllowUse = false; _root.USETIMER.gotoAndPlay(2); _root.mainGame.NOTIFIER.gotoAndStop(1); this.nextFrame(); } } } } } } } frame 20 { stop(); door38_mc.newX = 415; door38_mc.newY = 118; door38_mc.newRoom = 18; door41_mc.newX = 306; door41_mc.newY = 24; door41_mc.newRoom = 21; trigger42_mc.sceneNum = 89; trigger42_mc.pauseMove = true; trigger42_mc.maxPlotProgress = 23; trigger45_mc.sceneNum = 101; trigger45_mc.pauseMove = false; trigger45_mc.maxPlotProgress = 24; trigger45_mc.minPlotProgress = 24; interactive35_mc.sceneNum = 90; interactive35_mc.pauseMove = true; interactive36_mc.sceneNum = 91; interactive36_mc.pauseMove = true; interactive37_mc.sceneNum = 92; interactive37_mc.pauseMove = true; interactive38_mc.sceneNum = 94; interactive38_mc.pauseMove = true; interactive38_mc.maxPlotProgress = 24; if (_root.characterLevel < 0) { door38_mc._x = -100; } if (_root.plotProgress >= 25) { blackBookcase_mc.gotoAndStop(105); blackBookcase_mc.isActive = false; baseWall_mc.gotoAndStop(2); } else { sideBooks1_mc.isActive = false; sideBooks2_mc.isActive = false; } } frame 21 { stop(); trigger46_mc.sceneNum = 103; trigger46_mc.pauseMove = false; trigger47_mc.sceneNum = 104; trigger47_mc.pauseMove = false; trigger47_mc.maxPlotProgress = 25; trigger48_mc.sceneNum = 105; trigger48_mc.pauseMove = false; trigger49_mc.sceneNum = 106; trigger49_mc.pauseMove = true; } } movieClip 1393 { frame 1 { function onEnterFrame() { if (_root.characterLevel == 3) { gotoAndStop(2); } if (_root.characterLevel == -1) { gotoAndStop(3); } } stop(); } frame 2 { function onEnterFrame() { if (_root.characterLevel < 3 && _root.characterLevel >= 0) { gotoAndStop(1); } if (_root.characterLevel == -1) { gotoAndStop(3); } } stop(); } frame 3 { function onEnterFrame() { if (_root.characterLevel == 3) { gotoAndStop(2); } else { if (_root.characterLevel >= 0) { gotoAndStop(1); } } } } } movieClip 1396 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 1399 { frame 1 { function onEnterFrame() { if (!_root.stopMove && (_root.playerXVel != 0 || _root.playerYVel != 0)) { play(); } else { gotoAndStop(1); } } stop(); } } movieClip 1402 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1403 { } movieClip 1405 { } movieClip 1406 { } movieClip 1407 { frame 1 { function onEnterFrame() { if (_root.characterLevel >= 1) { this._alpha = 100; } else { this._alpha = 0; } } } } movieClip 1408 { frame 1 { function onEnterFrame() { if (_root.characterLevel >= 2) { this._alpha = 100; } else { this._alpha = 0; } } } } movieClip 1422 { frame 1 { stop(); } frame 2 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 10 { stop(); } frame 11 { stop(); } frame 12 { sfxBreak = new Sound(); sfxBreak.attachSound('sfxBreak'); if (_root.soundEnabled) { sfxBreak.start(0, 1); } } frame 20 { stop(); } } movieClip 1423 { frame 1 { function onEnterFrame() { if (_root.plotProgress == 23) { play(); } } stop(); } frame 3 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 3 { function onEnterFrame() {} } frame 11 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 19 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 27 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 35 { if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 43 { function onEnterFrame() { if (_root.bossHealth == 0) { play(); } } if (_root.soundEnabled) { sfxHit.start(0, 1); } stop(); } frame 44 { function onEnterFrame() {} } frame 46 { if (_root.finaleOrbs != 3) { bossHealth6_mc.gotoAndStop(10); } } frame 48 { if (_root.finaleOrbs != 3) { bossHealth5_mc.gotoAndStop(10); } } frame 50 { if (_root.finaleOrbs != 3) { bossHealth4_mc.gotoAndStop(10); } } frame 52 { if (_root.finaleOrbs != 3) { bossHealth3_mc.gotoAndStop(10); } } frame 54 { if (_root.finaleOrbs != 3) { bossHealth2_mc.gotoAndStop(10); } } frame 56 { if (_root.finaleOrbs != 3) { bossHealth1_mc.gotoAndStop(10); } } frame 70 { function onEnterFrame() { if (_root.plotProgress < 23) { gotoAndStop(1); } } stop(); } } movieClip 1424 { frame 1 { function onEnterFrame() { if (_root.characterLevel >= 3) { this._alpha = 100; } else { this._alpha = 0; } } } } movieClip 1437 { frame 1 { stop(); } frame 2 { stop(); } frame 17 { --_root.playerHealth; } frame 19 { stop(); } frame 36 { stop(); } } movieClip 1438 { frame 1 { function onEnterFrame() { if (_root.characterLevel >= 3) { this._alpha = 100; if (_root.playerMaxHealth >= 3) { if (_root.playerHealth < 3) { heart3_mc.gotoAndStop(2); } else { heart3_mc.gotoAndStop(1); } } if (_root.playerMaxHealth >= 2) { if (_root.playerHealth < 2) { heart2_mc.gotoAndStop(2); } else { heart2_mc.gotoAndStop(1); } } if (_root.playerMaxHealth >= 1) { if (_root.playerHealth < 1) { heart1_mc.gotoAndStop(2); } else { heart1_mc.gotoAndStop(1); } } } else { this._alpha = 0; } } } } movieClip 1440 { frame 1 { function onEnterFrame() { if (_root.characterLevel >= 1) { swordFound_mc._alpha = 100; } else { swordFound_mc._alpha = 0; } if (_root.characterLevel >= 2) { shieldFound_mc._alpha = 100; } else { shieldFound_mc._alpha = 0; } if (_root.characterLevel >= 3) { armorFound_mc._alpha = 100; } else { armorFound_mc._alpha = 0; } if (_root.orb1Get) { orb1Found_mc._alpha = 100; } else { orb1Found_mc._alpha = 0; } if (_root.orb2Get) { orb2Found_mc._alpha = 100; } else { orb2Found_mc._alpha = 0; } if (_root.orb3Get) { orb3Found_mc._alpha = 100; } else { orb3Found_mc._alpha = 0; } } } } movieClip 1441 { frame 1 { stop(); } frame 10 { function onEnterFrame() { if (Key.isDown(80)) { gotoAndPlay(10); } } } frame 34 { function onEnterFrame() {} } } movieClip 1442 { frame 1 { gotoAndStop(_root.gameResets % 4 + 1); } } movieClip 1462 { frame 47 { _root.textDone = true; stop(); } } movieClip 1463 { frame 2 { sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 10 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.scene1Viewed) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { play(); } } } stop(); } frame 11 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { text_mc.gotoAndStop(47); } } } _root.textDone = false; _root.scene1Viewed = true; stop(); } } movieClip 1483 { frame 42 { stop(); _root.textDone = true; } } movieClip 1484 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } if (!_root.scene2Viewed) { gotoAndPlay(2); } else { stop(); } } frame 22 { function onEnterFrame() {} sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 35 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 51 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 82 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone == true) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { text_mc.gotoAndStop(42); } } } stop(); _root.textDone = false; _root.scene2Viewed = true; } } movieClip 1512 { frame 5 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(85); } } } _root.textDone = false; } frame 85 { stop(); _root.textDone = true; } } movieClip 1534 { frame 92 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 105 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 118 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 132 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 273 { _parent.play(); } } movieClip 1583 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.spaceClear = false; _parent.play(); } else { gotoAndStop(149); } } } _root.textDone = false; } frame 149 { stop(); _root.textDone = true; } } movieClip 1586 { frame 1 { stop(); _root.currentMusic = 0; } frame 31 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { text_mc.gotoAndStop(149); } } } _root.textDone = false; stop(); } frame 32 { function onEnterFrame() { if (Key.isDown(38) || Key.isDown(40) || Key.isDown(37) || Key.isDown(39)) { _root.scenes_mc.gotoAndStop(1); } } _root.stopMove = false; stop(); mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; } } movieClip 1629 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(46); } } } _root.textDone = false; } frame 46 { stop(); _root.textDone = true; } frame 47 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(101); } } } _root.textDone = false; } frame 101 { stop(); _root.textDone = true; } frame 102 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(140); } } } _root.textDone = false; } frame 140 { stop(); _root.textDone = true; } } movieClip 1631 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } } movieClip 1722 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(122); } } } _root.textDone = false; } frame 122 { stop(); _root.textDone = true; } frame 123 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(251); } } } _root.textDone = false; } frame 251 { stop(); _root.textDone = true; } } movieClip 1788 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(100); } } } _root.textDone = false; } frame 100 { stop(); _root.textDone = true; } frame 101 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(193); } } } _root.textDone = false; } frame 193 { stop(); _root.textDone = true; } } movieClip 1790 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 8 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 26 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 32 { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 1884 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(141); } } } _root.textDone = false; } frame 141 { stop(); _root.textDone = true; } frame 142 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(252); } } } _root.textDone = false; } frame 252 { stop(); _root.textDone = true; } } movieClip 1885 { frame 1 { function onEnterFrame() { if (_root.diedOnDragon && Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } stopAllSounds(); _root.currentMusic = 0; } frame 59 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 90 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 125 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 169 { function onEnterFrame() {} stop(); } } movieClip 1908 { frame 86 { _root.scenes_mc.gotoAndStop(1); } } movieClip 1916 { frame 5 { stop(); } } movieClip 1917 { frame 1 { _root.pauseable = false; } frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 18 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 34 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 62 { _root.playerSpeed = 5; _root.plotProgress = 2; _root.maps_mc.dragon1_mc.play(); } frame 99 { stop(); } } movieClip 1934 { frame 55 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; _root.currentMusic = 1; if (_root.soundEnabled) { mscMain.start(0, 999); } play(); } } stop(); mscMain = new Sound(); mscMain.attachSound('mscMain'); } } movieClip 1935 { frame 1 { stopAllSounds(); _root.currentMusic = 0; _root.playerXVel = 0; _root.playerYVel = 0; _root.plotProgress = 0; _root.playerSpeed = 5; _root.player_mc._x = 366; _root.player_mc._y = 295; _root.maps_mc.door9_mc._y = 259.5; _root.maps_mc.trigger5_mc._y = 255; _root.maps_mc.dragon2_mc.gotoAndStop(1); _root.maps_mc.gotoAndStop(5); } frame 2 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 64 { stop(); } } movieClip 1946 { frame 13 { stop(); } } movieClip 1956 { frame 11 { stop(); } } movieClip 1957 { } movieClip 1969 { frame 14 { stop(); } } movieClip 1970 { frame 69 { _root.scenes_mc.gotoAndStop(1); } } movieClip 2015 { frame 120 { _root.textDone = true; stop(); } } movieClip 2016 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; play(); } } stop(); sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 2 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { text_mc.gotoAndStop(120); } } } stop(); _root.textDone = false; } } movieClip 2075 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(80); } } } _root.textDone = false; } frame 80 { _root.textDone = true; stop(); } frame 81 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(160); } } } _root.textDone = false; } frame 160 { _root.textDone = true; stop(); } } movieClip 2076 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 12 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 15 { _root.maps_mc.sword_mc.gotoAndStop(2); } frame 19 { function onEnterFrame() { _root.cutsceneAttack = true; if (Key.isDown(90)) { _root.attachMovie('Attack', 'attack_mc', 100, {'_x': _root.player_mc._x + 6, '_y': _root.player_mc._y + 6, '_rotation': 90 * _root.playerDir}); nextFrame(); } } stop(); _root.plotProgress = 4; } frame 20 { function onEnterFrame() {} _root.characterLevel = 1; } } movieClip 2077 { frame 4 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 10 { _root.maps_mc.hider1_mc.gotoAndStop(2); } frame 25 { _root.orb1Revealed = true; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 2080 { frame 1 { stop(); } frame 2 { stopAllSounds(); play(); } frame 3 { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; } frame 4 { _root.scenes_mc.gotoAndStop(1); } frame 5 { stopAllSounds(); } frame 6 { mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); if (_root.soundEnabled) { mscCreepy.start(0, 999); } _root.currentMusic = 3; } frame 7 { _root.scenes_mc.gotoAndStop(1); } } movieClip 2127 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(125); } } } _root.textDone = false; } frame 125 { _root.textDone = true; stop(); } } movieClip 2128 { frame 1 { if (_root.creepyMusic) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { stopAllSounds(); _root.creepyMusic = true; } } frame 2 { mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); _root.currentMusic = 3; if (_root.soundEnabled) { mscCreepy.start(0, 999); } } frame 3 { if (_root.scene28Viewed) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { _root.scene28Viewed = true; nextFrame(); } } frame 4 { stop(); } } movieClip 2135 { frame 1 { if (_root.orbsCollected >= 1 && _root.orbsCollected <= 3) { gotoAndStop(_root.orbsCollected); } else { trace('_root.orbsCollected has an invalid value: ' + _root.orbsCollected); } } } movieClip 2136 { frame 1 { stopAllSounds(); _root.currentMusic = 0; } frame 2 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 11 { _root.maps_mc.orb1_mc.gotoAndStop(2); ++_root.orbsCollected; } frame 110 { _root.stopMove = false; _root.autoSave(); _root.currentMusic = 3; mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); if (_root.soundEnabled) { mscCreepy.start(0, 999); } _root.scenes_mc.gotoAndStop(1); } } movieClip 2169 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scene30Viewed = true; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(88); } } } _root.textDone = false; } frame 88 { stop(); _root.textDone = true; } } movieClip 2170 { frame 2 { function onEnterFrame() { if (_root.scene30Viewed && _root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } if (_root.scene30Viewed) { stop(); } sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 20 { stop(); } } movieClip 2241 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(48); } } } } frame 48 { stop(); _root.textDone = true; } frame 49 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(192); } } } _root.textDone = false; } frame 192 { stop(); _root.textDone = true; } } movieClip 2319 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(157); } } } _root.textDone = false; } frame 157 { stop(); _root.textDone = true; } frame 158 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(209); } } } _root.textDone = false; } frame 209 { stop(); _root.textDone = true; } } movieClip 2320 { frame 4 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 10 { _root.SecretCover2_mc._alpha = 0; } frame 25 { _root.orb2Revealed = true; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 2365 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(127); } } } _root.textDone = false; } frame 127 { _root.textDone = true; stop(); } } movieClip 2366 { frame 1 { if (_root.creepyMusic) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { stopAllSounds(); _root.creepyMusic = true; } } frame 2 { mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); _root.currentMusic = 3; if (_root.soundEnabled) { mscCreepy.start(0, 999); } } frame 3 { if (_root.scene36Viewed) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { _root.scene36Viewed = true; nextFrame(); } } frame 4 { stop(); } } movieClip 2367 { frame 1 { stopAllSounds(); _root.currentMusic = 0; } frame 2 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 11 { _root.maps_mc.orb2_mc.gotoAndStop(2); ++_root.orbsCollected; } frame 110 { _root.stopMove = false; _root.autoSave(); mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); if (_root.soundEnabled) { mscCreepy.start(0, 999); } _root.currentMusic = 3; _root.scenes_mc.gotoAndStop(1); } } movieClip 2416 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(125); } } } _root.textDone = false; } frame 125 { _root.textDone = true; stop(); } } movieClip 2417 { frame 2 { sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 35 { stop(); } } movieClip 2418 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 9 { sfxHiss = new Sound(); sfxHiss.attachSound('sfxHiss'); if (_root.soundEnabled) { sfxHiss.start(0, 1); } } frame 22 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 28 { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 2463 { frame 1 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(125); } } } _root.textDone = false; } frame 125 { stop(); _root.textDone = true; } } movieClip 2464 { frame 1 { function onEnterFrame() { if (_root.diedOnSpider && Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } stopAllSounds(); _root.currentMusic = 0; } frame 59 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 90 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 125 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 173 { function onEnterFrame() {} stop(); } } movieClip 2489 { frame 90 { _root.scenes_mc.gotoAndStop(1); } } movieClip 2546 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _parent.play(); } else { gotoAndStop(91); } } } _root.textDone = false; } frame 91 { _root.textDone = true; stop(); } } movieClip 2566 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 9 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 12 { _root.characterLevel = 2; _root.plotProgress = 10; _root.playerSpeed = 5; } frame 18 { function onEnterFrame() { _root.cutsceneAttack = true; if (Key.isDown(88)) { play(); } } stop(); } frame 19 { function onEnterFrame() {} } frame 39 { _root.maps_mc.spiderWall6_mc.play(); } frame 113 { stop(); } frame 114 { _root.pauseable = false; } frame 156 { _root.maps_mc.spiderWall6_mc.play(); } frame 158 { _root.scenes_mc.gotoAndStop(1); } } movieClip 2567 { frame 1 { _root.gallery20 = true; _root.gallery21 = true; } frame 8 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 24 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 40 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 96 { _root.maps_mc.spiderRig_mc.play(); _parent.gotoAndStop(1); } } movieClip 2644 { frame 1 { function onEnterFrame() { if (!Key.isDown(90)) { zClear = true; } else { if (zClear) { ++zPresses; if (zPresses % 2 == 1) { _root.player_mc._y += 3; } else { _root.player_mc._y -= 3; } if (zPresses >= 20) { gotoAndPlay(36); } } zClear = false; } } var zClear = false; var zPresses = 0; _root.maps_mc.swordStuck_mc._x = _root.player_mc._x + 6; _root.maps_mc.swordStuck_mc._y = _root.player_mc._y + 6; _root.maps_mc.swordStuck_mc._rotation = 90 * (_root.playerDir - 1); } frame 35 { stop(); } frame 36 { function onEnterFrame() {} _root.maps_mc.swordStuck_mc._x = -100; _root.playerXVel = (_root.playerDir - 2) * 15; _root.playerYVel = 0; _root.playerKnockback = true; _root.stopMove = false; _root.maps_mc.spiderRig_mc.play(); _root.maps_mc.webline_mc.play(); } frame 38 { _parent.gotoAndStop(1); } } movieClip 2737 { frame 1 { function onEnterFrame() { if (!Key.isDown(90)) { zClear = true; } else { if (zClear) { ++zPresses; if (zPresses % 2 == 1) { _root.player_mc._x += 3; } else { _root.player_mc._x -= 3; } if (zPresses >= 20) { gotoAndPlay(43); } } zClear = false; } } var zClear = false; var zPresses = 0; _root.maps_mc.swordStuck_mc._x = _root.player_mc._x + 6; _root.maps_mc.swordStuck_mc._y = _root.player_mc._y + 6; _root.maps_mc.swordStuck_mc._rotation = 90 * (_root.playerDir - 1); } frame 42 { stop(); } frame 43 { function onEnterFrame() {} _root.maps_mc.swordStuck_mc._x = -100; _root.playerXVel = (_root.playerDir - 2) * 15; _root.playerYVel = 0; _root.playerKnockback = true; _root.stopMove = false; _root.maps_mc.spiderRig_mc.play(); _root.maps_mc.webline_mc.play(); } frame 45 { _parent.gotoAndStop(1); } } movieClip 2798 { frame 1 { function onEnterFrame() { if (!Key.isDown(90)) { zClear = true; } else { if (zClear) { ++zPresses; if (zPresses % 4 == 1) { _root.player_mc._y += 3; } else { if (zPresses % 4 == 2) { _root.player_mc._x -= 3; } else { if (zPresses % 4 == 3) { _root.player_mc._y -= 3; } else { _root.player_mc._x += 3; } } } if (zPresses >= 24) { gotoAndPlay(51); } } zClear = false; } } var zClear = false; var zPresses = 0; _root.maps_mc.swordStuck_mc._x = _root.player_mc._x + 6; _root.maps_mc.swordStuck_mc._y = _root.player_mc._y + 6; _root.maps_mc.swordStuck_mc._rotation = 90 * (_root.playerDir - 1); } frame 50 { stop(); } frame 51 { function onEnterFrame() {} _root.maps_mc.swordStuck_mc._x = -100; _root.playerXVel = (_root.playerDir - 2) * 15; _root.playerYVel = 0; _root.playerKnockback = true; _root.stopMove = false; _root.maps_mc.spiderRig_mc.gotoAndPlay(52); _root.maps_mc.spiderRig_mc.webline_mc.play(); } frame 67 { _root.stopMove = true; _root.playerYVel = 0; _parent.gotoAndStop(1); } } movieClip 2817 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(37); } } } _root.textDone = false; } frame 37 { _root.textDone = true; stop(); } } movieClip 2818 { frame 2 { sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 15 { stop(); } } movieClip 2838 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(39); } } } _root.textDone = false; } frame 39 { stop(); _root.textDone = true; } } movieClip 2839 { frame 2 { sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 19 { stop(); } } movieClip 2858 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(39); } } } _root.textDone = false; } frame 39 { stop(); _root.textDone = true; } } movieClip 2859 { frame 2 { sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 15 { stop(); } } movieClip 2860 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 8 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 26 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 32 { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 2947 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(55); } } } _root.textDone = false; } frame 55 { stop(); _root.textDone = true; } frame 56 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(225); } } } _root.textDone = false; } frame 225 { stop(); _root.textDone = true; } } movieClip 2970 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(65); } } } _root.textDone = false; } frame 65 { stop(); _root.textDone = true; } } movieClip 3009 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(107); } } } _root.textDone = false; } frame 107 { _root.textDone = true; stop(); } } movieClip 3010 { frame 1 { function onEnterFrame() { if (_root.diedOnGhost && Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } stopAllSounds(); _root.currentMusic = 0; } frame 59 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 90 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 125 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 208 { stop(); } } movieClip 3046 { frame 114 { _root.scenes_mc.gotoAndStop(1); } } movieClip 3047 { frame 1 { _root.pauseable = false; } frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } _root.maps_mc.bottomWall3_mc._alpha = 100; _root.maps_mc.bottomWall3_mc.isActive = true; _root.maps_mc.bottomWall2_mc.isActive = false; _root.maps_mc.bottomWall1_mc.isActive = false; _root.maps_mc.interactive27_mc._x = -100; _root.maps_mc.interactive28_mc._x = -100; _root.maps_mc.interactive29_mc._x = -100; _root.maps_mc.interactive30_mc._x = -100; _root.maps_mc.interactive31_mc._x = -100; } frame 17 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 33 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 71 { if (_root.soundEnabled) { sfxFlame = new Sound(); } sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); trace('fire noises!'); } } frame 71 { _root.maps_mc.blueTorch1_mc.gotoAndStop(8); } frame 72 { _root.maps_mc.blueTorch1_mc.gotoAndStop(8); } frame 81 { if (_root.soundEnabled) { sfxFlame = new Sound(); } sfxFlame.attachSound('sfxFlame'); if (_root.soundEnabled) { sfxFlame.start(0, 1); trace('fire noises!'); } } frame 81 { _root.maps_mc.blueTorch2_mc.gotoAndStop(8); } frame 82 { _root.maps_mc.blueTorch2_mc.gotoAndStop(8); } frame 91 { if (_root.soundEnabled) { sfxFlame.start(0, 1); trace('fire noises!'); } } frame 91 { _root.maps_mc.blueTorch3_mc.gotoAndStop(8); } frame 92 { _root.maps_mc.blueTorch3_mc.gotoAndStop(8); } frame 101 { if (_root.soundEnabled) { sfxFlame.start(0, 1); trace('fire noises!'); } } frame 101 { _root.maps_mc.blueTorch4_mc.gotoAndStop(8); } frame 102 { _root.maps_mc.blueTorch4_mc.gotoAndStop(8); } frame 121 { _root.playerSpeed = 5; _root.blockSpeed = 3; _root.maps_mc.ghostRig_mc.play(); } frame 161 { _root.scenes_mc.gotoAndStop(1); } } movieClip 3071 { frame 73 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; _root.scenes_mc.gotoAndStop(1); } } stop(); mscMain = new Sound(); mscMain.attachSound('mscMain'); } } movieClip 3072 { frame 1 { stopAllSounds(); _root.currentMusic = 0; _root.playerXVel = 0; _root.playerYVel = 0; _root.plotProgress = 16; _root.playerSpeed = 5; _root.blockSpeed = 3; _root.diedOnGhost = true; _root.stopMove = true; _root.player_mc._x = 300; _root.player_mc._y = 300; _root.maps_mc.gotoAndStop(14); } frame 2 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 64 { stop(); } } movieClip 3099 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(75); } } } _root.textDone = false; } frame 75 { stop(); _root.textDone = true; } } movieClip 3100 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 10 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 13 { _root.maps_mc.armor_mc.gotoAndStop(1); _root.maps_mc.bottomWall3_mc._alpha = 0; _root.maps_mc.bottomWall3_mc.isActive = false; _root.maps_mc.bottomWall1_mc.isActive = true; _root.maps_mc.bottomWall2_mc.isActive = true; _root.maps_mc.interactive27_mc._x = 87; _root.maps_mc.interactive28_mc._x = 417; _root.maps_mc.interactive29_mc._x = 231; _root.maps_mc.interactive30_mc._x = 123; _root.maps_mc.interactive31_mc._x = 452; _root.characterLevel = 3; _root.plotProgress = 20; } frame 19 { stop(); _root.maps_mc.secretGrave_mc.isPushable = true; _root.autoSave(); } } movieClip 3137 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(105); } } } _root.textDone = false; } frame 105 { _root.textDone = true; stop(); } } movieClip 3138 { frame 1 { stop(); } } movieClip 3190 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(120); } } } _root.textDone = false; } frame 120 { stop(); _root.textDone = true; } } movieClip 3191 { frame 28 { sfxHit = new Sound(); sfxHit.attachSound('sfxHit'); if (_root.soundEnabled) { sfxHit.start(0, 1); } } frame 34 { _root.maps_mc.gotoAndStop(16); _root.player_mc._x = 315; _root.player_mc._y = 415; _root.playerDir = 0; } frame 66 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 171 { stop(); } } movieClip 3192 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 59 { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 3218 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(73); } } } _root.textDone = false; } frame 73 { _root.textDone = true; stop(); } } movieClip 3219 { frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 92 { _root.maps_mc.doomGate_mc.play(); } frame 136 { stop(); _root.plotProgress = 22; } } movieClip 3221 { frame 1 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } } movieClip 3222 { frame 1 { _root.maps_mc.gotoAndStop(19); _root.player_mc._y = 525; _root.player_mc._x = 294; _root.playerSpeed = 2; _root.playerMoveMode = 4; stopAllSounds(); _root.currentMusic = 0; } frame 55 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 136 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 211 { if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 287 { _root.stopMove = false; stop(); } } movieClip 3229 { frame 1 { function onEnterFrame() { if (_root.spaceClear && _root.diedOnDemon && Key.isDown(32)) { _root.spaceClear = false; gotoAndPlay(311); } } } frame 2 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 23 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 39 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 89 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 163 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 184 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 196 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 208 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 232 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 254 { sfxDemon2 = new Sound(); sfxDemon2.attachSound('sfxDemon2'); if (_root.soundEnabled) { sfxDemon2.start(0, 1); } } frame 267 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 280 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 303 { if (_root.soundEnabled) { sfxDemon2.start(0, 1); } } frame 328 { _root.maps_mc.demonRig_mc.play(); _root.bossHealth = 6; _root.plotProgress = 23; _root.scenes_mc.gotoAndStop(1); } } movieClip 3305 { frame 5 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(105); } } } _root.textDone = false; } frame 105 { stop(); _root.textDone = true; } frame 106 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(202); } } } _root.textDone = false; } frame 202 { stop(); _root.textDone = true; } } movieClip 3306 { frame 1 { stop(); } } movieClip 3334 { frame 93 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; _root.scenes_mc.gotoAndStop(1); } } stop(); mscMain = new Sound(); mscMain.attachSound('mscMain'); } } movieClip 3335 { frame 1 { stopAllSounds(); _root.currentMusic = 0; _root.playerXVel = 0; _root.playerYVel = 0; _root.plotProgress = 22; _root.playerSpeed = 5; _root.blockSpeed = 3; _root.diedOnDemon = true; _root.stopMove = true; _root.player_mc._x = 300; _root.player_mc._y = 300; _root.maps_mc.gotoAndStop(18); _root.demonHealth_mc.gotoAndStop(1); } frame 2 { sfxRawr = new Sound(); sfxRawr.attachSound('sfxRawr'); if (_root.soundEnabled) { sfxRawr.start(0, 1); } } frame 64 { stop(); _root.playerHealth = 3; } } movieClip 3336 { frame 1 { gotoAndStop(_root.saveSlot); stop(); } instance of movieClip 369 { } frame 2 { stop(); } instance of movieClip 371 { } frame 3 { stop(); } } movieClip 3337 { frame 10 { stop(); } } movieClip 3338 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 3339 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 3340 { frame 10 { stop(); } } movieClip 3341 { frame 10 { stop(); } } movieClip 3342 { frame 10 { stop(); } } movieClip 3343 { frame 10 { stop(); } } movieClip 3344 { frame 10 { stop(); } } movieClip 3345 { frame 146 { ++_root.gameResets; _root.playerSpeed = 5; _root.playerJump = 10; _root.stopMove = false; _root.spaceClear = true; _root.attacking = false; _root.cutsceneAttack = false; _root.creepyMusic = false; _root.jumpable = false; _root.playerHealth = 3; _root.playerKnockback = false; _root.blocking = false; _root.blockSpeed = 3; _root.playerMoveMode = 1; _root.playerDir = 0; _root.characterLevel = 0; _root.plotProgress = 0; _root.openingViewed = false; _root.scene1Viewed = false; _root.scene2Viewed = false; _root.scene9Viewed = false; _root.scene12Viewed = false; _root.scene14Viewed = false; _root.scene15Viewed = false; _root.scene16Viewed = false; _root.scene28Viewed = false; _root.scene30Viewed = false; _root.scene34Viewed = false; _root.scene36Viewed = false; _root.scene40Viewed = false; _root.scene52Viewed = false; _root.scene53Viewed = false; _root.scene54Viewed = false; _root.scene63Viewed = false; _root.scene69Viewed = false; _root.scene78Viewed = false; _root.secretIntroViewed = false; _root.diedOnDragon = false; _root.dragonKilled = 0; _root.diedOnSpider = false; _root.diedOnGhost = false; _root.diedOnDemon = false; _root.orb1Revealed = false; _root.orb1Get = false; _root.orb2Revealed = false; _root.orb2Get = false; _root.orb3Revealed = false; _root.orb3Get = false; _root.orbsCollected = 0; _root.switch7 = false; _root.player_mc._x = 300; _root.player_mc._y = 400; _root.maps_mc.gotoAndStop(1); _root.autoSave(); trace('Game resets:' + _root.gameResets); } frame 180 { if (_root.gameResets == 1) { note1_mc.play(); boss1_mc.play(); } if (_root.gameResets == 2) { boss2_mc.play(); } if (_root.gameResets == 3) { boss3_mc.play(); } sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled && _root.gameResets <= 3) { sfxType2.start(0, 1); } } frame 268 { _root.scenes_mc.gotoAndStop(1); } } movieClip 3396 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(80); } } } _root.textDone = false; } frame 80 { _root.textDone = true; stop(); } frame 81 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(136); } } } _root.textDone = false; } frame 136 { stop(); _root.textDone = true; } } movieClip 3397 { frame 2 { sfxScare = new Sound(); sfxScare.attachSound('sfxScare'); if (_root.soundEnabled) { sfxScare.start(0, 1); } } frame 15 { stop(); } } // unknown tag 88 length 44 movieClip 3425 { frame 92 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 105 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 118 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 132 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 202 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 213 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 235 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 255 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 264 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 270 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 295 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 306 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 317 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 328 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 339 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 349 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 358 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 366 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 373 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 379 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 384 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 389 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 393 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 397 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 400 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 402 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 404 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 406 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 408 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 410 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 412 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 414 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 416 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 418 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 420 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 422 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 424 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 498 { sfxHeartbeat = new Sound(); sfxHeartbeat.attachSound('sfxHeartbeat'); if (_root.soundEnabled) { sfxHeartbeat.start(0, 1); } } frame 599 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 603 { _parent.play(); } } movieClip 3453 { frame 1 { function onEnterFrame() { if (Key.isDown(32)) { if (_root.spaceClear) { if (_root.textDone) { _root.spaceClear = false; _parent.play(); } else { gotoAndStop(66); } } _root.spaceClear = false; } } _root.textDone = false; } frame 66 { stop(); _root.textDone = true; } } movieClip 3454 { frame 15 { stop(); } } movieClip 3455 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function onEnterFrame() { if (Key.isDown(38) || Key.isDown(40) || Key.isDown(37) || Key.isDown(39)) { play(); } } stop(); } frame 267 { stop(); } frame 374 { sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } } frame 447 { ++_root.gameResets; _root.autoSave(); _root.gotoAndStop(2); } } movieClip 3483 { frame 84 { function onEnterFrame() { if (Key.isDown(32) && _root.spaceClear) { _root.spaceClear = false; _root.stopMove = false; if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; play(); } } stop(); mscMain = new Sound(); mscMain.attachSound('mscMain'); } } movieClip 3484 { frame 1 { stopAllSounds(); _root.currentMusic = 0; _root.playerXVel = 0; _root.playerYVel = 0; _root.plotProgress = 8; _root.playerSpeed = 5; _root.playerMoveMode = 2; _root.player_mc._x = 425; _root.player_mc._y = 125; _root.removeSpiders = true; _root.characterLevel = 1; _root.maps_mc.gotoAndStop(10); } frame 1 { _root.gallery21 = true; } frame 2 { sfxHiss = new Sound(); sfxHiss.attachSound('sfxHiss'); if (_root.soundEnabled) { sfxHiss.start(0, 1); } } frame 64 { stop(); } } movieClip 3584 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(114); } } } _root.textDone = false; } frame 114 { _root.textDone = true; stop(); } frame 115 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(199); } } } _root.textDone = false; } frame 199 { stop(); _root.textDone = true; } frame 200 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(270); } } } _root.textDone = false; } frame 270 { _root.textDone = true; stop(); } } movieClip 3585 { frame 1 { stop(); _root.characterLevel = 2; } } movieClip 3626 { frame 97 { stop(); } } movieClip 3627 { frame 1 { function onEnterFrame() { if (!Key.isDown(90)) { zClear = true; } else { if (zClear) { ++zPresses; if (zPresses % 2 == 1) { _root.player_mc._x += 3; } else { _root.player_mc._x -= 3; } if (zPresses >= 20) { _root.maps_mc.webbing2_mc.play(); _root.stopMove = false; _root.playerKnockback = true; _root.playerXVel = -7; _root.maps_mc.swordStuck_mc._x = -100; play(); } } zClear = false; } } var zClear = false; var zPresses = 0; _root.maps_mc.swordStuck_mc._x = _root.player_mc._x + 6; _root.maps_mc.swordStuck_mc._y = _root.player_mc._y + 6; stop(); } frame 2 { _parent.gotoAndStop(1); } } movieClip 3628 { frame 1 { stopAllSounds(); _root.currentMusic = 0; } frame 2 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 11 { _root.maps_mc.orb3_mc.gotoAndStop(2); ++_root.orbsCollected; } frame 110 { _root.stopMove = false; _root.autoSave(); mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); if (_root.soundEnabled) { mscCreepy.start(0, 999); } _root.currentMusic = 3; _root.scenes_mc.gotoAndStop(1); } } movieClip 3692 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(160); } } } _root.textDone = false; } frame 160 { _root.textDone = true; stop(); } } movieClip 3693 { frame 1 { if (_root.creepyMusic) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { stopAllSounds(); _root.creepyMusic = true; } } frame 2 { mscCreepy = new Sound(); mscCreepy.attachSound('mscCreepy'); _root.currentMusic = 3; if (_root.soundEnabled) { mscCreepy.start(0, 999); } } frame 3 { if (_root.scene78Viewed) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { _root.scene78Viewed = true; nextFrame(); } } frame 4 { stop(); } } movieClip 3694 { frame 4 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 10 { _root.maps_mc.secretHide3_mc.gotoAndStop(2); _root.player_mc._x = 420; _root.player_mc._y = 249; _root.maps_mc.door36_mc._y = 216; _root.maps_mc.door36_mc._x = 419; } frame 25 { _root.orb3Revealed = true; _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } } movieClip 3734 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(107); } } } _root.textDone = false; } frame 107 { stop(); _root.textDone = true; } } movieClip 3799 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(172); } } } _root.textDone = false; } frame 172 { stop(); _root.textDone = true; } } movieClip 3852 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(145); } } } _root.textDone = false; } frame 145 { stop(); _root.textDone = true; } } movieClip 3871 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(54); } } } _root.textDone = false; } frame 54 { stop(); _root.textDone = true; } } movieClip 3901 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { gotoAndStop(83); } } } _root.textDone = false; } frame 83 { stop(); _root.textDone = true; } } movieClip 3902 { frame 1 { _root.maps_mc.redSpiral_mc.gotoAndPlay(3); _root.maps_mc.blueSpiral_mc.gotoAndPlay(3); _root.maps_mc.greenSpiral_mc.gotoAndPlay(3); } frame 25 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 31 { _root.maps_mc.pedestalRed_mc.gotoAndStop(3); _root.maps_mc.pedestalGreen_mc.gotoAndStop(3); _root.maps_mc.pedestalBlue_mc.gotoAndStop(3); } frame 58 { _root.maps_mc.ladder_mc.gotoAndPlay(2); _root.libraryRevealed = true; _root.scenes_mc.gotoAndStop(1); } } movieClip 3940 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.scenes_mc.gotoAndPlay(94); } else { gotoAndStop(100); } } } _root.textDone = false; } frame 100 { stop(); _root.textDone = true; } } movieClip 3941 { frame 1 { if (_root.plotProgress < 24) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 4006 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { if (_root.scene90Viewed || _root.plotProgress > 23) { _root.stopMove = false; _parent.gotoAndStop(1); } else { _root.scene90Viewed = true; _root.maps_mc.interactive35_mc.isActive = false; _parent.gotoAndPlay(94); } } else { gotoAndStop(160); } } } _root.textDone = false; } frame 160 { _root.textDone = true; stop(); } } movieClip 4108 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(160); } } } _root.textDone = false; } frame 160 { _root.textDone = true; stop(); } frame 161 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { if (_root.scene91Viewed || _root.plotProgress > 23) { _root.stopMove = false; _parent.gotoAndStop(1); } else { _root.scene91Viewed = true; _root.maps_mc.interactive36_mc.isActive = false; _parent.gotoAndPlay(94); } } else { gotoAndStop(262); } } } _root.textDone = false; } frame 262 { stop(); _root.textDone = true; } } movieClip 4218 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(192); } } } _root.textDone = false; } frame 192 { stop(); _root.textDone = true; } frame 193 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { if (_root.scene92Viewed || _root.plotProgress > 23) { _root.stopMove = false; _parent.gotoAndStop(1); } else { _root.scene92Viewed = true; _root.maps_mc.interactive37_mc.isActive = false; _parent.gotoAndPlay(94); } } else { gotoAndStop(262); } } } _root.textDone = false; } frame 262 { stop(); _root.textDone = true; } } movieClip 4226 { frame 200 { _root.maps_mc.interactive35_mc.isActive = true; _root.maps_mc.interactive36_mc.isActive = true; _root.maps_mc.interactive37_mc.isActive = true; _root.scenes_mc.gotoAndStop(1); } } movieClip 4229 { frame 97 { _root.maps_mc.interactive35_mc.isActive = true; _root.maps_mc.interactive36_mc.isActive = true; _root.maps_mc.interactive37_mc.isActive = true; _root.scenes_mc.gotoAndStop(1); } } movieClip 4231 { frame 108 { _root.maps_mc.interactive35_mc.isActive = true; _root.maps_mc.interactive36_mc.isActive = true; _root.maps_mc.interactive37_mc.isActive = true; _root.scenes_mc.gotoAndStop(1); } } movieClip 4248 { frame 10 { sfxStatic = new Sound(); sfxStatic.attachSound('sfxStatic'); if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 40 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 54 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 161 { if (_root.soundEnabled) { sfxStatic.start(0, 1); } } frame 255 { _root.stopMove = false; _root.maps_mc.interactive35_mc.isActive = true; _root.maps_mc.interactive36_mc.isActive = true; _root.maps_mc.interactive37_mc.isActive = true; _root.scenes_mc.gotoAndStop(1); } } movieClip 4249 { frame 1 { _root.crazyRant += 1; if (_root.crazyRant != 4) { _root.stopMove = false; } if (_root.crazyRant <= 0 || _root.crazyRant > 4) { trace('Error: value of crazyRant is invalid! (' + _root.crazyRant + ')'); _parent.gotoAndStop(1); } gotoAndStop(_root.crazyRant); } } movieClip 4399 { frame 1 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(138); } } } _root.textDone = false; if (_root.plotProgress == 24) { gotoAndPlay(271); } } frame 138 { stop(); _root.textDone = true; } frame 139 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { _root.stopMove = false; _parent.gotoAndStop(1); } else { gotoAndStop(270); } } } _root.textDone = false; } frame 270 { _root.textDone = true; stop(); } frame 271 { function onEnterFrame() { if (_root.spaceClear && Key.isDown(32)) { _root.spaceClear = false; if (_root.textDone) { play(); } else { gotoAndStop(372); } } } _root.textDone = false; } frame 372 { _root.textDone = true; stop(); } frame 373 { _root.maps_mc.blackBookcase_mc.play(); _parent.gotoAndStop(1); } } movieClip 4403 { frame 299 { _root.characterLevel = -1; _root.plotProgress = 24; _root.player_mc._x = 294; _root.player_mc._y = 285; _root.player_mc._alpha = 100; _root.playerXVel = 0; _root.playerYVel = 0; _root.scene89Viewed = false; _root.maps_mc.finPedRed_mc.gotoAndStop(1); _root.maps_mc.finPedGreen_mc.gotoAndStop(1); _root.maps_mc.finPedBlue_mc.gotoAndStop(1); _root.maps_mc.lightBeam_mc.gotoAndStop(2); } frame 331 { _root.stopMove = false; _root.playerSpeed = 5; _root.maps_mc.door40_mc._y = 591; _parent.gotoAndStop(1); } } movieClip 4410 { frame 94 { _parent.gotoAndStop(1); } } movieClip 4417 { frame 90 { _parent.gotoAndStop(1); } } movieClip 4418 { frame 3 { sfxSpecial = new Sound(); sfxSpecial.attachSound('sfxSpecial'); if (_root.soundEnabled) { sfxSpecial.start(0, 1); } } frame 10 { _root.maps_mc.baseWall_mc.gotoAndStop(2); } frame 30 { _root.stopMove = false; _root.plotProgress = 25; _parent.gotoAndStop(1); } } movieClip 4423 { frame 42 { _parent.gotoAndStop(1); } } movieClip 4426 { frame 1 { _root.maps_mc.darkman_mc.gotoAndPlay(26); } frame 53 { _parent.gotoAndStop(1); } } movieClip 4432 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 4433 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 4434 { frame 599 { } frame 633 { note3_mc.play(); princess_mc.play(); sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled && _root.gameResets <= 3) { sfxType2.start(0, 1); } } frame 740 { _root.playerSpeed = 5; _root.playerJump = 10; _root.stopMove = false; _root.spaceClear = true; _root.attacking = false; _root.cutsceneAttack = false; _root.creepyMusic = false; _root.jumpable = false; _root.playerHealth = 3; _root.playerKnockback = false; _root.blocking = false; _root.blockSpeed = 3; _root.playerMoveMode = 1; _root.playerDir = 0; _root.characterLevel = 0; _root.plotProgress = 0; _root.openingViewed = false; _root.scene1Viewed = false; _root.scene2Viewed = false; _root.scene9Viewed = false; _root.scene12Viewed = false; _root.scene14Viewed = false; _root.scene15Viewed = false; _root.scene16Viewed = false; _root.scene28Viewed = false; _root.scene30Viewed = false; _root.scene34Viewed = false; _root.scene36Viewed = false; _root.scene40Viewed = false; _root.scene52Viewed = false; _root.scene53Viewed = false; _root.scene54Viewed = false; _root.scene63Viewed = false; _root.scene69Viewed = false; _root.scene78Viewed = false; _root.secretIntroViewed = false; _root.diedOnDragon = false; _root.dragonKilled = 0; _root.diedOnSpider = false; _root.diedOnGhost = false; _root.diedOnDemon = false; _root.orb1Revealed = false; _root.orb1Get = false; _root.orb2Revealed = false; _root.orb2Get = false; _root.orb3Revealed = false; _root.orb3Get = false; _root.orbsCollected = 0; _root.switch7 = false; _root.player_mc._x = 300; _root.player_mc._y = 400; _root.maps_mc.gotoAndStop(1); if (_root.saveSlot == 1) { _root.saveData.data.slot1GoodEnd = true; } if (_root.saveSlot == 2) { _root.saveData.data.slot2GoodEnd = true; } if (_root.saveSlot == 3) { _root.saveData.data.slot3GoodEnd = true; } _root.autoSave(); _root.saveSlot = 0; _root.gotoAndStop(2); } } movieClip 4435 { frame 1 { if (_root.openingViewed) { stop(); } else { if (_root.gameResets != 3) { gotoAndStop(11); } else { gotoAndStop(74); } } } frame 2 { stop(); _root.gallery5 = true; } frame 3 { stop(); _root.gallery6 = true; _root.gallery7 = true; _root.gallery8 = true; } frame 4 { _root.maps_mc.switch1_mc.play(); if (!_root.switch7) { _root.maps_mc.gate3_mc.play(); _root.maps_mc.gate4_mc.play(); _root.maps_mc.gate6_mc.play(); } gotoAndStop(1); } frame 5 { _root.maps_mc.switch2_mc.play(); if (!_root.switch7) { _root.maps_mc.gate1_mc.play(); _root.maps_mc.gate2_mc.play(); _root.maps_mc.gate4_mc.play(); } gotoAndStop(1); } frame 6 { _root.maps_mc.switch3_mc.play(); if (!_root.switch7) { _root.maps_mc.gate2_mc.play(); _root.maps_mc.gate4_mc.play(); _root.maps_mc.gate6_mc.play(); } gotoAndStop(1); } frame 7 { _root.maps_mc.switch4_mc.play(); if (!_root.switch7) { _root.maps_mc.gate4_mc.play(); _root.maps_mc.gate5_mc.play(); _root.maps_mc.gate6_mc.play(); } gotoAndStop(1); } frame 8 { _root.maps_mc.switch5_mc.play(); if (!_root.switch7) { _root.maps_mc.gate1_mc.play(); _root.maps_mc.gate2_mc.play(); _root.maps_mc.gate3_mc.play(); } gotoAndStop(1); } frame 9 { _root.maps_mc.switch6_mc.play(); if (!_root.switch7) { _root.maps_mc.gate2_mc.play(); _root.maps_mc.gate4_mc.play(); _root.maps_mc.gate5_mc.play(); } gotoAndStop(1); } frame 10 { _root.maps_mc.switch7_mc.play(); _root.switch7 = true; if (_root.maps_mc.gate1_mc.isActive) { _root.maps_mc.gate1_mc.play(); } if (_root.maps_mc.gate2_mc.isActive) { _root.maps_mc.gate2_mc.play(); } if (_root.maps_mc.gate3_mc.isActive) { _root.maps_mc.gate3_mc.play(); } if (_root.maps_mc.gate4_mc.isActive) { _root.maps_mc.gate4_mc.play(); } if (_root.maps_mc.gate5_mc.isActive) { _root.maps_mc.gate5_mc.play(); } if (_root.maps_mc.gate6_mc.isActive) { _root.maps_mc.gate6_mc.play(); } if (_root.scene9Viewed) { _root.stopMove = false; gotoAndStop(1); } else { _root.scene9Viewed = true; stop(); } } frame 11 { _root.openingViewed = true; _root.stopMove = true; _root.gallery1 = true; _root.gallery2 = true; _root.gallery3 = true; _root.gallery4 = true; stop(); } frame 12 { _root.maps_mc.switch8_mc.play(); if (_root.dragonKilled != 2) { _root.maps_mc.gate7_mc.play(); _root.maps_mc.gate8_mc.play(); } gotoAndStop(1); } frame 13 { _root.maps_mc.switch9_mc.play(); if (_root.plotProgress != 2 && _root.maps_mc.gate7_mc.isActive != _root.maps_mc.gate8_mc.isActive) { if (!_root.scene12Viewed) { _root.switchJiggles = 0; stop(); _root.scene12Viewed = true; _root.stopMove = true; } else { if (_root.switchJiggles < 4 && _root.plotProgress < 2) { ++_root.switchJiggles; } else { if (_root.plotProgress > 2) { _root.switchJiggles = 1000; } _root.maps_mc.gate7_mc.play(); _root.maps_mc.gate8_mc.play(); if (_root.switchJiggles == 4) { ++_root.switchJiggles; _root.stopMove = true; stuckText_mc.gotoAndPlay(102); } } if (_root.switchJiggles != 5) { gotoAndStop(1); } else { ++_root.switchJiggles; } } } else { if (_root.dragonKilled == 0) { _root.maps_mc.panic_mc.play(); } if (_root.dragonInRange) { _root.dragonTargeted = true; } gotoAndStop(1); } } frame 14 { stop(); _root.gallery10 = true; } frame 15 { if (_root.scene14Viewed) { _root.stopMove = false; gotoAndStop(1); } else { _root.scene14Viewed = true; stop(); } } frame 16 { if (_root.scene15Viewed) { _root.stopMove = false; gotoAndStop(1); } else { _root.scene15Viewed = true; stop(); } } frame 17 { if (_root.scene16Viewed) { _root.stopMove = false; _root.scenes_mc.gotoAndStop(1); } else { _root.scene16Viewed = true; _root.gallery9 = true; stop(); } } frame 18 { if (_root.plotProgress == 0) { stop(); stopAllSounds(); _root.currentMusic = 0; _root.plotProgress = 1; _root.gallery11 = true; } else { if (_root.plotProgress == 1) { stopAllSounds(); _root.currentMusic = 0; _root.stopMove = false; if (!_root.diedOnDragon) { _root.playerSpeed = 2; } gotoAndStop(1); } else { trace('something is amiss...'); } } } frame 19 { if (_root.plotProgress == 1) { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; _root.playerSpeed = 5; stop(); _root.maps_mc.trigger5_mc._y = 0; } else { if (_root.plotProgress != 1) { trace('Something is amiss...'); } } } frame 20 { _root.gallery12 = true; _root.gallery13 = true; _root.gallery14 = true; stop(); } frame 21 { stop(); _root.diedOnDragon = true; } frame 22 { stop(); _root.maps_mc.trigger7_mc._y = 0; } frame 23 { stop(); } frame 24 { _root.gallery15 = true; stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { _root.blueCover_mc._alpha = 100; gotoAndStop(1); } frame 28 { _root.blueCover_mc._alpha = 0; if (_root.creepyMusic) { stop(); _root.creepyMusic = false; musicbox_mc.gotoAndPlay(2); } else { gotoAndStop(1); } } frame 29 { stop(); } frame 30 { stop(); _root.orb1Get = true; } frame 31 { _root.gallery16 = true; stop(); } frame 32 { stop(); _root.textDone = false; } frame 33 { _root.playerMoveMode = 3; gotoAndStop(1); } frame 34 { _root.playerMoveMode = 1; gotoAndStop(1); } frame 35 { if (_root.scene34Viewed) { _root.stopMove = false; gotoAndStop(1); } else { _root.scene34Viewed = true; stop(); } } frame 36 { if (_root.orb2Revealed) { _root.stopMove = false; gotoAndStop(1); } else { stop(); } } frame 37 { stop(); } frame 38 { stop(); _root.orb2Get = true; } frame 39 { if (_root.playerYVel < 0 && _root.playerYVel >= -10) { _root.playerYVel = -12; } } frame 40 { _root.gallery17 = true; stop(); } frame 41 { if (!_root.scene40Viewed) { stop(); _root.gallery18 = true; _root.scene40Viewed = true; } else { _root.stopMove = false; gotoAndStop(1); } } frame 42 { if (_root.plotProgress == 8) { stop(); stopAllSounds(); _root.currentMusic = 0; _root.plotProgress = 9; _root.gallery19 = true; } else { trace('something is amiss...'); } } frame 43 { if (_root.plotProgress == 9) { stopAllSounds(); _root.currentMusic = 0; gotoAndStop(1); } } frame 44 { if (_root.plotProgress == 9) { mscMain = new Sound(); mscMain.attachSound('mscMain'); if (_root.soundEnabled) { mscMain.start(0, 999); } _root.currentMusic = 1; stop(); _root.maps_mc.trigger25_mc._y = 600; } else { if (_root.plotProgress != 9) { trace('Something is amiss...'); } } } frame 45 { stop(); } frame 46 { stop(); } frame 47 { stop(); } frame 48 { stop(); } frame 49 { stop(); } frame 50 { _root.gallery22 = true; stop(); } frame 51 { _root.gallery23 = true; stop(); } frame 52 { _root.gallery24 = true; stop(); } frame 53 { if (!_root.scene52Viewed) { stop(); _root.scene52Viewed = true; _root.gallery25 = true; } else { _root.stopMove = false; gotoAndStop(1); } } frame 54 { if (!_root.scene53Viewed) { stop(); _root.scene53Viewed = true; } else { _root.stopMove = false; gotoAndStop(1); } } frame 55 { if (!_root.scene54Viewed) { stop(); _root.scene54Viewed = true; } else { _root.stopMove = false; gotoAndStop(1); } } frame 56 { if (_root.plotProgress == 16) { stop(); _root.gallery26 = true; stopAllSounds(); _root.currentMusic = 0; _root.plotProgress = 17; } else { if (_root.plotProgress == 17) { stopAllSounds(); _root.currentMusic = 0; _root.stopMove = false; if (!_root.diedOnGhost) { _root.playerSpeed = 2; _root.blockSpeed = 1; } gotoAndStop(1); } else { trace('something is amiss...'); } } } frame 57 { if (_root.plotProgress == 17) { mscMain = new Sound(); mscMain.attachSound('mscMain'); mscMain.start(0, 999); _root.playerSpeed = 5; _root.blockSpeed = 3; stop(); _root.maps_mc.trigger30_mc._y = 600; } else { if (_root.plotProgress != 17) { trace('Something is amiss...'); } } } frame 58 { stop(); _root.gallery27 = true; _root.gallery28 = true; } frame 59 { stop(); } frame 60 { stop(); } frame 61 { stop(); } frame 62 { _root.maps_mc.manhole_mc.gotoAndPlay(3); gotoAndStop(1); } frame 63 { stop(); } frame 64 { if (!_root.scene63Viewed) { stop(); _root.scene63Viewed = true; _root.gallery30 = true; } else { _root.stopMove = false; gotoAndStop(1); } } frame 65 { _root.maps_mc.guardLeft_mc.guard_mc.play(); gotoAndStop(1); } frame 66 { _root.maps_mc.guardRight_mc.guard_mc.play(); gotoAndStop(1); } frame 67 { stop(); _root.gallery31 = true; } frame 68 { stop(); _root.gallery32 = true; } frame 69 { _root.gallery7 = true; _root.gallery8 = true; _root.gallery33 = true; _root.gallery34 = true; _root.gallery35 = true; _root.gallery36 = true; stop(); } frame 70 { if (!_root.scene69Viewed) { stop(); _root.scene69Viewed = true; } else { _root.stopMove = false; gotoAndStop(1); } } frame 71 { stop(); } frame 72 { stop(); } frame 73 { stop(); _root.gallery29 = true; } frame 74 { stop(); _root.stopMove = true; } frame 75 { stop(); _root.diedOnSpider = true; } frame 76 { stop(); _root.plotProgress = 13; } frame 77 { stop(); } frame 78 { stop(); _root.orb3Get = true; } frame 79 { stop(); } frame 80 { _root.stopMove = true; stop(); } frame 81 { stop(); } frame 82 { stop(); } frame 83 { stop(); } frame 84 { stop(); } frame 85 { stop(); } frame 86 { _root.maps_mc.redSpiral_mc.gotoAndStop(2); _root.maps_mc.pedestalRed_mc.gotoAndStop(2); _root.maps_mc.interactive32_mc.isActive = false; _root.redOrbPlaced = true; sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } if (!_root.blueOrbPlaced || !_root.greenOrbPlaced) { _root.stopMove = false; gotoAndStop(1); } else { gotoAndStop(89); } } frame 87 { _root.maps_mc.greenSpiral_mc.gotoAndStop(2); _root.maps_mc.pedestalGreen_mc.gotoAndStop(2); _root.maps_mc.interactive33_mc.isActive = false; _root.greenOrbPlaced = true; sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } if (!_root.blueOrbPlaced || !_root.redOrbPlaced) { _root.stopMove = false; gotoAndStop(1); } else { gotoAndStop(89); } } frame 88 { _root.maps_mc.blueSpiral_mc.gotoAndStop(2); _root.maps_mc.pedestalBlue_mc.gotoAndStop(2); _root.maps_mc.interactive34_mc.isActive = false; _root.blueOrbPlaced = true; sfxType2 = new Sound(); sfxType2.attachSound('sfxType2'); if (_root.soundEnabled) { sfxType2.start(0, 1); } if (!_root.redOrbPlaced || !_root.greenOrbPlaced) { _root.stopMove = false; gotoAndStop(1); } else { gotoAndStop(89); } } frame 89 { stop(); } frame 90 { stopAllSounds(); _root.currentMusic = 0; _root.maps_mc.trigger42_mc._y = 1000; if (_root.scene89Viewed) { _root.stopMove = false; gotoAndStop(1); } else { _root.scene89Viewed = true; stop(); } } frame 91 { stop(); } frame 92 { stop(); } frame 93 { stop(); } frame 94 { stop(); } frame 95 { stop(); } frame 96 { if (_root.currentMusic == 0) { _root.currentMusic = 1; if (_root.soundEnabled) { mscMain = new Sound(); mscMain.attachSound('mscMain'); mscMain.start(0, 999); } } gotoAndStop(1); } frame 97 { _root.maps_mc.finPedRed_mc.gotoAndStop(2); _root.maps_mc.interactive39_mc.isActive = false; if (_root.playerMaxHealth == 3) { --_root.playerMaxHealth; if (_root.playerHealth == 3) { _root.healthIcons_mc.heart3_mc.gotoAndPlay(3); } else { _root.healthIcons_mc.heart3_mc.gotoAndPlay(20); } _root.playerSpeed = 3; _root.blockSpeed = 2; } else { if (_root.playerMaxHealth == 2) { --_root.playerMaxHealth; if (_root.playerHealth == 2) { _root.healthIcons_mc.heart2_mc.gotoAndPlay(3); } else { _root.healthIcons_mc.heart2_mc.gotoAndPlay(20); } _root.playerSpeed = 2; _root.blockSpeed = 1; } else { if (_root.playerMaxHealth == 1) { --_root.playerMaxHealth; if (_root.playerHealth == 1) { _root.healthIcons_mc.heart1_mc.gotoAndPlay(3); } else { trace('Okay this really shouldn\'t have happened...'); _root.healthIcons_mc.heart1_mc.gotoAndPlay(20); } _root.playerSpeed = 1; } } } _root.maps_mc.demonRig_mc.demon_mc.gotoAndPlay(109); _root.maps_mc.demonRig_mc.demon_mc._alpha = 100; if (_root.bossHealth == 0) { } else { _root.stopMove = false; } gotoAndStop(1); } frame 98 { _root.maps_mc.finPedGreen_mc.gotoAndStop(2); _root.maps_mc.interactive40_mc.isActive = false; if (_root.playerMaxHealth == 3) { --_root.playerMaxHealth; if (_root.playerHealth == 3) { _root.healthIcons_mc.heart3_mc.gotoAndPlay(3); } else { _root.healthIcons_mc.heart3_mc.gotoAndPlay(20); } _root.playerSpeed = 3; _root.blockSpeed = 2; } else { if (_root.playerMaxHealth == 2) { --_root.playerMaxHealth; if (_root.playerHealth == 2) { _root.healthIcons_mc.heart2_mc.gotoAndPlay(3); } else { _root.healthIcons_mc.heart2_mc.gotoAndPlay(20); } _root.playerSpeed = 2; _root.blockSpeed = 1; } else { if (_root.playerMaxHealth == 1) { --_root.playerMaxHealth; if (_root.playerHealth == 1) { _root.healthIcons_mc.heart1_mc.gotoAndPlay(3); } else { trace('Okay this really shouldn\'t have happened...'); _root.healthIcons_mc.heart1_mc.gotoAndPlay(20); } _root.playerSpeed = 1; } } } _root.maps_mc.demonRig_mc.demon_mc.gotoAndPlay(109); _root.maps_mc.demonRig_mc.demon_mc._alpha = 100; if (_root.bossHealth == 0) { } else { _root.stopMove = false; } gotoAndStop(1); } frame 99 { _root.maps_mc.finPedBlue_mc.gotoAndStop(2); _root.maps_mc.interactive41_mc.isActive = false; if (_root.playerMaxHealth == 3) { --_root.playerMaxHealth; if (_root.playerHealth == 3) { _root.healthIcons_mc.heart3_mc.gotoAndPlay(3); } else { _root.healthIcons_mc.heart3_mc.gotoAndPlay(20); } _root.playerSpeed = 3; _root.blockSpeed = 2; } else { if (_root.playerMaxHealth == 2) { --_root.playerMaxHealth; if (_root.playerHealth == 2) { _root.healthIcons_mc.heart2_mc.gotoAndPlay(3); } else { _root.healthIcons_mc.heart2_mc.gotoAndPlay(20); } _root.playerSpeed = 2; _root.blockSpeed = 1; } else { if (_root.playerMaxHealth == 1) { --_root.playerMaxHealth; if (_root.playerHealth == 1) { _root.healthIcons_mc.heart1_mc.gotoAndPlay(3); } else { trace('Okay this really shouldn\'t have happened...'); _root.healthIcons_mc.heart1_mc.gotoAndPlay(20); } _root.playerSpeed = 1; } } } _root.maps_mc.demonRig_mc.demon_mc.gotoAndPlay(109); _root.maps_mc.demonRig_mc.demon_mc._alpha = 100; if (_root.bossHealth == 0) { } else { _root.stopMove = false; } gotoAndStop(1); } frame 100 { stop(); } frame 101 { if (_root.scene100Viewed) { gotoAndStop(1); } else { _root.scene100Viewed = true; _root.maps_mc.trigger44_mc._y = 9001; stop(); } } frame 102 { stop(); _root.maps_mc.trigger45_mc._y = 9001; } frame 103 { stop(); } frame 104 { _root.maps_mc.trigger46_mc._y = -1000; stop(); } frame 105 { _root.maps_mc.darkman_mc.play(); _root.plotProgress = 26; gotoAndStop(1); } frame 106 { stop(); } frame 107 { stop(); } } movieClip 4438 { } movieClip 4439 { frame 1 { stop(); } frame 16 { function onEnterFrame() { if (Key.isDown(27) && _root.escClear) { stopAllSounds(); if (_root.saveSlot == 1) { _root.gameStarted = _root.saveData.data.slot1GameStart; _root.characterLevel = _root.saveData.data.slot1CharLvl; _root.orb1Get = _root.saveData.data.slot1Orb1; _root.orb2Get = _root.saveData.data.slot1Orb2; _root.orb3Get = _root.saveData.data.slot1Orb3; _root.plotProgress = _root.saveData.data.slot1PlotProgress; _root.playerX = _root.saveData.data.slot1PlayerX; _root.playerY = _root.saveData.data.slot1PlayerY; _root.playerRoom = _root.saveData.data.slot1PlayerRoom; _root.gameResets = _root.saveData.data.slot1GameResets; _root.playerMoveMode = _root.saveData.data.slot1PlayerMoveMode; _root.switch7 = _root.saveData.data.slot1Switch7; _root.openingViewed = _root.saveData.data.slot1OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot1Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot1Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot1Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot1Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot1Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot1Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot1Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot1Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot1Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot1Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot1Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot1Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot1Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot1Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot1Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot1Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot1Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot1Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot1SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot1DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot1DragonKilled; _root.diedOnSpider = _root.saveData.data.slot1DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot1DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot1DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot1Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot1Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot1Orb3Revealed; } if (_root.saveSlot == 2) { _root.gameStarted = _root.saveData.data.slot2GameStart; _root.characterLevel = _root.saveData.data.slot2CharLvl; _root.orb1Get = _root.saveData.data.slot2Orb1; _root.orb2Get = _root.saveData.data.slot2Orb2; _root.orb3Get = _root.saveData.data.slot2Orb3; _root.plotProgress = _root.saveData.data.slot2PlotProgress; _root.playerX = _root.saveData.data.slot2PlayerX; _root.playerY = _root.saveData.data.slot2PlayerY; _root.playerRoom = _root.saveData.data.slot2PlayerRoom; _root.gameResets = _root.saveData.data.slot2GameResets; _root.playerMoveMode = _root.saveData.data.slot2PlayerMoveMode; _root.switch7 = _root.saveData.data.slot2Switch7; _root.openingViewed = _root.saveData.data.slot2OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot2Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot2Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot2Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot2Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot2Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot2Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot2Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot2Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot2Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot2Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot2Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot2Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot2Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot2Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot2Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot2Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot2Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot2Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot2SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot2DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot2DragonKilled; _root.diedOnSpider = _root.saveData.data.slot2DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot2DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot2DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot2Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot2Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot2Orb3Revealed; } if (_root.saveSlot == 3) { _root.gameStarted = _root.saveData.data.slot3GameStart; _root.characterLevel = _root.saveData.data.slot3CharLvl; _root.orb1Get = _root.saveData.data.slot3Orb1; _root.orb2Get = _root.saveData.data.slot3Orb2; _root.orb3Get = _root.saveData.data.slot3Orb3; _root.plotProgress = _root.saveData.data.slot3PlotProgress; _root.playerX = _root.saveData.data.slot3PlayerX; _root.playerY = _root.saveData.data.slot3PlayerY; _root.playerRoom = _root.saveData.data.slot3PlayerRoom; _root.gameResets = _root.saveData.data.slot3GameResets; _root.playerMoveMode = _root.saveData.data.slot3PlayerMoveMode; _root.switch7 = _root.saveData.data.slot3Switch7; _root.openingViewed = _root.saveData.data.slot3OpeningViewed; _root.scene1Viewed = _root.saveData.data.slot3Scene1Viewed; _root.scene2Viewed = _root.saveData.data.slot3Scene2Viewed; _root.scene9Viewed = _root.saveData.data.slot3Scene9Viewed; _root.scene12Viewed = _root.saveData.data.slot3Scene12Viewed; _root.scene14Viewed = _root.saveData.data.slot3Scene14Viewed; _root.scene15Viewed = _root.saveData.data.slot3Scene15Viewed; _root.scene16Viewed = _root.saveData.data.slot3Scene16Viewed; _root.scene28Viewed = _root.saveData.data.slot3Scene28Viewed; _root.scene30Viewed = _root.saveData.data.slot3Scene30Viewed; _root.scene34Viewed = _root.saveData.data.slot3Scene34Viewed; _root.scene36Viewed = _root.saveData.data.slot3Scene36Viewed; _root.scene40Viewed = _root.saveData.data.slot3Scene40Viewed; _root.scene52Viewed = _root.saveData.data.slot3Scene52Viewed; _root.scene53Viewed = _root.saveData.data.slot3Scene53Viewed; _root.scene54Viewed = _root.saveData.data.slot3Scene54Viewed; _root.scene63Viewed = _root.saveData.data.slot3Scene63Viewed; _root.scene69Viewed = _root.saveData.data.slot3Scene69Viewed; _root.scene78Viewed = _root.saveData.data.slot3Scene78Viewed; _root.secretIntroViewed = _root.saveData.data.slot3SecretIntroViewed; _root.diedOnDragon = _root.saveData.data.slot3DiedOnDragon; _root.dragonKilled = _root.saveData.data.slot3DragonKilled; _root.diedOnSpider = _root.saveData.data.slot3DiedOnSpider; _root.diedOnGhost = _root.saveData.data.slot3DiedOnGhost; _root.diedOnDemon = _root.saveData.data.slot3DiedOnDemon; _root.orb1Revealed = _root.saveData.data.slot3Orb1Revealed; _root.orb2Revealed = _root.saveData.data.slot3Orb2Revealed; _root.orb3Revealed = _root.saveData.data.slot3Orb3Revealed; } _root.gotoAndStop(2); } } } frame 96 { function onEnterFrame() {} } } movieClip 4441 { frame 26 { _parent.gotoAndStop(1); } } movieClip 4443 { frame 26 { _parent.gotoAndStop(1); } } movieClip 4444 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } }




http://swfchan.com/38/188998/info.shtml
Created: 15/10 -2018 20:55:41 Last modified: 15/10 -2018 20:55:41 Server time: 22/12 -2024 04:22:04